@medusajs/types 2.0.0-rc-20241018141633 → 2.0.0-rc-20241022152047
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-key/common/api-key.d.ts +8 -0
- package/dist/api-key/common/api-key.d.ts.map +1 -1
- package/dist/common/common.d.ts +10 -2
- package/dist/common/common.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +19 -0
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/http/api-key/admin/payloads.d.ts +9 -0
- package/dist/http/api-key/admin/payloads.d.ts.map +1 -1
- package/dist/http/api-key/admin/queries.d.ts +27 -2
- package/dist/http/api-key/admin/queries.d.ts.map +1 -1
- package/dist/http/api-key/admin/responses.d.ts +45 -0
- package/dist/http/api-key/admin/responses.d.ts.map +1 -1
- package/dist/http/campaign/admin/payloads.d.ts +74 -0
- package/dist/http/campaign/admin/payloads.d.ts.map +1 -1
- package/dist/http/campaign/admin/responses.d.ts +54 -0
- package/dist/http/campaign/admin/responses.d.ts.map +1 -1
- package/dist/http/cart/store/entities.d.ts +39 -0
- package/dist/http/cart/store/entities.d.ts.map +1 -1
- package/dist/http/cart/store/payloads.d.ts +74 -0
- package/dist/http/cart/store/payloads.d.ts.map +1 -1
- package/dist/http/cart/store/responses.d.ts +28 -0
- package/dist/http/cart/store/responses.d.ts.map +1 -1
- package/dist/http/claim/admin/entities.d.ts +9 -0
- package/dist/http/claim/admin/entities.d.ts.map +1 -1
- package/dist/http/claim/admin/payloads.d.ts +71 -0
- package/dist/http/claim/admin/payloads.d.ts.map +1 -1
- package/dist/http/claim/admin/queries.d.ts +0 -1
- package/dist/http/claim/admin/queries.d.ts.map +1 -1
- package/dist/http/claim/admin/responses.d.ts +24 -0
- package/dist/http/claim/admin/responses.d.ts.map +1 -1
- package/dist/http/claim/common.d.ts +81 -0
- package/dist/http/claim/common.d.ts.map +1 -1
- package/dist/http/collection/common.d.ts +44 -2
- package/dist/http/collection/common.d.ts.map +1 -1
- package/dist/http/collection/store/entities.d.ts +3 -0
- package/dist/http/collection/store/entities.d.ts.map +1 -1
- package/dist/http/collection/store/queries.d.ts +0 -2
- package/dist/http/collection/store/queries.d.ts.map +1 -1
- package/dist/http/collection/store/responses.d.ts +6 -0
- package/dist/http/collection/store/responses.d.ts.map +1 -1
- package/dist/http/common/request.d.ts +23 -0
- package/dist/http/common/request.d.ts.map +1 -1
- package/dist/http/common/response.d.ts +9 -0
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/currency/admin/queries.d.ts +6 -0
- package/dist/http/currency/admin/queries.d.ts.map +1 -1
- package/dist/http/currency/admin/responses.d.ts +6 -0
- package/dist/http/currency/admin/responses.d.ts.map +1 -1
- package/dist/http/currency/common.d.ts +36 -0
- package/dist/http/currency/common.d.ts.map +1 -1
- package/dist/http/customer/admin/entities.d.ts +9 -0
- package/dist/http/customer/admin/entities.d.ts.map +1 -1
- package/dist/http/customer/admin/queries.d.ts +6 -0
- package/dist/http/customer/admin/queries.d.ts.map +1 -1
- package/dist/http/customer/admin/responses.d.ts +6 -0
- package/dist/http/customer/admin/responses.d.ts.map +1 -1
- package/dist/http/customer/common.d.ts +285 -0
- package/dist/http/customer/common.d.ts.map +1 -1
- package/dist/http/customer/store/entities.d.ts +3 -0
- package/dist/http/customer/store/entities.d.ts.map +1 -1
- package/dist/http/customer/store/responses.d.ts +9 -0
- package/dist/http/customer/store/responses.d.ts.map +1 -1
- package/dist/http/customer-group/admin/entities.d.ts +3 -0
- package/dist/http/customer-group/admin/entities.d.ts.map +1 -1
- package/dist/http/customer-group/admin/payloads.d.ts +12 -0
- package/dist/http/customer-group/admin/payloads.d.ts.map +1 -1
- package/dist/http/customer-group/admin/queries.d.ts +59 -4
- package/dist/http/customer-group/admin/queries.d.ts.map +1 -1
- package/dist/http/customer-group/admin/responses.d.ts +6 -0
- package/dist/http/customer-group/admin/responses.d.ts.map +1 -1
- package/dist/http/customer-group/common.d.ts +18 -0
- package/dist/http/customer-group/common.d.ts.map +1 -1
- package/dist/http/exchange/admin/payloads.d.ts +71 -5
- package/dist/http/exchange/admin/payloads.d.ts.map +1 -1
- package/dist/http/exchange/admin/queries.d.ts +3 -6
- package/dist/http/exchange/admin/queries.d.ts.map +1 -1
- package/dist/http/exchange/admin/responses.d.ts +21 -0
- package/dist/http/exchange/admin/responses.d.ts.map +1 -1
- package/dist/http/exchange/common.d.ts +109 -0
- package/dist/http/exchange/common.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/entitites.d.ts +139 -0
- package/dist/http/fulfillment/admin/entitites.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/payloads.d.ts +113 -1
- package/dist/http/fulfillment/admin/payloads.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/responses.d.ts +3 -0
- package/dist/http/fulfillment/admin/responses.d.ts.map +1 -1
- package/dist/http/fulfillment/store/index.d.ts +54 -1
- package/dist/http/fulfillment/store/index.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/admin/queries.d.ts +13 -0
- package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/admin/responses.d.ts +3 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/common.d.ts +6 -0
- package/dist/http/fulfillment-provider/common.d.ts.map +1 -1
- package/dist/http/fulfillment-set/admin/entities.d.ts +84 -0
- package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -1
- package/dist/http/fulfillment-set/admin/payloads.d.ts +66 -0
- package/dist/http/fulfillment-set/admin/payloads.d.ts.map +1 -1
- package/dist/http/fulfillment-set/admin/responses.d.ts +6 -0
- package/dist/http/fulfillment-set/admin/responses.d.ts.map +1 -1
- package/dist/http/inventory/admin/entities.d.ts +84 -0
- package/dist/http/inventory/admin/entities.d.ts.map +1 -1
- package/dist/http/inventory/admin/payloads.d.ts +42 -0
- package/dist/http/inventory/admin/payloads.d.ts.map +1 -1
- package/dist/http/inventory/admin/queries.d.ts +40 -0
- package/dist/http/inventory/admin/queries.d.ts.map +1 -1
- package/dist/http/inventory/admin/responses.d.ts +6 -0
- package/dist/http/inventory/admin/responses.d.ts.map +1 -1
- package/dist/http/inventory-level/admin/entities.d.ts +28 -0
- package/dist/http/inventory-level/admin/entities.d.ts.map +1 -1
- package/dist/http/inventory-level/admin/payloads.d.ts +30 -0
- package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -1
- package/dist/http/inventory-level/admin/queries.d.ts +4 -0
- package/dist/http/inventory-level/admin/queries.d.ts.map +1 -1
- package/dist/http/inventory-level/admin/responses.d.ts +6 -0
- package/dist/http/inventory-level/admin/responses.d.ts.map +1 -1
- package/dist/http/invite/admin/entities.d.ts +24 -0
- package/dist/http/invite/admin/entities.d.ts.map +1 -1
- package/dist/http/invite/admin/payloads.d.ts +16 -0
- package/dist/http/invite/admin/payloads.d.ts.map +1 -1
- package/dist/http/invite/admin/responses.d.ts +12 -0
- package/dist/http/invite/admin/responses.d.ts.map +1 -1
- package/dist/http/order/admin/entities.d.ts +45 -0
- package/dist/http/order/admin/entities.d.ts.map +1 -1
- package/dist/http/order/admin/queries.d.ts +6 -0
- package/dist/http/order/admin/queries.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +630 -0
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/order/store/entities.d.ts +39 -0
- package/dist/http/order/store/entities.d.ts.map +1 -1
- package/dist/http/order/store/queries.d.ts +6 -0
- package/dist/http/order/store/queries.d.ts.map +1 -1
- package/dist/http/order/store/responses.d.ts +6 -0
- package/dist/http/order/store/responses.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/payment/store/entities.d.ts +9 -0
- package/dist/http/payment/store/entities.d.ts.map +1 -1
- package/dist/http/payment/store/payloads.d.ts +18 -0
- package/dist/http/payment/store/payloads.d.ts.map +1 -1
- package/dist/http/payment/store/queries.d.ts +3 -0
- package/dist/http/payment/store/queries.d.ts.map +1 -1
- package/dist/http/payment/store/responses.d.ts +6 -0
- package/dist/http/payment/store/responses.d.ts.map +1 -1
- package/dist/http/product/admin/payloads.d.ts +2 -0
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/product/common.d.ts +268 -0
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/product/store/entitites.d.ts +36 -0
- package/dist/http/product/store/entitites.d.ts.map +1 -1
- package/dist/http/product/store/queries.d.ts +19 -1
- package/dist/http/product/store/queries.d.ts.map +1 -1
- package/dist/http/product/store/responses.d.ts +6 -0
- package/dist/http/product/store/responses.d.ts.map +1 -1
- package/dist/http/product-category/common.d.ts +94 -0
- package/dist/http/product-category/common.d.ts.map +1 -1
- package/dist/http/product-category/store/entities.d.ts +9 -0
- package/dist/http/product-category/store/entities.d.ts.map +1 -1
- package/dist/http/product-category/store/queries.d.ts +1 -1
- package/dist/http/product-category/store/queries.d.ts.map +1 -1
- package/dist/http/product-category/store/responses.d.ts +6 -0
- package/dist/http/product-category/store/responses.d.ts.map +1 -1
- package/dist/http/promotion/common.d.ts +3 -0
- package/dist/http/promotion/common.d.ts.map +1 -1
- package/dist/http/region/common.d.ts +69 -0
- package/dist/http/region/common.d.ts.map +1 -1
- package/dist/http/region/store/responses.d.ts +6 -0
- package/dist/http/region/store/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/store/queries.d.ts +8 -0
- package/dist/http/shipping-option/store/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/store/responses.d.ts +2 -2
- package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
- package/dist/product/common.d.ts +8 -0
- package/dist/product/common.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,31 +1,86 @@
|
|
1
1
|
import { BaseFilterable, OperatorMap } from "../../../dal";
|
2
2
|
import { FindParams, SelectParams } from "../../common";
|
3
3
|
export interface AdminCustomerInGroupFilters {
|
4
|
+
/**
|
5
|
+
* Filter by customer ID(s).
|
6
|
+
*/
|
4
7
|
id?: string | string[];
|
8
|
+
/**
|
9
|
+
* Filter by email(s).
|
10
|
+
*/
|
5
11
|
email?: string | string[] | OperatorMap<string>;
|
12
|
+
/**
|
13
|
+
* Filter by IDs of default billing addresses to retrieve
|
14
|
+
* their associated customers.
|
15
|
+
*/
|
6
16
|
default_billing_address_id?: string | string[];
|
17
|
+
/**
|
18
|
+
* Filter by IDs of default shipping addresses to retrieve
|
19
|
+
* their associated customers.
|
20
|
+
*/
|
7
21
|
default_shipping_address_id?: string | string[];
|
22
|
+
/**
|
23
|
+
* Filter by company name(s).
|
24
|
+
*/
|
8
25
|
company_name?: string | string[];
|
26
|
+
/**
|
27
|
+
* Filter by first name(s).
|
28
|
+
*/
|
9
29
|
first_name?: string | string[];
|
30
|
+
/**
|
31
|
+
* Filter by last name(s).
|
32
|
+
*/
|
10
33
|
last_name?: string | string[];
|
34
|
+
/**
|
35
|
+
* Filter by user IDs to retrieve the customers they created.
|
36
|
+
*/
|
11
37
|
created_by?: string | string[];
|
38
|
+
/**
|
39
|
+
* Apply filters on the customer's creation date.
|
40
|
+
*/
|
12
41
|
created_at?: OperatorMap<string>;
|
42
|
+
/**
|
43
|
+
* Apply filters on the customer's update date.
|
44
|
+
*/
|
13
45
|
updated_at?: OperatorMap<string>;
|
46
|
+
/**
|
47
|
+
* Apply filters on the customer's deletion date.
|
48
|
+
*/
|
14
49
|
deleted_at?: OperatorMap<string>;
|
15
50
|
}
|
16
51
|
export interface AdminGetCustomerGroupsParams extends FindParams, BaseFilterable<AdminGetCustomerGroupsParams> {
|
17
|
-
|
18
|
-
|
52
|
+
/**
|
53
|
+
* Query or keywords to search the customer group's searchable fields.
|
54
|
+
*/
|
19
55
|
q?: string;
|
56
|
+
/**
|
57
|
+
* Filter by customer group ID(s).
|
58
|
+
*/
|
20
59
|
id?: string | string[];
|
60
|
+
/**
|
61
|
+
* Filter by name(s).
|
62
|
+
*/
|
21
63
|
name?: string | string[];
|
64
|
+
/**
|
65
|
+
* Filter by customers to retrieve their associated groups.
|
66
|
+
*/
|
22
67
|
customers?: string | string[] | AdminCustomerInGroupFilters;
|
68
|
+
/**
|
69
|
+
* Filter by IDs of users to retrieve the groups they created.
|
70
|
+
*/
|
23
71
|
created_by?: string | string[];
|
72
|
+
/**
|
73
|
+
* Apply filters on the group's creation date.
|
74
|
+
*/
|
24
75
|
created_at?: OperatorMap<string>;
|
76
|
+
/**
|
77
|
+
* Apply filters on the group's update date.
|
78
|
+
*/
|
25
79
|
updated_at?: OperatorMap<string>;
|
80
|
+
/**
|
81
|
+
* Apply filters on the group's deletion date.
|
82
|
+
*/
|
26
83
|
deleted_at?: OperatorMap<string>;
|
27
|
-
$and?: AdminGetCustomerGroupsParams[];
|
28
|
-
$or?: AdminGetCustomerGroupsParams[];
|
29
84
|
}
|
30
85
|
export interface AdminGetCustomerGroupParams extends SelectParams {
|
31
86
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,2BAA2B;IAC1C,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9C,2BAA2B,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B,UAAU,CAAC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CAAA;CACjC;AAED,MAAM,WAAW,4BACf,SAAQ,UAAU,EAChB,cAAc,CAAC,4BAA4B,CAAC;IAC9C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,2BAA2B,CAAA;IAC3D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,2BAA4B,SAAQ,YAAY;CAAG"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { PaginatedResponse } from "../../common";
|
2
2
|
import { AdminCustomerGroup } from "./entities";
|
3
3
|
export interface AdminCustomerGroupResponse {
|
4
|
+
/**
|
5
|
+
* The customer group's details.
|
6
|
+
*/
|
4
7
|
customer_group: AdminCustomerGroup;
|
5
8
|
}
|
6
9
|
export type AdminCustomerGroupListResponse = PaginatedResponse<{
|
10
|
+
/**
|
11
|
+
* The list of customer groups.
|
12
|
+
*/
|
7
13
|
customer_groups: AdminCustomerGroup[];
|
8
14
|
}>;
|
9
15
|
//# sourceMappingURL=responses.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/customer-group/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D;;OAEG;IACH,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC,CAAA"}
|
@@ -1,10 +1,28 @@
|
|
1
1
|
import { BaseCustomer } from "../customer/common";
|
2
2
|
export interface BaseCustomerGroup {
|
3
|
+
/**
|
4
|
+
* The customer group's ID.
|
5
|
+
*/
|
3
6
|
id: string;
|
7
|
+
/**
|
8
|
+
* The customer group's name.
|
9
|
+
*/
|
4
10
|
name: string | null;
|
11
|
+
/**
|
12
|
+
* The customers in the group.
|
13
|
+
*/
|
5
14
|
customers: BaseCustomer[];
|
15
|
+
/**
|
16
|
+
* Key-value pairs of custom data.
|
17
|
+
*/
|
6
18
|
metadata: Record<string, unknown> | null;
|
19
|
+
/**
|
20
|
+
* The date the customer group was created.
|
21
|
+
*/
|
7
22
|
created_at: string;
|
23
|
+
/**
|
24
|
+
* The date the customer group was updated.
|
25
|
+
*/
|
8
26
|
updated_at: string;
|
9
27
|
}
|
10
28
|
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/customer-group/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/customer-group/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB;;OAEG;IACH,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
@@ -5,43 +5,106 @@ declare enum ExchangeReason {
|
|
5
5
|
OTHER = "other"
|
6
6
|
}
|
7
7
|
interface AdminExchangeAddItems {
|
8
|
+
/**
|
9
|
+
* The items to add to the exchange.
|
10
|
+
*/
|
8
11
|
items: {
|
12
|
+
/**
|
13
|
+
* If you're adding an inbound item, this is the ID of the order item returned.
|
14
|
+
* If you're adding an outbound item, this is the ID of the variant to add.
|
15
|
+
*/
|
9
16
|
id: string;
|
17
|
+
/**
|
18
|
+
* The item's quantity.
|
19
|
+
*/
|
10
20
|
quantity: number;
|
21
|
+
/**
|
22
|
+
* The reason the item is being returned / sent to the customer.
|
23
|
+
*/
|
11
24
|
reason?: ExchangeReason;
|
25
|
+
/**
|
26
|
+
* The item's description.
|
27
|
+
*/
|
12
28
|
description?: string;
|
29
|
+
/**
|
30
|
+
* An internal note viewed by admin users only.
|
31
|
+
*/
|
13
32
|
internal_note?: string;
|
14
33
|
}[];
|
15
34
|
}
|
16
35
|
interface AdminExchangeUpdateItem {
|
36
|
+
/**
|
37
|
+
* The item's quantity.
|
38
|
+
*/
|
17
39
|
quantity?: number;
|
40
|
+
/**
|
41
|
+
* The ID of the associated return reason.
|
42
|
+
*/
|
18
43
|
reason_id?: string | null;
|
44
|
+
/**
|
45
|
+
* The item's description.
|
46
|
+
*/
|
19
47
|
description?: string;
|
48
|
+
/**
|
49
|
+
* An internal note viewed by admin users only.
|
50
|
+
*/
|
20
51
|
internal_note?: string | null;
|
21
52
|
}
|
22
53
|
interface AdminExchangeAddShippingMethod {
|
54
|
+
/**
|
55
|
+
* The ID of the shipping option the method is created from.
|
56
|
+
*/
|
23
57
|
shipping_option_id: string;
|
58
|
+
/**
|
59
|
+
* A custom amount for the shipping method. If not specified,
|
60
|
+
* the shipping option's amount is used.
|
61
|
+
*/
|
24
62
|
custom_amount?: number;
|
63
|
+
/**
|
64
|
+
* The shipping method's description.
|
65
|
+
*/
|
25
66
|
description?: string;
|
67
|
+
/**
|
68
|
+
* An internal note viewed by admin users only.
|
69
|
+
*/
|
26
70
|
internal_note?: string;
|
71
|
+
/**
|
72
|
+
* Key-value pairs of custom data.
|
73
|
+
*/
|
27
74
|
metadata?: Record<string, unknown> | null;
|
28
75
|
}
|
29
76
|
interface AdminExchangeUpdateShippingMethod {
|
77
|
+
/**
|
78
|
+
* A custom amount for the shipping method.
|
79
|
+
*/
|
30
80
|
custom_amount?: number | null;
|
81
|
+
/**
|
82
|
+
* An internal note viewed by admin users only.
|
83
|
+
*/
|
31
84
|
internal_note?: string;
|
85
|
+
/**
|
86
|
+
* Key-value pairs of custom data.
|
87
|
+
*/
|
32
88
|
metadata?: Record<string, unknown> | null;
|
33
89
|
}
|
34
90
|
export interface AdminCreateExchange {
|
35
|
-
|
91
|
+
/**
|
92
|
+
* The ID of the order the exchange is created for.
|
93
|
+
*/
|
36
94
|
order_id: string;
|
95
|
+
/**
|
96
|
+
* The exchange's description.
|
97
|
+
*/
|
37
98
|
description?: string;
|
99
|
+
/**
|
100
|
+
* An internal note viewed by admin users only.
|
101
|
+
*/
|
38
102
|
internal_note?: string;
|
103
|
+
/**
|
104
|
+
* Key-value pairs of custom data.
|
105
|
+
*/
|
39
106
|
metadata?: Record<string, unknown> | null;
|
40
107
|
}
|
41
|
-
export interface AdminAddExchangeItems extends AdminExchangeAddItems {
|
42
|
-
}
|
43
|
-
export interface AdminUpdateExchangeItem extends AdminExchangeUpdateItem {
|
44
|
-
}
|
45
108
|
export interface AdminAddExchangeInboundItems extends AdminExchangeAddItems {
|
46
109
|
}
|
47
110
|
export interface AdminUpdateExchangeInboundItem extends AdminExchangeUpdateItem {
|
@@ -59,6 +122,9 @@ export interface AdminExchangeAddOutboundShipping extends AdminExchangeAddShippi
|
|
59
122
|
export interface AdminExchangeUpdateOutboundShipping extends AdminExchangeUpdateShippingMethod {
|
60
123
|
}
|
61
124
|
export interface AdminRequestExchange {
|
125
|
+
/**
|
126
|
+
* Whether to send the customer a notification.
|
127
|
+
*/
|
62
128
|
no_notification?: boolean;
|
63
129
|
}
|
64
130
|
export interface AdminCancelExchange {
|
@@ -1 +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,EAAE,EAAE,MAAM,CAAA;QACV,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,cAAc,CAAA;QACvB,WAAW,CAAC,EAAE,MAAM,CAAA;Q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C,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;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B"}
|
@@ -1,11 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { OperatorMap } from "../../../dal";
|
2
2
|
import { SelectParams } from "../../common";
|
3
|
-
|
4
|
-
export interface AdminExchangeListParams extends BaseExchangeListParams, BaseFilterable<AdminExchangeListParams> {
|
5
|
-
deleted_at?: OperatorMap<string>;
|
6
|
-
}
|
7
|
-
export interface AdminExchangeParams extends SelectParams {
|
3
|
+
export interface AdminExchangeListParams extends SelectParams {
|
8
4
|
id?: string | string[];
|
5
|
+
order_id?: string | string[];
|
9
6
|
status?: string | string[];
|
10
7
|
created_at?: OperatorMap<string>;
|
11
8
|
updated_at?: OperatorMap<string>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,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"}
|
@@ -4,9 +4,15 @@ import { AdminOrderPreview } from "../../order";
|
|
4
4
|
import { AdminReturn } from "../../return";
|
5
5
|
import { AdminExchange } from "./entities";
|
6
6
|
export interface AdminExchangeResponse {
|
7
|
+
/**
|
8
|
+
* The exchange's details.
|
9
|
+
*/
|
7
10
|
exchange: AdminExchange;
|
8
11
|
}
|
9
12
|
export type AdminExchangeListResponse = PaginatedResponse<{
|
13
|
+
/**
|
14
|
+
* This list of exchanges.
|
15
|
+
*/
|
10
16
|
exchanges: AdminExchange[];
|
11
17
|
}>;
|
12
18
|
export interface AdminExchangeOrderResponse {
|
@@ -14,14 +20,29 @@ export interface AdminExchangeOrderResponse {
|
|
14
20
|
exchange: AdminExchange;
|
15
21
|
}
|
16
22
|
export interface AdminExchangePreviewResponse {
|
23
|
+
/**
|
24
|
+
* The preview of the order when the exchange is applied.
|
25
|
+
*/
|
17
26
|
order_preview: AdminOrderPreview;
|
27
|
+
/**
|
28
|
+
* The exchange's details.
|
29
|
+
*/
|
18
30
|
exchange: AdminExchange;
|
19
31
|
}
|
20
32
|
export interface AdminExchangeRequestResponse extends AdminExchangePreviewResponse {
|
33
|
+
/**
|
34
|
+
* The return associated with the exchange.
|
35
|
+
*/
|
21
36
|
return: AdminReturn;
|
22
37
|
}
|
23
38
|
export interface AdminExchangeReturnResponse {
|
39
|
+
/**
|
40
|
+
* A preview of the order when the exchange is confirmed.
|
41
|
+
*/
|
24
42
|
order_preview: AdminOrderPreview;
|
43
|
+
/**
|
44
|
+
* The return associated with the exchange.
|
45
|
+
*/
|
25
46
|
return: AdminReturn;
|
26
47
|
}
|
27
48
|
export interface AdminExchangeDeleteResponse extends DeleteResponse<"exchange"> {
|
@@ -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,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,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,iBAAiB,CAAA;IAChC,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BACf,SAAQ,4BAA4B;IACpC,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,iBAAiB,CAAA;IAChC,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,UAAU,CAAC;CAAG"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/exchange/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,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE1C,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACxD;;OAEG;IACH,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;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAA;IAChC;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAA;CACxB;AAED,MAAM,WAAW,4BACf,SAAQ,4BAA4B;IACpC;;OAEG;IACH,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAA;IAChC;;OAEG;IACH,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,UAAU,CAAC;CAAG"}
|
@@ -3,44 +3,153 @@ import { FindParams } from "../common";
|
|
3
3
|
import { BaseOrder, BaseOrderShippingMethod, BaseOrderTransaction } from "../order/common";
|
4
4
|
import { AdminReturn, AdminReturnItem } from "../return";
|
5
5
|
export interface BaseExchangeItem {
|
6
|
+
/**
|
7
|
+
* The exchange item's ID.
|
8
|
+
*/
|
6
9
|
id: string;
|
10
|
+
/**
|
11
|
+
* The ID of the exchange this item belongs to.
|
12
|
+
*/
|
7
13
|
exchange_id: string;
|
14
|
+
/**
|
15
|
+
* The ID of the associated order.
|
16
|
+
*/
|
8
17
|
order_id: string;
|
18
|
+
/**
|
19
|
+
* The ID of the order item, which is added
|
20
|
+
* to the order when the exchange is confirmed.
|
21
|
+
*/
|
9
22
|
item_id: string;
|
23
|
+
/**
|
24
|
+
* The item's quantity.
|
25
|
+
*/
|
10
26
|
quantity: number;
|
27
|
+
/**
|
28
|
+
* Key-value pairs of custom data.
|
29
|
+
*/
|
11
30
|
metadata?: Record<string, unknown>;
|
31
|
+
/**
|
32
|
+
* The date the exchange item was created.
|
33
|
+
*/
|
12
34
|
created_at: string | null;
|
35
|
+
/**
|
36
|
+
* The date the exchange item was updated.
|
37
|
+
*/
|
13
38
|
updated_at: string | null;
|
14
39
|
}
|
15
40
|
export interface BaseExchange {
|
41
|
+
/**
|
42
|
+
* The exchange's ID.
|
43
|
+
*/
|
16
44
|
id: string;
|
45
|
+
/**
|
46
|
+
* The ID of the order this exchange is created for.
|
47
|
+
*/
|
17
48
|
order_id: string;
|
49
|
+
/**
|
50
|
+
* The ID of the associated return.
|
51
|
+
*/
|
18
52
|
return_id?: string;
|
53
|
+
/**
|
54
|
+
* The exchange's display ID.
|
55
|
+
*/
|
19
56
|
display_id?: string;
|
57
|
+
/**
|
58
|
+
* The version of the order when the exchange is applied.
|
59
|
+
*/
|
20
60
|
order_version?: string;
|
61
|
+
/**
|
62
|
+
* The ID of the user that created the exchange.
|
63
|
+
*/
|
21
64
|
created_by?: string;
|
65
|
+
/**
|
66
|
+
* The date the exchange was created.
|
67
|
+
*/
|
22
68
|
created_at: Date | string;
|
69
|
+
/**
|
70
|
+
* The date the exchange was updated.
|
71
|
+
*/
|
23
72
|
updated_at: Date | string;
|
73
|
+
/**
|
74
|
+
* The date the exchange was canceled.
|
75
|
+
*/
|
24
76
|
canceled_at: Date | string;
|
77
|
+
/**
|
78
|
+
* The date the exchange was deleted.
|
79
|
+
*/
|
25
80
|
deleted_at: Date | string;
|
81
|
+
/**
|
82
|
+
* The exchange's new (outbound) items.
|
83
|
+
*/
|
26
84
|
additional_items: BaseExchangeItem[];
|
85
|
+
/**
|
86
|
+
* The exchange's returned (inbound) items.
|
87
|
+
*/
|
27
88
|
return_items: AdminReturnItem[];
|
89
|
+
/**
|
90
|
+
* Whether to notify the customer about changes in the exchange.
|
91
|
+
*/
|
28
92
|
no_notification?: boolean;
|
93
|
+
/**
|
94
|
+
* The exchange's difference amount due, either to the customer or the merchant.
|
95
|
+
*
|
96
|
+
* If the value is positive, the customer owes the merchant additional payment of this amount.
|
97
|
+
* If negative, the merchant owes the customer a refund of this amount.
|
98
|
+
*/
|
29
99
|
difference_due?: number;
|
100
|
+
/**
|
101
|
+
* The associated return.
|
102
|
+
*/
|
30
103
|
return?: AdminReturn;
|
104
|
+
/**
|
105
|
+
* The associated order.
|
106
|
+
*/
|
31
107
|
order?: BaseOrder;
|
108
|
+
/**
|
109
|
+
* Whether out-of-stock variants can be added as new items.
|
110
|
+
*/
|
32
111
|
allow_backorder?: boolean;
|
112
|
+
/**
|
113
|
+
* The shipping methods used to send the outbound items.
|
114
|
+
*/
|
33
115
|
shipping_methods?: BaseOrderShippingMethod[];
|
116
|
+
/**
|
117
|
+
* The exchange's transactions.
|
118
|
+
*/
|
34
119
|
transactions?: BaseOrderTransaction[];
|
120
|
+
/**
|
121
|
+
* Key-value pairs of custom data.
|
122
|
+
*/
|
35
123
|
metadata?: Record<string, unknown>;
|
36
124
|
}
|
37
125
|
export interface BaseExchangeListParams extends FindParams {
|
126
|
+
/**
|
127
|
+
* Query or keywords to search the exchange's searchable fields.
|
128
|
+
*/
|
38
129
|
q?: string;
|
130
|
+
/**
|
131
|
+
* Filter by exchange ID(s).
|
132
|
+
*/
|
39
133
|
id?: string | string[];
|
134
|
+
/**
|
135
|
+
* Filter by order IDs to retrieve their exchanges.
|
136
|
+
*/
|
40
137
|
order_id?: string | string[];
|
138
|
+
/**
|
139
|
+
* Filter by status(es).
|
140
|
+
*/
|
41
141
|
status?: string | string[];
|
142
|
+
/**
|
143
|
+
* Apply filters on the exchange's creation date.
|
144
|
+
*/
|
42
145
|
created_at?: OperatorMap<string>;
|
146
|
+
/**
|
147
|
+
* Apply filters on the exchange's update date.
|
148
|
+
*/
|
43
149
|
updated_at?: OperatorMap<string>;
|
150
|
+
/**
|
151
|
+
* Apply filters on the exchange's deletion date.
|
152
|
+
*/
|
44
153
|
deleted_at?: OperatorMap<string>;
|
45
154
|
}
|
46
155
|
//# 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,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAExD,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,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,WAAW,EAAE,IAAI,GAAG,MAAM,CAAA;IAC1B,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,gBAAgB,EAAE,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