@firfi/voila-sdk 0.1.2 → 0.1.4
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/README.md +5 -3
- package/dist/src/domain/schemas/discount.d.ts +439 -0
- package/dist/src/domain/schemas/discount.d.ts.map +1 -0
- package/dist/src/domain/schemas/discount.js +59 -0
- package/dist/src/domain/schemas/discount.js.map +1 -0
- package/dist/src/domain/schemas/index.d.ts +2 -0
- package/dist/src/domain/schemas/index.d.ts.map +1 -1
- package/dist/src/domain/schemas/index.js +2 -0
- package/dist/src/domain/schemas/index.js.map +1 -1
- package/dist/src/domain/schemas/order-details.d.ts +2623 -0
- package/dist/src/domain/schemas/order-details.d.ts.map +1 -0
- package/dist/src/domain/schemas/order-details.js +148 -0
- package/dist/src/domain/schemas/order-details.js.map +1 -0
- package/dist/src/domain/schemas/order-history.d.ts +237 -60
- package/dist/src/domain/schemas/order-history.d.ts.map +1 -1
- package/dist/src/domain/schemas/order-history.js +17 -12
- package/dist/src/domain/schemas/order-history.js.map +1 -1
- package/dist/src/domain/schemas/slot.d.ts +4 -4
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/voila/browser-login-adapter.d.ts +2 -2
- package/dist/src/voila/discount-urls.d.ts +13 -0
- package/dist/src/voila/discount-urls.d.ts.map +1 -0
- package/dist/src/voila/discount-urls.js +33 -0
- package/dist/src/voila/discount-urls.js.map +1 -0
- package/dist/src/voila/discounted-products.d.ts +53 -0
- package/dist/src/voila/discounted-products.d.ts.map +1 -0
- package/dist/src/voila/discounted-products.js +195 -0
- package/dist/src/voila/discounted-products.js.map +1 -0
- package/dist/src/voila/order-details.d.ts +22 -0
- package/dist/src/voila/order-details.d.ts.map +1 -0
- package/dist/src/voila/order-details.js +267 -0
- package/dist/src/voila/order-details.js.map +1 -0
- package/dist/src/voila/order-history.d.ts +9 -5
- package/dist/src/voila/order-history.d.ts.map +1 -1
- package/dist/src/voila/order-history.js +23 -5
- package/dist/src/voila/order-history.js.map +1 -1
- package/dist/src/voila/order-urls.d.ts +10 -0
- package/dist/src/voila/order-urls.d.ts.map +1 -1
- package/dist/src/voila/order-urls.js +12 -1
- package/dist/src/voila/order-urls.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,8 @@ console.log(search.right.value.products.map((product) => product.name))
|
|
|
79
79
|
- Slot listing and guarded slot reservation input helpers.
|
|
80
80
|
- Checkout summary/readiness review.
|
|
81
81
|
- Completed order history reads with cursor pagination.
|
|
82
|
+
- Completed order detail reads with item groups, quantities, prices, and substitution/missing/return status.
|
|
83
|
+
- Completed-order item aggregation for questions like "what did I order last month?"
|
|
82
84
|
- Session snapshot save/load helpers.
|
|
83
85
|
|
|
84
86
|
The SDK does not place orders. Checkout APIs stop at review/readiness so a human can confirm in Voila.
|
|
@@ -104,7 +106,7 @@ That file is sensitive and ignored by git. Use it with `loadSdkSessionSnapshot`
|
|
|
104
106
|
Import only from the package entrypoint:
|
|
105
107
|
|
|
106
108
|
```ts
|
|
107
|
-
import { addCartItems, getCart, getCompletedOrders, searchProducts } from "@firfi/voila-sdk"
|
|
109
|
+
import { addCartItems, getCart, getCompletedOrderItems, getCompletedOrders, getOrderDetails, searchProducts } from "@firfi/voila-sdk"
|
|
108
110
|
```
|
|
109
111
|
|
|
110
112
|
Deep imports are unsupported. See [docs/public-api.md](docs/public-api.md) for the full public surface and [docs/usage-examples.md](docs/usage-examples.md) for end-to-end examples.
|
|
@@ -153,9 +155,9 @@ npm publish
|
|
|
153
155
|
|
|
154
156
|
The package tarball intentionally contains only `package.json`, `README.md`, `LICENSE`, and `dist/src/**`. See [docs/release.md](docs/release.md).
|
|
155
157
|
|
|
156
|
-
##
|
|
158
|
+
## MCP And CLI
|
|
157
159
|
|
|
158
|
-
The
|
|
160
|
+
The workspace also publishes `@firfi/voila-mcp` and `@firfi/voila-cli`. Both use this SDK for Voila endpoint behavior; MCP owns the shared operation registry and the CLI reuses it. See [docs/mcp-readiness.md](docs/mcp-readiness.md).
|
|
159
161
|
|
|
160
162
|
## Safety
|
|
161
163
|
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const MIN_DISCOUNT_PAGE_SIZE = 1;
|
|
3
|
+
export declare const MAX_DISCOUNT_PAGE_SIZE = 24;
|
|
4
|
+
export declare const DEFAULT_DISCOUNT_PAGE_SIZE = 12;
|
|
5
|
+
export declare const DEFAULT_MIN_SAVINGS_AMOUNT = 0.5;
|
|
6
|
+
export declare const DEFAULT_MIN_SAVINGS_PERCENT = 10;
|
|
7
|
+
export declare const MAX_DISCOUNT_QUERY_SCAN_PAGES = 5;
|
|
8
|
+
export declare const DiscountSortSchema: Schema.Literal<["best-percent", "best-amount", "price-asc"]>;
|
|
9
|
+
export type DiscountSort = Schema.Schema.Type<typeof DiscountSortSchema>;
|
|
10
|
+
export declare const DiscountedProductsInputSchema: Schema.Struct<{
|
|
11
|
+
categoryId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
12
|
+
exact: true;
|
|
13
|
+
}>;
|
|
14
|
+
minSavingsAmount: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
15
|
+
exact: true;
|
|
16
|
+
}>;
|
|
17
|
+
minSavingsPercent: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
|
|
18
|
+
exact: true;
|
|
19
|
+
}>;
|
|
20
|
+
pageSize: Schema.optionalWith<Schema.filter<Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>>, {
|
|
21
|
+
default: () => number;
|
|
22
|
+
}>;
|
|
23
|
+
pageToken: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
24
|
+
exact: true;
|
|
25
|
+
}>;
|
|
26
|
+
query: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
27
|
+
exact: true;
|
|
28
|
+
}>;
|
|
29
|
+
retailerCategoryId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
30
|
+
exact: true;
|
|
31
|
+
}>;
|
|
32
|
+
sort: Schema.optionalWith<Schema.Literal<["best-percent", "best-amount", "price-asc"]>, {
|
|
33
|
+
exact: true;
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
export type DiscountedProductsInput = Schema.Schema.Type<typeof DiscountedProductsInputSchema>;
|
|
37
|
+
export declare const RawPromotionMetadataSchema: Schema.extend<Schema.Struct<{
|
|
38
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
39
|
+
exact: true;
|
|
40
|
+
}>;
|
|
41
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
42
|
+
exact: true;
|
|
43
|
+
}>;
|
|
44
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
45
|
+
exact: true;
|
|
46
|
+
}>;
|
|
47
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
48
|
+
exact: true;
|
|
49
|
+
}>;
|
|
50
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
51
|
+
exact: true;
|
|
52
|
+
}>;
|
|
53
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
54
|
+
exact: true;
|
|
55
|
+
}>;
|
|
56
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
57
|
+
export type RawPromotionMetadata = Schema.Schema.Type<typeof RawPromotionMetadataSchema>;
|
|
58
|
+
export declare const RawPromotionProductSchema: Schema.extend<Schema.Struct<{
|
|
59
|
+
available: typeof Schema.Boolean;
|
|
60
|
+
brand: Schema.optionalWith<typeof Schema.String, {
|
|
61
|
+
exact: true;
|
|
62
|
+
}>;
|
|
63
|
+
maxQuantityReached: typeof Schema.Boolean;
|
|
64
|
+
name: typeof Schema.String;
|
|
65
|
+
packSizeDescription: Schema.optionalWith<typeof Schema.String, {
|
|
66
|
+
exact: true;
|
|
67
|
+
}>;
|
|
68
|
+
price: Schema.Struct<{
|
|
69
|
+
amount: typeof Schema.String;
|
|
70
|
+
currency: typeof Schema.String;
|
|
71
|
+
}>;
|
|
72
|
+
productId: typeof Schema.String;
|
|
73
|
+
promoPrice: Schema.optionalWith<Schema.Struct<{
|
|
74
|
+
amount: typeof Schema.String;
|
|
75
|
+
currency: typeof Schema.String;
|
|
76
|
+
}>, {
|
|
77
|
+
exact: true;
|
|
78
|
+
}>;
|
|
79
|
+
promoUnitPrice: Schema.optionalWith<Schema.Struct<{
|
|
80
|
+
price: Schema.Struct<{
|
|
81
|
+
amount: typeof Schema.String;
|
|
82
|
+
currency: typeof Schema.String;
|
|
83
|
+
}>;
|
|
84
|
+
unit: typeof Schema.String;
|
|
85
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
86
|
+
exact: true;
|
|
87
|
+
}>;
|
|
88
|
+
}>, {
|
|
89
|
+
exact: true;
|
|
90
|
+
}>;
|
|
91
|
+
promotions: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
92
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
93
|
+
exact: true;
|
|
94
|
+
}>;
|
|
95
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
96
|
+
exact: true;
|
|
97
|
+
}>;
|
|
98
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
99
|
+
exact: true;
|
|
100
|
+
}>;
|
|
101
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
102
|
+
exact: true;
|
|
103
|
+
}>;
|
|
104
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
105
|
+
exact: true;
|
|
106
|
+
}>;
|
|
107
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
108
|
+
exact: true;
|
|
109
|
+
}>;
|
|
110
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
111
|
+
exact: true;
|
|
112
|
+
}>;
|
|
113
|
+
quantityInBasket: typeof Schema.Number;
|
|
114
|
+
retailerProductId: typeof Schema.String;
|
|
115
|
+
unitPrice: Schema.optionalWith<Schema.Struct<{
|
|
116
|
+
price: Schema.Struct<{
|
|
117
|
+
amount: typeof Schema.String;
|
|
118
|
+
currency: typeof Schema.String;
|
|
119
|
+
}>;
|
|
120
|
+
unit: typeof Schema.String;
|
|
121
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
122
|
+
exact: true;
|
|
123
|
+
}>;
|
|
124
|
+
}>, {
|
|
125
|
+
exact: true;
|
|
126
|
+
}>;
|
|
127
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
128
|
+
export type RawPromotionProduct = Schema.Schema.Type<typeof RawPromotionProductSchema>;
|
|
129
|
+
export declare const RawPromotionProductGroupSchema: Schema.extend<Schema.Struct<{
|
|
130
|
+
decoratedProducts: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
131
|
+
available: typeof Schema.Boolean;
|
|
132
|
+
brand: Schema.optionalWith<typeof Schema.String, {
|
|
133
|
+
exact: true;
|
|
134
|
+
}>;
|
|
135
|
+
maxQuantityReached: typeof Schema.Boolean;
|
|
136
|
+
name: typeof Schema.String;
|
|
137
|
+
packSizeDescription: Schema.optionalWith<typeof Schema.String, {
|
|
138
|
+
exact: true;
|
|
139
|
+
}>;
|
|
140
|
+
price: Schema.Struct<{
|
|
141
|
+
amount: typeof Schema.String;
|
|
142
|
+
currency: typeof Schema.String;
|
|
143
|
+
}>;
|
|
144
|
+
productId: typeof Schema.String;
|
|
145
|
+
promoPrice: Schema.optionalWith<Schema.Struct<{
|
|
146
|
+
amount: typeof Schema.String;
|
|
147
|
+
currency: typeof Schema.String;
|
|
148
|
+
}>, {
|
|
149
|
+
exact: true;
|
|
150
|
+
}>;
|
|
151
|
+
promoUnitPrice: Schema.optionalWith<Schema.Struct<{
|
|
152
|
+
price: Schema.Struct<{
|
|
153
|
+
amount: typeof Schema.String;
|
|
154
|
+
currency: typeof Schema.String;
|
|
155
|
+
}>;
|
|
156
|
+
unit: typeof Schema.String;
|
|
157
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
158
|
+
exact: true;
|
|
159
|
+
}>;
|
|
160
|
+
}>, {
|
|
161
|
+
exact: true;
|
|
162
|
+
}>;
|
|
163
|
+
promotions: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
164
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
165
|
+
exact: true;
|
|
166
|
+
}>;
|
|
167
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
168
|
+
exact: true;
|
|
169
|
+
}>;
|
|
170
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
171
|
+
exact: true;
|
|
172
|
+
}>;
|
|
173
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
174
|
+
exact: true;
|
|
175
|
+
}>;
|
|
176
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
177
|
+
exact: true;
|
|
178
|
+
}>;
|
|
179
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
180
|
+
exact: true;
|
|
181
|
+
}>;
|
|
182
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
183
|
+
exact: true;
|
|
184
|
+
}>;
|
|
185
|
+
quantityInBasket: typeof Schema.Number;
|
|
186
|
+
retailerProductId: typeof Schema.String;
|
|
187
|
+
unitPrice: Schema.optionalWith<Schema.Struct<{
|
|
188
|
+
price: Schema.Struct<{
|
|
189
|
+
amount: typeof Schema.String;
|
|
190
|
+
currency: typeof Schema.String;
|
|
191
|
+
}>;
|
|
192
|
+
unit: typeof Schema.String;
|
|
193
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
194
|
+
exact: true;
|
|
195
|
+
}>;
|
|
196
|
+
}>, {
|
|
197
|
+
exact: true;
|
|
198
|
+
}>;
|
|
199
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
200
|
+
exact: true;
|
|
201
|
+
}>;
|
|
202
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
203
|
+
exact: true;
|
|
204
|
+
}>;
|
|
205
|
+
products: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
206
|
+
available: typeof Schema.Boolean;
|
|
207
|
+
brand: Schema.optionalWith<typeof Schema.String, {
|
|
208
|
+
exact: true;
|
|
209
|
+
}>;
|
|
210
|
+
maxQuantityReached: typeof Schema.Boolean;
|
|
211
|
+
name: typeof Schema.String;
|
|
212
|
+
packSizeDescription: Schema.optionalWith<typeof Schema.String, {
|
|
213
|
+
exact: true;
|
|
214
|
+
}>;
|
|
215
|
+
price: Schema.Struct<{
|
|
216
|
+
amount: typeof Schema.String;
|
|
217
|
+
currency: typeof Schema.String;
|
|
218
|
+
}>;
|
|
219
|
+
productId: typeof Schema.String;
|
|
220
|
+
promoPrice: Schema.optionalWith<Schema.Struct<{
|
|
221
|
+
amount: typeof Schema.String;
|
|
222
|
+
currency: typeof Schema.String;
|
|
223
|
+
}>, {
|
|
224
|
+
exact: true;
|
|
225
|
+
}>;
|
|
226
|
+
promoUnitPrice: Schema.optionalWith<Schema.Struct<{
|
|
227
|
+
price: Schema.Struct<{
|
|
228
|
+
amount: typeof Schema.String;
|
|
229
|
+
currency: typeof Schema.String;
|
|
230
|
+
}>;
|
|
231
|
+
unit: typeof Schema.String;
|
|
232
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
233
|
+
exact: true;
|
|
234
|
+
}>;
|
|
235
|
+
}>, {
|
|
236
|
+
exact: true;
|
|
237
|
+
}>;
|
|
238
|
+
promotions: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
239
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
240
|
+
exact: true;
|
|
241
|
+
}>;
|
|
242
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
243
|
+
exact: true;
|
|
244
|
+
}>;
|
|
245
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
246
|
+
exact: true;
|
|
247
|
+
}>;
|
|
248
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
249
|
+
exact: true;
|
|
250
|
+
}>;
|
|
251
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
252
|
+
exact: true;
|
|
253
|
+
}>;
|
|
254
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
255
|
+
exact: true;
|
|
256
|
+
}>;
|
|
257
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
258
|
+
exact: true;
|
|
259
|
+
}>;
|
|
260
|
+
quantityInBasket: typeof Schema.Number;
|
|
261
|
+
retailerProductId: typeof Schema.String;
|
|
262
|
+
unitPrice: Schema.optionalWith<Schema.Struct<{
|
|
263
|
+
price: Schema.Struct<{
|
|
264
|
+
amount: typeof Schema.String;
|
|
265
|
+
currency: typeof Schema.String;
|
|
266
|
+
}>;
|
|
267
|
+
unit: typeof Schema.String;
|
|
268
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
269
|
+
exact: true;
|
|
270
|
+
}>;
|
|
271
|
+
}>, {
|
|
272
|
+
exact: true;
|
|
273
|
+
}>;
|
|
274
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
275
|
+
exact: true;
|
|
276
|
+
}>;
|
|
277
|
+
type: typeof Schema.String;
|
|
278
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
279
|
+
export type RawPromotionProductGroup = Schema.Schema.Type<typeof RawPromotionProductGroupSchema>;
|
|
280
|
+
export declare const PromotionProductsResponseSchema: Schema.extend<Schema.Struct<{
|
|
281
|
+
nextPageToken: Schema.optionalWith<typeof Schema.String, {
|
|
282
|
+
exact: true;
|
|
283
|
+
}>;
|
|
284
|
+
productGroups: Schema.Array$<Schema.extend<Schema.Struct<{
|
|
285
|
+
decoratedProducts: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
286
|
+
available: typeof Schema.Boolean;
|
|
287
|
+
brand: Schema.optionalWith<typeof Schema.String, {
|
|
288
|
+
exact: true;
|
|
289
|
+
}>;
|
|
290
|
+
maxQuantityReached: typeof Schema.Boolean;
|
|
291
|
+
name: typeof Schema.String;
|
|
292
|
+
packSizeDescription: Schema.optionalWith<typeof Schema.String, {
|
|
293
|
+
exact: true;
|
|
294
|
+
}>;
|
|
295
|
+
price: Schema.Struct<{
|
|
296
|
+
amount: typeof Schema.String;
|
|
297
|
+
currency: typeof Schema.String;
|
|
298
|
+
}>;
|
|
299
|
+
productId: typeof Schema.String;
|
|
300
|
+
promoPrice: Schema.optionalWith<Schema.Struct<{
|
|
301
|
+
amount: typeof Schema.String;
|
|
302
|
+
currency: typeof Schema.String;
|
|
303
|
+
}>, {
|
|
304
|
+
exact: true;
|
|
305
|
+
}>;
|
|
306
|
+
promoUnitPrice: Schema.optionalWith<Schema.Struct<{
|
|
307
|
+
price: Schema.Struct<{
|
|
308
|
+
amount: typeof Schema.String;
|
|
309
|
+
currency: typeof Schema.String;
|
|
310
|
+
}>;
|
|
311
|
+
unit: typeof Schema.String;
|
|
312
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
313
|
+
exact: true;
|
|
314
|
+
}>;
|
|
315
|
+
}>, {
|
|
316
|
+
exact: true;
|
|
317
|
+
}>;
|
|
318
|
+
promotions: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
319
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
320
|
+
exact: true;
|
|
321
|
+
}>;
|
|
322
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
323
|
+
exact: true;
|
|
324
|
+
}>;
|
|
325
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
326
|
+
exact: true;
|
|
327
|
+
}>;
|
|
328
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
329
|
+
exact: true;
|
|
330
|
+
}>;
|
|
331
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
332
|
+
exact: true;
|
|
333
|
+
}>;
|
|
334
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
335
|
+
exact: true;
|
|
336
|
+
}>;
|
|
337
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
338
|
+
exact: true;
|
|
339
|
+
}>;
|
|
340
|
+
quantityInBasket: typeof Schema.Number;
|
|
341
|
+
retailerProductId: typeof Schema.String;
|
|
342
|
+
unitPrice: Schema.optionalWith<Schema.Struct<{
|
|
343
|
+
price: Schema.Struct<{
|
|
344
|
+
amount: typeof Schema.String;
|
|
345
|
+
currency: typeof Schema.String;
|
|
346
|
+
}>;
|
|
347
|
+
unit: typeof Schema.String;
|
|
348
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
349
|
+
exact: true;
|
|
350
|
+
}>;
|
|
351
|
+
}>, {
|
|
352
|
+
exact: true;
|
|
353
|
+
}>;
|
|
354
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
355
|
+
exact: true;
|
|
356
|
+
}>;
|
|
357
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
358
|
+
exact: true;
|
|
359
|
+
}>;
|
|
360
|
+
products: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
361
|
+
available: typeof Schema.Boolean;
|
|
362
|
+
brand: Schema.optionalWith<typeof Schema.String, {
|
|
363
|
+
exact: true;
|
|
364
|
+
}>;
|
|
365
|
+
maxQuantityReached: typeof Schema.Boolean;
|
|
366
|
+
name: typeof Schema.String;
|
|
367
|
+
packSizeDescription: Schema.optionalWith<typeof Schema.String, {
|
|
368
|
+
exact: true;
|
|
369
|
+
}>;
|
|
370
|
+
price: Schema.Struct<{
|
|
371
|
+
amount: typeof Schema.String;
|
|
372
|
+
currency: typeof Schema.String;
|
|
373
|
+
}>;
|
|
374
|
+
productId: typeof Schema.String;
|
|
375
|
+
promoPrice: Schema.optionalWith<Schema.Struct<{
|
|
376
|
+
amount: typeof Schema.String;
|
|
377
|
+
currency: typeof Schema.String;
|
|
378
|
+
}>, {
|
|
379
|
+
exact: true;
|
|
380
|
+
}>;
|
|
381
|
+
promoUnitPrice: Schema.optionalWith<Schema.Struct<{
|
|
382
|
+
price: Schema.Struct<{
|
|
383
|
+
amount: typeof Schema.String;
|
|
384
|
+
currency: typeof Schema.String;
|
|
385
|
+
}>;
|
|
386
|
+
unit: typeof Schema.String;
|
|
387
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
388
|
+
exact: true;
|
|
389
|
+
}>;
|
|
390
|
+
}>, {
|
|
391
|
+
exact: true;
|
|
392
|
+
}>;
|
|
393
|
+
promotions: Schema.optionalWith<Schema.Array$<Schema.extend<Schema.Struct<{
|
|
394
|
+
description: Schema.optionalWith<typeof Schema.String, {
|
|
395
|
+
exact: true;
|
|
396
|
+
}>;
|
|
397
|
+
id: Schema.optionalWith<typeof Schema.String, {
|
|
398
|
+
exact: true;
|
|
399
|
+
}>;
|
|
400
|
+
label: Schema.optionalWith<typeof Schema.String, {
|
|
401
|
+
exact: true;
|
|
402
|
+
}>;
|
|
403
|
+
name: Schema.optionalWith<typeof Schema.String, {
|
|
404
|
+
exact: true;
|
|
405
|
+
}>;
|
|
406
|
+
promotionId: Schema.optionalWith<typeof Schema.String, {
|
|
407
|
+
exact: true;
|
|
408
|
+
}>;
|
|
409
|
+
type: Schema.optionalWith<typeof Schema.String, {
|
|
410
|
+
exact: true;
|
|
411
|
+
}>;
|
|
412
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
413
|
+
exact: true;
|
|
414
|
+
}>;
|
|
415
|
+
quantityInBasket: typeof Schema.Number;
|
|
416
|
+
retailerProductId: typeof Schema.String;
|
|
417
|
+
unitPrice: Schema.optionalWith<Schema.Struct<{
|
|
418
|
+
price: Schema.Struct<{
|
|
419
|
+
amount: typeof Schema.String;
|
|
420
|
+
currency: typeof Schema.String;
|
|
421
|
+
}>;
|
|
422
|
+
unit: typeof Schema.String;
|
|
423
|
+
unitName: Schema.optionalWith<typeof Schema.String, {
|
|
424
|
+
exact: true;
|
|
425
|
+
}>;
|
|
426
|
+
}>, {
|
|
427
|
+
exact: true;
|
|
428
|
+
}>;
|
|
429
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>, {
|
|
430
|
+
exact: true;
|
|
431
|
+
}>;
|
|
432
|
+
type: typeof Schema.String;
|
|
433
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>>;
|
|
434
|
+
totalProducts: Schema.optionalWith<Schema.filter<Schema.filter<Schema.filter<typeof Schema.Number>>>, {
|
|
435
|
+
exact: true;
|
|
436
|
+
}>;
|
|
437
|
+
}>, Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
438
|
+
export type PromotionProductsResponse = Schema.Schema.Type<typeof PromotionProductsResponseSchema>;
|
|
439
|
+
//# sourceMappingURL=discount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount.d.ts","sourceRoot":"","sources":["../../../../src/domain/schemas/discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,eAAO,MAAM,sBAAsB,IAAI,CAAA;AACvC,eAAO,MAAM,sBAAsB,KAAK,CAAA;AACxC,eAAO,MAAM,0BAA0B,KAAK,CAAA;AAC5C,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAC7C,eAAO,MAAM,6BAA6B,IAAI,CAAA;AAqB9C,eAAO,MAAM,kBAAkB,8DAA6D,CAAA;AAE5F,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAExE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;EASxC,CAAA;AA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OUNT_PAGE_SIZE = 1;
|
|
4
|
+
export const MAX_DISCOUNT_PAGE_SIZE = 24;
|
|
5
|
+
export const DEFAULT_DISCOUNT_PAGE_SIZE = 12;
|
|
6
|
+
export const DEFAULT_MIN_SAVINGS_AMOUNT = 0.5;
|
|
7
|
+
export const DEFAULT_MIN_SAVINGS_PERCENT = 10;
|
|
8
|
+
export const MAX_DISCOUNT_QUERY_SCAN_PAGES = 5;
|
|
9
|
+
const UnknownStringRecordSchema = Schema.Record({ key: Schema.String, value: Schema.Unknown });
|
|
10
|
+
const NonEmptyTrimmedStringSchema = Schema.String.pipe(Schema.trimmed(), Schema.minLength(1));
|
|
11
|
+
const DiscountPageSizeSchema = Schema.Number.pipe(Schema.finite(), Schema.int(), Schema.greaterThanOrEqualTo(MIN_DISCOUNT_PAGE_SIZE), Schema.lessThanOrEqualTo(MAX_DISCOUNT_PAGE_SIZE));
|
|
12
|
+
const NonNegativeNumberSchema = Schema.Number.pipe(Schema.finite(), Schema.nonNegative());
|
|
13
|
+
export const DiscountSortSchema = Schema.Literal("best-percent", "best-amount", "price-asc");
|
|
14
|
+
export const DiscountedProductsInputSchema = Schema.Struct({
|
|
15
|
+
categoryId: Schema.optionalWith(NonEmptyTrimmedStringSchema, { exact: true }),
|
|
16
|
+
minSavingsAmount: Schema.optionalWith(NonNegativeNumberSchema, { exact: true }),
|
|
17
|
+
minSavingsPercent: Schema.optionalWith(NonNegativeNumberSchema, { exact: true }),
|
|
18
|
+
pageSize: Schema.optionalWith(DiscountPageSizeSchema, { default: () => DEFAULT_DISCOUNT_PAGE_SIZE }),
|
|
19
|
+
pageToken: Schema.optionalWith(NonEmptyTrimmedStringSchema, { exact: true }),
|
|
20
|
+
query: Schema.optionalWith(NonEmptyTrimmedStringSchema, { exact: true }),
|
|
21
|
+
retailerCategoryId: Schema.optionalWith(NonEmptyTrimmedStringSchema, { exact: true }),
|
|
22
|
+
sort: Schema.optionalWith(DiscountSortSchema, { exact: true })
|
|
23
|
+
});
|
|
24
|
+
export const RawPromotionMetadataSchema = Schema.Struct({
|
|
25
|
+
description: Schema.optionalWith(Schema.String, { exact: true }),
|
|
26
|
+
id: Schema.optionalWith(Schema.String, { exact: true }),
|
|
27
|
+
label: Schema.optionalWith(Schema.String, { exact: true }),
|
|
28
|
+
name: Schema.optionalWith(Schema.String, { exact: true }),
|
|
29
|
+
promotionId: Schema.optionalWith(Schema.String, { exact: true }),
|
|
30
|
+
type: Schema.optionalWith(Schema.String, { exact: true })
|
|
31
|
+
}).pipe(Schema.extend(UnknownStringRecordSchema));
|
|
32
|
+
export const RawPromotionProductSchema = Schema.Struct({
|
|
33
|
+
available: Schema.Boolean,
|
|
34
|
+
brand: Schema.optionalWith(Schema.String, { exact: true }),
|
|
35
|
+
maxQuantityReached: Schema.Boolean,
|
|
36
|
+
name: Schema.String,
|
|
37
|
+
packSizeDescription: Schema.optionalWith(Schema.String, { exact: true }),
|
|
38
|
+
price: MoneySchema,
|
|
39
|
+
productId: Schema.String,
|
|
40
|
+
promoPrice: Schema.optionalWith(MoneySchema, { exact: true }),
|
|
41
|
+
promoUnitPrice: Schema.optionalWith(UnitPriceSchema, { exact: true }),
|
|
42
|
+
promotions: Schema.optionalWith(Schema.Array(RawPromotionMetadataSchema), { exact: true }),
|
|
43
|
+
quantityInBasket: Schema.Number,
|
|
44
|
+
retailerProductId: Schema.String,
|
|
45
|
+
unitPrice: Schema.optionalWith(UnitPriceSchema, { exact: true })
|
|
46
|
+
}).pipe(Schema.extend(UnknownStringRecordSchema));
|
|
47
|
+
export const RawPromotionProductGroupSchema = Schema.Struct({
|
|
48
|
+
decoratedProducts: Schema.optionalWith(Schema.Array(RawPromotionProductSchema), { exact: true }),
|
|
49
|
+
name: Schema.optionalWith(Schema.String, { exact: true }),
|
|
50
|
+
products: Schema.optionalWith(Schema.Array(RawPromotionProductSchema), { exact: true }),
|
|
51
|
+
type: Schema.String
|
|
52
|
+
}).pipe(Schema.extend(UnknownStringRecordSchema));
|
|
53
|
+
const NonNegativeIntegerSchema = Schema.Number.pipe(Schema.finite(), Schema.int(), Schema.nonNegative());
|
|
54
|
+
export const PromotionProductsResponseSchema = Schema.Struct({
|
|
55
|
+
nextPageToken: Schema.optionalWith(Schema.String, { exact: true }),
|
|
56
|
+
productGroups: Schema.Array(RawPromotionProductGroupSchema),
|
|
57
|
+
totalProducts: Schema.optionalWith(NonNegativeIntegerSchema, { exact: true })
|
|
58
|
+
}).pipe(Schema.extend(UnknownStringRecordSchema));
|
|
59
|
+
//# sourceMappingURL=discount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount.js","sourceRoot":"","sources":["../../../../src/domain/schemas/discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAA;AACxC,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAA;AAC5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;AAC7C,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAA;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAA;AAE9C,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;AAE9F,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACpD,MAAM,CAAC,OAAO,EAAE,EAChB,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CACpB,CAAA;AAED,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAC/C,MAAM,CAAC,MAAM,EAAE,EAC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B,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAClE,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC;IAC3D,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;CAC9E,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,CAAA"}
|
|
@@ -4,7 +4,9 @@ export * from "./category-page.js";
|
|
|
4
4
|
export * from "./category.js";
|
|
5
5
|
export * from "./checkout-summary.js";
|
|
6
6
|
export * from "./delivery-destination.js";
|
|
7
|
+
export * from "./discount.js";
|
|
7
8
|
export * from "./money.js";
|
|
9
|
+
export * from "./order-details.js";
|
|
8
10
|
export * from "./order-history.js";
|
|
9
11
|
export * from "./product.js";
|
|
10
12
|
export * from "./proposition.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
@@ -4,7 +4,9 @@ export * from "./category-page.js";
|
|
|
4
4
|
export * from "./category.js";
|
|
5
5
|
export * from "./checkout-summary.js";
|
|
6
6
|
export * from "./delivery-destination.js";
|
|
7
|
+
export * from "./discount.js";
|
|
7
8
|
export * from "./money.js";
|
|
9
|
+
export * from "./order-details.js";
|
|
8
10
|
export * from "./order-history.js";
|
|
9
11
|
export * from "./product.js";
|
|
10
12
|
export * from "./proposition.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|