@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240405154416

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/dist/auth/common/auth-user.d.ts +21 -16
  2. package/dist/auth/common/auth-user.d.ts.map +1 -1
  3. package/dist/auth/common/provider.d.ts +28 -15
  4. package/dist/auth/common/provider.d.ts.map +1 -1
  5. package/dist/auth/service.d.ts +137 -75
  6. package/dist/auth/service.d.ts.map +1 -1
  7. package/dist/bundles.d.ts +2 -0
  8. package/dist/bundles.d.ts.map +1 -1
  9. package/dist/bundles.js +3 -1
  10. package/dist/bundles.js.map +1 -1
  11. package/dist/cart/common.d.ts +443 -62
  12. package/dist/cart/common.d.ts.map +1 -1
  13. package/dist/cart/mutations.d.ts +483 -0
  14. package/dist/cart/mutations.d.ts.map +1 -1
  15. package/dist/cart/mutations.js.map +1 -1
  16. package/dist/cart/service.d.ts +1607 -0
  17. package/dist/cart/service.d.ts.map +1 -1
  18. package/dist/common/index.d.ts +1 -0
  19. package/dist/common/index.d.ts.map +1 -1
  20. package/dist/common/index.js +1 -0
  21. package/dist/common/index.js.map +1 -1
  22. package/dist/common/rule.d.ts +2 -0
  23. package/dist/common/rule.d.ts.map +1 -0
  24. package/dist/common/rule.js +3 -0
  25. package/dist/common/rule.js.map +1 -0
  26. package/dist/customer/service.d.ts +445 -197
  27. package/dist/customer/service.d.ts.map +1 -1
  28. package/dist/file/common.d.ts +14 -0
  29. package/dist/file/common.d.ts.map +1 -0
  30. package/dist/file/common.js +3 -0
  31. package/dist/file/common.js.map +1 -0
  32. package/dist/file/index.d.ts +4 -0
  33. package/dist/file/index.d.ts.map +1 -0
  34. package/dist/file/index.js +20 -0
  35. package/dist/file/index.js.map +1 -0
  36. package/dist/file/mutations.d.ts +18 -0
  37. package/dist/file/mutations.d.ts.map +1 -0
  38. package/dist/file/mutations.js +3 -0
  39. package/dist/file/mutations.js.map +1 -0
  40. package/dist/file/service.d.ts +76 -0
  41. package/dist/file/service.d.ts.map +1 -0
  42. package/dist/file/service.js +3 -0
  43. package/dist/file/service.js.map +1 -0
  44. package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
  45. package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
  46. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
  47. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
  48. package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
  49. package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
  50. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
  51. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
  52. package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
  53. package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
  54. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
  55. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
  56. package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
  57. package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
  58. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
  59. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
  60. package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
  61. package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
  62. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
  63. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
  64. package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
  65. package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
  66. package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
  67. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
  68. package/dist/http/fulfillment/admin/fulfillment.js +3 -0
  69. package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
  70. package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
  71. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
  72. package/dist/http/fulfillment/admin/geo-zone.js +3 -0
  73. package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
  74. package/dist/http/fulfillment/admin/index.d.ts +13 -0
  75. package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
  76. package/dist/http/fulfillment/admin/index.js +29 -0
  77. package/dist/http/fulfillment/admin/index.js.map +1 -0
  78. package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
  79. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
  80. package/dist/http/fulfillment/admin/service-zone.js +3 -0
  81. package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
  82. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
  83. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
  84. package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
  85. package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
  86. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
  87. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
  88. package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
  89. package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
  90. package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
  91. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
  92. package/dist/http/fulfillment/admin/shipping-option.js +3 -0
  93. package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
  94. package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
  95. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
  96. package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
  97. package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
  98. package/dist/http/fulfillment/index.d.ts +2 -0
  99. package/dist/http/fulfillment/index.d.ts.map +1 -0
  100. package/dist/http/fulfillment/index.js +18 -0
  101. package/dist/http/fulfillment/index.js.map +1 -0
  102. package/dist/http/index.d.ts +2 -0
  103. package/dist/http/index.d.ts.map +1 -0
  104. package/dist/http/index.js +18 -0
  105. package/dist/http/index.js.map +1 -0
  106. package/dist/index.d.ts +2 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +2 -0
  109. package/dist/index.js.map +1 -1
  110. package/dist/inventory/common/inventory-item.d.ts +55 -64
  111. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  112. package/dist/inventory/common/inventory-level.d.ts +37 -37
  113. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  114. package/dist/inventory/common/reservation-item.d.ts +34 -44
  115. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  116. package/dist/inventory/service-next.d.ts +596 -534
  117. package/dist/inventory/service-next.d.ts.map +1 -1
  118. package/dist/payment/common.d.ts +174 -53
  119. package/dist/payment/common.d.ts.map +1 -1
  120. package/dist/payment/common.js +3 -3
  121. package/dist/payment/common.js.map +1 -1
  122. package/dist/payment/mutations.d.ts +58 -17
  123. package/dist/payment/mutations.d.ts.map +1 -1
  124. package/dist/payment/provider.d.ts +128 -43
  125. package/dist/payment/provider.d.ts.map +1 -1
  126. package/dist/payment/provider.js.map +1 -1
  127. package/dist/payment/service.d.ts +460 -39
  128. package/dist/payment/service.d.ts.map +1 -1
  129. package/dist/pricing/common/price-list.d.ts +2 -2
  130. package/dist/pricing/common/price-set.d.ts +6 -4
  131. package/dist/pricing/common/price-set.d.ts.map +1 -1
  132. package/dist/pricing/service.d.ts +731 -1695
  133. package/dist/pricing/service.d.ts.map +1 -1
  134. package/dist/promotion/common/application-method.d.ts +153 -0
  135. package/dist/promotion/common/application-method.d.ts.map +1 -1
  136. package/dist/promotion/common/campaign-budget.d.ts +37 -0
  137. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  138. package/dist/promotion/common/campaign.d.ts +36 -0
  139. package/dist/promotion/common/campaign.d.ts.map +1 -1
  140. package/dist/promotion/common/compute-actions.d.ts +135 -0
  141. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  142. package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
  143. package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
  144. package/dist/promotion/common/promotion-rule.d.ts +77 -0
  145. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  146. package/dist/promotion/common/promotion.d.ts +100 -0
  147. package/dist/promotion/common/promotion.d.ts.map +1 -1
  148. package/dist/promotion/mutations.d.ts +84 -0
  149. package/dist/promotion/mutations.d.ts.map +1 -1
  150. package/dist/promotion/service.d.ts +786 -0
  151. package/dist/promotion/service.d.ts.map +1 -1
  152. package/dist/stock-location/common.d.ts +14 -0
  153. package/dist/stock-location/common.d.ts.map +1 -1
  154. package/dist/stock-location/service-next.d.ts +178 -186
  155. package/dist/stock-location/service-next.d.ts.map +1 -1
  156. package/dist/store/common/store.d.ts +42 -0
  157. package/dist/store/common/store.d.ts.map +1 -1
  158. package/dist/store/mutations/store.d.ts +75 -0
  159. package/dist/store/mutations/store.d.ts.map +1 -1
  160. package/dist/store/service.d.ts +113 -75
  161. package/dist/store/service.d.ts.map +1 -1
  162. package/dist/tax/common.d.ts +298 -10
  163. package/dist/tax/common.d.ts.map +1 -1
  164. package/dist/tax/mutations.d.ts +157 -0
  165. package/dist/tax/mutations.d.ts.map +1 -1
  166. package/dist/tax/provider.d.ts +126 -0
  167. package/dist/tax/provider.d.ts.map +1 -1
  168. package/dist/tax/service.d.ts +600 -0
  169. package/dist/tax/service.d.ts.map +1 -1
  170. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/promotion/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/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EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEpE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBAAmB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACjE,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,EAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EAClD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,gBAAgB,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EAC9D,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,EAC9B,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"}
