@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.
Files changed (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/src/domain/cart.d.ts +10 -0
  4. package/dist/src/domain/cart.d.ts.map +1 -0
  5. package/dist/src/domain/cart.js +14 -0
  6. package/dist/src/domain/cart.js.map +1 -0
  7. package/dist/src/domain/checkout-readiness.d.ts +3 -0
  8. package/dist/src/domain/checkout-readiness.d.ts.map +1 -0
  9. package/dist/src/domain/checkout-readiness.js +18 -0
  10. package/dist/src/domain/checkout-readiness.js.map +1 -0
  11. package/dist/src/domain/parse.d.ts +5 -0
  12. package/dist/src/domain/parse.d.ts.map +1 -0
  13. package/dist/src/domain/parse.js +11 -0
  14. package/dist/src/domain/parse.js.map +1 -0
  15. package/dist/src/domain/schemas/auth.d.ts +123 -0
  16. package/dist/src/domain/schemas/auth.d.ts.map +1 -0
  17. package/dist/src/domain/schemas/auth.js +36 -0
  18. package/dist/src/domain/schemas/auth.js.map +1 -0
  19. package/dist/src/domain/schemas/cart.d.ts +1224 -0
  20. package/dist/src/domain/schemas/cart.d.ts.map +1 -0
  21. package/dist/src/domain/schemas/cart.js +123 -0
  22. package/dist/src/domain/schemas/cart.js.map +1 -0
  23. package/dist/src/domain/schemas/category-page.d.ts +187 -0
  24. package/dist/src/domain/schemas/category-page.d.ts.map +1 -0
  25. package/dist/src/domain/schemas/category-page.js +43 -0
  26. package/dist/src/domain/schemas/category-page.js.map +1 -0
  27. package/dist/src/domain/schemas/category.d.ts +25 -0
  28. package/dist/src/domain/schemas/category.d.ts.map +1 -0
  29. package/dist/src/domain/schemas/category.js +30 -0
  30. package/dist/src/domain/schemas/category.js.map +1 -0
  31. package/dist/src/domain/schemas/checkout-summary.d.ts +1035 -0
  32. package/dist/src/domain/schemas/checkout-summary.d.ts.map +1 -0
  33. package/dist/src/domain/schemas/checkout-summary.js +103 -0
  34. package/dist/src/domain/schemas/checkout-summary.js.map +1 -0
  35. package/dist/src/domain/schemas/delivery-destination.d.ts +176 -0
  36. package/dist/src/domain/schemas/delivery-destination.d.ts.map +1 -0
  37. package/dist/src/domain/schemas/delivery-destination.js +52 -0
  38. package/dist/src/domain/schemas/delivery-destination.js.map +1 -0
  39. package/dist/src/domain/schemas/index.d.ts +13 -0
  40. package/dist/src/domain/schemas/index.d.ts.map +1 -0
  41. package/dist/src/domain/schemas/index.js +13 -0
  42. package/dist/src/domain/schemas/index.js.map +1 -0
  43. package/dist/src/domain/schemas/money.d.ts +18 -0
  44. package/dist/src/domain/schemas/money.d.ts.map +1 -0
  45. package/dist/src/domain/schemas/money.js +11 -0
  46. package/dist/src/domain/schemas/money.js.map +1 -0
  47. package/dist/src/domain/schemas/product.d.ts +230 -0
  48. package/dist/src/domain/schemas/product.d.ts.map +1 -0
  49. package/dist/src/domain/schemas/product.js +32 -0
  50. package/dist/src/domain/schemas/product.js.map +1 -0
  51. package/dist/src/domain/schemas/proposition.d.ts +746 -0
  52. package/dist/src/domain/schemas/proposition.d.ts.map +1 -0
  53. package/dist/src/domain/schemas/proposition.js +110 -0
  54. package/dist/src/domain/schemas/proposition.js.map +1 -0
  55. package/dist/src/domain/schemas/search.d.ts +31 -0
  56. package/dist/src/domain/schemas/search.d.ts.map +1 -0
  57. package/dist/src/domain/schemas/search.js +16 -0
  58. package/dist/src/domain/schemas/search.js.map +1 -0
  59. package/dist/src/domain/schemas/session.d.ts +1341 -0
  60. package/dist/src/domain/schemas/session.d.ts.map +1 -0
  61. package/dist/src/domain/schemas/session.js +140 -0
  62. package/dist/src/domain/schemas/session.js.map +1 -0
  63. package/dist/src/domain/schemas/slot.d.ts +844 -0
  64. package/dist/src/domain/schemas/slot.d.ts.map +1 -0
  65. package/dist/src/domain/schemas/slot.js +130 -0
  66. package/dist/src/domain/schemas/slot.js.map +1 -0
  67. package/dist/src/index.d.ts +26 -0
  68. package/dist/src/index.d.ts.map +1 -0
  69. package/dist/src/index.js +26 -0
  70. package/dist/src/index.js.map +1 -0
  71. package/dist/src/voila/browser-login-adapter.d.ts +108 -0
  72. package/dist/src/voila/browser-login-adapter.d.ts.map +1 -0
  73. package/dist/src/voila/browser-login-adapter.js +128 -0
  74. package/dist/src/voila/browser-login-adapter.js.map +1 -0
  75. package/dist/src/voila/browser-login.d.ts +32 -0
  76. package/dist/src/voila/browser-login.d.ts.map +1 -0
  77. package/dist/src/voila/browser-login.js +86 -0
  78. package/dist/src/voila/browser-login.js.map +1 -0
  79. package/dist/src/voila/cart-mutation.d.ts +23 -0
  80. package/dist/src/voila/cart-mutation.d.ts.map +1 -0
  81. package/dist/src/voila/cart-mutation.js +52 -0
  82. package/dist/src/voila/cart-mutation.js.map +1 -0
  83. package/dist/src/voila/cart-view.d.ts +14 -0
  84. package/dist/src/voila/cart-view.d.ts.map +1 -0
  85. package/dist/src/voila/cart-view.js +45 -0
  86. package/dist/src/voila/cart-view.js.map +1 -0
  87. package/dist/src/voila/catalog-search.d.ts +27 -0
  88. package/dist/src/voila/catalog-search.d.ts.map +1 -0
  89. package/dist/src/voila/catalog-search.js +40 -0
  90. package/dist/src/voila/catalog-search.js.map +1 -0
  91. package/dist/src/voila/categories.d.ts +4 -0
  92. package/dist/src/voila/categories.d.ts.map +1 -0
  93. package/dist/src/voila/categories.js +22 -0
  94. package/dist/src/voila/categories.js.map +1 -0
  95. package/dist/src/voila/category-products.d.ts +22 -0
  96. package/dist/src/voila/category-products.d.ts.map +1 -0
  97. package/dist/src/voila/category-products.js +32 -0
  98. package/dist/src/voila/category-products.js.map +1 -0
  99. package/dist/src/voila/checkout-summary.d.ts +15 -0
  100. package/dist/src/voila/checkout-summary.d.ts.map +1 -0
  101. package/dist/src/voila/checkout-summary.js +93 -0
  102. package/dist/src/voila/checkout-summary.js.map +1 -0
  103. package/dist/src/voila/checkout-urls.d.ts +11 -0
  104. package/dist/src/voila/checkout-urls.d.ts.map +1 -0
  105. package/dist/src/voila/checkout-urls.js +23 -0
  106. package/dist/src/voila/checkout-urls.js.map +1 -0
  107. package/dist/src/voila/delivery-destinations.d.ts +22 -0
  108. package/dist/src/voila/delivery-destinations.d.ts.map +1 -0
  109. package/dist/src/voila/delivery-destinations.js +70 -0
  110. package/dist/src/voila/delivery-destinations.js.map +1 -0
  111. package/dist/src/voila/guest-bootstrap.d.ts +40 -0
  112. package/dist/src/voila/guest-bootstrap.d.ts.map +1 -0
  113. package/dist/src/voila/guest-bootstrap.js +108 -0
  114. package/dist/src/voila/guest-bootstrap.js.map +1 -0
  115. package/dist/src/voila/headers.d.ts +5 -0
  116. package/dist/src/voila/headers.d.ts.map +1 -0
  117. package/dist/src/voila/headers.js +20 -0
  118. package/dist/src/voila/headers.js.map +1 -0
  119. package/dist/src/voila/http-client.d.ts +60 -0
  120. package/dist/src/voila/http-client.d.ts.map +1 -0
  121. package/dist/src/voila/http-client.js +124 -0
  122. package/dist/src/voila/http-client.js.map +1 -0
  123. package/dist/src/voila/initial-state.d.ts +19 -0
  124. package/dist/src/voila/initial-state.d.ts.map +1 -0
  125. package/dist/src/voila/initial-state.js +117 -0
  126. package/dist/src/voila/initial-state.js.map +1 -0
  127. package/dist/src/voila/session-health.d.ts +10 -0
  128. package/dist/src/voila/session-health.d.ts.map +1 -0
  129. package/dist/src/voila/session-health.js +176 -0
  130. package/dist/src/voila/session-health.js.map +1 -0
  131. package/dist/src/voila/session-snapshot.d.ts +41 -0
  132. package/dist/src/voila/session-snapshot.d.ts.map +1 -0
  133. package/dist/src/voila/session-snapshot.js +101 -0
  134. package/dist/src/voila/session-snapshot.js.map +1 -0
  135. package/dist/src/voila/session-storage.d.ts +22 -0
  136. package/dist/src/voila/session-storage.d.ts.map +1 -0
  137. package/dist/src/voila/session-storage.js +54 -0
  138. package/dist/src/voila/session-storage.js.map +1 -0
  139. package/dist/src/voila/shopping-context.d.ts +33 -0
  140. package/dist/src/voila/shopping-context.d.ts.map +1 -0
  141. package/dist/src/voila/shopping-context.js +159 -0
  142. package/dist/src/voila/shopping-context.js.map +1 -0
  143. package/dist/src/voila/slot-urls.d.ts +22 -0
  144. package/dist/src/voila/slot-urls.d.ts.map +1 -0
  145. package/dist/src/voila/slot-urls.js +51 -0
  146. package/dist/src/voila/slot-urls.js.map +1 -0
  147. package/dist/src/voila/slots.d.ts +41 -0
  148. package/dist/src/voila/slots.d.ts.map +1 -0
  149. package/dist/src/voila/slots.js +137 -0
  150. package/dist/src/voila/slots.js.map +1 -0
  151. package/dist/src/voila/urls.d.ts +114 -0
  152. package/dist/src/voila/urls.d.ts.map +1 -0
  153. package/dist/src/voila/urls.js +197 -0
  154. package/dist/src/voila/urls.js.map +1 -0
  155. package/package.json +66 -0
@@ -0,0 +1,1224 @@
1
+ import { Schema } from "effect";
2
+ export declare const CartQuantityDeltaSchema: Schema.Struct<{
3
+ productId: Schema.filter<Schema.filter<typeof Schema.String>>;
4
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
5
+ }>;
6
+ export type CartQuantityDelta = Schema.Schema.Type<typeof CartQuantityDeltaSchema>;
7
+ export declare const CartItemQuantityInputSchema: Schema.Struct<{
8
+ productId: Schema.filter<Schema.filter<typeof Schema.String>>;
9
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
10
+ }>;
11
+ export type CartItemQuantityInput = Schema.Schema.Type<typeof CartItemQuantityInputSchema>;
12
+ export declare const CartItemSchema: Schema.Struct<{
13
+ finalPrice: Schema.optionalWith<Schema.Struct<{
14
+ amount: typeof Schema.String;
15
+ currency: typeof Schema.String;
16
+ }>, {
17
+ exact: true;
18
+ }>;
19
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
20
+ exact: true;
21
+ }>;
22
+ price: Schema.optionalWith<Schema.Struct<{
23
+ amount: typeof Schema.String;
24
+ currency: typeof Schema.String;
25
+ }>, {
26
+ exact: true;
27
+ }>;
28
+ productId: typeof Schema.String;
29
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
30
+ }>;
31
+ export type CartItem = Schema.Schema.Type<typeof CartItemSchema>;
32
+ export declare const CartItemGroupSchema: Schema.Struct<{
33
+ items: Schema.Array$<Schema.Struct<{
34
+ finalPrice: Schema.optionalWith<Schema.Struct<{
35
+ amount: typeof Schema.String;
36
+ currency: typeof Schema.String;
37
+ }>, {
38
+ exact: true;
39
+ }>;
40
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
41
+ exact: true;
42
+ }>;
43
+ price: Schema.optionalWith<Schema.Struct<{
44
+ amount: typeof Schema.String;
45
+ currency: typeof Schema.String;
46
+ }>, {
47
+ exact: true;
48
+ }>;
49
+ productId: typeof Schema.String;
50
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
51
+ }>>;
52
+ }>;
53
+ export type CartItemGroup = Schema.Schema.Type<typeof CartItemGroupSchema>;
54
+ export declare const CartTotalsSchema: Schema.Struct<{
55
+ itemPriceAfterPromos: Schema.Struct<{
56
+ amount: typeof Schema.String;
57
+ currency: typeof Schema.String;
58
+ }>;
59
+ itemsRetailPrice: Schema.Struct<{
60
+ amount: typeof Schema.String;
61
+ currency: typeof Schema.String;
62
+ }>;
63
+ savingsPrice: Schema.Struct<{
64
+ amount: typeof Schema.String;
65
+ currency: typeof Schema.String;
66
+ }>;
67
+ taxation: typeof Schema.String;
68
+ }>;
69
+ export type CartTotals = Schema.Schema.Type<typeof CartTotalsSchema>;
70
+ export declare const CartUpdateResultSchema: Schema.Struct<{
71
+ itemGroups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
72
+ items: Schema.Array$<Schema.Struct<{
73
+ finalPrice: Schema.optionalWith<Schema.Struct<{
74
+ amount: typeof Schema.String;
75
+ currency: typeof Schema.String;
76
+ }>, {
77
+ exact: true;
78
+ }>;
79
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
80
+ exact: true;
81
+ }>;
82
+ price: Schema.optionalWith<Schema.Struct<{
83
+ amount: typeof Schema.String;
84
+ currency: typeof Schema.String;
85
+ }>, {
86
+ exact: true;
87
+ }>;
88
+ productId: typeof Schema.String;
89
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
90
+ }>>;
91
+ }>>, {
92
+ exact: true;
93
+ }>;
94
+ totals: Schema.Struct<{
95
+ itemPriceAfterPromos: Schema.Struct<{
96
+ amount: typeof Schema.String;
97
+ currency: typeof Schema.String;
98
+ }>;
99
+ itemsRetailPrice: Schema.Struct<{
100
+ amount: typeof Schema.String;
101
+ currency: typeof Schema.String;
102
+ }>;
103
+ savingsPrice: Schema.Struct<{
104
+ amount: typeof Schema.String;
105
+ currency: typeof Schema.String;
106
+ }>;
107
+ taxation: typeof Schema.String;
108
+ }>;
109
+ }>;
110
+ export type CartUpdateResult = Schema.Schema.Type<typeof CartUpdateResultSchema>;
111
+ export declare const CartViewSignalSchema: Schema.Schema<{
112
+ readonly message?: string;
113
+ readonly code?: string;
114
+ readonly severity?: string;
115
+ } & {
116
+ readonly [x: string]: unknown;
117
+ }, {
118
+ readonly message?: string;
119
+ readonly code?: string;
120
+ readonly severity?: string;
121
+ } & {
122
+ readonly [x: string]: unknown;
123
+ }, never>;
124
+ export type CartViewSignal = Schema.Schema.Type<typeof CartViewSignalSchema>;
125
+ export declare const LimitedCartItemSchema: Schema.Schema<{
126
+ readonly productId: string;
127
+ readonly quantity: number;
128
+ readonly reason: string;
129
+ } & {
130
+ readonly message?: string;
131
+ readonly code?: string;
132
+ readonly severity?: string;
133
+ } & {
134
+ readonly [x: string]: unknown;
135
+ }, {
136
+ readonly productId: string;
137
+ readonly quantity: number;
138
+ readonly reason: string;
139
+ } & {
140
+ readonly message?: string;
141
+ readonly code?: string;
142
+ readonly severity?: string;
143
+ } & {
144
+ readonly [x: string]: unknown;
145
+ }, never>;
146
+ export type LimitedCartItem = Schema.Schema.Type<typeof LimitedCartItemSchema>;
147
+ export declare const CartUpdateResponseSchema: Schema.Struct<{
148
+ basketUpdateResult: Schema.Struct<{
149
+ itemGroups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
150
+ items: Schema.Array$<Schema.Struct<{
151
+ finalPrice: Schema.optionalWith<Schema.Struct<{
152
+ amount: typeof Schema.String;
153
+ currency: typeof Schema.String;
154
+ }>, {
155
+ exact: true;
156
+ }>;
157
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
158
+ exact: true;
159
+ }>;
160
+ price: Schema.optionalWith<Schema.Struct<{
161
+ amount: typeof Schema.String;
162
+ currency: typeof Schema.String;
163
+ }>, {
164
+ exact: true;
165
+ }>;
166
+ productId: typeof Schema.String;
167
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
168
+ }>>;
169
+ }>>, {
170
+ exact: true;
171
+ }>;
172
+ totals: Schema.Struct<{
173
+ itemPriceAfterPromos: Schema.Struct<{
174
+ amount: typeof Schema.String;
175
+ currency: typeof Schema.String;
176
+ }>;
177
+ itemsRetailPrice: Schema.Struct<{
178
+ amount: typeof Schema.String;
179
+ currency: typeof Schema.String;
180
+ }>;
181
+ savingsPrice: Schema.Struct<{
182
+ amount: typeof Schema.String;
183
+ currency: typeof Schema.String;
184
+ }>;
185
+ taxation: typeof Schema.String;
186
+ }>;
187
+ }>;
188
+ limitedItems: Schema.Array$<Schema.Schema<{
189
+ readonly productId: string;
190
+ readonly quantity: number;
191
+ readonly reason: string;
192
+ } & {
193
+ readonly message?: string;
194
+ readonly code?: string;
195
+ readonly severity?: string;
196
+ } & {
197
+ readonly [x: string]: unknown;
198
+ }, {
199
+ readonly productId: string;
200
+ readonly quantity: number;
201
+ readonly reason: string;
202
+ } & {
203
+ readonly message?: string;
204
+ readonly code?: string;
205
+ readonly severity?: string;
206
+ } & {
207
+ readonly [x: string]: unknown;
208
+ }, never>>;
209
+ limitedPromotionIds: Schema.Array$<typeof Schema.String>;
210
+ pricingNotifications: Schema.Array$<Schema.Schema<{
211
+ readonly message?: string;
212
+ readonly code?: string;
213
+ readonly severity?: string;
214
+ } & {
215
+ readonly [x: string]: unknown;
216
+ }, {
217
+ readonly message?: string;
218
+ readonly code?: string;
219
+ readonly severity?: string;
220
+ } & {
221
+ readonly [x: string]: unknown;
222
+ }, never>>;
223
+ unavailableData: Schema.Array$<Schema.Schema<{
224
+ readonly message?: string;
225
+ readonly code?: string;
226
+ readonly severity?: string;
227
+ } & {
228
+ readonly [x: string]: unknown;
229
+ }, {
230
+ readonly message?: string;
231
+ readonly code?: string;
232
+ readonly severity?: string;
233
+ } & {
234
+ readonly [x: string]: unknown;
235
+ }, never>>;
236
+ }>;
237
+ export type CartUpdateResponse = Schema.Schema.Type<typeof CartUpdateResponseSchema>;
238
+ export declare const NormalizedCartMutationResultSchema: Schema.Struct<{
239
+ itemCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
240
+ itemGroups: Schema.Array$<Schema.Struct<{
241
+ items: Schema.Array$<Schema.Struct<{
242
+ finalPrice: Schema.optionalWith<Schema.Struct<{
243
+ amount: typeof Schema.String;
244
+ currency: typeof Schema.String;
245
+ }>, {
246
+ exact: true;
247
+ }>;
248
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
249
+ exact: true;
250
+ }>;
251
+ price: Schema.optionalWith<Schema.Struct<{
252
+ amount: typeof Schema.String;
253
+ currency: typeof Schema.String;
254
+ }>, {
255
+ exact: true;
256
+ }>;
257
+ productId: typeof Schema.String;
258
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
259
+ }>>;
260
+ }>>;
261
+ limitedItems: Schema.Array$<Schema.Schema<{
262
+ readonly productId: string;
263
+ readonly quantity: number;
264
+ readonly reason: string;
265
+ } & {
266
+ readonly message?: string;
267
+ readonly code?: string;
268
+ readonly severity?: string;
269
+ } & {
270
+ readonly [x: string]: unknown;
271
+ }, {
272
+ readonly productId: string;
273
+ readonly quantity: number;
274
+ readonly reason: string;
275
+ } & {
276
+ readonly message?: string;
277
+ readonly code?: string;
278
+ readonly severity?: string;
279
+ } & {
280
+ readonly [x: string]: unknown;
281
+ }, never>>;
282
+ limitedPromotionIds: Schema.Array$<typeof Schema.String>;
283
+ pricingNotifications: Schema.Array$<Schema.Schema<{
284
+ readonly message?: string;
285
+ readonly code?: string;
286
+ readonly severity?: string;
287
+ } & {
288
+ readonly [x: string]: unknown;
289
+ }, {
290
+ readonly message?: string;
291
+ readonly code?: string;
292
+ readonly severity?: string;
293
+ } & {
294
+ readonly [x: string]: unknown;
295
+ }, never>>;
296
+ totals: Schema.Struct<{
297
+ itemPriceAfterPromos: Schema.Struct<{
298
+ amount: typeof Schema.String;
299
+ currency: typeof Schema.String;
300
+ }>;
301
+ itemsRetailPrice: Schema.Struct<{
302
+ amount: typeof Schema.String;
303
+ currency: typeof Schema.String;
304
+ }>;
305
+ savingsPrice: Schema.Struct<{
306
+ amount: typeof Schema.String;
307
+ currency: typeof Schema.String;
308
+ }>;
309
+ taxation: typeof Schema.String;
310
+ }>;
311
+ unavailableData: Schema.Array$<Schema.Schema<{
312
+ readonly message?: string;
313
+ readonly code?: string;
314
+ readonly severity?: string;
315
+ } & {
316
+ readonly [x: string]: unknown;
317
+ }, {
318
+ readonly message?: string;
319
+ readonly code?: string;
320
+ readonly severity?: string;
321
+ } & {
322
+ readonly [x: string]: unknown;
323
+ }, never>>;
324
+ }>;
325
+ export type NormalizedCartMutationResult = Schema.Schema.Type<typeof NormalizedCartMutationResultSchema>;
326
+ export declare const CartViewItemSchema: Schema.Struct<{
327
+ available: Schema.optionalWith<typeof Schema.Boolean, {
328
+ exact: true;
329
+ }>;
330
+ finalPrice: Schema.optionalWith<Schema.Struct<{
331
+ amount: typeof Schema.String;
332
+ currency: typeof Schema.String;
333
+ }>, {
334
+ exact: true;
335
+ }>;
336
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
337
+ exact: true;
338
+ }>;
339
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
340
+ exact: true;
341
+ }>;
342
+ name: Schema.optionalWith<typeof Schema.String, {
343
+ exact: true;
344
+ }>;
345
+ price: Schema.optionalWith<Schema.Struct<{
346
+ amount: typeof Schema.String;
347
+ currency: typeof Schema.String;
348
+ }>, {
349
+ exact: true;
350
+ }>;
351
+ productId: typeof Schema.String;
352
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
353
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
354
+ exact: true;
355
+ }>;
356
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
357
+ exact: true;
358
+ }>;
359
+ }>;
360
+ export type CartViewItem = Schema.Schema.Type<typeof CartViewItemSchema>;
361
+ export declare const CartViewItemGroupSchema: Schema.Struct<{
362
+ items: Schema.Array$<Schema.Struct<{
363
+ available: Schema.optionalWith<typeof Schema.Boolean, {
364
+ exact: true;
365
+ }>;
366
+ finalPrice: Schema.optionalWith<Schema.Struct<{
367
+ amount: typeof Schema.String;
368
+ currency: typeof Schema.String;
369
+ }>, {
370
+ exact: true;
371
+ }>;
372
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
373
+ exact: true;
374
+ }>;
375
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
376
+ exact: true;
377
+ }>;
378
+ name: Schema.optionalWith<typeof Schema.String, {
379
+ exact: true;
380
+ }>;
381
+ price: Schema.optionalWith<Schema.Struct<{
382
+ amount: typeof Schema.String;
383
+ currency: typeof Schema.String;
384
+ }>, {
385
+ exact: true;
386
+ }>;
387
+ productId: typeof Schema.String;
388
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
389
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
390
+ exact: true;
391
+ }>;
392
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
393
+ exact: true;
394
+ }>;
395
+ }>>;
396
+ name: Schema.optionalWith<typeof Schema.String, {
397
+ exact: true;
398
+ }>;
399
+ }>;
400
+ export type CartViewItemGroup = Schema.Schema.Type<typeof CartViewItemGroupSchema>;
401
+ export declare const CartCheckoutRestrictionSchema: Schema.Schema<{
402
+ readonly message?: string;
403
+ readonly code?: string;
404
+ readonly severity?: string;
405
+ } & {
406
+ readonly [x: string]: unknown;
407
+ }, {
408
+ readonly message?: string;
409
+ readonly code?: string;
410
+ readonly severity?: string;
411
+ } & {
412
+ readonly [x: string]: unknown;
413
+ }, never>;
414
+ export type CartCheckoutRestriction = Schema.Schema.Type<typeof CartCheckoutRestrictionSchema>;
415
+ export declare const CartViewResponseSchema: Schema.Struct<{
416
+ basket: Schema.Struct<{
417
+ basketId: typeof Schema.String;
418
+ itemGroups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
419
+ items: Schema.Array$<Schema.Struct<{
420
+ available: Schema.optionalWith<typeof Schema.Boolean, {
421
+ exact: true;
422
+ }>;
423
+ finalPrice: Schema.optionalWith<Schema.Struct<{
424
+ amount: typeof Schema.String;
425
+ currency: typeof Schema.String;
426
+ }>, {
427
+ exact: true;
428
+ }>;
429
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
430
+ exact: true;
431
+ }>;
432
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
433
+ exact: true;
434
+ }>;
435
+ name: Schema.optionalWith<typeof Schema.String, {
436
+ exact: true;
437
+ }>;
438
+ price: Schema.optionalWith<Schema.Struct<{
439
+ amount: typeof Schema.String;
440
+ currency: typeof Schema.String;
441
+ }>, {
442
+ exact: true;
443
+ }>;
444
+ productId: typeof Schema.String;
445
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
446
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
447
+ exact: true;
448
+ }>;
449
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
450
+ exact: true;
451
+ }>;
452
+ }>>;
453
+ name: Schema.optionalWith<typeof Schema.String, {
454
+ exact: true;
455
+ }>;
456
+ }>>, {
457
+ exact: true;
458
+ }>;
459
+ totals: Schema.Struct<{
460
+ itemPriceAfterPromos: Schema.Struct<{
461
+ amount: typeof Schema.String;
462
+ currency: typeof Schema.String;
463
+ }>;
464
+ itemsRetailPrice: Schema.Struct<{
465
+ amount: typeof Schema.String;
466
+ currency: typeof Schema.String;
467
+ }>;
468
+ savingsPrice: Schema.Struct<{
469
+ amount: typeof Schema.String;
470
+ currency: typeof Schema.String;
471
+ }>;
472
+ taxation: typeof Schema.String;
473
+ }>;
474
+ }>;
475
+ checkoutRestrictions: Schema.optionalWith<Schema.Array$<Schema.Schema<{
476
+ readonly message?: string;
477
+ readonly code?: string;
478
+ readonly severity?: string;
479
+ } & {
480
+ readonly [x: string]: unknown;
481
+ }, {
482
+ readonly message?: string;
483
+ readonly code?: string;
484
+ readonly severity?: string;
485
+ } & {
486
+ readonly [x: string]: unknown;
487
+ }, never>>, {
488
+ exact: true;
489
+ }>;
490
+ limitedItems: Schema.optionalWith<Schema.Array$<Schema.Schema<{
491
+ readonly message?: string;
492
+ readonly code?: string;
493
+ readonly severity?: string;
494
+ } & {
495
+ readonly [x: string]: unknown;
496
+ }, {
497
+ readonly message?: string;
498
+ readonly code?: string;
499
+ readonly severity?: string;
500
+ } & {
501
+ readonly [x: string]: unknown;
502
+ }, never>>, {
503
+ exact: true;
504
+ }>;
505
+ pricingNotifications: Schema.optionalWith<Schema.Array$<Schema.Schema<{
506
+ readonly message?: string;
507
+ readonly code?: string;
508
+ readonly severity?: string;
509
+ } & {
510
+ readonly [x: string]: unknown;
511
+ }, {
512
+ readonly message?: string;
513
+ readonly code?: string;
514
+ readonly severity?: string;
515
+ } & {
516
+ readonly [x: string]: unknown;
517
+ }, never>>, {
518
+ exact: true;
519
+ }>;
520
+ unavailableData: Schema.optionalWith<Schema.Array$<Schema.Schema<{
521
+ readonly message?: string;
522
+ readonly code?: string;
523
+ readonly severity?: string;
524
+ } & {
525
+ readonly [x: string]: unknown;
526
+ }, {
527
+ readonly message?: string;
528
+ readonly code?: string;
529
+ readonly severity?: string;
530
+ } & {
531
+ readonly [x: string]: unknown;
532
+ }, never>>, {
533
+ exact: true;
534
+ }>;
535
+ }>;
536
+ export type CartViewResponse = Schema.Schema.Type<typeof CartViewResponseSchema>;
537
+ export declare const ActiveCartCheckoutGroupSchema: Schema.Schema<{
538
+ readonly itemGroups?: readonly {
539
+ readonly items: readonly {
540
+ readonly price?: {
541
+ readonly amount: string;
542
+ readonly currency: string;
543
+ };
544
+ readonly productId: string;
545
+ readonly quantity: number;
546
+ readonly finalPrice?: {
547
+ readonly amount: string;
548
+ readonly currency: string;
549
+ };
550
+ readonly maxQuantityReached?: boolean;
551
+ readonly available?: boolean;
552
+ readonly imageUrl?: string;
553
+ readonly name?: string;
554
+ readonly retailerProductId?: string;
555
+ readonly unavailable?: boolean;
556
+ }[];
557
+ readonly name?: string;
558
+ }[];
559
+ readonly totals?: {
560
+ readonly itemPriceAfterPromos: {
561
+ readonly amount: string;
562
+ readonly currency: string;
563
+ };
564
+ readonly itemsRetailPrice: {
565
+ readonly amount: string;
566
+ readonly currency: string;
567
+ };
568
+ readonly savingsPrice: {
569
+ readonly amount: string;
570
+ readonly currency: string;
571
+ };
572
+ readonly taxation: string;
573
+ };
574
+ readonly checkoutRestrictions?: readonly string[];
575
+ } & {
576
+ readonly [x: string]: unknown;
577
+ }, {
578
+ readonly itemGroups?: readonly {
579
+ readonly items: readonly {
580
+ readonly productId: string;
581
+ readonly quantity: number;
582
+ readonly price?: {
583
+ readonly amount: string;
584
+ readonly currency: string;
585
+ };
586
+ readonly finalPrice?: {
587
+ readonly amount: string;
588
+ readonly currency: string;
589
+ };
590
+ readonly maxQuantityReached?: boolean;
591
+ readonly available?: boolean;
592
+ readonly imageUrl?: string;
593
+ readonly name?: string;
594
+ readonly retailerProductId?: string;
595
+ readonly unavailable?: boolean;
596
+ }[];
597
+ readonly name?: string;
598
+ }[];
599
+ readonly totals?: {
600
+ readonly itemPriceAfterPromos: {
601
+ readonly amount: string;
602
+ readonly currency: string;
603
+ };
604
+ readonly itemsRetailPrice: {
605
+ readonly amount: string;
606
+ readonly currency: string;
607
+ };
608
+ readonly savingsPrice: {
609
+ readonly amount: string;
610
+ readonly currency: string;
611
+ };
612
+ readonly taxation: string;
613
+ };
614
+ readonly checkoutRestrictions?: readonly string[];
615
+ } & {
616
+ readonly [x: string]: unknown;
617
+ }, never>;
618
+ export type ActiveCartCheckoutGroup = Schema.Schema.Type<typeof ActiveCartCheckoutGroupSchema>;
619
+ export declare const ActiveCartViewResponseSchema: Schema.Schema<{
620
+ readonly totals: {
621
+ readonly itemPriceAfterPromos: {
622
+ readonly amount: string;
623
+ readonly currency: string;
624
+ };
625
+ readonly itemsRetailPrice: {
626
+ readonly amount: string;
627
+ readonly currency: string;
628
+ };
629
+ readonly savingsPrice: {
630
+ readonly amount: string;
631
+ readonly currency: string;
632
+ };
633
+ readonly taxation: string;
634
+ };
635
+ readonly pricingNotifications?: readonly ({
636
+ readonly message?: string;
637
+ readonly code?: string;
638
+ readonly severity?: string;
639
+ } & {
640
+ readonly [x: string]: unknown;
641
+ })[];
642
+ readonly unavailableData?: readonly ({
643
+ readonly message?: string;
644
+ readonly code?: string;
645
+ readonly severity?: string;
646
+ } & {
647
+ readonly [x: string]: unknown;
648
+ })[];
649
+ readonly activeCheckoutGroup?: {
650
+ readonly checkoutRestrictions?: readonly string[];
651
+ } & {
652
+ readonly [x: string]: unknown;
653
+ };
654
+ readonly cartId: string;
655
+ readonly checkoutGroups?: {
656
+ readonly assignedCheckoutGroups?: readonly ({
657
+ readonly itemGroups?: readonly {
658
+ readonly items: readonly {
659
+ readonly price?: {
660
+ readonly amount: string;
661
+ readonly currency: string;
662
+ };
663
+ readonly productId: string;
664
+ readonly quantity: number;
665
+ readonly finalPrice?: {
666
+ readonly amount: string;
667
+ readonly currency: string;
668
+ };
669
+ readonly maxQuantityReached?: boolean;
670
+ readonly available?: boolean;
671
+ readonly imageUrl?: string;
672
+ readonly name?: string;
673
+ readonly retailerProductId?: string;
674
+ readonly unavailable?: boolean;
675
+ }[];
676
+ readonly name?: string;
677
+ }[];
678
+ readonly totals?: {
679
+ readonly itemPriceAfterPromos: {
680
+ readonly amount: string;
681
+ readonly currency: string;
682
+ };
683
+ readonly itemsRetailPrice: {
684
+ readonly amount: string;
685
+ readonly currency: string;
686
+ };
687
+ readonly savingsPrice: {
688
+ readonly amount: string;
689
+ readonly currency: string;
690
+ };
691
+ readonly taxation: string;
692
+ };
693
+ readonly checkoutRestrictions?: readonly string[];
694
+ } & {
695
+ readonly [x: string]: unknown;
696
+ })[];
697
+ } & {
698
+ readonly [x: string]: unknown;
699
+ };
700
+ } & {
701
+ readonly [x: string]: unknown;
702
+ }, {
703
+ readonly totals: {
704
+ readonly itemPriceAfterPromos: {
705
+ readonly amount: string;
706
+ readonly currency: string;
707
+ };
708
+ readonly itemsRetailPrice: {
709
+ readonly amount: string;
710
+ readonly currency: string;
711
+ };
712
+ readonly savingsPrice: {
713
+ readonly amount: string;
714
+ readonly currency: string;
715
+ };
716
+ readonly taxation: string;
717
+ };
718
+ readonly cartId: string;
719
+ readonly pricingNotifications?: readonly ({
720
+ readonly message?: string;
721
+ readonly code?: string;
722
+ readonly severity?: string;
723
+ } & {
724
+ readonly [x: string]: unknown;
725
+ })[];
726
+ readonly unavailableData?: readonly ({
727
+ readonly message?: string;
728
+ readonly code?: string;
729
+ readonly severity?: string;
730
+ } & {
731
+ readonly [x: string]: unknown;
732
+ })[];
733
+ readonly activeCheckoutGroup?: {
734
+ readonly checkoutRestrictions?: readonly string[];
735
+ } & {
736
+ readonly [x: string]: unknown;
737
+ };
738
+ readonly checkoutGroups?: {
739
+ readonly assignedCheckoutGroups?: readonly ({
740
+ readonly itemGroups?: readonly {
741
+ readonly items: readonly {
742
+ readonly productId: string;
743
+ readonly quantity: number;
744
+ readonly price?: {
745
+ readonly amount: string;
746
+ readonly currency: string;
747
+ };
748
+ readonly finalPrice?: {
749
+ readonly amount: string;
750
+ readonly currency: string;
751
+ };
752
+ readonly maxQuantityReached?: boolean;
753
+ readonly available?: boolean;
754
+ readonly imageUrl?: string;
755
+ readonly name?: string;
756
+ readonly retailerProductId?: string;
757
+ readonly unavailable?: boolean;
758
+ }[];
759
+ readonly name?: string;
760
+ }[];
761
+ readonly totals?: {
762
+ readonly itemPriceAfterPromos: {
763
+ readonly amount: string;
764
+ readonly currency: string;
765
+ };
766
+ readonly itemsRetailPrice: {
767
+ readonly amount: string;
768
+ readonly currency: string;
769
+ };
770
+ readonly savingsPrice: {
771
+ readonly amount: string;
772
+ readonly currency: string;
773
+ };
774
+ readonly taxation: string;
775
+ };
776
+ readonly checkoutRestrictions?: readonly string[];
777
+ } & {
778
+ readonly [x: string]: unknown;
779
+ })[];
780
+ } & {
781
+ readonly [x: string]: unknown;
782
+ };
783
+ } & {
784
+ readonly [x: string]: unknown;
785
+ }, never>;
786
+ export type ActiveCartViewResponse = Schema.Schema.Type<typeof ActiveCartViewResponseSchema>;
787
+ export declare const AnyCartViewResponseSchema: Schema.Union<[Schema.Struct<{
788
+ basket: Schema.Struct<{
789
+ basketId: typeof Schema.String;
790
+ itemGroups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
791
+ items: Schema.Array$<Schema.Struct<{
792
+ available: Schema.optionalWith<typeof Schema.Boolean, {
793
+ exact: true;
794
+ }>;
795
+ finalPrice: Schema.optionalWith<Schema.Struct<{
796
+ amount: typeof Schema.String;
797
+ currency: typeof Schema.String;
798
+ }>, {
799
+ exact: true;
800
+ }>;
801
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
802
+ exact: true;
803
+ }>;
804
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
805
+ exact: true;
806
+ }>;
807
+ name: Schema.optionalWith<typeof Schema.String, {
808
+ exact: true;
809
+ }>;
810
+ price: Schema.optionalWith<Schema.Struct<{
811
+ amount: typeof Schema.String;
812
+ currency: typeof Schema.String;
813
+ }>, {
814
+ exact: true;
815
+ }>;
816
+ productId: typeof Schema.String;
817
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
818
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
819
+ exact: true;
820
+ }>;
821
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
822
+ exact: true;
823
+ }>;
824
+ }>>;
825
+ name: Schema.optionalWith<typeof Schema.String, {
826
+ exact: true;
827
+ }>;
828
+ }>>, {
829
+ exact: true;
830
+ }>;
831
+ totals: Schema.Struct<{
832
+ itemPriceAfterPromos: Schema.Struct<{
833
+ amount: typeof Schema.String;
834
+ currency: typeof Schema.String;
835
+ }>;
836
+ itemsRetailPrice: Schema.Struct<{
837
+ amount: typeof Schema.String;
838
+ currency: typeof Schema.String;
839
+ }>;
840
+ savingsPrice: Schema.Struct<{
841
+ amount: typeof Schema.String;
842
+ currency: typeof Schema.String;
843
+ }>;
844
+ taxation: typeof Schema.String;
845
+ }>;
846
+ }>;
847
+ checkoutRestrictions: Schema.optionalWith<Schema.Array$<Schema.Schema<{
848
+ readonly message?: string;
849
+ readonly code?: string;
850
+ readonly severity?: string;
851
+ } & {
852
+ readonly [x: string]: unknown;
853
+ }, {
854
+ readonly message?: string;
855
+ readonly code?: string;
856
+ readonly severity?: string;
857
+ } & {
858
+ readonly [x: string]: unknown;
859
+ }, never>>, {
860
+ exact: true;
861
+ }>;
862
+ limitedItems: Schema.optionalWith<Schema.Array$<Schema.Schema<{
863
+ readonly message?: string;
864
+ readonly code?: string;
865
+ readonly severity?: string;
866
+ } & {
867
+ readonly [x: string]: unknown;
868
+ }, {
869
+ readonly message?: string;
870
+ readonly code?: string;
871
+ readonly severity?: string;
872
+ } & {
873
+ readonly [x: string]: unknown;
874
+ }, never>>, {
875
+ exact: true;
876
+ }>;
877
+ pricingNotifications: Schema.optionalWith<Schema.Array$<Schema.Schema<{
878
+ readonly message?: string;
879
+ readonly code?: string;
880
+ readonly severity?: string;
881
+ } & {
882
+ readonly [x: string]: unknown;
883
+ }, {
884
+ readonly message?: string;
885
+ readonly code?: string;
886
+ readonly severity?: string;
887
+ } & {
888
+ readonly [x: string]: unknown;
889
+ }, never>>, {
890
+ exact: true;
891
+ }>;
892
+ unavailableData: Schema.optionalWith<Schema.Array$<Schema.Schema<{
893
+ readonly message?: string;
894
+ readonly code?: string;
895
+ readonly severity?: string;
896
+ } & {
897
+ readonly [x: string]: unknown;
898
+ }, {
899
+ readonly message?: string;
900
+ readonly code?: string;
901
+ readonly severity?: string;
902
+ } & {
903
+ readonly [x: string]: unknown;
904
+ }, never>>, {
905
+ exact: true;
906
+ }>;
907
+ }>, Schema.Schema<{
908
+ readonly totals: {
909
+ readonly itemPriceAfterPromos: {
910
+ readonly amount: string;
911
+ readonly currency: string;
912
+ };
913
+ readonly itemsRetailPrice: {
914
+ readonly amount: string;
915
+ readonly currency: string;
916
+ };
917
+ readonly savingsPrice: {
918
+ readonly amount: string;
919
+ readonly currency: string;
920
+ };
921
+ readonly taxation: string;
922
+ };
923
+ readonly pricingNotifications?: readonly ({
924
+ readonly message?: string;
925
+ readonly code?: string;
926
+ readonly severity?: string;
927
+ } & {
928
+ readonly [x: string]: unknown;
929
+ })[];
930
+ readonly unavailableData?: readonly ({
931
+ readonly message?: string;
932
+ readonly code?: string;
933
+ readonly severity?: string;
934
+ } & {
935
+ readonly [x: string]: unknown;
936
+ })[];
937
+ readonly activeCheckoutGroup?: {
938
+ readonly checkoutRestrictions?: readonly string[];
939
+ } & {
940
+ readonly [x: string]: unknown;
941
+ };
942
+ readonly cartId: string;
943
+ readonly checkoutGroups?: {
944
+ readonly assignedCheckoutGroups?: readonly ({
945
+ readonly itemGroups?: readonly {
946
+ readonly items: readonly {
947
+ readonly price?: {
948
+ readonly amount: string;
949
+ readonly currency: string;
950
+ };
951
+ readonly productId: string;
952
+ readonly quantity: number;
953
+ readonly finalPrice?: {
954
+ readonly amount: string;
955
+ readonly currency: string;
956
+ };
957
+ readonly maxQuantityReached?: boolean;
958
+ readonly available?: boolean;
959
+ readonly imageUrl?: string;
960
+ readonly name?: string;
961
+ readonly retailerProductId?: string;
962
+ readonly unavailable?: boolean;
963
+ }[];
964
+ readonly name?: string;
965
+ }[];
966
+ readonly totals?: {
967
+ readonly itemPriceAfterPromos: {
968
+ readonly amount: string;
969
+ readonly currency: string;
970
+ };
971
+ readonly itemsRetailPrice: {
972
+ readonly amount: string;
973
+ readonly currency: string;
974
+ };
975
+ readonly savingsPrice: {
976
+ readonly amount: string;
977
+ readonly currency: string;
978
+ };
979
+ readonly taxation: string;
980
+ };
981
+ readonly checkoutRestrictions?: readonly string[];
982
+ } & {
983
+ readonly [x: string]: unknown;
984
+ })[];
985
+ } & {
986
+ readonly [x: string]: unknown;
987
+ };
988
+ } & {
989
+ readonly [x: string]: unknown;
990
+ }, {
991
+ readonly totals: {
992
+ readonly itemPriceAfterPromos: {
993
+ readonly amount: string;
994
+ readonly currency: string;
995
+ };
996
+ readonly itemsRetailPrice: {
997
+ readonly amount: string;
998
+ readonly currency: string;
999
+ };
1000
+ readonly savingsPrice: {
1001
+ readonly amount: string;
1002
+ readonly currency: string;
1003
+ };
1004
+ readonly taxation: string;
1005
+ };
1006
+ readonly cartId: string;
1007
+ readonly pricingNotifications?: readonly ({
1008
+ readonly message?: string;
1009
+ readonly code?: string;
1010
+ readonly severity?: string;
1011
+ } & {
1012
+ readonly [x: string]: unknown;
1013
+ })[];
1014
+ readonly unavailableData?: readonly ({
1015
+ readonly message?: string;
1016
+ readonly code?: string;
1017
+ readonly severity?: string;
1018
+ } & {
1019
+ readonly [x: string]: unknown;
1020
+ })[];
1021
+ readonly activeCheckoutGroup?: {
1022
+ readonly checkoutRestrictions?: readonly string[];
1023
+ } & {
1024
+ readonly [x: string]: unknown;
1025
+ };
1026
+ readonly checkoutGroups?: {
1027
+ readonly assignedCheckoutGroups?: readonly ({
1028
+ readonly itemGroups?: readonly {
1029
+ readonly items: readonly {
1030
+ readonly productId: string;
1031
+ readonly quantity: number;
1032
+ readonly price?: {
1033
+ readonly amount: string;
1034
+ readonly currency: string;
1035
+ };
1036
+ readonly finalPrice?: {
1037
+ readonly amount: string;
1038
+ readonly currency: string;
1039
+ };
1040
+ readonly maxQuantityReached?: boolean;
1041
+ readonly available?: boolean;
1042
+ readonly imageUrl?: string;
1043
+ readonly name?: string;
1044
+ readonly retailerProductId?: string;
1045
+ readonly unavailable?: boolean;
1046
+ }[];
1047
+ readonly name?: string;
1048
+ }[];
1049
+ readonly totals?: {
1050
+ readonly itemPriceAfterPromos: {
1051
+ readonly amount: string;
1052
+ readonly currency: string;
1053
+ };
1054
+ readonly itemsRetailPrice: {
1055
+ readonly amount: string;
1056
+ readonly currency: string;
1057
+ };
1058
+ readonly savingsPrice: {
1059
+ readonly amount: string;
1060
+ readonly currency: string;
1061
+ };
1062
+ readonly taxation: string;
1063
+ };
1064
+ readonly checkoutRestrictions?: readonly string[];
1065
+ } & {
1066
+ readonly [x: string]: unknown;
1067
+ })[];
1068
+ } & {
1069
+ readonly [x: string]: unknown;
1070
+ };
1071
+ } & {
1072
+ readonly [x: string]: unknown;
1073
+ }, never>]>;
1074
+ export type AnyCartViewResponse = Schema.Schema.Type<typeof AnyCartViewResponseSchema>;
1075
+ export declare const NormalizedCartItemSchema: Schema.extend<Schema.Struct<{
1076
+ available: Schema.optionalWith<typeof Schema.Boolean, {
1077
+ exact: true;
1078
+ }>;
1079
+ finalPrice: Schema.optionalWith<Schema.Struct<{
1080
+ amount: typeof Schema.String;
1081
+ currency: typeof Schema.String;
1082
+ }>, {
1083
+ exact: true;
1084
+ }>;
1085
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
1086
+ exact: true;
1087
+ }>;
1088
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
1089
+ exact: true;
1090
+ }>;
1091
+ name: Schema.optionalWith<typeof Schema.String, {
1092
+ exact: true;
1093
+ }>;
1094
+ price: Schema.optionalWith<Schema.Struct<{
1095
+ amount: typeof Schema.String;
1096
+ currency: typeof Schema.String;
1097
+ }>, {
1098
+ exact: true;
1099
+ }>;
1100
+ productId: typeof Schema.String;
1101
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1102
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
1103
+ exact: true;
1104
+ }>;
1105
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
1106
+ exact: true;
1107
+ }>;
1108
+ }>, Schema.Struct<{
1109
+ groupName: Schema.optionalWith<typeof Schema.String, {
1110
+ exact: true;
1111
+ }>;
1112
+ }>>;
1113
+ export type NormalizedCartItem = Schema.Schema.Type<typeof NormalizedCartItemSchema>;
1114
+ export declare const NormalizedCartViewSchema: Schema.Struct<{
1115
+ basketId: typeof Schema.String;
1116
+ checkoutRestrictions: Schema.Array$<Schema.Schema<{
1117
+ readonly message?: string;
1118
+ readonly code?: string;
1119
+ readonly severity?: string;
1120
+ } & {
1121
+ readonly [x: string]: unknown;
1122
+ }, {
1123
+ readonly message?: string;
1124
+ readonly code?: string;
1125
+ readonly severity?: string;
1126
+ } & {
1127
+ readonly [x: string]: unknown;
1128
+ }, never>>;
1129
+ itemCount: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1130
+ items: Schema.Array$<Schema.extend<Schema.Struct<{
1131
+ available: Schema.optionalWith<typeof Schema.Boolean, {
1132
+ exact: true;
1133
+ }>;
1134
+ finalPrice: Schema.optionalWith<Schema.Struct<{
1135
+ amount: typeof Schema.String;
1136
+ currency: typeof Schema.String;
1137
+ }>, {
1138
+ exact: true;
1139
+ }>;
1140
+ imageUrl: Schema.optionalWith<typeof Schema.String, {
1141
+ exact: true;
1142
+ }>;
1143
+ maxQuantityReached: Schema.optionalWith<typeof Schema.Boolean, {
1144
+ exact: true;
1145
+ }>;
1146
+ name: Schema.optionalWith<typeof Schema.String, {
1147
+ exact: true;
1148
+ }>;
1149
+ price: Schema.optionalWith<Schema.Struct<{
1150
+ amount: typeof Schema.String;
1151
+ currency: typeof Schema.String;
1152
+ }>, {
1153
+ exact: true;
1154
+ }>;
1155
+ productId: typeof Schema.String;
1156
+ quantity: Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>;
1157
+ retailerProductId: Schema.optionalWith<typeof Schema.String, {
1158
+ exact: true;
1159
+ }>;
1160
+ unavailable: Schema.optionalWith<typeof Schema.Boolean, {
1161
+ exact: true;
1162
+ }>;
1163
+ }>, Schema.Struct<{
1164
+ groupName: Schema.optionalWith<typeof Schema.String, {
1165
+ exact: true;
1166
+ }>;
1167
+ }>>>;
1168
+ limitedItems: Schema.Array$<Schema.Schema<{
1169
+ readonly message?: string;
1170
+ readonly code?: string;
1171
+ readonly severity?: string;
1172
+ } & {
1173
+ readonly [x: string]: unknown;
1174
+ }, {
1175
+ readonly message?: string;
1176
+ readonly code?: string;
1177
+ readonly severity?: string;
1178
+ } & {
1179
+ readonly [x: string]: unknown;
1180
+ }, never>>;
1181
+ pricingNotifications: Schema.Array$<Schema.Schema<{
1182
+ readonly message?: string;
1183
+ readonly code?: string;
1184
+ readonly severity?: string;
1185
+ } & {
1186
+ readonly [x: string]: unknown;
1187
+ }, {
1188
+ readonly message?: string;
1189
+ readonly code?: string;
1190
+ readonly severity?: string;
1191
+ } & {
1192
+ readonly [x: string]: unknown;
1193
+ }, never>>;
1194
+ totals: Schema.Struct<{
1195
+ itemPriceAfterPromos: Schema.Struct<{
1196
+ amount: typeof Schema.String;
1197
+ currency: typeof Schema.String;
1198
+ }>;
1199
+ itemsRetailPrice: Schema.Struct<{
1200
+ amount: typeof Schema.String;
1201
+ currency: typeof Schema.String;
1202
+ }>;
1203
+ savingsPrice: Schema.Struct<{
1204
+ amount: typeof Schema.String;
1205
+ currency: typeof Schema.String;
1206
+ }>;
1207
+ taxation: typeof Schema.String;
1208
+ }>;
1209
+ unavailableData: Schema.Array$<Schema.Schema<{
1210
+ readonly message?: string;
1211
+ readonly code?: string;
1212
+ readonly severity?: string;
1213
+ } & {
1214
+ readonly [x: string]: unknown;
1215
+ }, {
1216
+ readonly message?: string;
1217
+ readonly code?: string;
1218
+ readonly severity?: string;
1219
+ } & {
1220
+ readonly [x: string]: unknown;
1221
+ }, never>>;
1222
+ }>;
1223
+ export type NormalizedCartView = Schema.Schema.Type<typeof NormalizedCartViewSchema>;
1224
+ //# sourceMappingURL=cart.d.ts.map