@medusajs/types 3.0.0-preview-20250211091350 → 3.0.0-preview-20250406180144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cache/service.d.ts +27 -0
- package/dist/cache/service.d.ts.map +1 -1
- package/dist/cart/common.d.ts +81 -0
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +17 -2
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +114 -1
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/cart/workflows.d.ts +9 -0
- package/dist/cart/workflows.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +5 -1
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +2 -2
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/dml/index.d.ts +8 -0
- package/dist/dml/index.d.ts.map +1 -1
- package/dist/event-bus/common.d.ts +24 -0
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +58 -0
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/file/common.d.ts +3 -2
- package/dist/file/common.d.ts.map +1 -1
- package/dist/file/mutations.d.ts +5 -2
- package/dist/file/mutations.d.ts.map +1 -1
- package/dist/file/provider.d.ts +9 -3
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +10 -9
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/common/order.d.ts +2 -72
- package/dist/fulfillment/common/order.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +23 -2
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +3 -0
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/http/auth/payloads.d.ts +3 -0
- package/dist/http/auth/payloads.d.ts.map +1 -1
- package/dist/http/common/request.d.ts +2 -2
- package/dist/http/common/response.d.ts +21 -0
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/draft-order/admin/entities.d.ts +6 -0
- package/dist/http/draft-order/admin/entities.d.ts.map +1 -0
- package/dist/http/draft-order/admin/entities.js +3 -0
- package/dist/http/draft-order/admin/entities.js.map +1 -0
- package/dist/http/draft-order/admin/index.d.ts +5 -0
- package/dist/http/draft-order/admin/index.d.ts.map +1 -0
- package/dist/http/draft-order/admin/index.js +21 -0
- package/dist/http/draft-order/admin/index.js.map +1 -0
- package/dist/http/draft-order/admin/payloads.d.ts +243 -0
- package/dist/http/draft-order/admin/payloads.d.ts.map +1 -0
- package/dist/http/draft-order/admin/payloads.js +3 -0
- package/dist/http/draft-order/admin/payloads.js.map +1 -0
- package/dist/http/draft-order/admin/queries.d.ts +35 -0
- package/dist/http/draft-order/admin/queries.d.ts.map +1 -0
- package/dist/http/draft-order/admin/queries.js +3 -0
- package/dist/http/draft-order/admin/queries.js.map +1 -0
- package/dist/http/draft-order/admin/responses.d.ts +13 -0
- package/dist/http/draft-order/admin/responses.d.ts.map +1 -0
- package/dist/http/draft-order/admin/responses.js +3 -0
- package/dist/http/draft-order/admin/responses.js.map +1 -0
- package/dist/http/draft-order/index.d.ts +2 -0
- package/dist/http/draft-order/index.d.ts.map +1 -0
- package/dist/http/draft-order/index.js +18 -0
- package/dist/http/draft-order/index.js.map +1 -0
- package/dist/http/file/admin/responses.d.ts +6 -0
- package/dist/http/file/admin/responses.d.ts.map +1 -1
- package/dist/http/file/common.d.ts +17 -0
- package/dist/http/file/common.d.ts.map +1 -1
- package/dist/http/fulfillment/store/index.d.ts +4 -0
- package/dist/http/fulfillment/store/index.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/index.d.ts +2 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/inventory-level/admin/payloads.d.ts +0 -16
- package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -1
- package/dist/http/order/admin/entities.d.ts +10 -1
- package/dist/http/order/admin/entities.d.ts.map +1 -1
- package/dist/http/order/admin/queries.d.ts +0 -9
- package/dist/http/order/admin/queries.d.ts.map +1 -1
- package/dist/http/order/admin/responses.d.ts +0 -6
- package/dist/http/order/admin/responses.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +6 -39
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/payment/admin/queries.d.ts +6 -0
- package/dist/http/payment/admin/queries.d.ts.map +1 -1
- package/dist/http/payment/admin/responses.d.ts +3 -0
- package/dist/http/payment/admin/responses.d.ts.map +1 -1
- package/dist/http/plugins/admin/responses.d.ts +10 -0
- package/dist/http/plugins/admin/responses.d.ts.map +1 -0
- package/dist/http/plugins/admin/responses.js +3 -0
- package/dist/http/plugins/admin/responses.js.map +1 -0
- package/dist/http/plugins/index.d.ts +2 -0
- package/dist/http/plugins/index.d.ts.map +1 -0
- package/dist/http/plugins/index.js +18 -0
- package/dist/http/plugins/index.js.map +1 -0
- package/dist/http/pricing/common.d.ts +8 -0
- package/dist/http/pricing/common.d.ts.map +1 -1
- package/dist/http/product/admin/payloads.d.ts +2 -2
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/entities.d.ts +20 -0
- package/dist/http/promotion/admin/entities.d.ts.map +1 -1
- package/dist/http/promotion/admin/payloads.d.ts +156 -0
- package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/queries.d.ts +45 -1
- package/dist/http/promotion/admin/queries.d.ts.map +1 -1
- package/dist/http/promotion/admin/responses.d.ts +17 -2
- package/dist/http/promotion/admin/responses.d.ts.map +1 -1
- package/dist/http/promotion/common.d.ts +53 -0
- package/dist/http/promotion/common.d.ts.map +1 -1
- package/dist/http/region/admin/entities.d.ts +3 -0
- package/dist/http/region/admin/entities.d.ts.map +1 -1
- package/dist/http/region/admin/payloads.d.ts +68 -0
- package/dist/http/region/admin/payloads.d.ts.map +1 -1
- package/dist/http/region/admin/queries.d.ts +21 -0
- package/dist/http/region/admin/queries.d.ts.map +1 -1
- package/dist/http/region/admin/responses.d.ts +6 -0
- package/dist/http/region/admin/responses.d.ts.map +1 -1
- package/dist/http/reservation/admin/entities.d.ts +39 -0
- package/dist/http/reservation/admin/entities.d.ts.map +1 -1
- package/dist/http/reservation/admin/payloads.d.ts +32 -0
- package/dist/http/reservation/admin/payloads.d.ts.map +1 -1
- package/dist/http/reservation/admin/queries.d.ts +34 -0
- package/dist/http/reservation/admin/queries.d.ts.map +1 -1
- package/dist/http/reservation/admin/responses.d.ts +6 -0
- package/dist/http/reservation/admin/responses.d.ts.map +1 -1
- package/dist/http/return/admin/entities.d.ts +3 -0
- package/dist/http/return/admin/entities.d.ts.map +1 -1
- package/dist/http/return/admin/payloads.d.ts +154 -0
- package/dist/http/return/admin/payloads.d.ts.map +1 -1
- package/dist/http/return/admin/queries.d.ts +15 -0
- package/dist/http/return/admin/queries.d.ts.map +1 -1
- package/dist/http/return/admin/responses.d.ts +6 -0
- package/dist/http/return/admin/responses.d.ts.map +1 -1
- package/dist/http/return/common.d.ts +73 -0
- package/dist/http/return/common.d.ts.map +1 -1
- package/dist/http/return-reason/admin/payloads.d.ts +21 -0
- package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
- package/dist/http/return-reason/admin/queries.d.ts +3 -0
- package/dist/http/return-reason/admin/queries.d.ts.map +1 -1
- package/dist/http/return-reason/admin/responses.d.ts +6 -0
- package/dist/http/return-reason/admin/responses.d.ts.map +1 -1
- package/dist/http/return-reason/common.d.ts +27 -0
- package/dist/http/return-reason/common.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/entities.d.ts +24 -0
- package/dist/http/sales-channel/admin/entities.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/payloads.d.ts +32 -0
- package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/queries.d.ts +32 -0
- package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/responses.d.ts +6 -0
- package/dist/http/sales-channel/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/entities.d.ts +187 -0
- package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +181 -0
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/queries.d.ts +36 -0
- package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/responses.d.ts +6 -0
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/store/payloads.d.ts +12 -0
- package/dist/http/shipping-option/store/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/store/responses.d.ts +12 -0
- package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/entities.d.ts +21 -0
- package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/payloads.d.ts +18 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/queries.d.ts +27 -0
- package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/responses.d.ts +6 -0
- package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/entities.d.ts +21 -0
- package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/payloads.d.ts +69 -0
- package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/queries.d.ts +24 -2
- package/dist/http/stock-locations/admin/queries.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/responses.d.ts +6 -0
- package/dist/http/stock-locations/admin/responses.d.ts.map +1 -1
- package/dist/http/store/admin/entities.d.ts +54 -0
- package/dist/http/store/admin/entities.d.ts.map +1 -1
- package/dist/http/store/admin/queries.d.ts +9 -0
- package/dist/http/store/admin/queries.d.ts.map +1 -1
- package/dist/http/store/admin/responses.d.ts +6 -0
- package/dist/http/store/admin/responses.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/entities.d.ts +54 -0
- package/dist/http/tax-rate/admin/entities.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/payloads.d.ts +57 -0
- package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/queries.d.ts +30 -0
- package/dist/http/tax-rate/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/responses.d.ts +6 -0
- package/dist/http/tax-rate/admin/responses.d.ts.map +1 -1
- package/dist/http/tax-region/admin/entities.d.ts +42 -0
- package/dist/http/tax-region/admin/entities.d.ts.map +1 -1
- package/dist/http/tax-region/admin/payloads.d.ts +30 -0
- package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-region/admin/queries.d.ts +28 -0
- package/dist/http/tax-region/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-region/admin/responses.d.ts +6 -0
- package/dist/http/tax-region/admin/responses.d.ts.map +1 -1
- package/dist/http/user/admin/entities.d.ts +27 -0
- package/dist/http/user/admin/entities.d.ts.map +1 -1
- package/dist/http/user/admin/payloads.d.ts +12 -0
- package/dist/http/user/admin/payloads.d.ts.map +1 -1
- package/dist/http/user/admin/queries.d.ts +24 -0
- package/dist/http/user/admin/queries.d.ts.map +1 -1
- package/dist/http/user/admin/responses.d.ts +6 -0
- package/dist/http/user/admin/responses.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/entities.d.ts +136 -2
- package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/queries.d.ts +6 -0
- package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
- package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
- package/dist/locking/index.d.ts +466 -0
- package/dist/locking/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +6 -1
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/medusa-internal-service.d.ts +5 -5
- package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query-object-from-string.d.ts +4 -0
- package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query.d.ts +16 -0
- package/dist/modules-sdk/remote-query.d.ts.map +1 -1
- package/dist/notification/mutations.d.ts +5 -4
- package/dist/notification/mutations.d.ts.map +1 -1
- package/dist/notification/service.d.ts +2 -5
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +45 -79
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +38 -1
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +101 -3
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +9 -1
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/mutations.d.ts +24 -1
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +121 -85
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/service.d.ts +89 -10
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +11 -6
- package/dist/product/common.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +9 -37
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow/order/items.d.ts +5 -1
- package/dist/workflow/order/items.d.ts.map +1 -1
- package/dist/workflow/product-category/index.d.ts +5 -4
- package/dist/workflow/product-category/index.d.ts.map +1 -1
- package/dist/workflows/products/mutations.d.ts +2 -2
- package/dist/workflows/products/mutations.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +12 -8
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +3 -3
@@ -1,68 +1,249 @@
|
|
1
1
|
import { RuleOperatorType } from "../../../common";
|
2
2
|
import { ShippingOptionPriceType } from "../../../fulfillment";
|
3
3
|
export interface AdminCreateShippingOptionRule {
|
4
|
+
/**
|
5
|
+
* The operator of the shipping option rule.
|
6
|
+
*/
|
4
7
|
operator: RuleOperatorType;
|
8
|
+
/**
|
9
|
+
* The attribute of the shipping option rule.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* `enabled_in_store`
|
13
|
+
*/
|
5
14
|
attribute: string;
|
15
|
+
/**
|
16
|
+
* The value of the shipping option rule.
|
17
|
+
*
|
18
|
+
* @example
|
19
|
+
* `true`
|
20
|
+
*/
|
6
21
|
value: string | string[];
|
7
22
|
}
|
8
23
|
export interface AdminCreateShippingOptionType {
|
24
|
+
/**
|
25
|
+
* The label of the shipping option type.
|
26
|
+
*/
|
9
27
|
label: string;
|
28
|
+
/**
|
29
|
+
* The description of the shipping option type.
|
30
|
+
*/
|
10
31
|
description: string;
|
32
|
+
/**
|
33
|
+
* The code of the shipping option type.
|
34
|
+
*/
|
11
35
|
code: string;
|
12
36
|
}
|
13
37
|
interface AdminShippingOptionPriceRulePayload {
|
38
|
+
/**
|
39
|
+
* The operator of the shipping option price rule.
|
40
|
+
*
|
41
|
+
* @example
|
42
|
+
* "eq"
|
43
|
+
*/
|
14
44
|
operator: string;
|
45
|
+
/**
|
46
|
+
* The attribute of the shipping option price rule.
|
47
|
+
*
|
48
|
+
* @example
|
49
|
+
* "region_id"
|
50
|
+
*/
|
15
51
|
attribute: string;
|
52
|
+
/**
|
53
|
+
* The value of the shipping option price rule.
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* "region_123"
|
57
|
+
*/
|
16
58
|
value: string | string[] | number;
|
17
59
|
}
|
18
60
|
interface AdminShippingOptionPriceWithRules {
|
61
|
+
/**
|
62
|
+
* The rules of the shipping option price that
|
63
|
+
* indicate when the price should be applied.
|
64
|
+
*/
|
19
65
|
rules?: AdminShippingOptionPriceRulePayload[];
|
20
66
|
}
|
21
67
|
export interface AdminCreateShippingOptionPriceWithCurrency extends AdminShippingOptionPriceWithRules {
|
68
|
+
/**
|
69
|
+
* The currency code of the shipping option price.
|
70
|
+
*
|
71
|
+
* @example
|
72
|
+
* "usd"
|
73
|
+
*/
|
22
74
|
currency_code: string;
|
75
|
+
/**
|
76
|
+
* The amount of the shipping option price.
|
77
|
+
*/
|
23
78
|
amount: number;
|
24
79
|
}
|
25
80
|
export interface AdminCreateShippingOptionPriceWithRegion extends AdminShippingOptionPriceWithRules {
|
81
|
+
/**
|
82
|
+
* The ID of the region that the shipping option price belongs to.
|
83
|
+
*/
|
26
84
|
region_id: string;
|
85
|
+
/**
|
86
|
+
* The amount of the shipping option price.
|
87
|
+
*/
|
27
88
|
amount: number;
|
28
89
|
}
|
29
90
|
export interface AdminCreateShippingOption {
|
91
|
+
/**
|
92
|
+
* The name of the shipping option. Customers can
|
93
|
+
* view this name during checkout.
|
94
|
+
*
|
95
|
+
* @example
|
96
|
+
* "Standard Shipping"
|
97
|
+
*/
|
30
98
|
name: string;
|
99
|
+
/**
|
100
|
+
* The ID of the service zone that the shipping option belongs to.
|
101
|
+
*
|
102
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#service-zone-restrictions)
|
103
|
+
* documentation.
|
104
|
+
*/
|
31
105
|
service_zone_id: string;
|
106
|
+
/**
|
107
|
+
* The ID of the shipping profile that the shipping option belongs to.
|
108
|
+
*
|
109
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
110
|
+
* documentation.
|
111
|
+
*/
|
32
112
|
shipping_profile_id: string;
|
113
|
+
/**
|
114
|
+
* Additional data that is useful for third-party fulfillment providers
|
115
|
+
* that process fulfillments for the shipping option.
|
116
|
+
*
|
117
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property)
|
118
|
+
* documentation.
|
119
|
+
*/
|
33
120
|
data?: Record<string, unknown>;
|
121
|
+
/**
|
122
|
+
* The type of shipping option's price.
|
123
|
+
*/
|
34
124
|
price_type: ShippingOptionPriceType;
|
125
|
+
/**
|
126
|
+
* The ID of the fulfillment provider that the shipping option belongs to.
|
127
|
+
*/
|
35
128
|
provider_id: string;
|
129
|
+
/**
|
130
|
+
* The type of shipping option.
|
131
|
+
*
|
132
|
+
* Learn more in the [Shipping Option](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
133
|
+
* documentation.
|
134
|
+
*/
|
36
135
|
type: AdminCreateShippingOptionType;
|
136
|
+
/**
|
137
|
+
* The prices of the shipping option.
|
138
|
+
*/
|
37
139
|
prices: (AdminCreateShippingOptionPriceWithCurrency | AdminCreateShippingOptionPriceWithRegion)[];
|
140
|
+
/**
|
141
|
+
* The rules of the shipping option.
|
142
|
+
*
|
143
|
+
* Learn more in the [Shipping Option Rules](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-option-rules)
|
144
|
+
* documentation.
|
145
|
+
*/
|
38
146
|
rules?: AdminCreateShippingOptionRule[];
|
39
147
|
}
|
40
148
|
export interface AdminUpdateShippingOptionRule extends AdminCreateShippingOptionRule {
|
149
|
+
/**
|
150
|
+
* The ID of the shipping option rule that is being updated.
|
151
|
+
*/
|
41
152
|
id: string;
|
42
153
|
}
|
43
154
|
export interface AdminUpdateShippingOptionPriceWithCurrency extends AdminShippingOptionPriceWithRules {
|
155
|
+
/**
|
156
|
+
* The ID of the shipping option price that is being updated.
|
157
|
+
* If not provided, a new shipping option price will be created.
|
158
|
+
*/
|
44
159
|
id?: string;
|
160
|
+
/**
|
161
|
+
* The currency code of the shipping option price.
|
162
|
+
*
|
163
|
+
* @example
|
164
|
+
* "usd"
|
165
|
+
*/
|
45
166
|
currency_code?: string;
|
167
|
+
/**
|
168
|
+
* The amount of the shipping option price.
|
169
|
+
*/
|
46
170
|
amount?: number;
|
47
171
|
}
|
48
172
|
export interface AdminUpdateShippingOptionPriceWithRegion extends AdminShippingOptionPriceWithRules {
|
173
|
+
/**
|
174
|
+
* The ID of the shipping option price that is being updated.
|
175
|
+
* If not provided, a new shipping option price will be created.
|
176
|
+
*/
|
49
177
|
id?: string;
|
178
|
+
/**
|
179
|
+
* The ID of the region that the shipping option price belongs to.
|
180
|
+
*/
|
50
181
|
region_id?: string;
|
182
|
+
/**
|
183
|
+
* The amount of the shipping option price.
|
184
|
+
*/
|
51
185
|
amount?: number;
|
52
186
|
}
|
53
187
|
export interface AdminUpdateShippingOption {
|
188
|
+
/**
|
189
|
+
* The name of the shipping option. Customers can
|
190
|
+
* view this name during checkout.
|
191
|
+
*
|
192
|
+
* @example
|
193
|
+
* "Standard Shipping"
|
194
|
+
*/
|
54
195
|
name?: string;
|
196
|
+
/**
|
197
|
+
* Additional data that is useful for third-party fulfillment providers
|
198
|
+
* that process fulfillments for the shipping option.
|
199
|
+
*/
|
55
200
|
data?: Record<string, unknown>;
|
201
|
+
/**
|
202
|
+
* The type of shipping option's price.
|
203
|
+
*/
|
56
204
|
price_type?: ShippingOptionPriceType;
|
205
|
+
/**
|
206
|
+
* The ID of the fulfillment provider that the shipping option belongs to.
|
207
|
+
*/
|
57
208
|
provider_id?: string;
|
209
|
+
/**
|
210
|
+
* The ID of the shipping profile that the shipping option belongs to.
|
211
|
+
*
|
212
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
213
|
+
* documentation.
|
214
|
+
*/
|
58
215
|
shipping_profile_id?: string;
|
216
|
+
/**
|
217
|
+
* The type of shipping option.
|
218
|
+
*
|
219
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
220
|
+
* documentation.
|
221
|
+
*/
|
59
222
|
type?: AdminCreateShippingOptionType;
|
223
|
+
/**
|
224
|
+
* The prices of the shipping option.
|
225
|
+
*/
|
60
226
|
prices?: (AdminUpdateShippingOptionPriceWithCurrency | AdminUpdateShippingOptionPriceWithRegion)[];
|
227
|
+
/**
|
228
|
+
* The rules of the shipping option.
|
229
|
+
*
|
230
|
+
* Learn more in the [Shipping Option Rules](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-option-rules)
|
231
|
+
* documentation.
|
232
|
+
*/
|
61
233
|
rules?: (AdminUpdateShippingOptionRule | AdminCreateShippingOptionRule)[];
|
62
234
|
}
|
63
235
|
export interface AdminUpdateShippingOptionRules {
|
236
|
+
/**
|
237
|
+
* The rules to create.
|
238
|
+
*/
|
64
239
|
create?: any[];
|
240
|
+
/**
|
241
|
+
* The rules to update.
|
242
|
+
*/
|
65
243
|
update?: any[];
|
244
|
+
/**
|
245
|
+
* The rules to delete.
|
246
|
+
*/
|
66
247
|
delete?: string[];
|
67
248
|
}
|
68
249
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MA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yBAAyB;IACxC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,UAAU,CAAC,EAAE,uBAAuB,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,6BAA6B,CAAA;IACpC,MAAM,CAAC,EAAE,CACL,0CAA0C,GAC1C,wCAAwC,CAC3C,EAAE,CAAA;IACH,KAAK,CAAC,EAAE,CAAC,6BAA6B,GAAG,6BAA6B,CAAC,EAAE,CAAA;CAC1E;AAED,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAA;IAC1B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAED,UAAU,mCAAmC;IAC3C;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IAC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AED,MAAM,WAAW,wCACf,SAAQ,iCAAiC;IACzC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAA;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,6BAA6B,CAAA;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,CACL,0CAA0C,GAC1C,wCAAwC,CAC3C,EAAE,CAAA;IACH;;;;;OAKG;IACH,KAAK,CAAC,EAAE,CAAC,6BAA6B,GAAG,6BAA6B,CAAC,EAAE,CAAA;CAC1E;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
@@ -1,17 +1,53 @@
|
|
1
1
|
import { OperatorMap } from "../../../dal";
|
2
2
|
import { FindParams } from "../../common";
|
3
3
|
export interface AdminShippingOptionListParams extends FindParams {
|
4
|
+
/**
|
5
|
+
* Filter by shipping option ID(s),
|
6
|
+
*/
|
4
7
|
id?: string | string[];
|
8
|
+
/**
|
9
|
+
* Query or keywords to search the shipping option's searchable fields.
|
10
|
+
*/
|
5
11
|
q?: string;
|
12
|
+
/**
|
13
|
+
* Filter by the ID of the service zone(s) to retrieve the shipping options for.
|
14
|
+
*/
|
6
15
|
service_zone_id?: string | string[];
|
16
|
+
/**
|
17
|
+
* Filter by the ID of the stock location(s) to retrieve the shipping options for.
|
18
|
+
*/
|
7
19
|
stock_location_id?: string | string[];
|
20
|
+
/**
|
21
|
+
* Filter by whether the shipping option is a return shipping option.
|
22
|
+
*/
|
8
23
|
is_return?: boolean;
|
24
|
+
/**
|
25
|
+
* Filter by whether the shipping option is only available to admins.
|
26
|
+
*/
|
9
27
|
admin_only?: boolean;
|
28
|
+
/**
|
29
|
+
* Filter by the ID of the shipping profile(s) to retrieve the shipping options for.
|
30
|
+
*/
|
10
31
|
shipping_profile_id?: string | string[];
|
32
|
+
/**
|
33
|
+
* Filter by the ID of the provider(s) to retrieve the shipping options for.
|
34
|
+
*/
|
11
35
|
provider_id?: string | string[];
|
36
|
+
/**
|
37
|
+
* Filter by the ID of the shipping option type(s) to retrieve the shipping options for.
|
38
|
+
*/
|
12
39
|
shipping_option_type_id?: string | string[];
|
40
|
+
/**
|
41
|
+
* Filter by the date the shipping option was created.
|
42
|
+
*/
|
13
43
|
created_at?: OperatorMap<string>;
|
44
|
+
/**
|
45
|
+
* Filter by the date the shipping option was updated.
|
46
|
+
*/
|
14
47
|
updated_at?: OperatorMap<string>;
|
48
|
+
/**
|
49
|
+
* Filter by the date the shipping option was deleted.
|
50
|
+
*/
|
15
51
|
deleted_at?: OperatorMap<string>;
|
16
52
|
}
|
17
53
|
//# sourceMappingURL=queries.d.ts.map
|
@@ -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,CA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,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3C;;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"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { BatchResponse, DeleteResponse, PaginatedResponse } from "../../common";
|
2
2
|
import { AdminShippingOption, AdminShippingOptionRule } from "./entities";
|
3
3
|
export interface AdminShippingOptionResponse {
|
4
|
+
/**
|
5
|
+
* The shipping option's details.
|
6
|
+
*/
|
4
7
|
shipping_option: AdminShippingOption;
|
5
8
|
}
|
6
9
|
export type AdminShippingOptionListResponse = PaginatedResponse<{
|
10
|
+
/**
|
11
|
+
* The list of shipping options.
|
12
|
+
*/
|
7
13
|
shipping_options: AdminShippingOption[];
|
8
14
|
}>;
|
9
15
|
export interface AdminShippingOptionDeleteResponse extends DeleteResponse<"shipping_option"> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC/E,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzE,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,mBAAmB,CAAA;CACrC;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,gBAAgB,EAAE,mBAAmB,EAAE,CAAA;CACxC,CAAC,CAAA;AAEF,MAAM,WAAW,iCACf,SAAQ,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C,MAAM,MAAM,sCAAsC,GAChD,aAAa,CAAC,uBAAuB,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC/E,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzE,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,eAAe,EAAE,mBAAmB,CAAA;CACrC;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D;;OAEG;IACH,gBAAgB,EAAE,mBAAmB,EAAE,CAAA;CACxC,CAAC,CAAA;AAEF,MAAM,WAAW,iCACf,SAAQ,cAAc,CAAC,iBAAiB,CAAC;CAAG;AAE9C,MAAM,MAAM,sCAAsC,GAChD,aAAa,CAAC,uBAAuB,CAAC,CAAA"}
|
@@ -1,5 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* The details of the price calculation.
|
3
|
+
*/
|
1
4
|
export type StoreCalculateShippingOptionPrice = {
|
5
|
+
/**
|
6
|
+
* The ID of the cart to calculate the price for.
|
7
|
+
*/
|
2
8
|
cart_id: string;
|
9
|
+
/**
|
10
|
+
* Additional data passed to the shipping option's fulfillment provider. This is useful
|
11
|
+
* if the third-party fulfillment provider requires additional data to calculate the price.
|
12
|
+
*
|
13
|
+
* Learn more in the [Shipping Option documentation](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property).
|
14
|
+
*/
|
3
15
|
data?: Record<string, unknown>;
|
4
16
|
};
|
5
17
|
//# sourceMappingURL=payloads.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/store/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B,CAAA"}
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/store/payloads.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B,CAAA"}
|
@@ -1,8 +1,20 @@
|
|
1
1
|
import { StoreCartShippingOption } from "../../fulfillment";
|
2
|
+
/**
|
3
|
+
* The response of listing the shipping options for a cart.
|
4
|
+
*/
|
2
5
|
export interface StoreShippingOptionListResponse {
|
6
|
+
/**
|
7
|
+
* The shipping options for the cart.
|
8
|
+
*/
|
3
9
|
shipping_options: StoreCartShippingOption[];
|
4
10
|
}
|
11
|
+
/**
|
12
|
+
* The response of calculating the price of a shipping option.
|
13
|
+
*/
|
5
14
|
export interface StoreShippingOptionResponse {
|
15
|
+
/**
|
16
|
+
* The shipping option's details.
|
17
|
+
*/
|
6
18
|
shipping_option: StoreCartShippingOption;
|
7
19
|
}
|
8
20
|
//# sourceMappingURL=responses.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,MAAM,WAAW,+BAA+B;IAC9C,gBAAgB,EAAE,uBAAuB,EAAE,CAAA;CAC5C;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,uBAAuB,CAAA;CACzC"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/store/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,gBAAgB,EAAE,uBAAuB,EAAE,CAAA;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,eAAe,EAAE,uBAAuB,CAAA;CACzC"}
|
@@ -1,10 +1,31 @@
|
|
1
1
|
export interface AdminShippingProfile {
|
2
|
+
/**
|
3
|
+
* The ID of the shipping profile.
|
4
|
+
*/
|
2
5
|
id: string;
|
6
|
+
/**
|
7
|
+
* The name of the shipping profile.
|
8
|
+
*/
|
3
9
|
name: string;
|
10
|
+
/**
|
11
|
+
* The type of the shipping profile.
|
12
|
+
*/
|
4
13
|
type: string;
|
14
|
+
/**
|
15
|
+
* Custom key-value pairs that can be added to the shipping profile.
|
16
|
+
*/
|
5
17
|
metadata: Record<string, unknown> | null;
|
18
|
+
/**
|
19
|
+
* The date when the shipping profile was created.
|
20
|
+
*/
|
6
21
|
created_at: string;
|
22
|
+
/**
|
23
|
+
* The date when the shipping profile was updated.
|
24
|
+
*/
|
7
25
|
updated_at: string;
|
26
|
+
/**
|
27
|
+
* The date when the shipping profile was deleted.
|
28
|
+
*/
|
8
29
|
deleted_at: string | null;
|
9
30
|
}
|
10
31
|
//# sourceMappingURL=entities.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;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;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
@@ -1,11 +1,29 @@
|
|
1
1
|
export interface AdminCreateShippingProfile {
|
2
|
+
/**
|
3
|
+
* The name of the shipping profile.
|
4
|
+
*/
|
2
5
|
name: string;
|
6
|
+
/**
|
7
|
+
* The type of the shipping profile.
|
8
|
+
*/
|
3
9
|
type: string;
|
10
|
+
/**
|
11
|
+
* Custom key-value pairs that can be added to the shipping profile.
|
12
|
+
*/
|
4
13
|
metadata?: Record<string, unknown>;
|
5
14
|
}
|
6
15
|
export interface AdminUpdateShippingProfile {
|
16
|
+
/**
|
17
|
+
* The name of the shipping profile.
|
18
|
+
*/
|
7
19
|
name?: string;
|
20
|
+
/**
|
21
|
+
* The type of the shipping profile.
|
22
|
+
*/
|
8
23
|
type?: string;
|
24
|
+
/**
|
25
|
+
* Custom key-value pairs that can be added to the shipping profile.
|
26
|
+
*/
|
9
27
|
metadata?: Record<string, unknown> | null;
|
10
28
|
}
|
11
29
|
//# sourceMappingURL=payloads.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
|
@@ -1,14 +1,41 @@
|
|
1
1
|
import { OperatorMap } from "../../../dal";
|
2
2
|
import { FindParams } from "../../common";
|
3
3
|
export interface AdminShippingProfileListParams extends FindParams {
|
4
|
+
/**
|
5
|
+
* Filter by shipping profile ID(s).
|
6
|
+
*/
|
4
7
|
id?: string | string[];
|
8
|
+
/**
|
9
|
+
* Query or keywords to search the shipping profile's searchable fields.
|
10
|
+
*/
|
5
11
|
q?: string;
|
12
|
+
/**
|
13
|
+
* Filter by shipping profile type.
|
14
|
+
*/
|
6
15
|
type?: string;
|
16
|
+
/**
|
17
|
+
* Filter by shipping profile name.
|
18
|
+
*/
|
7
19
|
name?: string;
|
20
|
+
/**
|
21
|
+
* Filter by the date the shipping profile was created.
|
22
|
+
*/
|
8
23
|
created_at?: OperatorMap<string>;
|
24
|
+
/**
|
25
|
+
* Filter by the date the shipping profile was updated.
|
26
|
+
*/
|
9
27
|
updated_at?: OperatorMap<string>;
|
28
|
+
/**
|
29
|
+
* Filter by the date the shipping profile was deleted.
|
30
|
+
*/
|
10
31
|
deleted_at?: OperatorMap<string>;
|
32
|
+
/**
|
33
|
+
* An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
|
34
|
+
*/
|
11
35
|
$and?: AdminShippingProfileListParams[];
|
36
|
+
/**
|
37
|
+
* An array of filters to apply on the entity, where each item in the array is joined with an "or" condition.
|
38
|
+
*/
|
12
39
|
$or?: AdminShippingProfileListParams[];
|
13
40
|
}
|
14
41
|
//# sourceMappingURL=queries.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,8BAA+B,SAAQ,UAAU;IAChE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,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;IAChC,IAAI,CAAC,EAAE,8BAA8B,EAAE,CAAA;IACvC,GAAG,CAAC,EAAE,8BAA8B,EAAE,CAAA;CACvC"}
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,8BAA+B,SAAQ,UAAU;IAChE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;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;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,8BAA8B,EAAE,CAAA;IACvC;;OAEG;IACH,GAAG,CAAC,EAAE,8BAA8B,EAAE,CAAA;CACvC"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { DeleteResponse, PaginatedResponse } from "../../common";
|
2
2
|
import { AdminShippingProfile } from "./entities";
|
3
3
|
export interface AdminShippingProfileResponse {
|
4
|
+
/**
|
5
|
+
* The shipping profile's details.
|
6
|
+
*/
|
4
7
|
shipping_profile: AdminShippingProfile;
|
5
8
|
}
|
6
9
|
export type AdminShippingProfileListResponse = PaginatedResponse<{
|
10
|
+
/**
|
11
|
+
* The list of shipping profiles.
|
12
|
+
*/
|
7
13
|
shipping_profiles: AdminShippingProfile[];
|
8
14
|
}>;
|
9
15
|
export interface AdminShippingProfileDeleteResponse extends DeleteResponse<"shipping_profile"> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,oBAAoB,CAAA;CACvC;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;CAC1C,CAAC,CAAA;AAEF,MAAM,WAAW,kCACf,SAAQ,cAAc,CAAC,kBAAkB,CAAC;CAAG"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-profile/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,gBAAgB,EAAE,oBAAoB,CAAA;CACvC;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D;;OAEG;IACH,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;CAC1C,CAAC,CAAA;AAEF,MAAM,WAAW,kCACf,SAAQ,cAAc,CAAC,kBAAkB,CAAC;CAAG"}
|
@@ -13,12 +13,33 @@ export interface AdminStockLocationAddress {
|
|
13
13
|
province: string | null;
|
14
14
|
}
|
15
15
|
export interface AdminStockLocation {
|
16
|
+
/**
|
17
|
+
* The ID of the stock location.
|
18
|
+
*/
|
16
19
|
id: string;
|
20
|
+
/**
|
21
|
+
* The name of the stock location.
|
22
|
+
*/
|
17
23
|
name: string;
|
24
|
+
/**
|
25
|
+
* The ID of the address associated with the stock location.
|
26
|
+
*/
|
18
27
|
address_id: string;
|
28
|
+
/**
|
29
|
+
* The address associated with the stock location.
|
30
|
+
*/
|
19
31
|
address?: AdminStockLocationAddress;
|
32
|
+
/**
|
33
|
+
* The sales channels associated with the stock location.
|
34
|
+
*/
|
20
35
|
sales_channels?: AdminSalesChannel[];
|
36
|
+
/**
|
37
|
+
* The fulfillment providers associated with the stock location.
|
38
|
+
*/
|
21
39
|
fulfillment_providers?: AdminFulfillmentProvider[];
|
40
|
+
/**
|
41
|
+
* The fulfillment sets associated with the stock location.
|
42
|
+
*/
|
22
43
|
fulfillment_sets?: AdminFulfillmentSet[];
|
23
44
|
}
|
24
45
|
//# sourceMappingURL=entities.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,yBAAyB,CAAA;IACnC,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACpC,qBAAqB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAClD,gBAAgB,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACzC"}
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAA;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACpC;;OAEG;IACH,qBAAqB,CAAC,EAAE,wBAAwB,EAAE,CAAA;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACzC"}
|