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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) 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 +175 -54
  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/region/common.d.ts +1 -1
  153. package/dist/region/common.d.ts.map +1 -1
  154. package/dist/region/service.d.ts +1 -1
  155. package/dist/stock-location/common.d.ts +14 -0
  156. package/dist/stock-location/common.d.ts.map +1 -1
  157. package/dist/stock-location/service-next.d.ts +178 -186
  158. package/dist/stock-location/service-next.d.ts.map +1 -1
  159. package/dist/store/common/store.d.ts +42 -0
  160. package/dist/store/common/store.d.ts.map +1 -1
  161. package/dist/store/mutations/store.d.ts +75 -0
  162. package/dist/store/mutations/store.d.ts.map +1 -1
  163. package/dist/store/service.d.ts +113 -75
  164. package/dist/store/service.d.ts.map +1 -1
  165. package/dist/tax/common.d.ts +298 -10
  166. package/dist/tax/common.d.ts.map +1 -1
  167. package/dist/tax/mutations.d.ts +157 -0
  168. package/dist/tax/mutations.d.ts.map +1 -1
  169. package/dist/tax/provider.d.ts +126 -0
  170. package/dist/tax/provider.d.ts.map +1 -1
  171. package/dist/tax/service.d.ts +600 -0
  172. package/dist/tax/service.d.ts.map +1 -1
  173. package/dist/workflow/index.d.ts +1 -0
  174. package/dist/workflow/index.d.ts.map +1 -1
  175. package/dist/workflow/index.js +2 -1
  176. package/dist/workflow/index.js.map +1 -1
  177. package/dist/workflow/region/create-regions.d.ts +8 -0
  178. package/dist/workflow/region/create-regions.d.ts.map +1 -0
  179. package/dist/workflow/region/create-regions.js +3 -0
  180. package/dist/workflow/region/create-regions.js.map +1 -0
  181. package/dist/workflow/region/index.d.ts +3 -0
  182. package/dist/workflow/region/index.d.ts.map +1 -0
  183. package/dist/workflow/region/index.js +19 -0
  184. package/dist/workflow/region/index.js.map +1 -0
  185. package/dist/workflow/region/update-regions.d.ts +9 -0
  186. package/dist/workflow/region/update-regions.d.ts.map +1 -0
  187. package/dist/workflow/region/update-regions.js +3 -0
  188. package/dist/workflow/region/update-regions.js.map +1 -0
  189. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { ShippingOptionPriceType } from "../../../fulfillment";
2
+ import { AdminServiceZoneResponse } from "./service-zone";
3
+ import { AdminShippingOptionTypeResponse } from "./shipping-option-type";
4
+ import { AdminShippingOptionRuleResponse } from "./shipping-option-rule";
5
+ import { AdminShippingProfileResponse } from "./shipping-profile";
6
+ import { AdminFulfillmentProviderResponse } from "./fulfillment-provider";
7
+ import { AdminFulfillmentResponse } from "./fulfillment";
8
+ /**
9
+ * @experimental
10
+ */
11
+ export interface AdminShippingOptionResponse {
12
+ id: string;
13
+ name: string;
14
+ price_type: ShippingOptionPriceType;
15
+ service_zone_id: string;
16
+ shipping_profile_id: string;
17
+ provider_id: string;
18
+ shipping_option_type_id: string | null;
19
+ data: Record<string, unknown> | null;
20
+ metadata: Record<string, unknown> | null;
21
+ service_zone: AdminServiceZoneResponse;
22
+ shipping_profile: AdminShippingProfileResponse;
23
+ fulfillment_provider: AdminFulfillmentProviderResponse;
24
+ type: AdminShippingOptionTypeResponse;
25
+ rules: AdminShippingOptionRuleResponse[];
26
+ fulfillments: AdminFulfillmentResponse[];
27
+ created_at: Date;
28
+ updated_at: Date;
29
+ deleted_at: Date | null;
30
+ }
31
+ //# sourceMappingURL=shipping-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-option.ts"],"names":[],"mappings":"AAAA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shipping-option.js","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-option.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @experimental
3
+ */
4
+ export interface AdminShippingProfileResponse {
5
+ id: string;
6
+ name: string;
7
+ type: string;
8
+ metadata: Record<string, unknown> | null;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ deleted_at: Date | null;
12
+ }
13
+ //# sourceMappingURL=shipping-profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-profile.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shipping-profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-profile.js","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-profile.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./admin";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/fulfillment/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./admin"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from "./fulfillment";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./fulfillment"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B"}
package/dist/index.d.ts CHANGED
@@ -35,4 +35,6 @@ export * from "./transaction-base";
35
35
  export * from "./user";
