@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240405154416
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 +2 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +18 -0
- package/dist/http/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- 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/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/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/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/pricing/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAA;
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/pricing/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qB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AO,GACtB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,qBAAqB,CACnB,IAAI,EAAE,wBAAwB,EAAE,EAChC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,EAAE,CAAC,CAAA;IAE1B;;;;;;;;;;;;;;;;OAgBG;IACH,iBAAiB,CACf,IAAI,EAAE,oBAAoB,EAC1B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC,CAAA;IAExB;;;;;;;;;;;;;;OAcG;IACH,oBAAoB,CAClB,IAAI,EAAE,uBAAuB,EAC7B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC,CAAA;IAExB;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACpE"}
|
@@ -1,49 +1,202 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { PromotionDTO } from "./promotion";
|
3
3
|
import { CreatePromotionRuleDTO, PromotionRuleDTO } from "./promotion-rule";
|
4
|
+
/**
|
5
|
+
* @interface
|
6
|
+
*
|
7
|
+
* The application method's possible types.
|
8
|
+
*/
|
4
9
|
export type ApplicationMethodTypeValues = "fixed" | "percentage";
|
10
|
+
/**
|
11
|
+
* @interface
|
12
|
+
*
|
13
|
+
* The application method's possible target types.
|
14
|
+
*/
|
5
15
|
export type ApplicationMethodTargetTypeValues = "order" | "shipping_methods" | "items";
|
16
|
+
/**
|
17
|
+
* @interface
|
18
|
+
*
|
19
|
+
* The application method's possible allocation values.
|
20
|
+
*/
|
6
21
|
export type ApplicationMethodAllocationValues = "each" | "across";
|
22
|
+
/**
|
23
|
+
* The application method details.
|
24
|
+
*/
|
7
25
|
export interface ApplicationMethodDTO {
|
26
|
+
/**
|
27
|
+
* The ID of the application method.
|
28
|
+
*/
|
8
29
|
id: string;
|
30
|
+
/**
|
31
|
+
* The type of the application method indicating how
|
32
|
+
* the associated promotion is applied.
|
33
|
+
*/
|
9
34
|
type?: ApplicationMethodTypeValues;
|
35
|
+
/**
|
36
|
+
* The target type of the application method indicating
|
37
|
+
* whether the associated promotion is applied to the cart's items,
|
38
|
+
* shipping methods, or the whole order.
|
39
|
+
*/
|
10
40
|
target_type?: ApplicationMethodTargetTypeValues;
|
41
|
+
/**
|
42
|
+
* The allocation value that indicates whether the associated promotion
|
43
|
+
* is applied on each item in a cart or split between the items in the cart.
|
44
|
+
*/
|
11
45
|
allocation?: ApplicationMethodAllocationValues;
|
46
|
+
/**
|
47
|
+
* The discounted amount applied by the associated promotion based on the `type`.
|
48
|
+
*/
|
12
49
|
value?: number;
|
50
|
+
/**
|
51
|
+
* The max quantity allowed in the cart for the associated promotion to be applied.
|
52
|
+
*/
|
13
53
|
max_quantity?: number | null;
|
54
|
+
/**
|
55
|
+
* The minimum quantity required for a `buyget` promotion to be applied.
|
56
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the
|
57
|
+
* value of this attribute is `2`.
|
58
|
+
*/
|
14
59
|
buy_rules_min_quantity?: number | null;
|
60
|
+
/**
|
61
|
+
* The quantity that results from matching the `buyget` promotion's condition.
|
62
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the value
|
63
|
+
* of this attribute is `1`.
|
64
|
+
*/
|
15
65
|
apply_to_quantity?: number | null;
|
66
|
+
/**
|
67
|
+
* The promotion of the application method.
|
68
|
+
*/
|
16
69
|
promotion?: PromotionDTO | string;
|
70
|
+
/**
|
71
|
+
* The target rules of the application method.
|
72
|
+
*/
|
17
73
|
target_rules?: PromotionRuleDTO[];
|
74
|
+
/**
|
75
|
+
* The buy rules of the application method.
|
76
|
+
*/
|
18
77
|
buy_rules?: PromotionRuleDTO[];
|
19
78
|
}
|
79
|
+
/**
|
80
|
+
* The application method to be created.
|
81
|
+
*/
|
20
82
|
export interface CreateApplicationMethodDTO {
|
83
|
+
/**
|
84
|
+
* The type of the application method indicating how
|
85
|
+
* the associated promotion is applied.
|
86
|
+
*/
|
21
87
|
type: ApplicationMethodTypeValues;
|
88
|
+
/**
|
89
|
+
* The target type of the application method indicating
|
90
|
+
* whether the associated promotion is applied to the cart's items,
|
91
|
+
* shipping methods, or the whole order.
|
92
|
+
*/
|
22
93
|
target_type: ApplicationMethodTargetTypeValues;
|
94
|
+
/**
|
95
|
+
* The allocation value that indicates whether the associated promotion
|
96
|
+
* is applied on each item in a cart or split between the items in the cart.
|
97
|
+
*/
|
23
98
|
allocation?: ApplicationMethodAllocationValues;
|
99
|
+
/**
|
100
|
+
* The discounted amount applied by the associated promotion based on the `type`.
|
101
|
+
*/
|
24
102
|
value?: number;
|
103
|
+
/**
|
104
|
+
* The max quantity allowed in the cart for the associated promotion to be applied.
|
105
|
+
*/
|
25
106
|
max_quantity?: number | null;
|
107
|
+
/**
|
108
|
+
* The minimum quantity required for a `buyget` promotion to be applied.
|
109
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the
|
110
|
+
* value of this attribute is `2`.
|
111
|
+
*/
|
26
112
|
buy_rules_min_quantity?: number | null;
|
113
|
+
/**
|
114
|
+
* The quantity that results from matching the `buyget` promotion's condition.
|
115
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the value
|
116
|
+
* of this attribute is `1`.
|
117
|
+
*/
|
27
118
|
apply_to_quantity?: number | null;
|
119
|
+
/**
|
120
|
+
* The promotion of the application method.
|
121
|
+
*/
|
28
122
|
promotion?: PromotionDTO | string;
|
123
|
+
/**
|
124
|
+
* The target rules of the application method.
|
125
|
+
*/
|
29
126
|
target_rules?: CreatePromotionRuleDTO[];
|
127
|
+
/**
|
128
|
+
* The buy rules of the application method.
|
129
|
+
*/
|
30
130
|
buy_rules?: CreatePromotionRuleDTO[];
|
31
131
|
}
|
132
|
+
/**
|
133
|
+
* The attributes to update in the application method.
|
134
|
+
*/
|
32
135
|
export interface UpdateApplicationMethodDTO {
|
136
|
+
/**
|
137
|
+
* The ID of the application method.
|
138
|
+
*/
|
33
139
|
id: string;
|
140
|
+
/**
|
141
|
+
* The type of the application method indicating how
|
142
|
+
* the associated promotion is applied.
|
143
|
+
*/
|
34
144
|
type?: ApplicationMethodTypeValues;
|
145
|
+
/**
|
146
|
+
* The target type of the application method indicating
|
147
|
+
* whether the associated promotion is applied to the cart's items,
|
148
|
+
* shipping methods, or the whole order.
|
149
|
+
*/
|
35
150
|
target_type?: ApplicationMethodTargetTypeValues;
|
151
|
+
/**
|
152
|
+
* The allocation value that indicates whether the associated promotion
|
153
|
+
* is applied on each item in a cart or split between the items in the cart.
|
154
|
+
*/
|
36
155
|
allocation?: ApplicationMethodAllocationValues;
|
156
|
+
/**
|
157
|
+
* The discounted amount applied by the associated promotion based on the `type`.
|
158
|
+
*/
|
37
159
|
value?: number;
|
160
|
+
/**
|
161
|
+
* The max quantity allowed in the cart for the associated promotion to be applied.
|
162
|
+
*/
|
38
163
|
max_quantity?: number | null;
|
164
|
+
/**
|
165
|
+
* The minimum quantity required for a `buyget` promotion to be applied.
|
166
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the
|
167
|
+
* value of this attribute is `2`.
|
168
|
+
*/
|
39
169
|
buy_rules_min_quantity?: number | null;
|
170
|
+
/**
|
171
|
+
* The quantity that results from matching the `buyget` promotion's condition.
|
172
|
+
* For example, if the promotion is a "Buy 2 shirts get 1 free", the value
|
173
|
+
* of this attribute is `1`.
|
174
|
+
*/
|
40
175
|
apply_to_quantity?: number | null;
|
176
|
+
/**
|
177
|
+
* The promotion of the application method.
|
178
|
+
*/
|
41
179
|
promotion?: PromotionDTO | string;
|
42
180
|
}
|
181
|
+
/**
|
182
|
+
* The filters to apply on the retrieved application methods.
|
183
|
+
*/
|
43
184
|
export interface FilterableApplicationMethodProps extends BaseFilterable<FilterableApplicationMethodProps> {
|
185
|
+
/**
|
186
|
+
* The IDs to filter the application methods by.
|
187
|
+
*/
|
44
188
|
id?: string[];
|
189
|
+
/**
|
190
|
+
* Filter the application methods by their type.
|
191
|
+
*/
|
45
192
|
type?: ApplicationMethodTypeValues[];
|
193
|
+
/**
|
194
|
+
* Filter the application methods by their target type.
|
195
|
+
*/
|
46
196
|
target_type?: ApplicationMethodTargetTypeValues[];
|
197
|
+
/**
|
198
|
+
* Filter the application methods by their allocation value.
|
199
|
+
*/
|
47
200
|
allocation?: ApplicationMethodAllocationValues[];
|
48
201
|
}
|
49
202
|
//# sourceMappingURL=application-method.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"application-method.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/application-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"application-method.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/application-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,YAAY,CAAA;AAEhE;;;;GAIG;AACH,MAAM,MAAM,iCAAiC,GACzC,OAAO,GACP,kBAAkB,GAClB,OAAO,CAAA;AAEX;;;;GAIG;AACH,MAAM,MAAM,iCAAiC,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV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OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;OAGG;IACH,IAAI,CAAC,EAAE,2BAA2B,CAAA;IAElC;;;;OAIG;IACH,WAAW,CAAC,EAAE,iCAAiC,CAAA;IAE/C;;;OAGG;IACH,UAAU,CAAC,EAAE,iCAAiC,CAAA;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gCAAgC,CAAC;IACxD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAEjD;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,EAAE,CAAA;CACjD"}
|
@@ -1,13 +1,50 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
|
+
/**
|
3
|
+
* @interface
|
4
|
+
*
|
5
|
+
* The campaign budget's possible types.
|
6
|
+
*/
|
2
7
|
export type CampaignBudgetTypeValues = "spend" | "usage";
|
8
|
+
/**
|
9
|
+
* The campaign budget details.
|
10
|
+
*/
|
3
11
|
export interface CampaignBudgetDTO {
|
12
|
+
/**
|
13
|
+
* The ID of the campaign budget.
|
14
|
+
*/
|
4
15
|
id: string;
|
16
|
+
/**
|
17
|
+
* The type of the campaign budget:
|
18
|
+
*
|
19
|
+
* - `spend` indicates that the budget is limited by the amount discounted by the promotions in the associated campaign.
|
20
|
+
* - `usage` indicates that the budget is limited by the number of times the promotions of the associated campaign have been used.
|
21
|
+
*
|
22
|
+
*/
|
5
23
|
type?: CampaignBudgetTypeValues;
|
24
|
+
/**
|
25
|
+
* The limit of the campaign budget.
|
26
|
+
*/
|
6
27
|
limit?: number | null;
|
28
|
+
/**
|
29
|
+
* The usage from the campaign budget's limit:
|
30
|
+
*
|
31
|
+
* - If the budget's type is `spend`, the value of this attribute is the amount discounted so far by the promotions in the associated campaign.
|
32
|
+
* - If the budget's type is `usage`, the value of this attribute is the number of times the promotions of the associated campaign have been used so far.
|
33
|
+
*
|
34
|
+
*/
|
7
35
|
used?: number;
|
8
36
|
}
|
37
|
+
/**
|
38
|
+
* The filters to apply on the retrieved campaign budgets.
|
39
|
+
*/
|
9
40
|
export interface FilterableCampaignBudgetProps extends BaseFilterable<FilterableCampaignBudgetProps> {
|
41
|
+
/**
|
42
|
+
* The IDs to filter the campaign budgets by.
|
43
|
+
*/
|
10
44
|
id?: string[];
|
45
|
+
/**
|
46
|
+
* Filters the campaign budgets by their type.
|
47
|
+
*/
|
11
48
|
type?: string[];
|
12
49
|
}
|
13
50
|
//# sourceMappingURL=campaign-budget.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB"}
|
@@ -1,17 +1,53 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { CampaignBudgetDTO } from "./campaign-budget";
|
3
|
+
/**
|
4
|
+
* The campaign details.
|
5
|
+
*/
|
3
6
|
export interface CampaignDTO {
|
7
|
+
/**
|
8
|
+
* The ID of the campaign.
|
9
|
+
*/
|
4
10
|
id: string;
|
11
|
+
/**
|
12
|
+
* The name of the campaign.
|
13
|
+
*/
|
5
14
|
name?: string;
|
15
|
+
/**
|
16
|
+
* The description of the campaign.
|
17
|
+
*/
|
6
18
|
description?: string;
|
19
|
+
/**
|
20
|
+
* The currency of the campaign.
|
21
|
+
*/
|
7
22
|
currency?: string;
|
23
|
+
/**
|
24
|
+
* The campaign identifier of the campaign.
|
25
|
+
*/
|
8
26
|
campaign_identifier?: string;
|
27
|
+
/**
|
28
|
+
* The start date of the campaign.
|
29
|
+
*/
|
9
30
|
starts_at?: Date;
|
31
|
+
/**
|
32
|
+
* The end date of the campaign.
|
33
|
+
*/
|
10
34
|
ends_at?: Date;
|
35
|
+
/**
|
36
|
+
* The associated campaign budget.
|
37
|
+
*/
|
11
38
|
budget?: CampaignBudgetDTO;
|
12
39
|
}
|
40
|
+
/**
|
41
|
+
* The filters to apply on the retrieved campaigns.
|
42
|
+
*/
|
13
43
|
export interface FilterableCampaignProps extends BaseFilterable<FilterableCampaignProps> {
|
44
|
+
/**
|
45
|
+
* The IDs to filter the campaigns by.
|
46
|
+
*/
|
14
47
|
id?: string[];
|
48
|
+
/**
|
49
|
+
* Filters the campaigns by their campaign identifier.
|
50
|
+
*/
|
15
51
|
campaign_identifier?: string[];
|
16
52
|
}
|
17
53
|
//# sourceMappingURL=campaign.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B"}
|
@@ -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;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EA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E,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"}
|