@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.
Files changed (200) 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 +3 -0
  103. package/dist/http/index.d.ts.map +1 -0
  104. package/dist/http/index.js +19 -0
  105. package/dist/http/index.js.map +1 -0
  106. package/dist/http/stock-locations/common.d.ts +28 -0
  107. package/dist/http/stock-locations/common.d.ts.map +1 -0
  108. package/dist/http/stock-locations/common.js +3 -0
  109. package/dist/http/stock-locations/common.js.map +1 -0
  110. package/dist/http/stock-locations/index.d.ts +2 -0
  111. package/dist/http/stock-locations/index.d.ts.map +1 -0
  112. package/dist/http/stock-locations/index.js +18 -0
  113. package/dist/http/stock-locations/index.js.map +1 -0
  114. package/dist/index.d.ts +4 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +4 -1
  117. package/dist/index.js.map +1 -1
  118. package/dist/inventory/common/inventory-item.d.ts +55 -64
  119. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  120. package/dist/inventory/common/inventory-level.d.ts +37 -37
  121. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  122. package/dist/inventory/common/reservation-item.d.ts +34 -44
  123. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  124. package/dist/inventory/service-next.d.ts +596 -534
  125. package/dist/inventory/service-next.d.ts.map +1 -1
  126. package/dist/payment/common.d.ts +174 -53
  127. package/dist/payment/common.d.ts.map +1 -1
  128. package/dist/payment/common.js +3 -3
  129. package/dist/payment/common.js.map +1 -1
  130. package/dist/payment/mutations.d.ts +58 -17
  131. package/dist/payment/mutations.d.ts.map +1 -1
  132. package/dist/payment/provider.d.ts +128 -43
  133. package/dist/payment/provider.d.ts.map +1 -1
  134. package/dist/payment/provider.js.map +1 -1
  135. package/dist/payment/service.d.ts +460 -39
  136. package/dist/payment/service.d.ts.map +1 -1
  137. package/dist/pricing/common/price-list.d.ts +2 -2
  138. package/dist/pricing/common/price-set.d.ts +6 -4
  139. package/dist/pricing/common/price-set.d.ts.map +1 -1
  140. package/dist/pricing/service.d.ts +731 -1695
  141. package/dist/pricing/service.d.ts.map +1 -1
  142. package/dist/product/common.d.ts +4 -0
  143. package/dist/product/common.d.ts.map +1 -1
  144. package/dist/product-category/repository.d.ts +2 -1
  145. package/dist/product-category/repository.d.ts.map +1 -1
  146. package/dist/promotion/common/application-method.d.ts +153 -0
  147. package/dist/promotion/common/application-method.d.ts.map +1 -1
  148. package/dist/promotion/common/campaign-budget.d.ts +37 -0
  149. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  150. package/dist/promotion/common/campaign.d.ts +36 -0
  151. package/dist/promotion/common/campaign.d.ts.map +1 -1
  152. package/dist/promotion/common/compute-actions.d.ts +135 -0
  153. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  154. package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
  155. package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
  156. package/dist/promotion/common/promotion-rule.d.ts +77 -0
  157. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  158. package/dist/promotion/common/promotion.d.ts +100 -0
  159. package/dist/promotion/common/promotion.d.ts.map +1 -1
  160. package/dist/promotion/mutations.d.ts +84 -0
  161. package/dist/promotion/mutations.d.ts.map +1 -1
  162. package/dist/promotion/service.d.ts +786 -0
  163. package/dist/promotion/service.d.ts.map +1 -1
  164. package/dist/region/common.d.ts +9 -0
  165. package/dist/region/common.d.ts.map +1 -1
  166. package/dist/region/mutations.d.ts +11 -3
  167. package/dist/region/mutations.d.ts.map +1 -1
  168. package/dist/region/service.d.ts +210 -85
  169. package/dist/region/service.d.ts.map +1 -1
  170. package/dist/stock-location/common.d.ts +14 -0
  171. package/dist/stock-location/common.d.ts.map +1 -1
  172. package/dist/stock-location/service-next.d.ts +178 -186
  173. package/dist/stock-location/service-next.d.ts.map +1 -1
  174. package/dist/store/common/store.d.ts +42 -0
  175. package/dist/store/common/store.d.ts.map +1 -1
  176. package/dist/store/mutations/store.d.ts +75 -0
  177. package/dist/store/mutations/store.d.ts.map +1 -1
  178. package/dist/store/service.d.ts +113 -75
  179. package/dist/store/service.d.ts.map +1 -1
  180. package/dist/tax/common.d.ts +298 -10
  181. package/dist/tax/common.d.ts.map +1 -1
  182. package/dist/tax/mutations.d.ts +157 -0
  183. package/dist/tax/mutations.d.ts.map +1 -1
  184. package/dist/tax/provider.d.ts +126 -0
  185. package/dist/tax/provider.d.ts.map +1 -1
  186. package/dist/tax/service.d.ts +600 -0
  187. package/dist/tax/service.d.ts.map +1 -1
  188. package/dist/workflows/index.d.ts +2 -0
  189. package/dist/workflows/index.d.ts.map +1 -0
  190. package/dist/workflows/index.js +18 -0
  191. package/dist/workflows/index.js.map +1 -0
  192. package/dist/workflows/stock-locations/index.d.ts +2 -0
  193. package/dist/workflows/stock-locations/index.d.ts.map +1 -0
  194. package/dist/workflows/stock-locations/index.js +18 -0
  195. package/dist/workflows/stock-locations/index.js.map +1 -0
  196. package/dist/workflows/stock-locations/mutations.d.ts +8 -0
  197. package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
  198. package/dist/workflows/stock-locations/mutations.js +3 -0
  199. package/dist/workflows/stock-locations/mutations.js.map +1 -0
  200. 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/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,iBAAi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a,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"}
