@medusajs/core-flows 2.21.0 → 2.21.1-preview-20260917150924

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 (34) hide show
  1. package/dist/draft-order/steps/update-draft-order-shipping-metod.js +2 -2
  2. package/dist/draft-order/steps/update-draft-order-shipping-metod.js.map +1 -1
  3. package/dist/order/steps/return/create-complete-return.d.ts.map +1 -1
  4. package/dist/order/steps/return/create-complete-return.js +4 -1
  5. package/dist/order/steps/return/create-complete-return.js.map +1 -1
  6. package/dist/product/steps/create-product-variants-default-inventory.d.ts +6 -0
  7. package/dist/product/steps/create-product-variants-default-inventory.d.ts.map +1 -0
  8. package/dist/product/steps/create-product-variants-default-inventory.js +61 -0
  9. package/dist/product/steps/create-product-variants-default-inventory.js.map +1 -0
  10. package/dist/product/steps/index.d.ts +1 -0
  11. package/dist/product/steps/index.d.ts.map +1 -1
  12. package/dist/product/steps/index.js +1 -0
  13. package/dist/product/steps/index.js.map +1 -1
  14. package/dist/product/utils/create-default-inventory-item.d.ts +15 -0
  15. package/dist/product/utils/create-default-inventory-item.d.ts.map +1 -0
  16. package/dist/product/utils/create-default-inventory-item.js +26 -0
  17. package/dist/product/utils/create-default-inventory-item.js.map +1 -0
  18. package/dist/product/utils/index.d.ts +1 -0
  19. package/dist/product/utils/index.d.ts.map +1 -1
  20. package/dist/product/utils/index.js +1 -0
  21. package/dist/product/utils/index.js.map +1 -1
  22. package/dist/product/workflows/create-product-variants.d.ts.map +1 -1
  23. package/dist/product/workflows/create-product-variants.js +2 -14
  24. package/dist/product/workflows/create-product-variants.js.map +1 -1
  25. package/dist/product/workflows/update-product-variants.d.ts.map +1 -1
  26. package/dist/product/workflows/update-product-variants.js +24 -10
  27. package/dist/product/workflows/update-product-variants.js.map +1 -1
  28. package/dist/product/workflows/update-products.d.ts.map +1 -1
  29. package/dist/product/workflows/update-products.js +22 -11
  30. package/dist/product/workflows/update-products.js.map +1 -1
  31. package/dist/promotion/steps/add-or-remove-campaign-promotions.js +2 -2
  32. package/dist/promotion/steps/add-or-remove-campaign-promotions.js.map +1 -1
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +3 -3
@@ -36,11 +36,11 @@ exports.updateDraftOrderShippingMethodStep = (0, workflows_sdk_1.createStep)(exp
36
36
  before: beforeUpdate,
37
37
  after: updatedMethod,
38
38
  }, beforeUpdate);
39
- }, (input, { container }) => {
39
+ }, async (input, { container }) => {
40
40
  const service = container.resolve(utils_1.Modules.ORDER);
41
41
  if (!input) {
42
42
  return;
43
43
  }
44
- service.updateOrderShippingMethods([input]);
44
+ await service.updateOrderShippingMethods([input]);
45
45
  });
46
46
  //# sourceMappingURL=update-draft-order-shipping-metod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-draft-order-shipping-metod.js","sourceRoot":"","sources":["../../../src/draft-order/steps/update-draft-order-shipping-metod.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAChE,qEAA4E;AAM/D,QAAA,oCAAoC,GAC/C,oCAAoC,CAAA;AA4BtC;;;;;;;;;GASG;AACU,QAAA,kCAAkC,GAAG,IAAA,0BAAU,EAC1D,4CAAoC,EACpC,KAAK,WACH,KAA8C,EAC9C,EAAE,SAAS,EAAE;IAEb,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,wBAAwB,CAC3D;QACE,EAAE,EAAE,KAAK,CAAC,kBAAkB;KAC7B,EACD;QACE,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,QAAQ,CAAC;KAC/C,CACF,CAAA;IAED,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,6BAA6B,KAAK,CAAC,kBAAkB,gBAAgB,CACtE,CAAA;IACH,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,0BAA0B,CAAC;QAC/D;YACE,EAAE,EAAE,KAAK,CAAC,kBAAkB;YAC5B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB;KACF,CAAC,CAAA;IAEF,OAAO,IAAI,4BAAY,CACrB;QACE,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,aAAa;KACrB,EACD,YAAY,CACb,CAAA;AACH,CAAC,EACD,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACvB,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAM;IACR,CAAC;IAED,OAAO,CAAC,0BAA0B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA;AAC7C,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"update-draft-order-shipping-metod.js","sourceRoot":"","sources":["../../../src/draft-order/steps/update-draft-order-shipping-metod.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAChE,qEAA4E;AAM/D,QAAA,oCAAoC,GAC/C,oCAAoC,CAAA;AA4BtC;;;;;;;;;GASG;AACU,QAAA,kCAAkC,GAAG,IAAA,0BAAU,EAC1D,4CAAoC,EACpC,KAAK,WACH,KAA8C,EAC9C,EAAE,SAAS,EAAE;IAEb,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM,OAAO,CAAC,wBAAwB,CAC3D;QACE,EAAE,EAAE,KAAK,CAAC,kBAAkB;KAC7B,EACD;QACE,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,QAAQ,CAAC;KAC/C,CACF,CAAA;IAED,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,mBAAW,CACnB,mBAAW,CAAC,KAAK,CAAC,YAAY,EAC9B,6BAA6B,KAAK,CAAC,kBAAkB,gBAAgB,CACtE,CAAA;IACH,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,0BAA0B,CAAC;QAC/D;YACE,EAAE,EAAE,KAAK,CAAC,kBAAkB;YAC5B,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB;KACF,CAAC,CAAA;IAEF,OAAO,IAAI,4BAAY,CACrB;QACE,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,aAAa;KACrB,EACD,YAAY,CACb,CAAA;AACH,CAAC,EACD,KAAK,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC7B,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAM;IACR,CAAC;IAED,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAA;AACnD,CAAC,CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-complete-return.d.ts","sourceRoot":"","sources":["../../../../src/order/steps/return/create-complete-return.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAA;AAIlC,eAAO,MAAM,0BAA0B,2BAA2B,CAAA;AAClE;;GAEG;AACH,eAAO,MAAM,wBAAwB,+HAiBpC,CAAA"}
