@medusajs/types 1.12.0-preview-20240815120735 → 1.12.0-preview-20240815180619

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/http/claim/admin/responses.d.ts +3 -3
  2. package/dist/http/claim/admin/responses.d.ts.map +1 -1
  3. package/dist/http/exchange/admin/index.d.ts +2 -0
  4. package/dist/http/exchange/admin/index.d.ts.map +1 -1
  5. package/dist/http/exchange/admin/index.js +2 -0
  6. package/dist/http/exchange/admin/index.js.map +1 -1
  7. package/dist/http/exchange/admin/payloads.d.ts +68 -0
  8. package/dist/http/exchange/admin/payloads.d.ts.map +1 -0
  9. package/dist/http/exchange/admin/payloads.js +10 -0
  10. package/dist/http/exchange/admin/payloads.js.map +1 -0
  11. package/dist/http/exchange/admin/queries.d.ts +14 -0
  12. package/dist/http/exchange/admin/queries.d.ts.map +1 -0
  13. package/dist/http/exchange/admin/queries.js +3 -0
  14. package/dist/http/exchange/admin/queries.js.map +1 -0
  15. package/dist/http/exchange/admin/responses.d.ts +7 -5
  16. package/dist/http/exchange/admin/responses.d.ts.map +1 -1
  17. package/dist/http/exchange/common.d.ts +12 -1
  18. package/dist/http/exchange/common.d.ts.map +1 -1
  19. package/dist/http/index.d.ts +1 -0
  20. package/dist/http/index.d.ts.map +1 -1
  21. package/dist/http/index.js +1 -0
  22. package/dist/http/index.js.map +1 -1
  23. package/dist/http/order-edit/admin/index.d.ts +2 -0
  24. package/dist/http/order-edit/admin/index.d.ts.map +1 -0
  25. package/dist/http/order-edit/admin/index.js +18 -0
  26. package/dist/http/order-edit/admin/index.js.map +1 -0
  27. package/dist/http/order-edit/admin/responses.d.ts +5 -0
  28. package/dist/http/order-edit/admin/responses.d.ts.map +1 -0
  29. package/dist/http/order-edit/admin/responses.js +3 -0
  30. package/dist/http/order-edit/admin/responses.js.map +1 -0
  31. package/dist/http/order-edit/common.d.ts +10 -0
  32. package/dist/http/order-edit/common.d.ts.map +1 -0
  33. package/dist/http/order-edit/common.js +3 -0
  34. package/dist/http/order-edit/common.js.map +1 -0
  35. package/dist/http/order-edit/index.d.ts +3 -0
  36. package/dist/http/order-edit/index.d.ts.map +1 -0
  37. package/dist/http/order-edit/index.js +19 -0
  38. package/dist/http/order-edit/index.js.map +1 -0
  39. package/dist/workflow/order/begin-order-edit.d.ts +1 -1
  40. package/dist/workflow/order/begin-order-edit.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { OrderDTO } from "../../../order";
1
+ import { OrderDTO, OrderPreviewDTO } from "../../../order";
2
2
  import { DeleteResponse, PaginatedResponse } from "../../common";
3
3
  import { AdminReturn } from "../../return";
4
4
  import { AdminClaim } from "./entities";
@@ -14,11 +14,11 @@ export interface AdminClaimOrderResponse {
14
14
  claim: AdminClaim;
15
15
  }
16
16
  export interface AdminClaimPreviewResponse {
17
- order_preview: OrderDTO;
17
+ order_preview: OrderPreviewDTO;
18
18
  claim: AdminClaim;
19
19
  }
20
20
  export interface AdminClaimReturnPreviewResponse {
21
- order_preview: OrderDTO;
21
+ order_preview: OrderPreviewDTO;
22
22
  return: AdminReturn;
23
23
  }
24
24
  export interface AdminClaimRequestResponse extends AdminClaimPreviewResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,iBAAiB,CAAC;IACxB,MAAM,EAAE,UAAU,EAAE,CAAA;CACrB,CAAC;CAAG;AAEP,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAA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AAQ,cAAc,CAAC,OAAO,CAAC;CAAG"}