36
36
  export * from "./workflow";
37
37
  export * from "./currency";
38
+ export * from "./http";
39
+ export * from "./file";
38
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA"}
package/dist/index.js CHANGED
@@ -51,4 +51,6 @@ __exportStar(require("./transaction-base"), exports);
51
51
  __exportStar(require("./user"), exports);
52
52
  __exportStar(require("./workflow"), exports);
53
53
  __exportStar(require("./currency"), exports);
54
+ __exportStar(require("./http"), exports);
55
+ __exportStar(require("./file"), exports);
54
56
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,6CAA0B;AAC1B,yCAAsB;AACtB,yCAAsB"}
@@ -1,88 +1,79 @@
1
1
  import { StringComparisonOperator } from "../../common";
2
2
  /**
3
- * @schema InventoryItemDTO
4
- * type: object
5
- * required:
6
- * - sku
7
- * properties:
8
- * id:
9
- * description: The inventory item's ID.
10
- * type: string
11
- * example: "iitem_12334"
12
- * sku:
13
- * description: The Stock Keeping Unit (SKU) code of the Inventory Item.
14
- * type: string
15
- * hs_code:
16
- * description: The Harmonized System code of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
17
- * type: string
18
- * origin_country:
19
- * description: The country in which the Inventory Item was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.
20
- * type: string
21
- * mid_code:
22
- * description: The Manufacturers Identification code that identifies the manufacturer of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
23
- * type: string
24
- * title:
25
- * description: "Title of the inventory item"
26
- * type: string
27
- * description:
28
- * description: "Description of the inventory item"
29
- * type: string
30
- * thumbnail:
31
- * description: "Thumbnail for the inventory item"
32
- * type: string
33
- * material:
34
- * description: The material and composition that the Inventory Item is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.
35
- * type: string
36
- * weight:
37
- * description: The weight of the Inventory Item. May be used in shipping rate calculations.
38
- * type: number
39
- * height:
40
- * description: The height of the Inventory Item. May be used in shipping rate calculations.
41
- * type: number
42
- * width:
43
- * description: The width of the Inventory Item. May be used in shipping rate calculations.
44
- * type: number
45
- * length:
46
- * description: The length of the Inventory Item. May be used in shipping rate calculations.
47
- * type: number
48
- * requires_shipping:
49
- * description: Whether the item requires shipping.
50
- * type: boolean
51
- * metadata:
52
- * type: object
53
- * description: An optional key-value map with additional details
54
- * example: {car: "white"}
55
- * created_at:
56
- * type: string
57
- * description: "The date with timezone at which the resource was created."
58
- * format: date-time
59
- * updated_at:
60
- * type: string
61
- * description: "The date with timezone at which the resource was updated."
62
- * format: date-time
63
- * deleted_at:
64
- * type: string
65
- * description: "The date with timezone at which the resource was deleted."
66
- * format: date-time
3
+ * The inventory item details.
67
4
  */
