@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
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ ![Mercur Main Cover](https://cdn.prod.website-files.com/6790aeffc4b432ccaf1b56e5/67a225dc6fa298afc1cc4ae6_Mercur%20Cover.png)
2
+
3
+ <div align="center">
4
+ <h1>Mercur <br> Open Source Marketplace Platform</h1>
5
+ <!-- Shields.io Badges -->
6
+ <a href="https://github.com/mercurjs/mercur/tree/main?tab=MIT-1-ov-file">
7
+ <img alt="License" src="https://img.shields.io/badge/license-MIT-blue.svg" />
8
+ </a>
9
+ <a href="#">
10
+ <img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" />
11
+ </a>
12
+ <a href="https://rigbyjs.com/#contact">
13
+ <img alt="Support" src="https://img.shields.io/badge/support-contact%20author-blueviolet.svg" />
14
+ </a>
15
+ <p>
16
+ <a href="https://mercurjs.com/">Mercur</a> | <a href="https://docs.mercurjs.com/">Docs</a>
17
+ </p>
18
+ </div>
19
+
20
+ # @mercurjs/framework
21
+
22
+ This package is a part of MercurJS! Check our <a href="https://github.com/mercurjs/mercur">Github</a> for more information!
@@ -0,0 +1,6 @@
1
+ export * from "./types";
2
+ export * from "./utils";
3
+ export * from "./links";
4
+ export * from "./modules";
5
+ export * from "./workflows";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
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("./types"), exports);
18
+ __exportStar(require("./utils"), exports);
19
+ __exportStar(require("./links"), exports);
20
+ __exportStar(require("./modules"), exports);
21
+ __exportStar(require("./workflows"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B"}
@@ -0,0 +1,3 @@
1
+ export * from "./link-entrypoints";
2
+ export * from "./linkables";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/links/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -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("./link-entrypoints"), exports);
18
+ __exportStar(require("./linkables"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/links/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,8CAA4B"}
@@ -0,0 +1,4 @@
1
+ export declare const SELLER_ORDER_LINK = "seller_order";
2
+ export declare const SELLER_PRODUCT_LINK = "seller_product";
3
+ export declare const SELLER_SHIPPING_PROFILE_LINK = "seller_shipping_profile";
4
+ //# sourceMappingURL=link-entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-entrypoints.d.ts","sourceRoot":"","sources":["../../src/links/link-entrypoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SELLER_SHIPPING_PROFILE_LINK = exports.SELLER_PRODUCT_LINK = exports.SELLER_ORDER_LINK = void 0;
4
+ exports.SELLER_ORDER_LINK = "seller_order";
5
+ exports.SELLER_PRODUCT_LINK = "seller_product";
6
+ exports.SELLER_SHIPPING_PROFILE_LINK = "seller_shipping_profile";
7
+ //# sourceMappingURL=link-entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-entrypoints.js","sourceRoot":"","sources":["../../src/links/link-entrypoints.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,cAAc,CAAC;AACnC,QAAA,mBAAmB,GAAG,gBAAgB,CAAC;AACvC,QAAA,4BAA4B,GAAG,yBAAyB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const SellerModuleSellerLinkable: {
2
+ toJSON: () => {
3
+ serviceName: string;
4
+ field: string;
5
+ linkable: string;
6
+ primaryKey: string;
7
+ };
8
+ id: {
9
+ linkable: string;
10
+ primaryKey: string;
11
+ serviceName: string;
12
+ field: string;
13
+ entity: string;
14
+ };
15
+ };
16
+ //# sourceMappingURL=linkables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkables.d.ts","sourceRoot":"","sources":["../../src/links/linkables.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;CActC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SellerModuleSellerLinkable = void 0;
4
+ exports.SellerModuleSellerLinkable = {
5
+ toJSON: () => ({
6
+ serviceName: "seller",
7
+ field: "seller",
8
+ linkable: "seller_id",
9
+ primaryKey: "id",
10
+ }),
11
+ id: {
12
+ linkable: "seller_id",
13
+ primaryKey: "id",
14
+ serviceName: "seller",
15
+ field: "seller",
16
+ entity: "Seller",
17
+ },
18
+ };
19
+ //# sourceMappingURL=linkables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkables.js","sourceRoot":"","sources":["../../src/links/linkables.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACb,WAAW,EAAE,QAAQ;QACrB,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,IAAI;KACjB,CAAC;IACF,EAAE,EAAE;QACF,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,QAAQ;QACrB,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;KACjB;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SELLER_MODULE = "seller";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SELLER_MODULE = void 0;
4
+ exports.SELLER_MODULE = "seller";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"root":["../src/index.ts","../src/links/index.ts","../src/links/link-entrypoints.ts","../src/links/linkables.ts","../src/modules/index.ts","../src/types/index.ts","../src/types/algolia/algolia-entity.ts","../src/types/algolia/algolia-product.ts","../src/types/algolia/algolia-review.ts","../src/types/algolia/events.ts","../src/types/algolia/index-types.ts","../src/types/algolia/index.ts","../src/types/attribute/common.ts","../src/types/attribute/index.ts","../src/types/attribute/mutations.ts","../src/types/brand/index.ts","../src/types/brand/mutations.ts","../src/types/commission/common.ts","../src/types/commission/index.ts","../src/types/commission/mutations.ts","../src/types/configuration/common.ts","../src/types/configuration/index.ts","../src/types/configuration/mutations.ts","../src/types/marketplace/common.ts","../src/types/marketplace/events.ts","../src/types/marketplace/index.ts","../src/types/marketplace/mutations.ts","../src/types/order-return-request/common.ts","../src/types/order-return-request/index.ts","../src/types/order-return-request/mutations.ts","../src/types/payment-stripe-connect/index.ts","../src/types/payout/common.ts","../src/types/payout/events.ts","../src/types/payout/index.ts","../src/types/payout/mutations.ts","../src/types/payout/provider.ts","../src/types/requests/common.ts","../src/types/requests/events.ts","../src/types/requests/humanize_types.ts","../src/types/requests/index.ts","../src/types/requests/mutations.ts","../src/types/reviews/common.ts","../src/types/reviews/index.ts","../src/types/reviews/mutatations.ts","../src/types/seller/common.ts","../src/types/seller/events.ts","../src/types/seller/index.ts","../src/types/seller/mutations.ts","../src/types/split-order-payment/common.ts","../src/types/split-order-payment/index.ts","../src/types/split-order-payment/mutations.ts","../src/types/wishlist/common.ts","../src/types/wishlist/index.ts","../src/types/wishlist/mutations.ts","../src/utils/admin.ts","../src/utils/configuration.ts","../src/utils/hosts.ts","../src/utils/index.ts","../src/utils/money.ts","../src/utils/seller.ts","../src/utils/middlewares/apply-reference-filter.ts","../src/utils/middlewares/check-customer-ownership.ts","../src/utils/middlewares/check-ownership.ts","../src/utils/middlewares/filter-by-seller-id.ts","../src/utils/middlewares/index.ts","../src/workflows/emit-multiple-events-step.ts","../src/workflows/index.ts","../src/workflows/update-product-status.ts"],"version":"5.8.2"}
@@ -0,0 +1,4 @@
1
+ import { AlgoliaProduct } from './algolia-product';
2
+ import { AlgoliaReview } from './algolia-review';
3
+ export type AlgoliaEntity = AlgoliaProduct | AlgoliaReview;
4
+ //# sourceMappingURL=algolia-entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algolia-entity.d.ts","sourceRoot":"","sources":["../../../src/types/algolia/algolia-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=algolia-entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algolia-entity.js","sourceRoot":"","sources":["../../../src/types/algolia/algolia-entity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,347 @@
1
+ import { z } from "zod";
2
+ import { StoreStatus } from "../seller";
3
+ export type AlgoliaProduct = z.infer<typeof AlgoliaProductValidator>;
4
+ export declare const AlgoliaProductValidator: z.ZodObject<{
5
+ id: z.ZodString;
6
+ title: z.ZodString;
7
+ handle: z.ZodString;
8
+ subtitle: z.ZodNullable<z.ZodString>;
9
+ description: z.ZodNullable<z.ZodString>;
10
+ thumbnail: z.ZodNullable<z.ZodString>;
11
+ average_rating: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12
+ supported_countries: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
13
+ options: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>>;
14
+ images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodString;
16
+ url: z.ZodString;
17
+ rank: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ id: string;
20
+ rank: number;
21
+ url: string;
22
+ }, {
23
+ id: string;
24
+ rank: number;
25
+ url: string;
26
+ }>, "many">>>;
27
+ collection: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ title: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ title: string;
31
+ }, {
32
+ title: string;
33
+ }>>>;
34
+ type: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
+ value: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ value: string;
38
+ }, {
39
+ value: string;
40
+ }>>>;
41
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ value: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ value: string;
45
+ }, {
46
+ value: string;
47
+ }>, "many">>;
48
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ name: z.ZodString;
50
+ id: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ id: string;
53
+ name: string;
54
+ }, {
55
+ id: string;
56
+ name: string;
57
+ }>, "many">>;
58
+ variants: z.ZodDefault<z.ZodNullable<z.ZodAny>>;
59
+ attribute_values: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ value: z.ZodString;
62
+ is_filterable: z.ZodBoolean;
63
+ ui_component: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ name: string;
66
+ value: string;
67
+ is_filterable: boolean;
68
+ ui_component: string;
69
+ }, {
70
+ name: string;
71
+ value: string;
72
+ is_filterable: boolean;
73
+ ui_component: string;
74
+ }>, "many">>;
75
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
83
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
84
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ seller: z.ZodNullable<z.ZodObject<{
88
+ id: z.ZodString;
89
+ handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ store_status: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof StoreStatus>>>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ id: string;
93
+ handle?: string | null | undefined;
94
+ store_status?: StoreStatus | null | undefined;
95
+ }, {
96
+ id: string;
97
+ handle?: string | null | undefined;
98
+ store_status?: StoreStatus | null | undefined;
99
+ }>>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ description: string | null;
103
+ handle: string;
104
+ seller: {
105
+ id: string;
106
+ handle?: string | null | undefined;
107
+ store_status?: StoreStatus | null | undefined;
108
+ } | null;
109
+ title: string;
110
+ subtitle: string | null;
111
+ thumbnail: string | null;
112
+ average_rating: number | null;
113
+ options: Record<string, string>[] | null;
114
+ supported_countries: string[] | null;
115
+ images?: {
116
+ id: string;
117
+ rank: number;
118
+ url: string;
119
+ }[] | null | undefined;
120
+ collection?: {
121
+ title: string;
122
+ } | null | undefined;
123
+ type?: {
124
+ value: string;
125
+ } | null | undefined;
126
+ tags?: {
127
+ value: string;
128
+ }[] | undefined;
129
+ categories?: {
130
+ id: string;
131
+ name: string;
132
+ }[] | undefined;
133
+ variants?: any;
134
+ attribute_values?: {
135
+ name: string;
136
+ value: string;
137
+ is_filterable: boolean;
138
+ ui_component: string;
139
+ }[] | undefined;
140
+ sku?: string | null | undefined;
141
+ ean?: string | null | undefined;
142
+ upc?: string | null | undefined;
143
+ barcode?: string | null | undefined;
144
+ hs_code?: string | null | undefined;
145
+ mid_code?: string | null | undefined;
146
+ weight?: number | null | undefined;
147
+ length?: number | null | undefined;
148
+ height?: number | null | undefined;
149
+ width?: number | null | undefined;
150
+ origin_country?: string | null | undefined;
151
+ material?: string | null | undefined;
152
+ }, {
153
+ id: string;
154
+ description: string | null;
155
+ handle: string;
156
+ seller: {
157
+ id: string;
158
+ handle?: string | null | undefined;
159
+ store_status?: StoreStatus | null | undefined;
160
+ } | null;
161
+ title: string;
162
+ subtitle: string | null;
163
+ thumbnail: string | null;
164
+ average_rating?: number | null | undefined;
165
+ supported_countries?: string[] | null | undefined;
166
+ options?: Record<string, string>[] | null | undefined;
167
+ images?: {
168
+ id: string;
169
+ rank: number;
170
+ url: string;
171
+ }[] | null | undefined;
172
+ collection?: {
173
+ title: string;
174
+ } | null | undefined;
175
+ type?: {
176
+ value: string;
177
+ } | null | undefined;
178
+ tags?: {
179
+ value: string;
180
+ }[] | undefined;
181
+ categories?: {
182
+ id: string;
183
+ name: string;
184
+ }[] | undefined;
185
+ variants?: any;
186
+ attribute_values?: {
187
+ name: string;
188
+ value: string;
189
+ is_filterable: boolean;
190
+ ui_component: string;
191
+ }[] | undefined;
192
+ sku?: string | null | undefined;
193
+ ean?: string | null | undefined;
194
+ upc?: string | null | undefined;
195
+ barcode?: string | null | undefined;
196
+ hs_code?: string | null | undefined;
197
+ mid_code?: string | null | undefined;
198
+ weight?: number | null | undefined;
199
+ length?: number | null | undefined;
200
+ height?: number | null | undefined;
201
+ width?: number | null | undefined;
202
+ origin_country?: string | null | undefined;
203
+ material?: string | null | undefined;
204
+ }>;
205
+ export declare const AlgoliaVariantValidator: z.ZodObject<{
206
+ id: z.ZodString;
207
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ ups: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ allow_backorder: z.ZodBoolean;
213
+ manage_inventory: z.ZodBoolean;
214
+ hs_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
219
+ length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
220
+ height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
+ wifth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
+ variant_rank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
223
+ options: z.ZodArray<z.ZodObject<{
224
+ id: z.ZodString;
225
+ value: z.ZodString;
226
+ option: z.ZodObject<{
227
+ id: z.ZodString;
228
+ title: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ id: string;
231
+ title: string;
232
+ }, {
233
+ id: string;
234
+ title: string;
235
+ }>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ id: string;
238
+ value: string;
239
+ option: {
240
+ id: string;
241
+ title: string;
242
+ };
243
+ }, {
244
+ id: string;
245
+ value: string;
246
+ option: {
247
+ id: string;
248
+ title: string;
249
+ };
250
+ }>, "many">;
251
+ prices: z.ZodArray<z.ZodObject<{
252
+ id: z.ZodString;
253
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ currency_code: z.ZodString;
255
+ min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
256
+ max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
257
+ rules_count: z.ZodNumber;
258
+ amount: z.ZodNumber;
259
+ }, "strip", z.ZodTypeAny, {
260
+ id: string;
261
+ currency_code: string;
262
+ rules_count: number;
263
+ amount: number;
264
+ title?: string | null | undefined;
265
+ min_quantity?: number | null | undefined;
266
+ max_quantity?: number | null | undefined;
267
+ }, {
268
+ id: string;
269
+ currency_code: string;
270
+ rules_count: number;
271
+ amount: number;
272
+ title?: string | null | undefined;
273
+ min_quantity?: number | null | undefined;
274
+ max_quantity?: number | null | undefined;
275
+ }>, "many">;
276
+ }, "strip", z.ZodTypeAny, {
277
+ id: string;
278
+ options: {
279
+ id: string;
280
+ value: string;
281
+ option: {
282
+ id: string;
283
+ title: string;
284
+ };
285
+ }[];
286
+ allow_backorder: boolean;
287
+ manage_inventory: boolean;
288
+ prices: {
289
+ id: string;
290
+ currency_code: string;
291
+ rules_count: number;
292
+ amount: number;
293
+ title?: string | null | undefined;
294
+ min_quantity?: number | null | undefined;
295
+ max_quantity?: number | null | undefined;
296
+ }[];
297
+ title?: string | null | undefined;
298
+ sku?: string | null | undefined;
299
+ barcode?: string | null | undefined;
300
+ ean?: string | null | undefined;
301
+ ups?: string | null | undefined;
302
+ hs_code?: string | null | undefined;
303
+ origin_country?: string | null | undefined;
304
+ mid_code?: string | null | undefined;
305
+ material?: string | null | undefined;
306
+ weight?: number | null | undefined;
307
+ length?: number | null | undefined;
308
+ height?: number | null | undefined;
309
+ wifth?: number | null | undefined;
310
+ variant_rank?: number | null | undefined;
311
+ }, {
312
+ id: string;
313
+ options: {
314
+ id: string;
315
+ value: string;
316
+ option: {
317
+ id: string;
318
+ title: string;
319
+ };
320
+ }[];
321
+ allow_backorder: boolean;
322
+ manage_inventory: boolean;
323
+ prices: {
324
+ id: string;
325
+ currency_code: string;
326
+ rules_count: number;
327
+ amount: number;
328
+ title?: string | null | undefined;
329
+ min_quantity?: number | null | undefined;
330
+ max_quantity?: number | null | undefined;
331
+ }[];
332
+ title?: string | null | undefined;
333
+ sku?: string | null | undefined;
334
+ barcode?: string | null | undefined;
335
+ ean?: string | null | undefined;
336
+ ups?: string | null | undefined;
337
+ hs_code?: string | null | undefined;
338
+ origin_country?: string | null | undefined;
339
+ mid_code?: string | null | undefined;
340
+ material?: string | null | undefined;
341
+ weight?: number | null | undefined;
342
+ length?: number | null | undefined;
343
+ height?: number | null | undefined;
344
+ wifth?: number | null | undefined;
345
+ variant_rank?: number | null | undefined;
346
+ }>;
347
+ //# sourceMappingURL=algolia-product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"algolia-product.d.ts","sourceRoot":"","sources":["../../../src/types/algolia/algolia-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACrE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6ElC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuClC,CAAC"}