@medusajs/order 0.1.3-snapshot-20240704130951 → 0.1.3-snapshot-20240711053716

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. package/dist/index.d.ts +6 -6
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +4 -23
  4. package/dist/index.js.map +1 -1
  5. package/dist/migrations/Migration20240219102530.d.ts +1 -0
  6. package/dist/migrations/Migration20240219102530.d.ts.map +1 -0
  7. package/dist/migrations/Migration20240604100512.d.ts +1 -0
  8. package/dist/migrations/Migration20240604100512.d.ts.map +1 -0
  9. package/dist/models/address.d.ts +2 -1
  10. package/dist/models/address.d.ts.map +1 -0
  11. package/dist/models/adjustment-line.d.ts +2 -1
  12. package/dist/models/adjustment-line.d.ts.map +1 -0
  13. package/dist/models/claim-item-image.d.ts +2 -1
  14. package/dist/models/claim-item-image.d.ts.map +1 -0
  15. package/dist/models/claim-item.d.ts +2 -1
  16. package/dist/models/claim-item.d.ts.map +1 -0
  17. package/dist/models/claim.d.ts +2 -1
  18. package/dist/models/claim.d.ts.map +1 -0
  19. package/dist/models/exchange-item.d.ts +2 -1
  20. package/dist/models/exchange-item.d.ts.map +1 -0
  21. package/dist/models/exchange.d.ts +2 -1
  22. package/dist/models/exchange.d.ts.map +1 -0
  23. package/dist/models/index.d.ts +1 -0
  24. package/dist/models/index.d.ts.map +1 -0
  25. package/dist/models/line-item-adjustment.d.ts +1 -0
  26. package/dist/models/line-item-adjustment.d.ts.map +1 -0
  27. package/dist/models/line-item-tax-line.d.ts +1 -0
  28. package/dist/models/line-item-tax-line.d.ts.map +1 -0
  29. package/dist/models/line-item.d.ts +2 -1
  30. package/dist/models/line-item.d.ts.map +1 -0
  31. package/dist/models/order-change-action.d.ts +2 -1
  32. package/dist/models/order-change-action.d.ts.map +1 -0
  33. package/dist/models/order-change.d.ts +3 -2
  34. package/dist/models/order-change.d.ts.map +1 -0
  35. package/dist/models/order-change.js +2 -1
  36. package/dist/models/order-change.js.map +1 -1
  37. package/dist/models/order-item.d.ts +2 -1
  38. package/dist/models/order-item.d.ts.map +1 -0
  39. package/dist/models/order-shipping-method.d.ts +2 -1
  40. package/dist/models/order-shipping-method.d.ts.map +1 -0
  41. package/dist/models/order-summary.d.ts +1 -0
  42. package/dist/models/order-summary.d.ts.map +1 -0
  43. package/dist/models/order.d.ts +2 -1
  44. package/dist/models/order.d.ts.map +1 -0
  45. package/dist/models/return-item.d.ts +2 -1
  46. package/dist/models/return-item.d.ts.map +1 -0
  47. package/dist/models/return-reason.d.ts +2 -1
  48. package/dist/models/return-reason.d.ts.map +1 -0
  49. package/dist/models/return.d.ts +2 -1
  50. package/dist/models/return.d.ts.map +1 -0
  51. package/dist/models/shipping-method-adjustment.d.ts +1 -0
  52. package/dist/models/shipping-method-adjustment.d.ts.map +1 -0
  53. package/dist/models/shipping-method-tax-line.d.ts +1 -0
  54. package/dist/models/shipping-method-tax-line.d.ts.map +1 -0
  55. package/dist/models/shipping-method.d.ts +1 -0
  56. package/dist/models/shipping-method.d.ts.map +1 -0
  57. package/dist/models/tax-line.d.ts +1 -0
  58. package/dist/models/tax-line.d.ts.map +1 -0
  59. package/dist/models/transaction.d.ts +2 -1
  60. package/dist/models/transaction.d.ts.map +1 -0
  61. package/dist/repositories/claim.d.ts +1 -0
  62. package/dist/repositories/claim.d.ts.map +1 -0
  63. package/dist/repositories/exchange.d.ts +1 -0
  64. package/dist/repositories/exchange.d.ts.map +1 -0
  65. package/dist/repositories/index.d.ts +1 -0
  66. package/dist/repositories/index.d.ts.map +1 -0
  67. package/dist/repositories/order.d.ts +1 -0
  68. package/dist/repositories/order.d.ts.map +1 -0
  69. package/dist/repositories/return.d.ts +1 -0
  70. package/dist/repositories/return.d.ts.map +1 -0
  71. package/dist/services/actions/cancel-claim.d.ts +1 -0
  72. package/dist/services/actions/cancel-claim.d.ts.map +1 -0
  73. package/dist/services/actions/cancel-claim.js +4 -5
  74. package/dist/services/actions/cancel-claim.js.map +1 -1
  75. package/dist/services/actions/cancel-exchange.d.ts +1 -0
  76. package/dist/services/actions/cancel-exchange.d.ts.map +1 -0
  77. package/dist/services/actions/cancel-exchange.js +3 -4
  78. package/dist/services/actions/cancel-exchange.js.map +1 -1
  79. package/dist/services/actions/cancel-fulfillment.d.ts +1 -0
  80. package/dist/services/actions/cancel-fulfillment.d.ts.map +1 -0
  81. package/dist/services/actions/cancel-fulfillment.js +1 -1
  82. package/dist/services/actions/cancel-fulfillment.js.map +1 -1
  83. package/dist/services/actions/cancel-return.d.ts +1 -0
  84. package/dist/services/actions/cancel-return.d.ts.map +1 -0
  85. package/dist/services/actions/cancel-return.js +2 -3
  86. package/dist/services/actions/cancel-return.js.map +1 -1
  87. package/dist/services/actions/create-claim.d.ts +1 -0
  88. package/dist/services/actions/create-claim.d.ts.map +1 -0
  89. package/dist/services/actions/create-claim.js +7 -7
  90. package/dist/services/actions/create-claim.js.map +1 -1
  91. package/dist/services/actions/create-exchange.d.ts +1 -0
  92. package/dist/services/actions/create-exchange.d.ts.map +1 -0
  93. package/dist/services/actions/create-exchange.js +6 -6
  94. package/dist/services/actions/create-exchange.js.map +1 -1
  95. package/dist/services/actions/create-return.d.ts +1 -0
  96. package/dist/services/actions/create-return.d.ts.map +1 -0
  97. package/dist/services/actions/create-return.js +2 -3
  98. package/dist/services/actions/create-return.js.map +1 -1
  99. package/dist/services/actions/index.d.ts +1 -0
  100. package/dist/services/actions/index.d.ts.map +1 -0
  101. package/dist/services/actions/receive-return.d.ts +1 -0
  102. package/dist/services/actions/receive-return.d.ts.map +1 -0
  103. package/dist/services/actions/receive-return.js +1 -2
  104. package/dist/services/actions/receive-return.js.map +1 -1
  105. package/dist/services/actions/register-fulfillment.d.ts +1 -0
  106. package/dist/services/actions/register-fulfillment.d.ts.map +1 -0
  107. package/dist/services/actions/register-fulfillment.js +1 -1
  108. package/dist/services/actions/register-fulfillment.js.map +1 -1
  109. package/dist/services/actions/register-shipment.d.ts +1 -0
  110. package/dist/services/actions/register-shipment.d.ts.map +1 -0
  111. package/dist/services/actions/register-shipment.js +1 -1
  112. package/dist/services/actions/register-shipment.js.map +1 -1
  113. package/dist/services/index.d.ts +1 -1
  114. package/dist/services/index.d.ts.map +1 -0
  115. package/dist/services/index.js +1 -3
  116. package/dist/services/index.js.map +1 -1
  117. package/dist/services/order-module-service.d.ts +6 -5
  118. package/dist/services/order-module-service.d.ts.map +1 -0
  119. package/dist/services/order-module-service.js +81 -9
  120. package/dist/services/order-module-service.js.map +1 -1
  121. package/dist/services/order-service.d.ts +1 -0
  122. package/dist/services/order-service.d.ts.map +1 -0
  123. package/dist/types/address.d.ts +1 -0
  124. package/dist/types/address.d.ts.map +1 -0
  125. package/dist/types/index.d.ts +1 -0
  126. package/dist/types/index.d.ts.map +1 -0
  127. package/dist/types/line-item-adjustment.d.ts +1 -0
  128. package/dist/types/line-item-adjustment.d.ts.map +1 -0
  129. package/dist/types/line-item-tax-line.d.ts +1 -0
  130. package/dist/types/line-item-tax-line.d.ts.map +1 -0
  131. package/dist/types/line-item.d.ts +1 -0
  132. package/dist/types/line-item.d.ts.map +1 -0
  133. package/dist/types/order-change.d.ts +1 -0
  134. package/dist/types/order-change.d.ts.map +1 -0
  135. package/dist/types/order-detail.d.ts +1 -0
  136. package/dist/types/order-detail.d.ts.map +1 -0
  137. package/dist/types/order.d.ts +1 -0
  138. package/dist/types/order.d.ts.map +1 -0
  139. package/dist/types/shipping-method-adjustment.d.ts +1 -0
  140. package/dist/types/shipping-method-adjustment.d.ts.map +1 -0
  141. package/dist/types/shipping-method-tax-line.d.ts +1 -0
  142. package/dist/types/shipping-method-tax-line.d.ts.map +1 -0
  143. package/dist/types/shipping-method.d.ts +1 -0
  144. package/dist/types/shipping-method.d.ts.map +1 -0
  145. package/dist/types/tax-line.d.ts +1 -0
  146. package/dist/types/tax-line.d.ts.map +1 -0
  147. package/dist/types/transaction.d.ts +1 -0
  148. package/dist/types/transaction.d.ts.map +1 -0
  149. package/dist/types/utils/index.d.ts +6 -0
  150. package/dist/types/utils/index.d.ts.map +1 -0
  151. package/dist/types/utils/index.js.map +1 -1
  152. package/dist/utils/actions/cancel-item-fulfillment.d.ts +1 -0
  153. package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +1 -0
  154. package/dist/utils/actions/cancel-item-fulfillment.js +4 -4
  155. package/dist/utils/actions/cancel-item-fulfillment.js.map +1 -1
  156. package/dist/utils/actions/cancel-return.d.ts +1 -0
  157. package/dist/utils/actions/cancel-return.d.ts.map +1 -0
  158. package/dist/utils/actions/cancel-return.js +4 -4
  159. package/dist/utils/actions/cancel-return.js.map +1 -1
  160. package/dist/utils/actions/cancel.d.ts +1 -0
  161. package/dist/utils/actions/cancel.d.ts.map +1 -0
  162. package/dist/utils/actions/cancel.js +2 -2
  163. package/dist/utils/actions/cancel.js.map +1 -1
  164. package/dist/utils/actions/fulfill-item.d.ts +1 -0
  165. package/dist/utils/actions/fulfill-item.d.ts.map +1 -0
  166. package/dist/utils/actions/fulfill-item.js +4 -4
  167. package/dist/utils/actions/fulfill-item.js.map +1 -1
  168. package/dist/utils/actions/index.d.ts +1 -0
  169. package/dist/utils/actions/index.d.ts.map +1 -0
  170. package/dist/utils/actions/item-add.d.ts +1 -0
  171. package/dist/utils/actions/item-add.d.ts.map +1 -0
  172. package/dist/utils/actions/item-add.js +8 -7
  173. package/dist/utils/actions/item-add.js.map +1 -1
  174. package/dist/utils/actions/item-remove.d.ts +1 -0
  175. package/dist/utils/actions/item-remove.d.ts.map +1 -0
  176. package/dist/utils/actions/item-remove.js +4 -4
  177. package/dist/utils/actions/item-remove.js.map +1 -1
  178. package/dist/utils/actions/receive-damaged-return-item.d.ts +1 -0
  179. package/dist/utils/actions/receive-damaged-return-item.d.ts.map +1 -0
  180. package/dist/utils/actions/receive-damaged-return-item.js +4 -4
  181. package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
  182. package/dist/utils/actions/receive-return-item.d.ts +1 -0
  183. package/dist/utils/actions/receive-return-item.d.ts.map +1 -0
  184. package/dist/utils/actions/receive-return-item.js +4 -4
  185. package/dist/utils/actions/receive-return-item.js.map +1 -1
  186. package/dist/utils/actions/reinstate-item.d.ts +1 -0
  187. package/dist/utils/actions/reinstate-item.d.ts.map +1 -0
  188. package/dist/utils/actions/reinstate-item.js +4 -4
  189. package/dist/utils/actions/reinstate-item.js.map +1 -1
  190. package/dist/utils/actions/return-item.d.ts +1 -0
  191. package/dist/utils/actions/return-item.d.ts.map +1 -0
  192. package/dist/utils/actions/return-item.js +4 -4
  193. package/dist/utils/actions/return-item.js.map +1 -1
  194. package/dist/utils/actions/ship-item.d.ts +1 -0
  195. package/dist/utils/actions/ship-item.d.ts.map +1 -0
  196. package/dist/utils/actions/ship-item.js +4 -4
  197. package/dist/utils/actions/ship-item.js.map +1 -1
  198. package/dist/utils/actions/shipping-add.d.ts +1 -0
  199. package/dist/utils/actions/shipping-add.d.ts.map +1 -0
  200. package/dist/utils/actions/shipping-add.js +8 -10
  201. package/dist/utils/actions/shipping-add.js.map +1 -1
  202. package/dist/utils/actions/shipping-remove.d.ts +1 -0
  203. package/dist/utils/actions/shipping-remove.d.ts.map +1 -0
  204. package/dist/utils/actions/shipping-remove.js +2 -3
  205. package/dist/utils/actions/shipping-remove.js.map +1 -1
  206. package/dist/utils/actions/write-off-item.d.ts +1 -0
  207. package/dist/utils/actions/write-off-item.d.ts.map +1 -0
  208. package/dist/utils/actions/write-off-item.js +4 -4
  209. package/dist/utils/actions/write-off-item.js.map +1 -1
  210. package/dist/utils/apply-order-changes.d.ts +1 -0
  211. package/dist/utils/apply-order-changes.d.ts.map +1 -0
  212. package/dist/utils/apply-order-changes.js +3 -2
  213. package/dist/utils/apply-order-changes.js.map +1 -1
  214. package/dist/utils/base-repository-find.d.ts +1 -0
  215. package/dist/utils/base-repository-find.d.ts.map +1 -0
  216. package/dist/utils/calculate-order-change.d.ts +11 -2
  217. package/dist/utils/calculate-order-change.d.ts.map +1 -0
  218. package/dist/utils/calculate-order-change.js +11 -3
  219. package/dist/utils/calculate-order-change.js.map +1 -1
  220. package/dist/utils/index.d.ts +1 -1
  221. package/dist/utils/index.d.ts.map +1 -0
  222. package/dist/utils/index.js +0 -1
  223. package/dist/utils/index.js.map +1 -1
  224. package/dist/utils/set-action-reference.d.ts +3 -1
  225. package/dist/utils/set-action-reference.d.ts.map +1 -0
  226. package/dist/utils/set-action-reference.js +13 -2
  227. package/dist/utils/set-action-reference.js.map +1 -1
  228. package/dist/utils/transform-order.d.ts +1 -0
  229. package/dist/utils/transform-order.d.ts.map +1 -0
  230. package/package.json +6 -8
  231. package/dist/joiner-config.d.ts +0 -1
  232. package/dist/joiner-config.js +0 -7
  233. package/dist/joiner-config.js.map +0 -1
  234. package/dist/services/order-change-service.d.ts +0 -15
  235. package/dist/services/order-change-service.js +0 -97
  236. package/dist/services/order-change-service.js.map +0 -1
  237. package/dist/utils/action-key.d.ts +0 -16
  238. package/dist/utils/action-key.js +0 -21
  239. package/dist/utils/action-key.js.map +0 -1
