@medusajs/types 1.12.0-snapshot-20240808093419 → 1.12.0-snapshot-20240812125058

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/http/cart/store/entities.d.ts +10 -0
  2. package/dist/http/cart/store/entities.d.ts.map +1 -0
  3. package/dist/http/cart/{store.js → store/entities.js} +1 -1
  4. package/dist/http/cart/store/entities.js.map +1 -0
  5. package/dist/http/cart/store/index.d.ts +4 -0
  6. package/dist/http/cart/store/index.d.ts.map +1 -0
  7. package/dist/http/cart/store/index.js +20 -0
  8. package/dist/http/cart/store/index.js.map +1 -0
  9. package/dist/http/cart/{store.d.ts → store/payloads.d.ts} +2 -10
  10. package/dist/http/cart/store/payloads.d.ts.map +1 -0
  11. package/dist/http/cart/store/payloads.js +3 -0
  12. package/dist/http/cart/store/payloads.js.map +1 -0
  13. package/dist/http/cart/store/responses.d.ts +18 -0
  14. package/dist/http/cart/store/responses.d.ts.map +1 -0
  15. package/dist/http/cart/store/responses.js +3 -0
  16. package/dist/http/cart/store/responses.js.map +1 -0
  17. package/dist/http/collection/store/entities.d.ts +4 -0
  18. package/dist/http/collection/store/entities.d.ts.map +1 -0
  19. package/dist/http/collection/store/entities.js +3 -0
  20. package/dist/http/collection/store/entities.js.map +1 -0
  21. package/dist/http/collection/store/index.d.ts +4 -0
  22. package/dist/http/collection/store/index.d.ts.map +1 -0
  23. package/dist/http/collection/store/index.js +20 -0
  24. package/dist/http/collection/store/index.js.map +1 -0
  25. package/dist/http/collection/store/queries.d.ts +4 -0
  26. package/dist/http/collection/store/queries.d.ts.map +1 -0
  27. package/dist/http/collection/{store.js → store/queries.js} +1 -1
  28. package/dist/http/collection/store/queries.js.map +1 -0
  29. package/dist/http/collection/store/responses.d.ts +9 -0
  30. package/dist/http/collection/store/responses.d.ts.map +1 -0
  31. package/dist/http/collection/store/responses.js +3 -0
  32. package/dist/http/collection/store/responses.js.map +1 -0
  33. package/dist/http/index.d.ts +1 -2
  34. package/dist/http/index.d.ts.map +1 -1
  35. package/dist/http/index.js +1 -2
  36. package/dist/http/index.js.map +1 -1
  37. package/dist/http/payment/admin.d.ts +14 -1
  38. package/dist/http/payment/admin.d.ts.map +1 -1
  39. package/dist/http/return/admin.d.ts +2 -1
  40. package/dist/http/return/admin.d.ts.map +1 -1
  41. package/dist/http/return-reason/admin/entities.d.ts +4 -0
  42. package/dist/http/return-reason/admin/entities.d.ts.map +1 -0
  43. package/dist/http/return-reason/admin/entities.js +3 -0
  44. package/dist/http/return-reason/admin/entities.js.map +1 -0
  45. package/dist/http/return-reason/admin/index.d.ts +5 -0
  46. package/dist/http/return-reason/admin/index.d.ts.map +1 -0
  47. package/dist/http/return-reason/admin/index.js +21 -0
  48. package/dist/http/return-reason/admin/index.js.map +1 -0
  49. package/dist/http/return-reason/admin/payloads.d.ts +10 -0
  50. package/dist/http/return-reason/admin/payloads.d.ts.map +1 -0
  51. package/dist/http/return-reason/admin/payloads.js +3 -0
  52. package/dist/http/return-reason/admin/payloads.js.map +1 -0
  53. package/dist/http/return-reason/admin/queries.d.ts +9 -0
  54. package/dist/http/return-reason/admin/queries.d.ts.map +1 -0
  55. package/dist/http/return-reason/{admin.js → admin/queries.js} +1 -1
  56. package/dist/http/return-reason/admin/queries.js.map +1 -0
  57. package/dist/http/return-reason/admin/responses.d.ts +12 -0
  58. package/dist/http/return-reason/admin/responses.d.ts.map +1 -0
  59. package/dist/http/return-reason/admin/responses.js +3 -0
  60. package/dist/http/return-reason/admin/responses.js.map +1 -0
  61. package/dist/http/return-reason/common.d.ts +12 -0
  62. package/dist/http/return-reason/common.d.ts.map +1 -1
  63. package/dist/http/shipping-option/admin/queries.d.ts +1 -0
  64. package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
  65. package/dist/order/common.d.ts +9 -5
  66. package/dist/order/common.d.ts.map +1 -1
  67. package/dist/order/mutations.d.ts +4 -0
  68. package/dist/order/mutations.d.ts.map +1 -1
  69. package/dist/order/service.d.ts +43 -20
  70. package/dist/order/service.d.ts.map +1 -1
  71. package/dist/workflow/order/items.d.ts +4 -0
  72. package/dist/workflow/order/items.d.ts.map +1 -1
  73. package/package.json +2 -2
  74. package/dist/http/cart/store.d.ts.map +0 -1
  75. package/dist/http/cart/store.js.map +0 -1
  76. package/dist/http/collection/store.d.ts +0 -6
  77. package/dist/http/collection/store.d.ts.map +0 -1
  78. package/dist/http/collection/store.js.map +0 -1
  79. package/dist/http/return-reason/admin.d.ts +0 -23
  80. package/dist/http/return-reason/admin.d.ts.map +0 -1
  81. package/dist/http/return-reason/admin.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ import { BaseCart, BaseCartAddress, BaseCartLineItem, BaseCartShippingMethod } from "../common";
