@medusajs/types 1.12.0-snapshot-20240406075900 → 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 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +6 -1
- 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/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/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/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 +5 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +4 -0
- package/dist/region/mutations.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/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
|
+
import { BigNumberInput, BigNumberValue } from "../../totals";
|
2
3
|
import { PriceListDTO } from "./price-list";
|
3
4
|
import { PriceRuleDTO } from "./price-rule";
|
4
5
|
import { PriceSetDTO } from "./price-set";
|
@@ -23,15 +24,15 @@ export interface PriceDTO {
|
|
23
24
|
/**
|
24
25
|
* The price of this price.
|
25
26
|
*/
|
26
|
-
amount?:
|
27
|
+
amount?: BigNumberValue;
|
27
28
|
/**
|
28
29
|
* The minimum quantity required to be purchased for this price to be applied.
|
29
30
|
*/
|
30
|
-
min_quantity?:
|
31
|
+
min_quantity?: BigNumberValue;
|
31
32
|
/**
|
32
33
|
* The maximum quantity required to be purchased for this price to be applied.
|
33
34
|
*/
|
34
|
-
max_quantity?:
|
35
|
+
max_quantity?: BigNumberValue;
|
35
36
|
/**
|
36
37
|
* The price set associated with the price.
|
37
38
|
*
|
@@ -78,15 +79,15 @@ export interface UpdatePriceDTO {
|
|
78
79
|
/**
|
79
80
|
* The amount of this price.
|
80
81
|
*/
|
81
|
-
amount?:
|
82
|
+
amount?: BigNumberInput;
|
82
83
|
/**
|
83
84
|
* The minimum quantity required to be purchased for this price to be applied.
|
84
85
|
*/
|
85
|
-
min_quantity?:
|
86
|
+
min_quantity?: BigNumberInput;
|
86
87
|
/**
|
87
88
|
* The maximum quantity required to be purchased for this price to be applied.
|
88
89
|
*/
|
89
|
-
max_quantity?:
|
90
|
+
max_quantity?: BigNumberInput;
|
90
91
|
}
|
91
92
|
export interface CreatePriceDTO {
|
92
93
|
title?: string;
|
@@ -101,15 +102,15 @@ export interface CreatePriceDTO {
|
|
101
102
|
/**
|
102
103
|
* The amount of this price.
|
103
104
|
*/
|
104
|
-
amount:
|
105
|
+
amount: BigNumberInput;
|
105
106
|
/**
|
106
107
|
* The minimum quantity required to be purchased for this price to be applied.
|
107
108
|
*/
|
108
|
-
min_quantity?:
|
109
|
+
min_quantity?: BigNumberInput | null;
|
109
110
|
/**
|
110
111
|
* The maximum quantity required to be purchased for this price to be applied.
|
111
112
|
*/
|
112
|
-
max_quantity?:
|
113
|
+
max_quantity?: BigNumberInput | null;
|
113
114
|
}
|
114
115
|
/**
|
115
116
|
* @interface
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;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AAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAChC,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB"}
|
@@ -7,15 +7,6 @@ export interface CreatePriceListPriceWorkflowDTO {
|
|
7
7
|
min_quantity?: number;
|
8
8
|
rules?: Record<string, string>;
|
9
9
|
}
|
10
|
-
export interface UpdatePriceListPriceWorkflowDTO {
|
11
|
-
id: string;
|
12
|
-
amount?: number;
|
13
|
-
currency_code?: string;
|
14
|
-
variant_id?: string;
|
15
|
-
max_quantity?: number;
|
16
|
-
min_quantity?: number;
|
17
|
-
rules?: Record<string, string>;
|
18
|
-
}
|
19
10
|
export interface CreatePriceListWorkflowInputDTO {
|
20
11
|
title: string;
|
21
12
|
description: string;
|
@@ -23,7 +14,7 @@ export interface CreatePriceListWorkflowInputDTO {
|
|
23
14
|
ends_at?: string | null;
|
24
15
|
status?: PriceListStatus;
|
25
16
|
rules?: Record<string, string[]>;
|
26
|
-
prices
|
17
|
+
prices: CreatePriceListPriceWorkflowDTO[];
|
27
18
|
}
|
28
19
|
export interface UpdatePriceListWorkflowInputDTO {
|
29
20
|
id: string;
|
@@ -33,28 +24,27 @@ export interface UpdatePriceListWorkflowInputDTO {
|
|
33
24
|
ends_at?: string | null;
|
34
25
|
status?: PriceListStatus;
|
35
26
|
rules?: Record<string, string[]>;
|
36
|
-
prices?: CreatePriceListPriceWorkflowDTO[];
|
37
27
|
}
|
38
28
|
export interface UpdatePriceListPricesWorkflowDTO {
|
39
29
|
id: string;
|
40
|
-
prices:
|
30
|
+
prices: {
|
31
|
+
id: string;
|
32
|
+
variant_id: string;
|
33
|
+
amount?: number;
|
34
|
+
currency_code?: string;
|
35
|
+
max_quantity?: number;
|
36
|
+
min_quantity?: number;
|
37
|
+
rules?: Record<string, string>;
|
38
|
+
}[];
|
41
39
|
}
|
42
40
|
export interface CreatePriceListPricesWorkflowDTO {
|
43
41
|
id: string;
|
44
42
|
prices: CreatePriceListPriceWorkflowDTO[];
|
45
43
|
}
|
46
|
-
export interface UpdatePriceListPriceWorkflowDTO {
|
47
|
-
data: Pick<UpdatePriceListWorkflowInputDTO, "id" | "prices">[];
|
48
|
-
variant_price_map: Record<string, string>;
|
49
|
-
}
|
50
44
|
export interface UpdatePriceListPriceWorkflowStepDTO {
|
51
45
|
data?: UpdatePriceListPricesWorkflowDTO[];
|
52
46
|
variant_price_map: Record<string, string>;
|
53
47
|
}
|
54
|
-
export interface UpsertPriceListPricesWorkflowStepDTO {
|
55
|
-
data: Pick<UpdatePriceListWorkflowInputDTO, "id" | "prices">[];
|
56
|
-
variant_price_map: Record<string, string>;
|
57
|
-
}
|
58
48
|
export interface CreatePriceListsWorkflowStepDTO {
|
59
49
|
data: CreatePriceListWorkflowInputDTO[];
|
60
50
|
variant_price_map: Record<string, string>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/pricing/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,+BAA+B;IAC9C,
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/pricing/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,CAAC,EA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AoC;IACnD,IAAI,EAAE,CAAC,IAAI,CAAC,+BAA+B,EAAE,QAAQ,CAAC,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IAC1E,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC1C"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export type AdminGetPromotionRulesRes = {
|
2
|
+
id?: string;
|
3
|
+
attribute: string;
|
4
|
+
attribute_label: string;
|
5
|
+
operator: string;
|
6
|
+
operator_label: string;
|
7
|
+
values: {
|
8
|
+
label?: string;
|
9
|
+
value: string;
|
10
|
+
}[];
|
11
|
+
disguised?: boolean;
|
12
|
+
required?: boolean;
|
13
|
+
}[];
|
14
|
+
//# sourceMappingURL=http.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/promotion/http.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/promotion/http.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotion/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotion/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
package/dist/promotion/index.js
CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./common"), exports);
|
18
|
+
__exportStar(require("./http"), exports);
|
18
19
|
__exportStar(require("./mutations"), exports);
|
19
20
|
__exportStar(require("./service"), exports);
|
20
21
|
__exportStar(require("./workflows"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/promotion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,8CAA2B;AAC3B,4CAAyB;AACzB,8CAA2B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/promotion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,8CAA2B;AAC3B,4CAAyB;AACzB,8CAA2B"}
|
package/dist/region/common.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { BaseFilterable, OperatorMap } from "../dal";
|
2
|
+
import { PaymentProviderDTO } from "../payment";
|
2
3
|
/**
|
3
4
|
* The region details.
|
4
5
|
*/
|
@@ -23,6 +24,10 @@ export interface RegionDTO {
|
|
23
24
|
* The countries of the region.
|
24
25
|
*/
|
25
26
|
countries: RegionCountryDTO[];
|
27
|
+
/**
|
28
|
+
* Payment providers available in the region
|
29
|
+
*/
|
30
|
+
payment_providers: PaymentProviderDTO[];
|
26
31
|
/**
|
27
32
|
* Holds custom data in key-value pairs.
|
28
33
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/region/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/region/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAA;IAExB;;OAEG;IACH,SAAS,EAAE,gBAAgB,EAAE,CAAA;IAC7B;;OAEG;IACH,iBAAiB,EAAE,kBAAkB,EAAE,CAAA;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBACf,SAAQ,cAAc,CAAC,qBAAqB,CAAC;IAC7C;;O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AM,EAAE,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
|
package/dist/tax/common.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { BaseFilterable } from "../dal";
|
2
2
|
import { OperatorMap } from "../dal/utils";
|
3
|
+
import { BigNumberInput } from "../totals";
|
3
4
|
/**
|
4
5
|
* The tax rate details.
|
5
6
|
*/
|
@@ -312,11 +313,11 @@ export interface TaxableItemDTO {
|
|
312
313
|
/**
|
313
314
|
* The quantity of the taxable item.
|
314
315
|
*/
|
315
|
-
quantity?:
|
316
|
+
quantity?: BigNumberInput;
|
316
317
|
/**
|
317
318
|
* The unit price of the taxable item.
|
318
319
|
*/
|
319
|
-
unit_price?:
|
320
|
+
unit_price?: BigNumberInput;
|
320
321
|
/**
|
321
322
|
* The ISO 3 character currency code of the taxable item.
|
322
323
|
*/
|
@@ -337,7 +338,7 @@ export interface TaxableShippingDTO {
|
|
337
338
|
/**
|
338
339
|
* The unit price of the taxable shipping.
|
339
340
|
*/
|
340
|
-
unit_price?:
|
341
|
+
unit_price?: BigNumberInput;
|
341
342
|
/**
|
342
343
|
* The ISO 3 character currency code of the taxable shipping.
|
343
344
|
*/
|
package/dist/tax/common.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/tax/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;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AM,CAAA;QAEb;;WAEG;QACH,eAAe,EAAE,MAAM,EAAE,CAAA;KAC1B,CAAA;IAED;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,UAAU,UAAU;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;CACzB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA"}
|
1
|
+
{"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;AAE9E,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA"}
|
package/dist/totals/index.d.ts
CHANGED
@@ -1,2 +1,26 @@
|
|
1
|
+
import { BigNumberValue } from "./big-number";
|
1
2
|
export * from "./big-number";
|
3
|
+
export type CartLikeWithTotals = {
|
4
|
+
original_item_subtotal: BigNumberValue;
|
5
|
+
original_item_tax_total: BigNumberValue;
|
6
|
+
item_total: BigNumberValue;
|
7
|
+
item_subtotal: BigNumberValue;
|
8
|
+
item_tax_total: BigNumberValue;
|
9
|
+
original_total: BigNumberValue;
|
10
|
+
original_subtotal: BigNumberValue;
|
11
|
+
original_tax_total: BigNumberValue;
|
12
|
+
total: BigNumberValue;
|
13
|
+
subtotal: BigNumberValue;
|
14
|
+
tax_total: BigNumberValue;
|
15
|
+
discount_total: BigNumberValue;
|
16
|
+
discount_tax_total: BigNumberValue;
|
17
|
+
gift_card_total: BigNumberValue;
|
18
|
+
gift_card_tax_total: BigNumberValue;
|
19
|
+
shipping_total: BigNumberValue;
|
20
|
+
shipping_subtotal: BigNumberValue;
|
21
|
+
shipping_tax_total: BigNumberValue;
|
22
|
+
original_shipping_total: BigNumberValue;
|
23
|
+
original_shipping_subtotal: BigNumberValue;
|
24
|
+
original_shipping_tax_total: BigNumberValue;
|
25
|
+
};
|
2
26
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,cAAc,cAAc,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,EAAE,cAAc,CAAA;IACtC,uBAAuB,EAAE,cAAc,CAAA;IACvC,UAAU,EAAE,cAAc,CAAA;IAC1B,aAAa,EAAE,cAAc,CAAA;IAC7B,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,cAAc,CAAA;IACjC,kBAAkB,EAAE,cAAc,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,cAAc,CAAA;IACxB,SAAS,EAAE,cAAc,CAAA;IACzB,cAAc,EAAE,cAAc,CAAA;IAC9B,kBAAkB,EAAE,cAAc,CAAA;IAClC,eAAe,EAAE,cAAc,CAAA;IAC/B,mBAAmB,EAAE,cAAc,CAAA;IACnC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,cAAc,CAAA;IACjC,kBAAkB,EAAE,cAAc,CAAA;IAClC,uBAAuB,EAAE,cAAc,CAAA;IACvC,0BAA0B,EAAE,cAAc,CAAA;IAC1C,2BAA2B,EAAE,cAAc,CAAA;CAC5C,CAAA"}
|
package/dist/totals/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,+CAA4B"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { ShippingOptionPriceType } from "../../fulfillment";
|
2
|
+
import { RuleOperatorType } from "../../common";
|
3
|
+
export interface CreateShippingOptionsWorkflowInput {
|
4
|
+
name: string;
|
5
|
+
service_zone_id: string;
|
6
|
+
shipping_profile_id: string;
|
7
|
+
data?: Record<string, unknown>;
|
8
|
+
price_type: ShippingOptionPriceType;
|
9
|
+
provider_id: string;
|
10
|
+
type: {
|
11
|
+
label: string;
|
12
|
+
description: string;
|
13
|
+
code: string;
|
14
|
+
};
|
15
|
+
prices: ({
|
16
|
+
currency_code: string;
|
17
|
+
amount: number;
|
18
|
+
} | {
|
19
|
+
region_id: string;
|
20
|
+
amount: number;
|
21
|
+
})[];
|
22
|
+
rules?: {
|
23
|
+
attribute: string;
|
24
|
+
operator: RuleOperatorType;
|
25
|
+
value: string | string[];
|
26
|
+
}[];
|
27
|
+
}
|
28
|
+
export type CreateShippingOptionsWorkflowOutput = {
|
29
|
+
id: string;
|
30
|
+
}[];
|
31
|
+
//# sourceMappingURL=create-shipping-options.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-shipping-options.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/create-shipping-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,UAAU,EAAE,uBAAuB,CAAA;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,MAAM,EAAE,CACJ;QACE,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,GACD;QACE,SAAS,EAAE,MAAM,CAAA;QACjB,MAAM,EAAE,MAAM,CAAA;KACf,CACJ,EAAE,CAAA;IACH,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,gBAAgB,CAAA;QAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KACzB,EAAE,CAAA;CACJ;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAA;CACX,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-shipping-options.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/create-shipping-options.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./create-shipping-options"), exports);
|
18
|
+
__exportStar(require("./update-shipping-options"), exports);
|
19
|
+
__exportStar(require("./service-zones"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,4DAAyC;AACzC,kDAA+B"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { CreateCityGeoZoneDTO, CreateCountryGeoZoneDTO, CreateProvinceGeoZoneDTO, CreateZipGeoZoneDTO, FilterableServiceZoneProps } from "../../fulfillment";
|
2
|
+
interface CreateServiceZone {
|
3
|
+
name: string;
|
4
|
+
fulfillment_set_id: string;
|
5
|
+
geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id">)[];
|
6
|
+
}
|
7
|
+
export interface CreateServiceZonesWorkflowInput {
|
8
|
+
data: CreateServiceZone[];
|
9
|
+
}
|
10
|
+
interface UpdateServiceZone {
|
11
|
+
name?: string;
|
12
|
+
geo_zones?: (Omit<CreateCountryGeoZoneDTO, "service_zone_id"> | Omit<CreateProvinceGeoZoneDTO, "service_zone_id"> | Omit<CreateCityGeoZoneDTO, "service_zone_id"> | Omit<CreateZipGeoZoneDTO, "service_zone_id"> | {
|
13
|
+
id: string;
|
14
|
+
})[];
|
15
|
+
}
|
16
|
+
export interface UpdateServiceZonesWorkflowInput {
|
17
|
+
selector: FilterableServiceZoneProps;
|
18
|
+
update: UpdateServiceZone;
|
19
|
+
}
|
20
|
+
export {};
|
21
|
+
//# sourceMappingURL=service-zones.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"service-zones.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/service-zones.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAA;AAE1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,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,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,iBAAiB,EAAE,CAAA;CAC1B;AAED,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,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;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CACjB,EAAE,CAAA;CACJ;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,EAAE,0BAA0B,CAAA;IACpC,MAAM,EAAE,iBAAiB,CAAA;CAC1B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"service-zones.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/service-zones.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { ShippingOptionPriceType } from "../../fulfillment";
|
2
|
+
import { RuleOperatorType } from "../../common";
|
3
|
+
export interface UpdateShippingOptionsWorkflowInput {
|
4
|
+
id: string;
|
5
|
+
name?: string;
|
6
|
+
service_zone_id?: string;
|
7
|
+
shipping_profile_id?: string;
|
8
|
+
data?: Record<string, unknown>;
|
9
|
+
price_type?: ShippingOptionPriceType;
|
10
|
+
provider_id?: string;
|
11
|
+
type?: {
|
12
|
+
label: string;
|
13
|
+
description: string;
|
14
|
+
code: string;
|
15
|
+
};
|
16
|
+
prices?: ({
|
17
|
+
currency_code: string;
|
18
|
+
amount: number;
|
19
|
+
} | {
|
20
|
+
region_id: string;
|
21
|
+
amount: number;
|
22
|
+
})[];
|
23
|
+
rules?: {
|
24
|
+
attribute: string;
|
25
|
+
operator: RuleOperatorType;
|
26
|
+
value: string | string[];
|
27
|
+
}[];
|
28
|
+
}
|
29
|
+
export type UpdateShippingOptionsWorkflowOutput = {
|
30
|
+
id: string;
|
31
|
+
}[];
|
32
|
+
//# sourceMappingURL=update-shipping-options.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-shipping-options.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-shipping-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,UAAU,CAAC,EAAE,uBAAuB,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,MAAM,CAAC,EAAE,CACL;QACE,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,GACD;QACE,SAAS,EAAE,MAAM,CAAA;QACjB,MAAM,EAAE,MAAM,CAAA;KACf,CACJ,EAAE,CAAA;IACH,KAAK,CAAC,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,gBAAgB,CAAA;QAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KACzB,EAAE,CAAA;CACJ;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,EAAE,EAAE,MAAM,CAAA;CACX,EAAE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-shipping-options.js","sourceRoot":"","sources":["../../../src/workflow/fulfillment/update-shipping-options.ts"],"names":[],"mappings":""}
|
package/dist/workflow/index.d.ts
CHANGED
@@ -6,4 +6,5 @@ export * as PriceListWorkflow from "./price-list";
|
|
6
6
|
export * as UserWorkflow from "./user";
|
7
7
|
export * as RegionWorkflow from "./region";
|
8
8
|
export * as InviteWorkflow from "./invite";
|
9
|
+
export * as FulfillmentWorkflow from "./fulfillment";
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAA"}
|
package/dist/workflow/index.js
CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.InviteWorkflow = exports.RegionWorkflow = exports.UserWorkflow = exports.PriceListWorkflow = exports.InventoryWorkflow = exports.ProductWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
|
26
|
+
exports.FulfillmentWorkflow = exports.InviteWorkflow = exports.RegionWorkflow = exports.UserWorkflow = exports.PriceListWorkflow = exports.InventoryWorkflow = exports.ProductWorkflow = exports.CommonWorkflow = exports.CartWorkflow = void 0;
|
27
27
|
exports.CartWorkflow = __importStar(require("./cart"));
|
28
28
|
exports.CommonWorkflow = __importStar(require("./common"));
|
29
29
|
exports.ProductWorkflow = __importStar(require("./product"));
|
@@ -32,4 +32,5 @@ exports.PriceListWorkflow = __importStar(require("./price-list"));
|
|
32
32
|
exports.UserWorkflow = __importStar(require("./user"));
|
33
33
|
exports.RegionWorkflow = __importStar(require("./region"));
|
34
34
|
exports.InviteWorkflow = __importStar(require("./invite"));
|
35
|
+
exports.FulfillmentWorkflow = __importStar(require("./fulfillment"));
|
35
36
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,6DAA4C;AAC5C,iEAAgD;AAChD,kEAAiD;AACjD,uDAAsC;AACtC,2DAA0C;AAC1C,2DAA0C"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAsC;AACtC,2DAA0C;AAC1C,6DAA4C;AAC5C,iEAAgD;AAChD,kEAAiD;AACjD,uDAAsC;AACtC,2DAA0C;AAC1C,2DAA0C;AAC1C,qEAAoD"}
|