@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240406075900
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/common/auth-user.d.ts +21 -16
- package/dist/auth/common/auth-user.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +28 -15
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +137 -75
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -1
- package/dist/bundles.js.map +1 -1
- package/dist/cart/common.d.ts +443 -62
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +483 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +1607 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/rule.d.ts +2 -0
- package/dist/common/rule.d.ts.map +1 -0
- package/dist/common/rule.js +3 -0
- package/dist/common/rule.js.map +1 -0
- package/dist/customer/service.d.ts +445 -197
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/file/common.d.ts +14 -0
- package/dist/file/common.d.ts.map +1 -0
- package/dist/file/common.js +3 -0
- package/dist/file/common.js.map +1 -0
- package/dist/file/index.d.ts +4 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +20 -0
- package/dist/file/index.js.map +1 -0
- package/dist/file/mutations.d.ts +18 -0
- package/dist/file/mutations.d.ts.map +1 -0
- package/dist/file/mutations.js +3 -0
- package/dist/file/mutations.js.map +1 -0
- package/dist/file/service.d.ts +76 -0
- package/dist/file/service.d.ts.map +1 -0
- package/dist/file/service.js +3 -0
- package/dist/file/service.js.map +1 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.js +3 -0
- package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +13 -0
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/index.js +29 -0
- package/dist/http/fulfillment/admin/index.js.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.js +3 -0
- package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
- package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
- package/dist/http/fulfillment/index.d.ts +2 -0
- package/dist/http/fulfillment/index.d.ts.map +1 -0
- package/dist/http/fulfillment/index.js +18 -0
- package/dist/http/fulfillment/index.js.map +1 -0
- package/dist/http/index.d.ts +3 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +19 -0
- package/dist/http/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/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/inventory-item.d.ts +55 -64
- package/dist/inventory/common/inventory-item.d.ts.map +1 -1
- package/dist/inventory/common/inventory-level.d.ts +37 -37
- package/dist/inventory/common/inventory-level.d.ts.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +34 -44
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service-next.d.ts +596 -534
- package/dist/inventory/service-next.d.ts.map +1 -1
- package/dist/payment/common.d.ts +174 -53
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js +3 -3
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +58 -17
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +128 -43
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +460 -39
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +2 -2
- package/dist/pricing/common/price-set.d.ts +6 -4
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +731 -1695
- package/dist/pricing/service.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/common/application-method.d.ts +153 -0
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +37 -0
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaign.d.ts +36 -0
- package/dist/promotion/common/campaign.d.ts.map +1 -1
- package/dist/promotion/common/compute-actions.d.ts +135 -0
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
- package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule.d.ts +77 -0
- package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +100 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +84 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +786 -0
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts +9 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +11 -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/stock-location/common.d.ts +14 -0
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/service-next.d.ts +178 -186
- package/dist/stock-location/service-next.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +42 -0
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +75 -0
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +113 -75
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +298 -10
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +157 -0
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +126 -0
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +600 -0
- package/dist/tax/service.d.ts.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,54 +1,189 @@
|
|
1
|
+
/**
|
2
|
+
* @interface
|
3
|
+
*
|
4
|
+
* A compute action informs you what adjustment must be made to a cart item or shipping method.
|
5
|
+
*/
|
1
6
|
export type ComputeActions = AddItemAdjustmentAction | RemoveItemAdjustmentAction | AddShippingMethodAdjustment | RemoveShippingMethodAdjustment | CampaignBudgetExceededAction;
|
7
|
+
/**
|
8
|
+
* @interface
|
9
|
+
*
|
10
|
+
* These computed action types can affect a campaign's budget.
|
11
|
+
*/
|
2
12
|
export type UsageComputedActions = AddShippingMethodAdjustment | AddItemAdjustmentAction;
|
13
|
+
/**
|
14
|
+
* This action indicates that the promotions within a campaign can no longer be used
|
15
|
+
* as the campaign budget has been exceeded.
|
16
|
+
*/
|
3
17
|
export interface CampaignBudgetExceededAction {
|
18
|
+
/**
|
19
|
+
* The type of action.
|
20
|
+
*/
|
4
21
|
action: "campaignBudgetExceeded";
|
22
|
+
/**
|
23
|
+
* The promotion's code.
|
24
|
+
*/
|
5
25
|
code: string;
|
6
26
|
}
|
27
|
+
/**
|
28
|
+
* This action indicates that an adjustment must be made to an item. For example, removing $5 off its amount.
|
29
|
+
*/
|
7
30
|
export interface AddItemAdjustmentAction {
|
31
|
+
/**
|
32
|
+
* The type of action.
|
33
|
+
*/
|
8
34
|
action: "addItemAdjustment";
|
35
|
+
/**
|
36
|
+
* The associated item's ID.
|
37
|
+
*/
|
9
38
|
item_id: string;
|
39
|
+
/**
|
40
|
+
* The amount to remove off the item's total.
|
41
|
+
*/
|
10
42
|
amount: number;
|
43
|
+
/**
|
44
|
+
* The promotion's code.
|
45
|
+
*/
|
11
46
|
code: string;
|
47
|
+
/**
|
48
|
+
* The promotion's description.
|
49
|
+
*/
|
12
50
|
description?: string;
|
13
51
|
}
|
52
|
+
/**
|
53
|
+
* This action indicates that an adjustment must be removed from a line item. For example, remove the $5 discount applied before.
|
54
|
+
*/
|
14
55
|
export interface RemoveItemAdjustmentAction {
|
56
|
+
/**
|
57
|
+
* The type of action.
|
58
|
+
*/
|
15
59
|
action: "removeItemAdjustment";
|
60
|
+
/**
|
61
|
+
* The associated adjustment's ID.
|
62
|
+
*/
|
16
63
|
adjustment_id: string;
|
64
|
+
/**
|
65
|
+
* The promotion's description.
|
66
|
+
*/
|
17
67
|
description?: string;
|
68
|
+
/**
|
69
|
+
* The promotion's code.
|
70
|
+
*/
|
18
71
|
code: string;
|
19
72
|
}
|
73
|
+
/**
|
74
|
+
* This action indicates that an adjustment must be made on a shipping method. For example, make the shipping method free.
|
75
|
+
*/
|
20
76
|
export interface AddShippingMethodAdjustment {
|
77
|
+
/**
|
78
|
+
* The type of action.
|
79
|
+
*/
|
21
80
|
action: "addShippingMethodAdjustment";
|
81
|
+
/**
|
82
|
+
* The associated shipping method's ID.
|
83
|
+
*/
|
22
84
|
shipping_method_id: string;
|
85
|
+
/**
|
86
|
+
* The amount to remove off the shipping method's total.
|
87
|
+
*/
|
23
88
|
amount: number;
|
89
|
+
/**
|
90
|
+
* The promotion's code.
|
91
|
+
*/
|
24
92
|
code: string;
|
93
|
+
/**
|
94
|
+
* The promotion's description.
|
95
|
+
*/
|
25
96
|
description?: string;
|
26
97
|
}
|
98
|
+
/**
|
99
|
+
* This action indicates that an adjustment must be removed from a shipping method. For example, remove the free shipping discount applied before.
|
100
|
+
*/
|
27
101
|
export interface RemoveShippingMethodAdjustment {
|
102
|
+
/**
|
103
|
+
* The type of action
|
104
|
+
*/
|
28
105
|
action: "removeShippingMethodAdjustment";
|
106
|
+
/**
|
107
|
+
* The associated adjustment's ID.
|
108
|
+
*/
|
29
109
|
adjustment_id: string;
|
110
|
+
/**
|
111
|
+
* The promotion's code.
|
112
|
+
*/
|
30
113
|
code: string;
|
31
114
|
}
|
115
|
+
/**
|
116
|
+
* An action's adjustment line.
|
117
|
+
*/
|
32
118
|
export interface ComputeActionAdjustmentLine extends Record<string, unknown> {
|
119
|
+
/**
|
120
|
+
* The ID of the compute action's adjustment line.
|
121
|
+
*/
|
33
122
|
id: string;
|
123
|
+
/**
|
124
|
+
* The promotion's code.
|
125
|
+
*/
|
34
126
|
code: string;
|
35
127
|
}
|
128
|
+
/**
|
129
|
+
* A cart's line item passed in the context when computing actions.
|
130
|
+
*/
|
36
131
|
export interface ComputeActionItemLine extends Record<string, unknown> {
|
132
|
+
/**
|
133
|
+
* The ID of the item line.
|
134
|
+
*/
|
37
135
|
id: string;
|
136
|
+
/**
|
137
|
+
* The quantity of the line item.
|
138
|
+
*/
|
38
139
|
quantity: number;
|
140
|
+
/**
|
141
|
+
* The subtotal of the line item.
|
142
|
+
*/
|
39
143
|
subtotal: number;
|
144
|
+
/**
|
145
|
+
* The adjustments applied before on the line item.
|
146
|
+
*/
|
40
147
|
adjustments?: ComputeActionAdjustmentLine[];
|
41
148
|
}
|
149
|
+
/**
|
150
|
+
* A cart's shipping method passed in the content when computing actions.
|
151
|
+
*/
|
42
152
|
export interface ComputeActionShippingLine extends Record<string, unknown> {
|
153
|
+
/**
|
154
|
+
* The ID of the shipping method.
|
155
|
+
*/
|
43
156
|
id: string;
|
157
|
+
/**
|
158
|
+
* The subtotal of the shipping method.
|
159
|
+
*/
|
44
160
|
subtotal: number;
|
161
|
+
/**
|
162
|
+
* The adjustments applied before on the shipping method.
|
163
|
+
*/
|
45
164
|
adjustments?: ComputeActionAdjustmentLine[];
|
46
165
|
}
|
166
|
+
/**
|
167
|
+
* The context provided when computing actions of promotions.
|
168
|
+
*/
|
47
169
|
export interface ComputeActionContext extends Record<string, unknown> {
|
170
|
+
/**
|
171
|
+
* The cart's line items.
|
172
|
+
*/
|
48
173
|
items?: ComputeActionItemLine[];
|
174
|
+
/**
|
175
|
+
* The cart's shipping methods.
|
176
|
+
*/
|
49
177
|
shipping_methods?: ComputeActionShippingLine[];
|
50
178
|
}
|
179
|
+
/**
|
180
|
+
* Options to configure how actions are computed.
|
181
|
+
*/
|
51
182
|
export interface ComputeActionOptions {
|
183
|
+
/**
|
184
|
+
* Whether to apply promotions having their `is_automatic` field enabled
|
185
|
+
* automatically. If not provided, the automatic promotions are applied.
|
186
|
+
*/
|
52
187
|
prevent_auto_promotions?: boolean;
|
53
188
|
}
|
54
189
|
//# sourceMappingURL=compute-actions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"compute-actions.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/compute-actions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,uBAAuB,GACvB,0BAA0B,GAC1B,2BAA2B,GAC3B,8BAA8B,GAC9B,4BAA4B,CAAA;AAEhC,MAAM,MAAM,oBAAoB,GAC5B,2BAA2B,GAC3B,uBAAuB,CAAA;AAE3B,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,wBAAwB,CAAA;
|
1
|
+
{"version":3,"file":"compute-actions.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/compute-actions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,uBAAuB,GACvB,0BAA0B,GAC1B,2BAA2B,GAC3B,8BAA8B,GAC9B,4BAA4B,CAAA;AAEhC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC5B,2BAA2B,GAC3B,uBAAuB,CAAA;AAE3B;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAA;IAEhC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAA;IAE3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAE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AAA;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACxE;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACnE;;OAEG;IACH,KAAK,CAAC,EAAE,qBAAqB,EAAE,CAAA;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,EAAE,CAAA;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC"}
|
@@ -1,17 +1,47 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { PromotionRuleDTO } from "./promotion-rule";
|
3
|
+
/**
|
4
|
+
* The promotion rule value details.
|
5
|
+
*/
|
3
6
|
export interface PromotionRuleValueDTO {
|
7
|
+
/**
|
8
|
+
* The ID of the promotion rule value.
|
9
|
+
*/
|
4
10
|
id: string;
|
11
|
+
/**
|
12
|
+
* The value of the promotion rule value.
|
13
|
+
*/
|
5
14
|
value?: string;
|
6
15
|
}
|
16
|
+
/**
|
17
|
+
* The promotion rule value to be created.
|
18
|
+
*/
|
7
19
|
export interface CreatePromotionRuleValueDTO {
|
20
|
+
/**
|
21
|
+
* The value of the promotion rule value.
|
22
|
+
*/
|
8
23
|
value: string;
|
24
|
+
/**
|
25
|
+
* The associated promotion rule.
|
26
|
+
*/
|
9
27
|
promotion_rule: PromotionRuleDTO;
|
10
28
|
}
|
29
|
+
/**
|
30
|
+
* The attributes to update in the promotion rule value.
|
31
|
+
*/
|
11
32
|
export interface UpdatePromotionRuleValueDTO {
|
33
|
+
/**
|
34
|
+
* The ID of the promotion rule value.
|
35
|
+
*/
|
12
36
|
id: string;
|
13
37
|
}
|
38
|
+
/**
|
39
|
+
* The filters to apply on the retrieved promotion rule values.
|
40
|
+
*/
|
14
41
|
export interface FilterablePromotionRuleValueProps extends BaseFilterable<FilterablePromotionRuleValueProps> {
|
42
|
+
/**
|
43
|
+
* The IDs to filter the promotion rule values by.
|
44
|
+
*/
|
15
45
|
id?: string[];
|
16
46
|
}
|
17
47
|
//# sourceMappingURL=promotion-rule-value.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion-rule-value.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion-rule-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"promotion-rule-value.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion-rule-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,cAAc,EAAE,gBAAgB,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,cAAc,CAAC,iCAAiC,CAAC;IACzD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;CACd"}
|
@@ -1,31 +1,108 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { PromotionRuleValueDTO } from "./promotion-rule-value";
|
3
|
+
/**
|
4
|
+
* @interface
|
5
|
+
*
|
6
|
+
* The possible operators to use in a promotion rule.
|
7
|
+
*/
|
3
8
|
export type PromotionRuleOperatorValues = "gt" | "lt" | "eq" | "ne" | "in" | "lte" | "gte";
|
9
|
+
/**
|
10
|
+
* The promotion rule details.
|
11
|
+
*/
|
4
12
|
export interface PromotionRuleDTO {
|
13
|
+
/**
|
14
|
+
* The ID of the promotion rule.
|
15
|
+
*/
|
5
16
|
id: string;
|
17
|
+
/**
|
18
|
+
* The description of the promotion rule.
|
19
|
+
*/
|
6
20
|
description?: string | null;
|
21
|
+
/**
|
22
|
+
* The attribute of the promotion rule.
|
23
|
+
*/
|
7
24
|
attribute?: string;
|
25
|
+
/**
|
26
|
+
* The operator of the promotion rule.
|
27
|
+
*/
|
8
28
|
operator?: PromotionRuleOperatorValues;
|
29
|
+
/**
|
30
|
+
* The values of the promotion rule.
|
31
|
+
*/
|
9
32
|
values: PromotionRuleValueDTO[];
|
10
33
|
}
|
34
|
+
/**
|
35
|
+
* The promotion rule to be created.
|
36
|
+
*/
|
11
37
|
export interface CreatePromotionRuleDTO {
|
38
|
+
/**
|
39
|
+
* The description of the promotion rule.
|
40
|
+
*/
|
12
41
|
description?: string | null;
|
42
|
+
/**
|
43
|
+
* The attribute of the promotion rule.
|
44
|
+
*/
|
13
45
|
attribute: string;
|
46
|
+
/**
|
47
|
+
* The operator of the promotion rule.
|
48
|
+
*/
|
14
49
|
operator: PromotionRuleOperatorValues;
|
50
|
+
/**
|
51
|
+
* The values of the promotion rule.
|
52
|
+
* When provided, `PromotionRuleValue` records are
|
53
|
+
* created and associated with the promotion rule.
|
54
|
+
*/
|
15
55
|
values: string[] | string;
|
16
56
|
}
|
57
|
+
/**
|
58
|
+
* The attributes to update in the promotion rule.
|
59
|
+
*/
|
17
60
|
export interface UpdatePromotionRuleDTO {
|
61
|
+
/**
|
62
|
+
* The ID of the promotion rule.
|
63
|
+
*/
|
18
64
|
id: string;
|
65
|
+
/**
|
66
|
+
* The description of the promotion rule.
|
67
|
+
*/
|
19
68
|
description?: string | null;
|
69
|
+
/**
|
70
|
+
* The attribute of the promotion rule.
|
71
|
+
*/
|
20
72
|
attribute?: string;
|
73
|
+
/**
|
74
|
+
* The operator of the promotion rule.
|
75
|
+
*/
|
21
76
|
operator?: PromotionRuleOperatorValues;
|
77
|
+
/**
|
78
|
+
* The values of the promotion rule.
|
79
|
+
* When provided, `PromotionRuleValue` records are
|
80
|
+
* created and associated with the promotion rule.
|
81
|
+
*/
|
22
82
|
values?: string[] | string;
|
23
83
|
}
|
84
|
+
/**
|
85
|
+
* The details required when removing a promotion rule.
|
86
|
+
*/
|
24
87
|
export interface RemovePromotionRuleDTO {
|
88
|
+
/**
|
89
|
+
* The ID of the promotion rule to remove.
|
90
|
+
*/
|
25
91
|
id: string;
|
26
92
|
}
|
93
|
+
/**
|
94
|
+
* The filters to apply on the retrieved promotion rules.
|
95
|
+
*/
|
27
96
|
export interface FilterablePromotionRuleProps extends BaseFilterable<FilterablePromotionRuleProps> {
|
97
|
+
/**
|
98
|
+
* The IDs to filter the promotion rules by.
|
99
|
+
*/
|
28
100
|
id?: string[];
|
29
101
|
}
|
102
|
+
/**
|
103
|
+
* @interface
|
104
|
+
*
|
105
|
+
* The promotion rule's possible types.
|
106
|
+
*/
|
30
107
|
export type PromotionRuleTypes = "buy_rules" | "target_rules" | "rules";
|
31
108
|
//# sourceMappingURL=promotion-rule.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion-rule.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,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AS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IAEtC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,4BACf,SAAQ,cAAc,CAAC,4BAA4B,CAAC;IACpD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,CAAA"}
|
@@ -3,38 +3,138 @@ import { CreateCampaignDTO } from "../mutations";
|
|
3
3
|
import { ApplicationMethodDTO, CreateApplicationMethodDTO, UpdateApplicationMethodDTO } from "./application-method";
|
4
4
|
import { CampaignDTO } from "./campaign";
|
5
5
|
import { CreatePromotionRuleDTO, PromotionRuleDTO } from "./promotion-rule";
|
6
|
+
/**
|
7
|
+
* @interface
|
8
|
+
*
|
9
|
+
* The promotion's possible types.
|
10
|
+
*/
|
6
11
|
export type PromotionTypeValues = "standard" | "buyget";
|
12
|
+
/**
|
13
|
+
* The promotion details.
|
14
|
+
*/
|
7
15
|
export interface PromotionDTO {
|
16
|
+
/**
|
17
|
+
* The ID of the promotion.
|
18
|
+
*/
|
8
19
|
id: string;
|
20
|
+
/**
|
21
|
+
* The code of the promotion.
|
22
|
+
*/
|
9
23
|
code?: string;
|
24
|
+
/**
|
25
|
+
* The type of the promotion:
|
26
|
+
*
|
27
|
+
* - `standard` indicates that a promotion is a standard one applied with conditions.
|
28
|
+
* - `buyget` indicates that a promotion is a "Buy X get Y" promotion.
|
29
|
+
*
|
30
|
+
*/
|
10
31
|
type?: PromotionTypeValues;
|
32
|
+
/**
|
33
|
+
* Whether the promotion is applied automatically.
|
34
|
+
*/
|
11
35
|
is_automatic?: boolean;
|
36
|
+
/**
|
37
|
+
* The associated application method.
|
38
|
+
*/
|
12
39
|
application_method?: ApplicationMethodDTO;
|
40
|
+
/**
|
41
|
+
* The rules of the promotion.
|
42
|
+
*/
|
13
43
|
rules?: PromotionRuleDTO[];
|
44
|
+
/**
|
45
|
+
* The associated campaign.
|
46
|
+
*/
|
14
47
|
campaign?: CampaignDTO;
|
15
48
|
}
|
49
|
+
/**
|
50
|
+
* The promotion to be created.
|
51
|
+
*/
|
16
52
|
export interface CreatePromotionDTO {
|
53
|
+
/**
|
54
|
+
* The code of the promotion.
|
55
|
+
*/
|
17
56
|
code: string;
|
57
|
+
/**
|
58
|
+
* The type of the promotion:
|
59
|
+
*
|
60
|
+
* - `standard` indicates that a promotion is a standard one applied with conditions.
|
61
|
+
* - `buyget` indicates that a promotion is a "Buy X get Y" promotion.
|
62
|
+
*
|
63
|
+
*/
|
18
64
|
type: PromotionTypeValues;
|
65
|
+
/**
|
66
|
+
* Whether the promotion is applied automatically.
|
67
|
+
*/
|
19
68
|
is_automatic?: boolean;
|
69
|
+
/**
|
70
|
+
* The associated application method.
|
71
|
+
*/
|
20
72
|
application_method?: CreateApplicationMethodDTO;
|
73
|
+
/**
|
74
|
+
* The rules of the promotion.
|
75
|
+
*/
|
21
76
|
rules?: CreatePromotionRuleDTO[];
|
77
|
+
/**
|
78
|
+
* The associated campaign.
|
79
|
+
*/
|
22
80
|
campaign?: CreateCampaignDTO;
|
81
|
+
/**
|
82
|
+
* The associated campaign's ID.
|
83
|
+
*/
|
23
84
|
campaign_id?: string;
|
24
85
|
}
|
86
|
+
/**
|
87
|
+
* The attributes to update in the promotion.
|
88
|
+
*/
|
25
89
|
export interface UpdatePromotionDTO {
|
90
|
+
/**
|
91
|
+
* The ID of the promotion.
|
92
|
+
*/
|
26
93
|
id: string;
|
94
|
+
/**
|
95
|
+
* Whether the promotion is applied automatically.
|
96
|
+
*/
|
27
97
|
is_automatic?: boolean;
|
98
|
+
/**
|
99
|
+
* The code of the promotion.
|
100
|
+
*/
|
28
101
|
code?: string;
|
102
|
+
/**
|
103
|
+
* The type of the promotion.
|
104
|
+
*/
|
29
105
|
type?: PromotionTypeValues;
|
106
|
+
/**
|
107
|
+
* The associated application method.
|
108
|
+
*/
|
30
109
|
application_method?: UpdateApplicationMethodDTO;
|
110
|
+
/**
|
111
|
+
* The associated campaign's ID.
|
112
|
+
*/
|
31
113
|
campaign_id?: string;
|
32
114
|
}
|
115
|
+
/**
|
116
|
+
* The filters to apply on the retrieved promotions.
|
117
|
+
*/
|
33
118
|
export interface FilterablePromotionProps extends BaseFilterable<FilterablePromotionProps> {
|
119
|
+
/**
|
120
|
+
* The IDs to filter the promotions by.
|
121
|
+
*/
|
34
122
|
id?: string | string[];
|
123
|
+
/**
|
124
|
+
* Filter promotions by their code.
|
125
|
+
*/
|
35
126
|
code?: string | string[] | OperatorMap<string>;
|
127
|
+
/**
|
128
|
+
* Filter promotions by the ID of their associated campaign budget.
|
129
|
+
*/
|
36
130
|
budget_id?: string[] | OperatorMap<string>;
|
131
|
+
/**
|
132
|
+
* Filter promotions by whether they're applied automatically.
|
133
|
+
*/
|
37
134
|
is_automatic?: boolean;
|
135
|
+
/**
|
136
|
+
* Filter promotions by their type.
|
137
|
+
*/
|
38
138
|
type?: PromotionTypeValues[];
|
39
139
|
}
|
40
140
|
//# sourceMappingURL=promotion.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE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AC,EAAE,0BAA0B,CAAA;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAE/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,cAAc,CAAC,wBAAwB,CAAC;IAChD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC7B"}
|
@@ -1,34 +1,118 @@
|
|
1
1
|
import { CampaignBudgetTypeValues, PromotionDTO } from "./common";
|
2
|
+
/**
|
3
|
+
* The campaign budget to be created.
|
4
|
+
*/
|
2
5
|
export interface CreateCampaignBudgetDTO {
|
6
|
+
/**
|
7
|
+
* The type of the campaign budget.
|
8
|
+
*/
|
3
9
|
type: CampaignBudgetTypeValues;
|
10
|
+
/**
|
11
|
+
* The limit of the campaign budget.
|
12
|
+
*/
|
4
13
|
limit: number | null;
|
14
|
+
/**
|
15
|
+
* How much is used of the campaign budget.
|
16
|
+
*/
|
5
17
|
used?: number;
|
6
18
|
}
|
19
|
+
/**
|
20
|
+
* The attributes to update in the campaign budget.
|
21
|
+
*/
|
7
22
|
export interface UpdateCampaignBudgetDTO {
|
23
|
+
/**
|
24
|
+
* The ID of the campaign budget.
|
25
|
+
*/
|
8
26
|
id: string;
|
27
|
+
/**
|
28
|
+
* The type of the campaign budget.
|
29
|
+
*/
|
9
30
|
type?: CampaignBudgetTypeValues;
|
31
|
+
/**
|
32
|
+
* The limit of the campaign budget.
|
33
|
+
*/
|
10
34
|
limit?: number | null;
|
35
|
+
/**
|
36
|
+
* How much is used of the campaign budget.
|
37
|
+
*/
|
11
38
|
used?: number;
|
12
39
|
}
|
40
|
+
/**
|
41
|
+
* The campaign to be created.
|
42
|
+
*/
|
13
43
|
export interface CreateCampaignDTO {
|
44
|
+
/**
|
45
|
+
* The name of the campaign.
|
46
|
+
*/
|
14
47
|
name: string;
|
48
|
+
/**
|
49
|
+
* The description of the campaign.
|
50
|
+
*/
|
15
51
|
description?: string;
|
52
|
+
/**
|
53
|
+
* The currency of the campaign.
|
54
|
+
*/
|
16
55
|
currency?: string;
|
56
|
+
/**
|
57
|
+
* The campaign identifier of the campaign.
|
58
|
+
*/
|
17
59
|
campaign_identifier: string;
|
60
|
+
/**
|
61
|
+
* The start date of the campaign.
|
62
|
+
*/
|
18
63
|
starts_at: Date;
|
64
|
+
/**
|
65
|
+
* The end date of the campaign.
|
66
|
+
*/
|
19
67
|
ends_at: Date;
|
68
|
+
/**
|
69
|
+
* The associated campaign budget.
|
70
|
+
*/
|
20
71
|
budget?: CreateCampaignBudgetDTO;
|
72
|
+
/**
|
73
|
+
* The promotions of the campaign.
|
74
|
+
*/
|
21
75
|
promotions?: Pick<PromotionDTO, "id">[];
|
22
76
|
}
|
77
|
+
/**
|
78
|
+
* The attributes to update in the campaign.
|
79
|
+
*/
|
23
80
|
export interface UpdateCampaignDTO {
|
81
|
+
/**
|
82
|
+
* The ID of the campaign.
|
83
|
+
*/
|
24
84
|
id: string;
|
85
|
+
/**
|
86
|
+
* The name of the campaign.
|
87
|
+
*/
|
25
88
|
name?: string;
|
89
|
+
/**
|
90
|
+
* The description of the campaign.
|
91
|
+
*/
|
26
92
|
description?: string;
|
93
|
+
/**
|
94
|
+
* The currency of the campaign.
|
95
|
+
*/
|
27
96
|
currency?: string;
|
97
|
+
/**
|
98
|
+
* The campaign identifier of the campaign.
|
99
|
+
*/
|
28
100
|
campaign_identifier?: string;
|
101
|
+
/**
|
102
|
+
* The start date of the campaign.
|
103
|
+
*/
|
29
104
|
starts_at?: Date;
|
105
|
+
/**
|
106
|
+
* The end date of the campaign.
|
107
|
+
*/
|
30
108
|
ends_at?: Date;
|
109
|
+
/**
|
110
|
+
* The budget of the campaign.
|
111
|
+
*/
|
31
112
|
budget?: Omit<UpdateCampaignBudgetDTO, "id">;
|
113
|
+
/**
|
114
|
+
* The promotions of the campaign.
|
115
|
+
*/
|
32
116
|
promotions?: Pick<PromotionDTO, "id">[];
|
33
117
|
}
|
34
118
|
//# sourceMappingURL=mutations.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/promotion/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEjE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,wBAAwB,CAAA;
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/promotion/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAA;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,GA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