@medusajs/types 1.12.0-snapshot-20240406075900 → 1.12.0-snapshot-20240409114424

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. package/dist/cart/common.d.ts +64 -47
  2. package/dist/cart/common.d.ts.map +1 -1
  3. package/dist/cart/mutations.d.ts +14 -13
  4. package/dist/cart/mutations.d.ts.map +1 -1
  5. package/dist/cart/mutations.js.map +1 -1
  6. package/dist/cart/workflows.d.ts +6 -5
  7. package/dist/cart/workflows.d.ts.map +1 -1
  8. package/dist/common/rule.d.ts +3 -0
  9. package/dist/common/rule.d.ts.map +1 -1
  10. package/dist/customer/common.d.ts +21 -13
  11. package/dist/customer/common.d.ts.map +1 -1
  12. package/dist/customer/mutations.d.ts +13 -13
  13. package/dist/customer/mutations.d.ts.map +1 -1
  14. package/dist/dal/repository-service.d.ts +1 -1
  15. package/dist/dal/repository-service.d.ts.map +1 -1
  16. package/dist/file/index.d.ts +1 -0
  17. package/dist/file/index.d.ts.map +1 -1
  18. package/dist/file/index.js +1 -0
  19. package/dist/file/index.js.map +1 -1
  20. package/dist/file/provider.d.ts +100 -0
  21. package/dist/file/provider.d.ts.map +1 -0
  22. package/dist/file/provider.js +3 -0
  23. package/dist/file/provider.js.map +1 -0
  24. package/dist/fulfillment/common/address.d.ts +51 -0
  25. package/dist/fulfillment/common/address.d.ts.map +1 -1
  26. package/dist/fulfillment/common/fulfillment-item.d.ts +39 -0
  27. package/dist/fulfillment/common/fulfillment-item.d.ts.map +1 -1
  28. package/dist/fulfillment/common/fulfillment-label.d.ts +30 -0
  29. package/dist/fulfillment/common/fulfillment-label.d.ts.map +1 -1
  30. package/dist/fulfillment/common/fulfillment-provider.d.ts +24 -0
  31. package/dist/fulfillment/common/fulfillment-provider.d.ts.map +1 -1
  32. package/dist/fulfillment/common/fulfillment-set.d.ts +42 -0
  33. package/dist/fulfillment/common/fulfillment-set.d.ts.map +1 -1
  34. package/dist/fulfillment/common/fulfillment.d.ts +91 -0
  35. package/dist/fulfillment/common/fulfillment.d.ts.map +1 -1
  36. package/dist/fulfillment/common/geo-zone.d.ts +54 -0
  37. package/dist/fulfillment/common/geo-zone.d.ts.map +1 -1
  38. package/dist/fulfillment/common/service-zone.d.ts +52 -0
  39. package/dist/fulfillment/common/service-zone.d.ts.map +1 -1
  40. package/dist/fulfillment/common/shipping-option-rule.d.ts +51 -0
  41. package/dist/fulfillment/common/shipping-option-rule.d.ts.map +1 -1
  42. package/dist/fulfillment/common/shipping-option-type.d.ts +45 -0
  43. package/dist/fulfillment/common/shipping-option-type.d.ts.map +1 -1
  44. package/dist/fulfillment/common/shipping-option.d.ts +117 -0
  45. package/dist/fulfillment/common/shipping-option.d.ts.map +1 -1
  46. package/dist/fulfillment/common/shipping-profile.d.ts +42 -0
  47. package/dist/fulfillment/common/shipping-profile.d.ts.map +1 -1
  48. package/dist/fulfillment/mutations/fulfillment-address.d.ts +39 -0
  49. package/dist/fulfillment/mutations/fulfillment-address.d.ts.map +1 -1
  50. package/dist/fulfillment/mutations/fulfillment-item.d.ts +24 -0
  51. package/dist/fulfillment/mutations/fulfillment-item.d.ts.map +1 -1
  52. package/dist/fulfillment/mutations/fulfillment-label.d.ts +15 -0
  53. package/dist/fulfillment/mutations/fulfillment-label.d.ts.map +1 -1
  54. package/dist/fulfillment/mutations/fulfillment-set.d.ts +32 -2
  55. package/dist/fulfillment/mutations/fulfillment-set.d.ts.map +1 -1
  56. package/dist/fulfillment/mutations/fulfillment.d.ts +66 -0
  57. package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
  58. package/dist/fulfillment/mutations/geo-zone.d.ts +123 -0
  59. package/dist/fulfillment/mutations/geo-zone.d.ts.map +1 -1
  60. package/dist/fulfillment/mutations/service-zone.d.ts +33 -1
  61. package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
  62. package/dist/fulfillment/mutations/shipping-option-rule.d.ts +21 -0
  63. package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
  64. package/dist/fulfillment/mutations/shipping-option-type.d.ts +21 -0
  65. package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +1 -1
  66. package/dist/fulfillment/mutations/shipping-option.d.ts +71 -1
  67. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  68. package/dist/fulfillment/mutations/shipping-profile.d.ts +15 -0
  69. package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
  70. package/dist/fulfillment/service.d.ts +1933 -218
  71. package/dist/fulfillment/service.d.ts.map +1 -1
  72. package/dist/http/api-key/admin/api-key.d.ts +31 -0
  73. package/dist/http/api-key/admin/api-key.d.ts.map +1 -0
  74. package/dist/http/api-key/admin/api-key.js +3 -0
  75. package/dist/http/api-key/admin/api-key.js.map +1 -0
  76. package/dist/http/api-key/admin/index.d.ts +2 -0
  77. package/dist/http/api-key/admin/index.d.ts.map +1 -0
  78. package/dist/http/api-key/admin/index.js +18 -0
  79. package/dist/http/api-key/admin/index.js.map +1 -0
  80. package/dist/http/api-key/index.d.ts +2 -0
  81. package/dist/http/api-key/index.d.ts.map +1 -0
  82. package/dist/http/api-key/index.js +18 -0
  83. package/dist/http/api-key/index.js.map +1 -0
  84. package/dist/http/common/index.d.ts +2 -0
  85. package/dist/http/common/index.d.ts.map +1 -0
  86. package/dist/http/common/index.js +18 -0
  87. package/dist/http/common/index.js.map +1 -0
  88. package/dist/http/common/paginated-response.d.ts +6 -0
  89. package/dist/http/common/paginated-response.d.ts.map +1 -0
  90. package/dist/http/common/paginated-response.js +3 -0
  91. package/dist/http/common/paginated-response.js.map +1 -0
  92. package/dist/http/customer/admin/customer.d.ts +79 -0
  93. package/dist/http/customer/admin/customer.d.ts.map +1 -0
  94. package/dist/http/customer/admin/customer.js +3 -0
  95. package/dist/http/customer/admin/customer.js.map +1 -0
  96. package/dist/http/customer/admin/index.d.ts +2 -0
  97. package/dist/http/customer/admin/index.d.ts.map +1 -0
  98. package/dist/http/customer/admin/index.js +18 -0
  99. package/dist/http/customer/admin/index.js.map +1 -0
  100. package/dist/http/customer/index.d.ts +2 -0
  101. package/dist/http/customer/index.d.ts.map +1 -0
  102. package/dist/http/customer/index.js +18 -0
  103. package/dist/http/customer/index.js.map +1 -0
  104. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +9 -3
  105. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -1
  106. package/dist/http/fulfillment/admin/service-zone.d.ts +16 -0
  107. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -1
  108. package/dist/http/fulfillment/admin/shipping-option.d.ts +11 -4
  109. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  110. package/dist/http/fulfillment/admin/shipping-profile.d.ts +8 -1
  111. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -1
  112. package/dist/http/index.d.ts +7 -1
  113. package/dist/http/index.d.ts.map +1 -1
  114. package/dist/http/index.js +7 -1
  115. package/dist/http/index.js.map +1 -1
  116. package/dist/http/pricing/index.d.ts +2 -0
  117. package/dist/http/pricing/index.d.ts.map +1 -0
  118. package/dist/http/pricing/index.js +18 -0
  119. package/dist/http/pricing/index.js.map +1 -0
  120. package/dist/http/pricing/price.d.ts +8 -0
  121. package/dist/http/pricing/price.d.ts.map +1 -0
  122. package/dist/http/pricing/price.js +3 -0
  123. package/dist/http/pricing/price.js.map +1 -0
  124. package/dist/http/product-category/admin/index.d.ts +2 -0
  125. package/dist/http/product-category/admin/index.d.ts.map +1 -0
  126. package/dist/http/product-category/admin/index.js +18 -0
  127. package/dist/http/product-category/admin/index.js.map +1 -0
  128. package/dist/http/product-category/admin/product-category.d.ts +32 -0
  129. package/dist/http/product-category/admin/product-category.d.ts.map +1 -0
  130. package/dist/http/product-category/admin/product-category.js +3 -0
  131. package/dist/http/product-category/admin/product-category.js.map +1 -0
  132. package/dist/http/product-category/index.d.ts +2 -0
  133. package/dist/http/product-category/index.d.ts.map +1 -0
  134. package/dist/http/product-category/index.js +18 -0
  135. package/dist/http/product-category/index.js.map +1 -0
  136. package/dist/http/sales-channel/admin/index.d.ts +2 -0
  137. package/dist/http/sales-channel/admin/index.d.ts.map +1 -0
  138. package/dist/http/sales-channel/admin/index.js +18 -0
  139. package/dist/http/sales-channel/admin/index.js.map +1 -0
  140. package/dist/http/sales-channel/admin/sales-channel.d.ts +25 -0
  141. package/dist/http/sales-channel/admin/sales-channel.d.ts.map +1 -0
  142. package/dist/http/sales-channel/admin/sales-channel.js +3 -0
  143. package/dist/http/sales-channel/admin/sales-channel.js.map +1 -0
  144. package/dist/http/sales-channel/index.d.ts +2 -0
  145. package/dist/http/sales-channel/index.d.ts.map +1 -0
  146. package/dist/http/sales-channel/index.js +18 -0
  147. package/dist/http/sales-channel/index.js.map +1 -0
  148. package/dist/http/tax/admin/index.d.ts +2 -0
  149. package/dist/http/tax/admin/index.d.ts.map +1 -0
  150. package/dist/http/tax/admin/index.js +18 -0
  151. package/dist/http/tax/admin/index.js.map +1 -0
  152. package/dist/http/tax/admin/tax-regions.d.ts +32 -0
  153. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -0
  154. package/dist/http/tax/admin/tax-regions.js +3 -0
  155. package/dist/http/tax/admin/tax-regions.js.map +1 -0
  156. package/dist/http/tax/index.d.ts +2 -0
  157. package/dist/http/tax/index.d.ts.map +1 -0
  158. package/dist/http/tax/index.js +18 -0
  159. package/dist/http/tax/index.js.map +1 -0
  160. package/dist/joiner/index.d.ts +2 -2
  161. package/dist/joiner/index.d.ts.map +1 -1
  162. package/dist/modules-sdk/index.d.ts +12 -10
  163. package/dist/modules-sdk/index.d.ts.map +1 -1
  164. package/dist/order/common.d.ts +111 -45
  165. package/dist/order/common.d.ts.map +1 -1
  166. package/dist/order/index.d.ts +1 -0
  167. package/dist/order/index.d.ts.map +1 -1
  168. package/dist/order/index.js +1 -0
  169. package/dist/order/index.js.map +1 -1
  170. package/dist/order/mutations.d.ts +14 -14
  171. package/dist/order/mutations.d.ts.map +1 -1
  172. package/dist/order/mutations.js.map +1 -1
  173. package/dist/order/service.d.ts +60 -662
  174. package/dist/order/service.d.ts.map +1 -1
  175. package/dist/order/workflows.d.ts +8 -0
  176. package/dist/order/workflows.d.ts.map +1 -0
  177. package/dist/order/workflows.js +3 -0
  178. package/dist/order/workflows.js.map +1 -0
  179. package/dist/payment/common.d.ts +14 -13
  180. package/dist/payment/common.d.ts.map +1 -1
  181. package/dist/payment/common.js.map +1 -1
  182. package/dist/payment/mutations.d.ts +9 -8
  183. package/dist/payment/mutations.d.ts.map +1 -1
  184. package/dist/payment/provider.d.ts +6 -5
  185. package/dist/payment/provider.d.ts.map +1 -1
  186. package/dist/payment/provider.js.map +1 -1
  187. package/dist/payment/service.d.ts +1 -0
  188. package/dist/payment/service.d.ts.map +1 -1
  189. package/dist/pricing/common/money-amount.d.ts +10 -9
  190. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  191. package/dist/pricing/common/price-set.d.ts +9 -8
  192. package/dist/pricing/common/price-set.d.ts.map +1 -1
  193. package/dist/pricing/common/price.d.ts +10 -9
  194. package/dist/pricing/common/price.d.ts.map +1 -1
  195. package/dist/pricing/workflows.d.ts +10 -20
  196. package/dist/pricing/workflows.d.ts.map +1 -1
  197. package/dist/product/common.d.ts +26 -40
  198. package/dist/product/common.d.ts.map +1 -1
  199. package/dist/promotion/http.d.ts +14 -0
  200. package/dist/promotion/http.d.ts.map +1 -0
  201. package/dist/promotion/http.js +3 -0
  202. package/dist/promotion/http.js.map +1 -0
  203. package/dist/promotion/index.d.ts +1 -0
  204. package/dist/promotion/index.d.ts.map +1 -1
  205. package/dist/promotion/index.js +1 -0
  206. package/dist/promotion/index.js.map +1 -1
  207. package/dist/region/common.d.ts +5 -0
  208. package/dist/region/common.d.ts.map +1 -1
  209. package/dist/region/mutations.d.ts +4 -0
  210. package/dist/region/mutations.d.ts.map +1 -1
  211. package/dist/tax/common.d.ts +4 -3
  212. package/dist/tax/common.d.ts.map +1 -1
  213. package/dist/totals/big-number.d.ts +1 -0
  214. package/dist/totals/big-number.d.ts.map +1 -1
  215. package/dist/totals/index.d.ts +24 -0
  216. package/dist/totals/index.d.ts.map +1 -1
  217. package/dist/totals/index.js.map +1 -1
  218. package/dist/workflow/fulfillment/create-shipping-options.d.ts +31 -0
  219. package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +1 -0
  220. package/dist/workflow/fulfillment/create-shipping-options.js +3 -0
  221. package/dist/workflow/fulfillment/create-shipping-options.js.map +1 -0
  222. package/dist/workflow/fulfillment/index.d.ts +5 -0
  223. package/dist/workflow/fulfillment/index.d.ts.map +1 -0
  224. package/dist/workflow/fulfillment/index.js +21 -0
  225. package/dist/workflow/fulfillment/index.js.map +1 -0
  226. package/dist/workflow/fulfillment/service-zones.d.ts +21 -0
  227. package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -0
  228. package/dist/workflow/fulfillment/service-zones.js +3 -0
  229. package/dist/workflow/fulfillment/service-zones.js.map +1 -0
  230. package/dist/workflow/fulfillment/shipping-profiles.d.ts +18 -0
  231. package/dist/workflow/fulfillment/shipping-profiles.d.ts.map +1 -0
  232. package/dist/workflow/fulfillment/shipping-profiles.js +3 -0
  233. package/dist/workflow/fulfillment/shipping-profiles.js.map +1 -0
  234. package/dist/workflow/fulfillment/update-shipping-options.d.ts +32 -0
  235. package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -0
  236. package/dist/workflow/fulfillment/update-shipping-options.js +3 -0
  237. package/dist/workflow/fulfillment/update-shipping-options.js.map +1 -0
  238. package/dist/workflow/index.d.ts +1 -0
  239. package/dist/workflow/index.d.ts.map +1 -1
  240. package/dist/workflow/index.js +2 -1
  241. package/dist/workflow/index.js.map +1 -1
  242. package/package.json +1 -1