@@ -23,8 +23,17 @@ export interface RegionDTO {
23
23
  * The countries of the region.
24
24
  */
25
25
  countries: RegionCountryDTO[];
26
+ /**
27
+ * Holds custom data in key-value pairs.
28
+ */
26
29
  metadata?: Record<string, any>;
30
+ /**
31
+ * The date the region was created.
32
+ */
27
33
  created_at: string;
34
+ /**
35
+ * The date the region was updated.
36
+ */
28
37
  updated_at: string;
29
38
  }
30
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/region/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAA;IAExB;;OAEG;IACH,SAAS,EAAE,gBAAgB,EAAE,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW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,WAAW,CAAC,MAAM,CAAC,CAAA;IAEnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE5C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAEzE;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,cAAc,CAAC,4BAA4B,CAAC;IACpD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CACjC"}
@@ -23,21 +23,26 @@ export interface CreateRegionDTO {
23
23
  */
24
24
  metadata?: Record<string, unknown>;
25
25
  }
26
+ /**
27
+ * The attributes in the region to be created or updated.
28
+ */
26
29
  export interface UpsertRegionDTO {
27
30
  /**
28
31
  * The id of the region in the case of an update
29
32
  */
30
33
  id?: string;
31
34
  /**
32
- * The target name of the region
35
+ * The target name of the region. Required when
36
+ * creating a region.
33
37
  */
34
38
  name?: string;
35
39
  /**
36
- * The currency code of the region.
40
+ * The currency code of the region. Required when
41
+ * creating a region.
37
42
  */
38
43
  currency_code?: string;
39
44
  /**
40
- * Setting to indicate whether taxes need to be applied automatically
45
+ * Setting to indicate whether taxes need to be applied automatically.
41
46
  */
42
47
  automatic_taxes?: boolean;
43
48
  /**
@@ -49,6 +54,9 @@ export interface UpsertRegionDTO {
49
54
  */
50
55
  metadata?: Record<string, unknown>;
51
56
  }