1
+ {"version":3,"file":"create-complete-return.d.ts","sourceRoot":"","sources":["../../../../src/order/steps/return/create-complete-return.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAA;AAIlC,eAAO,MAAM,0BAA0B,2BAA2B,CAAA;AAClE;;GAEG;AACH,eAAO,MAAM,wBAAwB,+HAoBpC,CAAA"}
@@ -9,7 +9,10 @@ exports.createCompleteReturnStepId = "create-complete-return";
9
9
  */
10
10
  exports.createCompleteReturnStep = (0, workflows_sdk_1.createStep)(exports.createCompleteReturnStepId, async (data, { container }) => {
11
11
  const service = container.resolve(utils_1.Modules.ORDER);
12
- const orderReturn = await service.createReturn(data);
12
+ const orderReturn = await service.createReturn({
13
+ requested_at: new Date(),
14
+ ...data,
15
+ });
13
16
  return new workflows_sdk_1.StepResponse(orderReturn, data.order_id);
14
17
  }, async (orderId, { container }) => {
15
18
  if (!orderId) {
@@ -1 +1 @@
1
- {"version":3,"file":"create-complete-return.js","sourceRoot":"","sources":["../../../../src/order/steps/return/create-complete-return.ts"],"names":[],"mappings":";;;AAIA,qDAAmD;AACnD,qEAA4E;AAE/D,QAAA,0BAA0B,GAAG,wBAAwB,CAAA;AAClE;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,0BAAU,EAChD,kCAA0B,EAC1B,KAAK,EAAE,IAA0B,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IACpD,OAAO,IAAI,4BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;AACrD,CAAC,EACD,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAC1C,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"create-complete-return.js","sourceRoot":"","sources":["../../../../src/order/steps/return/create-complete-return.ts"],"names":[],"mappings":";;;AAIA,qDAAmD;AACnD,qEAA4E;AAE/D,QAAA,0BAA0B,GAAG,wBAAwB,CAAA;AAClE;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,0BAAU,EAChD,kCAA0B,EAC1B,KAAK,EAAE,IAA0B,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC;QAC7C,YAAY,EAAE,IAAI,IAAI,EAAE;QACxB,GAAG,IAAI;KACR,CAAC,CAAA;IACF,OAAO,IAAI,4BAAY,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;AACrD,CAAC,EACD,KAAK,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAM;IACR,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAsB,eAAO,CAAC,KAAK,CAAC,CAAA;IAErE,MAAM,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAC1C,CAAC,CACF,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const createProductVariantsDefaultInventoryStepId = "create-product-variants-default-inventory";
2
+ export type CreateProductVariantsDefaultInventoryStepInput = {
3
+ variantIds: string[];
4
+ };
5
+ export declare const createProductVariantsDefaultInventoryStep: import("@medusajs/framework/workflows-sdk").StepFunction<CreateProductVariantsDefaultInventoryStepInput, undefined>;
6
+ //# sourceMappingURL=create-product-variants-default-inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-product-variants-default-inventory.d.ts","sourceRoot":"","sources":["../../../src/product/steps/create-product-variants-default-inventory.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,2CAA2C,8CACX,CAAA;AAE7C,MAAM,MAAM,8CAA8C,GAAG;IAC3D,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAwBD,eAAO,MAAM,yCAAyC,qHAsErD,CAAA"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createProductVariantsDefaultInventoryStep = exports.createProductVariantsDefaultInventoryStepId = void 0;
4
+ const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
5
+ const utils_1 = require("@medusajs/framework/utils");
6
+ const create_default_inventory_item_1 = require("../utils/create-default-inventory-item");
7
+ exports.createProductVariantsDefaultInventoryStepId = "create-product-variants-default-inventory";
8
+ /**
9
+ * Variants that already have an inventory item linked are left untouched, so
10
+ * toggling `manage_inventory` off and back on does not stack duplicate items.
11
+ */
12
+ async function getVariantIdsWithoutInventory(variantIds, query) {
13
+ const { data: variantInventoryItems } = await query.graph({
14
+ entity: "product_variant_inventory_item",
15
+ fields: ["variant_id"],
16
+ filters: {
17
+ variant_id: variantIds,
18
+ },
19
+ });
20
+ return (0, utils_1.arrayDifference)(variantIds, variantInventoryItems.map((item) => item.variant_id));
21
+ }
22
+ exports.createProductVariantsDefaultInventoryStep = (0, workflows_sdk_1.createStep)(exports.createProductVariantsDefaultInventoryStepId, async (data, { container }) => {
23
+ const variantIds = (0, utils_1.deduplicate)(data.variantIds ?? []).filter(Boolean);
24
+ if (!variantIds.length) {
25
+ return new workflows_sdk_1.StepResponse(void 0);
26
+ }
27
+ const query = container.resolve(utils_1.ContainerRegistrationKeys.QUERY);
28
+ const link = container.resolve(utils_1.ContainerRegistrationKeys.LINK);
29
+ const variantIdsWithoutInventory = await getVariantIdsWithoutInventory(variantIds, query);
30
+ if (!variantIdsWithoutInventory.length) {
31
+ return new workflows_sdk_1.StepResponse(void 0);
32
+ }
33
+ const productService = container.resolve(utils_1.Modules.PRODUCT);
34
+ const variants = await productService.listProductVariants({
35
+ id: variantIdsWithoutInventory,
36
+ });
37
+ if (!variants.length) {
38
+ return new workflows_sdk_1.StepResponse(void 0);
39
+ }
40
+ const inventoryService = container.resolve(utils_1.Modules.INVENTORY);
41
+ const createdItems = await inventoryService.createInventoryItems(variants.map((variant) => (0, create_default_inventory_item_1.createDefaultInventoryItem)(variant)));
42
+ const links = variants.map((variant, index) => ({
43
+ [utils_1.Modules.PRODUCT]: { variant_id: variant.id },
44
+ [utils_1.Modules.INVENTORY]: { inventory_item_id: createdItems[index].id },
45
+ data: { required_quantity: 1 },
46
+ }));
47
+ await link.create(links);
48
+ return new workflows_sdk_1.StepResponse(void 0, {
49
+ inventoryItemIds: createdItems.map((item) => item.id),
50
+ links,
51
+ });
52
+ }, async (createdInventory, { container }) => {
53
+ if (!createdInventory?.inventoryItemIds.length) {
54
+ return;
55
+ }
56
+ const link = container.resolve(utils_1.ContainerRegistrationKeys.LINK);
57
+ const inventoryService = container.resolve(utils_1.Modules.INVENTORY);
58
+ await link.dismiss(createdInventory.links);
59
+ await inventoryService.deleteInventoryItems(createdInventory.inventoryItemIds);
60
+ });
61
+ //# sourceMappingURL=create-product-variants-default-inventory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-product-variants-default-inventory.js","sourceRoot":"","sources":["../../../src/product/steps/create-product-variants-default-inventory.ts"],"names":[],"mappings":";;;AAAA,qEAA4E;AAC5E,qDAKkC;AAOlC,0FAAmF;AAEtE,QAAA,2CAA2C,GACtD,2CAA2C,CAAA;AAM7C;;;GAGG;AACH,KAAK,UAAU,6BAA6B,CAC1C,UAAoB,EACpB,KAAwC;IAExC,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,GAAG,MAAM,KAAK,CAAC,KAAK,CAAC;QACxD,MAAM,EAAE,gCAAgC;QACxC,MAAM,EAAE,CAAC,YAAY,CAAC;QACtB,OAAO,EAAE;YACP,UAAU,EAAE,UAAU;SACvB;KACF,CAAC,CAAA;IAEF,OAAO,IAAA,uBAAe,EACpB,UAAU,EACV,qBAAqB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
34
34
  export * from "./normalize-products";
35
35
  export * from "./normalize-products-to-chunks";
36
36
  export * from "./process-import-chunks";
37
+ export * from "./create-product-variants-default-inventory";
37
38
  export * from "./dismiss-product-variants-inventory";
38
39
  export * from "./add-product-options-to-product";
39
40
  export * from "./remove-product-options-from-product";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product/steps/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,mCAAmC,CAAA;AACjD,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yBAAyB,CAAA;AAC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,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,2CAA2C,CAAA;AACzD,cAAc,sCAAsC,CAAA"}
@@ -50,6 +50,7 @@ __exportStar(require("./get-variant-availability"), exports);
50
50
  __exportStar(require("./normalize-products"), exports);
51
51
  __exportStar(require("./normalize-products-to-chunks"), exports);
52
52
  __exportStar(require("./process-import-chunks"), exports);
53
+ __exportStar(require("./create-product-variants-default-inventory"), exports);
53
54
  __exportStar(require("./dismiss-product-variants-inventory"), exports);
54
55
  __exportStar(require("./add-product-options-to-product"), exports);
55
56
  __exportStar(require("./remove-product-options-from-product"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/steps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,0DAAuC;AACvC,+DAA4C;AAC5C,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,qDAAkC;AAClC,gEAA6C;AAC7C,2DAAwC;AACxC,2DAAwC;AACxC,2DAAwC;AACxC,iEAA8C;AAC9C,iEAA8C;AAC9C,4DAAyC;AACzC,4DAAyC;AACzC,4DAAyC;AACzC,uDAAoC;AACpC,uDAAoC;AACpC,uDAAoC;AACpC,mEAAgD;AAChD,oEAAiD;AACjD,yDAAsC;AACtC,yDAAsC;AACtC,yDAAsC;AACtC,wDAAqC;AACrC,wDAAqC;AACrC,wDAAqC;AACrC,+DAA4C;AAC5C,yDAAsC;AACtC,oDAAiC;AACjC,sDAAmC;AACnC,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,iEAA8C;AAC9C,0DAAuC;AACvC,uEAAoD;AACpD,mEAAgD;AAChD,wEAAqD;AACrD,4EAAyD;AACzD,uEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/steps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,0DAAuC;AACvC,+DAA4C;AAC5C,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC;AACjC,qDAAkC;AAClC,gEAA6C;AAC7C,2DAAwC;AACxC,2DAAwC;AACxC,2DAAwC;AACxC,iEAA8C;AAC9C,iEAA8C;AAC9C,4DAAyC;AACzC,4DAAyC;AACzC,4DAAyC;AACzC,uDAAoC;AACpC,uDAAoC;AACpC,uDAAoC;AACpC,mEAAgD;AAChD,oEAAiD;AACjD,yDAAsC;AACtC,yDAAsC;AACtC,yDAAsC;AACtC,wDAAqC;AACrC,wDAAqC;AACrC,wDAAqC;AACrC,+DAA4C;AAC5C,yDAAsC;AACtC,oDAAiC;AACjC,sDAAmC;AACnC,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,iEAA8C;AAC9C,0DAAuC;AACvC,8EAA2D;AAC3D,uEAAoD;AACpD,mEAAgD;AAChD,wEAAqD;AACrD,4EAAyD;AACzD,uEAAoD"}
@@ -0,0 +1,15 @@
1
+ import { InventoryTypes } from "@medusajs/framework/types";
2
+ /**
3
+ * The variant fields that are carried over to its default inventory item.
4
+ */
5
+ type VariantInventoryInput = Pick<InventoryTypes.CreateInventoryItemInput, "sku" | "origin_country" | "mid_code" | "material" | "weight" | "length" | "height" | "width" | "hs_code"> & {
6
+ title?: string | null;
7
+ };
8
+ /**
9
+ * Builds the default inventory item for a variant that manages its inventory
10
+ * without any inventory items of its own. Shared by the create and update
11
+ * paths so both produce the same item.
12
+ */
13
+ export declare const createDefaultInventoryItem: (variant: VariantInventoryInput) => InventoryTypes.CreateInventoryItemInput;
14
+ export {};
15
+ //# sourceMappingURL=create-default-inventory-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-default-inventory-item.d.ts","sourceRoot":"","sources":["../../../src/product/utils/create-default-inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D;;GAEG;AACH,KAAK,qBAAqB,GAAG,IAAI,CAC/B,cAAc,CAAC,wBAAwB,EACrC,KAAK,GACL,gBAAgB,GAChB,UAAU,GACV,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,CACZ,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GACrC,SAAS,qBAAqB,KAC7B,cAAc,CAAC,wBAejB,CAAA"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDefaultInventoryItem = void 0;
4
+ /**
5
+ * Builds the default inventory item for a variant that manages its inventory
6
+ * without any inventory items of its own. Shared by the create and update
7
+ * paths so both produce the same item.
8
+ */
9
+ const createDefaultInventoryItem = (variant) => {
10
+ return {
11
+ sku: variant.sku,
12
+ origin_country: variant.origin_country,
13
+ mid_code: variant.mid_code,
14
+ material: variant.material,
15
+ weight: variant.weight,
16
+ length: variant.length,
17
+ height: variant.height,
18
+ width: variant.width,
19
+ title: variant.title,
20
+ description: variant.title,
21
+ hs_code: variant.hs_code,
22
+ requires_shipping: true,
23
+ };
24
+ };
25
+ exports.createDefaultInventoryItem = createDefaultInventoryItem;
26
+ //# sourceMappingURL=create-default-inventory-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-default-inventory-item.js","sourceRoot":"","sources":["../../../src/product/utils/create-default-inventory-item.ts"],"names":[],"mappings":";;;AAoBA;;;;GAIG;AACI,MAAM,0BAA0B,GAAG,CACxC,OAA8B,EACW,EAAE;IAC3C,OAAO;QACL,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,WAAW,EAAE,OAAO,CAAC,KAAK;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,iBAAiB,EAAE,IAAI;KACxB,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,0BAA0B,8BAiBtC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./jsontocsv";
2
2
  export * from "./csvtojson";
3
+ export * from "./create-default-inventory-item";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,iCAAiC,CAAA"}
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./jsontocsv"), exports);
18
18
  __exportStar(require("./csvtojson"), exports);
19
+ __exportStar(require("./create-default-inventory-item"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,8CAA2B;AAC3B,kEAA+C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-product-variants.d.ts","sourceRoot":"","sources":["../../../src/product/workflows/create-product-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGd,YAAY,EACZ,YAAY,EACb,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EACL,YAAY,EAKb,MAAM,mCAAmC,CAAA;AAS1C;;;;;;GAMG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,gBAAgB,EAAE,CAAC,YAAY,CAAC,uBAAuB,GAAG;QACxD;;WAEG;QACH,MAAM,CAAC,EAAE,YAAY,CAAC,oBAAoB,EAAE,CAAA;KAC7C,GAAG;QACF;;WAEG;QACH,eAAe,CAAC,EAAE;YAChB;;eAEG;YACH,iBAAiB,EAAE,MAAM,CAAA;YACzB;;;;;eAKG;YACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;SAC3B,EAAE,CAAA;KACJ,CAAC,EAAE,CAAA;CACL,GAAG,cAAc,CAAA;AA2IlB,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4HzC,CAAA"}
1
+ {"version":3,"file":"create-product-variants.d.ts","sourceRoot":"","sources":["../../../src/product/workflows/create-product-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAGd,YAAY,EACZ,YAAY,EACb,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EACL,YAAY,EAKb,MAAM,mCAAmC,CAAA;AAU1C;;;;;;GAMG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,gBAAgB,EAAE,CAAC,YAAY,CAAC,uBAAuB,GAAG;QACxD;;WAEG;QACH,MAAM,CAAC,EAAE,YAAY,CAAC,oBAAoB,EAAE,CAAA;KAC7C,GAAG;QACF;;WAEG;QACH,eAAe,CAAC,EAAE;YAChB;;eAEG;YACH,iBAAiB,EAAE,MAAM,CAAA;YACzB;;;;;eAKG;YACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;SAC3B,EAAE,CAAA;KACJ,CAAC,EAAE,CAAA;CACL,GAAG,cAAc,CAAA;AA8HlB,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4HzC,CAAA"}
@@ -10,6 +10,7 @@ const create_inventory_items_1 = require("../../inventory/workflows/create-inven
10
10
  const pricing_1 = require("../../pricing");
11
11
  const create_product_variants_1 = require("../steps/create-product-variants");
12
12
  const create_variant_pricing_link_1 = require("../steps/create-variant-pricing-link");
13
+ const create_default_inventory_item_1 = require("../utils/create-default-inventory-item");
13
14
  const buildLink = (variant_id, inventory_item_id, required_quantity) => {
14
15
  const link = {
15
16
  [utils_1.Modules.PRODUCT]: { variant_id },
@@ -73,20 +74,7 @@ const buildVariantItemCreateMap = (data) => {
73
74
  continue;
74
75
  }
75
76
  // Create a default inventory item if the above conditions arent met
76
- map[index] = {
77
- sku: variantInput.sku,
78
- origin_country: variantInput.origin_country,
79
- mid_code: variantInput.mid_code,
80
- material: variantInput.material,
81
- weight: variantInput.weight,
82
- length: variantInput.length,
83
- height: variantInput.height,
84
- width: variantInput.width,
85
- title: variantInput.title,
86
- description: variantInput.title,
87
- hs_code: variantInput.hs_code,
88
- requires_shipping: true,
89
- };
77
+ map[index] = (0, create_default_inventory_item_1.createDefaultInventoryItem)(variantInput);
90
78
  }
91
79
  return map;
92
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"create-product-variants.js","sourceRoot":"","sources":["../../../src/product/workflows/create-product-variants.ts"],"names":[],"mappings":";;;AAOA,qDAIkC;AAClC,qEAM0C;AAC1C,yCAA4C;AAC5C,sEAAyE;AACzE,6FAAuF;AACvF,6FAA+F;AAC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C,eAAe;KACvC,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,QAAQ,EAAE;QACpC,KAAK,EAAE,CAAC,sBAAsB,CAAC;KAChC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"create-product-variants.js","sourceRoot":"","sources":["../../../src/product/workflows/create-product-variants.ts"],"names":[],"mappings":";;;AAOA,qDAIkC;AAClC,qEAM0C;AAC1C,yCAA4C;AAC5C,sEAAyE;AACzE,6FAAuF;AACvF,6FAA+F;AAC/F,2CAAmD;AACnD,8EAA4E;AAC5E,sFAAmF;AACnF,0FAAmF;AAsCnF,MAAM,SAAS,GAAG,CAChB,UAAkB,EAClB,iBAAyB,EACzB,iBAAyB,EACzB,EAAE;IACF,MAAM,IAAI,GAAmB;QAC3B,CAAC,eAAO,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE;QACjC,CAAC,eAAO,CAAC,SAAS,CAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE;QAC7D,IAAI,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE;KAC/C,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,yCAAyC,GAAG,CAChD,YAMG,EACH,EAAE;IACF,MAAM,iBAAiB,GAAa,EAAE,CAAA;IAEtC,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,gBAAgB,GAAG,WAAW,CAAC,eAAe,CAAC,GAAG,CACtD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CACjC,CAAA;QACD,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,MAAM,CACxD,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,KAAK,CACtD,CAAA;QAED,IAAI,0BAA0B,CAAC,MAAM,EAAE,CAAC;YACtC,iBAAiB,CAAC,IAAI,CAAC,W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Q,EAAE;QACpC,KAAK,EAAE,CAAC,sBAAsB,CAAC;KAChC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-product-variants.d.ts","sourceRoot":"","sources":["../../../src/product/workflows/update-product-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,YAAY,EAKb,MAAM,mCAAmC,CAAA;AAS1C;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAC7C;IACE;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,6BAA6B,CAAA;IACpD;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC,uBAAuB,GAAG;QAC7C;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAA;KACtD,CAAA;CACF,GACD;IACE;;OAEG;IACH,gBAAgB,EAAE,CAAC,YAAY,CAAC,uBAAuB,GAAG;QACxD;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAA;KACtD,CAAC,EAAE,CAAA;CACL,CACJ,GACC,cAAc,CAAA;AAEhB,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA+JzC,CAAA"}
1
+ {"version":3,"file":"update-product-variants.d.ts","sourceRoot":"","sources":["../../../src/product/workflows/update-product-variants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,2BAA2B,CAAA;AAElC,OAAO,EACL,YAAY,EAMb,MAAM,mCAAmC,CAAA;AAU1C;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG,CAC7C;IACE;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,6BAA6B,CAAA;IACpD;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC,uBAAuB,GAAG;QAC7C;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAA;KACtD,CAAA;CACF,GACD;IACE;;OAEG;IACH,gBAAgB,EAAE,CAAC,YAAY,CAAC,uBAAuB,GAAG;QACxD;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,CAAA;KACtD,CAAC,EAAE,CAAA;CACL,CACJ,GACC,cAAc,CAAA;AAEhB,eAAO,MAAM,+BAA+B,4BAA4B,CAAA;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA8KzC,CAAA"}
@@ -104,24 +104,38 @@ exports.updateProductVariantsWorkflow = (0, workflows_sdk_1.createWorkflow)(expo
104
104
  };
105
105
  });
106
106
  const updatedVariants = (0, steps_1.updateProductVariantsStep)(updateWithoutPrices);
107
- const variantsToDismissInventory = (0, workflows_sdk_1.transform)({ input, updatedVariants }, (data) => {
108
- const variantIds = [];
107
+ const { variantsToDismissInventory, variantsToCreateInventory } = (0, workflows_sdk_1.transform)({ input, updatedVariants }, (data) => {
108
+ const variantsToDismissInventory = [];
109
+ const variantsToCreateInventory = [];
109
110
  if ("product_variants" in data.input) {
110
111
  for (const variant of data.input.product_variants) {
111
- if (variant.id && variant.manage_inventory === false) {
112
- variantIds.push(variant.id);
112
+ if (!variant.id) {
113
+ continue;
114
+ }
115
+ if (variant.manage_inventory === false) {
116
+ variantsToDismissInventory.push(variant.id);
117
+ }
118
+ else if (variant.manage_inventory === true) {
119
+ variantsToCreateInventory.push(variant.id);
113
120
  }
114
121
  }
115
122
  }
116
- else if (data.input.update &&
117
- data.input.update?.manage_inventory === false) {
118
- variantIds.push(...data.updatedVariants.map((v) => v.id));
123
+ else if (data.input.update) {
124
+ const updatedVariantIds = data.updatedVariants.map((v) => v.id);
125
+ if (data.input.update.manage_inventory === false) {
126
+ variantsToDismissInventory.push(...updatedVariantIds);
127
+ }
128
+ else if (data.input.update.manage_inventory === true) {
129
+ variantsToCreateInventory.push(...updatedVariantIds);
130
+ }
119
131
  }
120
- return variantIds;
132
+ return { variantsToDismissInventory, variantsToCreateInventory };
121
133
  });
122
- (0, steps_1.dismissProductVariantsInventoryStep)({
134
+ (0, workflows_sdk_1.parallelize)((0, steps_1.dismissProductVariantsInventoryStep)({
123
135
  variantIds: variantsToDismissInventory,
124
- });
136
+ }), (0, steps_1.createProductVariantsDefaultInventoryStep)({
137
+ variantIds: variantsToCreateInventory,
138
+ }));
125
139
  // We don't want to do any pricing updates if the prices didn't change
126
140
  const variantIds = (0, workflows_sdk_1.transform)({ input, updatedVariants }, (data) => {
127
141
  if ("product_variants" in data.input) {
@@ -1 +1 @@
1
- {"version":3,"file":"update-product-variants.js","sourceRoot":"","sources":["../../../src/product/workflows/update-product-variants.ts"],"names":[],"mappings":";;;AAKA,qDAAwE;AACxE,qEAM0C;AAC1C,yCAA4C;AAC5C,2CAAmD;AACnD,oCAGiB;AACjB,gFAA6E;AAmChE,QAAA,+BAA+B,GAAG,yBAAyB,CAAA;AACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACU,QAAA,6BAA6B,GAAG,IAAA,8BAAc,EACzD,uCAA+B,EAC/B,CAAC,KAAuD,EAAE,EAAE;IAC1D,yGAAyG;IACzG,MAAM,mBAAmB,GAAG,I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C,eAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1C,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,IAAI,CACpD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,EAAE,CACzC,CAAA;YAED,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,IAAI,CACpD,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,cAAc,EAAE,YAAY,CAC3D,CAAA;YAED,OAAO,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAA;QACtD,CAAC,CAAC,CAAA;IACJ,CAAC,CACF,CAAA;IAED,MAAM,eAAe,GAAG,IAAA,yBAAS,EAAC,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/D,OAAO,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACzB,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,IAAA,sBAAa,EAAC;QACZ,SAAS,EAAE,oCAA4B,CAAC,OAAO;QAC/C,IAAI,EAAE,eAAe;KACtB,CAAC,CAAA;IAEF,MAAM,sBAAsB,GAAG,IAAA,0BAAU,EAAC,wBAAwB,EAAE;QAClE,gBAAgB,EAAE,QAAQ;QAC1B,eAAe,EAAE,KAAK,CAAC,eAAe;KACvC,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,QAAQ,EAAE;QACpC,KAAK,EAAE,CAAC,sBAAsB,CAAC;KAChC,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"update-product-variants.js","sourceRoot":"","sources":["../../../src/product/workflows/update-product-variants.ts"],"names":[],"mappings":";;;AAKA,qDAAwE;AACxE,qEAO0C;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D;;WAEG;QACH,cAAc,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;QACjC;;WAEG;QACH,QAAQ,CAAC,EAAE,oCAAoC,EAAE,CAAA;QACjD;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACpC,CAAA;CACF,GAAG,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;QAC3D;;WAEG;QACH,cAAc,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;QACjC;;WAEG;QACH,QAAQ,CAAC,EAAE,oCAAoC,EAAE,CAAA;QACjD;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACpC,CAAC,EAAE,CAAA;CACL,GAAG,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,mCAAmC,GACnC,mCAAmC,CAAA;AA4PvC,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,eAAO,MAAM,sBAAsB;;;gBA/T9B,CAAC;;;;aA2dL,CAAA"}
1
+ {"version":3,"file":"update-products.d.ts","sourceRoot":"","sources":["../../../src/product/workflows/update-products.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EAEd,YAAY,EACZ,oCAAoC,EACrC,MAAM,2BAA2B,CAAA;AAOlC,OAAO,EACL,YAAY,EAMb,MAAM,mCAAmC,CAAA;AAW1C;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,sBAAsB,CAAA;IAC7C;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;QACxD;;WAEG;QACH,cAAc,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;QACjC;;WAEG;QACH,QAAQ,CAAC,EAAE,oCAAoC,EAAE,CAAA;QACjD;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACpC,CAAA;CACF,GAAG,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,QAAQ,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;QAC3D;;WAEG;QACH,cAAc,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;QACjC;;WAEG;QACH,QAAQ,CAAC,EAAE,oCAAoC,EAAE,CAAA;QACjD;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACpC,CAAC,EAAE,CAAA;CACL,GAAG,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,mCAAmC,GACnC,mCAAmC,CAAA;AA4PvC,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,eAAO,MAAM,sBAAsB;;;gBArUT,CAAC;;;;aAkf1B,CAAA"}
@@ -6,6 +6,7 @@ const utils_1 = require("@medusajs/framework/utils");
6
6
  const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
7
7
  const common_1 = require("../../common");
8
8
  const upsert_variant_prices_1 = require("./upsert-variant-prices");
9
+ const create_product_variants_default_inventory_1 = require("../steps/create-product-variants-default-inventory");
9
10
  const dismiss_product_variants_inventory_1 = require("../steps/dismiss-product-variants-inventory");
10
11
  function prepareUpdateProductInput({ input, }) {
11
12
  if ("products" in input) {
@@ -270,29 +271,39 @@ exports.updateProductsWorkflow = (0, workflows_sdk_1.createWorkflow)(exports.upd
270
271
  });
271
272
  const toUpdateInput = (0, workflows_sdk_1.transform)({ input }, prepareUpdateProductInput);
272
273
  const updatedProducts = (0, update_products_1.updateProductsStep)(toUpdateInput);
273
- const variantsToDismissInventory = (0, workflows_sdk_1.transform)({ input, updatedProducts }, (data) => {
274
- const variantIds = [];
274
+ const { variantsToDismissInventory, variantsToCreateInventory } = (0, workflows_sdk_1.transform)({ input, updatedProducts }, (data) => {
275
+ const variantsToDismissInventory = [];
276
+ const variantsToCreateInventory = [];
277
+ const collect = (variant) => {
278
+ if (!variant.id) {
279
+ return;
280
+ }
281
+ if (variant.manage_inventory === false) {
282
+ variantsToDismissInventory.push(variant.id);
283
+ }
284
+ else if (variant.manage_inventory === true) {
285
+ variantsToCreateInventory.push(variant.id);
286
+ }
287
+ };
275
288
  if ("products" in data.input) {
276
289
  for (const product of data.input.products) {
277
290
  for (const variant of product.variants ?? []) {
278
- if (variant.id && variant.manage_inventory === false) {
279
- variantIds.push(variant.id);
280
- }
291
+ collect(variant);
281
292
  }
282
293
  }
283
294
  }
284
295
  else if (data.input.update?.variants?.length) {
285
296
  for (const variant of data.input.update.variants) {
286
- if (variant.id && variant.manage_inventory === false) {
287
- variantIds.push(variant.id);
288
- }
297
+ collect(variant);
289
298
  }
290
299
  }
291
- return variantIds;
300
+ return { variantsToDismissInventory, variantsToCreateInventory };
292
301
  });
293
- (0, dismiss_product_variants_inventory_1.dismissProductVariantsInventoryStep)({
302
+ (0, workflows_sdk_1.parallelize)((0, dismiss_product_variants_inventory_1.dismissProductVariantsInventoryStep)({
294
303
  variantIds: variantsToDismissInventory,
295
- });
304
+ }), (0, create_product_variants_default_inventory_1.createProductVariantsDefaultInventoryStep)({
305
+ variantIds: variantsToCreateInventory,
306
+ }));
296
307
  const salesChannelLinks = (0, workflows_sdk_1.transform)({ input, updatedProducts }, prepareSalesChannelLinks);
297
308
  const shippingProfileLinks = (0, workflows_sdk_1.transform)({ input, updatedProducts }, prepareShippingProfileLinks);
298
309
  const variantPrices = (0, workflows_sdk_1.transform)({ input, updatedProducts }, prepareVariantPrices);
@@ -1 +1 @@
1
- {"version":3,"file":"update-products.js","sourceRoot":"","sources":["../../../src/product/workflows/update-products.ts"],"names":[],"mappings":";;;AAAA,8DAA6D;AAQ7D,qDAKkC;AAClC,qEAO0C;AAC1C,yCAKqB;AACrB,mEAAqE;AACrE,oGAAiG;AA2DjG,SAAS,yBAAyB,CAAC,EACjC,KAAK,GAGN;IACC,IAAI,UAAU,IAAI,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAA;QACzB,CAAC;QAED,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnC,GAAG,CAAC;gBACJ,cAAc,EAAE,SAAS;gBACzB,mBAAmB,EAAE,SAAS;gBAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBAChC,GAAG,CAAC;oBACJ,MAAM,EAAE,SAAS;iBAClB,CAAC,CAAC;aACJ,CAAC,CAAC;SACJ,CAAA;IACH,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM,EAAE;YACN,GAAG,KAAK,CAAC,MAAM;YACf,cAAc,EAAE,SAAS;YACzB,mBAAmB,EAAE,SAAS;YAC9B,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC5C,GAAG,CAAC;gBACJ,MAAM,EAAE,SAAS;aAClB,CAAC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,IAAA,2BAAW,EACT,IAAA,6BAAoB,EAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;QAC7C,IAAI,EAAE,iCAAiC;KACxC,CAAC,EACF,IAAA,6BAAoB,EAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC;QAChD,IAAI,EAAE,oCAAoC;KAC3C,CAAC,EACF,IAAA,sBAAa,EAAC;QACZ,SAAS,EAAE,6BAAqB,CAAC,OAAO;QACxC,IAAI,EAAE,eAAe;KACtB,CAAC,CACH,CAAA;IAED,MAAM,eAAe,GAAG,IAAA,0BAAU,EAAC,iBAAiB,EAAE;QACpD,QAAQ,EAAE,eAAe;QACzB,eAAe,EAAE,KAAK,CAAC,eAAe;KACvC,CAAC,CAAA;IAEF,OAAO,IAAI,gCAAgB,CAAC,eAAe,EAAE;QAC3C,KAAK,EAAE,CAAC,eAAe,CAAC;KACzB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"update-products.js","sourceRoot":"","sources":["../../../src/product/workflows/update-products.ts"],"names":[],"mappings":";;;AAAA,8DAA6D;AAQ7D,qDAKkC;AAClC,qEAO0C;AAC1C,yCAKqB;AACrB,mEAAqE;AACrE,kHAA8G;AAC9G,oGAAiG;AA2DjG,SAAS,yBAAyB,CAAC,EACjC,KAAK,GAGN;IACC,IAAI,UAAU,IAAI,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YAC3B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAA;QACzB,CAAC;QAED,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnC,GAAG,CAAC;gBACJ,cAAc,EAAE,SAAS;gBACzB,mBAAmB,EAAE,SAAS;gBAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE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,OAAO,IAAI,gCAAgB,CAAC,eAAe,EAAE;QAC3C,KAAK,EAAE,CAAC,eAAe,CAAC;KACzB,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
@@ -30,13 +30,13 @@ exports.addOrRemoveCampaignPromotionsStep = (0, workflows_sdk_1.createStep)(expo
30
30
  const { id: campaignId, add: promotionIdsToRemove = [], remove: promotionIdsToAdd = [], } = data;
31
31
  const promotionModule = container.resolve(utils_1.Modules.PROMOTION);
32
32
  if (promotionIdsToAdd.length) {
33
- promotionModule.addPromotionsToCampaign({
33
+ await promotionModule.addPromotionsToCampaign({
34
34
  id: campaignId,
35
35
  promotion_ids: promotionIdsToAdd,
36
36
  });
37
37
  }
38
38
  if (promotionIdsToRemove.length) {
39
- promotionModule.removePromotionsFromCampaign({
39
+ await promotionModule.removePromotionsFromCampaign({
40
40
  id: campaignId,
41
41
  promotion_ids: promotionIdsToRemove,
42
42
  });
@@ -1 +1 @@
1
- {"version":3,"file":"add-or-remove-campaign-promotions.js","sourceRoot":"","sources":["../../../src/promotion/steps/add-or-remove-campaign-promotions.ts"],"names":[],"mappings":";;;AAIA,qDAAmD;AACnD,qEAI0C;AAE7B,QAAA,mCAAmC,GAC9C,mCAAmC,CAAA;AACrC;;GAEG;AACU,QAAA,iCAAiC,GAAG,IAAA,0BAAU,EACzD,2CAAmC,EACnC,KAAK,EAAE,KAAsC,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC9D,MAAM,EACJ,EAAE,EAAE,UAAU,EACd,GAAG,EAAE,iBAAiB,GAAG,EAAE,EAC3B,MAAM,EAAE,oBAAoB,GAAG,EAAE,GAClC,GAAG,KAAK,CAAA;IACT,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,CACvC,eAAO,CAAC,SAAS,CAClB,CAAA;IAED,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC7B,MAAM,eAAe,CAAC,uBAAuB,CAAC;YAC5C,EAAE,EAAE,UAAU;YACd,aAAa,EAAE,iBAAiB;SACjC,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,oBAAoB,CAAC,MAAM,EAAE,CAAC;QAChC,MAAM,eAAe,CAAC,4BAA4B,CAAC;YACjD,EAAE,EAAE,UAAU;YACd,aAAa,EAAE,oBAAoB;SACpC,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,IAAI,4BAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACtC,CAAC,EACD,KAAK,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IAC5B,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAM;IACR,CAAC;IAED,MAAM,EACJ,EAAE,EAAE,UAAU,EACd,GAAG,EAAE,oBAAoB,GAAG,EAAE,EAC9B,MAAM,EAAE,iBAAiB,GAAG,EAAE,GAC/B,GAAG,IAAI,CAAA;IAER,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,CACvC,eAAO,CAAC,SAAS,CAClB,CAAA;IAED,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;QAC7B,eAAe,CAAC,uBAAuB,CAAC;YACtC,EAAE,EAAE,UAAU;YACd,aAAa,EAAE,iBAAiB;SACjC,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,oBAAoB,CAAC,MAAM,EAAE,CAAC;QAChC,eAAe,CAAC,4BAA4B,CAAC;YAC3C,EAAE,EAAE,UAAU;YACd,aAAa,EAAE,oBAAoB;SACpC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"add-or-remove-campaign-promotions.js","sourceRoot":"","sources":["../../../src/promotion/steps/add-or-remove-campaign-promotions.ts"],"names":[],"mappings":";;;AAIA,qDAAmD;AACnD,qEAI0C;AAE7B,QAAA,mCAAmC,GAC9C,mCAAmC,CAAA;AACrC;;GAEG;AACU,QAAA,iCAAiC,GAAG,IAAA,0BAAU,EACzD,2CAAmC,EACnC,KAAK,EAAE,KAAsC,EAAE,EAAE,SAAS,EA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d,aAAa,EAAE,oBAAoB;SACpC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC,CACF,CAAA"}
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/link-sales-channels-to-publishable-key.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/steps/validate-sales-channel-exists.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/link-sales-channels-to-publishable-key.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/create-password-reset-token.ts","../src/auth/steps/delete-auth-identity.ts","../src/auth/steps/index.ts","../src/auth/steps/request-verification.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/auth/workflows/request-verification.ts","../src/auth/workflows/set-auth-app-metadata.ts","../src/cart/index.ts","../src/cart/steps/add-shipping-method-to-cart.ts","../src/cart/steps/compensate-payment-if-needed.ts","../src/cart/steps/confirm-inventory.ts","../src/cart/steps/create-carts.ts","../src/cart/steps/create-line-item-adjustments.ts","../src/cart/steps/create-line-items.ts","../src/cart/steps/create-payment-collection.ts","../src/cart/steps/create-shipping-method-adjustments.ts","../src/cart/steps/find-one-or-any-region.ts","../src/cart/steps/find-or-create-customer.ts","../src/cart/steps/find-sales-channel.ts","../src/cart/steps/get-actions-to-compute-from-promotions.ts","../src/cart/steps/get-line-item-actions.ts","../src/cart/steps/get-line-item-pricing-quantities.ts","../src/cart/steps/get-promotion-codes-to-apply.ts","../src/cart/steps/get-variant-price-sets.ts","../src/cart/steps/get-variants.ts","../src/cart/steps/index.ts","../src/cart/steps/prepare-adjustments-from-promotion-actions.ts","../src/cart/steps/remove-line-item-adjustments.ts","../src/cart/steps/remove-shipping-method-adjustments.ts","../src/cart/steps/remove-shipping-method-from-cart.ts","../src/cart/steps/reserve-inventory.ts","../src/cart/steps/retrieve-cart.ts","../src/cart/steps/set-tax-lines-for-items.ts","../src/cart/steps/update-cart-items-translations.ts","../src/cart/steps/update-cart-promotions.ts","../src/cart/steps/update-carts.ts","../src/cart/steps/update-line-items.ts","../src/cart/steps/update-shipping-methods.ts","../src/cart/steps/upsert-tax-lines-for-items.ts","../src/cart/steps/validate-cart-items.ts","../src/cart/steps/validate-cart-payments.ts","../src/cart/steps/validate-cart-shipping-options.ts","../src/cart/steps/validate-cart.ts","../src/cart/steps/validate-line-item-prices.ts","../src/cart/steps/validate-sales-channel.ts","../src/cart/steps/validate-shipping-methods-data.ts","../src/cart/steps/validate-shipping-options-price.ts","../src/cart/steps/validate-shipping.ts","../src/cart/steps/validate-variant-prices.ts","../src/cart/utils/fields.ts","../src/cart/utils/filter-items-by-shipping-profile.ts","../src/cart/utils/find-matching-line-item.ts","../src/cart/utils/prepare-confirm-inventory-input.ts","../src/cart/utils/prepare-line-item-data.ts","../src/cart/utils/schemas.ts","../src/cart/utils/__tests__/prepare-confirm-inventory-input.spec.ts","../src/cart/workflows/add-shipping-method-to-cart.ts","../src/cart/workflows/add-to-cart.ts","../src/cart/workflows/complete-cart.ts","../src/cart/workflows/confirm-variant-inventory.ts","../src/cart/workflows/create-cart-credit-lines.ts","../src/cart/workflows/create-carts.ts","../src/cart/workflows/create-payment-collection-for-cart.ts","../src/cart/workflows/delete-cart-credit-lines.ts","../src/cart/workflows/get-variants-and-items-with-prices.ts","../src/cart/workflows/index.ts","../src/cart/workflows/list-shipping-options-for-cart-with-pricing.ts","../src/cart/workflows/list-shipping-options-for-cart.ts","../src/cart/workflows/refresh-cart-items.ts","../src/cart/workflows/refresh-cart-shipping-methods.ts","../src/cart/workflows/refresh-payment-collection.ts","../src/cart/workflows/refund-payment-recreate-payment-session.ts","../src/cart/workflows/transfer-cart-customer.ts","../src/cart/workflows/update-cart-promotions.ts","../src/cart/workflows/update-cart.ts","../src/cart/workflows/update-line-item-in-cart.ts","../src/cart/workflows/update-tax-lines.ts","../src/cart/workflows/upsert-tax-lines.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/get-translated-line-items.ts","../src/common/steps/get-translated-shipping-option.ts","../src/common/steps/get-translated-tax-lines.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/steps/__fixtures__/remote-query.ts","../src/common/steps/__tests__/use-query-graph-step.spec.ts","../src/common/utils/apply-translations-to-items.ts","../src/common/utils/fields.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/customer/index.ts","../src/customer/steps/create-addresses.ts","../src/customer/steps/create-customers.ts","../src/customer/steps/delete-addresses.ts","../src/customer/steps/delete-customers.ts","../src/customer/steps/index.ts","../src/customer/steps/maybe-unset-default-billing-addresses.ts","../src/customer/steps/maybe-unset-default-shipping-addresses.ts","../src/customer/steps/update-addresses.ts","../src/customer/steps/update-customers.ts","../src/customer/steps/validate-customer-account-creation.ts","../src/customer/steps/utils/index.ts","../src/customer/steps/utils/unset-address-for-create.ts","../src/customer/steps/utils/unset-address-for-update.ts","../src/customer/workflows/create-addresses.ts","../src/customer/workflows/create-customer-account.ts","../src/customer/workflows/create-customers.ts","../src/customer/workflows/delete-addresses.ts","../src/customer/workflows/delete-customers.ts","../src/customer/workflows/index.ts","../src/customer/workflows/remove-customer-account.ts","../src/customer/workflows/update-addresses.ts","../src/customer/workflows/update-customers.ts","../src/customer-group/index.ts","../src/customer-group/steps/create-customer-groups.ts","../src/customer-group/steps/delete-customer-group-customers.ts","../src/customer-group/steps/delete-customer-groups.ts","../src/customer-group/steps/index.ts","../src/customer-group/steps/link-customer-groups-customer.ts","../src/customer-group/steps/link-customers-customer-group.ts","../src/customer-group/steps/update-customer-groups.ts","../src/customer-group/workflows/create-customer-groups.ts","../src/customer-group/workflows/delete-customer-groups.ts","../src/customer-group/workflows/index.ts","../src/customer-group/workflows/link-customer-groups-customer.ts","../src/customer-group/workflows/link-customers-customer-group.ts","../src/customer-group/workflows/update-customer-groups.ts","../src/defaults/index.ts","../src/defaults/steps/create-default-store.ts","../src/defaults/steps/index.ts","../src/defaults/workflows/create-defaults.ts","../src/defaults/workflows/index.ts","../src/draft-order/index.ts","../src/draft-order/steps/create-draft-order-line-item-adjustments.ts","../src/draft-order/steps/create-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/delete-draft-order.ts","../src/draft-order/steps/get-draft-order-promotion-context.ts","../src/draft-order/steps/index.ts","../src/draft-order/steps/remove-draft-order-line-item-adjustments.ts","../src/draft-order/steps/remove-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/restore-draft-order-shipping-methods.ts","../src/draft-order/steps/update-draft-order-promotions.ts","../src/draft-order/steps/update-draft-order-shipping-metod.ts","../src/draft-order/steps/validate-draft-order-change.ts","../src/draft-order/steps/validate-draft-order-remove-action-item.ts","../src/draft-order/steps/validate-draft-order-shipping-method-action.ts","../src/draft-order/steps/validate-draft-order-update-action-item.ts","../src/draft-order/steps/validate-draft-order.ts","../src/draft-order/steps/validate-promo-codes-to-add.ts","../src/draft-order/steps/validate-promo-codes-to-remove.ts","../src/draft-order/utils/enrich-preview-line-items-for-shipping-price-calculation.ts","../src/draft-order/utils/fields.ts","../src/draft-order/utils/validation.ts","../src/draft-order/workflows/add-draft-order-items.ts","../src/draft-order/workflows/add-draft-order-promotions.ts","../src/draft-order/workflows/add-draft-order-shipping-methods.ts","../src/draft-order/workflows/begin-draft-order-edit.ts","../src/draft-order/workflows/cancel-draft-order-edit.ts","../src/draft-order/workflows/compute-draft-order-adjustments.ts","../src/draft-order/workflows/confirm-draft-order-edit.ts","../src/draft-order/workflows/convert-draft-order.ts","../src/draft-order/workflows/delete-draft-order.ts","../src/draft-order/workflows/fetch-draft-order-shipping-option.ts","../src/draft-order/workflows/index.ts","../src/draft-order/workflows/refresh-confirmed-draft-order-shipping-methods.ts","../src/draft-order/workflows/refresh-draft-order-adjustments.ts","../src/draft-order/workflows/refresh-pending-draft-order-shipping-methods.ts","../src/draft-order/workflows/remove-draft-order-action-item.ts","../src/draft-order/workflows/remove-draft-order-action-shipping-method.ts","../src/draft-order/workflows/remove-draft-order-promotions.ts","../src/draft-order/workflows/remove-draft-order-shipping-method.ts","../src/draft-order/workflows/request-draft-order-edit.ts","../src/draft-order/workflows/update-draft-order-action-item.ts","../src/draft-order/workflows/update-draft-order-action-shipping-method.ts","../src/draft-order/workflows/update-draft-order-item.ts","../src/draft-order/workflows/update-draft-order-shipping-method.ts","../src/draft-order/workflows/update-draft-order.ts","../src/file/index.ts","../src/file/steps/delete-files.ts","../src/file/steps/index.ts","../src/file/steps/upload-files.ts","../src/file/workflows/delete-files.ts","../src/file/workflows/index.ts","../src/file/workflows/upload-files.ts","../src/fulfillment/index.ts","../src/fulfillment/steps/add-shipping-options-prices.ts","../src/fulfillment/steps/calculate-shipping-options-prices.ts","../src/fulfillment/steps/cancel-fulfillment.ts","../src/fulfillment/steps/create-fulfillment-set.ts","../src/fulfillment/steps/create-fulfillment.ts","../src/fulfillment/steps/create-return-fulfillment.ts","../src/fulfillment/steps/create-service-zones.ts","../src/fulfillment/steps/create-shipping-option-rules.ts","../src/fulfillment/steps/create-shipping-profiles.ts","../src/fulfillment/steps/delete-fulfillment-sets.ts","../src/fulfillment/steps/delete-service-zones.ts","../src/fulfillment/steps/delete-shipping-option-rules.ts","../src/fulfillment/steps/delete-shipping-options.ts","../src/fulfillment/steps/index.ts","../src/fulfillment/steps/set-shipping-options-price-sets.ts","../src/fulfillment/steps/set-shipping-options-prices.ts","../src/fulfillment/steps/update-fulfillment.ts","../src/fulfillment/steps/update-service-zones.ts","../src/fulfillment/steps/update-shipping-option-rules.ts","../src/fulfillment/steps/update-shipping-profiles.ts","../src/fulfillment/steps/upsert-shipping-options.ts","../src/fulfillment/steps/validate-fulfillment-providers.ts","../src/fulfillment/steps/validate-shipment.ts","../src/fulfillment/steps/validate-shipping-option-prices.ts","../src/fulfillment/workflows/batch-shipping-option-rules.ts","../src/fulfillment/workflows/calculate-shipping-options-prices.ts","../src/fulfillment/workflows/cancel-fulfillment.ts","../src/fulfillment/workflows/create-fulfillment.ts","../src/fulfillment/workflows/create-return-fulfillment.ts","../src/fulfillment/workflows/create-service-zones.ts","../src/fulfillment/workflows/create-shipment.ts","../src/fulfillment/workflows/create-shipping-options.ts","../src/fulfillment/workflows/create-shipping-profiles.ts","../src/fulfillment/workflows/delete-fulfillment-sets.ts","../src/fulfillment/workflows/delete-service-zones.ts","../src/fulfillment/workflows/delete-shipping-options.ts","../src/fulfillment/workflows/index.ts","../src/fulfillment/workflows/mark-fulfillment-as-delivered.ts","../src/fulfillment/workflows/update-fulfillment.ts","../src/fulfillment/workflows/update-service-zones.ts","../src/fulfillment/workflows/update-shipping-options.ts","../src/fulfillment/workflows/update-shipping-profiles.ts","../src/inventory/index.ts","../src/inventory/helpers/normalize-for-export.ts","../src/inventory/steps/adjust-inventory-levels.ts","../src/inventory/steps/attach-inventory-items.ts","../src/inventory/steps/create-inventory-items.ts","../src/inventory/steps/create-inventory-levels.ts","../src/inventory/steps/delete-inventory-items.ts","../src/inventory/steps/delete-inventory-levels.ts","../src/inventory/steps/export-inventory-items.ts","../src/inventory/steps/index.ts","../src/inventory/steps/update-inventory-items.ts","../src/inventory/steps/update-inventory-levels.ts","../src/inventory/steps/validate-inventory-items.ts","../src/inventory/steps/validate-inventory-locations.ts","../src/inventory/steps/validate-singular-inventory-items-for-tags.ts","../src/inventory/workflows/batch-inventory-item-levels.ts","../src/inventory/workflows/bulk-create-delete-levels.ts","../src/inventory/workflows/create-inventory-items.ts","../src/inventory/workflows/create-inventory-levels.ts","../src/inventory/workflows/delete-inventory-items.ts","../src/inventory/workflows/delete-inventory-levels.ts","../src/inventory/workflows/export-inventory-items.ts","../src/inventory/workflows/index.ts","../src/inventory/workflows/update-inventory-items.ts","../src/inventory/workflows/update-inventory-levels.ts","../src/invite/index.ts","../src/invite/steps/create-invites.ts","../src/invite/steps/delete-invites.ts","../src/invite/steps/get-invite-roles.ts","../src/invite/steps/index.ts","../src/invite/steps/refresh-invite-tokens.ts","../src/invite/steps/validate-roles-exist.ts","../src/invite/steps/validate-token.ts","../src/invite/workflows/accept-invite.ts","../src/invite/workflows/create-invites.ts","../src/invite/workflows/delete-invites.ts","../src/invite/workflows/index.ts","../src/invite/workflows/refresh-invite-tokens.ts","../src/line-item/index.ts","../src/line-item/steps/delete-line-items.ts","../src/line-item/steps/index.ts","../src/line-item/steps/list-line-items.ts","../src/line-item/steps/update-line-items.ts","../src/line-item/workflows/delete-line-items.ts","../src/line-item/workflows/index.ts","../src/locking/index.ts","../src/locking/steps/acquire-lock.ts","../src/locking/steps/release-lock.ts","../src/notification/index.ts","../src/notification/steps/index.ts","../src/notification/steps/notify-on-failure.ts","../src/notification/steps/send-notifications.ts","../src/order/index.ts","../src/order/steps/add-order-transaction.ts","../src/order/steps/archive-orders.ts","../src/order/steps/cancel-fulfillment.ts","../src/order/steps/cancel-order-change.ts","../src/order/steps/cancel-orders.ts","../src/order/steps/complete-orders.ts","../src/order/steps/confirm-order-changes.ts","../src/order/steps/create-line-items.ts","../src/order/steps/create-order-change.ts","../src/order/steps/create-order-shipping-methods.ts","../src/order/steps/create-orders.ts","../src/order/steps/decline-order-change.ts","../src/order/steps/delete-line-items.ts","../src/order/steps/delete-order-change-actions.ts","../src/order/steps/delete-order-changes.ts","../src/order/steps/delete-order-shipping-methods.ts","../src/order/steps/export-orders.ts","../src/order/steps/index.ts","../src/order/steps/list-order-change-actions-by-type.ts","../src/order/steps/preview-order-change.ts","../src/order/steps/register-delivery.ts","../src/order/steps/register-fulfillment.ts","../src/order/steps/register-order-changes.ts","../src/order/steps/register-shipment.ts","../src/order/steps/set-tax-lines-for-items.ts","../src/order/steps/update-order-change-actions.ts","../src/order/steps/update-order-changes.ts","../src/order/steps/update-order-items-translations.ts","../src/order/steps/update-order-shipping-methods-translations.ts","../src/order/steps/update-order-tax-lines-translations.ts","../src/order/steps/update-orders.ts","../src/order/steps/update-shipping-methods.ts","../src/order/steps/claim/cancel-claim.ts","../src/order/steps/claim/create-claim-items-from-actions.ts","../src/order/steps/claim/create-claims.ts","../src/order/steps/claim/delete-claims.ts","../src/order/steps/claim/update-order-claims.ts","../src/order/steps/exchange/cancel-exchange.ts","../src/order/steps/exchange/create-exchange-items-from-actions.ts","../src/order/steps/exchange/create-exchange.ts","../src/order/steps/exchange/delete-exchanges.ts","../src/order/steps/exchange/update-order-exchanges.ts","../src/order/steps/return/cancel-return.ts","../src/order/steps/return/create-complete-return.ts","../src/order/steps/return/create-return-items-from-actions.ts","../src/order/steps/return/create-returns.ts","../src/order/steps/return/delete-returns.ts","../src/order/steps/return/receive-return.ts","../src/order/steps/return/update-return-items.ts","../src/order/steps/return/update-returns.ts","../src/order/utils/aggregate-status.ts","../src/order/utils/build-reservations-map.ts","../src/order/utils/fields.ts","../src/order/utils/index.ts","../src/order/utils/order-validation.ts","../src/order/utils/prepare-shipping-method.ts","../src/order/utils/validate-return-reason.ts","../src/order/utils/__tests__/aggregate-status.spec.ts","../src/order/workflows/add-line-items.ts","../src/order/workflows/archive-orders.ts","../src/order/workflows/cancel-order-change.ts","../src/order/workflows/cancel-order-fulfillment.ts","../src/order/workflows/cancel-order.ts","../src/order/workflows/complete-orders.ts","../src/order/workflows/compute-adjustments-for-preview.ts","../src/order/workflows/create-fulfillment.ts","../src/order/workflows/create-or-update-order-payment-collection.ts","../src/order/workflows/create-order-change-actions.ts","../src/order/workflows/create-order-change.ts","../src/order/workflows/create-order-credit-lines.ts","../src/order/workflows/create-order-payment-collection.ts","../src/order/workflows/create-order.ts","../src/order/workflows/create-shipment.ts","../src/order/workflows/decline-order-change.ts","../src/order/workflows/delete-order-change-actions.ts","../src/order/workflows/delete-order-change.ts","../src/order/workflows/delete-order-payment-collection.ts","../src/order/workflows/export-orders.ts","../src/order/workflows/fetch-shipping-option.ts","../src/order/workflows/get-order-detail.ts","../src/order/workflows/get-orders-list.ts","../src/order/workflows/index.ts","../src/order/workflows/list-shipping-options-for-order.ts","../src/order/workflows/mark-order-fulfillment-as-delivered.ts","../src/order/workflows/mark-payment-collection-as-paid.ts","../src/order/workflows/maybe-refresh-shipping-methods.ts","../src/order/workflows/on-carry-promotions-flag-set.ts","../src/order/workflows/update-order-change-actions.ts","../src/order/workflows/update-order-change.ts","../src/order/workflows/update-order-changes.ts","../src/order/workflows/update-order.ts","../src/order/workflows/update-tax-lines.ts","../src/order/workflows/claim/begin-order-claim.ts","../src/order/workflows/claim/cancel-begin-order-claim.ts","../src/order/workflows/claim/cancel-claim.ts","../src/order/workflows/claim/claim-add-new-item.ts","../src/order/workflows/claim/claim-item.ts","../src/order/workflows/claim/claim-request-item-return.ts","../src/order/workflows/claim/confirm-claim-request.ts","../src/order/workflows/claim/create-claim-shipping-method.ts","../src/order/workflows/claim/refresh-shipping.ts","../src/order/workflows/claim/remove-claim-add-item-action.ts","../src/order/workflows/claim/remove-claim-item-action.ts","../src/order/workflows/claim/remove-claim-shipping-method.ts","../src/order/workflows/claim/update-claim-add-item.ts","../src/order/workflows/claim/update-claim-item.ts","../src/order/workflows/claim/update-claim-shipping-method.ts","../src/order/workflows/exchange/begin-order-exchange.ts","../src/order/workflows/exchange/cancel-begin-order-exchange.ts","../src/order/workflows/exchange/cancel-exchange.ts","../src/order/workflows/exchange/confirm-exchange-request.ts","../src/order/workflows/exchange/create-exchange-shipping-method.ts","../src/order/workflows/exchange/exchange-add-new-item.ts","../src/order/workflows/exchange/exchange-request-item-return.ts","../src/order/workflows/exchange/refresh-shipping.ts","../src/order/workflows/exchange/remove-exchange-item-action.ts","../src/order/workflows/exchange/remove-exchange-shipping-method.ts","../src/order/workflows/exchange/update-exchange-add-item.ts","../src/order/workflows/exchange/update-exchange-shipping-method.ts","../src/order/workflows/order-edit/begin-order-edit.ts","../src/order/workflows/order-edit/cancel-begin-order-edit.ts","../src/order/workflows/order-edit/confirm-order-edit-request.ts","../src/order/workflows/order-edit/create-order-edit-shipping-method.ts","../src/order/workflows/order-edit/order-edit-add-new-item.ts","../src/order/workflows/order-edit/order-edit-update-item-quantity.ts","../src/order/workflows/order-edit/remove-order-edit-item-action.ts","../src/order/workflows/order-edit/remove-order-edit-shipping-method.ts","../src/order/workflows/order-edit/request-order-edit.ts","../src/order/workflows/order-edit/update-order-edit-add-item.ts","../src/order/workflows/order-edit/update-order-edit-item-quantity.ts","../src/order/workflows/order-edit/update-order-edit-shipping-method.ts","../src/order/workflows/order-edit/utils/fields.ts","../src/order/workflows/order-edit/utils/prepare-order-compute-action-context.ts","../src/order/workflows/payments/create-order-refund-credit-lines.ts","../src/order/workflows/payments/refund-captured-payments.ts","../src/order/workflows/return/begin-receive-return.ts","../src/order/workflows/return/begin-return.ts","../src/order/workflows/return/cancel-receive-return.ts","../src/order/workflows/return/cancel-request-return.ts","../src/order/workflows/return/cancel-return.ts","../src/order/workflows/return/confirm-receive-return-request.ts","../src/order/workflows/return/confirm-return-request.ts","../src/order/workflows/return/create-complete-return.ts","../src/order/workflows/return/create-return-shipping-method.ts","../src/order/workflows/return/dismiss-item-return-request.ts","../src/order/workflows/return/receive-complete-return.ts","../src/order/workflows/return/receive-item-return-request.ts","../src/order/workflows/return/refresh-shipping.ts","../src/order/workflows/return/remove-item-receive-return-action.ts","../src/order/workflows/return/remove-item-return-action.ts","../src/order/workflows/return/remove-return-shipping-method.ts","../src/order/workflows/return/request-item-return.ts","../src/order/workflows/return/update-receive-item-return-request.ts","../src/order/workflows/return/update-request-item-return.ts","../src/order/workflows/return/update-return-shipping-method.ts","../src/order/workflows/return/update-return.ts","../src/order/workflows/transfer/accept-order-transfer.ts","../src/order/workflows/transfer/cancel-order-transfer.ts","../src/order/workflows/transfer/decline-order-transfer.ts","../src/order/workflows/transfer/request-order-transfer.ts","../src/order/workflows/transfer/transfer-order-to-guest.ts","../src/payment/index.ts","../src/payment/steps/authorize-payment-session.ts","../src/payment/steps/cancel-payment.ts","../src/payment/steps/capture-payment.ts","../src/payment/steps/complete-cart-after-payment.ts","../src/payment/steps/index.ts","../src/payment/steps/refund-payment.ts","../src/payment/steps/refund-payments.ts","../src/payment/workflows/authorize-payment-session-for-order.ts","../src/payment/workflows/capture-payment.ts","../src/payment/workflows/index.ts","../src/payment/workflows/process-payment.ts","../src/payment/workflows/refund-payment.ts","../src/payment/workflows/refund-payments.ts","../src/payment-collection/index.ts","../src/payment-collection/steps/cancel-payment.ts","../src/payment-collection/steps/create-payment-account-holder.ts","../src/payment-collection/steps/create-payment-session.ts","../src/payment-collection/steps/create-refund-reasons.ts","../src/payment-collection/steps/delete-payment-sessions.ts","../src/payment-collection/steps/delete-refund-reasons.ts","../src/payment-collection/steps/index.ts","../src/payment-collection/steps/update-payment-collection.ts","../src/payment-collection/steps/update-refund-reasons.ts","../src/payment-collection/steps/validate-deleted-payment-sessions.ts","../src/payment-collection/steps/validate-payment-provider-in-region.ts","../src/payment-collection/utils/region-payment-providers.ts","../src/payment-collection/workflows/cancel-payment-collection.ts","../src/payment-collection/workflows/create-payment-session.ts","../src/payment-collection/workflows/create-refund-reasons.ts","../src/payment-collection/workflows/delete-payment-sessions.ts","../src/payment-collection/workflows/delete-refund-reasons.ts","../src/payment-collection/workflows/index.ts","../src/payment-collection/workflows/update-refund-reasons.ts","../src/price-list/index.ts","../src/price-list/steps/create-price-list-prices.ts","../src/price-list/steps/create-price-lists.ts","../src/price-list/steps/delete-price-lists.ts","../src/price-list/steps/get-existing-price-lists-price-ids.ts","../src/price-list/steps/index.ts","../src/price-list/steps/remove-price-list-prices.ts","../src/price-list/steps/update-price-list-prices.ts","../src/price-list/steps/update-price-lists.ts","../src/price-list/steps/validate-price-lists.ts","../src/price-list/steps/validate-variant-price-links.ts","../src/price-list/workflows/batch-price-list-prices.ts","../src/price-list/workflows/create-price-list-prices.ts","../src/price-list/workflows/create-price-lists.ts","../src/price-list/workflows/delete-price-lists.ts","../src/price-list/workflows/index.ts","../src/price-list/workflows/remove-price-list-prices.ts","../src/price-list/workflows/update-price-list-prices.ts","../src/price-list/workflows/update-price-lists.ts","../src/pricing/index.ts","../src/pricing/steps/create-price-preferences.ts","../src/pricing/steps/create-price-sets.ts","../src/pricing/steps/delete-price-preferences.ts","../src/pricing/steps/index.ts","../src/pricing/steps/update-price-preferences-as-array.ts","../src/pricing/steps/update-price-preferences.ts","../src/pricing/steps/update-price-sets.ts","../src/pricing/workflows/create-price-preferences.ts","../src/pricing/workflows/delete-price-preferences.ts","../src/pricing/workflows/index.ts","../src/pricing/workflows/update-price-preferences.ts","../src/product/index.ts","../src/product/helpers/normalize-for-export.ts","../src/product/helpers/normalize-for-import.ts","../src/product/helpers/normalize-v1-import.ts","../src/product/helpers/product-export-keys.ts","../src/product/helpers/__tests__/normalize-for-import.spec.ts","../src/product/steps/add-image-to-variants.ts","../src/product/steps/add-images-to-variant.ts","../src/product/steps/add-product-options-to-product.ts","../src/product/steps/batch-link-products-collection.ts","../src/product/steps/batch-link-products-in-category.ts","../src/product/steps/create-collections.ts","../src/product/steps/create-product-options.ts","../src/product/steps/create-product-tags.ts","../src/product/steps/create-product-types.ts","../src/product/steps/create-product-variants.ts","../src/product/steps/create-products.ts","../src/product/steps/create-variant-pricing-link.ts","../src/product/steps/delete-collections.ts","../src/product/steps/delete-product-option-values.ts","../src/product/steps/delete-product-options.ts","../src/product/steps/delete-product-tags.ts","../src/product/steps/delete-product-types.ts","../src/product/steps/delete-product-variants.ts","../src/product/steps/delete-products.ts","../src/product/steps/dismiss-product-variants-inventory.ts","../src/product/steps/export-products.ts","../src/product/steps/generate-product-csv.ts","../src/product/steps/get-all-products.ts","../src/product/steps/get-variant-availability.ts","../src/product/steps/get-variant-pricing-link.ts","../src/product/steps/index.ts","../src/product/steps/normalize-products-to-chunks.ts","../src/product/steps/normalize-products.ts","../src/product/steps/parse-product-csv.ts","../src/product/steps/process-import-chunks.ts","../src/product/steps/process-product-options-for-import.ts","../src/product/steps/remove-image-from-variants.ts","../src/product/steps/remove-images-from-variant.ts","../src/product/steps/remove-product-options-from-product.ts","../src/product/steps/update-collections.ts","../src/product/steps/update-product-option-values-on-product.ts","../src/product/steps/update-product-option-values.ts","../src/product/steps/update-product-options.ts","../src/product/steps/update-product-tags.ts","../src/product/steps/update-product-types.ts","../src/product/steps/update-product-variants.ts","../src/product/steps/update-products.ts","../src/product/steps/wait-confirmation-product-import.ts","../src/product/steps/__tests__/process-product-options-for-import.spec.ts","../src/product/utils/csvtojson.ts","../src/product/utils/index.ts","../src/product/utils/jsontocsv.ts","../src/product/workflows/batch-image-variants.ts","../src/product/workflows/batch-link-products-collection.ts","../src/product/workflows/batch-product-variants.ts","../src/product/workflows/batch-products-in-category.ts","../src/product/workflows/batch-products.ts","../src/product/workflows/batch-variant-images.ts","../src/product/workflows/create-and-link-product-options-to-product.ts","../src/product/workflows/create-collections.ts","../src/product/workflows/create-product-options.ts","../src/product/workflows/create-product-tags.ts","../src/product/workflows/create-product-types.ts","../src/product/workflows/create-product-variants.ts","../src/product/workflows/create-products.ts","../src/product/workflows/delete-collections.ts","../src/product/workflows/delete-product-option-values.ts","../src/product/workflows/delete-product-options.ts","../src/product/workflows/delete-product-tags.ts","../src/product/workflows/delete-product-types.ts","../src/product/workflows/delete-product-variants.ts","../src/product/workflows/delete-products.ts","../src/product/workflows/export-products.ts","../src/product/workflows/import-products-as-chunks.ts","../src/product/workflows/import-products.ts","../src/product/workflows/index.ts","../src/product/workflows/set-product-product-options.ts","../src/product/workflows/update-collections.ts","../src/product/workflows/update-product-option-values.ts","../src/product/workflows/update-product-options.ts","../src/product/workflows/update-product-tags.ts","../src/product/workflows/update-product-types.ts","../src/product/workflows/update-product-variants.ts","../src/product/workflows/update-products.ts","../src/product/workflows/upsert-variant-prices.ts","../src/product-category/index.ts","../src/product-category/steps/create-product-categories.ts","../src/product-category/steps/delete-product-categories.ts","../src/product-category/steps/index.ts","../src/product-category/steps/update-product-categories.ts","../src/product-category/workflows/create-product-categories.ts","../src/product-category/workflows/delete-product-categories.ts","../src/product-category/workflows/index.ts","../src/product-category/workflows/update-product-categories.ts","../src/promotion/index.ts","../src/promotion/steps/add-campaign-promotions.ts","../src/promotion/steps/add-or-remove-campaign-promotions.ts","../src/promotion/steps/add-rules-to-promotions.ts","../src/promotion/steps/create-campaigns.ts","../src/promotion/steps/create-promotions.ts","../src/promotion/steps/delete-campaigns.ts","../src/promotion/steps/delete-promotion-rules-workflow.ts","../src/promotion/steps/delete-promotions.ts","../src/promotion/steps/index.ts","../src/promotion/steps/register-usage.ts","../src/promotion/steps/remove-campaign-promotions.ts","../src/promotion/steps/remove-rules-from-promotions.ts","../src/promotion/steps/update-campaigns.ts","../src/promotion/steps/update-promotion-rules.ts","../src/promotion/steps/update-promotions.ts","../src/promotion/workflows/add-or-remove-campaign-promotions.ts","../src/promotion/workflows/batch-promotion-rules.ts","../src/promotion/workflows/create-campaigns.ts","../src/promotion/workflows/create-promotion-rules.ts","../src/promotion/workflows/create-promotions.ts","../src/promotion/workflows/delete-campaigns.ts","../src/promotion/workflows/delete-promotion-rules.ts","../src/promotion/workflows/delete-promotions.ts","../src/promotion/workflows/index.ts","../src/promotion/workflows/update-campaigns.ts","../src/promotion/workflows/update-promotion-rules.ts","../src/promotion/workflows/update-promotions-status.ts","../src/promotion/workflows/update-promotions.ts","../src/rbac/index.ts","../src/rbac/steps/create-rbac-policies.ts","../src/rbac/steps/create-rbac-role-parents.ts","../src/rbac/steps/create-rbac-role-policies.ts","../src/rbac/steps/create-rbac-roles.ts","../src/rbac/steps/delete-rbac-policies.ts","../src/rbac/steps/delete-rbac-role-policies.ts","../src/rbac/steps/delete-rbac-roles.ts","../src/rbac/steps/index.ts","../src/rbac/steps/set-role-parent.ts","../src/rbac/steps/update-rbac-policies.ts","../src/rbac/steps/update-rbac-role-policies.ts","../src/rbac/steps/update-rbac-roles.ts","../src/rbac/steps/validate-user-permissions.ts","../src/rbac/workflows/create-rbac-policies.ts","../src/rbac/workflows/create-rbac-role-policies.ts","../src/rbac/workflows/create-rbac-roles.ts","../src/rbac/workflows/delete-rbac-policies.ts","../src/rbac/workflows/delete-rbac-role-policies.ts","../src/rbac/workflows/delete-rbac-roles.ts","../src/rbac/workflows/index.ts","../src/rbac/workflows/update-rbac-policies.ts","../src/rbac/workflows/update-rbac-role-policies.ts","../src/rbac/workflows/update-rbac-roles.ts","../src/region/index.ts","../src/region/steps/create-regions.ts","../src/region/steps/delete-regions.ts","../src/region/steps/index.ts","../src/region/steps/set-regions-payment-providers.ts","../src/region/steps/update-regions.ts","../src/region/workflows/create-regions.ts","../src/region/workflows/delete-regions.ts","../src/region/workflows/index.ts","../src/region/workflows/update-regions.ts","../src/reservation/index.ts","../src/reservation/steps/create-reservations.ts","../src/reservation/steps/delete-reservations-by-line-items.ts","../src/reservation/steps/delete-reservations.ts","../src/reservation/steps/index.ts","../src/reservation/steps/update-reservations.ts","../src/reservation/workflows/create-reservations.ts","../src/reservation/workflows/delete-reservations-by-line-items.ts","../src/reservation/workflows/delete-reservations.ts","../src/reservation/workflows/index.ts","../src/reservation/workflows/update-reservations.ts","../src/return-reason/index.ts","../src/return-reason/steps/create-return-reasons.ts","../src/return-reason/steps/delete-return-reasons.ts","../src/return-reason/steps/index.ts","../src/return-reason/steps/update-return-reasons.ts","../src/return-reason/workflows/create-return-reasons.ts","../src/return-reason/workflows/delete-return-reasons.ts","../src/return-reason/workflows/index.ts","../src/return-reason/workflows/update-return-reasons.ts","../src/sales-channel/index.ts","../src/sales-channel/steps/associate-locations-with-channels.ts","../src/sales-channel/steps/associate-products-with-channels.ts","../src/sales-channel/steps/can-delete-sales-channels.ts","../src/sales-channel/steps/create-default-sales-channel.ts","../src/sales-channel/steps/create-sales-channels.ts","../src/sales-channel/steps/delete-sales-channels.ts","../src/sales-channel/steps/detach-locations-from-channels.ts","../src/sales-channel/steps/detach-products-from-sales-channels.ts","../src/sales-channel/steps/index.ts","../src/sales-channel/steps/update-sales-channels.ts","../src/sales-channel/workflows/create-sales-channels.ts","../src/sales-channel/workflows/delete-sales-channels.ts","../src/sales-channel/workflows/index.ts","../src/sales-channel/workflows/link-products-to-sales-channel.ts","../src/sales-channel/workflows/update-sales-channels.ts","../src/search/index.ts","../src/search/steps/index.ts","../src/search/steps/reindex-search-indexes.ts","../src/search/steps/validate-search-indexes-exist.ts","../src/search/workflows/index.ts","../src/search/workflows/reindex-search-indexes.ts","../src/settings/index.ts","../src/settings/steps/clear-layout-configuration.ts","../src/settings/steps/create-property-label.ts","../src/settings/steps/create-view-configuration.ts","../src/settings/steps/delete-property-labels.ts","../src/settings/steps/index.ts","../src/settings/steps/set-active-layout-scope.ts","../src/settings/steps/set-active-view-configuration.ts","../src/settings/steps/set-layout-configuration.ts","../src/settings/steps/update-property-label.ts","../src/settings/steps/update-view-configuration.ts","../src/settings/workflows/batch-property-labels.ts","../src/settings/workflows/clear-layout-configuration.ts","../src/settings/workflows/create-property-label.ts","../src/settings/workflows/create-view-configuration.ts","../src/settings/workflows/delete-property-labels.ts","../src/settings/workflows/index.ts","../src/settings/workflows/set-layout-configuration.ts","../src/settings/workflows/update-property-label.ts","../src/settings/workflows/update-view-configuration.ts","../src/shipping-options/index.ts","../src/shipping-options/steps/create-shipping-option-types.ts","../src/shipping-options/steps/delete-shipping-option-types.ts","../src/shipping-options/steps/index.ts","../src/shipping-options/steps/list-shipping-options-for-context.ts","../src/shipping-options/steps/update-shipping-option-types.ts","../src/shipping-options/workflows/create-shipping-option-types.ts","../src/shipping-options/workflows/delete-shipping-option-types.ts","../src/shipping-options/workflows/index.ts","../src/shipping-options/workflows/update-shipping-option-types.ts","../src/shipping-profile/index.ts","../src/shipping-profile/steps/delete-shipping-profile.ts","../src/shipping-profile/steps/index.ts","../src/shipping-profile/workflows/delete-shipping-profile.ts","../src/shipping-profile/workflows/index.ts","../src/stock-location/index.ts","../src/stock-location/steps/associate-locations-with-fulfillment-sets.ts","../src/stock-location/steps/create-stock-locations.ts","../src/stock-location/steps/delete-stock-locations.ts","../src/stock-location/steps/index.ts","../src/stock-location/steps/update-stock-locations.ts","../src/stock-location/steps/upsert-stock-location-addresses.ts","../src/stock-location/workflows/create-location-fulfillment-set.ts","../src/stock-location/workflows/create-stock-locations.ts","../src/stock-location/workflows/delete-stock-locations.ts","../src/stock-location/workflows/index.ts","../src/stock-location/workflows/link-sales-channels-to-stock-location.ts","../src/stock-location/workflows/update-stock-locations.ts","../src/store/index.ts","../src/store/steps/create-stores.ts","../src/store/steps/delete-stores.ts","../src/store/steps/index.ts","../src/store/steps/update-stores.ts","../src/store/workflows/create-stores.ts","../src/store/workflows/delete-stores.ts","../src/store/workflows/index.ts","../src/store/workflows/update-stores.ts","../src/tax/index.ts","../src/tax/steps/create-tax-rate-rules.ts","../src/tax/steps/create-tax-rates.ts","../src/tax/steps/create-tax-regions.ts","../src/tax/steps/delete-tax-rate-rules.ts","../src/tax/steps/delete-tax-rates.ts","../src/tax/steps/delete-tax-regions.ts","../src/tax/steps/get-item-tax-lines.ts","../src/tax/steps/index.ts","../src/tax/steps/list-tax-rate-ids.ts","../src/tax/steps/list-tax-rate-rule-ids.ts","../src/tax/steps/update-tax-rates.ts","../src/tax/steps/update-tax-regions.ts","../src/tax/workflows/create-tax-rate-rules.ts","../src/tax/workflows/create-tax-rates.ts","../src/tax/workflows/create-tax-regions.ts","../src/tax/workflows/delete-tax-rate-rules.ts","../src/tax/workflows/delete-tax-rates.ts","../src/tax/workflows/delete-tax-regions.ts","../src/tax/workflows/index.ts","../src/tax/workflows/set-tax-rate-rules.ts","../src/tax/workflows/update-tax-rates.ts","../src/tax/workflows/update-tax-regions.ts","../src/translation/index.ts","../src/translation/steps/create-translation-settings.ts","../src/translation/steps/create-translations.ts","../src/translation/steps/delete-translation-settings.ts","../src/translation/steps/delete-translations.ts","../src/translation/steps/index.ts","../src/translation/steps/update-translation-settings.ts","../src/translation/steps/update-translations.ts","../src/translation/steps/validate-translations.ts","../src/translation/workflows/batch-translation-settings.ts","../src/translation/workflows/batch-translations.ts","../src/translation/workflows/create-translations.ts","../src/translation/workflows/delete-translations.ts","../src/translation/workflows/index.ts","../src/translation/workflows/update-translations.ts","../src/user/index.ts","../src/user/steps/create-users.ts","../src/user/steps/delete-users.ts","../src/user/steps/get-assignable-policies.ts","../src/user/steps/get-assignable-roles.ts","../src/user/steps/index.ts","../src/user/steps/update-users.ts","../src/user/steps/validate-user-role-permissions.ts","../src/user/workflows/assign-user-roles.ts","../src/user/workflows/create-user-account.ts","../src/user/workflows/create-users.ts","../src/user/workflows/delete-users.ts","../src/user/workflows/get-assignable-policies.ts","../src/user/workflows/get-assignable-roles.ts","../src/user/workflows/index.ts","../src/user/workflows/remove-user-account.ts","../src/user/workflows/remove-user-roles.ts","../src/user/workflows/update-users.ts"],"version":"5.9.3"}
1
+ {"root":["../src/index.ts","../src/api-key/index.ts","../src/api-key/steps/create-api-keys.ts","../src/api-key/steps/delete-api-keys.ts","../src/api-key/steps/index.ts","../src/api-key/steps/link-sales-channels-to-publishable-key.ts","../src/api-key/steps/revoke-api-keys.ts","../src/api-key/steps/update-api-keys.ts","../src/api-key/steps/validate-sales-channel-exists.ts","../src/api-key/workflows/create-api-keys.ts","../src/api-key/workflows/delete-api-keys.ts","../src/api-key/workflows/index.ts","../src/api-key/workflows/link-sales-channels-to-publishable-key.ts","../src/api-key/workflows/revoke-api-keys.ts","../src/api-key/workflows/update-api-keys.ts","../src/auth/index.ts","../src/auth/steps/create-password-reset-token.ts","../src/auth/steps/delete-auth-identity.ts","../src/auth/steps/index.ts","../src/auth/steps/request-verification.ts","../src/auth/steps/set-auth-app-metadata.ts","../src/auth/workflows/generate-reset-password-token.ts","../src/auth/workflows/index.ts","../src/auth/workflows/request-verification.ts","../src/auth/workflows/set-auth-app-metadata.ts","../src/cart/index.ts","../src/cart/steps/add-shipping-method-to-cart.ts","../src/cart/steps/compensate-payment-if-needed.ts","../src/cart/steps/confirm-inventory.ts","../src/cart/steps/create-carts.ts","../src/cart/steps/create-line-item-adjustments.ts","../src/cart/steps/create-line-items.ts","../src/cart/steps/create-payment-collection.ts","../src/cart/steps/create-shipping-method-adjustments.ts","../src/cart/steps/find-one-or-any-region.ts","../src/cart/steps/find-or-create-customer.ts","../src/cart/steps/find-sales-channel.ts","../src/cart/steps/get-actions-to-compute-from-promotions.ts","../src/cart/steps/get-line-item-actions.ts","../src/cart/steps/get-line-item-pricing-quantities.ts","../src/cart/steps/get-promotion-codes-to-apply.ts","../src/cart/steps/get-variant-price-sets.ts","../src/cart/steps/get-variants.ts","../src/cart/steps/index.ts","../src/cart/steps/prepare-adjustments-from-promotion-actions.ts","../src/cart/steps/remove-line-item-adjustments.ts","../src/cart/steps/remove-shipping-method-adjustments.ts","../src/cart/steps/remove-shipping-method-from-cart.ts","../src/cart/steps/reserve-inventory.ts","../src/cart/steps/retrieve-cart.ts","../src/cart/steps/set-tax-lines-for-items.ts","../src/cart/steps/update-cart-items-translations.ts","../src/cart/steps/update-cart-promotions.ts","../src/cart/steps/update-carts.ts","../src/cart/steps/update-line-items.ts","../src/cart/steps/update-shipping-methods.ts","../src/cart/steps/upsert-tax-lines-for-items.ts","../src/cart/steps/validate-cart-items.ts","../src/cart/steps/validate-cart-payments.ts","../src/cart/steps/validate-cart-shipping-options.ts","../src/cart/steps/validate-cart.ts","../src/cart/steps/validate-line-item-prices.ts","../src/cart/steps/validate-sales-channel.ts","../src/cart/steps/validate-shipping-methods-data.ts","../src/cart/steps/validate-shipping-options-price.ts","../src/cart/steps/validate-shipping.ts","../src/cart/steps/validate-variant-prices.ts","../src/cart/utils/fields.ts","../src/cart/utils/filter-items-by-shipping-profile.ts","../src/cart/utils/find-matching-line-item.ts","../src/cart/utils/prepare-confirm-inventory-input.ts","../src/cart/utils/prepare-line-item-data.ts","../src/cart/utils/schemas.ts","../src/cart/utils/__tests__/prepare-confirm-inventory-input.spec.ts","../src/cart/workflows/add-shipping-method-to-cart.ts","../src/cart/workflows/add-to-cart.ts","../src/cart/workflows/complete-cart.ts","../src/cart/workflows/confirm-variant-inventory.ts","../src/cart/workflows/create-cart-credit-lines.ts","../src/cart/workflows/create-carts.ts","../src/cart/workflows/create-payment-collection-for-cart.ts","../src/cart/workflows/delete-cart-credit-lines.ts","../src/cart/workflows/get-variants-and-items-with-prices.ts","../src/cart/workflows/index.ts","../src/cart/workflows/list-shipping-options-for-cart-with-pricing.ts","../src/cart/workflows/list-shipping-options-for-cart.ts","../src/cart/workflows/refresh-cart-items.ts","../src/cart/workflows/refresh-cart-shipping-methods.ts","../src/cart/workflows/refresh-payment-collection.ts","../src/cart/workflows/refund-payment-recreate-payment-session.ts","../src/cart/workflows/transfer-cart-customer.ts","../src/cart/workflows/update-cart-promotions.ts","../src/cart/workflows/update-cart.ts","../src/cart/workflows/update-line-item-in-cart.ts","../src/cart/workflows/update-tax-lines.ts","../src/cart/workflows/upsert-tax-lines.ts","../src/common/index.ts","../src/common/steps/create-entities.ts","../src/common/steps/create-remote-links.ts","../src/common/steps/delete-entities.ts","../src/common/steps/dismiss-remote-links.ts","../src/common/steps/emit-event.ts","../src/common/steps/get-translated-line-items.ts","../src/common/steps/get-translated-shipping-option.ts","../src/common/steps/get-translated-tax-lines.ts","../src/common/steps/release-event.ts","../src/common/steps/remove-remote-links.ts","../src/common/steps/update-remote-links.ts","../src/common/steps/use-query-graph.ts","../src/common/steps/use-remote-query.ts","../src/common/steps/validate-presence-of.ts","../src/common/steps/__fixtures__/remote-query.ts","../src/common/steps/__tests__/use-query-graph-step.spec.ts","../src/common/utils/apply-translations-to-items.ts","../src/common/utils/fields.ts","../src/common/workflows/batch-links.ts","../src/common/workflows/create-links.ts","../src/common/workflows/dismiss-links.ts","../src/common/workflows/update-links.ts","../src/customer/index.ts","../src/customer/steps/create-addresses.ts","../src/customer/steps/create-customers.ts","../src/customer/steps/delete-addresses.ts","../src/customer/steps/delete-customers.ts","../src/customer/steps/index.ts","../src/customer/steps/maybe-unset-default-billing-addresses.ts","../src/customer/steps/maybe-unset-default-shipping-addresses.ts","../src/customer/steps/update-addresses.ts","../src/customer/steps/update-customers.ts","../src/customer/steps/validate-customer-account-creation.ts","../src/customer/steps/utils/index.ts","../src/customer/steps/utils/unset-address-for-create.ts","../src/customer/steps/utils/unset-address-for-update.ts","../src/customer/workflows/create-addresses.ts","../src/customer/workflows/create-customer-account.ts","../src/customer/workflows/create-customers.ts","../src/customer/workflows/delete-addresses.ts","../src/customer/workflows/delete-customers.ts","../src/customer/workflows/index.ts","../src/customer/workflows/remove-customer-account.ts","../src/customer/workflows/update-addresses.ts","../src/customer/workflows/update-customers.ts","../src/customer-group/index.ts","../src/customer-group/steps/create-customer-groups.ts","../src/customer-group/steps/delete-customer-group-customers.ts","../src/customer-group/steps/delete-customer-groups.ts","../src/customer-group/steps/index.ts","../src/customer-group/steps/link-customer-groups-customer.ts","../src/customer-group/steps/link-customers-customer-group.ts","../src/customer-group/steps/update-customer-groups.ts","../src/customer-group/workflows/create-customer-groups.ts","../src/customer-group/workflows/delete-customer-groups.ts","../src/customer-group/workflows/index.ts","../src/customer-group/workflows/link-customer-groups-customer.ts","../src/customer-group/workflows/link-customers-customer-group.ts","../src/customer-group/workflows/update-customer-groups.ts","../src/defaults/index.ts","../src/defaults/steps/create-default-store.ts","../src/defaults/steps/index.ts","../src/defaults/workflows/create-defaults.ts","../src/defaults/workflows/index.ts","../src/draft-order/index.ts","../src/draft-order/steps/create-draft-order-line-item-adjustments.ts","../src/draft-order/steps/create-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/delete-draft-order.ts","../src/draft-order/steps/get-draft-order-promotion-context.ts","../src/draft-order/steps/index.ts","../src/draft-order/steps/remove-draft-order-line-item-adjustments.ts","../src/draft-order/steps/remove-draft-order-shipping-method-adjustments.ts","../src/draft-order/steps/restore-draft-order-shipping-methods.ts","../src/draft-order/steps/update-draft-order-promotions.ts","../src/draft-order/steps/update-draft-order-shipping-metod.ts","../src/draft-order/steps/validate-draft-order-change.ts","../src/draft-order/steps/validate-draft-order-remove-action-item.ts","../src/draft-order/steps/validate-draft-order-shipping-method-action.ts","../src/draft-order/steps/validate-draft-order-update-action-item.ts","../src/draft-order/steps/validate-draft-order.ts","../src/draft-order/steps/validate-promo-codes-to-add.ts","../src/draft-order/steps/validate-promo-codes-to-remove.ts","../src/draft-order/utils/enrich-preview-line-items-for-shipping-price-calculation.ts","../src/draft-order/utils/fields.ts","../src/draft-order/utils/validation.ts","../src/draft-order/workflows/add-draft-order-items.ts","../src/draft-order/workflows/add-draft-order-promotions.ts","../src/draft-order/workflows/add-draft-order-shipping-methods.ts","../src/draft-order/workflows/begin-draft-order-edit.ts","../src/draft-order/workflows/cancel-draft-order-edit.ts","../src/draft-order/workflows/compute-draft-order-adjustments.ts","../src/draft-order/workflows/confirm-draft-order-edit.ts","../src/draft-order/workflows/convert-draft-order.ts","../src/draft-order/workflows/delete-draft-order.ts","../src/draft-order/workflows/fetch-draft-order-shipping-option.ts","../src/draft-order/workflows/index.ts","../src/draft-order/workflows/refresh-confirmed-draft-order-shipping-methods.ts","../src/draft-order/workflows/refresh-draft-order-adjustments.ts","../src/draft-order/workflows/refresh-pending-draft-order-shipping-methods.ts","../src/draft-order/workflows/remove-draft-order-action-item.ts","../src/draft-order/workflows/remove-draft-order-action-shipping-method.ts","../src/draft-order/workflows/remove-draft-order-promotions.ts","../src/draft-order/workflows/remove-draft-order-shipping-method.ts","../src/draft-order/workflows/request-draft-order-edit.ts","../src/draft-order/workflows/update-draft-order-action-item.ts","../src/draft-order/workflows/update-draft-order-action-shipping-method.ts","../src/draft-order/workflows/update-draft-order-item.ts","../src/draft-order/workflows/update-draft-order-shipping-method.ts","../src/draft-order/workflows/update-draft-order.ts","../src/file/index.ts","../src/file/steps/delete-files.ts","../src/file/steps/index.ts","../src/file/steps/upload-files.ts","../src/file/workflows/delete-files.ts","../src/file/workflows/index.ts","../src/file/workflows/upload-files.ts","../src/fulfillment/index.ts","../src/fulfillment/steps/add-shipping-options-prices.ts","../src/fulfillment/steps/calculate-shipping-options-prices.ts","../src/fulfillment/steps/cancel-fulfillment.ts","../src/fulfillment/steps/create-fulfillment-set.ts","../src/fulfillment/steps/create-fulfillment.ts","../src/fulfillment/steps/create-return-fulfillment.ts","../src/fulfillment/steps/create-service-zones.ts","../src/fulfillment/steps/create-shipping-option-rules.ts","../src/fulfillment/steps/create-shipping-profiles.ts","../src/fulfillment/steps/delete-fulfillment-sets.ts","../src/fulfillment/steps/delete-service-zones.ts","../src/fulfillment/steps/delete-shipping-option-rules.ts","../src/fulfillment/steps/delete-shipping-options.ts","../src/fulfillment/steps/index.ts","../src/fulfillment/steps/set-shipping-options-price-sets.ts","../src/fulfillment/steps/set-shipping-options-prices.ts","../src/fulfillment/steps/update-fulfillment.ts","../src/fulfillment/steps/update-service-zones.ts","../src/fulfillment/steps/update-shipping-option-rules.ts","../src/fulfillment/steps/update-shipping-profiles.ts","../src/fulfillment/steps/upsert-shipping-options.ts","../src/fulfillment/steps/validate-fulfillment-providers.ts","../src/fulfillment/steps/validate-shipment.ts","../src/fulfillment/steps/validate-shipping-option-prices.ts","../src/fulfillment/workflows/batch-shipping-option-rules.ts","../src/fulfillment/workflows/calculate-shipping-options-prices.ts","../src/fulfillment/workflows/cancel-fulfillment.ts","../src/fulfillment/workflows/create-fulfillment.ts","../src/fulfillment/workflows/create-return-fulfillment.ts","../src/fulfillment/workflows/create-service-zones.ts","../src/fulfillment/workflows/create-shipment.ts","../src/fulfillment/workflows/create-shipping-options.ts","../src/fulfillment/workflows/create-shipping-profiles.ts","../src/fulfillment/workflows/delete-fulfillment-sets.ts","../src/fulfillment/workflows/delete-service-zones.ts","../src/fulfillment/workflows/delete-shipping-options.ts","../src/fulfillment/workflows/index.ts","../src/fulfillment/workflows/mark-fulfillment-as-delivered.ts","../src/fulfillment/workflows/update-fulfillment.ts","../src/fulfillment/workflows/update-service-zones.ts","../src/fulfillment/workflows/update-shipping-options.ts","../src/fulfillment/workflows/update-shipping-profiles.ts","../src/inventory/index.ts","../src/inventory/helpers/normalize-for-export.ts","../src/inventory/steps/adjust-inventory-levels.ts","../src/inventory/steps/attach-inventory-items.ts","../src/inventory/steps/create-inventory-items.ts","../src/inventory/steps/create-inventory-levels.ts","../src/inventory/steps/delete-inventory-items.ts","../src/inventory/steps/delete-inventory-levels.ts","../src/inventory/steps/export-inventory-items.ts","../src/inventory/steps/index.ts","../src/inventory/steps/update-inventory-items.ts","../src/inventory/steps/update-inventory-levels.ts","../src/inventory/steps/validate-inventory-items.ts","../src/inventory/steps/validate-inventory-locations.ts","../src/inventory/steps/validate-singular-inventory-items-for-tags.ts","../src/inventory/workflows/batch-inventory-item-levels.ts","../src/inventory/workflows/bulk-create-delete-levels.ts","../src/inventory/workflows/create-inventory-items.ts","../src/inventory/workflows/create-inventory-levels.ts","../src/inventory/workflows/delete-inventory-items.ts","../src/inventory/workflows/delete-inventory-levels.ts","../src/inventory/workflows/export-inventory-items.ts","../src/inventory/workflows/index.ts","../src/inventory/workflows/update-inventory-items.ts","../src/inventory/workflows/update-inventory-levels.ts","../src/invite/index.ts","../src/invite/steps/create-invites.ts","../src/invite/steps/delete-invites.ts","../src/invite/steps/get-invite-roles.ts","../src/invite/steps/index.ts","../src/invite/steps/refresh-invite-tokens.ts","../src/invite/steps/validate-roles-exist.ts","../src/invite/steps/validate-token.ts","../src/invite/workflows/accept-invite.ts","../src/invite/workflows/create-invites.ts","../src/invite/workflows/delete-invites.ts","../src/invite/workflows/index.ts","../src/invite/workflows/refresh-invite-tokens.ts","../src/line-item/index.ts","../src/line-item/steps/delete-line-items.ts","../src/line-item/steps/index.ts","../src/line-item/steps/list-line-items.ts","../src/line-item/steps/update-line-items.ts","../src/line-item/workflows/delete-line-items.ts","../src/line-item/workflows/index.ts","../src/locking/index.ts","../src/locking/steps/acquire-lock.ts","../src/locking/steps/release-lock.ts","../src/notification/index.ts","../src/notification/steps/index.ts","../src/notification/steps/notify-on-failure.ts","../src/notification/steps/send-notifications.ts","../src/order/index.ts","../src/order/steps/add-order-transaction.ts","../src/order/steps/archive-orders.ts","../src/order/steps/cancel-fulfillment.ts","../src/order/steps/cancel-order-change.ts","../src/order/steps/cancel-orders.ts","../src/order/steps/complete-orders.ts","../src/order/steps/confirm-order-changes.ts","../src/order/steps/create-line-items.ts","../src/order/steps/create-order-change.ts","../src/order/steps/create-order-shipping-methods.ts","../src/order/steps/create-orders.ts","../src/order/steps/decline-order-change.ts","../src/order/steps/delete-line-items.ts","../src/order/steps/delete-order-change-actions.ts","../src/order/steps/delete-order-changes.ts","../src/order/steps/delete-order-shipping-methods.ts","../src/order/steps/export-orders.ts","../src/order/steps/index.ts","../src/order/steps/list-order-change-actions-by-type.ts","../src/order/steps/preview-order-change.ts","../src/order/steps/register-delivery.ts","../src/order/steps/register-fulfillment.ts","../src/order/steps/register-order-changes.ts","../src/order/steps/register-shipment.ts","../src/order/steps/set-tax-lines-for-items.ts","../src/order/steps/update-order-change-actions.ts","../src/order/steps/update-order-changes.ts","../src/order/steps/update-order-items-translations.ts","../src/order/steps/update-order-shipping-methods-translations.ts","../src/order/steps/update-order-tax-lines-translations.ts","../src/order/steps/update-orders.ts","../src/order/steps/update-shipping-methods.ts","../src/order/steps/claim/cancel-claim.ts","../src/order/steps/claim/create-claim-items-from-actions.ts","../src/order/steps/claim/create-claims.ts","../src/order/steps/claim/delete-claims.ts","../src/order/steps/claim/update-order-claims.ts","../src/order/steps/exchange/cancel-exchange.ts","../src/order/steps/exchange/create-exchange-items-from-actions.ts","../src/order/steps/exchange/create-exchange.ts","../src/order/steps/exchange/delete-exchanges.ts","../src/order/steps/exchange/update-order-exchanges.ts","../src/order/steps/return/cancel-return.ts","../src/order/steps/return/create-complete-return.ts","../src/order/steps/return/create-return-items-from-actions.ts","../src/order/steps/return/create-returns.ts","../src/order/steps/return/delete-returns.ts","../src/order/steps/return/receive-return.ts","../src/order/steps/return/update-return-items.ts","../src/order/steps/return/update-returns.ts","../src/order/utils/aggregate-status.ts","../src/order/utils/build-reservations-map.ts","../src/order/utils/fields.ts","../src/order/utils/index.ts","../src/order/utils/order-validation.ts","../src/order/utils/prepare-shipping-method.ts","../src/order/utils/validate-return-reason.ts","../src/order/utils/__tests__/aggregate-status.spec.ts","../src/order/workflows/add-line-items.ts","../src/order/workflows/archive-orders.ts","../src/order/workflows/cancel-order-change.ts","../src/order/workflows/cancel-order-fulfillment.ts","../src/order/workflows/cancel-order.ts","../src/order/workflows/complete-orders.ts","../src/order/workflows/compute-adjustments-for-preview.ts","../src/order/workflows/create-fulfillment.ts","../src/order/workflows/create-or-update-order-payment-collection.ts","../src/order/workflows/create-order-change-actions.ts","../src/order/workflows/create-order-change.ts","../src/order/workflows/create-order-credit-lines.ts","../src/order/workflows/create-order-payment-collection.ts","../src/order/workflows/create-order.ts","../src/order/workflows/create-shipment.ts","../src/order/workflows/decline-order-change.ts","../src/order/workflows/delete-order-change-actions.ts","../src/order/workflows/delete-order-change.ts","../src/order/workflows/delete-order-payment-collection.ts","../src/order/workflows/export-orders.ts","../src/order/workflows/fetch-shipping-option.ts","../src/order/workflows/get-order-detail.ts","../src/order/workflows/get-orders-list.ts","../src/order/workflows/index.ts","../src/order/workflows/list-shipping-options-for-order.ts","../src/order/workflows/mark-order-fulfillment-as-delivered.ts","../src/order/workflows/mark-payment-collection-as-paid.ts","../src/order/workflows/maybe-refresh-shipping-methods.ts","../src/order/workflows/on-carry-promotions-flag-set.ts","../src/order/workflows/update-order-change-actions.ts","../src/order/workflows/update-order-change.ts","../src/order/workflows/update-order-changes.ts","../src/order/workflows/update-order.ts","../src/order/workflows/update-tax-lines.ts","../src/order/workflows/claim/begin-order-claim.ts","../src/order/workflows/claim/cancel-begin-order-claim.ts","../src/order/workflows/claim/cancel-claim.ts","../src/order/workflows/claim/claim-add-new-item.ts","../src/order/workflows/claim/claim-item.ts","../src/order/workflows/claim/claim-request-item-return.ts","../src/order/workflows/claim/confirm-claim-request.ts","../src/order/workflows/claim/create-claim-shipping-method.ts","../src/order/workflows/claim/refresh-shipping.ts","../src/order/workflows/claim/remove-claim-add-item-action.ts","../src/order/workflows/claim/remove-claim-item-action.ts","../src/order/workflows/claim/remove-claim-shipping-method.ts","../src/order/workflows/claim/update-claim-add-item.ts","../src/order/workflows/claim/update-claim-item.ts","../src/order/workflows/claim/update-claim-shipping-method.ts","../src/order/workflows/exchange/begin-order-exchange.ts","../src/order/workflows/exchange/cancel-begin-order-exchange.ts","../src/order/workflows/exchange/cancel-exchange.ts","../src/order/workflows/exchange/confirm-exchange-request.ts","../src/order/workflows/exchange/create-exchange-shipping-method.ts","../src/order/workflows/exchange/exchange-add-new-item.ts","../src/order/workflows/exchange/exchange-request-item-return.ts","../src/order/workflows/exchange/refresh-shipping.ts","../src/order/workflows/exchange/remove-exchange-item-action.ts","../src/order/workflows/exchange/remove-exchange-shipping-method.ts","../src/order/workflows/exchange/update-exchange-add-item.ts","../src/order/workflows/exchange/update-exchange-shipping-method.ts","../src/order/workflows/order-edit/begin-order-edit.ts","../src/order/workflows/order-edit/cancel-begin-order-edit.ts","../src/order/workflows/order-edit/confirm-order-edit-request.ts","../src/order/workflows/order-edit/create-order-edit-shipping-method.ts","../src/order/workflows/order-edit/order-edit-add-new-item.ts","../src/order/workflows/order-edit/order-edit-update-item-quantity.ts","../src/order/workflows/order-edit/remove-order-edit-item-action.ts","../src/order/workflows/order-edit/remove-order-edit-shipping-method.ts","../src/order/workflows/order-edit/request-order-edit.ts","../src/order/workflows/order-edit/update-order-edit-add-item.ts","../src/order/workflows/order-edit/update-order-edit-item-quantity.ts","../src/order/workflows/order-edit/update-order-edit-shipping-method.ts","../src/order/workflows/order-edit/utils/fields.ts","../src/order/workflows/order-edit/utils/prepare-order-compute-action-context.ts","../src/order/workflows/payments/create-order-refund-credit-lines.ts","../src/order/workflows/payments/refund-captured-payments.ts","../src/order/workflows/return/begin-receive-return.ts","../src/order/workflows/return/begin-return.ts","../src/order/workflows/return/cancel-receive-return.ts","../src/order/workflows/return/cancel-request-return.ts","../src/order/workflows/return/cancel-return.ts","../src/order/workflows/return/confirm-receive-return-request.ts","../src/order/workflows/return/confirm-return-request.ts","../src/order/workflows/return/create-complete-return.ts","../src/order/workflows/return/create-return-shipping-method.ts","../src/order/workflows/return/dismiss-item-return-request.ts","../src/order/workflows/return/receive-complete-return.ts","../src/order/workflows/return/receive-item-return-request.ts","../src/order/workflows/return/refresh-shipping.ts","../src/order/workflows/return/remove-item-receive-return-action.ts","../src/order/workflows/return/remove-item-return-action.ts","../src/order/workflows/return/remove-return-shipping-method.ts","../src/order/workflows/return/request-item-return.ts","../src/order/workflows/return/update-receive-item-return-request.ts","../src/order/workflows/return/update-request-item-return.ts","../src/order/workflows/return/update-return-shipping-method.ts","../src/order/workflows/return/update-return.ts","../src/order/workflows/transfer/accept-order-transfer.ts","../src/order/workflows/transfer/cancel-order-transfer.ts","../src/order/workflows/transfer/decline-order-transfer.ts","../src/order/workflows/transfer/request-order-transfer.ts","../src/order/workflows/transfer/transfer-order-to-guest.ts","../src/payment/index.ts","../src/payment/steps/authorize-payment-session.ts","../src/payment/steps/cancel-payment.ts","../src/payment/steps/capture-payment.ts","../src/payment/steps/complete-cart-after-payment.ts","../src/payment/steps/index.ts","../src/payment/steps/refund-payment.ts","../src/payment/steps/refund-payments.ts","../src/payment/workflows/authorize-payment-session-for-order.ts","../src/payment/workflows/capture-payment.ts","../src/payment/workflows/index.ts","../src/payment/workflows/process-payment.ts","../src/payment/workflows/refund-payment.ts","../src/payment/workflows/refund-payments.ts","../src/payment-collection/index.ts","../src/payment-collection/steps/cancel-payment.ts","../src/payment-collection/steps/create-payment-account-holder.ts","../src/payment-collection/steps/create-payment-session.ts","../src/payment-collection/steps/create-refund-reasons.ts","../src/payment-collection/steps/delete-payment-sessions.ts","../src/payment-collection/steps/delete-refund-reasons.ts","../src/payment-collection/steps/index.ts","../src/payment-collection/steps/update-payment-collection.ts","../src/payment-collection/steps/update-refund-reasons.ts","../src/payment-collection/steps/validate-deleted-payment-sessions.ts","../src/payment-collection/steps/validate-payment-provider-in-region.ts","../src/payment-collection/utils/region-payment-providers.ts","../src/payment-collection/workflows/cancel-payment-collection.ts","../src/payment-collection/workflows/create-payment-session.ts","../src/payment-collection/workflows/create-refund-reasons.ts","../src/payment-collection/workflows/delete-payment-sessions.ts","../src/payment-collection/workflows/delete-refund-reasons.ts","../src/payment-collection/workflows/index.ts","../src/payment-collection/workflows/update-refund-reasons.ts","../src/price-list/index.ts","../src/price-list/steps/create-price-list-prices.ts","../src/price-list/steps/create-price-lists.ts","../src/price-list/steps/delete-price-lists.ts","../src/price-list/steps/get-existing-price-lists-price-ids.ts","../src/price-list/steps/index.ts","../src/price-list/steps/remove-price-list-prices.ts","../src/price-list/steps/update-price-list-prices.ts","../src/price-list/steps/update-price-lists.ts","../src/price-list/steps/validate-price-lists.ts","../src/price-list/steps/validate-variant-price-links.ts","../src/price-list/workflows/batch-price-list-prices.ts","../src/price-list/workflows/create-price-list-prices.ts","../src/price-list/workflows/create-price-lists.ts","../src/price-list/workflows/delete-price-lists.ts","../src/price-list/workflows/index.ts","../src/price-list/workflows/remove-price-list-prices.ts","../src/price-list/workflows/update-price-list-prices.ts","../src/price-list/workflows/update-price-lists.ts","../src/pricing/index.ts","../src/pricing/steps/create-price-preferences.ts","../src/pricing/steps/create-price-sets.ts","../src/pricing/steps/delete-price-preferences.ts","../src/pricing/steps/index.ts","../src/pricing/steps/update-price-preferences-as-array.ts","../src/pricing/steps/update-price-preferences.ts","../src/pricing/steps/update-price-sets.ts","../src/pricing/workflows/create-price-preferences.ts","../src/pricing/workflows/delete-price-preferences.ts","../src/pricing/workflows/index.ts","../src/pricing/workflows/update-price-preferences.ts","../src/product/index.ts","../src/product/helpers/normalize-for-export.ts","../src/product/helpers/normalize-for-import.ts","../src/product/helpers/normalize-v1-import.ts","../src/product/helpers/product-export-keys.ts","../src/product/helpers/__tests__/normalize-for-import.spec.ts","../src/product/steps/add-image-to-variants.ts","../src/product/steps/add-images-to-variant.ts","../src/product/steps/add-product-options-to-product.ts","../src/product/steps/batch-link-products-collection.ts","../src/product/steps/batch-link-products-in-category.ts","../src/product/steps/create-collections.ts","../src/product/steps/create-product-options.ts","../src/product/steps/create-product-tags.ts","../src/product/steps/create-product-types.ts","../src/product/steps/create-product-variants-default-inventory.ts","../src/product/steps/create-product-variants.ts","../src/product/steps/create-products.ts","../src/product/steps/create-variant-pricing-link.ts","../src/product/steps/delete-collections.ts","../src/product/steps/delete-product-option-values.ts","../src/product/steps/delete-product-options.ts","../src/product/steps/delete-product-tags.ts","../src/product/steps/delete-product-types.ts","../src/product/steps/delete-product-variants.ts","../src/product/steps/delete-products.ts","../src/product/steps/dismiss-product-variants-inventory.ts","../src/product/steps/export-products.ts","../src/product/steps/generate-product-csv.ts","../src/product/steps/get-all-products.ts","../src/product/steps/get-variant-availability.ts","../src/product/steps/get-variant-pricing-link.ts","../src/product/steps/index.ts","../src/product/steps/normalize-products-to-chunks.ts","../src/product/steps/normalize-products.ts","../src/product/steps/parse-product-csv.ts","../src/product/steps/process-import-chunks.ts","../src/product/steps/process-product-options-for-import.ts","../src/product/steps/remove-image-from-variants.ts","../src/product/steps/remove-images-from-variant.ts","../src/product/steps/remove-product-options-from-product.ts","../src/product/steps/update-collections.ts","../src/product/steps/update-product-option-values-on-product.ts","../src/product/steps/update-product-option-values.ts","../src/product/steps/update-product-options.ts","../src/product/steps/update-product-tags.ts","../src/product/steps/update-product-types.ts","../src/product/steps/update-product-variants.ts","../src/product/steps/update-products.ts","../src/product/steps/wait-confirmation-product-import.ts","../src/product/steps/__tests__/process-product-options-for-import.spec.ts","../src/product/utils/create-default-inventory-item.ts","../src/product/utils/csvtojson.ts","../src/product/utils/index.ts","../src/product/utils/jsontocsv.ts","../src/product/workflows/batch-image-variants.ts","../src/product/workflows/batch-link-products-collection.ts","../src/product/workflows/batch-product-variants.ts","../src/product/workflows/batch-products-in-category.ts","../src/product/workflows/batch-products.ts","../src/product/workflows/batch-variant-images.ts","../src/product/workflows/create-and-link-product-options-to-product.ts","../src/product/workflows/create-collections.ts","../src/product/workflows/create-product-options.ts","../src/product/workflows/create-product-tags.ts","../src/product/workflows/create-product-types.ts","../src/product/workflows/create-product-variants.ts","../src/product/workflows/create-products.ts","../src/product/workflows/delete-collections.ts","../src/product/workflows/delete-product-option-values.ts","../src/product/workflows/delete-product-options.ts","../src/product/workflows/delete-product-tags.ts","../src/product/workflows/delete-product-types.ts","../src/product/workflows/delete-product-variants.ts","../src/product/workflows/delete-products.ts","../src/product/workflows/export-products.ts","../src/product/workflows/import-products-as-chunks.ts","../src/product/workflows/import-products.ts","../src/product/workflows/index.ts","../src/product/workflows/set-product-product-options.ts","../src/product/workflows/update-collections.ts","../src/product/workflows/update-product-option-values.ts","../src/product/workflows/update-product-options.ts","../src/product/workflows/update-product-tags.ts","../src/product/workflows/update-product-types.ts","../src/product/workflows/update-product-variants.ts","../src/product/workflows/update-products.ts","../src/product/workflows/upsert-variant-prices.ts","../src/product-category/index.ts","../src/product-category/steps/create-product-categories.ts","../src/product-category/steps/delete-product-categories.ts","../src/product-category/steps/index.ts","../src/product-category/steps/update-product-categories.ts","../src/product-category/workflows/create-product-categories.ts","../src/product-category/workflows/delete-product-categories.ts","../src/product-category/workflows/index.ts","../src/product-category/workflows/update-product-categories.ts","../src/promotion/index.ts","../src/promotion/steps/add-campaign-promotions.ts","../src/promotion/steps/add-or-remove-campaign-promotions.ts","../src/promotion/steps/add-rules-to-promotions.ts","../src/promotion/steps/create-campaigns.ts","../src/promotion/steps/create-promotions.ts","../src/promotion/steps/delete-campaigns.ts","../src/promotion/steps/delete-promotion-rules-workflow.ts","../src/promotion/steps/delete-promotions.ts","../src/promotion/steps/index.ts","../src/promotion/steps/register-usage.ts","../src/promotion/steps/remove-campaign-promotions.ts","../src/promotion/steps/remove-rules-from-promotions.ts","../src/promotion/steps/update-campaigns.ts","../src/promotion/steps/update-promotion-rules.ts","../src/promotion/steps/update-promotions.ts","../src/promotion/workflows/add-or-remove-campaign-promotions.ts","../src/promotion/workflows/batch-promotion-rules.ts","../src/promotion/workflows/create-campaigns.ts","../src/promotion/workflows/create-promotion-rules.ts","../src/promotion/workflows/create-promotions.ts","../src/promotion/workflows/delete-campaigns.ts","../src/promotion/workflows/delete-promotion-rules.ts","../src/promotion/workflows/delete-promotions.ts","../src/promotion/workflows/index.ts","../src/promotion/workflows/update-campaigns.ts","../src/promotion/workflows/update-promotion-rules.ts","../src/promotion/workflows/update-promotions-status.ts","../src/promotion/workflows/update-promotions.ts","../src/rbac/index.ts","../src/rbac/steps/create-rbac-policies.ts","../src/rbac/steps/create-rbac-role-parents.ts","../src/rbac/steps/create-rbac-role-policies.ts","../src/rbac/steps/create-rbac-roles.ts","../src/rbac/steps/delete-rbac-policies.ts","../src/rbac/steps/delete-rbac-role-policies.ts","../src/rbac/steps/delete-rbac-roles.ts","../src/rbac/steps/index.ts","../src/rbac/steps/set-role-parent.ts","../src/rbac/steps/update-rbac-policies.ts","../src/rbac/steps/update-rbac-role-policies.ts","../src/rbac/steps/update-rbac-roles.ts","../src/rbac/steps/validate-user-permissions.ts","../src/rbac/workflows/create-rbac-policies.ts","../src/rbac/workflows/create-rbac-role-policies.ts","../src/rbac/workflows/create-rbac-roles.ts","../src/rbac/workflows/delete-rbac-policies.ts","../src/rbac/workflows/delete-rbac-role-policies.ts","../src/rbac/workflows/delete-rbac-roles.ts","../src/rbac/workflows/index.ts","../src/rbac/workflows/update-rbac-policies.ts","../src/rbac/workflows/update-rbac-role-policies.ts","../src/rbac/workflows/update-rbac-roles.ts","../src/region/index.ts","../src/region/steps/create-regions.ts","../src/region/steps/delete-regions.ts","../src/region/steps/index.ts","../src/region/steps/set-regions-payment-providers.ts","../src/region/steps/update-regions.ts","../src/region/workflows/create-regions.ts","../src/region/workflows/delete-regions.ts","../src/region/workflows/index.ts","../src/region/workflows/update-regions.ts","../src/reservation/index.ts","../src/reservation/steps/create-reservations.ts","../src/reservation/steps/delete-reservations-by-line-items.ts","../src/reservation/steps/delete-reservations.ts","../src/reservation/steps/index.ts","../src/reservation/steps/update-reservations.ts","../src/reservation/workflows/create-reservations.ts","../src/reservation/workflows/delete-reservations-by-line-items.ts","../src/reservation/workflows/delete-reservations.ts","../src/reservation/workflows/index.ts","../src/reservation/workflows/update-reservations.ts","../src/return-reason/index.ts","../src/return-reason/steps/create-return-reasons.ts","../src/return-reason/steps/delete-return-reasons.ts","../src/return-reason/steps/index.ts","../src/return-reason/steps/update-return-reasons.ts","../src/return-reason/workflows/create-return-reasons.ts","../src/return-reason/workflows/delete-return-reasons.ts","../src/return-reason/workflows/index.ts","../src/return-reason/workflows/update-return-reasons.ts","../src/sales-channel/index.ts","../src/sales-channel/steps/associate-locations-with-channels.ts","../src/sales-channel/steps/associate-products-with-channels.ts","../src/sales-channel/steps/can-delete-sales-channels.ts","../src/sales-channel/steps/create-default-sales-channel.ts","../src/sales-channel/steps/create-sales-channels.ts","../src/sales-channel/steps/delete-sales-channels.ts","../src/sales-channel/steps/detach-locations-from-channels.ts","../src/sales-channel/steps/detach-products-from-sales-channels.ts","../src/sales-channel/steps/index.ts","../src/sales-channel/steps/update-sales-channels.ts","../src/sales-channel/workflows/create-sales-channels.ts","../src/sales-channel/workflows/delete-sales-channels.ts","../src/sales-channel/workflows/index.ts","../src/sales-channel/workflows/link-products-to-sales-channel.ts","../src/sales-channel/workflows/update-sales-channels.ts","../src/search/index.ts","../src/search/steps/index.ts","../src/search/steps/reindex-search-indexes.ts","../src/search/steps/validate-search-indexes-exist.ts","../src/search/workflows/index.ts","../src/search/workflows/reindex-search-indexes.ts","../src/settings/index.ts","../src/settings/steps/clear-layout-configuration.ts","../src/settings/steps/create-property-label.ts","../src/settings/steps/create-view-configuration.ts","../src/settings/steps/delete-property-labels.ts","../src/settings/steps/index.ts","../src/settings/steps/set-active-layout-scope.ts","../src/settings/steps/set-active-view-configuration.ts","../src/settings/steps/set-layout-configuration.ts","../src/settings/steps/update-property-label.ts","../src/settings/steps/update-view-configuration.ts","../src/settings/workflows/batch-property-labels.ts","../src/settings/workflows/clear-layout-configuration.ts","../src/settings/workflows/create-property-label.ts","../src/settings/workflows/create-view-configuration.ts","../src/settings/workflows/delete-property-labels.ts","../src/settings/workflows/index.ts","../src/settings/workflows/set-layout-configuration.ts","../src/settings/workflows/update-property-label.ts","../src/settings/workflows/update-view-configuration.ts","../src/shipping-options/index.ts","../src/shipping-options/steps/create-shipping-option-types.ts","../src/shipping-options/steps/delete-shipping-option-types.ts","../src/shipping-options/steps/index.ts","../src/shipping-options/steps/list-shipping-options-for-context.ts","../src/shipping-options/steps/update-shipping-option-types.ts","../src/shipping-options/workflows/create-shipping-option-types.ts","../src/shipping-options/workflows/delete-shipping-option-types.ts","../src/shipping-options/workflows/index.ts","../src/shipping-options/workflows/update-shipping-option-types.ts","../src/shipping-profile/index.ts","../src/shipping-profile/steps/delete-shipping-profile.ts","../src/shipping-profile/steps/index.ts","../src/shipping-profile/workflows/delete-shipping-profile.ts","../src/shipping-profile/workflows/index.ts","../src/stock-location/index.ts","../src/stock-location/steps/associate-locations-with-fulfillment-sets.ts","../src/stock-location/steps/create-stock-locations.ts","../src/stock-location/steps/delete-stock-locations.ts","../src/stock-location/steps/index.ts","../src/stock-location/steps/update-stock-locations.ts","../src/stock-location/steps/upsert-stock-location-addresses.ts","../src/stock-location/workflows/create-location-fulfillment-set.ts","../src/stock-location/workflows/create-stock-locations.ts","../src/stock-location/workflows/delete-stock-locations.ts","../src/stock-location/workflows/index.ts","../src/stock-location/workflows/link-sales-channels-to-stock-location.ts","../src/stock-location/workflows/update-stock-locations.ts","../src/store/index.ts","../src/store/steps/create-stores.ts","../src/store/steps/delete-stores.ts","../src/store/steps/index.ts","../src/store/steps/update-stores.ts","../src/store/workflows/create-stores.ts","../src/store/workflows/delete-stores.ts","../src/store/workflows/index.ts","../src/store/workflows/update-stores.ts","../src/tax/index.ts","../src/tax/steps/create-tax-rate-rules.ts","../src/tax/steps/create-tax-rates.ts","../src/tax/steps/create-tax-regions.ts","../src/tax/steps/delete-tax-rate-rules.ts","../src/tax/steps/delete-tax-rates.ts","../src/tax/steps/delete-tax-regions.ts","../src/tax/steps/get-item-tax-lines.ts","../src/tax/steps/index.ts","../src/tax/steps/list-tax-rate-ids.ts","../src/tax/steps/list-tax-rate-rule-ids.ts","../src/tax/steps/update-tax-rates.ts","../src/tax/steps/update-tax-regions.ts","../src/tax/workflows/create-tax-rate-rules.ts","../src/tax/workflows/create-tax-rates.ts","../src/tax/workflows/create-tax-regions.ts","../src/tax/workflows/delete-tax-rate-rules.ts","../src/tax/workflows/delete-tax-rates.ts","../src/tax/workflows/delete-tax-regions.ts","../src/tax/workflows/index.ts","../src/tax/workflows/set-tax-rate-rules.ts","../src/tax/workflows/update-tax-rates.ts","../src/tax/workflows/update-tax-regions.ts","../src/translation/index.ts","../src/translation/steps/create-translation-settings.ts","../src/translation/steps/create-translations.ts","../src/translation/steps/delete-translation-settings.ts","../src/translation/steps/delete-translations.ts","../src/translation/steps/index.ts","../src/translation/steps/update-translation-settings.ts","../src/translation/steps/update-translations.ts","../src/translation/steps/validate-translations.ts","../src/translation/workflows/batch-translation-settings.ts","../src/translation/workflows/batch-translations.ts","../src/translation/workflows/create-translations.ts","../src/translation/workflows/delete-translations.ts","../src/translation/workflows/index.ts","../src/translation/workflows/update-translations.ts","../src/user/index.ts","../src/user/steps/create-users.ts","../src/user/steps/delete-users.ts","../src/user/steps/get-assignable-policies.ts","../src/user/steps/get-assignable-roles.ts","../src/user/steps/index.ts","../src/user/steps/update-users.ts","../src/user/steps/validate-user-role-permissions.ts","../src/user/workflows/assign-user-roles.ts","../src/user/workflows/create-user-account.ts","../src/user/workflows/create-users.ts","../src/user/workflows/delete-users.ts","../src/user/workflows/get-assignable-policies.ts","../src/user/workflows/get-assignable-roles.ts","../src/user/workflows/index.ts","../src/user/workflows/remove-user-account.ts","../src/user/workflows/remove-user-roles.ts","../src/user/workflows/update-users.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/core-flows",
3
- "version": "2.21.0",
3
+ "version": "2.21.1-preview-20260917150924",
4
4
  "description": "Set of workflow definitions for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "author": "Medusa",
30
30
  "license": "SEE LICENSE IN LICENSE",
31
31
  "devDependencies": {
32
- "@medusajs/framework": "2.21.0"
32
+ "@medusajs/framework": "2.21.1-preview-20260917150924"
33
33
  },
34
34
  "dependencies": {
35
35
  "csv-parse": "^7.0.2",
@@ -37,7 +37,7 @@
37
37
  "json-2-csv": "^5.5.11"
38
38
  },
39
39
  "peerDependencies": {
40
- "@medusajs/framework": "2.21.0"
40
+ "@medusajs/framework": "2.21.1-preview-20260917150924"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "yarn run -T rimraf dist && yarn run -T tsc --build",