@@ -1,3 +1,5 @@
1
1
  export * from "./entities";
2
+ export * from "./payloads";
3
+ export * from "./queries";
2
4
  export * from "./responses";
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
@@ -15,5 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./payloads"), exports);
19
+ __exportStar(require("./queries"), exports);
18
20
  __exportStar(require("./responses"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/exchange/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/exchange/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
@@ -0,0 +1,68 @@
1
+ declare enum ExchangeReason {
2
+ MISSING_ITEM = "missing_item",
3
+ WRONG_ITEM = "wrong_item",
4
+ PRODUCTION_FAILURE = "production_failure",
5
+ OTHER = "other"
6
+ }
7
+ interface AdminExchangeAddItems {
8
+ items: {
9
+ id: string;
10
+ quantity: number;
11
+ reason?: ExchangeReason;
12
+ description?: string;
13
+ internal_note?: string;
14
+ }[];
15
+ }
16
+ interface AdminExchangeUpdateItem {
17
+ quantity?: number;
18
+ reason_id?: string | null;
19
+ description?: string;
20
+ internal_note?: string | null;
21
+ }
22
+ interface AdminExchangeAddShippingMethod {
23
+ shipping_option_id: string;
24
+ custom_price?: number;
25
+ description?: string;
26
+ internal_note?: string;
27
+ metadata?: Record<string, unknown> | null;
28
+ }
29
+ interface AdminExchangeUpdateShippingMethod {
30
+ custom_price?: number | null;
31
+ internal_note?: string;
32
+ metadata?: Record<string, unknown> | null;
33
+ }
34
+ export interface AdminCreateExchange {
35
+ type: "refund" | "replace";
36
+ order_id: string;
37
+ description?: string;
38
+ internal_note?: string;
39
+ metadata?: Record<string, unknown> | null;
40
+ }
41
+ export interface AdminAddExchangeItems extends AdminExchangeAddItems {
42
+ }
43
+ export interface AdminUpdateExchangeItem extends AdminExchangeUpdateItem {
44
+ }
45
+ export interface AdminAddExchangeInboundItems extends AdminExchangeAddItems {
46
+ }
47
+ export interface AdminUpdateExchangeInboundItem extends AdminExchangeUpdateItem {
48
+ }
49
+ export interface AdminAddExchangeOutboundItems extends AdminExchangeAddItems {
50
+ }
51
+ export interface AdminUpdateExchangeOutboundItem extends AdminExchangeUpdateItem {
52
+ }
53
+ export interface AdminExchangeAddInboundShipping extends AdminExchangeAddShippingMethod {
54
+ }
55
+ export interface AdminExchangeUpdateInboundShipping extends AdminExchangeUpdateShippingMethod {
56
+ }
57
+ export interface AdminExchangeAddOutboundShipping extends AdminExchangeAddShippingMethod {
58
+ }
59
+ export interface AdminExchangeUpdateOutboundShipping extends AdminExchangeUpdateShippingMethod {
60
+ }
61
+ export interface AdminRequestExchange {
62
+ no_notification?: boolean;
63
+ }
64
+ export interface AdminCancelExchange {
65
+ no_notification?: boolean;
66
+ }
67
+ export {};
68
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/pay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,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;CAAG;AACvE,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;CAAG;AAE3E,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;CAAG;AAC9E,MAAM,WAAW,8BACf,SAAQ,uBAAuB;CAAG;AAEpC,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;CAAG;AAC/E,MAAM,WAAW,+BACf,SAAQ,uBAAuB;CAAG;AAEpC,MAAM,WAAW,+BACf,SAAQ,8BAA8B;CAAG;AAC3C,MAAM,WAAW,kCACf,SAAQ,iCAAiC;CAAG;AAE9C,MAAM,WAAW,gCACf,SAAQ,8BAA8B;CAAG;AAC3C,MAAM,WAAW,mCACf,SAAQ,iCAAiC;CAAG;AAE9C,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ExchangeReason;
4
+ (function (ExchangeReason) {
5
+ ExchangeReason["MISSING_ITEM"] = "missing_item";
6
+ ExchangeReason["WRONG_ITEM"] = "wrong_item";
7
+ ExchangeReason["PRODUCTION_FAILURE"] = "production_failure";
8
+ ExchangeReason["OTHER"] = "other";
9
+ })(ExchangeReason || (ExchangeReason = {}));
10
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/exchange/admin/payloads.ts"],"names":[],"mappings":";;AAAA,IAAK,cAKJ;AALD,WAAK,cAAc;IACjB,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,iCAAe,CAAA;AACjB,CAAC,EALI,cAAc,KAAd,cAAc,QAKlB"}
@@ -0,0 +1,14 @@
1
+ import { BaseFilterable, OperatorMap } from "../../../dal";
2
+ import { SelectParams } from "../../common";
3
+ import { BaseExchangeListParams } from "../common";
4
+ export interface AdminExchangeListParams extends BaseExchangeListParams, BaseFilterable<AdminExchangeListParams> {
5
+ deleted_at?: OperatorMap<string>;
6
+ }
7
+ export interface AdminExchangeParams extends SelectParams {
8
+ id?: string | string[];
9
+ status?: string | string[];
10
+ created_at?: OperatorMap<string>;
11
+ updated_at?: OperatorMap<string>;
12
+ deleted_at?: OperatorMap<string>;
13
+ }
14
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAElD,MAAM,WAAW,uBACf,SAAQ,sBAAsB,EAC5B,cAAc,CAAC,uBAAuB,CAAC;IACzC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/exchange/admin/queries.ts"],"names":[],"mappings":""}
@@ -1,26 +1,28 @@
1
- import { OrderDTO } from "../../../order";
2
- import { PaginatedResponse } from "../../common";
1
+ import { OrderDTO, OrderPreviewDTO } from "../../../order";
2
+ import { DeleteResponse, PaginatedResponse } from "../../common";
3
3
  import { AdminReturn } from "../../return";
4
4
  import { AdminExchange } from "./entities";
5
5
  export interface AdminExchangeResponse {
6
6
  exchange: AdminExchange;
7
7
  }
8
8
  export type AdminExchangeListResponse = PaginatedResponse<{
9
- exchanges: AdminExchange;
9
+ exchanges: AdminExchange[];
10
10
  }>;
11
11
  export interface AdminExchangeOrderResponse {
12
12
  order: OrderDTO;
13
13
  exchange: AdminExchange;
14
14
  }
15
15
  export interface AdminExchangePreviewResponse {
16
- order_preview: OrderDTO;
16
+ order_preview: OrderPreviewDTO;
17
17
  exchange: AdminExchange;
18
18
  }
19
19
  export interface AdminExchangeRequestResponse extends AdminExchangePreviewResponse {
20
20
  return: AdminReturn;
21
21
  }
22
22
  export interface AdminExchangeReturnResponse {
23
- order_preview: OrderDTO;
23
+ order_preview: OrderPreviewDTO;
24
24
  return: AdminReturn;
25
25
  }
26
+ export interface AdminExchangeDeleteResponse extends DeleteResponse<"exchange"> {
27
+ }
26
28
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD,SAAS,EAAE,aAAa,CAAA;CACzB,CAA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AAc,CAAC,UAAU,CAAC;CAAG"}
@@ -1,5 +1,7 @@
1
+ import { OperatorMap } from "../../dal";
2
+ import { FindParams } from "../common";
1
3
  import { BaseOrder } from "../order/common";
2
- import { AdminReturnItem, AdminReturn } from "../return";
4
+ import { AdminReturn, AdminReturnItem } from "../return";
3
5
  export interface BaseExchangeItem {
4
6
  id: string;
5
7
  exchange_id: string;
@@ -19,4 +21,13 @@ export interface BaseExchange extends Omit<BaseOrder, "status" | "version" | "it
19
21
  return?: AdminReturn;
20
22
  return_id?: string;
21
23
  }
24
+ export interface BaseExchangeListParams extends FindParams {
25
+ q?: string;
26
+ id?: string | string[];
27
+ order_id?: string | string[];
28
+ status?: string | string[];
29
+ created_at?: OperatorMap<string>;
30
+ updated_at?: OperatorMap<string>;
31
+ deleted_at?: OperatorMap<string>;
32
+ }
22
33
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/exchange/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IACnF,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,eAAe,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,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -16,6 +16,7 @@ export * from "./inventory-level";
16
16
  export * from "./invite";
17
17
  export * from "./notification";
18
18
  export * from "./order";
19
+ export * from "./order-edit";
19
20
  export * from "./payment";
20
21
  export * from "./price-list";
21
22
  export * from "./pricing";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAA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AC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA"}
@@ -32,6 +32,7 @@ __exportStar(require("./inventory-level"), exports);
32
32
  __exportStar(require("./invite"), exports);
33
33
  __exportStar(require("./notification"), exports);
34
34
  __exportStar(require("./order"), exports);
35
+ __exportStar(require("./order-edit"), exports);
35
36
  __exportStar(require("./payment"), exports);
36
37
  __exportStar(require("./price-list"), exports);
37
38
  __exportStar(require("./pricing"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,yCAAsB;AACtB,0CAAuB;AACvB,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,6CAA0B;AAC1B,yCAAsB;AACtB,gDAA6B;AAC7B,yDAAsC;AACtC,oDAAiC;AACjC,8CAA2B;AAC3B,oDAAiC;AACjC,2CAAwB;AACxB,iDAA8B;AAC9B,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B;AAC5B,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,gDAA6B;AAC7B,iDAA8B;AAC9B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,2CAAwB;AACxB,kDAA+B;AAC/B,kDAA+B;AAC/B,oDAAiC;AACjC,qDAAkC;AAClC,oDAAiC;AACjC,0CAAuB;AACvB,6CAA0B;AAC1B,+CAA4B;AAC5B,yCAAsB;AACtB,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,yCAAsB;AACtB,0CAAuB;AACvB,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,6CAA0B;AAC1B,yCAAsB;AACtB,gDAA6B;AAC7B,yDAAsC;AACtC,oDAAiC;AACjC,8CAA2B;AAC3B,oDAAiC;AACjC,2CAAwB;AACxB,iDAA8B;AAC9B,0CAAuB;AACvB,+CAA4B;AAC5B,4CAAyB;AACzB,+CAA4B;AAC5B,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,gDAA6B;AAC7B,iDAA8B;AAC9B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,2CAAwB;AACxB,kDAA+B;AAC/B,kDAA+B;AAC/B,oDAAiC;AACjC,qDAAkC;AAClC,oDAAiC;AACjC,0CAAuB;AACvB,6CAA0B;AAC1B,+CAA4B;AAC5B,yCAAsB;AACtB,uDAAoC"}
@@ -0,0 +1,2 @@
1
+ export * from "./responses";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/order-edit/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./responses"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/order-edit/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
@@ -0,0 +1,5 @@
1
+ import { OrderPreviewDTO } from "../../../order";
2
+ export interface AdminOrderEditPreviewResponse {
3
+ order_preview: OrderPreviewDTO;
4
+ }
5
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/order-edit/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,eAAe,CAAA;CAC/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/order-edit/admin/responses.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export interface BaseOrderEditItem {
2
+ id: string;
3
+ order_id: string;
4
+ item_id: string;
5
+ quantity: number;
6
+ metadata?: Record<string, unknown>;
7
+ created_at: string | null;
8
+ updated_at: string | null;
9
+ }
10
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/order-edit/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/order-edit/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./admin";
2
+ export * from "./common";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/order-edit/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./admin"), exports);
18
+ __exportStar(require("./common"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/order-edit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,2CAAwB"}
@@ -1,4 +1,4 @@
1
- export interface BeginOrderOrderEditWorkflowInput {
1
+ export interface BeginorderEditWorkflowInput {
2
2
  order_id: string;
3
3
  created_by?: string;
4
4
  internal_note?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"begin-order-edit.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/begin-order-edit.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gCAAgC;IAC/C,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-order-edit.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/begin-order-edit.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-preview-20240815120735",
3
+ "version": "1.12.0-preview-20240815180619",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",