@medusajs/types 1.12.0-snapshot-20240815071705 → 1.12.0-snapshot-20240821132459

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/dist/auth/common/auth-identity.d.ts +1 -0
  2. package/dist/auth/common/auth-identity.d.ts.map +1 -1
  3. package/dist/auth/service.d.ts +39 -2
  4. package/dist/auth/service.d.ts.map +1 -1
  5. package/dist/http/claim/admin/responses.d.ts +3 -3
  6. package/dist/http/claim/admin/responses.d.ts.map +1 -1
  7. package/dist/http/exchange/admin/index.d.ts +2 -0
  8. package/dist/http/exchange/admin/index.d.ts.map +1 -1
  9. package/dist/http/exchange/admin/index.js +2 -0
  10. package/dist/http/exchange/admin/index.js.map +1 -1
  11. package/dist/http/exchange/admin/payloads.d.ts +68 -0
  12. package/dist/http/exchange/admin/payloads.d.ts.map +1 -0
  13. package/dist/http/exchange/admin/payloads.js +10 -0
  14. package/dist/http/exchange/admin/payloads.js.map +1 -0
  15. package/dist/http/exchange/admin/queries.d.ts +14 -0
  16. package/dist/http/exchange/admin/queries.d.ts.map +1 -0
  17. package/dist/http/exchange/admin/queries.js +3 -0
  18. package/dist/http/exchange/admin/queries.js.map +1 -0
  19. package/dist/http/exchange/admin/responses.d.ts +7 -5
  20. package/dist/http/exchange/admin/responses.d.ts.map +1 -1
  21. package/dist/http/exchange/common.d.ts +12 -1
  22. package/dist/http/exchange/common.d.ts.map +1 -1
  23. package/dist/http/index.d.ts +1 -0
  24. package/dist/http/index.d.ts.map +1 -1
  25. package/dist/http/index.js +1 -0
  26. package/dist/http/index.js.map +1 -1
  27. package/dist/http/order/admin/entities.d.ts +4 -1
  28. package/dist/http/order/admin/entities.d.ts.map +1 -1
  29. package/dist/http/order-edit/admin/index.d.ts +2 -0
  30. package/dist/http/order-edit/admin/index.d.ts.map +1 -0
  31. package/dist/http/order-edit/admin/index.js +18 -0
  32. package/dist/http/order-edit/admin/index.js.map +1 -0
  33. package/dist/http/order-edit/admin/responses.d.ts +8 -0
  34. package/dist/http/order-edit/admin/responses.d.ts.map +1 -0
  35. package/dist/http/order-edit/admin/responses.js +3 -0
  36. package/dist/http/order-edit/admin/responses.js.map +1 -0
  37. package/dist/http/order-edit/common.d.ts +10 -0
  38. package/dist/http/order-edit/common.d.ts.map +1 -0
  39. package/dist/http/order-edit/common.js +3 -0
  40. package/dist/http/order-edit/common.js.map +1 -0
  41. package/dist/http/order-edit/index.d.ts +3 -0
  42. package/dist/http/order-edit/index.d.ts.map +1 -0
  43. package/dist/http/order-edit/index.js +19 -0
  44. package/dist/http/order-edit/index.js.map +1 -0
  45. package/dist/http/payment/admin/payloads.d.ts +7 -0
  46. package/dist/http/payment/admin/payloads.d.ts.map +1 -1
  47. package/dist/http/payment/admin/responses.d.ts +10 -2
  48. package/dist/http/payment/admin/responses.d.ts.map +1 -1
  49. package/dist/payment/service.d.ts +27 -0
  50. package/dist/payment/service.d.ts.map +1 -1
  51. package/dist/workflow/order/begin-order-edit.d.ts +1 -1
  52. package/dist/workflow/order/begin-order-edit.d.ts.map +1 -1
  53. package/dist/workflow/order/items.d.ts +8 -2
  54. package/dist/workflow/order/items.d.ts.map +1 -1
  55. package/dist/workflows-sdk/service.d.ts +1 -0
  56. package/dist/workflows-sdk/service.d.ts.map +1 -1
  57. package/package.json +1 -1
@@ -155,5 +155,6 @@ export interface FilterableAuthIdentityProps extends BaseFilterable<FilterableAu
155
155
  */
156
156
  provider?: string;
157
157
  };
158
+ app_metadata?: Record<string, unknown>;
158
159
  }