68
5
  export interface InventoryItemDTO {
6
+ /**
7
+ * The ID of the inventory item.
8
+ */
69
9
  id: string;
10
+ /**
11
+ * The SKU of the inventory item.
12
+ */
70
13
  sku?: string | null;
14
+ /**
15
+ * The origin country of the inventory item.
16
+ */
71
17
  origin_country?: string | null;
18
+ /**
19
+ * The HS code of the inventory item.
20
+ */
72
21
  hs_code?: string | null;
22
+ /**
23
+ * Whether the inventory item requires shipping.
24
+ */
73
25
  requires_shipping: boolean;
26
+ /**
27
+ * The mid code of the inventory item.
28
+ */
74
29
  mid_code?: string | null;
30
+ /**
31
+ * The material of the inventory item.
32
+ */
75
33
  material?: string | null;
34
+ /**
35
+ * The weight of the inventory item.
36
+ */
76
37
  weight?: number | null;
38
+ /**
39
+ * The length of the inventory item.
40
+ */
77
41
  length?: number | null;
42
+ /**
43
+ * The height of the inventory item.
44
+ */
78
45
  height?: number | null;
46
+ /**
47
+ * The width of the inventory item.
48
+ */
79
49
  width?: number | null;
50
+ /**
51
+ * The title of the inventory item.
52
+ */
80
53
  title?: string | null;
54
+ /**
55
+ * The description of the inventory item.
56
+ */
81
57
  description?: string | null;
58
+ /**
59
+ * The thumbnail of the inventory item.
60
+ */
82
61
  thumbnail?: string | null;
62
+ /**
63
+ * Holds custom data in key-value pairs.
64
+ */
83
65
  metadata?: Record<string, unknown> | null;
66
+ /**
67
+ * The creation date of the inventory item.
68
+ */
84
69
  created_at: string | Date;
70
+ /**
71
+ * The update date of the inventory item.
72
+ */
85
73
  updated_at: string | Date;
74
+ /**
75
+ * The deletion date of the inventory item.
76
+ */
86
77
  deleted_at: string | Date | null;
87
78
  }
88
79
  /**
@@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AEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;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,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,wBAAwB,CAAA;IAElD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,wBAAwB,CAAA;IAEtD;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B"}
@@ -1,56 +1,56 @@
1
1
  import { BaseFilterable, OperatorMap } from "../../dal";
2
2
  /**
3
- * @schema InventoryLevelDTO
4
- * type: object
5
- * required:
6
- * - inventory_item_id
7
- * - location_id
8
- * - stocked_quantity
9
- * - reserved_quantity
10
- * - incoming_quantity
11
- * properties:
12
- * location_id:
13
- * description: the item location ID
14
- * type: string
15
- * stocked_quantity:
16
- * description: the total stock quantity of an inventory item at the given location ID
17
- * type: number
18
- * reserved_quantity:
19
- * description: the reserved stock quantity of an inventory item at the given location ID
20
- * type: number
21
- * incoming_quantity:
22
- * description: the incoming stock quantity of an inventory item at the given location ID
23
- * type: number
24
- * metadata:
25
- * type: object
26
- * description: An optional key-value map with additional details
27
- * example: {car: "white"}
28
- * created_at:
29
- * type: string
30
- * description: "The date with timezone at which the resource was created."
31
- * format: date-time
32
- * updated_at:
33
- * type: string
34
- * description: "The date with timezone at which the resource was updated."
35
- * format: date-time
36
- * deleted_at:
37
- * type: string
38
- * description: "The date with timezone at which the resource was deleted."
39
- * format: date-time
3
+ * The inventory level details.
40
4
  */
41
5
  export interface InventoryLevelDTO {
6
+ /**
7
+ * The ID of the inventory level.
8
+ */
42
9
  id: string;
10
+ /**
11
+ * The associated inventory item's ID.
12
+ */
43
13
  inventory_item_id: string;
14
+ /**
15
+ * The associated location's ID.
16
+ */
44
17
  location_id: string;
18
+ /**
19
+ * The stocked quantity of the inventory level.
20
+ */
45
21
  stocked_quantity: number;
22
+ /**
23
+ * The reserved quantity of the inventory level.
24
+ */
46
25
  reserved_quantity: number;
26
+ /**
27
+ * The incoming quantity of the inventory level.
28
+ */
47
29
  incoming_quantity: number;
30
+ /**
31
+ * The available quantity of the inventory level.
32
+ */
48
33
  available_quantity: number;
34
+ /**
35
+ * Holds custom data in key-value pairs.
36
+ */
49
37
  metadata: Record<string, unknown> | null;
38
+ /**
39
+ * The creation date of the inventory level.
40
+ */
50
41
  created_at: string | Date;
42
+ /**
43
+ * The update date of the inventory level.
44
+ */
51
45
  updated_at: string | Date;
46
+ /**
47
+ * The deletion date of the inventory level.
48
+ */
52
49
  deleted_at: string | Date | null;
53
50
  }
