@medusajs/types 1.12.0-snapshot-20240405154416 → 1.12.0-snapshot-20240408084642
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cart/common.d.ts +64 -47
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +14 -13
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/workflows.d.ts +6 -5
- package/dist/cart/workflows.d.ts.map +1 -1
- package/dist/common/rule.d.ts +3 -0
- package/dist/common/rule.d.ts.map +1 -1
- package/dist/customer/common.d.ts +21 -13
- package/dist/customer/common.d.ts.map +1 -1
- package/dist/customer/mutations.d.ts +13 -13
- package/dist/customer/mutations.d.ts.map +1 -1
- package/dist/fulfillment/common/address.d.ts +51 -0
- package/dist/fulfillment/common/address.d.ts.map +1 -1
- package/dist/fulfillment/common/fulfillment-item.d.ts +39 -0
- package/dist/fulfillment/common/fulfillment-item.d.ts.map +1 -1
- package/dist/fulfillment/common/fulfillment-label.d.ts +30 -0
- package/dist/fulfillment/common/fulfillment-label.d.ts.map +1 -1
- package/dist/fulfillment/common/fulfillment-provider.d.ts +24 -0
- package/dist/fulfillment/common/fulfillment-provider.d.ts.map +1 -1
- package/dist/fulfillment/common/fulfillment-set.d.ts +42 -0
- package/dist/fulfillment/common/fulfillment-set.d.ts.map +1 -1
- package/dist/fulfillment/common/fulfillment.d.ts +91 -0
- package/dist/fulfillment/common/fulfillment.d.ts.map +1 -1
- package/dist/fulfillment/common/geo-zone.d.ts +54 -0
- package/dist/fulfillment/common/geo-zone.d.ts.map +1 -1
- package/dist/fulfillment/common/service-zone.d.ts +52 -0
- package/dist/fulfillment/common/service-zone.d.ts.map +1 -1
- package/dist/fulfillment/common/shipping-option-rule.d.ts +51 -0
- package/dist/fulfillment/common/shipping-option-rule.d.ts.map +1 -1
- package/dist/fulfillment/common/shipping-option-type.d.ts +45 -0
- package/dist/fulfillment/common/shipping-option-type.d.ts.map +1 -1
- package/dist/fulfillment/common/shipping-option.d.ts +117 -0
- package/dist/fulfillment/common/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/common/shipping-profile.d.ts +42 -0
- package/dist/fulfillment/common/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment-address.d.ts +39 -0
- package/dist/fulfillment/mutations/fulfillment-address.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment-item.d.ts +24 -0
- package/dist/fulfillment/mutations/fulfillment-item.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment-label.d.ts +15 -0
- package/dist/fulfillment/mutations/fulfillment-label.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment-set.d.ts +32 -2
- package/dist/fulfillment/mutations/fulfillment-set.d.ts.map +1 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts +66 -0
- package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
- package/dist/fulfillment/mutations/geo-zone.d.ts +123 -0
- package/dist/fulfillment/mutations/geo-zone.d.ts.map +1 -1
- package/dist/fulfillment/mutations/service-zone.d.ts +33 -1
- package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +21 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option-type.d.ts +21 -0
- package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +71 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +15 -0
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +1933 -218
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/http/api-key/admin/api-key.d.ts +31 -0
- package/dist/http/api-key/admin/api-key.d.ts.map +1 -0
- package/dist/http/api-key/admin/api-key.js +3 -0
- package/dist/http/api-key/admin/api-key.js.map +1 -0
- package/dist/http/api-key/admin/index.d.ts +2 -0
- package/dist/http/api-key/admin/index.d.ts.map +1 -0
- package/dist/http/api-key/admin/index.js +18 -0
- package/dist/http/api-key/admin/index.js.map +1 -0
- package/dist/http/api-key/index.d.ts +2 -0
- package/dist/http/api-key/index.d.ts.map +1 -0
- package/dist/http/api-key/index.js +18 -0
- package/dist/http/api-key/index.js.map +1 -0
- package/dist/http/common/index.d.ts +2 -0
- package/dist/http/common/index.d.ts.map +1 -0
- package/dist/http/common/index.js +18 -0
- package/dist/http/common/index.js.map +1 -0
- package/dist/http/common/paginated-response.d.ts +6 -0
- package/dist/http/common/paginated-response.d.ts.map +1 -0
- package/dist/http/common/paginated-response.js +3 -0
- package/dist/http/common/paginated-response.js.map +1 -0
- package/dist/http/customer/admin/customer.d.ts +78 -0
- package/dist/http/customer/admin/customer.d.ts.map +1 -0
- package/dist/http/customer/admin/customer.js +3 -0
- package/dist/http/customer/admin/customer.js.map +1 -0
- package/dist/http/customer/admin/index.d.ts +2 -0
- package/dist/http/customer/admin/index.d.ts.map +1 -0
- package/dist/http/customer/admin/index.js +18 -0
- package/dist/http/customer/admin/index.js.map +1 -0
- package/dist/http/customer/index.d.ts +2 -0
- package/dist/http/customer/index.d.ts.map +1 -0
- package/dist/http/customer/index.js +18 -0
- package/dist/http/customer/index.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +7 -1
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/service-zone.d.ts +10 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/shipping-option.d.ts +11 -4
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
- package/dist/http/index.d.ts +6 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +6 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/pricing/index.d.ts +2 -0
- package/dist/http/pricing/index.d.ts.map +1 -0
- package/dist/http/pricing/index.js +18 -0
- package/dist/http/pricing/index.js.map +1 -0
- package/dist/http/pricing/price.d.ts +8 -0
- package/dist/http/pricing/price.d.ts.map +1 -0
- package/dist/http/pricing/price.js +3 -0
- package/dist/http/pricing/price.js.map +1 -0
- package/dist/http/sales-channel/admin/index.d.ts +2 -0
- package/dist/http/sales-channel/admin/index.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/index.js +18 -0
- package/dist/http/sales-channel/admin/index.js.map +1 -0
- package/dist/http/sales-channel/admin/sales-channel.d.ts +25 -0
- package/dist/http/sales-channel/admin/sales-channel.d.ts.map +1 -0
- package/dist/http/sales-channel/admin/sales-channel.js +3 -0
- package/dist/http/sales-channel/admin/sales-channel.js.map +1 -0
- package/dist/http/sales-channel/index.d.ts +2 -0
- package/dist/http/sales-channel/index.d.ts.map +1 -0
- package/dist/http/sales-channel/index.js +18 -0
- package/dist/http/sales-channel/index.js.map +1 -0
- package/dist/http/stock-locations/common.d.ts +28 -0
- package/dist/http/stock-locations/common.d.ts.map +1 -0
- package/dist/http/stock-locations/common.js +3 -0
- package/dist/http/stock-locations/common.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +2 -0
- package/dist/http/stock-locations/index.d.ts.map +1 -0
- package/dist/http/stock-locations/index.js +18 -0
- package/dist/http/stock-locations/index.js.map +1 -0
- package/dist/http/tax/admin/index.d.ts +2 -0
- package/dist/http/tax/admin/index.d.ts.map +1 -0
- package/dist/http/tax/admin/index.js +18 -0
- package/dist/http/tax/admin/index.js.map +1 -0
- package/dist/http/tax/admin/tax-regions.d.ts +32 -0
- package/dist/http/tax/admin/tax-regions.d.ts.map +1 -0
- package/dist/http/tax/admin/tax-regions.js +3 -0
- package/dist/http/tax/admin/tax-regions.js.map +1 -0
- package/dist/http/tax/index.d.ts +2 -0
- package/dist/http/tax/index.d.ts.map +1 -0
- package/dist/http/tax/index.js +18 -0
- package/dist/http/tax/index.js.map +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/joiner/index.d.ts +2 -2
- package/dist/joiner/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +2 -1
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/order/common.d.ts +111 -45
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/index.d.ts +1 -0
- package/dist/order/index.d.ts.map +1 -1
- package/dist/order/index.js +1 -0
- package/dist/order/index.js.map +1 -1
- package/dist/order/mutations.d.ts +14 -14
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/mutations.js.map +1 -1
- package/dist/order/service.d.ts +60 -662
- package/dist/order/service.d.ts.map +1 -1
- package/dist/order/workflows.d.ts +8 -0
- package/dist/order/workflows.d.ts.map +1 -0
- package/dist/order/workflows.js +3 -0
- package/dist/order/workflows.js.map +1 -0
- package/dist/payment/common.d.ts +14 -13
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +9 -8
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +6 -5
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +1 -0
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/money-amount.d.ts +10 -9
- package/dist/pricing/common/money-amount.d.ts.map +1 -1
- package/dist/pricing/common/price-set.d.ts +9 -8
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/common/price.d.ts +10 -9
- package/dist/pricing/common/price.d.ts.map +1 -1
- package/dist/pricing/workflows.d.ts +10 -20
- package/dist/pricing/workflows.d.ts.map +1 -1
- package/dist/product/common.d.ts +4 -0
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product-category/repository.d.ts +2 -1
- package/dist/product-category/repository.d.ts.map +1 -1
- package/dist/promotion/http.d.ts +14 -0
- package/dist/promotion/http.d.ts.map +1 -0
- package/dist/promotion/http.js +3 -0
- package/dist/promotion/http.js.map +1 -0
- package/dist/promotion/index.d.ts +1 -0
- package/dist/promotion/index.d.ts.map +1 -1
- package/dist/promotion/index.js +1 -0
- package/dist/promotion/index.js.map +1 -1
- package/dist/region/common.d.ts +14 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +15 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +210 -85
- package/dist/region/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +4 -3
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/totals/big-number.d.ts +1 -0
- package/dist/totals/big-number.d.ts.map +1 -1
- package/dist/totals/index.d.ts +24 -0
- package/dist/totals/index.d.ts.map +1 -1
- package/dist/totals/index.js.map +1 -1
- package/dist/workflow/fulfillment/create-shipping-options.d.ts +31 -0
- package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +1 -0
- package/dist/workflow/fulfillment/create-shipping-options.js +3 -0
- package/dist/workflow/fulfillment/create-shipping-options.js.map +1 -0
- package/dist/workflow/fulfillment/index.d.ts +4 -0
- package/dist/workflow/fulfillment/index.d.ts.map +1 -0
- package/dist/workflow/fulfillment/index.js +20 -0
- package/dist/workflow/fulfillment/index.js.map +1 -0
- package/dist/workflow/fulfillment/service-zones.d.ts +21 -0
- package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -0
- package/dist/workflow/fulfillment/service-zones.js +3 -0
- package/dist/workflow/fulfillment/service-zones.js.map +1 -0
- package/dist/workflow/fulfillment/update-shipping-options.d.ts +32 -0
- package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -0
- package/dist/workflow/fulfillment/update-shipping-options.js +3 -0
- package/dist/workflow/fulfillment/update-shipping-options.js.map +1 -0
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +2 -1
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +18 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/stock-locations/index.d.ts +2 -0
- package/dist/workflows/stock-locations/index.d.ts.map +1 -0
- package/dist/workflows/stock-locations/index.js +18 -0
- package/dist/workflows/stock-locations/index.js.map +1 -0
- package/dist/workflows/stock-locations/mutations.d.ts +8 -0
- package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
- package/dist/workflows/stock-locations/mutations.js +3 -0
- package/dist/workflows/stock-locations/mutations.js.map +1 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fulfillment-set.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/fulfillment-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"fulfillment-set.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/fulfillment-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,EAAE,CAAA;CACnE;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,CACZ,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAChD;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CACJ,EAAE,CAAA;CACJ"}
|
@@ -1,29 +1,95 @@
|
|
1
1
|
import { CreateFulfillmentAddressDTO } from "./fulfillment-address";
|
2
2
|
import { CreateFulfillmentItemDTO } from "./fulfillment-item";
|
3
3
|
import { CreateFulfillmentLabelDTO } from "./fulfillment-label";
|
4
|
+
/**
|
5
|
+
* The fulfillment order to be created.
|
6
|
+
*/
|
4
7
|
export interface CreateFulfillmentOrderDTO {
|
5
8
|
}
|
9
|
+
/**
|
10
|
+
* The fulfillment to be created.
|
11
|
+
*/
|
6
12
|
export interface CreateFulfillmentDTO {
|
13
|
+
/**
|
14
|
+
* The associated location's ID.
|
15
|
+
*/
|
7
16
|
location_id: string;
|
17
|
+
/**
|
18
|
+
* The date the fulfillment was packed.
|
19
|
+
*/
|
8
20
|
packed_at?: Date | null;
|
21
|
+
/**
|
22
|
+
* The date the fulfillment was shipped.
|
23
|
+
*/
|
9
24
|
shipped_at?: Date | null;
|
25
|
+
/**
|
26
|
+
* The date the fulfillment was delivered.
|
27
|
+
*/
|
10
28
|
delivered_at?: Date | null;
|
29
|
+
/**
|
30
|
+
* The date the fulfillment was canceled.
|
31
|
+
*/
|
11
32
|
canceled_at?: Date | null;
|
33
|
+
/**
|
34
|
+
* The data necessary for the associated fulfillment provider to process the fulfillment.
|
35
|
+
*/
|
12
36
|
data?: Record<string, unknown> | null;
|
37
|
+
/**
|
38
|
+
* The associated fulfillment provider's ID.
|
39
|
+
*/
|
13
40
|
provider_id: string;
|
41
|
+
/**
|
42
|
+
* The associated shipping option's ID.
|
43
|
+
*/
|
14
44
|
shipping_option_id?: string | null;
|
45
|
+
/**
|
46
|
+
* Holds custom data in key-value pairs.
|
47
|
+
*/
|
15
48
|
metadata?: Record<string, unknown> | null;
|
49
|
+
/**
|
50
|
+
* The address associated with the fulfillment. It's used for delivery.
|
51
|
+
*/
|
16
52
|
delivery_address: Omit<CreateFulfillmentAddressDTO, "fulfillment_id">;
|
53
|
+
/**
|
54
|
+
* The items associated with the fulfillment.
|
55
|
+
*/
|
17
56
|
items: Omit<CreateFulfillmentItemDTO, "fulfillment_id">[];
|
57
|
+
/**
|
58
|
+
* The labels associated with the fulfillment.
|
59
|
+
*/
|
18
60
|
labels: Omit<CreateFulfillmentLabelDTO, "fulfillment_id">[];
|
61
|
+
/**
|
62
|
+
* The associated fulfillment order.
|
63
|
+
*/
|
19
64
|
order: CreateFulfillmentOrderDTO;
|
20
65
|
}
|
66
|
+
/**
|
67
|
+
* The attributes to update in the fulfillment.
|
68
|
+
*/
|
21
69
|
export interface UpdateFulfillmentDTO {
|
70
|
+
/**
|
71
|
+
* The associated location's ID.
|
72
|
+
*/
|
22
73
|
location_id?: string;
|
74
|
+
/**
|
75
|
+
* The date the fulfillment was packed.
|
76
|
+
*/
|
23
77
|
packed_at?: Date | null;
|
78
|
+
/**
|
79
|
+
* The date the fulfillment was shipped.
|
80
|
+
*/
|
24
81
|
shipped_at?: Date | null;
|
82
|
+
/**
|
83
|
+
* The date the fulfillment was delivered.
|
84
|
+
*/
|
25
85
|
delivered_at?: Date | null;
|
86
|
+
/**
|
87
|
+
* The data necessary for the associated fulfillment provider to process the fulfillment.
|
88
|
+
*/
|
26
89
|
data?: Record<string, unknown> | null;
|
90
|
+
/**
|
91
|
+
* Holds custom data in key-value pairs.
|
92
|
+
*/
|
27
93
|
metadata?: Record<string, unknown> | null;
|
28
94
|
}
|
29
95
|
//# sourceMappingURL=fulfillment.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fulfillment.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAE/D,MAAM,WAAW,yBAAyB;CAA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OAEG;IACH,KAAK,EAAE,yBAAyB,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C"}
|
@@ -1,50 +1,173 @@
|
|
1
1
|
import { GeoZoneType } from "../common";
|
2
|
+
/**
|
3
|
+
* The geo zone to be created.
|
4
|
+
*/
|
2
5
|
interface CreateGeoZoneBaseDTO {
|
6
|
+
/**
|
7
|
+
* The type of the geo zone.
|
8
|
+
*/
|
3
9
|
type: GeoZoneType;
|
10
|
+
/**
|
11
|
+
* The associated service zone's ID.
|
12
|
+
*/
|
4
13
|
service_zone_id: string;
|
14
|
+
/**
|
15
|
+
* The ISO 2 character country code of the geo zone.
|
16
|
+
*/
|
5
17
|
country_code: string;
|
18
|
+
/**
|
19
|
+
* Holds custom data in key-value pairs.
|
20
|
+
*/
|
6
21
|
metadata?: Record<string, any> | null;
|
7
22
|
}
|
23
|
+
/**
|
24
|
+
* The geo zone to be created of type `country`.
|
25
|
+
*/
|
8
26
|
export interface CreateCountryGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
27
|
+
/**
|
28
|
+
* The type of the geo zone.
|
29
|
+
* @defaultValue `"country"`
|
30
|
+
*/
|
9
31
|
type: "country";
|
10
32
|
}
|
33
|
+
/**
|
34
|
+
* The geo zone to be created of type `province`.
|
35
|
+
*/
|
11
36
|
export interface CreateProvinceGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
37
|
+
/**
|
38
|
+
* The type of the geo zone.
|
39
|
+
* @defaultValue `"province"`
|
40
|
+
*/
|
12
41
|
type: "province";
|
42
|
+
/**
|
43
|
+
* The province code of the geo zone.
|
44
|
+
*/
|
13
45
|
province_code: string;
|
14
46
|
}
|
47
|
+
/**
|
48
|
+
* The geo zone to be created of type `city`.
|
49
|
+
*/
|
15
50
|
export interface CreateCityGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
51
|
+
/**
|
52
|
+
* The type of the geo zone.
|
53
|
+
* @defaultValue `"city"`
|
54
|
+
*/
|
16
55
|
type: "city";
|
56
|
+
/**
|
57
|
+
* The province code of the geo zone.
|
58
|
+
*/
|
17
59
|
province_code: string;
|
60
|
+
/**
|
61
|
+
* The city of the geo zone.
|
62
|
+
*/
|
18
63
|
city: string;
|
19
64
|
}
|
65
|
+
/**
|
66
|
+
* The geo zone to be created of type `zip`.
|
67
|
+
*/
|
20
68
|
export interface CreateZipGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
69
|
+
/**
|
70
|
+
* The type of the geo zone.
|
71
|
+
* @defaultValue `"zip"`
|
72
|
+
*/
|
21
73
|
type: "zip";
|
74
|
+
/**
|
75
|
+
* The province code of the geo zone.
|
76
|
+
*/
|
22
77
|
province_code: string;
|
78
|
+
/**
|
79
|
+
* The city of the geo zone.
|
80
|
+
*/
|
23
81
|
city: string;
|
82
|
+
/**
|
83
|
+
* The postal expression of the geo zone.
|
84
|
+
*/
|
24
85
|
postal_expression: Record<string, any>;
|
25
86
|
}
|
87
|
+
/**
|
88
|
+
* @interface
|
89
|
+
*
|
90
|
+
* The geo zone to be created. The value of the `type` attributes allows for passing more attributes.
|
91
|
+
*/
|
26
92
|
export type CreateGeoZoneDTO = CreateCountryGeoZoneDTO | CreateProvinceGeoZoneDTO | CreateCityGeoZoneDTO | CreateZipGeoZoneDTO;
|
93
|
+
/**
|
94
|
+
* The attributes to update in the geo zone.
|
95
|
+
*/
|
27
96
|
export interface UpdateGeoZoneBaseDTO extends Partial<CreateGeoZoneBaseDTO> {
|
97
|
+
/**
|
98
|
+
* The ID of the geo zone.
|
99
|
+
*/
|
28
100
|
id: string;
|
29
101
|
}
|
102
|
+
/**
|
103
|
+
* The attributes to update in the geo zone of type `country`.
|
104
|
+
*/
|
30
105
|
export interface UpdateCountryGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
106
|
+
/**
|
107
|
+
* The type of the geo zone.
|
108
|
+
* @defaultValue `"country"`
|
109
|
+
*/
|
31
110
|
type: "country";
|
32
111
|
}
|
112
|
+
/**
|
113
|
+
* The attributes to update in the geo zone of type `province`.
|
114
|
+
*/
|
33
115
|
export interface UpdateProvinceGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
116
|
+
/**
|
117
|
+
* The type of the geo zone.
|
118
|
+
* @defaultValue `"province"`
|
119
|
+
*/
|
34
120
|
type: "province";
|
121
|
+
/**
|
122
|
+
* The province code of the geo zone.
|
123
|
+
*/
|
35
124
|
province_code: string;
|
36
125
|
}
|
126
|
+
/**
|
127
|
+
* The attributes to update in the geo zone of type `city`.
|
128
|
+
*/
|
37
129
|
export interface UpdateCityGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
130
|
+
/**
|
131
|
+
* The type of the geo zone.
|
132
|
+
* @defaultValue `"city"`
|
133
|
+
*/
|
38
134
|
type: "city";
|
135
|
+
/**
|
136
|
+
* The province code of the geo zone.
|
137
|
+
*/
|
39
138
|
province_code?: string;
|
139
|
+
/**
|
140
|
+
* The city of the geo zone.
|
141
|
+
*/
|
40
142
|
city?: string;
|
41
143
|
}
|
144
|
+
/**
|
145
|
+
* The attributes to update in the geo zone of type `zip`.
|
146
|
+
*/
|
42
147
|
export interface UpdateZipGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
148
|
+
/**
|
149
|
+
* The type of the geo zone.
|
150
|
+
* @defaultValue `"zip"`
|
151
|
+
*/
|
43
152
|
type: "zip";
|
153
|
+
/**
|
154
|
+
* The province code of the geo zone.
|
155
|
+
*/
|
44
156
|
province_code?: string;
|
157
|
+
/**
|
158
|
+
* The city of the geo zone.
|
159
|
+
*/
|
45
160
|
city?: string;
|
161
|
+
/**
|
162
|
+
* The postal expression of the geo zone.
|
163
|
+
*/
|
46
164
|
postal_expression?: Record<string, any>;
|
47
165
|
}
|
166
|
+
/**
|
167
|
+
* @interface
|
168
|
+
*
|
169
|
+
* The attributes to update in the geo zone. The value of the `type` attributes allows for passing more attributes.
|
170
|
+
*/
|
48
171
|
export type UpdateGeoZoneDTO = UpdateCountryGeoZoneDTO | UpdateProvinceGeoZoneDTO | UpdateCityGeoZoneDTO | UpdateZipGeoZoneDTO;
|
49
172
|
export {};
|
50
173
|
//# sourceMappingURL=geo-zone.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"geo-zone.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/geo-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC,UAAU,oBAAoB;IAC5B,IAAI,EAAE,WAAW,CAAA;
|
1
|
+
{"version":3,"file":"geo-zone.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/geo-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAA;IAEjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE;;;OAGG;IACH,IAAI,EAAE,SAAS,CAAA;CAChB;AAED;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,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D;;;OAGG;IACH,IAAI,EAAE,KAAK,CAAA;IAEX;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACxC;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GACxB,uBAAuB,GACvB,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB,CAAA"}
|
@@ -1,14 +1,46 @@
|
|
1
1
|
import { CreateCityGeoZoneDTO, CreateCountryGeoZoneDTO, CreateProvinceGeoZoneDTO, CreateZipGeoZoneDTO } from "./geo-zone";
|
2
|
+
/**
|
3
|
+
* The service zone to be created.
|
4
|
+
*/
|
2
5
|
export interface CreateServiceZoneDTO {
|
6
|
+
/**
|
7
|
+
* The name of the service zone.
|
8
|
+
*/
|
3
9
|
name: string;
|
10
|
+
/**
|
11
|
+
* The associated fulfillment set's ID.
|
12
|
+
*/
|
4
13
|
fulfillment_set_id: string;
|
14
|
+
/**
|
15
|
+
* The geo zones associated with the service zone.
|
16
|
+
*/
|
5
17
|
geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id">)[];
|
6
18
|
}
|
19
|
+
/**
|
20
|
+
* The attributes to update in the service zone.
|
21
|
+
*/
|
7
22
|
export interface UpdateServiceZoneDTO {
|
8
|
-
|
23
|
+
/**
|
24
|
+
* The ID of the service zone.
|
25
|
+
*/
|
26
|
+
id?: string;
|
27
|
+
/**
|
28
|
+
* The name of the service zone.
|
29
|
+
*/
|
9
30
|
name?: string;
|
31
|
+
/**
|
32
|
+
* The geo zones associated with the service zone.
|
33
|
+
*/
|
10
34
|
geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id"> | {
|
35
|
+
/**
|
36
|
+
* The ID of the geo zone.
|
37
|
+
*/
|
11
38
|
id: string;
|
12
39
|
})[];
|
13
40
|
}
|
41
|
+
/**
|
42
|
+
* A service zone to be created or updated.
|
43
|
+
*/
|
44
|
+
export interface UpsertServiceZoneDTO extends UpdateServiceZoneDTO {
|
45
|
+
}
|
14
46
|
//# sourceMappingURL=service-zone.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service-zone.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/service-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"service-zone.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/service-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAEnB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,GAChD,IAAI,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GACjD,IAAI,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAC7C,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAC/C,EAAE,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,CACR,IAAI,CAAC,uBAAuB,EAAE,iBAAiB,CAAC,GAChD,IAAI,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,GACjD,IAAI,CAAC,oBAAoB,EAAE,iBAAiB,CAAC,GAC7C,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAC5C;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CACJ,EAAE,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;CAAG"}
|
@@ -1,11 +1,32 @@
|
|
1
1
|
import { RuleOperatorType } from "../../common";
|
2
|
+
/**
|
3
|
+
* The shipping option rule to be created.
|
4
|
+
*/
|
2
5
|
export interface CreateShippingOptionRuleDTO {
|
6
|
+
/**
|
7
|
+
* The attribute of the shipping option rule.
|
8
|
+
*/
|
3
9
|
attribute: string;
|
10
|
+
/**
|
11
|
+
* The operator of the shipping option rule.
|
12
|
+
*/
|
4
13
|
operator: RuleOperatorType;
|
14
|
+
/**
|
15
|
+
* The value(s) of the shipping option rule.
|
16
|
+
*/
|
5
17
|
value: string | string[];
|
18
|
+
/**
|
19
|
+
* The associated shipping option's ID.
|
20
|
+
*/
|
6
21
|
shipping_option_id: string;
|
7
22
|
}
|
23
|
+
/**
|
24
|
+
* The attributes to update in the shipping option rule.
|
25
|
+
*/
|
8
26
|
export interface UpdateShippingOptionRuleDTO extends Partial<CreateShippingOptionRuleDTO> {
|
27
|
+
/**
|
28
|
+
* The ID of the shipping option rule.
|
29
|
+
*/
|
9
30
|
id: string;
|
10
31
|
}
|
11
32
|
//# sourceMappingURL=shipping-option-rule.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shipping-option-rule.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;
|
1
|
+
{"version":3,"file":"shipping-option-rule.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAA;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,OAAO,CAAC,2BAA2B,CAAC;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX"}
|
@@ -1,10 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* The shipping option type to be created.
|
3
|
+
*/
|
1
4
|
export interface CreateShippingOptionTypeDTO {
|
5
|
+
/**
|
6
|
+
* The label of the shipping option type.
|
7
|
+
*/
|
2
8
|
label: string;
|
9
|
+
/**
|
10
|
+
* The description of the shipping option type.
|
11
|
+
*/
|
3
12
|
description: string;
|
13
|
+
/**
|
14
|
+
* The code of the shipping option type.
|
15
|
+
*/
|
4
16
|
code: string;
|
17
|
+
/**
|
18
|
+
* The associated shipping option's ID.
|
19
|
+
*/
|
5
20
|
shipping_option_id: string;
|
6
21
|
}
|
22
|
+
/**
|
23
|
+
* The attributes to update in the shipping option type.
|
24
|
+
*/
|
7
25
|
export interface UpdateShippingOptionTypeDTO extends Partial<CreateShippingOptionTypeDTO> {
|
26
|
+
/**
|
27
|
+
* The ID of the shipping option type.
|
28
|
+
*/
|
8
29
|
id: string;
|
9
30
|
}
|
10
31
|
//# sourceMappingURL=shipping-option-type.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shipping-option-type.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"shipping-option-type.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,OAAO,CAAC,2BAA2B,CAAC;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX"}
|
@@ -1,29 +1,99 @@
|
|
1
1
|
import { CreateShippingOptionTypeDTO } from "./shipping-option-type";
|
2
2
|
import { ShippingOptionPriceType } from "../common";
|
3
3
|
import { CreateShippingOptionRuleDTO } from "./shipping-option-rule";
|
4
|
+
/**
|
5
|
+
* The shipping option to be created.
|
6
|
+
*/
|
4
7
|
export interface CreateShippingOptionDTO {
|
8
|
+
/**
|
9
|
+
* The name of the shipping option.
|
10
|
+
*/
|
5
11
|
name: string;
|
12
|
+
/**
|
13
|
+
* The type of the shipping option's price.
|
14
|
+
*/
|
6
15
|
price_type: ShippingOptionPriceType;
|
16
|
+
/**
|
17
|
+
* The associated service zone's ID.
|
18
|
+
*/
|
7
19
|
service_zone_id: string;
|
20
|
+
/**
|
21
|
+
* The associated shipping profile's ID.
|
22
|
+
*/
|
8
23
|
shipping_profile_id: string;
|
24
|
+
/**
|
25
|
+
* The associated provider's ID.
|
26
|
+
*/
|
9
27
|
provider_id: string;
|
28
|
+
/**
|
29
|
+
* The shipping option type associated with the shipping option.
|
30
|
+
*/
|
10
31
|
type: Omit<CreateShippingOptionTypeDTO, "shipping_option_id">;
|
32
|
+
/**
|
33
|
+
* The data necessary for the associated fulfillment provider to process the shipping option
|
34
|
+
* and its associated fulfillments.
|
35
|
+
*/
|
11
36
|
data?: Record<string, unknown> | null;
|
37
|
+
/**
|
38
|
+
* The shipping option rules associated with the shipping option.
|
39
|
+
*/
|
12
40
|
rules?: Omit<CreateShippingOptionRuleDTO, "shipping_option_id">[];
|
13
41
|
}
|
42
|
+
/**
|
43
|
+
* The attributes to update in the shipping option.
|
44
|
+
*/
|
14
45
|
export interface UpdateShippingOptionDTO {
|
15
|
-
|
46
|
+
/**
|
47
|
+
* The ID of the shipping option.
|
48
|
+
*/
|
49
|
+
id?: string;
|
50
|
+
/**
|
51
|
+
* The name of the shipping option.
|
52
|
+
*/
|
16
53
|
name?: string;
|
54
|
+
/**
|
55
|
+
* The type of the shipping option's price.
|
56
|
+
*/
|
17
57
|
price_type?: ShippingOptionPriceType;
|
58
|
+
/**
|
59
|
+
* The associated service zone's ID.
|
60
|
+
*/
|
18
61
|
service_zone_id?: string;
|
62
|
+
/**
|
63
|
+
* The associated shipping profile's ID.
|
64
|
+
*/
|
19
65
|
shipping_profile_id?: string;
|
66
|
+
/**
|
67
|
+
* The associated provider's ID.
|
68
|
+
*/
|
20
69
|
provider_id?: string;
|
70
|
+
/**
|
71
|
+
* The shipping option type associated with the shipping option.
|
72
|
+
*/
|
21
73
|
type: Omit<CreateShippingOptionTypeDTO, "shipping_option_id"> | {
|
74
|
+
/**
|
75
|
+
* The ID of the shipping option type.
|
76
|
+
*/
|
22
77
|
id: string;
|
23
78
|
};
|
79
|
+
/**
|
80
|
+
* The data necessary for the associated fulfillment provider to process the shipping option
|
81
|
+
* and its associated fulfillments.
|
82
|
+
*/
|
24
83
|
data?: Record<string, unknown> | null;
|
84
|
+
/**
|
85
|
+
* The shipping option rules associated with the shipping option.
|
86
|
+
*/
|
25
87
|
rules?: (Omit<CreateShippingOptionRuleDTO, "shipping_option_id"> | {
|
88
|
+
/**
|
89
|
+
* The ID of the shipping option rule.
|
90
|
+
*/
|
26
91
|
id: string;
|
27
92
|
})[];
|
28
93
|
}
|
94
|
+
/**
|
95
|
+
* A shipping option to be created or updated.
|
96
|
+
*/
|
97
|
+
export interface UpsertShippingOptionDTO extends UpdateShippingOptionDTO {
|
98
|
+
}
|
29
99
|
//# sourceMappingURL=shipping-option.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAA;IAEnC;;O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
*/
|
1
4
|
export interface CreateShippingProfileDTO {
|
5
|
+
/**
|
6
|
+
* The name of the shipping profile.
|
7
|
+
*/
|
2
8
|
name: string;
|
9
|
+
/**
|
10
|
+
* The type of the shipping profile.
|
11
|
+
*/
|
3
12
|
type?: string;
|
13
|
+
/**
|
14
|
+
* Holds custom data in key-value pairs.
|
15
|
+
*/
|
4
16
|
metadata?: Record<string, unknown>;
|
5
17
|
}
|
18
|
+
/**
|
19
|
+
* The attributes to update in the shipping profile.
|
20
|
+
*/
|
6
21
|
export interface UpdateShippingProfileDTO extends Partial<CreateShippingProfileDTO> {
|
7
22
|
}
|
8
23
|
//# sourceMappingURL=shipping-profile.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shipping-profile.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-profile.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"shipping-profile.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,OAAO,CAAC,wBAAwB,CAAC;CAAG"}
|