@gigapay-dev/contracts 3.2.0 → 3.4.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/build/domains/orders/commands.d.ts +15 -4
- package/build/domains/orders/commands.d.ts.map +1 -1
- package/build/domains/orders/dtos.d.ts +7 -2
- package/build/domains/orders/dtos.d.ts.map +1 -1
- package/build/domains/orders/events.d.ts +1 -0
- package/build/domains/orders/events.d.ts.map +1 -1
- package/build/domains/orders/index.d.ts +25 -8
- package/build/domains/orders/index.d.ts.map +1 -1
- package/build/domains/orders/queries.d.ts +36 -12
- package/build/domains/orders/queries.d.ts.map +1 -1
- package/build/domains/products/commands.d.ts +86 -0
- package/build/domains/products/commands.d.ts.map +1 -1
- package/build/domains/products/commands.js +29 -11
- package/build/domains/products/commands.js.map +1 -1
- package/build/domains/products/dtos.d.ts +3 -0
- package/build/domains/products/dtos.d.ts.map +1 -1
- package/build/domains/products/index.d.ts +29 -0
- package/build/domains/products/index.d.ts.map +1 -1
- package/build/domains/products/queries.d.ts +14 -0
- package/build/domains/products/queries.d.ts.map +1 -1
- package/build/domains/stats/index.d.ts +15 -0
- package/build/domains/stats/index.d.ts.map +1 -1
- package/build/index.d.ts +59 -8
- package/build/index.d.ts.map +1 -1
- package/build/shared/money.d.ts +3 -2
- package/build/shared/money.d.ts.map +1 -1
- package/build/shared/money.js +4 -2
- package/build/shared/money.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,27 +12,29 @@ export declare const GetOrderByIdEndpoint: {
|
|
|
12
12
|
USD: "USD";
|
|
13
13
|
RUB: "RUB";
|
|
14
14
|
UAH: "UAH";
|
|
15
|
+
KZT: "KZT";
|
|
15
16
|
}>;
|
|
16
17
|
subtotal: z.ZodObject<{
|
|
17
18
|
usd: z.ZodString;
|
|
18
19
|
rub: z.ZodString;
|
|
19
20
|
uah: z.ZodString;
|
|
21
|
+
kzt: z.ZodString;
|
|
20
22
|
}, z.core.$strip>;
|
|
21
23
|
discount: z.ZodObject<{
|
|
22
24
|
usd: z.ZodString;
|
|
23
25
|
rub: z.ZodString;
|
|
24
26
|
uah: z.ZodString;
|
|
27
|
+
kzt: z.ZodString;
|
|
25
28
|
}, z.core.$strip>;
|
|
26
29
|
total: z.ZodObject<{
|
|
27
30
|
usd: z.ZodString;
|
|
28
31
|
rub: z.ZodString;
|
|
29
32
|
uah: z.ZodString;
|
|
33
|
+
kzt: z.ZodString;
|
|
30
34
|
}, z.core.$strip>;
|
|
31
35
|
exchangeRateSnapshot: z.ZodObject<{
|
|
32
36
|
source: z.ZodEnum<{
|
|
33
37
|
dessly: "dessly";
|
|
34
|
-
cbr: "cbr";
|
|
35
|
-
nbu: "nbu";
|
|
36
38
|
cache: "cache";
|
|
37
39
|
fallback: "fallback";
|
|
38
40
|
mixed: "mixed";
|
|
@@ -41,6 +43,7 @@ export declare const GetOrderByIdEndpoint: {
|
|
|
41
43
|
rates: z.ZodObject<{
|
|
42
44
|
usdRub: z.ZodString;
|
|
43
45
|
usdUah: z.ZodString;
|
|
46
|
+
usdKzt: z.ZodString;
|
|
44
47
|
}, z.core.$strip>;
|
|
45
48
|
}, z.core.$strip>;
|
|
46
49
|
status: z.ZodEnum<{
|
|
@@ -62,6 +65,7 @@ export declare const GetOrderByIdEndpoint: {
|
|
|
62
65
|
usd: z.ZodString;
|
|
63
66
|
rub: z.ZodString;
|
|
64
67
|
uah: z.ZodString;
|
|
68
|
+
kzt: z.ZodString;
|
|
65
69
|
}, z.core.$strip>;
|
|
66
70
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
67
71
|
status: z.ZodEnum<{
|
|
@@ -91,27 +95,29 @@ export declare const ListOrdersForUserEndpoint: {
|
|
|
91
95
|
USD: "USD";
|
|
92
96
|
RUB: "RUB";
|
|
93
97
|
UAH: "UAH";
|
|
98
|
+
KZT: "KZT";
|
|
94
99
|
}>;
|
|
95
100
|
subtotal: z.ZodObject<{
|
|
96
101
|
usd: z.ZodString;
|
|
97
102
|
rub: z.ZodString;
|
|
98
103
|
uah: z.ZodString;
|
|
104
|
+
kzt: z.ZodString;
|
|
99
105
|
}, z.core.$strip>;
|
|
100
106
|
discount: z.ZodObject<{
|
|
101
107
|
usd: z.ZodString;
|
|
102
108
|
rub: z.ZodString;
|
|
103
109
|
uah: z.ZodString;
|
|
110
|
+
kzt: z.ZodString;
|
|
104
111
|
}, z.core.$strip>;
|
|
105
112
|
total: z.ZodObject<{
|
|
106
113
|
usd: z.ZodString;
|
|
107
114
|
rub: z.ZodString;
|
|
108
115
|
uah: z.ZodString;
|
|
116
|
+
kzt: z.ZodString;
|
|
109
117
|
}, z.core.$strip>;
|
|
110
118
|
exchangeRateSnapshot: z.ZodObject<{
|
|
111
119
|
source: z.ZodEnum<{
|
|
112
120
|
dessly: "dessly";
|
|
113
|
-
cbr: "cbr";
|
|
114
|
-
nbu: "nbu";
|
|
115
121
|
cache: "cache";
|
|
116
122
|
fallback: "fallback";
|
|
117
123
|
mixed: "mixed";
|
|
@@ -120,6 +126,7 @@ export declare const ListOrdersForUserEndpoint: {
|
|
|
120
126
|
rates: z.ZodObject<{
|
|
121
127
|
usdRub: z.ZodString;
|
|
122
128
|
usdUah: z.ZodString;
|
|
129
|
+
usdKzt: z.ZodString;
|
|
123
130
|
}, z.core.$strip>;
|
|
124
131
|
}, z.core.$strip>;
|
|
125
132
|
status: z.ZodEnum<{
|
|
@@ -141,6 +148,7 @@ export declare const ListOrdersForUserEndpoint: {
|
|
|
141
148
|
usd: z.ZodString;
|
|
142
149
|
rub: z.ZodString;
|
|
143
150
|
uah: z.ZodString;
|
|
151
|
+
kzt: z.ZodString;
|
|
144
152
|
}, z.core.$strip>;
|
|
145
153
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
146
154
|
status: z.ZodEnum<{
|
|
@@ -202,27 +210,29 @@ export declare const ListOrdersAdminEndpoint: {
|
|
|
202
210
|
USD: "USD";
|
|
203
211
|
RUB: "RUB";
|
|
204
212
|
UAH: "UAH";
|
|
213
|
+
KZT: "KZT";
|
|
205
214
|
}>;
|
|
206
215
|
subtotal: z.ZodObject<{
|
|
207
216
|
usd: z.ZodString;
|
|
208
217
|
rub: z.ZodString;
|
|
209
218
|
uah: z.ZodString;
|
|
219
|
+
kzt: z.ZodString;
|
|
210
220
|
}, z.core.$strip>;
|
|
211
221
|
discount: z.ZodObject<{
|
|
212
222
|
usd: z.ZodString;
|
|
213
223
|
rub: z.ZodString;
|
|
214
224
|
uah: z.ZodString;
|
|
225
|
+
kzt: z.ZodString;
|
|
215
226
|
}, z.core.$strip>;
|
|
216
227
|
total: z.ZodObject<{
|
|
217
228
|
usd: z.ZodString;
|
|
218
229
|
rub: z.ZodString;
|
|
219
230
|
uah: z.ZodString;
|
|
231
|
+
kzt: z.ZodString;
|
|
220
232
|
}, z.core.$strip>;
|
|
221
233
|
exchangeRateSnapshot: z.ZodObject<{
|
|
222
234
|
source: z.ZodEnum<{
|
|
223
235
|
dessly: "dessly";
|
|
224
|
-
cbr: "cbr";
|
|
225
|
-
nbu: "nbu";
|
|
226
236
|
cache: "cache";
|
|
227
237
|
fallback: "fallback";
|
|
228
238
|
mixed: "mixed";
|
|
@@ -231,6 +241,7 @@ export declare const ListOrdersAdminEndpoint: {
|
|
|
231
241
|
rates: z.ZodObject<{
|
|
232
242
|
usdRub: z.ZodString;
|
|
233
243
|
usdUah: z.ZodString;
|
|
244
|
+
usdKzt: z.ZodString;
|
|
234
245
|
}, z.core.$strip>;
|
|
235
246
|
}, z.core.$strip>;
|
|
236
247
|
status: z.ZodEnum<{
|
|
@@ -252,6 +263,7 @@ export declare const ListOrdersAdminEndpoint: {
|
|
|
252
263
|
usd: z.ZodString;
|
|
253
264
|
rub: z.ZodString;
|
|
254
265
|
uah: z.ZodString;
|
|
266
|
+
kzt: z.ZodString;
|
|
255
267
|
}, z.core.$strip>;
|
|
256
268
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
257
269
|
status: z.ZodEnum<{
|
|
@@ -285,27 +297,29 @@ export declare const OrderQueries: {
|
|
|
285
297
|
USD: "USD";
|
|
286
298
|
RUB: "RUB";
|
|
287
299
|
UAH: "UAH";
|
|
300
|
+
KZT: "KZT";
|
|
288
301
|
}>;
|
|
289
302
|
subtotal: z.ZodObject<{
|
|
290
303
|
usd: z.ZodString;
|
|
291
304
|
rub: z.ZodString;
|
|
292
305
|
uah: z.ZodString;
|
|
306
|
+
kzt: z.ZodString;
|
|
293
307
|
}, z.core.$strip>;
|
|
294
308
|
discount: z.ZodObject<{
|
|
295
309
|
usd: z.ZodString;
|
|
296
310
|
rub: z.ZodString;
|
|
297
311
|
uah: z.ZodString;
|
|
312
|
+
kzt: z.ZodString;
|
|
298
313
|
}, z.core.$strip>;
|
|
299
314
|
total: z.ZodObject<{
|
|
300
315
|
usd: z.ZodString;
|
|
301
316
|
rub: z.ZodString;
|
|
302
317
|
uah: z.ZodString;
|
|
318
|
+
kzt: z.ZodString;
|
|
303
319
|
}, z.core.$strip>;
|
|
304
320
|
exchangeRateSnapshot: z.ZodObject<{
|
|
305
321
|
source: z.ZodEnum<{
|
|
306
322
|
dessly: "dessly";
|
|
307
|
-
cbr: "cbr";
|
|
308
|
-
nbu: "nbu";
|
|
309
323
|
cache: "cache";
|
|
310
324
|
fallback: "fallback";
|
|
311
325
|
mixed: "mixed";
|
|
@@ -314,6 +328,7 @@ export declare const OrderQueries: {
|
|
|
314
328
|
rates: z.ZodObject<{
|
|
315
329
|
usdRub: z.ZodString;
|
|
316
330
|
usdUah: z.ZodString;
|
|
331
|
+
usdKzt: z.ZodString;
|
|
317
332
|
}, z.core.$strip>;
|
|
318
333
|
}, z.core.$strip>;
|
|
319
334
|
status: z.ZodEnum<{
|
|
@@ -335,6 +350,7 @@ export declare const OrderQueries: {
|
|
|
335
350
|
usd: z.ZodString;
|
|
336
351
|
rub: z.ZodString;
|
|
337
352
|
uah: z.ZodString;
|
|
353
|
+
kzt: z.ZodString;
|
|
338
354
|
}, z.core.$strip>;
|
|
339
355
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
340
356
|
status: z.ZodEnum<{
|
|
@@ -364,27 +380,29 @@ export declare const OrderQueries: {
|
|
|
364
380
|
USD: "USD";
|
|
365
381
|
RUB: "RUB";
|
|
366
382
|
UAH: "UAH";
|
|
383
|
+
KZT: "KZT";
|
|
367
384
|
}>;
|
|
368
385
|
subtotal: z.ZodObject<{
|
|
369
386
|
usd: z.ZodString;
|
|
370
387
|
rub: z.ZodString;
|
|
371
388
|
uah: z.ZodString;
|
|
389
|
+
kzt: z.ZodString;
|
|
372
390
|
}, z.core.$strip>;
|
|
373
391
|
discount: z.ZodObject<{
|
|
374
392
|
usd: z.ZodString;
|
|
375
393
|
rub: z.ZodString;
|
|
376
394
|
uah: z.ZodString;
|
|
395
|
+
kzt: z.ZodString;
|
|
377
396
|
}, z.core.$strip>;
|
|
378
397
|
total: z.ZodObject<{
|
|
379
398
|
usd: z.ZodString;
|
|
380
399
|
rub: z.ZodString;
|
|
381
400
|
uah: z.ZodString;
|
|
401
|
+
kzt: z.ZodString;
|
|
382
402
|
}, z.core.$strip>;
|
|
383
403
|
exchangeRateSnapshot: z.ZodObject<{
|
|
384
404
|
source: z.ZodEnum<{
|
|
385
405
|
dessly: "dessly";
|
|
386
|
-
cbr: "cbr";
|
|
387
|
-
nbu: "nbu";
|
|
388
406
|
cache: "cache";
|
|
389
407
|
fallback: "fallback";
|
|
390
408
|
mixed: "mixed";
|
|
@@ -393,6 +411,7 @@ export declare const OrderQueries: {
|
|
|
393
411
|
rates: z.ZodObject<{
|
|
394
412
|
usdRub: z.ZodString;
|
|
395
413
|
usdUah: z.ZodString;
|
|
414
|
+
usdKzt: z.ZodString;
|
|
396
415
|
}, z.core.$strip>;
|
|
397
416
|
}, z.core.$strip>;
|
|
398
417
|
status: z.ZodEnum<{
|
|
@@ -414,6 +433,7 @@ export declare const OrderQueries: {
|
|
|
414
433
|
usd: z.ZodString;
|
|
415
434
|
rub: z.ZodString;
|
|
416
435
|
uah: z.ZodString;
|
|
436
|
+
kzt: z.ZodString;
|
|
417
437
|
}, z.core.$strip>;
|
|
418
438
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
419
439
|
status: z.ZodEnum<{
|
|
@@ -459,27 +479,29 @@ export declare const OrderQueries: {
|
|
|
459
479
|
USD: "USD";
|
|
460
480
|
RUB: "RUB";
|
|
461
481
|
UAH: "UAH";
|
|
482
|
+
KZT: "KZT";
|
|
462
483
|
}>;
|
|
463
484
|
subtotal: z.ZodObject<{
|
|
464
485
|
usd: z.ZodString;
|
|
465
486
|
rub: z.ZodString;
|
|
466
487
|
uah: z.ZodString;
|
|
488
|
+
kzt: z.ZodString;
|
|
467
489
|
}, z.core.$strip>;
|
|
468
490
|
discount: z.ZodObject<{
|
|
469
491
|
usd: z.ZodString;
|
|
470
492
|
rub: z.ZodString;
|
|
471
493
|
uah: z.ZodString;
|
|
494
|
+
kzt: z.ZodString;
|
|
472
495
|
}, z.core.$strip>;
|
|
473
496
|
total: z.ZodObject<{
|
|
474
497
|
usd: z.ZodString;
|
|
475
498
|
rub: z.ZodString;
|
|
476
499
|
uah: z.ZodString;
|
|
500
|
+
kzt: z.ZodString;
|
|
477
501
|
}, z.core.$strip>;
|
|
478
502
|
exchangeRateSnapshot: z.ZodObject<{
|
|
479
503
|
source: z.ZodEnum<{
|
|
480
504
|
dessly: "dessly";
|
|
481
|
-
cbr: "cbr";
|
|
482
|
-
nbu: "nbu";
|
|
483
505
|
cache: "cache";
|
|
484
506
|
fallback: "fallback";
|
|
485
507
|
mixed: "mixed";
|
|
@@ -488,6 +510,7 @@ export declare const OrderQueries: {
|
|
|
488
510
|
rates: z.ZodObject<{
|
|
489
511
|
usdRub: z.ZodString;
|
|
490
512
|
usdUah: z.ZodString;
|
|
513
|
+
usdKzt: z.ZodString;
|
|
491
514
|
}, z.core.$strip>;
|
|
492
515
|
}, z.core.$strip>;
|
|
493
516
|
status: z.ZodEnum<{
|
|
@@ -509,6 +532,7 @@ export declare const OrderQueries: {
|
|
|
509
532
|
usd: z.ZodString;
|
|
510
533
|
rub: z.ZodString;
|
|
511
534
|
uah: z.ZodString;
|
|
535
|
+
kzt: z.ZodString;
|
|
512
536
|
}, z.core.$strip>;
|
|
513
537
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
514
538
|
status: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMI,CAAC;AAEtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMD,CAAC;AAEtC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAIrC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOC,CAAC;AAEtC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC"}
|
|
@@ -57,8 +57,48 @@ export declare const SetVariantMarginRequestSchema: z.ZodObject<{
|
|
|
57
57
|
marginPct: z.ZodString;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export type SetVariantMarginRequest = z.infer<typeof SetVariantMarginRequestSchema>;
|
|
60
|
+
export declare const ParseSteamGameModeSchema: z.ZodEnum<{
|
|
61
|
+
singleplayer: "singleplayer";
|
|
62
|
+
multiplayer: "multiplayer";
|
|
63
|
+
"co-op": "co-op";
|
|
64
|
+
}>;
|
|
65
|
+
export type ParseSteamGameMode = z.infer<typeof ParseSteamGameModeSchema>;
|
|
66
|
+
export declare const ParseSteamEditionSchema: z.ZodObject<{
|
|
67
|
+
edition: z.ZodString;
|
|
68
|
+
packageId: z.ZodNumber;
|
|
69
|
+
regions: z.ZodArray<z.ZodObject<{
|
|
70
|
+
region: z.ZodString;
|
|
71
|
+
price: z.ZodString;
|
|
72
|
+
priceOriginal: z.ZodString;
|
|
73
|
+
discount: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type ParseSteamEdition = z.infer<typeof ParseSteamEditionSchema>;
|
|
60
77
|
export declare const ParseSteamResponseSchema: z.ZodObject<{
|
|
61
78
|
appId: z.ZodNumber;
|
|
79
|
+
slug: z.ZodString;
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
originalTitle: z.ZodNullable<z.ZodString>;
|
|
82
|
+
type: z.ZodEnum<{
|
|
83
|
+
GAME_KEY: "GAME_KEY";
|
|
84
|
+
GAME_GIFT: "GAME_GIFT";
|
|
85
|
+
}>;
|
|
86
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
87
|
+
catalogImageUrl: z.ZodNullable<z.ZodString>;
|
|
88
|
+
releaseDate: z.ZodNullable<z.ZodString>;
|
|
89
|
+
developer: z.ZodNullable<z.ZodString>;
|
|
90
|
+
publisher: z.ZodNullable<z.ZodString>;
|
|
91
|
+
shortDescription: z.ZodNullable<z.ZodString>;
|
|
92
|
+
description: z.ZodNullable<z.ZodString>;
|
|
93
|
+
metaTitle: z.ZodNullable<z.ZodString>;
|
|
94
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
95
|
+
genres: z.ZodArray<z.ZodString>;
|
|
96
|
+
gameModes: z.ZodArray<z.ZodEnum<{
|
|
97
|
+
singleplayer: "singleplayer";
|
|
98
|
+
multiplayer: "multiplayer";
|
|
99
|
+
"co-op": "co-op";
|
|
100
|
+
}>>;
|
|
101
|
+
regions: z.ZodArray<z.ZodString>;
|
|
62
102
|
editions: z.ZodArray<z.ZodObject<{
|
|
63
103
|
edition: z.ZodString;
|
|
64
104
|
packageId: z.ZodNumber;
|
|
@@ -172,6 +212,29 @@ export declare const ParseSteamEndpoint: {
|
|
|
172
212
|
}, z.core.$strip>;
|
|
173
213
|
readonly response: z.ZodObject<{
|
|
174
214
|
appId: z.ZodNumber;
|
|
215
|
+
slug: z.ZodString;
|
|
216
|
+
title: z.ZodString;
|
|
217
|
+
originalTitle: z.ZodNullable<z.ZodString>;
|
|
218
|
+
type: z.ZodEnum<{
|
|
219
|
+
GAME_KEY: "GAME_KEY";
|
|
220
|
+
GAME_GIFT: "GAME_GIFT";
|
|
221
|
+
}>;
|
|
222
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
223
|
+
catalogImageUrl: z.ZodNullable<z.ZodString>;
|
|
224
|
+
releaseDate: z.ZodNullable<z.ZodString>;
|
|
225
|
+
developer: z.ZodNullable<z.ZodString>;
|
|
226
|
+
publisher: z.ZodNullable<z.ZodString>;
|
|
227
|
+
shortDescription: z.ZodNullable<z.ZodString>;
|
|
228
|
+
description: z.ZodNullable<z.ZodString>;
|
|
229
|
+
metaTitle: z.ZodNullable<z.ZodString>;
|
|
230
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
231
|
+
genres: z.ZodArray<z.ZodString>;
|
|
232
|
+
gameModes: z.ZodArray<z.ZodEnum<{
|
|
233
|
+
singleplayer: "singleplayer";
|
|
234
|
+
multiplayer: "multiplayer";
|
|
235
|
+
"co-op": "co-op";
|
|
236
|
+
}>>;
|
|
237
|
+
regions: z.ZodArray<z.ZodString>;
|
|
175
238
|
editions: z.ZodArray<z.ZodObject<{
|
|
176
239
|
edition: z.ZodString;
|
|
177
240
|
packageId: z.ZodNumber;
|
|
@@ -322,6 +385,29 @@ export declare const ProductCommands: {
|
|
|
322
385
|
}, z.core.$strip>;
|
|
323
386
|
readonly response: z.ZodObject<{
|
|
324
387
|
appId: z.ZodNumber;
|
|
388
|
+
slug: z.ZodString;
|
|
389
|
+
title: z.ZodString;
|
|
390
|
+
originalTitle: z.ZodNullable<z.ZodString>;
|
|
391
|
+
type: z.ZodEnum<{
|
|
392
|
+
GAME_KEY: "GAME_KEY";
|
|
393
|
+
GAME_GIFT: "GAME_GIFT";
|
|
394
|
+
}>;
|
|
395
|
+
coverImageUrl: z.ZodNullable<z.ZodString>;
|
|
396
|
+
catalogImageUrl: z.ZodNullable<z.ZodString>;
|
|
397
|
+
releaseDate: z.ZodNullable<z.ZodString>;
|
|
398
|
+
developer: z.ZodNullable<z.ZodString>;
|
|
399
|
+
publisher: z.ZodNullable<z.ZodString>;
|
|
400
|
+
shortDescription: z.ZodNullable<z.ZodString>;
|
|
401
|
+
description: z.ZodNullable<z.ZodString>;
|
|
402
|
+
metaTitle: z.ZodNullable<z.ZodString>;
|
|
403
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
404
|
+
genres: z.ZodArray<z.ZodString>;
|
|
405
|
+
gameModes: z.ZodArray<z.ZodEnum<{
|
|
406
|
+
singleplayer: "singleplayer";
|
|
407
|
+
multiplayer: "multiplayer";
|
|
408
|
+
"co-op": "co-op";
|
|
409
|
+
}>>;
|
|
410
|
+
regions: z.ZodArray<z.ZodString>;
|
|
325
411
|
editions: z.ZodArray<z.ZodObject<{
|
|
326
412
|
edition: z.ZodString;
|
|
327
413
|
packageId: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/domains/products/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAYrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBAerC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,6BAA6B;;iBAIxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/domains/products/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAYrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBAerC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductCommands = exports.SetVariantMarginEndpoint = exports.ParseSteamEndpoint = exports.ImportKeysEndpoint = exports.CreateVariantEndpoint = exports.ArchiveProductEndpoint = exports.CreateProductEndpoint = exports.ParseSteamResponseSchema = exports.SetVariantMarginRequestSchema = exports.ImportKeysRequestSchema = exports.CreateVariantRequestSchema = exports.CreateProductRequestSchema = void 0;
|
|
3
|
+
exports.ProductCommands = exports.SetVariantMarginEndpoint = exports.ParseSteamEndpoint = exports.ImportKeysEndpoint = exports.CreateVariantEndpoint = exports.ArchiveProductEndpoint = exports.CreateProductEndpoint = exports.ParseSteamResponseSchema = exports.ParseSteamEditionSchema = exports.ParseSteamGameModeSchema = exports.SetVariantMarginRequestSchema = exports.ImportKeysRequestSchema = exports.CreateVariantRequestSchema = exports.CreateProductRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../../shared/common");
|
|
6
6
|
const money_1 = require("../../shared/money");
|
|
@@ -42,18 +42,36 @@ exports.SetVariantMarginRequestSchema = zod_1.z.object({
|
|
|
42
42
|
.string()
|
|
43
43
|
.regex(/^\d+(\.\d+)?$/, "expected decimal string without sign, e.g. '10' or '12.5'"),
|
|
44
44
|
});
|
|
45
|
+
exports.ParseSteamGameModeSchema = zod_1.z.enum(["singleplayer", "multiplayer", "co-op"]);
|
|
46
|
+
exports.ParseSteamEditionSchema = zod_1.z.object({
|
|
47
|
+
edition: zod_1.z.string(),
|
|
48
|
+
packageId: zod_1.z.number().int().positive(),
|
|
49
|
+
regions: zod_1.z.array(zod_1.z.object({
|
|
50
|
+
region: zod_1.z.string(),
|
|
51
|
+
price: zod_1.z.string(),
|
|
52
|
+
priceOriginal: zod_1.z.string(),
|
|
53
|
+
discount: zod_1.z.string(),
|
|
54
|
+
})),
|
|
55
|
+
});
|
|
45
56
|
exports.ParseSteamResponseSchema = zod_1.z.object({
|
|
46
57
|
appId: zod_1.z.number().int().positive(),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
slug: zod_1.z.string(),
|
|
59
|
+
title: zod_1.z.string(),
|
|
60
|
+
originalTitle: zod_1.z.string().nullable(),
|
|
61
|
+
type: zod_1.z.enum(["GAME_KEY", "GAME_GIFT"]),
|
|
62
|
+
coverImageUrl: zod_1.z.string().nullable(),
|
|
63
|
+
catalogImageUrl: zod_1.z.string().nullable(),
|
|
64
|
+
releaseDate: zod_1.z.string().nullable(),
|
|
65
|
+
developer: zod_1.z.string().nullable(),
|
|
66
|
+
publisher: zod_1.z.string().nullable(),
|
|
67
|
+
shortDescription: zod_1.z.string().nullable(),
|
|
68
|
+
description: zod_1.z.string().nullable(),
|
|
69
|
+
metaTitle: zod_1.z.string().nullable(),
|
|
70
|
+
metaDescription: zod_1.z.string().nullable(),
|
|
71
|
+
genres: zod_1.z.array(zod_1.z.string()),
|
|
72
|
+
gameModes: zod_1.z.array(exports.ParseSteamGameModeSchema),
|
|
73
|
+
regions: zod_1.z.array(zod_1.z.string()),
|
|
74
|
+
editions: zod_1.z.array(exports.ParseSteamEditionSchema),
|
|
57
75
|
});
|
|
58
76
|
exports.CreateProductEndpoint = {
|
|
59
77
|
method: "POST",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/domains/products/commands.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,gDAAoD;AACpD,8CAAuD;AACvD,iCAAwF;AAE3E,QAAA,0BAA0B,GAAG,OAAC,CAAC,MA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O,EAAE,qCAA6B;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,yBAAiB,EAAE,CAAC;IAC3G,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;CACiB,CAAC;AAEzB,QAAA,eAAe,GAAG;IAC9B,MAAM,EAAE,6BAAqB;IAC7B,OAAO,EAAE,8BAAsB;IAC/B,aAAa,EAAE,6BAAqB;IACpC,UAAU,EAAE,0BAAkB;IAC9B,gBAAgB,EAAE,gCAAwB;IAC1C,UAAU,EAAE,0BAAkB;CACrB,CAAC"}
|
|
@@ -41,6 +41,7 @@ export declare const ProductVariantSchema: z.ZodObject<{
|
|
|
41
41
|
usd: z.ZodString;
|
|
42
42
|
rub: z.ZodString;
|
|
43
43
|
uah: z.ZodString;
|
|
44
|
+
kzt: z.ZodString;
|
|
44
45
|
}, z.core.$strip>;
|
|
45
46
|
deliveryType: z.ZodEnum<{
|
|
46
47
|
AUTOMATIC: "AUTOMATIC";
|
|
@@ -84,6 +85,7 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
84
85
|
usd: z.ZodString;
|
|
85
86
|
rub: z.ZodString;
|
|
86
87
|
uah: z.ZodString;
|
|
88
|
+
kzt: z.ZodString;
|
|
87
89
|
}, z.core.$strip>;
|
|
88
90
|
variants: z.ZodArray<z.ZodObject<{
|
|
89
91
|
id: z.ZodNumber;
|
|
@@ -94,6 +96,7 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
94
96
|
usd: z.ZodString;
|
|
95
97
|
rub: z.ZodString;
|
|
96
98
|
uah: z.ZodString;
|
|
99
|
+
kzt: z.ZodString;
|
|
97
100
|
}, z.core.$strip>;
|
|
98
101
|
deliveryType: z.ZodEnum<{
|
|
99
102
|
AUTOMATIC: "AUTOMATIC";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/domains/products/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAsB,MAAM,oBAAoB,CAAC;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;EAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;EAA0D,CAAC;AAC3F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB;;;;EAAyC,CAAC;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/domains/products/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAsB,MAAM,oBAAoB,CAAC;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;EAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;EAA0D,CAAC;AAC3F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB;;;;EAAyC,CAAC;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;iBAS/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -120,6 +120,29 @@ export declare const ProductEndpoints: {
|
|
|
120
120
|
}, import("zod/v4/core").$strip>;
|
|
121
121
|
readonly response: import("zod").ZodObject<{
|
|
122
122
|
appId: import("zod").ZodNumber;
|
|
123
|
+
slug: import("zod").ZodString;
|
|
124
|
+
title: import("zod").ZodString;
|
|
125
|
+
originalTitle: import("zod").ZodNullable<import("zod").ZodString>;
|
|
126
|
+
type: import("zod").ZodEnum<{
|
|
127
|
+
GAME_KEY: "GAME_KEY";
|
|
128
|
+
GAME_GIFT: "GAME_GIFT";
|
|
129
|
+
}>;
|
|
130
|
+
coverImageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
131
|
+
catalogImageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
132
|
+
releaseDate: import("zod").ZodNullable<import("zod").ZodString>;
|
|
133
|
+
developer: import("zod").ZodNullable<import("zod").ZodString>;
|
|
134
|
+
publisher: import("zod").ZodNullable<import("zod").ZodString>;
|
|
135
|
+
shortDescription: import("zod").ZodNullable<import("zod").ZodString>;
|
|
136
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
137
|
+
metaTitle: import("zod").ZodNullable<import("zod").ZodString>;
|
|
138
|
+
metaDescription: import("zod").ZodNullable<import("zod").ZodString>;
|
|
139
|
+
genres: import("zod").ZodArray<import("zod").ZodString>;
|
|
140
|
+
gameModes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
141
|
+
singleplayer: "singleplayer";
|
|
142
|
+
multiplayer: "multiplayer";
|
|
143
|
+
"co-op": "co-op";
|
|
144
|
+
}>>;
|
|
145
|
+
regions: import("zod").ZodArray<import("zod").ZodString>;
|
|
123
146
|
editions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
124
147
|
edition: import("zod").ZodString;
|
|
125
148
|
packageId: import("zod").ZodNumber;
|
|
@@ -148,6 +171,7 @@ export declare const ProductEndpoints: {
|
|
|
148
171
|
USD: "USD";
|
|
149
172
|
RUB: "RUB";
|
|
150
173
|
UAH: "UAH";
|
|
174
|
+
KZT: "KZT";
|
|
151
175
|
}>>;
|
|
152
176
|
}, import("zod/v4/core").$strip>;
|
|
153
177
|
readonly response: import("zod").ZodObject<{
|
|
@@ -178,6 +202,7 @@ export declare const ProductEndpoints: {
|
|
|
178
202
|
usd: import("zod").ZodString;
|
|
179
203
|
rub: import("zod").ZodString;
|
|
180
204
|
uah: import("zod").ZodString;
|
|
205
|
+
kzt: import("zod").ZodString;
|
|
181
206
|
}, import("zod/v4/core").$strip>;
|
|
182
207
|
variants: import("zod").ZodArray<import("zod").ZodObject<{
|
|
183
208
|
id: import("zod").ZodNumber;
|
|
@@ -188,6 +213,7 @@ export declare const ProductEndpoints: {
|
|
|
188
213
|
usd: import("zod").ZodString;
|
|
189
214
|
rub: import("zod").ZodString;
|
|
190
215
|
uah: import("zod").ZodString;
|
|
216
|
+
kzt: import("zod").ZodString;
|
|
191
217
|
}, import("zod/v4/core").$strip>;
|
|
192
218
|
deliveryType: import("zod").ZodEnum<{
|
|
193
219
|
AUTOMATIC: "AUTOMATIC";
|
|
@@ -220,6 +246,7 @@ export declare const ProductEndpoints: {
|
|
|
220
246
|
USD: "USD";
|
|
221
247
|
RUB: "RUB";
|
|
222
248
|
UAH: "UAH";
|
|
249
|
+
KZT: "KZT";
|
|
223
250
|
}>>;
|
|
224
251
|
}, import("zod/v4/core").$strip>;
|
|
225
252
|
readonly response: import("zod").ZodObject<{
|
|
@@ -249,6 +276,7 @@ export declare const ProductEndpoints: {
|
|
|
249
276
|
usd: import("zod").ZodString;
|
|
250
277
|
rub: import("zod").ZodString;
|
|
251
278
|
uah: import("zod").ZodString;
|
|
279
|
+
kzt: import("zod").ZodString;
|
|
252
280
|
}, import("zod/v4/core").$strip>;
|
|
253
281
|
variants: import("zod").ZodArray<import("zod").ZodObject<{
|
|
254
282
|
id: import("zod").ZodNumber;
|
|
@@ -259,6 +287,7 @@ export declare const ProductEndpoints: {
|
|
|
259
287
|
usd: import("zod").ZodString;
|
|
260
288
|
rub: import("zod").ZodString;
|
|
261
289
|
uah: import("zod").ZodString;
|
|
290
|
+
kzt: import("zod").ZodString;
|
|
262
291
|
}, import("zod/v4/core").$strip>;
|
|
263
292
|
deliveryType: import("zod").ZodEnum<{
|
|
264
293
|
AUTOMATIC: "AUTOMATIC";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|