@medusajs/types 1.12.0-snapshot-20240719133408 → 1.12.0-snapshot-20240724143042

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/dist/cart/workflows.d.ts +6 -0
  2. package/dist/cart/workflows.d.ts.map +1 -1
  3. package/dist/http/index.d.ts +1 -0
  4. package/dist/http/index.d.ts.map +1 -1
  5. package/dist/http/index.js +1 -0
  6. package/dist/http/index.js.map +1 -1
  7. package/dist/http/notification/admin/entities.d.ts +16 -0
  8. package/dist/http/notification/admin/entities.d.ts.map +1 -0
  9. package/dist/http/notification/admin/entities.js +3 -0
  10. package/dist/http/notification/admin/entities.js.map +1 -0
  11. package/dist/http/notification/admin/index.d.ts +4 -0
  12. package/dist/http/notification/admin/index.d.ts.map +1 -0
  13. package/dist/http/notification/admin/index.js +20 -0
  14. package/dist/http/notification/admin/index.js.map +1 -0
  15. package/dist/http/notification/admin/queries.d.ts +10 -0
  16. package/dist/http/notification/admin/queries.d.ts.map +1 -0
  17. package/dist/http/notification/admin/queries.js +3 -0
  18. package/dist/http/notification/admin/queries.js.map +1 -0
  19. package/dist/http/notification/admin/responses.d.ts +10 -0
  20. package/dist/http/notification/admin/responses.d.ts.map +1 -0
  21. package/dist/http/notification/admin/responses.js +3 -0
  22. package/dist/http/notification/admin/responses.js.map +1 -0
  23. package/dist/http/notification/index.d.ts +2 -0
  24. package/dist/http/notification/index.d.ts.map +1 -0
  25. package/dist/http/notification/index.js +18 -0
  26. package/dist/http/notification/index.js.map +1 -0
  27. package/dist/http/product/admin/payloads.d.ts +2 -0
  28. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  29. package/dist/http/product/admin/responses.d.ts +3 -0
  30. package/dist/http/product/admin/responses.d.ts.map +1 -1
  31. package/dist/inventory/common/reservation-item.d.ts +2 -1
  32. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  33. package/dist/inventory/mutations/inventory-level.d.ts +2 -1
  34. package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
  35. package/dist/inventory/mutations/reservation-item.d.ts +3 -2
  36. package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
  37. package/dist/inventory/service.d.ts +10 -9
  38. package/dist/inventory/service.d.ts.map +1 -1
  39. package/dist/link-modules/index.d.ts +2 -13
  40. package/dist/link-modules/index.d.ts.map +1 -1
  41. package/dist/link-modules/index.js +16 -0
  42. package/dist/link-modules/index.js.map +1 -1
  43. package/dist/link-modules/migrations.d.ts +33 -0
  44. package/dist/link-modules/migrations.d.ts.map +1 -0
  45. package/dist/link-modules/migrations.js +3 -0
  46. package/dist/link-modules/migrations.js.map +1 -0
  47. package/dist/link-modules/service.d.ts +14 -0
  48. package/dist/link-modules/service.d.ts.map +1 -0
  49. package/dist/link-modules/service.js +3 -0
  50. package/dist/link-modules/service.js.map +1 -0
  51. package/dist/order/common.d.ts +14 -0
  52. package/dist/order/common.d.ts.map +1 -1
  53. package/dist/order/mutations.d.ts +10 -0
  54. package/dist/order/mutations.d.ts.map +1 -1
  55. package/dist/order/service.d.ts +27 -52
  56. package/dist/order/service.d.ts.map +1 -1
  57. package/dist/pricing/common/money-amount.d.ts +9 -0
  58. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  59. package/dist/totals/big-number.d.ts +9 -2
  60. package/dist/totals/big-number.d.ts.map +1 -1
  61. package/dist/workflow/order/begin-return-order.d.ts +1 -0
  62. package/dist/workflow/order/begin-return-order.d.ts.map +1 -1
  63. package/dist/workflow/order/create-fulfillment.d.ts +2 -0
  64. package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
  65. package/dist/workflow/order/create-return-order.d.ts +2 -0
  66. package/dist/workflow/order/create-return-order.d.ts.map +1 -1
  67. package/dist/workflow/order/create-shipment.d.ts +1 -1
  68. package/dist/workflow/order/create-shipment.d.ts.map +1 -1
  69. package/dist/workflow/product/import-products.d.ts +5 -0
  70. package/dist/workflow/product/import-products.d.ts.map +1 -0
  71. package/dist/workflow/product/import-products.js +3 -0
  72. package/dist/workflow/product/import-products.js.map +1 -0
  73. package/dist/workflow/product/index.d.ts +1 -0
  74. package/dist/workflow/product/index.d.ts.map +1 -1
  75. package/dist/workflow/product/index.js +1 -0
  76. package/dist/workflow/product/index.js.map +1 -1
  77. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  export interface BeginOrderReturnWorkflowInput {
2
2
  order_id: string;
3
+ location_id?: string;
3
4
  created_by?: string;
4
5
  internal_note?: string;
5
6
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"begin-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/begin-return-order.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
1
+ {"version":3,"file":"begin-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/begin-return-order.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
@@ -1,4 +1,5 @@
1
1
  import { BigNumberInput } from "../../totals";
2
+ import { CreateFulfillmentLabelWorkflowDTO } from "../fulfillment/create-fulfillment";
2
3
  interface CreateOrderFulfillmentItem {
3
4
  id: string;
4
5
  quantity: BigNumberInput;
@@ -7,6 +8,7 @@ export interface CreateOrderFulfillmentWorkflowInput {
7
8
  order_id: string;
8
9
  created_by?: string;
9
10
  items: CreateOrderFulfillmentItem[];
11
+ labels?: CreateFulfillmentLabelWorkflowDTO[];
10
12
  no_notification?: boolean;
11
13
  location_id?: string | null;
12
14
  metadata?: Record<string, any> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"create-fulfillment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,UAAU,0BAA0B;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC"}
1
+ {"version":3,"file":"create-fulfillment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAA;AAErF,UAAU,0BAA0B;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC"}
@@ -1,4 +1,5 @@
1
1
  import { BigNumberInput } from "../../totals";
2
+ import { CreateFulfillmentLabelWorkflowDTO } from "../fulfillment/create-fulfillment";
2
3
  export interface CreateReturnItem {
3
4
  id: string;
4
5
  quantity: BigNumberInput;
@@ -14,6 +15,7 @@ export interface CreateOrderReturnWorkflowInput {
14
15
  return_shipping?: {
15
16
  option_id: string;
16
17
  price?: number;
18
+ labels?: CreateFulfillmentLabelWorkflowDTO[];
17
19
  };
18
20
  note?: string | null;
19
21
  receive_now?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"create-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-return-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,eAAe,CAAC,EAAE;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;IACD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B"}
1
+ {"version":3,"file":"create-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-return-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAA;AAErF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,eAAe,CAAC,EAAE;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;KAC7C,CAAA;IACD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B"}
@@ -10,7 +10,7 @@ export interface CreateOrderShipmentWorkflowInput {
10
10
  fulfillment_id: string;
11
11
  created_by?: string;
12
12
  items: CreateOrderShipmentItem[];
13
- labels: CreateFulfillmentLabelWorkflowDTO[];
13
+ labels?: CreateFulfillmentLabelWorkflowDTO[];
14
14
  no_notification?: boolean;
15
15
  metadata?: MetadataType;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-shipment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-shipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAA;AAElE,UAAU,uBAAuB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,MAAM,EAAE,iCAAiC,EAAE,CAAA;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB"}
1
+ {"version":3,"file":"create-shipment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-shipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAA;AAElE,UAAU,uBAAuB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB"}
@@ -0,0 +1,5 @@
1
+ export interface ImportProductsDTO {
2
+ fileContent: string;
3
+ filename: string;
4
+ }
5
+ //# sourceMappingURL=import-products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-products.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/import-products.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=import-products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-products.js","sourceRoot":"","sources":["../../../src/workflow/product/import-products.ts"],"names":[],"mappings":""}
@@ -3,4 +3,5 @@ export * from "./create-products";
3
3
  export * from "./update-product-variants";
4
4
  export * from "./update-products";
5
5
  export * from "./export-products";
6
+ export * from "./import-products";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
@@ -19,4 +19,5 @@ __exportStar(require("./create-products"), exports);
19
19
  __exportStar(require("./update-product-variants"), exports);
20
20
  __exportStar(require("./update-products"), exports);
21
21
  __exportStar(require("./export-products"), exports);
22
+ __exportStar(require("./import-products"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240719133408",
3
+ "version": "1.12.0-snapshot-20240724143042",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",