2
+ export interface StoreCart extends BaseCart {
3
+ }
4
+ export interface StoreCartLineItem extends BaseCartLineItem {
5
+ }
6
+ export interface StoreCartAddress extends BaseCartAddress {
7
+ }
8
+ export interface StoreCartShippingMethod extends BaseCartShippingMethod {
9
+ }
10
+ //# sourceMappingURL=entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/cart/store/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,SAAU,SAAQ,QAAQ;CAAG;AAC9C,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAC9D,MAAM,WAAW,gBAAiB,SAAQ,eAAe;CAAG;AAC5D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;CAAG"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=store.js.map
3
+ //# sourceMappingURL=entities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/cart/store/entities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./entities";
2
+ export * from "./payloads";
3
+ export * from "./responses";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/cart/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,20 @@
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("./entities"), exports);
18
+ __exportStar(require("./payloads"), exports);
19
+ __exportStar(require("./responses"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/cart/store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B"}
@@ -1,12 +1,4 @@
1
- import { BaseCart, BaseCartAddress, BaseCartLineItem, BaseCartShippingMethod } from "./common";
2
- export interface StoreCart extends BaseCart {
3
- }
4
- export interface StoreCartLineItem extends BaseCartLineItem {
5
- }
6
- export interface StoreCartAddress extends BaseCartAddress {
7
- }
8
- export interface StoreCartShippingMethod extends BaseCartShippingMethod {
9
- }
1
+ import { StoreCartAddress, StoreCartLineItem } from "./entities";
10
2
  export interface StoreCreateCart {
11
3
  region_id?: string;
12
4
  shipping_address?: StoreCartAddress;
@@ -42,4 +34,4 @@ export interface StoreAddCartShippingMethods {
42
34
  export interface StoreCompleteCart {
43
35
  idempotency_key?: string;
44
36
  }
45
- //# sourceMappingURL=store.d.ts.map
37
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/cart/store/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,eAAe,CAAC,EAAE,gBAAgB,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,eAAe,CAAC,EAAE,gBAAgB,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/cart/store/payloads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { StoreOrder } from "../../order";
2
+ import { StoreCart } from "./entities";
3
+ export interface StoreCartResponse {
4
+ cart: StoreCart;
5
+ }
6
+ export type StoreCompleteCartResponse = {
7
+ type: "cart";
8
+ cart: StoreCart;
9
+ error: {
10
+ message: string;
11
+ name: string;
12
+ type: string;
13
+ };
14
+ } | {
15
+ type: "order";
16
+ order: StoreOrder;
17
+ };
18
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/cart/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAA;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,GAAG;IACF,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,UAAU,CAAA;CAClB,CAAA"}
@@ -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/cart/store/responses.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { BaseCollection } from "../common";
2
+ export interface StoreCollection extends BaseCollection {
3
+ }
4
+ //# sourceMappingURL=entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/collection/store/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA4B,MAAM,WAAW,CAAA;AAEpE,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/collection/store/entities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./entities";
2
+ export * from "./queries";
3
+ export * from "./responses";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/collection/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,20 @@
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("./entities"), exports);
18
+ __exportStar(require("./queries"), exports);
19
+ __exportStar(require("./responses"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/collection/store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
@@ -0,0 +1,4 @@
1
+ import { BaseCollectionListParams } from "../common";
2
+ export interface StoreCollectionFilters extends BaseCollectionListParams {
3
+ }
4
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/collection/store/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,sBAAuB,SAAQ,wBAAwB;CAAG"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=store.js.map
3
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/collection/store/queries.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { StoreCollection } from ".";
2
+ import { PaginatedResponse } from "../../common";
3
+ export interface StoreCollectionResponse {
4
+ collection: StoreCollection;
5
+ }
6
+ export type StoreCollectionListResponse = PaginatedResponse<{
7
+ collections: StoreCollection[];
8
+ }>;
9
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/collection/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,eAAe,CAAA;CAC5B;AAED,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC1D,WAAW,EAAE,eAAe,EAAE,CAAA;CAC/B,CAAC,CAAA"}
@@ -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/collection/store/responses.ts"],"names":[],"mappings":""}
@@ -24,10 +24,9 @@ export * from "./product-tag";
24
24
  export * from "./product-type";
25
25
  export * from "./promotion";
26
26
  export * from "./region";
27
- export * from "./return";
28
- export * from "./return-reason";
29
27
  export * from "./reservation";
30
28
  export * from "./return";
29
+ export * from "./return-reason";
31
30
  export * from "./sales-channel";
32
31
  export * from "./shipping-option";
33
32
  export * from "./shipping-profile";
@@ -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,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAA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zB,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;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
@@ -40,10 +40,9 @@ __exportStar(require("./product-tag"), exports);
40
40
  __exportStar(require("./product-type"), exports);
41
41
  __exportStar(require("./promotion"), exports);
42
42
  __exportStar(require("./region"), exports);
43
- __exportStar(require("./return"), exports);
44
- __exportStar(require("./return-reason"), exports);
45
43
  __exportStar(require("./reservation"), exports);
46
44
  __exportStar(require("./return"), exports);
45
+ __exportStar(require("./return-reason"), exports);
47
46
  __exportStar(require("./sales-channel"), exports);
48
47
  __exportStar(require("./shipping-option"), exports);
49
48
  __exportStar(require("./shipping-profile"), 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,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,2CAAwB;AACxB,kDAA+B;AAC/B,gDAA6B;AAC7B,2CAAwB;AACxB,kDAA+B;AAC/B,oDAAiC;AACjC,qDAAkC;AAClC,oDAAiC;AACjC,0CAAuB;AACvB,6CAA0B;AAC1B,+CAA4B;AAC5B,yCAAsB"}
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,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"}
@@ -1,5 +1,5 @@
1
1
  import { BaseFilterable } from "../../dal";
2
- import { BasePayment, BasePaymentCollection, BasePaymentCollectionFilters, BasePaymentFilters, BasePaymentProvider, BasePaymentProviderFilters, BasePaymentSession, BasePaymentSessionFilters, RefundReason } from "./common";
2
+ import { BasePayment, BasePaymentCollection, BasePaymentCollectionFilters, BasePaymentFilters, BasePaymentProvider, BasePaymentProviderFilters, BasePaymentSession, BasePaymentSessionFilters, BaseRefund, RefundReason } from "./common";
3
3
  export interface AdminPaymentProvider extends BasePaymentProvider {
4
4
  is_enabled: boolean;
5
5
  }
@@ -21,6 +21,8 @@ export interface AdminCapturePayment {
21
21
  }
22
22
  export interface AdminRefundPayment {
23
23
  amount?: number;
24
+ refund_reason_id?: string | null;
25
+ note?: string | null;
24
26
  }
25
27
  export interface AdminPaymentResponse {
26
28
  payment: AdminPayment;
@@ -30,6 +32,17 @@ export interface AdminPaymentsResponse {
30
32
  }
31
33
  export interface AdminPaymentFilters extends BasePaymentFilters {
32
34
  }
35
+ export interface AdminRefund extends BaseRefund {
36
+ }
37
+ export interface RefundFilters extends BaseFilterable<AdminRefund> {
38
+ id?: string | string[];
39
+ }
40
+ export interface AdminRefundResponse {
41
+ refund_reason: AdminRefund;
42
+ }
43
+ export interface AdminRefundsResponse {
44
+ refund_reasons: AdminRefund[];
45
+ }
33
46
  export interface AdminRefundReason extends RefundReason {
34
47
  }
35
48
  export interface RefundReasonFilters extends BaseFilterable<AdminRefundReason> {
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/payment/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EACzB,YAAY,EACb,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;CAAG;AACpD,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;CAAG;AACxE,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;CAAG;AAElE,MAAM,WAAW,2BACf,SAAQ,0BAA0B;IAClC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AACD,MAAM,WAAW,6BACf,SAAQ,4BAA4B;CAAG;AAC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,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
@@ -15,6 +15,7 @@ export interface AdminReturn {
15
15
  order_id: string;
16
16
  status?: string;
17
17
  exchange_id?: string;
18
+ location_id?: string;
18
19
  claim_id?: string;
19
20
  order_version: number;
20
21
  display_id: number;
@@ -67,7 +68,7 @@ export interface AdminConfirmReturnRequest {
67
68
  no_notification?: boolean;
68
69
  }
69
70
  export interface AdminUpdateReturnRequest {
70
- location_id?: string;
71
+ location_id?: string | null;
71
72
  no_notification?: boolean;
72
73
  metadata?: Record<string, unknown> | null;
73
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/return/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MA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E,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IACvD,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAC7D,MAAM,CAAC,EACH,MAAM,EAAE,GACR,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACxC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -0,0 +1,4 @@
1
+ import { BaseReturnReason } from "../common";
2
+ export interface AdminReturnReason extends BaseReturnReason {
3
+ }
4
+ //# sourceMappingURL=entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/entities.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from "./entities";
2
+ export * from "./payloads";
3
+ export * from "./queries";
4
+ export * from "./responses";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
@@ -0,0 +1,21 @@
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("./entities"), exports);
18
+ __exportStar(require("./payloads"), exports);
19
+ __exportStar(require("./queries"), exports);
20
+ __exportStar(require("./responses"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
@@ -0,0 +1,10 @@
1
+ import { AdminReturnReason } from "./entities";
2
+ type AdminBaseReturnReasonPayload = Pick<AdminReturnReason, "value" | "label" | "description">;
3
+ export interface AdminCreateReturnReason extends AdminBaseReturnReasonPayload {
4
+ metadata?: Record<string, unknown> | null;
5
+ }
6
+ export interface AdminUpdateReturnReason extends AdminBaseReturnReasonPayload {
7
+ metadata?: Record<string, unknown> | null;
8
+ }
9
+ export {};
10
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,KAAK,4BAA4B,GAAG,IAAI,CACtC,iBAAiB,EACjB,OAAO,GAAG,OAAO,GAAG,aAAa,CAClC,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/payloads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { BaseFilterable, OperatorMap } from "../../../dal";
2
+ import { SelectParams } from "../../common";
3
+ import { BaseReturnReasonListParams } from "../common";
4
+ export interface AdminReturnReasonListParams extends BaseReturnReasonListParams, BaseFilterable<AdminReturnReasonListParams> {
5
+ deleted_at?: OperatorMap<string>;
6
+ }
7
+ export interface AdminReturnReasonParams extends SelectParams {
8
+ }
9
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/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,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAEtD,MAAM,WAAW,2BACf,SAAQ,0BAA0B,EAChC,cAAc,CAAC,2BAA2B,CAAC;IAC7C,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=admin.js.map
3
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/queries.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { DeleteResponse, PaginatedResponse } from "../../common";
2
+ import { AdminReturnReason } from "../admin";
3
+ export interface AdminReturnReasonResponse {
4
+ return_reason: AdminReturnReason;
5
+ }
6
+ export interface AdminReturnReasonListResponse extends PaginatedResponse<{
7
+ return_reasons: AdminReturnReason[];
8
+ }> {
9
+ }
10
+ export interface AdminReturnReasonDeleteResponse extends DeleteResponse<"return_reason"> {
11
+ }
12
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,iBAAiB,CAAC;IACxB,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC;CAAG;AAEP,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,eAAe,CAAC;CAAG"}
@@ -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/return-reason/admin/responses.ts"],"names":[],"mappings":""}
@@ -1,3 +1,5 @@
1
+ import { OperatorMap } from "../../dal";
2
+ import { FindParams } from "../common";
1
3
  export interface BaseReturnReason {
2
4
  id: string;
3
5
  value: string;
@@ -7,4 +9,14 @@ export interface BaseReturnReason {
7
9
  created_at: string;
8
10
  updated_at: string;
9
11
  }
12
+ export interface BaseReturnReasonListParams extends FindParams {
13
+ q?: string;
14
+ id?: string | string[];
15
+ value?: string | OperatorMap<string>;
16
+ label?: string | OperatorMap<string>;
17
+ description?: string | OperatorMap<string>;
18
+ parent_return_reason_id?: string | OperatorMap<string | string[]>;
19
+ created_at?: OperatorMap<string>;
20
+ updated_at?: OperatorMap<string>;
21
+ }
10
22
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/return-reason/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/return-reason/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1C,uBAAuB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -4,6 +4,7 @@ export interface AdminShippingOptionListParams extends FindParams {
4
4
  id?: string | string[];
5
5
  q?: string;
6
6
  service_zone_id?: string;
7
+ stock_location_id?: string | string[];
7
8
  shipping_profile_id?: string;
8
9
  provider_id?: string;
9
10
  shipping_option_type_id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,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"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,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"}
@@ -7,7 +7,7 @@ import { ClaimReason } from "./mutations";
7
7
  /**
8
8
  * The change action's type.
9
9
  */
10
- export type ChangeActionType = "CANCEL" | "CANCEL_RETURN_ITEM" | "FULFILL_ITEM" | "CANCEL_ITEM_FULFILLMENT" | "ITEM_ADD" | "ITEM_REMOVE" | "RECEIVE_DAMAGED_RETURN_ITEM" | "RECEIVE_RETURN_ITEM" | "RETURN_ITEM" | "SHIPPING_ADD" | "SHIPPING_REMOVE" | "SHIP_ITEM" | "WRITE_OFF_ITEM" | "REINSTATE_ITEM";
10
+ export type ChangeActionType = "CANCEL" | "CANCEL_RETURN_ITEM" | "FULFILL_ITEM" | "CANCEL_ITEM_FULFILLMENT" | "ITEM_ADD" | "ITEM_REMOVE" | "ITEM_UPDATE" | "RECEIVE_DAMAGED_RETURN_ITEM" | "RECEIVE_RETURN_ITEM" | "RETURN_ITEM" | "SHIPPING_ADD" | "SHIPPING_REMOVE" | "SHIP_ITEM" | "WRITE_OFF_ITEM" | "REINSTATE_ITEM";
11
11
  /**
12
12
  * @interface
13
13
  *
@@ -1998,22 +1998,26 @@ export interface FilterableOrderItemProps extends BaseFilterable<FilterableOrder
1998
1998
  * The filters to apply on the retrieved return reasons.
1999
1999
  */
2000
2000
  export interface FilterableOrderReturnReasonProps extends BaseFilterable<FilterableOrderReturnReasonProps> {
2001
+ /**
2002
+ * Find return reasons through this search term
2003
+ */
2004
+ q?: string;
2001
2005
  /**
2002
2006
  * The IDs to filter the return reasons by.
2003
2007
  */
2004
- id?: string | string[];
2008
+ id?: string | string[] | OperatorMap<string | string[]>;
2005
2009
  /**
2006
2010
  * Filter the return reason by their value.
2007
2011
  */
2008
- value?: string | string[];
2012
+ value?: string | string[] | OperatorMap<string | string[]>;
2009
2013
  /**
2010
2014
  * Filter the return reason by their label.
2011
2015
  */
2012
- label?: string;
2016
+ label?: string | OperatorMap<string>;
2013
2017
  /**
2014
2018
  * Filter the return reason by their description.
2015
2019
  */
2016
- description?: string;
2020
+ description?: string | OperatorMap<string>;
2017
2021
  }
2018
2022
  /**
2019
2023
  * The filters to apply on the retrieved returns.