159
160
  //# sourceMappingURL=auth-identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-identity.d.ts","sourceRoot":"","sources":["../../../src/auth/common/auth-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;QAEI;IACJ,mBAAmB,CAAC,EAAE,mBAAmB,EAAE,CA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CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACxC,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,2BAA2B,CAAC;IACnD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,mBAAmB,CAAC,EAAE;QACpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAA;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;IAED,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC"}
@@ -1,7 +1,7 @@
1
- import { AuthIdentityDTO, AuthenticationInput, AuthenticationResponse, CreateAuthIdentityDTO, FilterableAuthIdentityProps, UpdateAuthIdentityDTO } from "./common";
2
- import { Context } from "../shared-context";
3
1
  import { FindConfig } from "../common";
4
2
  import { IModuleService } from "../modules-sdk";
3
+ import { Context } from "../shared-context";
4
+ import { AuthIdentityDTO, AuthenticationInput, AuthenticationResponse, CreateAuthIdentityDTO, CreateProviderIdentityDTO, FilterableAuthIdentityProps, ProviderIdentityDTO, UpdateAuthIdentityDTO } from "./common";
5
5
  /**
6
6
  * The main service interface for the Auth Module.
7
7
  */
@@ -227,5 +227,42 @@ export interface IAuthModuleService extends IModuleService {
227
227
  * await authModuleService.deleteAuthIdentities(["authusr_123", "authusr_321"])
228
228
  */
229
229
  deleteAuthIdentities(ids: string[], sharedContext?: Context): Promise<void>;
230
+ /**
231
+ * This method creates provider identities.
232
+ *
233
+ * @param {CreateProviderIdentityDTO[]} data - The provider identities to be created.
234
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
235
+ * @returns {Promise<ProviderIdentityDTO[]>} The created provider identities.
236
+ *
237
+ * @example
238
+ * const providerIdentities = await authModuleService.createProviderIdentities([
239
+ * {
240
+ * provider: "emailpass",
241
+ * entity_id: "user@example.com",
242
+ * auth_identity_id: "uid_1"
243
+ * },
244
+ * {
245
+ * provider: "github",
246
+ * entity_id: "github_handle",
247
+ * auth_identity_id: "uid_1"
248
+ * },
249
+ * ])
250
+ */
251
+ createProviderIdentities(data: CreateProviderIdentityDTO[], sharedContext?: Context): Promise<ProviderIdentityDTO[]>;
252
+ /**
253
+ * This method creates a provider identity.
254
+ *
255
+ * @param {CreateProviderIdentityDTO} data - The provider identity to be created.
256
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
257
+ * @returns {Promise<ProviderIdentityDTO>} The created provider identity.
258
+ *
259
+ * @example
260
+ * const providerIdentity = await authModuleService.createProviderIdentities({
261
+ * provider: "github",
262
+ * entity_id: "github_handle",
263
+ * auth_identity_id: "uid_1"
264
+ * })
265
+ */
266
+ createProviderIdentities(data: CreateProviderIdentityDTO, sharedContext?: Context): Promise<ProviderIdentityDTO>;
230
267
  }
231
268
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,mBAAmB,GAChC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,gBAAgB,CACd,QAAQ,EAAE,MAAM,EAChB,YAAY,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CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAChC"}
@@ -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,EAAE,QAAQ,CAAA;IACf,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,QAAQ,CAAA;IACvB,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,QAAQ,CAAA;IACvB,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,wBAAyB,SAAQ,cAAc,CAAC,OAAO,CAAC;CAAG"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC1D,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,EAAE,QAAQ,CAAA;IACf,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,eAAe,CAAA;IAC9B,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,eAAe,CAAA;IAC9B,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,wBAAyB,SAAQ,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/payloads.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,KAAK,UAAU;CAChB;AAED,UAAU,qBAAqB;IAC7B,KAAK,EAAE;QACL,EAA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AAM,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,CAAC,CAAA;AAEF,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,QAAQ,CAAA;IACf,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,QAAQ,CAAA;IACvB,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BAA6B,SAAQ,4BAA4B;IAChF,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,QAAQ,CAAA;IACvB,MAAM,EAAE,WAAW,CAAA;CACpB"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD,SAAS,EAAE,aAAa,EAAE,CAAA;CAC3B,CAAC,CAAA;AAEF,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,QAAQ,CAAA;IACf,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,eAAe,CAAA;IAC9B,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BACf,SAAQ,4BAA4B;IACpC,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,eAAe,CAAA;IAC9B,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BACf,SAAQ,cAAc,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,EAAE,CAAA;IAC/B,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;IACpC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,SAAS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AE,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,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AAC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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"}
@@ -1,7 +1,10 @@
1
1
  import { AdminPaymentCollection } from "../../payment/admin";