51
+ /**
52
+ * The filters to apply on the retrieved inventory levels.
53
+ */
54
54
  export interface FilterableInventoryLevelProps extends BaseFilterable<FilterableInventoryLevelProps> {
55
55
  /**
56
56
  * Filter inventory levels by the ID of their associated inventory item.
@@ -1 +1 @@
1
- {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAChD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACjD"}
1
+ {"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAEhD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACjD"}
@@ -1,61 +1,51 @@
1
1
  import { NumericalComparisonOperator, StringComparisonOperator } from "../../common";
2
2
  /**
3
- * @schema ReservationItemDTO
4
- * title: "Reservation item"
5
- * description: "Represents a reservation of an inventory item at a stock location"
6
- * type: object
7
- * required:
8
- * - id
9
- * - location_id
10
- * - inventory_item_id
11
- * - quantity
12
- * properties:
13
- * id:
14
- * description: "The id of the reservation item"
15
- * type: string
16
- * location_id:
17
- * description: "The id of the location of the reservation"
18
- * type: string
19
- * inventory_item_id:
20
- * description: "The id of the inventory item the reservation relates to"
21
- * type: string
22
- * description:
23
- * description: "Description of the reservation item"
24
- * type: string
25
- * created_by:
26
- * description: "UserId of user who created the reservation item"
27
- * type: string
28
- * quantity:
29
- * description: "The id of the reservation item"
30
- * type: number
31
- * metadata:
32
- * type: object
33
- * description: An optional key-value map with additional details
34
- * example: {car: "white"}
35
- * created_at:
36
- * type: string
37
- * description: "The date with timezone at which the resource was created."
38
- * format: date-time
39
- * updated_at:
40
- * type: string
41
- * description: "The date with timezone at which the resource was updated."
42
- * format: date-time
43
- * deleted_at:
44
- * type: string
45
- * description: "The date with timezone at which the resource was deleted."
46
- * format: date-time
3
+ * The reservation item details.
47
4
  */
48
5
  export interface ReservationItemDTO {
6
+ /**
7
+ * The ID of the reservation item.
8
+ */
49
9
  id: string;
10
+ /**
11
+ * The associated location's ID.
12
+ */
50
13
  location_id: string;
14
+ /**
15
+ * The associated inventory item's ID.
16
+ */
51
17
  inventory_item_id: string;
18
+ /**
19
+ * The quantity of the reservation item.
20
+ */
52
21
  quantity: number;
22
+ /**
23
+ * The associated line item's ID.
24
+ */
53
25
  line_item_id?: string | null;
26
+ /**
27
+ * The description of the reservation item.
28
+ */
54
29
  description?: string | null;
30
+ /**
31
+ * The created by of the reservation item.
32
+ */
55
33
  created_by?: string | null;
34
+ /**
35
+ * Holds custom data in key-value pairs.
36
+ */
56
37
  metadata: Record<string, unknown> | null;
38
+ /**
39
+ * The creation date of the reservation item.
40
+ */
57
41
  created_at: string | Date;
42
+ /**
43
+ * The update date of the reservation item.
44
+ */
58
45
  updated_at: string | Date;
46
+ /**
47
+ * The deletion date of the reservation item.
48
+ */
59
49
  deleted_at: string | Date | null;
60
50
  }
61
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAChC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAA;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAChD"}
1
+ {"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AAErB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAErC;;OAEG;IACH,WAAW,CAA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