Skip to main content
Skip to main content

IStockLocationService

admin/discounts.internal.IStockLocationService

Methods

__joinerConfig

__joinerConfig(): ModuleJoinerConfig

Returns

ModuleJoinerConfig

ModuleJoinerConfigOmit<JoinerServiceConfig, "serviceName" | "primaryKeys" | "relationships" | "extends"> & { databaseConfig?: { extraFields?: Record<string, { defaultValue?: string ; nullable?: boolean ; options?: Record<string, unknown> ; type: "date" | "time" | "datetime" | "bigint" | "blob" | "uint8array" | "array" | "enumArray" | "enum" | "json" | "integer" | "smallint" | "tinyint" | "mediumint" | "float" | "double" | "boolean" | "decimal" | "string" | "uuid" | "text" }> ; idPrefix?: string ; tableName?: string } ; extends?: { fieldAlias?: Record<string, string | { forwardArgumentsOnPath: string[] ; path: string }> ; relationship: ModuleJoinerRelationship ; serviceName: string }[] ; isLink?: boolean ; isReadOnlyLink?: boolean ; linkableKeys?: Record<string, string> ; primaryKeys?: string[] ; relationships?: ModuleJoinerRelationship[] ; schema?: string ; serviceName?: string }Required

create

create(input, context?): Promise<StockLocationDTO>

Parameters

Returns

Promise<StockLocationDTO>

PromisePromise<StockLocationDTO>Required

delete

delete(id, context?): Promise<void>

Parameters

idstringRequired

Returns

Promise<void>

PromisePromise<void>Required

list

list(selector, config?, context?): Promise<StockLocationDTO[]>

Parameters

Returns

Promise<StockLocationDTO[]>

PromisePromise<StockLocationDTO[]>Required

listAndCount

listAndCount(selector, config?, context?): Promise<[StockLocationDTO[], number]>

Parameters

Returns

Promise<[StockLocationDTO[], number]>

PromisePromise<[StockLocationDTO[], number]>Required

retrieve

retrieve(id, config?, context?): Promise<StockLocationDTO>

Parameters

idstringRequired

Returns

Promise<StockLocationDTO>

PromisePromise<StockLocationDTO>Required

update

update(id, input, context?): Promise<StockLocationDTO>

Parameters

idstringRequired

Returns

Promise<StockLocationDTO>

PromisePromise<StockLocationDTO>Required
Was this section helpful?