@mercurjs/framework 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/README.md +22 -0
  2. package/dist/index.d.ts +6 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +22 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/links/index.d.ts +3 -0
  7. package/dist/links/index.d.ts.map +1 -0
  8. package/dist/links/index.js +19 -0
  9. package/dist/links/index.js.map +1 -0
  10. package/dist/links/link-entrypoints.d.ts +4 -0
  11. package/dist/links/link-entrypoints.d.ts.map +1 -0
  12. package/dist/links/link-entrypoints.js +7 -0
  13. package/dist/links/link-entrypoints.js.map +1 -0
  14. package/dist/links/linkables.d.ts +16 -0
  15. package/dist/links/linkables.d.ts.map +1 -0
  16. package/dist/links/linkables.js +19 -0
  17. package/dist/links/linkables.js.map +1 -0
  18. package/dist/modules/index.d.ts +2 -0
  19. package/dist/modules/index.d.ts.map +1 -0
  20. package/dist/modules/index.js +5 -0
  21. package/dist/modules/index.js.map +1 -0
  22. package/dist/tsconfig.tsbuildinfo +1 -0
  23. package/dist/types/algolia/algolia-entity.d.ts +4 -0
  24. package/dist/types/algolia/algolia-entity.d.ts.map +1 -0
  25. package/dist/types/algolia/algolia-entity.js +3 -0
  26. package/dist/types/algolia/algolia-entity.js.map +1 -0
  27. package/dist/types/algolia/algolia-product.d.ts +347 -0
  28. package/dist/types/algolia/algolia-product.d.ts.map +1 -0
  29. package/dist/types/algolia/algolia-product.js +112 -0
  30. package/dist/types/algolia/algolia-product.js.map +1 -0
  31. package/dist/types/algolia/algolia-review.d.ts +25 -0
  32. package/dist/types/algolia/algolia-review.d.ts.map +1 -0
  33. package/dist/types/algolia/algolia-review.js +13 -0
  34. package/dist/types/algolia/algolia-review.js.map +1 -0
  35. package/dist/types/algolia/events.d.ts +13 -0
  36. package/dist/types/algolia/events.d.ts.map +1 -0
  37. package/dist/types/algolia/events.js +18 -0
  38. package/dist/types/algolia/events.js.map +1 -0
  39. package/dist/types/algolia/index-types.d.ts +5 -0
  40. package/dist/types/algolia/index-types.d.ts.map +1 -0
  41. package/dist/types/algolia/index-types.js +9 -0
  42. package/dist/types/algolia/index-types.js.map +1 -0
  43. package/dist/types/algolia/index.d.ts +6 -0
  44. package/dist/types/algolia/index.d.ts.map +1 -0
  45. package/dist/types/algolia/index.js +22 -0
  46. package/dist/types/algolia/index.js.map +1 -0
  47. package/dist/types/attribute/common.d.ts +41 -0
  48. package/dist/types/attribute/common.d.ts.map +1 -0
  49. package/dist/types/attribute/common.js +13 -0
  50. package/dist/types/attribute/common.js.map +1 -0
  51. package/dist/types/attribute/index.d.ts +3 -0
  52. package/dist/types/attribute/index.d.ts.map +1 -0
  53. package/dist/types/attribute/index.js +19 -0
  54. package/dist/types/attribute/index.js.map +1 -0
  55. package/dist/types/attribute/mutations.d.ts +50 -0
  56. package/dist/types/attribute/mutations.d.ts.map +1 -0
  57. package/dist/types/attribute/mutations.js +3 -0
  58. package/dist/types/attribute/mutations.js.map +1 -0
  59. package/dist/types/brand/index.d.ts +2 -0
  60. package/dist/types/brand/index.d.ts.map +1 -0
  61. package/dist/types/brand/index.js +18 -0
  62. package/dist/types/brand/index.js.map +1 -0
  63. package/dist/types/brand/mutations.d.ts +4 -0
  64. package/dist/types/brand/mutations.d.ts.map +1 -0
  65. package/dist/types/brand/mutations.js +3 -0
  66. package/dist/types/brand/mutations.js.map +1 -0
  67. package/dist/types/commission/common.d.ts +59 -0
  68. package/dist/types/commission/common.d.ts.map +1 -0
  69. package/dist/types/commission/common.js +3 -0
  70. package/dist/types/commission/common.js.map +1 -0
  71. package/dist/types/commission/index.d.ts +3 -0
  72. package/dist/types/commission/index.d.ts.map +1 -0
  73. package/dist/types/commission/index.js +19 -0
  74. package/dist/types/commission/index.js.map +1 -0
  75. package/dist/types/commission/mutations.d.ts +28 -0
  76. package/dist/types/commission/mutations.d.ts.map +1 -0
  77. package/dist/types/commission/mutations.js +3 -0
  78. package/dist/types/commission/mutations.js.map +1 -0
  79. package/dist/types/configuration/common.d.ts +14 -0
  80. package/dist/types/configuration/common.d.ts.map +1 -0
  81. package/dist/types/configuration/common.js +11 -0
  82. package/dist/types/configuration/common.js.map +1 -0
  83. package/dist/types/configuration/index.d.ts +3 -0
  84. package/dist/types/configuration/index.d.ts.map +1 -0
  85. package/dist/types/configuration/index.js +19 -0
  86. package/dist/types/configuration/index.js.map +1 -0
  87. package/dist/types/configuration/mutations.d.ts +10 -0
  88. package/dist/types/configuration/mutations.d.ts.map +1 -0
  89. package/dist/types/configuration/mutations.js +3 -0
  90. package/dist/types/configuration/mutations.js.map +1 -0
  91. package/dist/types/index.d.ts +15 -0
  92. package/dist/types/index.d.ts.map +1 -0
  93. package/dist/types/index.js +31 -0
  94. package/dist/types/index.js.map +1 -0
  95. package/dist/types/marketplace/common.d.ts +29 -0
  96. package/dist/types/marketplace/common.d.ts.map +1 -0
  97. package/dist/types/marketplace/common.js +3 -0
  98. package/dist/types/marketplace/common.js.map +1 -0
  99. package/dist/types/marketplace/events.d.ts +4 -0
  100. package/dist/types/marketplace/events.d.ts.map +1 -0
  101. package/dist/types/marketplace/events.js +8 -0
  102. package/dist/types/marketplace/events.js.map +1 -0
  103. package/dist/types/marketplace/index.d.ts +4 -0
  104. package/dist/types/marketplace/index.d.ts.map +1 -0
  105. package/dist/types/marketplace/index.js +20 -0
  106. package/dist/types/marketplace/index.js.map +1 -0
  107. package/dist/types/marketplace/mutations.d.ts +7 -0
  108. package/dist/types/marketplace/mutations.d.ts.map +1 -0
  109. package/dist/types/marketplace/mutations.js +3 -0
  110. package/dist/types/marketplace/mutations.js.map +1 -0
  111. package/dist/types/order-return-request/common.d.ts +20 -0
  112. package/dist/types/order-return-request/common.d.ts.map +1 -0
  113. package/dist/types/order-return-request/common.js +3 -0
  114. package/dist/types/order-return-request/common.js.map +1 -0
  115. package/dist/types/order-return-request/index.d.ts +3 -0
  116. package/dist/types/order-return-request/index.d.ts.map +1 -0
  117. package/dist/types/order-return-request/index.js +19 -0
  118. package/dist/types/order-return-request/index.js.map +1 -0
  119. package/dist/types/order-return-request/mutations.d.ts +29 -0
  120. package/dist/types/order-return-request/mutations.d.ts.map +1 -0
  121. package/dist/types/order-return-request/mutations.js +3 -0
  122. package/dist/types/order-return-request/mutations.js.map +1 -0
  123. package/dist/types/payment-stripe-connect/index.d.ts +13 -0
  124. package/dist/types/payment-stripe-connect/index.d.ts.map +1 -0
  125. package/dist/types/payment-stripe-connect/index.js +14 -0
  126. package/dist/types/payment-stripe-connect/index.js.map +1 -0
  127. package/dist/types/payout/common.d.ts +30 -0
  128. package/dist/types/payout/common.d.ts.map +1 -0
  129. package/dist/types/payout/common.js +10 -0
  130. package/dist/types/payout/common.js.map +1 -0
  131. package/dist/types/payout/events.d.ts +17 -0
  132. package/dist/types/payout/events.d.ts.map +1 -0
  133. package/dist/types/payout/events.js +24 -0
  134. package/dist/types/payout/events.js.map +1 -0
  135. package/dist/types/payout/index.d.ts +5 -0
  136. package/dist/types/payout/index.d.ts.map +1 -0
  137. package/dist/types/payout/index.js +21 -0
  138. package/dist/types/payout/index.js.map +1 -0
  139. package/dist/types/payout/mutations.d.ts +25 -0
  140. package/dist/types/payout/mutations.d.ts.map +1 -0
  141. package/dist/types/payout/mutations.js +3 -0
  142. package/dist/types/payout/mutations.js.map +1 -0
  143. package/dist/types/payout/provider.d.ts +52 -0
  144. package/dist/types/payout/provider.d.ts.map +1 -0
  145. package/dist/types/payout/provider.js +3 -0
  146. package/dist/types/payout/provider.js.map +1 -0
  147. package/dist/types/requests/common.d.ts +12 -0
  148. package/dist/types/requests/common.d.ts.map +1 -0
  149. package/dist/types/requests/common.js +3 -0
  150. package/dist/types/requests/common.js.map +1 -0
  151. package/dist/types/requests/events.d.ts +49 -0
  152. package/dist/types/requests/events.d.ts.map +1 -0
  153. package/dist/types/requests/events.js +64 -0
  154. package/dist/types/requests/events.js.map +1 -0
  155. package/dist/types/requests/humanize_types.d.ts +11 -0
  156. package/dist/types/requests/humanize_types.d.ts.map +1 -0
  157. package/dist/types/requests/humanize_types.js +14 -0
  158. package/dist/types/requests/humanize_types.js.map +1 -0
  159. package/dist/types/requests/index.d.ts +5 -0
  160. package/dist/types/requests/index.d.ts.map +1 -0
  161. package/dist/types/requests/index.js +21 -0
  162. package/dist/types/requests/index.js.map +1 -0
  163. package/dist/types/requests/mutations.d.ts +28 -0
  164. package/dist/types/requests/mutations.d.ts.map +1 -0
  165. package/dist/types/requests/mutations.js +3 -0
  166. package/dist/types/requests/mutations.js.map +1 -0
  167. package/dist/types/reviews/common.d.ts +11 -0
  168. package/dist/types/reviews/common.d.ts.map +1 -0
  169. package/dist/types/reviews/common.js +3 -0
  170. package/dist/types/reviews/common.js.map +1 -0
  171. package/dist/types/reviews/index.d.ts +3 -0
  172. package/dist/types/reviews/index.d.ts.map +1 -0
  173. package/dist/types/reviews/index.js +19 -0
  174. package/dist/types/reviews/index.js.map +1 -0
  175. package/dist/types/reviews/mutatations.d.ts +15 -0
  176. package/dist/types/reviews/mutatations.d.ts.map +1 -0
  177. package/dist/types/reviews/mutatations.js +3 -0
  178. package/dist/types/reviews/mutatations.js.map +1 -0
  179. package/dist/types/seller/common.d.ts +63 -0
  180. package/dist/types/seller/common.d.ts.map +1 -0
  181. package/dist/types/seller/common.js +16 -0
  182. package/dist/types/seller/common.js.map +1 -0
  183. package/dist/types/seller/events.d.ts +4 -0
  184. package/dist/types/seller/events.d.ts.map +1 -0
  185. package/dist/types/seller/events.js +8 -0
  186. package/dist/types/seller/events.js.map +1 -0
  187. package/dist/types/seller/index.d.ts +4 -0
  188. package/dist/types/seller/index.d.ts.map +1 -0
  189. package/dist/types/seller/index.js +20 -0
  190. package/dist/types/seller/index.js.map +1 -0
  191. package/dist/types/seller/mutations.d.ts +53 -0
  192. package/dist/types/seller/mutations.d.ts.map +1 -0
  193. package/dist/types/seller/mutations.js +3 -0
  194. package/dist/types/seller/mutations.js.map +1 -0
  195. package/dist/types/split-order-payment/common.d.ts +10 -0
  196. package/dist/types/split-order-payment/common.d.ts.map +1 -0
  197. package/dist/types/split-order-payment/common.js +3 -0
  198. package/dist/types/split-order-payment/common.js.map +1 -0
  199. package/dist/types/split-order-payment/index.d.ts +3 -0
  200. package/dist/types/split-order-payment/index.d.ts.map +1 -0
  201. package/dist/types/split-order-payment/index.js +19 -0
  202. package/dist/types/split-order-payment/index.js.map +1 -0
  203. package/dist/types/split-order-payment/mutations.d.ts +19 -0
  204. package/dist/types/split-order-payment/mutations.d.ts.map +1 -0
  205. package/dist/types/split-order-payment/mutations.js +3 -0
  206. package/dist/types/split-order-payment/mutations.js.map +1 -0
  207. package/dist/types/wishlist/common.d.ts +17 -0
  208. package/dist/types/wishlist/common.d.ts.map +1 -0
  209. package/dist/types/wishlist/common.js +3 -0
  210. package/dist/types/wishlist/common.js.map +1 -0
  211. package/dist/types/wishlist/index.d.ts +3 -0
  212. package/dist/types/wishlist/index.d.ts.map +1 -0
  213. package/dist/types/wishlist/index.js +19 -0
  214. package/dist/types/wishlist/index.js.map +1 -0
  215. package/dist/types/wishlist/mutations.d.ts +10 -0
  216. package/dist/types/wishlist/mutations.d.ts.map +1 -0
  217. package/dist/types/wishlist/mutations.js +3 -0
  218. package/dist/types/wishlist/mutations.js.map +1 -0
  219. package/dist/utils/admin.d.ts +3 -0
  220. package/dist/utils/admin.d.ts.map +1 -0
  221. package/dist/utils/admin.js +14 -0
  222. package/dist/utils/admin.js.map +1 -0
  223. package/dist/utils/configuration.d.ts +5 -0
  224. package/dist/utils/configuration.d.ts.map +1 -0
  225. package/dist/utils/configuration.js +32 -0
  226. package/dist/utils/configuration.js.map +1 -0
  227. package/dist/utils/hosts.d.ts +24 -0
  228. package/dist/utils/hosts.d.ts.map +1 -0
  229. package/dist/utils/hosts.js +43 -0
  230. package/dist/utils/hosts.js.map +1 -0
  231. package/dist/utils/index.d.ts +7 -0
  232. package/dist/utils/index.d.ts.map +1 -0
  233. package/dist/utils/index.js +23 -0
  234. package/dist/utils/index.js.map +1 -0
  235. package/dist/utils/middlewares/apply-reference-filter.d.ts +7 -0
  236. package/dist/utils/middlewares/apply-reference-filter.d.ts.map +1 -0
  237. package/dist/utils/middlewares/apply-reference-filter.js +15 -0
  238. package/dist/utils/middlewares/apply-reference-filter.js.map +1 -0
  239. package/dist/utils/middlewares/check-customer-ownership.d.ts +10 -0
  240. package/dist/utils/middlewares/check-customer-ownership.d.ts.map +1 -0
  241. package/dist/utils/middlewares/check-customer-ownership.js +34 -0
  242. package/dist/utils/middlewares/check-customer-ownership.js.map +1 -0
  243. package/dist/utils/middlewares/check-ownership.d.ts +35 -0
  244. package/dist/utils/middlewares/check-ownership.d.ts.map +1 -0
  245. package/dist/utils/middlewares/check-ownership.js +66 -0
  246. package/dist/utils/middlewares/check-ownership.js.map +1 -0
  247. package/dist/utils/middlewares/filter-by-seller-id.d.ts +7 -0
  248. package/dist/utils/middlewares/filter-by-seller-id.d.ts.map +1 -0
  249. package/dist/utils/middlewares/filter-by-seller-id.js +15 -0
  250. package/dist/utils/middlewares/filter-by-seller-id.js.map +1 -0
  251. package/dist/utils/middlewares/index.d.ts +5 -0
  252. package/dist/utils/middlewares/index.d.ts.map +1 -0
  253. package/dist/utils/middlewares/index.js +21 -0
  254. package/dist/utils/middlewares/index.js.map +1 -0
  255. package/dist/utils/money.d.ts +17 -0
  256. package/dist/utils/money.d.ts.map +1 -0
  257. package/dist/utils/money.js +68 -0
  258. package/dist/utils/money.js.map +1 -0
  259. package/dist/utils/seller.d.ts +4 -0
  260. package/dist/utils/seller.d.ts.map +1 -0
  261. package/dist/utils/seller.js +19 -0
  262. package/dist/utils/seller.js.map +1 -0
  263. package/dist/workflows/emit-multiple-events-step.d.ts +7 -0
  264. package/dist/workflows/emit-multiple-events-step.d.ts.map +1 -0
  265. package/dist/workflows/emit-multiple-events-step.js +12 -0
  266. package/dist/workflows/emit-multiple-events-step.js.map +1 -0
  267. package/dist/workflows/index.d.ts +3 -0
  268. package/dist/workflows/index.d.ts.map +1 -0
  269. package/dist/workflows/index.js +19 -0
  270. package/dist/workflows/index.js.map +1 -0
  271. package/dist/workflows/update-product-status.d.ts +10 -0
  272. package/dist/workflows/update-product-status.d.ts.map +1 -0
  273. package/dist/workflows/update-product-status.js +18 -0
  274. package/dist/workflows/update-product-status.js.map +1 -0
  275. package/package.json +55 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/types/commission/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export declare enum ConfigurationRuleType {
2
+ GLOBAL_PRODUCT_CATALOG = "global_product_catalog",
3
+ REQUIRE_PRODUCT_APPROVAL = "require_product_approval",
4
+ PRODUCT_REQUEST_ENABLED = "product_request_enabled",
5
+ PRODUCT_IMPORT_ENABLED = "product_import_enabled"
6
+ }
7
+ export type ConfigurationRule = {
8
+ id: string;
9
+ rule_type: ConfigurationRuleType;
10
+ is_enabled: boolean;
11
+ created_at: Date;
12
+ updated_at: Date;
13
+ };
14
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/configuration/common.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;CAClD;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,qBAAqB,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;CACjB,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigurationRuleType = void 0;
4
+ var ConfigurationRuleType;
5
+ (function (ConfigurationRuleType) {
6
+ ConfigurationRuleType["GLOBAL_PRODUCT_CATALOG"] = "global_product_catalog";
7
+ ConfigurationRuleType["REQUIRE_PRODUCT_APPROVAL"] = "require_product_approval";
8
+ ConfigurationRuleType["PRODUCT_REQUEST_ENABLED"] = "product_request_enabled";
9
+ ConfigurationRuleType["PRODUCT_IMPORT_ENABLED"] = "product_import_enabled";
10
+ })(ConfigurationRuleType || (exports.ConfigurationRuleType = ConfigurationRuleType = {}));
11
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/configuration/common.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,0EAAiD,CAAA;IACjD,8EAAqD,CAAA;IACrD,4EAAmD,CAAA;IACnD,0EAAiD,CAAA;AACnD,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC"}
@@ -0,0 +1,3 @@
1
+ export * from './common';
2
+ export * from './mutations';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/configuration/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,19 @@
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("./common"), exports);
18
+ __exportStar(require("./mutations"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/configuration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,8CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { ConfigurationRuleType } from './common';
2
+ export interface CreateConfigurationRuleDTO {
3
+ rule_type: ConfigurationRuleType;
4
+ is_enabled: boolean;
5
+ }
6
+ export interface UpdateConfigurationRuleDTO {
7
+ id: string;
8
+ is_enabled: boolean;
9
+ }
10
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/types/configuration/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,qBAAqB,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,OAAO,CAAA;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/types/configuration/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export * from "./configuration";
2
+ export * from "./seller";
3
+ export * from "./reviews";
4
+ export * from "./payout";
5
+ export * from "./marketplace";
6
+ export * from "./brand";
7
+ export * from "./commission";
8
+ export * from "./wishlist";
9
+ export * from "./attribute";
10
+ export * from "./order-return-request";
11
+ export * from "./requests";
12
+ export * from "./split-order-payment";
13
+ export * from "./algolia";
14
+ export * from "./payment-stripe-connect";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,31 @@
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("./configuration"), exports);
18
+ __exportStar(require("./seller"), exports);
19
+ __exportStar(require("./reviews"), exports);
20
+ __exportStar(require("./payout"), exports);
21
+ __exportStar(require("./marketplace"), exports);
22
+ __exportStar(require("./brand"), exports);
23
+ __exportStar(require("./commission"), exports);
24
+ __exportStar(require("./wishlist"), exports);
25
+ __exportStar(require("./attribute"), exports);
26
+ __exportStar(require("./order-return-request"), exports);
27
+ __exportStar(require("./requests"), exports);
28
+ __exportStar(require("./split-order-payment"), exports);
29
+ __exportStar(require("./algolia"), exports);
30
+ __exportStar(require("./payment-stripe-connect"), exports);
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,yDAAuC;AACvC,6CAA2B;AAC3B,wDAAsC;AACtC,4CAA0B;AAC1B,2DAAyC"}
@@ -0,0 +1,29 @@
1
+ import { BigNumberInput, CartDTO, CustomerDTO, FulfillmentStatus, OrderDTO, OrderDetailDTO, OrderStatus, PaymentCollectionDTO, PaymentCollectionStatus, SalesChannelDTO } from '@medusajs/framework/types';
2
+ export type OrderSetDTO = {
3
+ id: string;
4
+ created_at: Date;
5
+ updated_at: Date;
6
+ display_id: number;
7
+ customer_id?: string;
8
+ customer?: CustomerDTO;
9
+ cart_id: string;
10
+ cart?: CartDTO;
11
+ sales_channel_id?: string;
12
+ sales_channel?: SalesChannelDTO;
13
+ payment_collection_id?: string;
14
+ payment_collection?: PaymentCollectionDTO;
15
+ };
16
+ export type OrderSetWithOrdersDTO = OrderSetDTO & {
17
+ orders: (OrderDTO & OrderDetailDTO)[];
18
+ };
19
+ export type FormattedOrderSetDTO = OrderSetDTO & {
20
+ status: OrderStatus;
21
+ payment_status: PaymentCollectionStatus;
22
+ fulfillment_status: FulfillmentStatus;
23
+ total: BigNumberInput;
24
+ tax_total: BigNumberInput;
25
+ subtotal: BigNumberInput;
26
+ shipping_total: BigNumberInput;
27
+ shipping_tax_total: BigNumberInput;
28
+ };
29
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/marketplace/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,eAAe,CAAA;IAE/B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,MAAM,EAAE,CAAC,QAAQ,GAAG,cAAc,CAAC,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAC/C,MAAM,EAAE,WAAW,CAAA;IACnB,cAAc,EAAE,uBAAuB,CAAA;IACvC,kBAAkB,EAAE,iBAAiB,CAAA;IAErC,KAAK,EAAE,cAAc,CAAA;IACrB,SAAS,EAAE,cAAc,CAAA;IACzB,QAAQ,EAAE,cAAc,CAAA;IACxB,cAAc,EAAE,cAAc,CAAA;IAC9B,kBAAkB,EAAE,cAAc,CAAA;CACnC,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/marketplace/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare enum OrderSetWorkflowEvents {
2
+ PLACED = "order_set.placed"
3
+ }
4
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/marketplace/events.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,MAAM,qBAAqB;CAC5B"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderSetWorkflowEvents = void 0;
4
+ var OrderSetWorkflowEvents;
5
+ (function (OrderSetWorkflowEvents) {
6
+ OrderSetWorkflowEvents["PLACED"] = "order_set.placed";
7
+ })(OrderSetWorkflowEvents || (exports.OrderSetWorkflowEvents = OrderSetWorkflowEvents = {}));
8
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/types/marketplace/events.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,qDAA2B,CAAA;AAC7B,CAAC,EAFW,sBAAsB,sCAAtB,sBAAsB,QAEjC"}
@@ -0,0 +1,4 @@
1
+ export * from './events';
2
+ export * from './common';
3
+ export * from './mutations';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/marketplace/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,20 @@
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("./events"), exports);
18
+ __exportStar(require("./common"), exports);
19
+ __exportStar(require("./mutations"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/marketplace/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B"}
@@ -0,0 +1,7 @@
1
+ export type CreateOrderSetDTO = {
2
+ cart_id: string;
3
+ customer_id: string;
4
+ payment_collection_id: string;
5
+ sales_channel_id: string;
6
+ };
7
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/types/marketplace/mutations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/types/marketplace/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export type OrderReturnRequestLineItemDTO = {
2
+ id: string;
3
+ line_item_id: string;
4
+ quantity: number;
5
+ };
6
+ export type OrderReturnRequestDTO = {
7
+ id: string;
8
+ line_items: OrderReturnRequestLineItemDTO[];
9
+ customer_id: string;
10
+ customer_note: string;
11
+ shipping_option_id: string | null;
12
+ vendor_reviewer_id: string | null;
13
+ vendor_reviewer_note: string | null;
14
+ vendor_review_date: Date | null;
15
+ admin_reviewer_id: string | null;
16
+ admin_reviewer_note: string | null;
17
+ admin_review_date: Date | null;
18
+ status: string;
19
+ };
20
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/order-return-request/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,6BAA6B,EAAE,CAAA;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,kBAAkB,EAAE,IAAI,GAAG,IAAI,CAAA;IAC/B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/order-return-request/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './common';
2
+ export * from './mutations';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/order-return-request/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,19 @@
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("./common"), exports);
18
+ __exportStar(require("./mutations"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/order-return-request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,8CAA2B"}
@@ -0,0 +1,29 @@
1
+ export type CreateOrderReturnRequestDTO = {
2
+ order_id: string;
3
+ shipping_option_id?: string;
4
+ line_items: {
5
+ line_item_id: string;
6
+ quantity: number;
7
+ reason_id?: string;
8
+ }[];
9
+ customer_id: string;
10
+ customer_note: string;
11
+ };
12
+ export type OrderReturnRequestStatus = "pending" | "refunded" | "withdrawn" | "escalated" | "canceled";
13
+ export type VendorUpdateOrderReturnRequestDTO = {
14
+ id: string;
15
+ vendor_reviewer_id: string;
16
+ vendor_reviewer_note: string;
17
+ vendor_review_date: Date;
18
+ status: OrderReturnRequestStatus;
19
+ location_id?: string;
20
+ };
21
+ export type AdminUpdateOrderReturnRequestDTO = {
22
+ id: string;
23
+ admin_reviewer_id: string;
24
+ admin_reviewer_note: string;
25
+ admin_review_date: Date;
26
+ status: OrderReturnRequestStatus;
27
+ location_id?: string;
28
+ };
29
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/types/order-return-request/mutations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7E,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAChC,SAAS,GACT,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,iCAAiC,GAAG;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,IAAI,CAAC;IACzB,MAAM,EAAE,wBAAwB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,IAAI,CAAC;IACxB,MAAM,EAAE,wBAAwB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/types/order-return-request/mutations.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import Stripe from 'stripe';
2
+ export declare const PaymentProviderKeys: {
3
+ CARD: string;
4
+ };
5
+ export type PaymentIntentOptions = Omit<Stripe.PaymentIntentCreateParams, 'amount' | 'currency' | 'metadata' | 'transfer_group'>;
6
+ export declare const ErrorCodes: {
7
+ PAYMENT_INTENT_UNEXPECTED_STATE: string;
8
+ };
9
+ export declare const ErrorIntentStatus: {
10
+ SUCCEEDED: string;
11
+ CANCELED: string;
12
+ };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/payment-stripe-connect/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,eAAO,MAAM,mBAAmB;;CAE/B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,MAAM,CAAC,yBAAyB,EAChC,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,gBAAgB,CACtD,CAAA;AAED,eAAO,MAAM,UAAU;;CAEtB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;CAG7B,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorIntentStatus = exports.ErrorCodes = exports.PaymentProviderKeys = void 0;
4
+ exports.PaymentProviderKeys = {
5
+ CARD: 'card'
6
+ };
7
+ exports.ErrorCodes = {
8
+ PAYMENT_INTENT_UNEXPECTED_STATE: 'payment_intent_unexpected_state'
9
+ };
10
+ exports.ErrorIntentStatus = {
11
+ SUCCEEDED: 'succeeded',
12
+ CANCELED: 'canceled'
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/payment-stripe-connect/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;CACb,CAAA;AAOY,QAAA,UAAU,GAAG;IACxB,+BAA+B,EAAE,iCAAiC;CACnE,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACrB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { BigNumberInput } from '@medusajs/framework/types';
2
+ export declare enum PayoutAccountStatus {
3
+ PENDING = "pending",
4
+ ACTIVE = "active",
5
+ DISABLED = "disabled"
6
+ }
7
+ export type PayoutAccountDTO = {
8
+ id: string;
9
+ created_at: Date;
10
+ updated_at: Date;
11
+ reference_id: string;
12
+ data: Record<string, unknown>;
13
+ status: PayoutAccountStatus;
14
+ };
15
+ export type OnboardingDTO = {
16
+ id: string;
17
+ created_at: Date;
18
+ updated_at: Date;
19
+ data: Record<string, unknown>;
20
+ context: Record<string, unknown>;
21
+ };
22
+ export type PayoutDTO = {
23
+ id: string;
24
+ created_at: Date;
25
+ updated_at: Date;
26
+ data: Record<string, unknown> | null;
27
+ amount: BigNumberInput;
28
+ currency_code: string;
29
+ };
30
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/payout/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,MAAM,EAAE,mBAAmB,CAAA;CAC5B,CAAA;AAID,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC,CAAA;AAID,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpC,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayoutAccountStatus = void 0;
4
+ var PayoutAccountStatus;
5
+ (function (PayoutAccountStatus) {
6
+ PayoutAccountStatus["PENDING"] = "pending";
7
+ PayoutAccountStatus["ACTIVE"] = "active";
8
+ PayoutAccountStatus["DISABLED"] = "disabled";
9
+ })(PayoutAccountStatus || (exports.PayoutAccountStatus = PayoutAccountStatus = {}));
10
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/payout/common.ts"],"names":[],"mappings":";;;AAGA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -0,0 +1,17 @@
1
+ export declare enum PayoutWorkflowEvents {
2
+ FAILED = "payout.failed",
3
+ SUCCEEDED = "payout.succeeded",
4
+ RECEIVED = "payout.received"
5
+ }
6
+ export declare enum PayoutWebhookEvents {
7
+ ACCOUNT_WEBHOOK_RECEIVED = "payout_account.webhook_received"
8
+ }
9
+ export declare enum PayoutWebhookAction {
10
+ ACCOUNT_AUTHORIZED = "account_authorized",
11
+ ACCOUNT_DEAUTHORIZED = "account_deauthorized",
12
+ ACCOUNT_REQUIRES_ACTION = "account_requires_action"
13
+ }
14
+ export declare enum PayoutSummaryEvents {
15
+ NOTIFICATION_SENT = "payout.notification_sent"
16
+ }
17
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/payout/events.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,MAAM,kBAAkB;IACxB,SAAS,qBAAqB;IAC9B,QAAQ,oBAAoB;CAC7B;AAED,oBAAY,mBAAmB;IAC7B,wBAAwB,oCAAoC;CAC7D;AAED,oBAAY,mBAAmB;IAC7B,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,uBAAuB,4BAA4B;CACpD;AAED,oBAAY,mBAAmB;IAC7B,iBAAiB,6BAA6B;CAC/C"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayoutSummaryEvents = exports.PayoutWebhookAction = exports.PayoutWebhookEvents = exports.PayoutWorkflowEvents = void 0;
4
+ var PayoutWorkflowEvents;
5
+ (function (PayoutWorkflowEvents) {
6
+ PayoutWorkflowEvents["FAILED"] = "payout.failed";
7
+ PayoutWorkflowEvents["SUCCEEDED"] = "payout.succeeded";
8
+ PayoutWorkflowEvents["RECEIVED"] = "payout.received";
9
+ })(PayoutWorkflowEvents || (exports.PayoutWorkflowEvents = PayoutWorkflowEvents = {}));
10
+ var PayoutWebhookEvents;
11
+ (function (PayoutWebhookEvents) {
12
+ PayoutWebhookEvents["ACCOUNT_WEBHOOK_RECEIVED"] = "payout_account.webhook_received";
13
+ })(PayoutWebhookEvents || (exports.PayoutWebhookEvents = PayoutWebhookEvents = {}));
14
+ var PayoutWebhookAction;
15
+ (function (PayoutWebhookAction) {
16
+ PayoutWebhookAction["ACCOUNT_AUTHORIZED"] = "account_authorized";
17
+ PayoutWebhookAction["ACCOUNT_DEAUTHORIZED"] = "account_deauthorized";
18
+ PayoutWebhookAction["ACCOUNT_REQUIRES_ACTION"] = "account_requires_action";
19
+ })(PayoutWebhookAction || (exports.PayoutWebhookAction = PayoutWebhookAction = {}));
20
+ var PayoutSummaryEvents;
21
+ (function (PayoutSummaryEvents) {
22
+ PayoutSummaryEvents["NOTIFICATION_SENT"] = "payout.notification_sent";
23
+ })(PayoutSummaryEvents || (exports.PayoutSummaryEvents = PayoutSummaryEvents = {}));
24
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/types/payout/events.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,gDAAwB,CAAA;IACxB,sDAA8B,CAAA;IAC9B,oDAA4B,CAAA;AAC9B,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,mFAA4D,CAAA;AAC9D,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,gEAAyC,CAAA;IACzC,oEAA6C,CAAA;IAC7C,0EAAmD,CAAA;AACrD,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAED,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,qEAA8C,CAAA;AAChD,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B"}
@@ -0,0 +1,5 @@
1
+ export * from './events';
2
+ export * from './common';
3
+ export * from './mutations';
4
+ export * from './provider';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/payout/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
@@ -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("./events"), exports);
18
+ __exportStar(require("./common"), exports);
19
+ __exportStar(require("./mutations"), exports);
20
+ __exportStar(require("./provider"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/payout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B"}
@@ -0,0 +1,25 @@
1
+ import { BigNumberInput } from '@medusajs/framework/types';
2
+ import { OnboardingDTO, PayoutAccountDTO } from './common';
3
+ export interface CreatePayoutAccountDTO {
4
+ context: Record<string, unknown>;
5
+ }
6
+ export interface UpdatePayoutAccountDTO extends Omit<Partial<PayoutAccountDTO>, 'id' | 'created_at' | 'updated_at'> {
7
+ id: string;
8
+ }
9
+ export interface CreateOnboardingDTO extends Omit<Partial<OnboardingDTO>, 'id' | 'created_at' | 'updated_at' | 'data'> {
10
+ payout_account_id: string;
11
+ context: Record<string, unknown>;
12
+ }
13
+ export type CreatePayoutDTO = {
14
+ amount: BigNumberInput;
15
+ currency_code: string;
16
+ account_id: string;
17
+ transaction_id: string;
18
+ source_transaction: string;
19
+ };
20
+ export type CreatePayoutReversalDTO = {
21
+ payout_id: string;
22
+ amount: BigNumberInput;
23
+ currency_code: string;
24
+ };
25
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/types/payout/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,IAAI,GAAG,YAAY,GAAG,YAAY,CAAC;IAC3E,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CACV,OAAO,CAAC,aAAa,CAAC,EACtB,IAAI,GAAG,YAAY,GAAG,YAAY,GAAG,MAAM,CAC5C;IACD,iBAAiB,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,cAAc,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/types/payout/mutations.ts"],"names":[],"mappings":""}