57
+ /**
58
+ * The attributes to update in the region.
59
+ */
52
60
  export interface UpdateRegionDTO {
53
61
  /**
54
62
  * The target name of the region
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/region/mutations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/region/mutations.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
@@ -5,7 +5,7 @@ import { Context } from "../shared-context";
5
5
  import { FilterableRegionCountryProps, FilterableRegionProps, RegionCountryDTO, RegionDTO } from "./common";
6
6
  import { CreateRegionDTO, UpdateRegionDTO, UpsertRegionDTO } from "./mutations";
7
7
  /**
8
- * The main service interface for the region module.
8
+ * The main service interface for the Region Module.
9
9
  */
10
10
  export interface IRegionModuleService extends IModuleService {
11
11
  /**
@@ -16,7 +16,18 @@ export interface IRegionModuleService extends IModuleService {
16
16
  * @returns {Promise<RegionDTO[]>} The created regions.
17
17
  *
18
18
  * @example
19
- * {example-code}
19
+ * const region = await regionModuleService.create([
20
+ * {
21
+ * name: "Europe",
22
+ * currency_code: "eur",
23
+ * countries: ["dk", "de", "fr"],
24
+ * },
25
+ * {
26
+ * name: "United States of America",
27
+ * currency_code: "usd",
28
+ * countries: ["us"],
29
+ * },
30
+ * ])
20
31
  */
21
32
  create(data: CreateRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
22
33
  /**
@@ -27,59 +38,89 @@ export interface IRegionModuleService extends IModuleService {
27
38
  * @returns {Promise<RegionDTO>} The created region.
28
39
  *
29
40
  * @example
30
- * {example-code}
41
+ * const region = await regionModuleService.create({
42
+ * name: "Europe",
43
+ * currency_code: "eur",
44
+ * countries: ["dk", "de", "fr"],
45
+ * })
31
46
  */
32
47
  create(data: CreateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
33
48
  /**
34
- * This method updates existing regions, or creates new ones if they don't exist.
49
+ * This method updates or creates regions if they don't exist.
35
50
  *
36
- * @param {UpsertRegionDTO[]} data - The attributes to update or create in each region.
37
- * @returns {Promise<RegionDTO[]>} The updated and created regions.
51
+ * @param {UpsertRegionDTO[]} data - The attributes in the regions to be created or updated.
52
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
53
+ * @returns {Promise<RegionDTO[]>} The created or updated regions.
38
54
  *
39
55
  * @example
40
- * {example-code}
56
+ * const region = await regionModuleService.upsert([
57
+ * {
58
+ * id: "reg_123",
59
+ * automatic_taxes: false,
60
+ * },
61
+ * {
62
+ * name: "Europe",
63
+ * currency_code: "eur",
64
+ * },
65
+ * ])
41
66
  */
42
67
  upsert(data: UpsertRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
43
68
  /**
44
- * This method updates an existing region, or creates a new one if it doesn't exist.
69
+ * This method updates or creates a region if it doesn't exist.
45
70
  *
46
- * @param {UpsertRegionDTO} data - The attributes to update or create for the region.
47
- * @returns {Promise<RegionDTO>} The updated or created region.
71
+ * @param {UpsertRegionDTO} data - The attributes in the region to be created or updated.
72
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
73
+ * @returns {Promise<RegionDTO>} The created or updated region.
48
74
  *
49
75
  * @example
50
- * {example-code}
76
+ * const region = await regionModuleService.upsert({
77
+ * id: "reg_123",
78
+ * automatic_taxes: false,
79
+ * })
51
80
  */
52
81
  upsert(data: UpsertRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
53
82
  /**
54
83
  * This method updates an existing region.
55
84
  *
56
- * @param {string} id - The region's ID.
57
- * @param {UpdatableRegionFields} data - The details to update in the region.
85
+ * @param {string} id - The ID of the region.
86
+ * @param {UpdateRegionDTO} data - The attributes to update in the region.
58
87
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
59
88
  * @returns {Promise<RegionDTO>} The updated region.
89
+ *
90
+ * @example
91
+ * const region = await regionModuleService.update("reg_123", {
92
+ * automatic_taxes: false,
93
+ * })
60
94
  */
61
95
  update(id: string, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
62
96
  /**
63
97
  * This method updates existing regions.
64
98
  *
65
- * @param {FilterableRegionProps} selector - The filters to specify which regions should be updated.
66
- * @param {UpdateRegionDTO} data - The details to update in the regions.
99
+ * @param {FilterableRegionProps} selector - The filters to apply on the retrieved regions.
100
+ * @param {UpdateRegionDTO} data - The attributes to update in the region.
67
101
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
68
102
  * @returns {Promise<RegionDTO[]>} The updated regions.
69
103
  *
70
104
  * @example
71
- * {example-code}
105
+ * const region = await regionModuleService.update(
106
+ * {
107
+ * name: "Europe",
108
+ * },
109
+ * {
110
+ * automatic_taxes: false,
111
+ * }
112
+ * )
72
113
  */
73
114
  update(selector: FilterableRegionProps, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO[]>;
74
115
  /**
75
116
  * This method deletes regions by their IDs.
76
117
  *
77
- * @param {string[]} ids - The list of IDs of regions to delete.
118
+ * @param {string[]} ids - The IDs of the region.
78
119
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
79
120
  * @returns {Promise<void>} Resolves when the regions are deleted.
80
121
  *
81
122
  * @example
82
- * {example-code}
123
+ * await regionModuleService.delete(["reg_123", "reg_321"])
83
124
  */
84
125
  delete(ids: string[], sharedContext?: Context): Promise<void>;
85
126
  /**
@@ -90,209 +131,293 @@ export interface IRegionModuleService extends IModuleService {
90
131
  * @returns {Promise<void>} Resolves when the region is deleted.
91
132
  *
92
133
  * @example
93
- * {example-code}
134
+ * await regionModuleService.delete("reg_123")
94
135
  */
95
136
  delete(id: string, sharedContext?: Context): Promise<void>;
96
137
  /**
97
138
  * This method retrieves a region by its ID.
98
139
  *
99
- * @param {string} id - The ID of the retrieve.
140
+ * @param {string} id - The ID of the region.
100
141
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
101
142
  * attributes or relations associated with a region.
102
143
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
103
144
  * @returns {Promise<RegionDTO>} The retrieved region.
104
145
  *
105
146
  * @example
106
- * A simple example that retrieves a {type name} by its ID:
147
+ * A simple example that retrieves a region by its ID:
107
148
  *
108
149
  * ```ts
109
- * {example-code}
150
+ * const region = await regionModuleService.retrieve("reg_123")
110
151
  * ```
111
152
  *
112
153
  * To specify relations that should be retrieved:
113
154
  *
114
155
  * ```ts
115
- * {example-code}
156
+ * const region = await regionModuleService.retrieve("reg_123", {
157
+ * relations: ["countries"],
158
+ * })
116
159
  * ```
117
- *
118
- *
119
160
  */
120
161
  retrieve(id: string, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO>;
121
162
  /**
122
163
  * This method retrieves a paginated list of regions based on optional filters and configuration.
123
164
  *
124
- * @param {FilterableRegionProps} filters - The filters to apply on the retrieved region.
165
+ * @param {FilterableRegionProps} filters - The filters to apply on the retrieved regions.
125
166
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
126
167
  * attributes or relations associated with a region.
127
168
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
128
169
  * @returns {Promise<RegionDTO[]>} The list of regions.
129
170
  *
130
171
  * @example
131
- * To retrieve a list of {type name} using their IDs:
172
+ * To retrieve a list of regions using their IDs:
132
173
  *
133
174
  * ```ts
134
- * {example-code}
175
+ * const regions = await regionModuleService.list({
176
+ * id: ["reg_123", "reg_321"],
177
+ * })
135
178
  * ```
136
179
  *
137
- * To specify relations that should be retrieved within the {type name}:
180
+ * To specify relations that should be retrieved within the regions:
138
181
  *
139
182
  * ```ts
140
- * {example-code}
183
+ * const regions = await regionModuleService.list(
184
+ * {
185
+ * id: ["reg_123", "reg_321"],
186
+ * },
187
+ * {
188
+ * relations: ["countries"],
189
+ * }
190
+ * )
141
191
  * ```
142
192
  *
143
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
193
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
144
194
  *
145
195
  * ```ts
146
- * {example-code}
196
+ * const regions = await regionModuleService.list(
197
+ * {
198
+ * id: ["reg_123", "reg_321"],
199
+ * },
200
+ * {
201
+ * relations: ["countries"],
202
+ * take: 20,
203
+ * skip: 2,
204
+ * }
205
+ * )
147
206
  * ```
148
- *
149
- *
150
207
  */
151
208
  list(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO[]>;
152
209
  /**
153
210
  * This method retrieves a paginated list of regions along with the total count of available regions satisfying the provided filters.
154
211
  *
155
- * @param {FilterableRegionProps} filters - The filters to apply on the retrieved region.
212
+ * @param {FilterableRegionProps} filters - The filters to apply on the retrieved regions.
156
213
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
157
214
  * attributes or relations associated with a region.
158
215
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
159
216
  * @returns {Promise<[RegionDTO[], number]>} The list of regions along with their total count.
160
217
  *
161
218
  * @example
162
- * To retrieve a list of {type name} using their IDs:
219
+ * To retrieve a list of regions using their IDs:
163
220
  *
164
221
  * ```ts
165
- * {example-code}
222
+ * const [regions, count] =
223
+ * await regionModuleService.listAndCount({
224
+ * id: ["reg_123", "reg_321"],
225
+ * })
166
226
  * ```
167
227
  *
168
- * To specify relations that should be retrieved within the {type name}:
228
+ * To specify relations that should be retrieved within the regions:
169
229
  *
170
230
  * ```ts
171
- * {example-code}
231
+ * const [regions, count] =
232
+ * await regionModuleService.listAndCount(
233
+ * {
234
+ * id: ["reg_123", "reg_321"],
235
+ * },
236
+ * {
237
+ * relations: ["countries"],
238
+ * }
239
+ * )
172
240
  * ```
173
241
  *
174
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
242
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
175
243
  *
176
244
  * ```ts
177
- * {example-code}
245
+ * const [regions, count] =
246
+ * await regionModuleService.listAndCount(
247
+ * {
248
+ * id: ["reg_123", "reg_321"],
249
+ * },
250
+ * {
251
+ * relations: ["countries"],
252
+ * take: 20,
253
+ * skip: 2,
254
+ * }
255
+ * )
178
256
  * ```
179
- *
180
- *
181
257
  */
182
258
  listAndCount(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<[RegionDTO[], number]>;
183
259
  /**
184
- * This method retrieves a country by its ID.
260
+ * This method retrieves a country by its 2 character ISO code.
185
261
  *
186
- * @param {string} countryId - The country's ID.
187
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
188
- * attributes or relations associated with a region country.
262
+ * @param {string} countryId - The country's ID, which is the 2 character ISO code.
263
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
264
+ * attributes or relations associated with a country.
189
265
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
190
266
  * @returns {Promise<RegionCountryDTO>} The retrieved country.
191
267
  *
192
268
  * @example
193
- * A simple example that retrieves a {type name} by its ID:
269
+ * A simple example that retrieves a country by its 2 character ISO code:
194
270
  *
195
271
  * ```ts
196
- * {example-code}
272
+ * const country =
273
+ * await regionModuleService.retrieveCountry("us")
197
274
  * ```
198
275
  *
199
276
  * To specify relations that should be retrieved:
200
277
  *
201
278
  * ```ts
202
- * {example-code}
279
+ * const country = await regionModuleService.retrieveCountry(
280
+ * "us",
281
+ * {
282
+ * relations: ["region"],
283
+ * }
284
+ * )
203
285
  * ```
204
- *
205
- *
206
286
  */
207
287
  retrieveCountry(countryId: string, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<RegionCountryDTO>;
208
288
  /**
209
289
  * This method retrieves a paginated list of countries based on optional filters and configuration.
210
290
  *
211
- * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved region country.
212
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
213
- * attributes or relations associated with a region country.
291
+ * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved countries.
292
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
293
+ * attributes or relations associated with a country.
214
294
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
215
295
  * @returns {Promise<RegionCountryDTO[]>} The list of countries.
216
296
  *
217
297
  * @example
218
- * To retrieve a list of {type name} using their IDs:
298
+ * To retrieve a list of countries using their IDs:
219
299
  *
220
300
  * ```ts
221
- * {example-code}
301
+ * const countries = await regionModuleService.listCountries({
302
+ * iso_2: ["us", "eur"],
303
+ * })
222
304
  * ```
223
305
  *
224
- * To specify relations that should be retrieved within the {type name}:
306
+ * To specify relations that should be retrieved within the countries:
225
307
  *
226
308
  * ```ts
227
- * {example-code}
309
+ * const countries = await regionModuleService.listCountries(
310
+ * {
311
+ * iso_2: ["us", "eur"],
312
+ * },
313
+ * {
314
+ * relations: ["region"],
315
+ * }
316
+ * )
228
317
  * ```
229
318
  *
230
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
319
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
231
320
  *
232
321
  * ```ts
233
- * {example-code}
322
+ * const countries = await regionModuleService.listCountries(
323
+ * {
324
+ * iso_2: ["us", "eur"],
325
+ * },
326
+ * {
327
+ * relations: ["region"],
328
+ * take: 20,
329
+ * skip: 2,
330
+ * }
331
+ * )
234
332
  * ```
235
- *
236
- *
237
333
  */
238
334
  listCountries(filters?: FilterableRegionCountryProps, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<RegionCountryDTO[]>;
239
335
  /**
240
336
  * This method retrieves a paginated list of countries along with the total count of available countries satisfying the provided filters.
241
337
  *
242
- * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved region country.
243
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
244
- * attributes or relations associated with a region country.
338
+ * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved countries.
339
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
340
+ * attributes or relations associated with a country.
245
341
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
246
342
  * @returns {Promise<[RegionCountryDTO[], number]>} The list of countries along with their total count.
247
343
  *
248
344
  * @example
249
- * To retrieve a list of {type name} using their IDs:
345
+ * To retrieve a list of countries using their IDs:
250
346
  *
251
347
  * ```ts
252
- * {example-code}
348
+ * const [countries, count] =
349
+ * await regionModuleService.listAndCountCountries({
350
+ * iso_2: ["us", "eur"],
351
+ * })
253
352
  * ```
254
353
  *
255
- * To specify relations that should be retrieved within the {type name}:
354
+ * To specify relations that should be retrieved within the countries:
256
355
  *
257
356
  * ```ts
258
- * {example-code}
357
+ * const [countries, count] =
358
+ * await regionModuleService.listAndCountCountries(
359
+ * {
360
+ * iso_2: ["us", "eur"],
361
+ * },
362
+ * {
363
+ * relations: ["region"],
364
+ * }
365
+ * )
259
366
  * ```
260
367
  *
261
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
368
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
262
369
  *
263
370
  * ```ts
264
- * {example-code}
371
+ * const [countries, count] =
372
+ * await regionModuleService.listAndCountCountries(
373
+ * {
374
+ * iso_2: ["us", "eur"],
375
+ * },
376
+ * {
377
+ * relations: ["region"],
378
+ * take: 20,
379
+ * skip: 2,
380
+ * }
381
+ * )
265
382
  * ```
266
- *
267
- *
268
383
  */
269
384
  listAndCountCountries(filters?: FilterableRegionCountryProps, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<[RegionCountryDTO[], number]>;
270
385
  /**
271
- * This method soft deletes regions by their IDs.
386
+ * This method soft deletes a region by its IDs.
272
387
  *
273
- * @param {string[]} regionIds - The list of IDs of regions to soft delete.
388
+ * @param {string[]} regionIds - The regions' IDs.
274
389
  * @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.
275
390
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
276
- * @returns {Promise<void | Record<string, string[]>>} Resolves successfully when the regions are soft-deleted.
391
+ * @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 country.
392
+ * The object's keys are the ID attribute names of the region entity's relations, such as `country_id`, and its value is an array of strings, each being the ID of a record associated
393
+ * with the region through this relation, such as the IDs of associated countries.
394
+ *
395
+ * If there are no related records, the promise resolves to `void`.
277
396
  *
278
397
  * @example
279
- * {example-code}
398
+ * await regionModuleService.softDelete(["reg_123", "reg_321"], {
399
+ * returnLinkableKeys: ["country_id"],
400
+ * })
280
401
  */
281
402
  softDelete<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
282
403
  /**
283
404
  * This method restores soft deleted regions by their IDs.
284
405
  *
285
- * @param {string[]} regionIds - The list of IDs of regions to restore.
286
- * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the regions. You can pass to its `returnLinkableKeys`
287
- * property any of the regions's relation attribute names, such as `country`.
406
+ * @param {string[]} regionIds - The regions' IDs.
407
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the region. You can pass to its `returnLinkableKeys`
408
+ * property any of the region's relation attribute names, such as `countries`.
288
409
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
289
- * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated country.
290
- * The object's keys are the ID attribute names of the regions entity's relations, such as `country`,
410
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated countries.
411
+ * The object's keys are the ID attribute names of the region entity's relations, such as `country_id`,
291
412
  * and its value is an array of strings, each being the ID of the record associated with the region through this relation,
292
- * such as the IDs of associated country.
413
+ * such as the IDs of associated countries.
414
+ *
415
+ * If there are no related records restored, the promise resolves to `void`.
293
416
  *
294
417
  * @example
295
- * {example-code}
418
+ * await regionModuleService.restore(["reg_123", "reg_321"], {
419
+ * returnLinkableKeys: ["country_id"],
420
+ * })
296
421
  */
297
422
  restore<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
298
423
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/region/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/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/E;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAE9E;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAE1E;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAE9E;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,OA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B,CAAC,CAAA;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,aAAa,CACX,OAAO,CAAC,EAAE,4BAA4B,EACtC,MAAM,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACrC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAA;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,qBAAqB,CACnB,OAAO,CAAC,EAAE,4BAA4B,EACtC,MAAM,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACrC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAExC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACxD,SAAS,EAAE,MAAM,EAAE,EACnB,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,OAAO,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACrD,SAAS,EAAE,MAAM,EAAE,EACnB,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