IStockLocationService
admin/discounts.internal.IStockLocationService
Methods
__joinerConfig
__joinerConfig(): ModuleJoinerConfig
Returns
ModuleJoinerConfig
Omit<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 }Requiredcreate
create(input
, context?
): Promise
<StockLocationDTO
>
Parameters
context
SharedContextReturns
Promise
<StockLocationDTO
>
delete
delete(id
, context?
): Promise
<void
>
Parameters
id
stringRequiredcontext
SharedContextReturns
Promise
<void
>
Promise
Promise<void>Requiredlist
list(selector
, config?
, context?
): Promise
<StockLocationDTO
[]>
Parameters
Returns
Promise
<StockLocationDTO
[]>
listAndCount
listAndCount(selector
, config?
, context?
): Promise
<[StockLocationDTO
[], number
]>
Parameters
Returns
Promise
<[StockLocationDTO
[], number
]>
retrieve
retrieve(id
, config?
, context?
): Promise
<StockLocationDTO
>
Parameters
Returns
Promise
<StockLocationDTO
>
update
update(id
, input
, context?
): Promise
<StockLocationDTO
>
Parameters
Returns
Promise
<StockLocationDTO
>
Was this section helpful?