2
- import { BaseOrder, BaseOrderAddress, BaseOrderChange, BaseOrderChangeAction, BaseOrderLineItem, BaseOrderShippingMethod } from "../common";
2
+ import { BaseOrder, BaseOrderAddress, BaseOrderChange, BaseOrderChangeAction, BaseOrderFulfillment, BaseOrderLineItem, BaseOrderShippingMethod } from "../common";
3
3
  export interface AdminOrder extends BaseOrder {
4
4
  payment_collections: AdminPaymentCollection[];
5
+ fulfillments?: BaseOrderFulfillment[];
6
+ }
7
+ export interface AdminOrderFulfillment extends BaseOrderFulfillment {
5
8
  }
6
9
  export interface AdminOrderLineItem extends BaseOrderLineItem {
7
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/order/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,mBAAmB,EAAE,sBAAsB,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAG;A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AiB,GAAG;QAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;KAAE,CAAC,EAAE,CAAA;IACpE,gBAAgB,EAAE,CAAC,uBAAuB,GAAG;QAC3C,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAA;KAClC,CAAC,EAAE,CAAA;CACL"}
@@ -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,8 @@
1
+ import { OrderChangeDTO, OrderPreviewDTO } from "../../../order";
2
+ export interface AdminOrderEditPreviewResponse {
3
+ order_preview: OrderPreviewDTO;
4
+ }
5
+ export interface AdminOrderEditResponse {
6
+ order_change: OrderChangeDTO;
7
+ }
8
+ //# 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,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhE,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,eAAe,CAAA;CAC/B;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,cAAc,CAAA;CAC7B"}
@@ -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"}
@@ -10,4 +10,11 @@ export interface AdminCreateRefundReason {
10
10
  label: string;
11
11
  description?: string;
12
12
  }
13
+ export interface AdminCreatePaymentCollection {
14
+ order_id: string;
15
+ amount?: number;
16
+ }
17
+ export interface AdminMarkPaymentCollectionAsPaid {
18
+ order_id: string;
19
+ }
13
20
  //# sourceMappingURL=payloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/payment/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/payment/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;CACjB"}
@@ -1,5 +1,13 @@
1
- import { PaginatedResponse } from "../../common";
2
- import { AdminPayment, AdminPaymentProvider, AdminRefund, AdminRefundReason } from "./entities";
1
+ import { DeleteResponse, PaginatedResponse } from "../../common";
2
+ import { AdminPayment, AdminPaymentCollection, AdminPaymentProvider, AdminRefund, AdminRefundReason } from "./entities";
3
+ export interface AdminPaymentCollectionResponse {
4
+ payment_collection: AdminPaymentCollection;
5
+ }
6
+ export interface AdminDeletePaymentCollectionResponse extends DeleteResponse<"payment-collection"> {
7
+ }
8
+ export interface AdminPaymentCollectionsResponse {
9
+ payment_collections: AdminPaymentCollection[];
10
+ }
3
11
  export interface AdminPaymentResponse {
4
12
  payment: AdminPayment;
5
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/payment/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE/F,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA;AAEF,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,WAAW,CAAA;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,cAAc,EAAE,WAAW,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;CAC1C,CAAC,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/payment/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,iBAAiB,EAClB,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,EAAE,sBAAsB,CAAA;CAC3C;AAED,MAAM,WAAW,oCACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC;CAAG;AAEjD,MAAM,WAAW,+BAA+B;IAC9C,mBAAmB,EAAE,sBAAsB,EAAE,CAAA;CAC9C;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA;AAEF,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,WAAW,CAAA;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACnD,cAAc,EAAE,WAAW,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC,CAAA;AAEF,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;CAC1C,CAAC,CAAA"}
@@ -289,6 +289,33 @@ export interface IPaymentModuleService extends IModuleService {
289
289
  * )
290
290
  */
291
291
  deletePaymentCollections(paymentCollectionId: string, sharedContext?: Context): Promise<void>;
292
+ /**
293
+ * This method soft deletes payment collections by their IDs.
294
+ *
295
+ * @param {string[]} id - The IDs of payment collections.
296
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
297
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
298
+ * @returns {Promise<void | Record<TReturnableLinkableKeys, string[]>>} An object that includes the IDs of related records that were also soft deleted.
299
+ * If there are no related records, the promise resolves to `void`.
300
+ *
301
+ * @example
302
+ * await paymentModule.softDeletePaymentCollections(["paycol_123"])
303
+ */
304
+ softDeletePaymentCollections<TReturnableLinkableKeys extends string = string>(id: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<TReturnableLinkableKeys, string[]> | void>;
305
+ /**
306
+ * This method restores soft deleted payment collection by their IDs.
307
+ *
308
+ * @param {string[]} id - The IDs of payment collections.
309
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the payment collection. You can pass to its `returnLinkableKeys`
310
+ * property any of the payment collection's relation attribute names.
311
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
312
+ * @returns {Promise<void | Record<TReturnableLinkableKeys, string[]>>} An object that includes the IDs of related records that were restored.
313
+ * If there are no related records restored, the promise resolves to `void`.
314
+ *
315
+ * @example
316
+ * await paymentModule.restorePaymentCollections(["paycol_123"])
317
+ */
318
+ restorePaymentCollections<TReturnableLinkableKeys extends string = string>(id: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<TReturnableLinkableKeys, string[]> | void>;
292
319
  /**
293
320
  * This method marks a payment collection as completed by settings its `completed_at` field to the current date and time.
294
321
  *
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/payment/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,gCAAgC,EAChC,sBAAsB,EACtB,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,E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AAU,CAAC,eAAe,CAAC,EACpC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;IAI7B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,YAAY,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
@@ -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"}
@@ -4,13 +4,13 @@ interface NewItem {
4
4
  variant_id: string;
5
5
  quantity: BigNumberInput;
6
6
  unit_price?: BigNumberInput;
7
- internal_note?: string;
7
+ internal_note?: string | null;
8
8
  metadata?: Record<string, any> | null;
9
9
  }
10
10
  interface ExistingItem {
11
11
  id: string;
12
12
  quantity: BigNumberInput;
13
- internal_note?: string;
13
+ internal_note?: string | null;
14
14
  }
15
15
  export interface OrderExchangeAddNewItemWorkflowInput {
16
16
  exchange_id: string;
@@ -28,6 +28,10 @@ export interface OrderEditAddNewItemWorkflowInput {
28
28
  order_id: string;
29
29
  items: NewItem[];
30
30
  }
31
+ export interface OrderEditUpdateItemQuantityWorkflowInput {
32
+ order_id: string;
33
+ items: ExistingItem[];
34
+ }
31
35
  export interface OrderAddLineItemWorkflowInput {
32
36
  order_id: string;
33
37
  items: NewItem[];
@@ -48,6 +52,8 @@ export interface UpdateOrderEditAddNewItemWorkflowInput {
48
52
  internal_note?: string | null;
49
53
  };
50
54
  }
55
+ export interface UpdateOrderEditItemQuantityWorkflowInput extends UpdateOrderEditAddNewItemWorkflowInput {
56
+ }
51
57
  export interface UpdateClaimAddNewItemWorkflowInput {
52
58
  claim_id: string;
53
59
  action_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,UAAU,OAAO;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,cAAc,CAAA;IACxB,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;IACxB,aAAa,CAAC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A;IACjB,IAAI,EAAE;QACJ,QAAQ,CAAC,EAAE,cAAc,CAAA;QACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAC9B,CAAA;CACF;AAED,MAAM,WAAW,0CAA0C;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,uCAAuC;IACtD,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,sCAAsC;IACrD,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -7,6 +7,7 @@ type FlowRunOptions<TData = unknown> = {
7
7
  context?: Context;
8
8
  resultFrom?: string | string[] | Symbol;
9
9
  throwOnError?: boolean;
10
+ logOnError?: boolean;
10
11
  events?: Record<string, Function>;
11
12
  };
12
13
  export interface WorkflowOrchestratorRunDTO<T = unknown> extends FlowRunOptions<T> {
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/workflows-sdk/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,gCAAgC,EAChC,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAEjB,KAAK,cAAc,CAAC,KAAK,GAAG,OAAO,IAAI;IACrC,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IACvC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,E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MAAM,CAAA;QACtB,UAAU,EAAE,QAAQ,CAAA;QACpB,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,EACD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhB,WAAW,CACT,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAA;QAClB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,cAAc,EAAE,MAAM,GAAG,QAAQ,CAAA;KAClC,EACD,aAAa,CAAC,EAAE,OAAO,OACxB;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "1.12.0-snapshot-20240815071705",
3
+ "version": "1.12.0-snapshot-20240821132459",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",