Documentation / @warp-drive/legacy / adapter / BuildURLMixin
Interface: BuildURLMixin
Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:17
Methods
_buildURL()
_buildURL(
this,
modelName,
id?): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:91
Parameters
this
MixtBuildURLMixin
modelName
undefined | null | string
id?
null | string
Returns
string
buildURL()
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:18
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
requestType
"findRecord"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:25
Parameters
this
MixtBuildURLMixin
modelName
string
id
null
snapshot
SnapshotRecordArray
requestType
"findAll"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType,
query): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:32
Parameters
this
MixtBuildURLMixin
modelName
string
id
null
snapshot
null
requestType
"query"
query
Record<string, unknown>
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType,
query): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:40
Parameters
this
MixtBuildURLMixin
modelName
string
id
null
snapshot
null
requestType
"queryRecord"
query
Record<string, unknown>
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:48
Parameters
this
MixtBuildURLMixin
modelName
string
id
string[]
snapshot
Snapshot<unknown>[]
requestType
"findMany"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:55
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
requestType
"findHasMany"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:62
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
requestType
"findBelongsTo"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:69
Parameters
this
MixtBuildURLMixin
modelName
string
id
null | string
snapshot
Snapshot
requestType
"createRecord"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:76
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
requestType
"updateRecord"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot,
requestType): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:83
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
requestType
"deleteRecord"
Returns
string
Call Signature
buildURL(
this,
modelName,
id,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:90
Parameters
this
MixtBuildURLMixin
modelName
string
id
string
snapshot
Snapshot
Returns
string
pathForType()
pathForType(this, modelName): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:103
Parameters
this
MixtBuildURLMixin
modelName
string
Returns
string
urlForCreateRecord()
urlForCreateRecord(
this,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:99
Parameters
this
MixtBuildURLMixin
modelName
string
snapshot
Snapshot
Returns
string
urlForDeleteRecord()
urlForDeleteRecord(
this,
id,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:101
Parameters
this
MixtBuildURLMixin
id
string
modelName
string
snapshot
Snapshot
Returns
string
urlForFindAll()
urlForFindAll(
this,
modelName,
snapshots): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:93
Parameters
this
MixtBuildURLMixin
modelName
string
snapshots
SnapshotRecordArray
Returns
string
urlForFindBelongsTo()
urlForFindBelongsTo(
this,
id,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:98
Parameters
this
MixtBuildURLMixin
id
string
modelName
string
snapshot
Snapshot
Returns
string
urlForFindHasMany()
urlForFindHasMany(
this,
id,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:97
Parameters
this
MixtBuildURLMixin
id
string
modelName
string
snapshot
Snapshot
Returns
string
urlForFindMany()
urlForFindMany(
this,
ids,
modelName,
snapshots): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:96
Parameters
this
MixtBuildURLMixin
ids
string[]
modelName
string
snapshots
Snapshot<unknown>[]
Returns
string
urlForFindRecord()
urlForFindRecord(
this,
id,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:92
Parameters
this
MixtBuildURLMixin
id
string
modelName
string
snapshot
Snapshot
Returns
string
urlForQuery()
urlForQuery(
this,
query,
modelName): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:95
Parameters
this
MixtBuildURLMixin
query
Record<string, unknown>
modelName
string
Returns
string
urlForQueryRecord()
urlForQueryRecord(
this,
query,
modelName): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:94
Parameters
this
MixtBuildURLMixin
query
Record<string, unknown>
modelName
string
Returns
string
urlForUpdateRecord()
urlForUpdateRecord(
this,
id,
modelName,
snapshot): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:100
Parameters
this
MixtBuildURLMixin
id
string
modelName
string
snapshot
Snapshot
Returns
string
urlPrefix()
urlPrefix(
this,
path?,
parentURL?): string;Defined in: warp-drive-packages/legacy/src/adapter/-private/build-url-mixin.ts:102
Parameters
this
MixtBuildURLMixin
path?
null | string
parentURL?
string
Returns
string