@firfi/voila-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/dist/src/domain/cart.d.ts +10 -0
- package/dist/src/domain/cart.d.ts.map +1 -0
- package/dist/src/domain/cart.js +14 -0
- package/dist/src/domain/cart.js.map +1 -0
- package/dist/src/domain/checkout-readiness.d.ts +3 -0
- package/dist/src/domain/checkout-readiness.d.ts.map +1 -0
- package/dist/src/domain/checkout-readiness.js +18 -0
- package/dist/src/domain/checkout-readiness.js.map +1 -0
- package/dist/src/domain/parse.d.ts +5 -0
- package/dist/src/domain/parse.d.ts.map +1 -0
- package/dist/src/domain/parse.js +11 -0
- package/dist/src/domain/parse.js.map +1 -0
- package/dist/src/domain/schemas/auth.d.ts +123 -0
- package/dist/src/domain/schemas/auth.d.ts.map +1 -0
- package/dist/src/domain/schemas/auth.js +36 -0
- package/dist/src/domain/schemas/auth.js.map +1 -0
- package/dist/src/domain/schemas/cart.d.ts +1224 -0
- package/dist/src/domain/schemas/cart.d.ts.map +1 -0
- package/dist/src/domain/schemas/cart.js +123 -0
- package/dist/src/domain/schemas/cart.js.map +1 -0
- package/dist/src/domain/schemas/category-page.d.ts +187 -0
- package/dist/src/domain/schemas/category-page.d.ts.map +1 -0
- package/dist/src/domain/schemas/category-page.js +43 -0
- package/dist/src/domain/schemas/category-page.js.map +1 -0
- package/dist/src/domain/schemas/category.d.ts +25 -0
- package/dist/src/domain/schemas/category.d.ts.map +1 -0
- package/dist/src/domain/schemas/category.js +30 -0
- package/dist/src/domain/schemas/category.js.map +1 -0
- package/dist/src/domain/schemas/checkout-summary.d.ts +1035 -0
- package/dist/src/domain/schemas/checkout-summary.d.ts.map +1 -0
- package/dist/src/domain/schemas/checkout-summary.js +103 -0
- package/dist/src/domain/schemas/checkout-summary.js.map +1 -0
- package/dist/src/domain/schemas/delivery-destination.d.ts +176 -0
- package/dist/src/domain/schemas/delivery-destination.d.ts.map +1 -0
- package/dist/src/domain/schemas/delivery-destination.js +52 -0
- package/dist/src/domain/schemas/delivery-destination.js.map +1 -0
- package/dist/src/domain/schemas/index.d.ts +13 -0
- package/dist/src/domain/schemas/index.d.ts.map +1 -0
- package/dist/src/domain/schemas/index.js +13 -0
- package/dist/src/domain/schemas/index.js.map +1 -0
- package/dist/src/domain/schemas/money.d.ts +18 -0
- package/dist/src/domain/schemas/money.d.ts.map +1 -0
- package/dist/src/domain/schemas/money.js +11 -0
- package/dist/src/domain/schemas/money.js.map +1 -0
- package/dist/src/domain/schemas/product.d.ts +230 -0
- package/dist/src/domain/schemas/product.d.ts.map +1 -0
- package/dist/src/domain/schemas/product.js +32 -0
- package/dist/src/domain/schemas/product.js.map +1 -0
- package/dist/src/domain/schemas/proposition.d.ts +746 -0
- package/dist/src/domain/schemas/proposition.d.ts.map +1 -0
- package/dist/src/domain/schemas/proposition.js +110 -0
- package/dist/src/domain/schemas/proposition.js.map +1 -0
- package/dist/src/domain/schemas/search.d.ts +31 -0
- package/dist/src/domain/schemas/search.d.ts.map +1 -0
- package/dist/src/domain/schemas/search.js +16 -0
- package/dist/src/domain/schemas/search.js.map +1 -0
- package/dist/src/domain/schemas/session.d.ts +1341 -0
- package/dist/src/domain/schemas/session.d.ts.map +1 -0
- package/dist/src/domain/schemas/session.js +140 -0
- package/dist/src/domain/schemas/session.js.map +1 -0
- package/dist/src/domain/schemas/slot.d.ts +844 -0
- package/dist/src/domain/schemas/slot.d.ts.map +1 -0
- package/dist/src/domain/schemas/slot.js +130 -0
- package/dist/src/domain/schemas/slot.js.map +1 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +26 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/voila/browser-login-adapter.d.ts +108 -0
- package/dist/src/voila/browser-login-adapter.d.ts.map +1 -0
- package/dist/src/voila/browser-login-adapter.js +128 -0
- package/dist/src/voila/browser-login-adapter.js.map +1 -0
- package/dist/src/voila/browser-login.d.ts +32 -0
- package/dist/src/voila/browser-login.d.ts.map +1 -0
- package/dist/src/voila/browser-login.js +86 -0
- package/dist/src/voila/browser-login.js.map +1 -0
- package/dist/src/voila/cart-mutation.d.ts +23 -0
- package/dist/src/voila/cart-mutation.d.ts.map +1 -0
- package/dist/src/voila/cart-mutation.js +52 -0
- package/dist/src/voila/cart-mutation.js.map +1 -0
- package/dist/src/voila/cart-view.d.ts +14 -0
- package/dist/src/voila/cart-view.d.ts.map +1 -0
- package/dist/src/voila/cart-view.js +45 -0
- package/dist/src/voila/cart-view.js.map +1 -0
- package/dist/src/voila/catalog-search.d.ts +27 -0
- package/dist/src/voila/catalog-search.d.ts.map +1 -0
- package/dist/src/voila/catalog-search.js +40 -0
- package/dist/src/voila/catalog-search.js.map +1 -0
- package/dist/src/voila/categories.d.ts +4 -0
- package/dist/src/voila/categories.d.ts.map +1 -0
- package/dist/src/voila/categories.js +22 -0
- package/dist/src/voila/categories.js.map +1 -0
- package/dist/src/voila/category-products.d.ts +22 -0
- package/dist/src/voila/category-products.d.ts.map +1 -0
- package/dist/src/voila/category-products.js +32 -0
- package/dist/src/voila/category-products.js.map +1 -0
- package/dist/src/voila/checkout-summary.d.ts +15 -0
- package/dist/src/voila/checkout-summary.d.ts.map +1 -0
- package/dist/src/voila/checkout-summary.js +93 -0
- package/dist/src/voila/checkout-summary.js.map +1 -0
- package/dist/src/voila/checkout-urls.d.ts +11 -0
- package/dist/src/voila/checkout-urls.d.ts.map +1 -0
- package/dist/src/voila/checkout-urls.js +23 -0
- package/dist/src/voila/checkout-urls.js.map +1 -0
- package/dist/src/voila/delivery-destinations.d.ts +22 -0
- package/dist/src/voila/delivery-destinations.d.ts.map +1 -0
- package/dist/src/voila/delivery-destinations.js +70 -0
- package/dist/src/voila/delivery-destinations.js.map +1 -0
- package/dist/src/voila/guest-bootstrap.d.ts +40 -0
- package/dist/src/voila/guest-bootstrap.d.ts.map +1 -0
- package/dist/src/voila/guest-bootstrap.js +108 -0
- package/dist/src/voila/guest-bootstrap.js.map +1 -0
- package/dist/src/voila/headers.d.ts +5 -0
- package/dist/src/voila/headers.d.ts.map +1 -0
- package/dist/src/voila/headers.js +20 -0
- package/dist/src/voila/headers.js.map +1 -0
- package/dist/src/voila/http-client.d.ts +60 -0
- package/dist/src/voila/http-client.d.ts.map +1 -0
- package/dist/src/voila/http-client.js +124 -0
- package/dist/src/voila/http-client.js.map +1 -0
- package/dist/src/voila/initial-state.d.ts +19 -0
- package/dist/src/voila/initial-state.d.ts.map +1 -0
- package/dist/src/voila/initial-state.js +117 -0
- package/dist/src/voila/initial-state.js.map +1 -0
- package/dist/src/voila/session-health.d.ts +10 -0
- package/dist/src/voila/session-health.d.ts.map +1 -0
- package/dist/src/voila/session-health.js +176 -0
- package/dist/src/voila/session-health.js.map +1 -0
- package/dist/src/voila/session-snapshot.d.ts +41 -0
- package/dist/src/voila/session-snapshot.d.ts.map +1 -0
- package/dist/src/voila/session-snapshot.js +101 -0
- package/dist/src/voila/session-snapshot.js.map +1 -0
- package/dist/src/voila/session-storage.d.ts +22 -0
- package/dist/src/voila/session-storage.d.ts.map +1 -0
- package/dist/src/voila/session-storage.js +54 -0
- package/dist/src/voila/session-storage.js.map +1 -0
- package/dist/src/voila/shopping-context.d.ts +33 -0
- package/dist/src/voila/shopping-context.d.ts.map +1 -0
- package/dist/src/voila/shopping-context.js +159 -0
- package/dist/src/voila/shopping-context.js.map +1 -0
- package/dist/src/voila/slot-urls.d.ts +22 -0
- package/dist/src/voila/slot-urls.d.ts.map +1 -0
- package/dist/src/voila/slot-urls.js +51 -0
- package/dist/src/voila/slot-urls.js.map +1 -0
- package/dist/src/voila/slots.d.ts +41 -0
- package/dist/src/voila/slots.d.ts.map +1 -0
- package/dist/src/voila/slots.js +137 -0
- package/dist/src/voila/slots.js.map +1 -0
- package/dist/src/voila/urls.d.ts +114 -0
- package/dist/src/voila/urls.d.ts.map +1 -0
- package/dist/src/voila/urls.js +197 -0
- package/dist/src/voila/urls.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ActiveShoppingContextInputSchema: Schema.Struct<{
|
|
3
|
+
regionId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
4
|
+
exact: true;
|
|
5
|
+
}>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ActiveShoppingContextInput = Schema.Schema.Type<typeof ActiveShoppingContextInputSchema>;
|
|
8
|
+
export declare const DeliveryPropositionDetailsInputSchema: Schema.Struct<{
|
|
9
|
+
deliveryDestinationId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
10
|
+
regionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
11
|
+
}>;
|
|
12
|
+
export type DeliveryPropositionDetailsInput = Schema.Schema.Type<typeof DeliveryPropositionDetailsInputSchema>;
|
|
13
|
+
export declare const DeliveryContextPreviewInputSchema: Schema.Struct<{
|
|
14
|
+
deliveryDestinationId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
15
|
+
destinationRegionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type DeliveryContextPreviewInput = Schema.Schema.Type<typeof DeliveryContextPreviewInputSchema>;
|
|
18
|
+
export declare const SetActiveDeliveryDestinationInputSchema: Schema.Struct<{
|
|
19
|
+
customerId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
20
|
+
exact: true;
|
|
21
|
+
}>;
|
|
22
|
+
deliveryDestinationId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
23
|
+
regionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
24
|
+
visitorId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
25
|
+
exact: true;
|
|
26
|
+
}>;
|
|
27
|
+
}>;
|
|
28
|
+
export type SetActiveDeliveryDestinationInput = Schema.Schema.Type<typeof SetActiveDeliveryDestinationInputSchema>;
|
|
29
|
+
export declare const SetActiveCartPropositionInputSchema: Schema.Struct<{
|
|
30
|
+
customerId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
31
|
+
exact: true;
|
|
32
|
+
}>;
|
|
33
|
+
destinationCartPropositionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
34
|
+
originCartPropositionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
35
|
+
visitorId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
36
|
+
exact: true;
|
|
37
|
+
}>;
|
|
38
|
+
}>;
|
|
39
|
+
export type SetActiveCartPropositionInput = Schema.Schema.Type<typeof SetActiveCartPropositionInputSchema>;
|
|
40
|
+
export declare const ApplyDeliveryContextChangeInputSchema: Schema.Struct<{
|
|
41
|
+
allowCartImpact: Schema.optionalWith<typeof Schema.Boolean, {
|
|
42
|
+
default: () => false;
|
|
43
|
+
}>;
|
|
44
|
+
customerId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
45
|
+
exact: true;
|
|
46
|
+
}>;
|
|
47
|
+
deliveryDestinationId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
48
|
+
destinationRegionId: Schema.filter<Schema.filter<typeof Schema.String>>;
|
|
49
|
+
visitorId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
50
|
+
exact: true;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
export type ApplyDeliveryContextChangeInput = Schema.Schema.Type<typeof ApplyDeliveryContextChangeInputSchema>;
|
|
54
|
+
export declare const SupportedDeliveryPropositionSchema: Schema.Schema<{
|
|
55
|
+
readonly regionId?: string;
|
|
56
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
57
|
+
readonly deliveryPropositionId: string;
|
|
58
|
+
readonly details?: {
|
|
59
|
+
readonly name?: string;
|
|
60
|
+
readonly iconUrl?: string;
|
|
61
|
+
} & {
|
|
62
|
+
readonly [x: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
readonly isDefault?: boolean;
|
|
65
|
+
readonly propositionType?: string;
|
|
66
|
+
} & {
|
|
67
|
+
readonly [x: string]: unknown;
|
|
68
|
+
}, {
|
|
69
|
+
readonly deliveryPropositionId: string;
|
|
70
|
+
readonly regionId?: string;
|
|
71
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
72
|
+
readonly details?: {
|
|
73
|
+
readonly name?: string;
|
|
74
|
+
readonly iconUrl?: string;
|
|
75
|
+
} & {
|
|
76
|
+
readonly [x: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
readonly isDefault?: boolean;
|
|
79
|
+
readonly propositionType?: string;
|
|
80
|
+
} & {
|
|
81
|
+
readonly [x: string]: unknown;
|
|
82
|
+
}, never>;
|
|
83
|
+
export type SupportedDeliveryProposition = Schema.Schema.Type<typeof SupportedDeliveryPropositionSchema>;
|
|
84
|
+
export declare const DeliveryPropositionDetailsResponseSchema: Schema.Union<[Schema.Array$<Schema.Schema<{
|
|
85
|
+
readonly regionId?: string;
|
|
86
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
87
|
+
readonly deliveryPropositionId: string;
|
|
88
|
+
readonly details?: {
|
|
89
|
+
readonly name?: string;
|
|
90
|
+
readonly iconUrl?: string;
|
|
91
|
+
} & {
|
|
92
|
+
readonly [x: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
readonly isDefault?: boolean;
|
|
95
|
+
readonly propositionType?: string;
|
|
96
|
+
} & {
|
|
97
|
+
readonly [x: string]: unknown;
|
|
98
|
+
}, {
|
|
99
|
+
readonly deliveryPropositionId: string;
|
|
100
|
+
readonly regionId?: string;
|
|
101
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
102
|
+
readonly details?: {
|
|
103
|
+
readonly name?: string;
|
|
104
|
+
readonly iconUrl?: string;
|
|
105
|
+
} & {
|
|
106
|
+
readonly [x: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
readonly isDefault?: boolean;
|
|
109
|
+
readonly propositionType?: string;
|
|
110
|
+
} & {
|
|
111
|
+
readonly [x: string]: unknown;
|
|
112
|
+
}, never>>, Schema.Schema<{
|
|
113
|
+
readonly propositions: readonly ({
|
|
114
|
+
readonly regionId?: string;
|
|
115
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
116
|
+
readonly deliveryPropositionId: string;
|
|
117
|
+
readonly details?: {
|
|
118
|
+
readonly name?: string;
|
|
119
|
+
readonly iconUrl?: string;
|
|
120
|
+
} & {
|
|
121
|
+
readonly [x: string]: unknown;
|
|
122
|
+
};
|
|
123
|
+
readonly isDefault?: boolean;
|
|
124
|
+
readonly propositionType?: string;
|
|
125
|
+
} & {
|
|
126
|
+
readonly [x: string]: unknown;
|
|
127
|
+
})[];
|
|
128
|
+
} & {
|
|
129
|
+
readonly [x: string]: unknown;
|
|
130
|
+
}, {
|
|
131
|
+
readonly propositions: readonly ({
|
|
132
|
+
readonly deliveryPropositionId: string;
|
|
133
|
+
readonly regionId?: string;
|
|
134
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
135
|
+
readonly details?: {
|
|
136
|
+
readonly name?: string;
|
|
137
|
+
readonly iconUrl?: string;
|
|
138
|
+
} & {
|
|
139
|
+
readonly [x: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
readonly isDefault?: boolean;
|
|
142
|
+
readonly propositionType?: string;
|
|
143
|
+
} & {
|
|
144
|
+
readonly [x: string]: unknown;
|
|
145
|
+
})[];
|
|
146
|
+
} & {
|
|
147
|
+
readonly [x: string]: unknown;
|
|
148
|
+
}, never>]>;
|
|
149
|
+
export type DeliveryPropositionDetailsResponse = Schema.Schema.Type<typeof DeliveryPropositionDetailsResponseSchema>;
|
|
150
|
+
export declare const NormalizedDeliveryPropositionDetailsSchema: Schema.Struct<{
|
|
151
|
+
propositions: Schema.Array$<Schema.Schema<{
|
|
152
|
+
readonly regionId?: string;
|
|
153
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
154
|
+
readonly deliveryPropositionId: string;
|
|
155
|
+
readonly details?: {
|
|
156
|
+
readonly name?: string;
|
|
157
|
+
readonly iconUrl?: string;
|
|
158
|
+
} & {
|
|
159
|
+
readonly [x: string]: unknown;
|
|
160
|
+
};
|
|
161
|
+
readonly isDefault?: boolean;
|
|
162
|
+
readonly propositionType?: string;
|
|
163
|
+
} & {
|
|
164
|
+
readonly [x: string]: unknown;
|
|
165
|
+
}, {
|
|
166
|
+
readonly deliveryPropositionId: string;
|
|
167
|
+
readonly regionId?: string;
|
|
168
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
169
|
+
readonly details?: {
|
|
170
|
+
readonly name?: string;
|
|
171
|
+
readonly iconUrl?: string;
|
|
172
|
+
} & {
|
|
173
|
+
readonly [x: string]: unknown;
|
|
174
|
+
};
|
|
175
|
+
readonly isDefault?: boolean;
|
|
176
|
+
readonly propositionType?: string;
|
|
177
|
+
} & {
|
|
178
|
+
readonly [x: string]: unknown;
|
|
179
|
+
}, never>>;
|
|
180
|
+
}>;
|
|
181
|
+
export type NormalizedDeliveryPropositionDetails = Schema.Schema.Type<typeof NormalizedDeliveryPropositionDetailsSchema>;
|
|
182
|
+
export declare const CartImpactProductSchema: Schema.Schema<{
|
|
183
|
+
readonly productId?: string;
|
|
184
|
+
readonly quantity?: number;
|
|
185
|
+
readonly name?: string;
|
|
186
|
+
readonly retailerProductId?: string;
|
|
187
|
+
readonly actualAmount?: number;
|
|
188
|
+
readonly expectedAmount?: number;
|
|
189
|
+
} & {
|
|
190
|
+
readonly [x: string]: unknown;
|
|
191
|
+
}, {
|
|
192
|
+
readonly productId?: string;
|
|
193
|
+
readonly quantity?: number;
|
|
194
|
+
readonly name?: string;
|
|
195
|
+
readonly retailerProductId?: string;
|
|
196
|
+
readonly actualAmount?: number;
|
|
197
|
+
readonly expectedAmount?: number;
|
|
198
|
+
} & {
|
|
199
|
+
readonly [x: string]: unknown;
|
|
200
|
+
}, never>;
|
|
201
|
+
export type CartImpactProduct = Schema.Schema.Type<typeof CartImpactProductSchema>;
|
|
202
|
+
export declare const CartPropositionCheckoutGroupSchema: Schema.Schema<{
|
|
203
|
+
readonly limitedItems?: readonly ({
|
|
204
|
+
readonly productId?: string;
|
|
205
|
+
readonly quantity?: number;
|
|
206
|
+
readonly name?: string;
|
|
207
|
+
readonly retailerProductId?: string;
|
|
208
|
+
readonly actualAmount?: number;
|
|
209
|
+
readonly expectedAmount?: number;
|
|
210
|
+
} & {
|
|
211
|
+
readonly [x: string]: unknown;
|
|
212
|
+
})[];
|
|
213
|
+
readonly products?: readonly ({
|
|
214
|
+
readonly productId?: string;
|
|
215
|
+
readonly quantity?: number;
|
|
216
|
+
readonly name?: string;
|
|
217
|
+
readonly retailerProductId?: string;
|
|
218
|
+
readonly actualAmount?: number;
|
|
219
|
+
readonly expectedAmount?: number;
|
|
220
|
+
} & {
|
|
221
|
+
readonly [x: string]: unknown;
|
|
222
|
+
})[];
|
|
223
|
+
} & {
|
|
224
|
+
readonly [x: string]: unknown;
|
|
225
|
+
}, {
|
|
226
|
+
readonly limitedItems?: readonly ({
|
|
227
|
+
readonly productId?: string;
|
|
228
|
+
readonly quantity?: number;
|
|
229
|
+
readonly name?: string;
|
|
230
|
+
readonly retailerProductId?: string;
|
|
231
|
+
readonly actualAmount?: number;
|
|
232
|
+
readonly expectedAmount?: number;
|
|
233
|
+
} & {
|
|
234
|
+
readonly [x: string]: unknown;
|
|
235
|
+
})[];
|
|
236
|
+
readonly products?: readonly ({
|
|
237
|
+
readonly productId?: string;
|
|
238
|
+
readonly quantity?: number;
|
|
239
|
+
readonly name?: string;
|
|
240
|
+
readonly retailerProductId?: string;
|
|
241
|
+
readonly actualAmount?: number;
|
|
242
|
+
readonly expectedAmount?: number;
|
|
243
|
+
} & {
|
|
244
|
+
readonly [x: string]: unknown;
|
|
245
|
+
})[];
|
|
246
|
+
} & {
|
|
247
|
+
readonly [x: string]: unknown;
|
|
248
|
+
}, never>;
|
|
249
|
+
export type CartPropositionCheckoutGroup = Schema.Schema.Type<typeof CartPropositionCheckoutGroupSchema>;
|
|
250
|
+
export declare const CartPropositionSchema: Schema.Schema<{
|
|
251
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
252
|
+
readonly limitedItems?: readonly ({
|
|
253
|
+
readonly productId?: string;
|
|
254
|
+
readonly quantity?: number;
|
|
255
|
+
readonly name?: string;
|
|
256
|
+
readonly retailerProductId?: string;
|
|
257
|
+
readonly actualAmount?: number;
|
|
258
|
+
readonly expectedAmount?: number;
|
|
259
|
+
} & {
|
|
260
|
+
readonly [x: string]: unknown;
|
|
261
|
+
})[];
|
|
262
|
+
readonly products?: readonly ({
|
|
263
|
+
readonly productId?: string;
|
|
264
|
+
readonly quantity?: number;
|
|
265
|
+
readonly name?: string;
|
|
266
|
+
readonly retailerProductId?: string;
|
|
267
|
+
readonly actualAmount?: number;
|
|
268
|
+
readonly expectedAmount?: number;
|
|
269
|
+
} & {
|
|
270
|
+
readonly [x: string]: unknown;
|
|
271
|
+
})[];
|
|
272
|
+
} & {
|
|
273
|
+
readonly [x: string]: unknown;
|
|
274
|
+
})[];
|
|
275
|
+
readonly regionId?: string;
|
|
276
|
+
readonly cartPropositionId?: string;
|
|
277
|
+
} & {
|
|
278
|
+
readonly [x: string]: unknown;
|
|
279
|
+
}, {
|
|
280
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
281
|
+
readonly limitedItems?: readonly ({
|
|
282
|
+
readonly productId?: string;
|
|
283
|
+
readonly quantity?: number;
|
|
284
|
+
readonly name?: string;
|
|
285
|
+
readonly retailerProductId?: string;
|
|
286
|
+
readonly actualAmount?: number;
|
|
287
|
+
readonly expectedAmount?: number;
|
|
288
|
+
} & {
|
|
289
|
+
readonly [x: string]: unknown;
|
|
290
|
+
})[];
|
|
291
|
+
readonly products?: readonly ({
|
|
292
|
+
readonly productId?: string;
|
|
293
|
+
readonly quantity?: number;
|
|
294
|
+
readonly name?: string;
|
|
295
|
+
readonly retailerProductId?: string;
|
|
296
|
+
readonly actualAmount?: number;
|
|
297
|
+
readonly expectedAmount?: number;
|
|
298
|
+
} & {
|
|
299
|
+
readonly [x: string]: unknown;
|
|
300
|
+
})[];
|
|
301
|
+
} & {
|
|
302
|
+
readonly [x: string]: unknown;
|
|
303
|
+
})[];
|
|
304
|
+
readonly regionId?: string;
|
|
305
|
+
readonly cartPropositionId?: string;
|
|
306
|
+
} & {
|
|
307
|
+
readonly [x: string]: unknown;
|
|
308
|
+
}, never>;
|
|
309
|
+
export type CartProposition = Schema.Schema.Type<typeof CartPropositionSchema>;
|
|
310
|
+
export declare const DeliveryContextPreviewResponseSchema: Schema.Schema<{
|
|
311
|
+
readonly destinationCartProposition: {
|
|
312
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
313
|
+
readonly limitedItems?: readonly ({
|
|
314
|
+
readonly productId?: string;
|
|
315
|
+
readonly quantity?: number;
|
|
316
|
+
readonly name?: string;
|
|
317
|
+
readonly retailerProductId?: string;
|
|
318
|
+
readonly actualAmount?: number;
|
|
319
|
+
readonly expectedAmount?: number;
|
|
320
|
+
} & {
|
|
321
|
+
readonly [x: string]: unknown;
|
|
322
|
+
})[];
|
|
323
|
+
readonly products?: readonly ({
|
|
324
|
+
readonly productId?: string;
|
|
325
|
+
readonly quantity?: number;
|
|
326
|
+
readonly name?: string;
|
|
327
|
+
readonly retailerProductId?: string;
|
|
328
|
+
readonly actualAmount?: number;
|
|
329
|
+
readonly expectedAmount?: number;
|
|
330
|
+
} & {
|
|
331
|
+
readonly [x: string]: unknown;
|
|
332
|
+
})[];
|
|
333
|
+
} & {
|
|
334
|
+
readonly [x: string]: unknown;
|
|
335
|
+
})[];
|
|
336
|
+
readonly regionId?: string;
|
|
337
|
+
readonly cartPropositionId?: string;
|
|
338
|
+
} & {
|
|
339
|
+
readonly [x: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
readonly originCartProposition?: {
|
|
342
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
343
|
+
readonly limitedItems?: readonly ({
|
|
344
|
+
readonly productId?: string;
|
|
345
|
+
readonly quantity?: number;
|
|
346
|
+
readonly name?: string;
|
|
347
|
+
readonly retailerProductId?: string;
|
|
348
|
+
readonly actualAmount?: number;
|
|
349
|
+
readonly expectedAmount?: number;
|
|
350
|
+
} & {
|
|
351
|
+
readonly [x: string]: unknown;
|
|
352
|
+
})[];
|
|
353
|
+
readonly products?: readonly ({
|
|
354
|
+
readonly productId?: string;
|
|
355
|
+
readonly quantity?: number;
|
|
356
|
+
readonly name?: string;
|
|
357
|
+
readonly retailerProductId?: string;
|
|
358
|
+
readonly actualAmount?: number;
|
|
359
|
+
readonly expectedAmount?: number;
|
|
360
|
+
} & {
|
|
361
|
+
readonly [x: string]: unknown;
|
|
362
|
+
})[];
|
|
363
|
+
} & {
|
|
364
|
+
readonly [x: string]: unknown;
|
|
365
|
+
})[];
|
|
366
|
+
readonly regionId?: string;
|
|
367
|
+
readonly cartPropositionId?: string;
|
|
368
|
+
} & {
|
|
369
|
+
readonly [x: string]: unknown;
|
|
370
|
+
};
|
|
371
|
+
} & {
|
|
372
|
+
readonly [x: string]: unknown;
|
|
373
|
+
}, {
|
|
374
|
+
readonly destinationCartProposition: {
|
|
375
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
376
|
+
readonly limitedItems?: readonly ({
|
|
377
|
+
readonly productId?: string;
|
|
378
|
+
readonly quantity?: number;
|
|
379
|
+
readonly name?: string;
|
|
380
|
+
readonly retailerProductId?: string;
|
|
381
|
+
readonly actualAmount?: number;
|
|
382
|
+
readonly expectedAmount?: number;
|
|
383
|
+
} & {
|
|
384
|
+
readonly [x: string]: unknown;
|
|
385
|
+
})[];
|
|
386
|
+
readonly products?: readonly ({
|
|
387
|
+
readonly productId?: string;
|
|
388
|
+
readonly quantity?: number;
|
|
389
|
+
readonly name?: string;
|
|
390
|
+
readonly retailerProductId?: string;
|
|
391
|
+
readonly actualAmount?: number;
|
|
392
|
+
readonly expectedAmount?: number;
|
|
393
|
+
} & {
|
|
394
|
+
readonly [x: string]: unknown;
|
|
395
|
+
})[];
|
|
396
|
+
} & {
|
|
397
|
+
readonly [x: string]: unknown;
|
|
398
|
+
})[];
|
|
399
|
+
readonly regionId?: string;
|
|
400
|
+
readonly cartPropositionId?: string;
|
|
401
|
+
} & {
|
|
402
|
+
readonly [x: string]: unknown;
|
|
403
|
+
};
|
|
404
|
+
readonly originCartProposition?: {
|
|
405
|
+
readonly assignedCheckoutGroups?: readonly ({
|
|
406
|
+
readonly limitedItems?: readonly ({
|
|
407
|
+
readonly productId?: string;
|
|
408
|
+
readonly quantity?: number;
|
|
409
|
+
readonly name?: string;
|
|
410
|
+
readonly retailerProductId?: string;
|
|
411
|
+
readonly actualAmount?: number;
|
|
412
|
+
readonly expectedAmount?: number;
|
|
413
|
+
} & {
|
|
414
|
+
readonly [x: string]: unknown;
|
|
415
|
+
})[];
|
|
416
|
+
readonly products?: readonly ({
|
|
417
|
+
readonly productId?: string;
|
|
418
|
+
readonly quantity?: number;
|
|
419
|
+
readonly name?: string;
|
|
420
|
+
readonly retailerProductId?: string;
|
|
421
|
+
readonly actualAmount?: number;
|
|
422
|
+
readonly expectedAmount?: number;
|
|
423
|
+
} & {
|
|
424
|
+
readonly [x: string]: unknown;
|
|
425
|
+
})[];
|
|
426
|
+
} & {
|
|
427
|
+
readonly [x: string]: unknown;
|
|
428
|
+
})[];
|
|
429
|
+
readonly regionId?: string;
|
|
430
|
+
readonly cartPropositionId?: string;
|
|
431
|
+
} & {
|
|
432
|
+
readonly [x: string]: unknown;
|
|
433
|
+
};
|
|
434
|
+
} & {
|
|
435
|
+
readonly [x: string]: unknown;
|
|
436
|
+
}, never>;
|
|
437
|
+
export type DeliveryContextPreviewResponse = Schema.Schema.Type<typeof DeliveryContextPreviewResponseSchema>;
|
|
438
|
+
export declare const CartImpactWarningSchema: Schema.Struct<{
|
|
439
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
440
|
+
products: Schema.Array$<Schema.Schema<{
|
|
441
|
+
readonly productId?: string;
|
|
442
|
+
readonly quantity?: number;
|
|
443
|
+
readonly name?: string;
|
|
444
|
+
readonly retailerProductId?: string;
|
|
445
|
+
readonly actualAmount?: number;
|
|
446
|
+
readonly expectedAmount?: number;
|
|
447
|
+
} & {
|
|
448
|
+
readonly [x: string]: unknown;
|
|
449
|
+
}, {
|
|
450
|
+
readonly productId?: string;
|
|
451
|
+
readonly quantity?: number;
|
|
452
|
+
readonly name?: string;
|
|
453
|
+
readonly retailerProductId?: string;
|
|
454
|
+
readonly actualAmount?: number;
|
|
455
|
+
readonly expectedAmount?: number;
|
|
456
|
+
} & {
|
|
457
|
+
readonly [x: string]: unknown;
|
|
458
|
+
}, never>>;
|
|
459
|
+
}>;
|
|
460
|
+
export type CartImpactWarning = Schema.Schema.Type<typeof CartImpactWarningSchema>;
|
|
461
|
+
export declare const NormalizedDeliveryContextPreviewSchema: Schema.Struct<{
|
|
462
|
+
cartImpactWarnings: Schema.Array$<Schema.Struct<{
|
|
463
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
464
|
+
products: Schema.Array$<Schema.Schema<{
|
|
465
|
+
readonly productId?: string;
|
|
466
|
+
readonly quantity?: number;
|
|
467
|
+
readonly name?: string;
|
|
468
|
+
readonly retailerProductId?: string;
|
|
469
|
+
readonly actualAmount?: number;
|
|
470
|
+
readonly expectedAmount?: number;
|
|
471
|
+
} & {
|
|
472
|
+
readonly [x: string]: unknown;
|
|
473
|
+
}, {
|
|
474
|
+
readonly productId?: string;
|
|
475
|
+
readonly quantity?: number;
|
|
476
|
+
readonly name?: string;
|
|
477
|
+
readonly retailerProductId?: string;
|
|
478
|
+
readonly actualAmount?: number;
|
|
479
|
+
readonly expectedAmount?: number;
|
|
480
|
+
} & {
|
|
481
|
+
readonly [x: string]: unknown;
|
|
482
|
+
}, never>>;
|
|
483
|
+
}>>;
|
|
484
|
+
destinationCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
485
|
+
exact: true;
|
|
486
|
+
}>;
|
|
487
|
+
destinationRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
488
|
+
exact: true;
|
|
489
|
+
}>;
|
|
490
|
+
originCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
491
|
+
exact: true;
|
|
492
|
+
}>;
|
|
493
|
+
originRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
494
|
+
exact: true;
|
|
495
|
+
}>;
|
|
496
|
+
requiresConfirmation: typeof Schema.Boolean;
|
|
497
|
+
}>;
|
|
498
|
+
export type NormalizedDeliveryContextPreview = Schema.Schema.Type<typeof NormalizedDeliveryContextPreviewSchema>;
|
|
499
|
+
export declare const NormalizedActiveShoppingContextSchema: Schema.Struct<{
|
|
500
|
+
cartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
501
|
+
exact: true;
|
|
502
|
+
}>;
|
|
503
|
+
deliveryDestinationId: Schema.optionalWith<typeof Schema.String, {
|
|
504
|
+
exact: true;
|
|
505
|
+
}>;
|
|
506
|
+
deliveryMethod: Schema.optionalWith<Schema.Literal<["HOME_DELIVERY", "CUSTOMER_COLLECTION"]>, {
|
|
507
|
+
exact: true;
|
|
508
|
+
}>;
|
|
509
|
+
propositionType: Schema.optionalWith<typeof Schema.String, {
|
|
510
|
+
exact: true;
|
|
511
|
+
}>;
|
|
512
|
+
regionId: Schema.optionalWith<typeof Schema.String, {
|
|
513
|
+
exact: true;
|
|
514
|
+
}>;
|
|
515
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
516
|
+
exact: true;
|
|
517
|
+
}>;
|
|
518
|
+
}>;
|
|
519
|
+
export declare const ActiveShoppingContextResponseSchema: Schema.Schema<{
|
|
520
|
+
readonly regionId?: string;
|
|
521
|
+
readonly type?: string;
|
|
522
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
523
|
+
readonly deliveryDestinationId?: string;
|
|
524
|
+
readonly propositionType?: string;
|
|
525
|
+
readonly cartPropositionId?: string;
|
|
526
|
+
} & {
|
|
527
|
+
readonly [x: string]: unknown;
|
|
528
|
+
}, {
|
|
529
|
+
readonly regionId?: string;
|
|
530
|
+
readonly type?: string;
|
|
531
|
+
readonly deliveryMethod?: "HOME_DELIVERY" | "CUSTOMER_COLLECTION";
|
|
532
|
+
readonly deliveryDestinationId?: string;
|
|
533
|
+
readonly propositionType?: string;
|
|
534
|
+
readonly cartPropositionId?: string;
|
|
535
|
+
} & {
|
|
536
|
+
readonly [x: string]: unknown;
|
|
537
|
+
}, never>;
|
|
538
|
+
export type ActiveShoppingContextResponse = Schema.Schema.Type<typeof ActiveShoppingContextResponseSchema>;
|
|
539
|
+
export type NormalizedActiveShoppingContext = Schema.Schema.Type<typeof NormalizedActiveShoppingContextSchema>;
|
|
540
|
+
export declare const DeliveryContextAppliedResultSchema: Schema.Struct<{
|
|
541
|
+
applied: Schema.Literal<[true]>;
|
|
542
|
+
context: Schema.Struct<{
|
|
543
|
+
cartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
544
|
+
exact: true;
|
|
545
|
+
}>;
|
|
546
|
+
deliveryDestinationId: Schema.optionalWith<typeof Schema.String, {
|
|
547
|
+
exact: true;
|
|
548
|
+
}>;
|
|
549
|
+
deliveryMethod: Schema.optionalWith<Schema.Literal<["HOME_DELIVERY", "CUSTOMER_COLLECTION"]>, {
|
|
550
|
+
exact: true;
|
|
551
|
+
}>;
|
|
552
|
+
propositionType: Schema.optionalWith<typeof Schema.String, {
|
|
553
|
+
exact: true;
|
|
554
|
+
}>;
|
|
555
|
+
regionId: Schema.optionalWith<typeof Schema.String, {
|
|
556
|
+
exact: true;
|
|
557
|
+
}>;
|
|
558
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
559
|
+
exact: true;
|
|
560
|
+
}>;
|
|
561
|
+
}>;
|
|
562
|
+
preview: Schema.Struct<{
|
|
563
|
+
cartImpactWarnings: Schema.Array$<Schema.Struct<{
|
|
564
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
565
|
+
products: Schema.Array$<Schema.Schema<{
|
|
566
|
+
readonly productId?: string;
|
|
567
|
+
readonly quantity?: number;
|
|
568
|
+
readonly name?: string;
|
|
569
|
+
readonly retailerProductId?: string;
|
|
570
|
+
readonly actualAmount?: number;
|
|
571
|
+
readonly expectedAmount?: number;
|
|
572
|
+
} & {
|
|
573
|
+
readonly [x: string]: unknown;
|
|
574
|
+
}, {
|
|
575
|
+
readonly productId?: string;
|
|
576
|
+
readonly quantity?: number;
|
|
577
|
+
readonly name?: string;
|
|
578
|
+
readonly retailerProductId?: string;
|
|
579
|
+
readonly actualAmount?: number;
|
|
580
|
+
readonly expectedAmount?: number;
|
|
581
|
+
} & {
|
|
582
|
+
readonly [x: string]: unknown;
|
|
583
|
+
}, never>>;
|
|
584
|
+
}>>;
|
|
585
|
+
destinationCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
586
|
+
exact: true;
|
|
587
|
+
}>;
|
|
588
|
+
destinationRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
589
|
+
exact: true;
|
|
590
|
+
}>;
|
|
591
|
+
originCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
592
|
+
exact: true;
|
|
593
|
+
}>;
|
|
594
|
+
originRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
595
|
+
exact: true;
|
|
596
|
+
}>;
|
|
597
|
+
requiresConfirmation: typeof Schema.Boolean;
|
|
598
|
+
}>;
|
|
599
|
+
status: Schema.Literal<["applied"]>;
|
|
600
|
+
}>;
|
|
601
|
+
export type DeliveryContextAppliedResult = Schema.Schema.Type<typeof DeliveryContextAppliedResultSchema>;
|
|
602
|
+
export declare const DeliveryContextRequiresConfirmationResultSchema: Schema.Struct<{
|
|
603
|
+
applied: Schema.Literal<[false]>;
|
|
604
|
+
preview: Schema.Struct<{
|
|
605
|
+
cartImpactWarnings: Schema.Array$<Schema.Struct<{
|
|
606
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
607
|
+
products: Schema.Array$<Schema.Schema<{
|
|
608
|
+
readonly productId?: string;
|
|
609
|
+
readonly quantity?: number;
|
|
610
|
+
readonly name?: string;
|
|
611
|
+
readonly retailerProductId?: string;
|
|
612
|
+
readonly actualAmount?: number;
|
|
613
|
+
readonly expectedAmount?: number;
|
|
614
|
+
} & {
|
|
615
|
+
readonly [x: string]: unknown;
|
|
616
|
+
}, {
|
|
617
|
+
readonly productId?: string;
|
|
618
|
+
readonly quantity?: number;
|
|
619
|
+
readonly name?: string;
|
|
620
|
+
readonly retailerProductId?: string;
|
|
621
|
+
readonly actualAmount?: number;
|
|
622
|
+
readonly expectedAmount?: number;
|
|
623
|
+
} & {
|
|
624
|
+
readonly [x: string]: unknown;
|
|
625
|
+
}, never>>;
|
|
626
|
+
}>>;
|
|
627
|
+
destinationCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
628
|
+
exact: true;
|
|
629
|
+
}>;
|
|
630
|
+
destinationRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
631
|
+
exact: true;
|
|
632
|
+
}>;
|
|
633
|
+
originCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
634
|
+
exact: true;
|
|
635
|
+
}>;
|
|
636
|
+
originRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
637
|
+
exact: true;
|
|
638
|
+
}>;
|
|
639
|
+
requiresConfirmation: typeof Schema.Boolean;
|
|
640
|
+
}>;
|
|
641
|
+
status: Schema.Literal<["requires-confirmation"]>;
|
|
642
|
+
}>;
|
|
643
|
+
export type DeliveryContextRequiresConfirmationResult = Schema.Schema.Type<typeof DeliveryContextRequiresConfirmationResultSchema>;
|
|
644
|
+
export declare const DeliveryContextChangeResultSchema: Schema.Union<[Schema.Struct<{
|
|
645
|
+
applied: Schema.Literal<[true]>;
|
|
646
|
+
context: Schema.Struct<{
|
|
647
|
+
cartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
648
|
+
exact: true;
|
|
649
|
+
}>;
|
|
650
|
+
deliveryDestinationId: Schema.optionalWith<typeof Schema.String, {
|
|
651
|
+
exact: true;
|
|
652
|
+
}>;
|
|
653
|
+
deliveryMethod: Schema.optionalWith<Schema.Literal<["HOME_DELIVERY", "CUSTOMER_COLLECTION"]>, {
|
|
654
|
+
exact: true;
|
|
655
|
+
}>;
|
|
656
|
+
propositionType: Schema.optionalWith<typeof Schema.String, {
|
|
657
|
+
exact: true;
|
|
658
|
+
}>;
|
|
659
|
+
regionId: Schema.optionalWith<typeof Schema.String, {
|
|
660
|
+
exact: true;
|
|
661
|
+
}>;
|
|
662
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
663
|
+
exact: true;
|
|
664
|
+
}>;
|
|
665
|
+
}>;
|
|
666
|
+
preview: Schema.Struct<{
|
|
667
|
+
cartImpactWarnings: Schema.Array$<Schema.Struct<{
|
|
668
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
669
|
+
products: Schema.Array$<Schema.Schema<{
|
|
670
|
+
readonly productId?: string;
|
|
671
|
+
readonly quantity?: number;
|
|
672
|
+
readonly name?: string;
|
|
673
|
+
readonly retailerProductId?: string;
|
|
674
|
+
readonly actualAmount?: number;
|
|
675
|
+
readonly expectedAmount?: number;
|
|
676
|
+
} & {
|
|
677
|
+
readonly [x: string]: unknown;
|
|
678
|
+
}, {
|
|
679
|
+
readonly productId?: string;
|
|
680
|
+
readonly quantity?: number;
|
|
681
|
+
readonly name?: string;
|
|
682
|
+
readonly retailerProductId?: string;
|
|
683
|
+
readonly actualAmount?: number;
|
|
684
|
+
readonly expectedAmount?: number;
|
|
685
|
+
} & {
|
|
686
|
+
readonly [x: string]: unknown;
|
|
687
|
+
}, never>>;
|
|
688
|
+
}>>;
|
|
689
|
+
destinationCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
690
|
+
exact: true;
|
|
691
|
+
}>;
|
|
692
|
+
destinationRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
693
|
+
exact: true;
|
|
694
|
+
}>;
|
|
695
|
+
originCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
696
|
+
exact: true;
|
|
697
|
+
}>;
|
|
698
|
+
originRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
699
|
+
exact: true;
|
|
700
|
+
}>;
|
|
701
|
+
requiresConfirmation: typeof Schema.Boolean;
|
|
702
|
+
}>;
|
|
703
|
+
status: Schema.Literal<["applied"]>;
|
|
704
|
+
}>, Schema.Struct<{
|
|
705
|
+
applied: Schema.Literal<[false]>;
|
|
706
|
+
preview: Schema.Struct<{
|
|
707
|
+
cartImpactWarnings: Schema.Array$<Schema.Struct<{
|
|
708
|
+
kind: Schema.Literal<["origin-cart-items", "destination-cart-items", "limited-cart-items"]>;
|
|
709
|
+
products: Schema.Array$<Schema.Schema<{
|
|
710
|
+
readonly productId?: string;
|
|
711
|
+
readonly quantity?: number;
|
|
712
|
+
readonly name?: string;
|
|
713
|
+
readonly retailerProductId?: string;
|
|
714
|
+
readonly actualAmount?: number;
|
|
715
|
+
readonly expectedAmount?: number;
|
|
716
|
+
} & {
|
|
717
|
+
readonly [x: string]: unknown;
|
|
718
|
+
}, {
|
|
719
|
+
readonly productId?: string;
|
|
720
|
+
readonly quantity?: number;
|
|
721
|
+
readonly name?: string;
|
|
722
|
+
readonly retailerProductId?: string;
|
|
723
|
+
readonly actualAmount?: number;
|
|
724
|
+
readonly expectedAmount?: number;
|
|
725
|
+
} & {
|
|
726
|
+
readonly [x: string]: unknown;
|
|
727
|
+
}, never>>;
|
|
728
|
+
}>>;
|
|
729
|
+
destinationCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
730
|
+
exact: true;
|
|
731
|
+
}>;
|
|
732
|
+
destinationRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
733
|
+
exact: true;
|
|
734
|
+
}>;
|
|
735
|
+
originCartPropositionId: Schema.optionalWith<typeof Schema.String, {
|
|
736
|
+
exact: true;
|
|
737
|
+
}>;
|
|
738
|
+
originRegionId: Schema.optionalWith<typeof Schema.String, {
|
|
739
|
+
exact: true;
|
|
740
|
+
}>;
|
|
741
|
+
requiresConfirmation: typeof Schema.Boolean;
|
|
742
|
+
}>;
|
|
743
|
+
status: Schema.Literal<["requires-confirmation"]>;
|
|
744
|
+
}>]>;
|
|
745
|
+
export type DeliveryContextChangeResult = Schema.Schema.Type<typeof DeliveryContextChangeResultSchema>;
|
|
746
|
+
//# sourceMappingURL=proposition.d.ts.map
|