@@ -390,8 +390,22 @@ export type UpdateStockLocationInput = {
390
390
  */
391
391
  metadata?: Record<string, unknown>;
392
392
  };
393
+ /**
394
+ * @interface
395
+ *
396
+ * The attributes to update in a stock location.
397
+ */
393
398
  export type UpdateStockLocationNextInput = UpdateStockLocationInput & {
399
+ /**
400
+ * The ID of the stock location.
401
+ */
394
402
  id: string;
395
403
  };
404
+ /**
405
+ * @interface
406
+ *
407
+ * A stock location to create or update. If the `id` property isn't provided,
408
+ * the stock location is created. In that case, the `name` property is required.
409
+ */
396
410
  export type UpsertStockLocationInput = Partial<UpdateStockLocationNextInput>;
397
411
  //# sourceMappingURL=common.d.ts.map
@@ -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,CA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;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 stock location's module.
7
+ * The main service interface for the Stock Location Module.
8
8
  */
9
9
  export interface IStockLocationServiceNext extends IModuleService {
10
10
  /**
11
- * This method is used to retrieve a paginated list of stock locations based on optional filters and configuration.
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
- * @return {Promise<StockLocationDTO[]>} The list of stock locations.
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
- * import {
25
- * initialize as initializeStockLocationModule,
26
- * } from "@medusajs/stock-location"
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
- * import {
43
- * initialize as initializeStockLocationModule,
44
- * } from "@medusajs/stock-location"
45
- *
46
- * async function listStockLocations (ids: string[]) {
47
- * const stockLocationModule = await initializeStockLocationModule({})
48
- *
49
- * const stockLocations = await stockLocationModule.list({
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
- * import {
63
- * initialize as initializeStockLocationModule,
64
- * } from "@medusajs/stock-location"
65
- *
66
- * async function listStockLocations (ids: string[], skip: number, take: number) {
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
- * skip,
74
- * take
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 is used to retrieve a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
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
- * @return {Promise<[StockLocationDTO[], number]>} The list of stock locations along with the total count.
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
- * import {
97
- * initialize as initializeStockLocationModule,
98
- * } from "@medusajs/stock-location"
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
- * import {
115
- * initialize as initializeStockLocationModule,
116
- * } from "@medusajs/stock-location"
117
- *
118
- * async function listStockLocations (ids: string[]) {
119
- * const stockLocationModule = await initializeStockLocationModule({})
120
- *
121
- * const [stockLocations, count] = await stockLocationModule.listAndCount({
122
- * id: ids
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
- * import {
135
- * initialize as initializeStockLocationModule,
136
- * } from "@medusajs/stock-location"
137
- *
138
- * async function listStockLocations (ids: string[], skip: number, take: number) {
139
- * const stockLocationModule = await initializeStockLocationModule({})
140
- *
141
- * const [stockLocations, count] = await stockLocationModule.listAndCount({
142
- * id: ids
143
- * }, {
144
- * relations: ["address"],
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 is used to retrieve a stock location by its ID
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's details.
114
+ * @returns {Promise<StockLocationDTO>} The retrieved stock location.
163
115
  *
164
116
  * @example
165
- * A simple example that retrieves a inventory item by its ID:
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 is used to create a stock location.
122
+ * This method creates a stock location.
202
123
  *
203
- * @param {CreateStockLocationInput} input - The details of the stock location to create.
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's details.
126
+ * @returns {Promise<StockLocationDTO>} The created stock location.
206
127
  *
207
128
  * @example
208
- * import {
209
- * initialize as initializeStockLocationModule,
210
- * } from "@medusajs/stock-location"
211
- *
212
- * async function createStockLocation (name: string) {
213
- * const stockLocationModule = await initializeStockLocationModule({})
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
- * const stockLocation = await stockLocationModule.create({
216
- * name
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
- * // do something with the stock location or return it
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 is used to update a stock location.
187
+ * This method updates existing stock locations.
228
188
  *
229
- * @param {string} id - The ID of the stock location.
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 location's details.
191
+ * @returns {Promise<StockLocationDTO[]>} The updated stock locations.
233
192
  *
234
193
  * @example
235
- * import {
236
- * initialize as initializeStockLocationModule,
237
- * } from "@medusajs/stock-location"
238
- *
239
- * async function updateStockLocation (id:string, name: string) {
240
- * const stockLocationModule = await initializeStockLocationModule({})
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
- * const stockLocation = await stockLocationModule.update(id, {
243
- * name
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
- * // do something with the stock location or return it
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 is used to delete a stock location.
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 deleted.
232
+ * @returns {Promise<void>} Resolves when the stock location is deleted successfully.
257
233
  *
258
234
  * @example
259
- * import {
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
- * Soft delete stock locations
272
- * @param stockLocationIds
273
- * @param config
274
- * @param sharedContext
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 is used to restore a stock location or multiple stock locations that were previously deleted using the {@link softDelete} method.
258
+ * This method restores soft deleted stock locations by their IDs.
279
259
  *
280
- * @param {string[]} stockLocationIds - The ID(s) of the stock location(s) to restore.
281
- * @param {RestoreReturn<TReturnableLinkableKeys>} config - Restore config
282
- * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
283
- * @returns {Promise<void>} Resolves when the stock location(s) are successfully restored.
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;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsEG;IAC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";
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;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,wBAAwB,EAAE,MAAM,EAAE,CAAA;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ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