@@ -0,0 +1,21 @@
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("./create-shipping-options"), exports);
18
+ __exportStar(require("./service-zones"), exports);
19
+ __exportStar(require("./shipping-profiles"), exports);
20
+ __exportStar(require("./update-shipping-options"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,kDAA+B;AAC/B,sDAAmC;AACnC,4DAAyC"}
@@ -0,0 +1,21 @@
1
+ import { CreateCityGeoZoneDTO, CreateCountryGeoZoneDTO, CreateProvinceGeoZoneDTO, CreateZipGeoZoneDTO, FilterableServiceZoneProps } from "../../fulfillment";
2
+ interface CreateServiceZone {
3
+ name: string;
4
+ fulfillment_set_id: string;
5
+ geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id">)[];
6
+ }
7
+ export interface CreateServiceZonesWorkflowInput {
8
+ data: CreateServiceZone[];
9
+ }
10
+ interface UpdateServiceZone {
11
+ name?: string;
12
+ geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id"> | {
13
+ id: string;
14
+ })[];
15
+ }
16
+ export interface UpdateServiceZonesWorkflowInput {
17
+ selector: FilterableServiceZoneProps;
18
+ update: UpdateServiceZone;
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=service-zones.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-zones.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/service-zones.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAA;AAE1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,GAChD,IAAI,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GACjD,IAAI,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAC7C,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAC/C,EAAE,CAAA;CACJ;AAED,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,iBAAiB,EAAE,CAAA;CAC1B;AAED,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,GAChD,IAAI,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GACjD,IAAI,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAC7C,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAC5C;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CACjB,EAAE,CAAA;CACJ;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,0BAA0B,CAAA;IACpC,MAAM,EAAE,iBAAiB,CAAA;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=service-zones.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-zones.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/service-zones.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { FilterableShippingProfileProps } from "../../fulfillment";
2
+ interface CreateShippingProfile {
3
+ name: string;
4
+ type: string;
5
+ }
6
+ export interface CreateShippingProfilesWorkflowInput {
7
+ data: CreateShippingProfile[];
8
+ }
9
+ interface UpdateShippingProfile {
10
+ name?: string;
11
+ type?: string;
12
+ }
13
+ export interface UpdateShippingProfilesWorkflowInput {
14
+ selector: FilterableShippingProfileProps;
15
+ update: UpdateShippingProfile;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=shipping-profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-profiles.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/shipping-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAA;AAElE,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,mCAAmC;IAClD,IAAI,EAAE,qBAAqB,EAAE,CAAA;CAC9B;AAED,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,8BAA8B,CAAA;IACxC,MAAM,EAAE,qBAAqB,CAAA;CAC9B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=shipping-profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shipping-profiles.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/shipping-profiles.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { ShippingOptionPriceType } from "../../fulfillment";
2
+ import { RuleOperatorType } from "../../common";
3
+ export interface UpdateShippingOptionsWorkflowInput {
4
+ id: string;
5
+ name?: string;
6
+ service_zone_id?: string;
7
+ shipping_profile_id?: string;
8
+ data?: Record<string, unknown>;
9
+ price_type?: ShippingOptionPriceType;
10
+ provider_id?: string;
11
+ type?: {
12
+ label: string;
13
+ description: string;
14
+ code: string;
15
+ };
16
+ prices?: ({
17
+ currency_code: string;
18
+ amount: number;
19
+ } | {
20
+ region_id: string;
21
+ amount: number;
22
+ })[];
23
+ rules?: {
24
+ attribute: string;
25
+ operator: RuleOperatorType;
26
+ value: string | string[];
27
+ }[];
28
+ }
29
+ export type UpdateShippingOptionsWorkflowOutput = {
30
+ id: string;
31
+ }[];
32
+ //# sourceMappingURL=update-shipping-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-shipping-options.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-shipping-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,UAAU,CAAC,EAAE,uBAAuB,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,MAAM,CAAC,EAAE,CACL;QACE,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,GACD;QACE,SAAS,EAAE,MAAM,CAAA;QACjB,MAAM,EAAE,MAAM,CAAA;KACf,CACJ,EAAE,CAAA;IACH,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,gBAAgB,CAAA;QAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KACzB,EAAE,CAAA;CACJ;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAA;CACX,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=update-shipping-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-shipping-options.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-shipping-options.ts"],"names":[],"mappings":""}
@@ -6,4 +6,5 @@ export * as PriceListWorkflow from "./price-list";
6
6
  export * as UserWorkflow from "./user";
7
7
  export * as RegionWorkflow from "./region";
8
8
  export * as InviteWorkflow from "./invite";
9
+ export * as FulfillmentWorkflow from "./fulfillment";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.InviteWorkflow = exports.RegionWorkflow = exports.UserWorkflow = exports.PriceListWorkflow = exports.InventoryWorkflow = exports.ProductWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
26
+ exports.FulfillmentWorkflow = exports.InviteWorkflow = exports.RegionWorkflow = exports.UserWorkflow = exports.PriceListWorkflow = exports.InventoryWorkflow = exports.ProductWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
27
27
  exports.CartWorkflow = __importStar(require("./cart"));
28
28
  exports.CommonWorkflow = __importStar(require("./common"));
29
29
  exports.ProductWorkflow = __importStar(require("./product"));
@@ -32,4 +32,5 @@ exports.PriceListWorkflow = __importStar(require("./price-list"));
32
32
  exports.UserWorkflow = __importStar(require("./user"));
33
33
  exports.RegionWorkflow = __importStar(require("./region"));
34
34
  exports.InviteWorkflow = __importStar(require("./invite"));
35
+ exports.FulfillmentWorkflow = __importStar(require("./fulfillment"));
35
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,6DAA4C;AAC5C,iEAAgD;AAChD,kEAAiD;AACjD,uDAAsC;AACtC,2DAA0C;AAC1C,2DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,6DAA4C;AAC5C,iEAAgD;AAChD,kEAAiD;AACjD,uDAAsC;AACtC,2DAA0C;AAC1C,2DAA0C;AAC1C,qEAAoD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240406075900",
3
+ "version": "1.12.0-snapshot-20240409114424",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",