@@ -1,97 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const utils_1 = require("@medusajs/utils");
16
- const _models_1 = require("../models");
17
- const _types_1 = require("../types");
18
- class OrderChangeService extends utils_1.ModulesSdkUtils.MedusaInternalService(_models_1.OrderChange) {
19
- constructor(container) {
20
- // @ts-ignore
21
- super(...arguments);
22
- this.orderChangeRepository_ = container.orderChangeRepository;
23
- }
24
- async listCurrentOrderChange(orderId, config = {}, sharedContext = {}) {
25
- const allChanges = await super.list({ order_id: orderId }, config ?? {
26
- select: ["order_id", "status", "version"],
27
- order: {
28
- order_id: "ASC",
29
- version: "DESC",
30
- },
31
- });
32
- if (!allChanges.length) {
33
- return [];
34
- }
35
- const lastChanges = [];
36
- const seen = new Set();
37
- for (let i = 0; i < allChanges.length; i++) {
38
- if (seen.has(allChanges[i].order_id)) {
39
- continue;
40
- }
41
- seen.add(allChanges[i].order_id);
42
- if (this.isActive(allChanges[i])) {
43
- lastChanges.push(allChanges[i].id);
44
- }
45
- }
46
- let orderChange;
47
- if (allChanges?.length > 0) {
48
- if (this.isActive(allChanges[0])) {
49
- orderChange = allChanges[0];
50
- }
51
- }
52
- if (!orderChange) {
53
- return [];
54
- }
55
- const relations = (0, utils_1.deduplicate)([...(config.relations ?? []), "actions"]);
56
- config.relations = relations;
57
- const queryConfig = utils_1.ModulesSdkUtils.buildQuery({
58
- id: lastChanges,
59
- order: {
60
- items: {
61
- version: orderChange.version,
62
- },
63
- },
64
- }, config);
65
- return await this.orderChangeRepository_.find(queryConfig, sharedContext);
66
- }
67
- isActive(orderChange) {
68
- return (orderChange.status === _types_1.OrderChangeStatus.PENDING ||
69
- orderChange.status === _types_1.OrderChangeStatus.REQUESTED);
70
- }
71
- async create(data, sharedContext = {}) {
72
- const dataArr = Array.isArray(data) ? data : [data];
73
- const activeOrderEdit = await this.listCurrentOrderChange(dataArr.map((d) => d.order_id), {}, sharedContext);
74
- if (activeOrderEdit.length > 0) {
75
- throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_DATA, `An active order change already exists for the order(s) ${activeOrderEdit
76
- .map((a) => a.order_id)
77
- .join(",")}`);
78
- }
79
- return await super.create(dataArr, sharedContext);
80
- }
81
- }
82
- exports.default = OrderChangeService;
83
- __decorate([
84
- (0, utils_1.InjectManager)("orderChangeRepository_"),
85
- __param(2, (0, utils_1.MedusaContext)()),
86
- __metadata("design:type", Function),
87
- __metadata("design:paramtypes", [Object, Object, Object]),
88
- __metadata("design:returntype", Promise)
89
- ], OrderChangeService.prototype, "listCurrentOrderChange", null);
90
- __decorate([
91
- (0, utils_1.InjectTransactionManager)("orderChangeRepository_"),
92
- __param(1, (0, utils_1.MedusaContext)()),
93
- __metadata("design:type", Function),
94
- __metadata("design:paramtypes", [Object, Object]),
95
- __metadata("design:returntype", Promise)
96
- ], OrderChangeService.prototype, "create", null);
97
- //# sourceMappingURL=order-change-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-change-service.js","sourceRoot":"","sources":["../../src/services/order-change-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,2CAOwB;AACxB,qCAAqC;AACrC,mCAA0C;AAM1C,MAAqB,kBAAmB,SAAQ,uBAAe,CAAC,qBAAqB,CAGnF,qBAAW,CAAC;IAGZ,YAAY,SAA+B;QACzC,aAAa;QACb,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;QACnB,IAAI,CAAC,sBAAsB,GAAG,SAAS,CAAC,qBAAqB,CAAA;IAC/D,CAAC;IAGK,AAAN,KAAK,CAAC,sBAAsB,CAC1B,OAA0B,EAC1B,SAAoC,EAAE,EACrB,gBAAyB,EAAE;QAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,IAAI,CACjC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,MAAM,IAAI;YACR,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC;YACzC,KAAK,EAAE;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,MAAM;aAChB;SACF,CACF,CAAA;QACD,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YACvB,OAAO,EAAE,CAAA;QACX,CAAC;QAED,MAAM,WAAW,GAAa,EAAE,CAA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FILL_ITEM",
4
- CANCEL_ITEM_FULFILLMENT = "CANCEL_ITEM_FULFILLMENT",
5
- ITEM_ADD = "ITEM_ADD",
6
- ITEM_REMOVE = "ITEM_REMOVE",
7
- RECEIVE_DAMAGED_RETURN_ITEM = "RECEIVE_DAMAGED_RETURN_ITEM",
8
- RECEIVE_RETURN_ITEM = "RECEIVE_RETURN_ITEM",
9
- RETURN_ITEM = "RETURN_ITEM",
10
- CANCEL_RETURN_ITEM = "CANCEL_RETURN_ITEM",
11
- SHIPPING_ADD = "SHIPPING_ADD",
12
- SHIPPING_REMOVE = "SHIPPING_REMOVE",
13
- SHIP_ITEM = "SHIP_ITEM",
14
- WRITE_OFF_ITEM = "WRITE_OFF_ITEM",
15
- REINSTATE_ITEM = "REINSTATE_ITEM"
16
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChangeActionType = void 0;
4
- var ChangeActionType;
5
- (function (ChangeActionType) {
6
- ChangeActionType["CANCEL"] = "CANCEL";
7
- ChangeActionType["FULFILL_ITEM"] = "FULFILL_ITEM";
8
- ChangeActionType["CANCEL_ITEM_FULFILLMENT"] = "CANCEL_ITEM_FULFILLMENT";
9
- ChangeActionType["ITEM_ADD"] = "ITEM_ADD";
10
- ChangeActionType["ITEM_REMOVE"] = "ITEM_REMOVE";
11
- ChangeActionType["RECEIVE_DAMAGED_RETURN_ITEM"] = "RECEIVE_DAMAGED_RETURN_ITEM";
12
- ChangeActionType["RECEIVE_RETURN_ITEM"] = "RECEIVE_RETURN_ITEM";
13
- ChangeActionType["RETURN_ITEM"] = "RETURN_ITEM";
14
- ChangeActionType["CANCEL_RETURN_ITEM"] = "CANCEL_RETURN_ITEM";
15
- ChangeActionType["SHIPPING_ADD"] = "SHIPPING_ADD";
16
- ChangeActionType["SHIPPING_REMOVE"] = "SHIPPING_REMOVE";
17
- ChangeActionType["SHIP_ITEM"] = "SHIP_ITEM";
18
- ChangeActionType["WRITE_OFF_ITEM"] = "WRITE_OFF_ITEM";
19
- ChangeActionType["REINSTATE_ITEM"] = "REINSTATE_ITEM";
20
- })(ChangeActionType || (exports.ChangeActionType = ChangeActionType = {}));
21
- //# sourceMappingURL=action-key.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-key.js","sourceRoot":"","sources":["../../src/utils/action-key.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,iDAA6B,CAAA;IAC7B,uEAAmD,CAAA;IACnD,yCAAqB,CAAA;IACrB,+CAA2B,CAAA;IAC3B,+EAA2D,CAAA;IAC3D,+DAA2C,CAAA;IAC3C,+CAA2B,CAAA;IAC3B,6DAAyC,CAAA;IACzC,iDAA6B,CAAA;IAC7B,uDAAmC,CAAA;IACnC,2CAAuB,CAAA;IACvB,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;AACnC,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B"}