@medusajs/types 1.12.0-snapshot-20240728140928 → 1.12.0-snapshot-20240802122417
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common/config-module.d.ts +7 -1
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/http/claim/admin/entities.d.ts +4 -0
- package/dist/http/claim/admin/entities.d.ts.map +1 -0
- package/dist/http/claim/admin/entities.js +3 -0
- package/dist/http/claim/admin/entities.js.map +1 -0
- package/dist/http/claim/admin/index.d.ts +5 -0
- package/dist/http/claim/admin/index.d.ts.map +1 -0
- package/dist/http/claim/admin/index.js +21 -0
- package/dist/http/claim/admin/index.js.map +1 -0
- package/dist/http/claim/admin/payloads.d.ts +67 -0
- package/dist/http/claim/admin/payloads.d.ts.map +1 -0
- package/dist/http/claim/admin/payloads.js +10 -0
- package/dist/http/claim/admin/payloads.js.map +1 -0
- package/dist/http/claim/admin/queries.d.ts +14 -0
- package/dist/http/claim/admin/queries.d.ts.map +1 -0
- package/dist/http/claim/admin/queries.js +3 -0
- package/dist/http/claim/admin/queries.js.map +1 -0
- package/dist/http/claim/admin/responses.d.ts +12 -0
- package/dist/http/claim/admin/responses.d.ts.map +1 -0
- package/dist/http/claim/admin/responses.js +3 -0
- package/dist/http/claim/admin/responses.js.map +1 -0
- package/dist/http/claim/common.d.ts +36 -0
- package/dist/http/claim/common.d.ts.map +1 -0
- package/dist/http/claim/common.js +3 -0
- package/dist/http/claim/common.js.map +1 -0
- package/dist/http/claim/index.d.ts +2 -0
- package/dist/http/claim/index.d.ts.map +1 -0
- package/dist/http/claim/index.js +18 -0
- package/dist/http/claim/index.js.map +1 -0
- package/dist/http/common/request.d.ts +4 -0
- package/dist/http/common/request.d.ts.map +1 -1
- package/dist/http/currency/admin/index.d.ts +2 -0
- package/dist/http/currency/admin/index.d.ts.map +1 -1
- package/dist/http/currency/admin/index.js +2 -0
- package/dist/http/currency/admin/index.js.map +1 -1
- package/dist/http/currency/admin/queries.d.ts +9 -0
- package/dist/http/currency/admin/queries.d.ts.map +1 -0
- package/dist/http/currency/admin/queries.js +3 -0
- package/dist/http/currency/admin/queries.js.map +1 -0
- package/dist/http/currency/admin/responses.d.ts +10 -0
- package/dist/http/currency/admin/responses.d.ts.map +1 -0
- package/dist/http/currency/admin/responses.js +3 -0
- package/dist/http/currency/admin/responses.js.map +1 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts +1 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -1
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +1 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/notification/admin/entities.d.ts +1 -1
- package/dist/http/notification/admin/entities.d.ts.map +1 -1
- package/dist/http/order/admin.d.ts +2 -0
- package/dist/http/order/admin.d.ts.map +1 -1
- package/dist/http/payment/admin.d.ts +17 -1
- package/dist/http/payment/admin.d.ts.map +1 -1
- package/dist/http/payment/common.d.ts +3 -0
- package/dist/http/payment/common.d.ts.map +1 -1
- package/dist/http/product/admin/payloads.d.ts +4 -5
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/product/common.d.ts +4 -10
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/return/admin.d.ts +34 -0
- package/dist/http/return/admin.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/entities.d.ts +2 -0
- package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
- package/dist/order/common.d.ts +35 -0
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +28 -2
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +9 -2
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +1 -88
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/pricing/common/price-set.d.ts +12 -1
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/product/common.d.ts +7 -12
- package/dist/product/common.d.ts.map +1 -1
- package/dist/workflow/order/items.d.ts +21 -1
- package/dist/workflow/order/items.d.ts.map +1 -1
- package/dist/workflow/order/request-item-return.d.ts +5 -5
- package/dist/workflow/order/request-item-return.d.ts.map +1 -1
- package/package.json +1 -1
@@ -216,6 +216,12 @@ export type ProjectConfigOptions = {
|
|
216
216
|
* This is useful for production databases, which can be supported by setting the `rejectUnauthorized` attribute of `ssl` object to `false`.
|
217
217
|
* During development, it’s recommended not to pass this option.
|
218
218
|
*
|
219
|
+
* :::note
|
220
|
+
*
|
221
|
+
* Make sure to add to the end of the database URL `?ssl_mode=disable` as well when disabling `rejectUnauthorized`.
|
222
|
+
*
|
223
|
+
* :::
|
224
|
+
*
|
219
225
|
* @example
|
220
226
|
* ```js title="medusa-config.js"
|
221
227
|
* module.exports = defineConfig({
|
@@ -834,7 +840,7 @@ export type ConfigModule = {
|
|
834
840
|
*
|
835
841
|
* :::
|
836
842
|
*/
|
837
|
-
featureFlags: Record<string, boolean | string
|
843
|
+
featureFlags: Record<string, boolean | string | Record<string, boolean>>;
|
838
844
|
};
|
839
845
|
export type PluginDetails = {
|
840
846
|
resolve: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;;;;;;;;;OAaG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,CAAC,EAAE,aAAa,CAAA;IAE/B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB
|
1
|
+
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB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H,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACzE,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,WAAW,UAAW,SAAQ,SAAS;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/claim/admin/entities.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/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/claim/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
declare enum ClaimReason {
|
2
|
+
MISSING_ITEM = "missing_item",
|
3
|
+
WRONG_ITEM = "wrong_item",
|
4
|
+
PRODUCTION_FAILURE = "production_failure",
|
5
|
+
OTHER = "other"
|
6
|
+
}
|
7
|
+
interface AdminClaimAddItems {
|
8
|
+
items: {
|
9
|
+
id: string;
|
10
|
+
quantity: number;
|
11
|
+
reason?: ClaimReason;
|
12
|
+
description?: string;
|
13
|
+
internal_note?: string;
|
14
|
+
}[];
|
15
|
+
}
|
16
|
+
interface AdminClaimUpdateItem {
|
17
|
+
quantity?: number;
|
18
|
+
reason_id?: ClaimReason;
|
19
|
+
description?: string;
|
20
|
+
internal_note?: string;
|
21
|
+
}
|
22
|
+
interface AdminClaimAddShippingMethod {
|
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 AdminClaimUpdateShippingMethod {
|
30
|
+
custom_price?: number;
|
31
|
+
internal_note?: string;
|
32
|
+
metadata?: Record<string, unknown> | null;
|
33
|
+
}
|
34
|
+
export interface AdminCreateClaim {
|
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 AdminAddClaimItems extends AdminClaimAddItems {
|
42
|
+
}
|
43
|
+
export interface AdminUpdateClaimItem extends AdminClaimUpdateItem {
|
44
|
+
}
|
45
|
+
export interface AdminAddClaimInboundItems extends AdminClaimAddItems {
|
46
|
+
}
|
47
|
+
export interface AdminUpdateClaimInboundItem extends AdminClaimUpdateItem {
|
48
|
+
}
|
49
|
+
export interface AdminAddClaimOutboundItems extends AdminClaimAddItems {
|
50
|
+
}
|
51
|
+
export interface AdminUpdateClaimOutboundItem extends AdminClaimUpdateItem {
|
52
|
+
}
|
53
|
+
export interface AdminClaimAddInboundShipping extends AdminClaimAddShippingMethod {
|
54
|
+
}
|
55
|
+
export interface AdminClaimUpdateInboundShipping extends AdminClaimUpdateShippingMethod {
|
56
|
+
}
|
57
|
+
export interface AdminClaimAddOutboundShipping extends AdminClaimAddShippingMethod {
|
58
|
+
}
|
59
|
+
export interface AdminClaimUpdateOutboundShipping extends AdminClaimUpdateShippingMethod {
|
60
|
+
}
|
61
|
+
export interface AdminRequestClaim {
|
62
|
+
}
|
63
|
+
export interface AdminCancelClaim {
|
64
|
+
no_notification?: boolean;
|
65
|
+
}
|
66
|
+
export {};
|
67
|
+
//# sourceMappingURL=payloads.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/admin/payloads.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW;IACd,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,KAAK,UAAU;CAChB;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE;QACL,EAAE,EAAE,MA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AM,WAAW,0BAA2B,SAAQ,kBAAkB;CAAG;AACzE,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;CAAG;AAE7E,MAAM,WAAW,4BACf,SAAQ,2BAA2B;CAAG;AACxC,MAAM,WAAW,+BACf,SAAQ,8BAA8B;CAAG;AAE3C,MAAM,WAAW,6BACf,SAAQ,2BAA2B;CAAG;AACxC,MAAM,WAAW,gCACf,SAAQ,8BAA8B;CAAG;AAE3C,MAAM,WAAW,iBAAiB;CAEjC;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ClaimReason;
|
4
|
+
(function (ClaimReason) {
|
5
|
+
ClaimReason["MISSING_ITEM"] = "missing_item";
|
6
|
+
ClaimReason["WRONG_ITEM"] = "wrong_item";
|
7
|
+
ClaimReason["PRODUCTION_FAILURE"] = "production_failure";
|
8
|
+
ClaimReason["OTHER"] = "other";
|
9
|
+
})(ClaimReason || (ClaimReason = {}));
|
10
|
+
//# sourceMappingURL=payloads.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/claim/admin/payloads.ts"],"names":[],"mappings":";;AAAA,IAAK,WAKJ;AALD,WAAK,WAAW;IACd,4CAA6B,CAAA;IAC7B,wCAAyB,CAAA;IACzB,wDAAyC,CAAA;IACzC,8BAAe,CAAA;AACjB,CAAC,EALI,WAAW,KAAX,WAAW,QAKf"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { BaseFilterable, OperatorMap } from "../../../dal";
|
2
|
+
import { SelectParams } from "../../common";
|
3
|
+
import { BaseClaimListParams } from "../common";
|
4
|
+
export interface AdminClaimListParams extends BaseClaimListParams, BaseFilterable<AdminClaimListParams> {
|
5
|
+
deleted_at?: OperatorMap<string>;
|
6
|
+
}
|
7
|
+
export interface AdminClaimParams 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/claim/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,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE/C,MAAM,WAAW,oBACf,SAAQ,mBAAmB,EACzB,cAAc,CAAC,oBAAoB,CAAC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,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 @@
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/claim/admin/queries.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DeleteResponse, PaginatedResponse } from "../../common";
|
2
|
+
import { AdminClaim } from "./entities";
|
3
|
+
export interface AdminClaimResponse {
|
4
|
+
claim: AdminClaim;
|
5
|
+
}
|
6
|
+
export interface AdminClaimListResponse extends PaginatedResponse<{
|
7
|
+
claims: AdminClaim[];
|
8
|
+
}> {
|
9
|
+
}
|
10
|
+
export interface AdminClaimDeleteResponse extends DeleteResponse<"claim"> {
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=responses.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/claim/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,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,wBAAyB,SAAQ,cAAc,CAAC,OAAO,CAAC;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/claim/admin/responses.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { OperatorMap } from "../../dal";
|
2
|
+
import { FindParams } from "../common";
|
3
|
+
import { ClaimReason, ReturnDTO } from "../../order";
|
4
|
+
import { BaseOrder } from "../order/common";
|
5
|
+
import { BigNumberRawValue } from "../../totals";
|
6
|
+
export interface BaseClaimItem {
|
7
|
+
id: string;
|
8
|
+
claim_id: string;
|
9
|
+
order_id: string;
|
10
|
+
item_id: string;
|
11
|
+
quantity: number;
|
12
|
+
reason: ClaimReason;
|
13
|
+
raw_quantity: BigNumberRawValue;
|
14
|
+
metadata?: Record<string, unknown> | null;
|
15
|
+
created_at?: Date | string;
|
16
|
+
updated_at?: Date | string;
|
17
|
+
}
|
18
|
+
export interface BaseClaim extends Omit<BaseOrder, "status" | "version" | "items"> {
|
19
|
+
order_id: string;
|
20
|
+
claim_items: BaseClaimItem;
|
21
|
+
additional_items: any[];
|
22
|
+
return?: ReturnDTO;
|
23
|
+
return_id?: string;
|
24
|
+
no_notification?: boolean;
|
25
|
+
refund_amount?: number;
|
26
|
+
}
|
27
|
+
export interface BaseClaimListParams extends FindParams {
|
28
|
+
q?: string;
|
29
|
+
id?: string | string[];
|
30
|
+
order_id?: string | string[];
|
31
|
+
status?: string | string[];
|
32
|
+
created_at?: OperatorMap<string>;
|
33
|
+
updated_at?: OperatorMap<string>;
|
34
|
+
deleted_at?: OperatorMap<string>;
|
35
|
+
}
|
36
|
+
//# sourceMappingURL=common.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/claim/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;IACnB,YAAY,EAAE,iBAAiB,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACzC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,aAAa,CAAA;IAC1B,gBAAgB,EAAE,GAAG,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,CAAC,CAAC,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/claim/common.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/claim/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,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("./admin"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/claim/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/http/common/request.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../src/http/common/request.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/currency/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/currency/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
@@ -15,4 +15,6 @@ 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("./queries"), exports);
|
19
|
+
__exportStar(require("./responses"), exports);
|
18
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/currency/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/currency/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BaseFilterable } from "../../../dal";
|
2
|
+
import { FindParams, SelectParams } from "../../common";
|
3
|
+
export interface AdminCurrencyParams extends SelectParams {
|
4
|
+
}
|
5
|
+
export interface AdminCurrencyListParams extends FindParams, BaseFilterable<AdminCurrencyListParams> {
|
6
|
+
q?: string;
|
7
|
+
code?: string | string[];
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=queries.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/currency/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG;AAE5D,MAAM,WAAW,uBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,uBAAuB,CAAC;IACzC,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/currency/admin/queries.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PaginatedResponse } from "../../common";
|
2
|
+
import { AdminCurrency } from "./entities";
|
3
|
+
export interface AdminCurrencyResponse {
|
4
|
+
currency: AdminCurrency;
|
5
|
+
}
|
6
|
+
export interface AdminCurrencyListResponse extends PaginatedResponse<{
|
7
|
+
currencies: AdminCurrency[];
|
8
|
+
}> {
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=responses.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/currency/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,yBACf,SAAQ,iBAAiB,CAAC;IAAE,UAAU,EAAE,aAAa,EAAE,CAAA;CAAE,CAAC;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/currency/admin/responses.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment-provider/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,kCAAmC,SAAQ,UAAU;IACpE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment-provider/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,kCAAmC,SAAQ,UAAU;IACpE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACtC"}
|
package/dist/http/index.d.ts
CHANGED
package/dist/http/index.d.ts.map
CHANGED
@@ -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,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,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,CA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c,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"}
|
package/dist/http/index.js
CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api-key"), exports);
|
18
18
|
__exportStar(require("./campaign"), exports);
|
19
19
|
__exportStar(require("./cart"), exports);
|
20
|
+
__exportStar(require("./claim"), exports);
|
20
21
|
__exportStar(require("./collection"), exports);
|
21
22
|
__exportStar(require("./common"), exports);
|
22
23
|
__exportStar(require("./currency"), exports);
|
package/dist/http/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,yCAAsB;AACtB,+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,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 +1 @@
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { AdminPaymentCollection } from "../payment/admin";
|
1
2
|
import { BaseOrder, BaseOrderAddress, BaseOrderFilters, BaseOrderLineItem, BaseOrderShippingMethod } from "./common";
|
2
3
|
export interface AdminOrder extends BaseOrder {
|
4
|
+
payment_collections: AdminPaymentCollection[];
|
3
5
|
}
|
4
6
|
export interface AdminOrderLineItem extends BaseOrderLineItem {
|
5
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/order/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,UAAW,SAAQ,SAAS;
|
1
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M,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B"}
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import { BasePaymentCollection, BasePaymentCollectionFilters, BasePaymentProvider, BasePaymentProviderFilters, BasePaymentSession, BasePaymentSessionFilters } from "./common";
|
1
|
+
import { BasePayment, BasePaymentCollection, BasePaymentCollectionFilters, BasePaymentFilters, BasePaymentProvider, BasePaymentProviderFilters, BasePaymentSession, BasePaymentSessionFilters } from "./common";
|
2
2
|
export interface AdminPaymentProvider extends BasePaymentProvider {
|
3
3
|
is_enabled: boolean;
|
4
4
|
}
|
5
|
+
export interface AdminPayment extends BasePayment {
|
6
|
+
}
|
5
7
|
export interface AdminPaymentCollection extends BasePaymentCollection {
|
6
8
|
}
|
7
9
|
export interface AdminPaymentSession extends BasePaymentSession {
|
@@ -13,4 +15,18 @@ export interface AdminPaymentCollectionFilters extends BasePaymentCollectionFilt
|
|
13
15
|
}
|
14
16
|
export interface AdminPaymentSessionFilters extends BasePaymentSessionFilters {
|
15
17
|
}
|
18
|
+
export interface AdminCapturePayment {
|
19
|
+
amount?: number;
|
20
|
+
}
|
21
|
+
export interface AdminRefundPayment {
|
22
|
+
amount?: number;
|
23
|
+
}
|
24
|
+
export interface AdminPaymentResponse {
|
25
|
+
payment: AdminPayment;
|
26
|
+
}
|
27
|
+
export interface AdminPaymentsResponse {
|
28
|
+
payments: AdminPayment[];
|
29
|
+
}
|
30
|
+
export interface AdminPaymentFilters extends BasePaymentFilters {
|
31
|
+
}
|
16
32
|
//# sourceMappingURL=admin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/payment/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,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B;IACpC,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;CAAG"}
|
@@ -336,4 +336,7 @@ export interface BasePaymentProviderFilters extends BaseFilterable<BasePaymentPr
|
|
336
336
|
id?: string | string[];
|
337
337
|
region_id?: string | string[];
|
338
338
|
}
|
339
|
+
export interface BasePaymentFilters extends BaseFilterable<BasePaymentFilters> {
|
340
|
+
id?: string | string[];
|
341
|
+
}
|
339
342
|
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/payment/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,GACV,UAAU,GACV,YAAY,GACZ,sBAAsB,GACtB,UAAU,CAAA;AAEd;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAChC,YAAY,GACZ,SAAS,GACT,eAAe,GACf,OAAO,GACP,UAAU,CAAA;AAEd,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,cAAc,CAAA;IAElC;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,CAAA;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,C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E,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACvB"}
|
@@ -3,6 +3,7 @@ import { ProductStatus } from "../common";
|
|
3
3
|
export interface AdminExportProductRequest {
|
4
4
|
}
|
5
5
|
export interface AdminImportProductRequest {
|
6
|
+
file: File;
|
6
7
|
}
|
7
8
|
export interface AdminBatchProductRequest extends BatchMethodRequest<AdminCreateProduct, AdminUpdateProduct> {
|
8
9
|
}
|
@@ -58,8 +59,7 @@ export interface AdminCreateProduct {
|
|
58
59
|
id: string;
|
59
60
|
}[];
|
60
61
|
tags?: {
|
61
|
-
id
|
62
|
-
value?: string;
|
62
|
+
id: string;
|
63
63
|
}[];
|
64
64
|
options?: AdminCreateProductOption[];
|
65
65
|
variants?: AdminCreateProductVariant[];
|
@@ -115,11 +115,10 @@ export interface AdminUpdateProduct {
|
|
115
115
|
id: string;
|
116
116
|
}[];
|
117
117
|
tags?: {
|
118
|
-
id
|
119
|
-
value?: string;
|
118
|
+
id: string;
|
120
119
|
}[];
|
121
120
|
options?: AdminUpdateProductOption[];
|
122
|
-
variants?: AdminCreateProductVariant[];
|
121
|
+
variants?: (AdminCreateProductVariant | AdminUpdateProductVariant)[];
|
123
122
|
sales_channels?: {
|
124
123
|
id: string;
|
125
124
|
}[];
|