@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240406075900
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/common/auth-user.d.ts +21 -16
- package/dist/auth/common/auth-user.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +28 -15
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +137 -75
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -1
- package/dist/bundles.js.map +1 -1
- package/dist/cart/common.d.ts +443 -62
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +483 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +1607 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/rule.d.ts +2 -0
- package/dist/common/rule.d.ts.map +1 -0
- package/dist/common/rule.js +3 -0
- package/dist/common/rule.js.map +1 -0
- package/dist/customer/service.d.ts +445 -197
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/file/common.d.ts +14 -0
- package/dist/file/common.d.ts.map +1 -0
- package/dist/file/common.js +3 -0
- package/dist/file/common.js.map +1 -0
- package/dist/file/index.d.ts +4 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +20 -0
- package/dist/file/index.js.map +1 -0
- package/dist/file/mutations.d.ts +18 -0
- package/dist/file/mutations.d.ts.map +1 -0
- package/dist/file/mutations.js +3 -0
- package/dist/file/mutations.js.map +1 -0
- package/dist/file/service.d.ts +76 -0
- package/dist/file/service.d.ts.map +1 -0
- package/dist/file/service.js +3 -0
- package/dist/file/service.js.map +1 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.js +3 -0
- package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +13 -0
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/index.js +29 -0
- package/dist/http/fulfillment/admin/index.js.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.js +3 -0
- package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
- package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
- package/dist/http/fulfillment/index.d.ts +2 -0
- package/dist/http/fulfillment/index.d.ts.map +1 -0
- package/dist/http/fulfillment/index.js +18 -0
- package/dist/http/fulfillment/index.js.map +1 -0
- package/dist/http/index.d.ts +3 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +19 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/stock-locations/common.d.ts +28 -0
- package/dist/http/stock-locations/common.d.ts.map +1 -0
- package/dist/http/stock-locations/common.js +3 -0
- package/dist/http/stock-locations/common.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +2 -0
- package/dist/http/stock-locations/index.d.ts.map +1 -0
- package/dist/http/stock-locations/index.js +18 -0
- package/dist/http/stock-locations/index.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/inventory-item.d.ts +55 -64
- package/dist/inventory/common/inventory-item.d.ts.map +1 -1
- package/dist/inventory/common/inventory-level.d.ts +37 -37
- package/dist/inventory/common/inventory-level.d.ts.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +34 -44
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service-next.d.ts +596 -534
- package/dist/inventory/service-next.d.ts.map +1 -1
- package/dist/payment/common.d.ts +174 -53
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js +3 -3
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +58 -17
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +128 -43
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +460 -39
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +2 -2
- package/dist/pricing/common/price-set.d.ts +6 -4
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +731 -1695
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +4 -0
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product-category/repository.d.ts +2 -1
- package/dist/product-category/repository.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +153 -0
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +37 -0
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaign.d.ts +36 -0
- package/dist/promotion/common/campaign.d.ts.map +1 -1
- package/dist/promotion/common/compute-actions.d.ts +135 -0
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
- package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule.d.ts +77 -0
- package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +100 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +84 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +786 -0
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts +9 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +11 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +210 -85
- package/dist/region/service.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +14 -0
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/service-next.d.ts +178 -186
- package/dist/stock-location/service-next.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +42 -0
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +75 -0
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +113 -75
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +298 -10
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +157 -0
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +126 -0
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +600 -0
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +18 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/stock-locations/index.d.ts +2 -0
- package/dist/workflows/stock-locations/index.d.ts.map +1 -0
- package/dist/workflows/stock-locations/index.js +18 -0
- package/dist/workflows/stock-locations/index.js.map +1 -0
- package/dist/workflows/stock-locations/mutations.d.ts +8 -0
- package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
- package/dist/workflows/stock-locations/mutations.js +3 -0
- package/dist/workflows/stock-locations/mutations.js.map +1 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/stock-location/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAEzC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,G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AAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;IAE5C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAA;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,GAAG;IACpE;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAA"}
|
@@ -4,283 +4,275 @@ import { Context } from "../shared-context";
|
|
4
4
|
import { FindConfig } from "../common/common";
|
5
5
|
import { IModuleService } from "../modules-sdk";
|
6
6
|
/**
|
7
|
-
* The main service interface for the
|
7
|
+
* The main service interface for the Stock Location Module.
|
8
8
|
*/
|
9
9
|
export interface IStockLocationServiceNext extends IModuleService {
|
10
10
|
/**
|
11
|
-
* This method
|
11
|
+
* This method retrieves a paginated list of stock locations based on optional filters and configuration.
|
12
12
|
*
|
13
13
|
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
14
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
15
|
-
* The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
|
14
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
16
15
|
* attributes or relations associated with a stock location.
|
17
16
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
18
|
-
* @
|
17
|
+
* @returns {Promise<StockLocationDTO[]>} The list of stock locations.
|
19
18
|
*
|
20
19
|
* @example
|
21
20
|
* To retrieve a list of stock locations using their IDs:
|
22
21
|
*
|
23
22
|
* ```ts
|
24
|
-
*
|
25
|
-
*
|
26
|
-
* }
|
27
|
-
*
|
28
|
-
* async function listStockLocations (ids: string[]) {
|
29
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
30
|
-
*
|
31
|
-
* const stockLocations = await stockLocationModule.list({
|
32
|
-
* id: ids
|
33
|
-
* })
|
34
|
-
*
|
35
|
-
* // do something with the stock locations or return them
|
36
|
-
* }
|
23
|
+
* const stockLocations = await stockLocationModuleService.list({
|
24
|
+
* id: ["sloc_123", "sloc_321"],
|
25
|
+
* })
|
37
26
|
* ```
|
38
27
|
*
|
39
28
|
* To specify relations that should be retrieved within the stock locations:
|
40
29
|
*
|
41
30
|
* ```ts
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
* id: ids
|
51
|
-
* }, {
|
52
|
-
* relations: ["address"]
|
53
|
-
* })
|
54
|
-
*
|
55
|
-
* // do something with the stock locations or return them
|
56
|
-
* }
|
31
|
+
* const stockLocations = await stockLocationModuleService.list(
|
32
|
+
* {
|
33
|
+
* id: ["sloc_123", "sloc_321"],
|
34
|
+
* },
|
35
|
+
* {
|
36
|
+
* relations: ["address"],
|
37
|
+
* }
|
38
|
+
* )
|
57
39
|
* ```
|
58
40
|
*
|
59
41
|
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
60
42
|
*
|
61
43
|
* ```ts
|
62
|
-
*
|
63
|
-
*
|
64
|
-
*
|
65
|
-
*
|
66
|
-
*
|
67
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
68
|
-
*
|
69
|
-
* const stockLocations = await stockLocationModule.list({
|
70
|
-
* id: ids
|
71
|
-
* }, {
|
44
|
+
* const stockLocations = await stockLocationModuleService.list(
|
45
|
+
* {
|
46
|
+
* id: ["sloc_123", "sloc_321"],
|
47
|
+
* },
|
48
|
+
* {
|
72
49
|
* relations: ["address"],
|
73
|
-
*
|
74
|
-
*
|
75
|
-
* }
|
76
|
-
*
|
77
|
-
* // do something with the stock locations or return them
|
78
|
-
* }
|
50
|
+
* take: 20,
|
51
|
+
* skip: 2,
|
52
|
+
* }
|
53
|
+
* )
|
79
54
|
* ```
|
80
55
|
*/
|
81
56
|
list(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO[]>;
|
82
57
|
/**
|
83
|
-
* This method
|
58
|
+
* This method retrieves a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
|
84
59
|
*
|
85
60
|
* @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
|
86
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
87
|
-
* The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
|
61
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
88
62
|
* attributes or relations associated with a stock location.
|
89
63
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
90
|
-
* @
|
64
|
+
* @returns {Promise<[StockLocationDTO[], number]>} The list of stock locations along with their total count.
|
91
65
|
*
|
92
66
|
* @example
|
93
67
|
* To retrieve a list of stock locations using their IDs:
|
94
68
|
*
|
95
69
|
* ```ts
|
96
|
-
*
|
97
|
-
*
|
98
|
-
*
|
99
|
-
*
|
100
|
-
* async function listStockLocations (ids: string[]) {
|
101
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
102
|
-
*
|
103
|
-
* const [stockLocations, count] = await stockLocationModule.listAndCount({
|
104
|
-
* id: ids
|
70
|
+
* const [stockLocations, count] =
|
71
|
+
* await stockLocationModuleService.list({
|
72
|
+
* id: ["sloc_123", "sloc_321"],
|
105
73
|
* })
|
106
|
-
*
|
107
|
-
* // do something with the stock locations or return them
|
108
|
-
* }
|
109
74
|
* ```
|
110
75
|
*
|
111
76
|
* To specify relations that should be retrieved within the stock locations:
|
112
77
|
*
|
113
78
|
* ```ts
|
114
|
-
*
|
115
|
-
*
|
116
|
-
*
|
117
|
-
*
|
118
|
-
*
|
119
|
-
*
|
120
|
-
*
|
121
|
-
*
|
122
|
-
*
|
123
|
-
* }, {
|
124
|
-
* relations: ["address"]
|
125
|
-
* })
|
126
|
-
*
|
127
|
-
* // do something with the stock locations or return them
|
128
|
-
* }
|
79
|
+
* const [stockLocations, count] =
|
80
|
+
* await stockLocationModuleService.list(
|
81
|
+
* {
|
82
|
+
* id: ["sloc_123", "sloc_321"],
|
83
|
+
* },
|
84
|
+
* {
|
85
|
+
* relations: ["address"],
|
86
|
+
* }
|
87
|
+
* )
|
129
88
|
* ```
|
130
89
|
*
|
131
90
|
* By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
132
91
|
*
|
133
92
|
* ```ts
|
134
|
-
*
|
135
|
-
*
|
136
|
-
*
|
137
|
-
*
|
138
|
-
*
|
139
|
-
*
|
140
|
-
*
|
141
|
-
*
|
142
|
-
*
|
143
|
-
*
|
144
|
-
*
|
145
|
-
* skip,
|
146
|
-
* take
|
147
|
-
* })
|
148
|
-
*
|
149
|
-
* // do something with the stock locations or return them
|
150
|
-
* }
|
93
|
+
* const [stockLocations, count] =
|
94
|
+
* await stockLocationModuleService.list(
|
95
|
+
* {
|
96
|
+
* id: ["sloc_123", "sloc_321"],
|
97
|
+
* },
|
98
|
+
* {
|
99
|
+
* relations: ["address"],
|
100
|
+
* take: 20,
|
101
|
+
* skip: 2,
|
102
|
+
* }
|
103
|
+
* )
|
151
104
|
* ```
|
152
105
|
*/
|
153
106
|
listAndCount(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<[StockLocationDTO[], number]>;
|
154
107
|
/**
|
155
|
-
* This method
|
108
|
+
* This method retrieves a stock location by its ID.
|
156
109
|
*
|
157
|
-
* @param {string} id - The ID of the stock location
|
158
|
-
* @param {FindConfig<StockLocationDTO>} config -
|
159
|
-
* The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
110
|
+
* @param {string} id - The ID of the stock location.
|
111
|
+
* @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
|
160
112
|
* attributes or relations associated with a stock location.
|
161
113
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
162
|
-
* @returns {Promise<StockLocationDTO>} The stock location
|
114
|
+
* @returns {Promise<StockLocationDTO>} The retrieved stock location.
|
163
115
|
*
|
164
116
|
* @example
|
165
|
-
*
|
166
|
-
*
|
167
|
-
* ```ts
|
168
|
-
* import {
|
169
|
-
* initialize as initializeStockLocationModule,
|
170
|
-
* } from "@medusajs/stock-location"
|
171
|
-
*
|
172
|
-
* async function retrieveStockLocation (id: string) {
|
173
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
174
|
-
*
|
175
|
-
* const stockLocation = await stockLocationModule.retrieve(id)
|
176
|
-
*
|
177
|
-
* // do something with the stock location or return it
|
178
|
-
* }
|
179
|
-
* ```
|
180
|
-
*
|
181
|
-
* To specify relations that should be retrieved:
|
182
|
-
*
|
183
|
-
* ```ts
|
184
|
-
* import {
|
185
|
-
* initialize as initializeStockLocationModule,
|
186
|
-
* } from "@medusajs/stock-location"
|
187
|
-
*
|
188
|
-
* async function retrieveStockLocation (id: string) {
|
189
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
190
|
-
*
|
191
|
-
* const stockLocation = await stockLocationModule.retrieve(id, {
|
192
|
-
* relations: ["address"]
|
193
|
-
* })
|
194
|
-
*
|
195
|
-
* // do something with the stock location or return it
|
196
|
-
* }
|
197
|
-
* ```
|
117
|
+
* const stockLocation =
|
118
|
+
* await stockLocationModuleService.retrieve("sloc_123")
|
198
119
|
*/
|
199
120
|
retrieve(id: string, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO>;
|
200
121
|
/**
|
201
|
-
* This method
|
122
|
+
* This method creates a stock location.
|
202
123
|
*
|
203
|
-
* @param {CreateStockLocationInput} input - The
|
124
|
+
* @param {CreateStockLocationInput} input - The stock location to create.
|
204
125
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
205
|
-
* @returns {Promise<StockLocationDTO>} The created stock location
|
126
|
+
* @returns {Promise<StockLocationDTO>} The created stock location.
|
206
127
|
*
|
207
128
|
* @example
|
208
|
-
*
|
209
|
-
*
|
210
|
-
*
|
211
|
-
*
|
212
|
-
*
|
213
|
-
*
|
129
|
+
* const stockLocation = await stockLocationModuleService.create(
|
130
|
+
* {
|
131
|
+
* name: "Warehouse",
|
132
|
+
* address: {
|
133
|
+
* address_1: "1855 Powder Mill Rd",
|
134
|
+
* country_code: "us",
|
135
|
+
* },
|
136
|
+
* }
|
137
|
+
* )
|
138
|
+
*/
|
139
|
+
create(input: CreateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
140
|
+
/**
|
141
|
+
* This method creates stock locations.
|
214
142
|
*
|
215
|
-
*
|
216
|
-
*
|
217
|
-
*
|
143
|
+
* @param {CreateStockLocationInput[]} input - The stock locations to create.
|
144
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
145
|
+
* @returns {Promise<StockLocationDTO[]>} The created stock locations.
|
218
146
|
*
|
219
|
-
*
|
220
|
-
*
|
147
|
+
* @example
|
148
|
+
* const stockLocations =
|
149
|
+
* await stockLocationModuleService.create([
|
150
|
+
* {
|
151
|
+
* name: "Warehouse",
|
152
|
+
* address: {
|
153
|
+
* address_1: "1855 Powder Mill Rd",
|
154
|
+
* country_code: "us",
|
155
|
+
* },
|
156
|
+
* },
|
157
|
+
* {
|
158
|
+
* name: "Warehouse 2",
|
159
|
+
* address_id: "laddr_123",
|
160
|
+
* },
|
161
|
+
* ])
|
221
162
|
*/
|
222
|
-
create(input: CreateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
223
163
|
create(input: CreateStockLocationInput[], context?: Context): Promise<StockLocationDTO[]>;
|
164
|
+
/**
|
165
|
+
* This method updates or creates stock location service nexts if they don't exist.
|
166
|
+
*
|
167
|
+
* @param {Partial<UpdateStockLocationNextInput>[]} data - The list of Make all properties in t optional
|
168
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
169
|
+
* @returns {Promise<StockLocationDTO[]>} The created or updated stock location service nexts.
|
170
|
+
*
|
171
|
+
* @example
|
172
|
+
* {example-code}
|
173
|
+
*/
|
224
174
|
upsert(data: UpsertStockLocationInput[], sharedContext?: Context): Promise<StockLocationDTO[]>;
|
175
|
+
/**
|
176
|
+
* This method updates or creates a stock location service next if it doesn't exist.
|
177
|
+
*
|
178
|
+
* @param {Partial<UpdateStockLocationNextInput>} data - Make all properties in T optional
|
179
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
180
|
+
* @returns {Promise<StockLocationDTO>} The created or updated stock location service next.
|
181
|
+
*
|
182
|
+
* @example
|
183
|
+
* {example-code}
|
184
|
+
*/
|
225
185
|
upsert(data: UpsertStockLocationInput, sharedContext?: Context): Promise<StockLocationDTO>;
|
226
186
|
/**
|
227
|
-
* This method
|
187
|
+
* This method updates existing stock locations.
|
228
188
|
*
|
229
|
-
* @param {
|
230
|
-
* @param {UpdateStockLocationInput} input - The attributes to update in the stock location.
|
189
|
+
* @param {UpdateStockLocationNextInput[]} input - The attributes to update in the stock locations.
|
231
190
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
232
|
-
* @returns {Promise<StockLocationDTO>} The stock
|
191
|
+
* @returns {Promise<StockLocationDTO[]>} The updated stock locations.
|
233
192
|
*
|
234
193
|
* @example
|
235
|
-
*
|
236
|
-
*
|
237
|
-
*
|
238
|
-
*
|
239
|
-
*
|
240
|
-
*
|
194
|
+
* const stockLocations =
|
195
|
+
* await stockLocationModuleService.update([
|
196
|
+
* {
|
197
|
+
* id: "sloc_123",
|
198
|
+
* name: "Warehouse",
|
199
|
+
* },
|
200
|
+
* {
|
201
|
+
* id: "sloc_321",
|
202
|
+
* address_id: "laddr_123",
|
203
|
+
* },
|
204
|
+
* ])
|
205
|
+
*/
|
206
|
+
update(id: string, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
207
|
+
/**
|
208
|
+
* This method updates existing stock locations matching the specified filters.
|
241
209
|
*
|
242
|
-
*
|
243
|
-
*
|
244
|
-
*
|
210
|
+
* @param {FilterableStockLocationProps} selector - The filters specifying which stock locations to update.
|
211
|
+
* @param {UpdateStockLocationInput} input - The attributes to update in the stock locations.
|
212
|
+
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
213
|
+
* @returns {Promise<StockLocationDTO[]>} The updated stock locations.
|
245
214
|
*
|
246
|
-
*
|
247
|
-
*
|
215
|
+
* @example
|
216
|
+
* const stockLocations =
|
217
|
+
* await stockLocationModuleService.update(
|
218
|
+
* {
|
219
|
+
* name: "Warehouse",
|
220
|
+
* },
|
221
|
+
* {
|
222
|
+
* address_id: "laddr_123",
|
223
|
+
* }
|
224
|
+
* )
|
248
225
|
*/
|
249
|
-
update(id: string, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
|
250
226
|
update(selector: FilterableStockLocationProps, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO[]>;
|
251
227
|
/**
|
252
|
-
* This method
|
228
|
+
* This method deletes a stock location by its ID.
|
253
229
|
*
|
254
230
|
* @param {string} id - The ID of the stock location.
|
255
231
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
256
|
-
* @returns {Promise<void>} Resolves when the stock location is successfully
|
232
|
+
* @returns {Promise<void>} Resolves when the stock location is deleted successfully.
|
257
233
|
*
|
258
234
|
* @example
|
259
|
-
*
|
260
|
-
* initialize as initializeStockLocationModule,
|
261
|
-
* } from "@medusajs/stock-location"
|
262
|
-
*
|
263
|
-
* async function deleteStockLocation (id:string) {
|
264
|
-
* const stockLocationModule = await initializeStockLocationModule({})
|
265
|
-
*
|
266
|
-
* await stockLocationModule.delete(id)
|
267
|
-
* }
|
235
|
+
* await stockLocationModuleService.delete("sloc_123")
|
268
236
|
*/
|
269
237
|
delete(id: string, context?: Context): Promise<void>;
|
270
238
|
/**
|
271
|
-
*
|
272
|
-
*
|
273
|
-
* @param
|
274
|
-
* @param
|
239
|
+
* This method soft deletes stock locations by their IDs.
|
240
|
+
*
|
241
|
+
* @param {string[]} stockLocationIds - The IDs of the stock locations.
|
242
|
+
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
243
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
244
|
+
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted, such as the ID of the associated address.
|
245
|
+
* The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`, and its value is an array of strings, each being the ID of a record associated
|
246
|
+
* with the stock location through this relation, such as the IDs of associated address.
|
247
|
+
*
|
248
|
+
* If there are no related records, the promise resolves to `void`.
|
249
|
+
*
|
250
|
+
* @example
|
251
|
+
* await stockLocationModuleService.softDelete([
|
252
|
+
* "sloc_123",
|
253
|
+
* "sloc_321",
|
254
|
+
* ])
|
275
255
|
*/
|
276
256
|
softDelete<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
277
257
|
/**
|
278
|
-
* This method
|
258
|
+
* This method restores soft deleted stock locations by their IDs.
|
279
259
|
*
|
280
|
-
* @param {string[]} stockLocationIds - The
|
281
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config -
|
282
|
-
*
|
283
|
-
* @
|
260
|
+
* @param {string[]} stockLocationIds - The IDs of the stock locations.
|
261
|
+
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the stock location. You can pass to its `returnLinkableKeys`
|
262
|
+
* property any of the stock location's relation attribute names, such as `address`.
|
263
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
264
|
+
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated address.
|
265
|
+
* The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`,
|
266
|
+
* and its value is an array of strings, each being the ID of the record associated with the stock location through this relation,
|
267
|
+
* such as the ID of associated address.
|
268
|
+
*
|
269
|
+
* If there are no related records restored, the promise resolves to `void`.
|
270
|
+
*
|
271
|
+
* @example
|
272
|
+
* await stockLocationModuleService.restore([
|
273
|
+
* "sloc_123",
|
274
|
+
* "sloc_321",
|
275
|
+
* ])
|
284
276
|
*/
|
285
277
|
restore<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
286
278
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service-next.d.ts","sourceRoot":"","sources":["../../src/stock-location/service-next.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EAExB,wBAAwB,EACzB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;
|
1
|
+
{"version":3,"file":"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O,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACrD,gBAAgB,EAAE,MAAM,EAAE,EAC1B,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
|
@@ -1,18 +1,60 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
|
+
/**
|
3
|
+
* The store details.
|
4
|
+
*/
|
2
5
|
export interface StoreDTO {
|
6
|
+
/**
|
7
|
+
* The ID of the store.
|
8
|
+
*/
|
3
9
|
id: string;
|
10
|
+
/**
|
11
|
+
* The name of the store.
|
12
|
+
*/
|
4
13
|
name: string;
|
14
|
+
/**
|
15
|
+
* The supported currency codes of the store.
|
16
|
+
*/
|
5
17
|
supported_currency_codes: string[];
|
18
|
+
/**
|
19
|
+
* The default currency code of the store.
|
20
|
+
*/
|
6
21
|
default_currency_code?: string;
|
22
|
+
/**
|
23
|
+
* The associated default sales channel's ID.
|
24
|
+
*/
|
7
25
|
default_sales_channel_id?: string;
|
26
|
+
/**
|
27
|
+
* The associated default region's ID.
|
28
|
+
*/
|
8
29
|
default_region_id?: string;
|
30
|
+
/**
|
31
|
+
* The associated default location's ID.
|
32
|
+
*/
|
9
33
|
default_location_id?: string;
|
34
|
+
/**
|
35
|
+
* Holds custom data in key-value pairs.
|
36
|
+
*/
|
10
37
|
metadata: Record<string, any> | null;
|
38
|
+
/**
|
39
|
+
* The created at of the store.
|
40
|
+
*/
|
11
41
|
created_at: string;
|
42
|
+
/**
|
43
|
+
* The updated at of the store.
|
44
|
+
*/
|
12
45
|
updated_at: string;
|
13
46
|
}
|
47
|
+
/**
|
48
|
+
* The filters to apply on the retrieved stores.
|
49
|
+
*/
|
14
50
|
export interface FilterableStoreProps extends BaseFilterable<FilterableStoreProps> {
|
51
|
+
/**
|
52
|
+
* The IDs to filter the stores by.
|
53
|
+
*/
|
15
54
|
id?: string | string[];
|
55
|
+
/**
|
56
|
+
* Filter stores by their names.
|
57
|
+
*/
|
16
58
|
name?: string | string[];
|
17
59
|
}
|
18
60
|
//# sourceMappingURL=store.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/common/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/common/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,wBAAwB,EAAE,MAAM,EAAE,CAAA;IAElC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAEpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB"}
|