@gigapay-dev/contracts 1.8.3 → 1.8.5

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 (82) hide show
  1. package/build/commands/api-response.d.ts +18 -0
  2. package/build/commands/auth/confirm.d.ts +11 -0
  3. package/build/commands/auth/endpoints.d.ts +114 -0
  4. package/build/commands/auth/index.d.ts +5 -0
  5. package/build/commands/auth/login.d.ts +20 -0
  6. package/build/commands/auth/profile.d.ts +18 -0
  7. package/build/commands/auth/register.d.ts +12 -0
  8. package/build/commands/auth/reset.d.ts +12 -0
  9. package/build/commands/consts.d.ts +1 -0
  10. package/build/commands/index.d.ts +13 -0
  11. package/build/commands/index.js +1 -0
  12. package/build/commands/orders/create.d.ts +95 -0
  13. package/build/commands/orders/endpoints.d.ts +726 -0
  14. package/build/commands/orders/enums.d.ts +7 -0
  15. package/build/commands/orders/index.d.ts +6 -0
  16. package/build/commands/orders/query.d.ts +103 -0
  17. package/build/commands/orders/read.d.ts +230 -0
  18. package/build/commands/orders/update.d.ts +23 -0
  19. package/build/commands/pagination.d.ts +12 -0
  20. package/build/commands/payment-methods/create.d.ts +45 -0
  21. package/build/commands/payment-methods/endpoints.d.ts +536 -0
  22. package/build/commands/payment-methods/index.d.ts +4 -0
  23. package/build/commands/payment-methods/read.d.ts +71 -0
  24. package/build/commands/payment-methods/update.d.ts +45 -0
  25. package/build/commands/products/create.d.ts +229 -0
  26. package/build/commands/products/create.js +122 -0
  27. package/build/commands/products/endpoints.d.ts +1881 -0
  28. package/build/commands/products/endpoints.js +99 -0
  29. package/build/commands/products/enums.d.ts +19 -0
  30. package/build/commands/products/enums.js +27 -0
  31. package/build/commands/products/index.d.ts +6 -0
  32. package/build/commands/{status → products}/index.js +4 -0
  33. package/build/commands/products/query.d.ts +79 -0
  34. package/build/commands/products/query.js +55 -0
  35. package/build/commands/products/read.d.ts +833 -0
  36. package/build/commands/products/read.js +176 -0
  37. package/build/commands/products/update.d.ts +78 -0
  38. package/build/commands/products/update.js +10 -0
  39. package/build/commands/promocode-activations/create.d.ts +18 -0
  40. package/build/commands/promocode-activations/index.d.ts +3 -0
  41. package/build/commands/promocode-activations/read.d.ts +21 -0
  42. package/build/commands/promocode-activations/update.d.ts +18 -0
  43. package/build/commands/promocodes/create.d.ts +39 -0
  44. package/build/commands/promocodes/endpoints.d.ts +353 -0
  45. package/build/commands/promocodes/enums.d.ts +5 -0
  46. package/build/commands/promocodes/index.d.ts +5 -0
  47. package/build/commands/promocodes/read.d.ts +45 -0
  48. package/build/commands/promocodes/update.d.ts +33 -0
  49. package/build/commands/refresh-sessions/create.d.ts +24 -0
  50. package/build/commands/refresh-sessions/enums.d.ts +3 -0
  51. package/build/commands/refresh-sessions/index.d.ts +4 -0
  52. package/build/commands/refresh-sessions/read.d.ts +27 -0
  53. package/build/commands/refresh-sessions/update.d.ts +24 -0
  54. package/build/commands/settings/endpoints.d.ts +108 -0
  55. package/build/commands/settings/index.d.ts +3 -0
  56. package/build/commands/settings/read.d.ts +18 -0
  57. package/build/commands/settings/update.d.ts +18 -0
  58. package/build/commands/stats/endpoints.d.ts +67 -0
  59. package/build/commands/stats/index.d.ts +3 -0
  60. package/build/commands/stats/query.d.ts +31 -0
  61. package/build/commands/stats/read.d.ts +30 -0
  62. package/build/commands/users/create.d.ts +42 -0
  63. package/build/commands/users/endpoints.d.ts +403 -0
  64. package/build/commands/users/enums.d.ts +6 -0
  65. package/build/commands/users/index.d.ts +6 -0
  66. package/build/commands/users/query.d.ts +52 -0
  67. package/build/commands/users/read.d.ts +60 -0
  68. package/build/commands/users/update.d.ts +42 -0
  69. package/build/index.d.ts +1 -0
  70. package/build/types.d.ts +8 -0
  71. package/commands/index.ts +2 -1
  72. package/commands/products/create.ts +134 -0
  73. package/commands/products/endpoints.ts +108 -0
  74. package/commands/products/enums.ts +33 -0
  75. package/commands/products/index.ts +6 -0
  76. package/commands/products/query.ts +52 -0
  77. package/commands/products/read.ts +205 -0
  78. package/commands/products/update.ts +11 -0
  79. package/package.json +3 -2
  80. package/tsconfig.json +1 -1
  81. package/build/commands/status/endpoints.js +0 -33
  82. package/build/commands/status/read.js +0 -12
@@ -0,0 +1,1881 @@
1
+ import z from "zod";
2
+ export declare const ProductEndpoints: {
3
+ catalog: {
4
+ method: "GET";
5
+ path: string;
6
+ request: z.ZodObject<{
7
+ category: z.ZodOptional<z.ZodString>;
8
+ type: z.ZodOptional<z.ZodString>;
9
+ genre: z.ZodOptional<z.ZodString>;
10
+ tag: z.ZodOptional<z.ZodString>;
11
+ region: z.ZodOptional<z.ZodString>;
12
+ platform: z.ZodOptional<z.ZodString>;
13
+ minPrice: z.ZodOptional<z.ZodNumber>;
14
+ maxPrice: z.ZodOptional<z.ZodNumber>;
15
+ hasMultiplayer: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
16
+ hasCoop: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
17
+ publisher: z.ZodOptional<z.ZodString>;
18
+ minRating: z.ZodOptional<z.ZodNumber>;
19
+ hasDiscount: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
20
+ search: z.ZodOptional<z.ZodString>;
21
+ sortBy: z.ZodDefault<z.ZodEnum<["price", "popularity", "rating", "releaseDate", "title"]>>;
22
+ sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
23
+ skip: z.ZodDefault<z.ZodNumber>;
24
+ take: z.ZodDefault<z.ZodNumber>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ take: number;
27
+ skip: number;
28
+ sortBy: "price" | "title" | "releaseDate" | "popularity" | "rating";
29
+ sortDir: "asc" | "desc";
30
+ type?: string | undefined;
31
+ publisher?: string | undefined;
32
+ hasMultiplayer?: boolean | undefined;
33
+ hasCoop?: boolean | undefined;
34
+ platform?: string | undefined;
35
+ category?: string | undefined;
36
+ minPrice?: number | undefined;
37
+ hasDiscount?: boolean | undefined;
38
+ genre?: string | undefined;
39
+ tag?: string | undefined;
40
+ region?: string | undefined;
41
+ maxPrice?: number | undefined;
42
+ minRating?: number | undefined;
43
+ search?: string | undefined;
44
+ }, {
45
+ type?: string | undefined;
46
+ take?: number | undefined;
47
+ skip?: number | undefined;
48
+ sortBy?: "price" | "title" | "releaseDate" | "popularity" | "rating" | undefined;
49
+ sortDir?: "asc" | "desc" | undefined;
50
+ publisher?: string | undefined;
51
+ hasMultiplayer?: "true" | "false" | undefined;
52
+ hasCoop?: "true" | "false" | undefined;
53
+ platform?: string | undefined;
54
+ category?: string | undefined;
55
+ minPrice?: number | undefined;
56
+ hasDiscount?: "true" | "false" | undefined;
57
+ genre?: string | undefined;
58
+ tag?: string | undefined;
59
+ region?: string | undefined;
60
+ maxPrice?: number | undefined;
61
+ minRating?: number | undefined;
62
+ search?: string | undefined;
63
+ }>;
64
+ response: z.ZodObject<{
65
+ items: z.ZodArray<z.ZodObject<{
66
+ id: z.ZodNumber;
67
+ slug: z.ZodString;
68
+ title: z.ZodString;
69
+ type: z.ZodString;
70
+ shortDescription: z.ZodNullable<z.ZodString>;
71
+ coverImageUrl: z.ZodNullable<z.ZodString>;
72
+ steamRating: z.ZodNullable<z.ZodNumber>;
73
+ hasMultiplayer: z.ZodBoolean;
74
+ hasCoop: z.ZodBoolean;
75
+ salesCount: z.ZodNumber;
76
+ publisher: z.ZodNullable<z.ZodString>;
77
+ releaseDate: z.ZodNullable<z.ZodDate>;
78
+ category: z.ZodObject<{
79
+ slug: z.ZodString;
80
+ name: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ name: string;
83
+ slug: string;
84
+ }, {
85
+ name: string;
86
+ slug: string;
87
+ }>;
88
+ genres: z.ZodArray<z.ZodObject<{
89
+ slug: z.ZodString;
90
+ name: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ name: string;
93
+ slug: string;
94
+ }, {
95
+ name: string;
96
+ slug: string;
97
+ }>, "many">;
98
+ regions: z.ZodArray<z.ZodObject<{
99
+ code: z.ZodString;
100
+ name: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ code: string;
103
+ name: string;
104
+ }, {
105
+ code: string;
106
+ name: string;
107
+ }>, "many">;
108
+ variants: z.ZodArray<z.ZodObject<{
109
+ id: z.ZodNumber;
110
+ name: z.ZodString;
111
+ price: z.ZodString;
112
+ originalPrice: z.ZodNullable<z.ZodString>;
113
+ platform: z.ZodNullable<z.ZodString>;
114
+ regionCode: z.ZodNullable<z.ZodString>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ id: number;
117
+ price: string;
118
+ name: string;
119
+ originalPrice: string | null;
120
+ platform: string | null;
121
+ regionCode: string | null;
122
+ }, {
123
+ id: number;
124
+ price: string;
125
+ name: string;
126
+ originalPrice: string | null;
127
+ platform: string | null;
128
+ regionCode: string | null;
129
+ }>, "many">;
130
+ minPrice: z.ZodNullable<z.ZodString>;
131
+ hasDiscount: z.ZodBoolean;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: string;
134
+ id: number;
135
+ slug: string;
136
+ title: string;
137
+ shortDescription: string | null;
138
+ coverImageUrl: string | null;
139
+ publisher: string | null;
140
+ releaseDate: Date | null;
141
+ hasMultiplayer: boolean;
142
+ hasCoop: boolean;
143
+ variants: {
144
+ id: number;
145
+ price: string;
146
+ name: string;
147
+ originalPrice: string | null;
148
+ platform: string | null;
149
+ regionCode: string | null;
150
+ }[];
151
+ steamRating: number | null;
152
+ salesCount: number;
153
+ category: {
154
+ name: string;
155
+ slug: string;
156
+ };
157
+ genres: {
158
+ name: string;
159
+ slug: string;
160
+ }[];
161
+ regions: {
162
+ code: string;
163
+ name: string;
164
+ }[];
165
+ minPrice: string | null;
166
+ hasDiscount: boolean;
167
+ }, {
168
+ type: string;
169
+ id: number;
170
+ slug: string;
171
+ title: string;
172
+ shortDescription: string | null;
173
+ coverImageUrl: string | null;
174
+ publisher: string | null;
175
+ releaseDate: Date | null;
176
+ hasMultiplayer: boolean;
177
+ hasCoop: boolean;
178
+ variants: {
179
+ id: number;
180
+ price: string;
181
+ name: string;
182
+ originalPrice: string | null;
183
+ platform: string | null;
184
+ regionCode: string | null;
185
+ }[];
186
+ steamRating: number | null;
187
+ salesCount: number;
188
+ category: {
189
+ name: string;
190
+ slug: string;
191
+ };
192
+ genres: {
193
+ name: string;
194
+ slug: string;
195
+ }[];
196
+ regions: {
197
+ code: string;
198
+ name: string;
199
+ }[];
200
+ minPrice: string | null;
201
+ hasDiscount: boolean;
202
+ }>, "many">;
203
+ total: z.ZodNumber;
204
+ skip: z.ZodNumber;
205
+ take: z.ZodNumber;
206
+ }, "strip", z.ZodTypeAny, {
207
+ items: {
208
+ type: string;
209
+ id: number;
210
+ slug: string;
211
+ title: string;
212
+ shortDescription: string | null;
213
+ coverImageUrl: string | null;
214
+ publisher: string | null;
215
+ releaseDate: Date | null;
216
+ hasMultiplayer: boolean;
217
+ hasCoop: boolean;
218
+ variants: {
219
+ id: number;
220
+ price: string;
221
+ name: string;
222
+ originalPrice: string | null;
223
+ platform: string | null;
224
+ regionCode: string | null;
225
+ }[];
226
+ steamRating: number | null;
227
+ salesCount: number;
228
+ category: {
229
+ name: string;
230
+ slug: string;
231
+ };
232
+ genres: {
233
+ name: string;
234
+ slug: string;
235
+ }[];
236
+ regions: {
237
+ code: string;
238
+ name: string;
239
+ }[];
240
+ minPrice: string | null;
241
+ hasDiscount: boolean;
242
+ }[];
243
+ total: number;
244
+ take: number;
245
+ skip: number;
246
+ }, {
247
+ items: {
248
+ type: string;
249
+ id: number;
250
+ slug: string;
251
+ title: string;
252
+ shortDescription: string | null;
253
+ coverImageUrl: string | null;
254
+ publisher: string | null;
255
+ releaseDate: Date | null;
256
+ hasMultiplayer: boolean;
257
+ hasCoop: boolean;
258
+ variants: {
259
+ id: number;
260
+ price: string;
261
+ name: string;
262
+ originalPrice: string | null;
263
+ platform: string | null;
264
+ regionCode: string | null;
265
+ }[];
266
+ steamRating: number | null;
267
+ salesCount: number;
268
+ category: {
269
+ name: string;
270
+ slug: string;
271
+ };
272
+ genres: {
273
+ name: string;
274
+ slug: string;
275
+ }[];
276
+ regions: {
277
+ code: string;
278
+ name: string;
279
+ }[];
280
+ minPrice: string | null;
281
+ hasDiscount: boolean;
282
+ }[];
283
+ total: number;
284
+ take: number;
285
+ skip: number;
286
+ }>;
287
+ };
288
+ categories: {
289
+ method: "GET";
290
+ path: string;
291
+ response: z.ZodArray<z.ZodObject<{
292
+ id: z.ZodNumber;
293
+ slug: z.ZodString;
294
+ name: z.ZodString;
295
+ description: z.ZodNullable<z.ZodString>;
296
+ iconUrl: z.ZodNullable<z.ZodString>;
297
+ _count: z.ZodObject<{
298
+ products: z.ZodNumber;
299
+ }, "strip", z.ZodTypeAny, {
300
+ products: number;
301
+ }, {
302
+ products: number;
303
+ }>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ id: number;
306
+ name: string;
307
+ slug: string;
308
+ description: string | null;
309
+ iconUrl: string | null;
310
+ _count: {
311
+ products: number;
312
+ };
313
+ }, {
314
+ id: number;
315
+ name: string;
316
+ slug: string;
317
+ description: string | null;
318
+ iconUrl: string | null;
319
+ _count: {
320
+ products: number;
321
+ };
322
+ }>, "many">;
323
+ };
324
+ genres: {
325
+ method: "GET";
326
+ path: string;
327
+ response: z.ZodArray<z.ZodObject<{
328
+ id: z.ZodNumber;
329
+ slug: z.ZodString;
330
+ name: z.ZodString;
331
+ _count: z.ZodObject<{
332
+ products: z.ZodNumber;
333
+ }, "strip", z.ZodTypeAny, {
334
+ products: number;
335
+ }, {
336
+ products: number;
337
+ }>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ id: number;
340
+ name: string;
341
+ slug: string;
342
+ _count: {
343
+ products: number;
344
+ };
345
+ }, {
346
+ id: number;
347
+ name: string;
348
+ slug: string;
349
+ _count: {
350
+ products: number;
351
+ };
352
+ }>, "many">;
353
+ };
354
+ regions: {
355
+ method: "GET";
356
+ path: string;
357
+ response: z.ZodArray<z.ZodObject<{
358
+ id: z.ZodNumber;
359
+ code: z.ZodString;
360
+ name: z.ZodString;
361
+ _count: z.ZodObject<{
362
+ products: z.ZodNumber;
363
+ }, "strip", z.ZodTypeAny, {
364
+ products: number;
365
+ }, {
366
+ products: number;
367
+ }>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ code: string;
370
+ id: number;
371
+ name: string;
372
+ _count: {
373
+ products: number;
374
+ };
375
+ }, {
376
+ code: string;
377
+ id: number;
378
+ name: string;
379
+ _count: {
380
+ products: number;
381
+ };
382
+ }>, "many">;
383
+ };
384
+ getBySlug: {
385
+ method: "GET";
386
+ path: string;
387
+ request: z.ZodObject<{
388
+ slug: z.ZodString;
389
+ }, "strip", z.ZodTypeAny, {
390
+ slug: string;
391
+ }, {
392
+ slug: string;
393
+ }>;
394
+ response: z.ZodObject<{
395
+ id: z.ZodNumber;
396
+ slug: z.ZodString;
397
+ title: z.ZodString;
398
+ originalTitle: z.ZodNullable<z.ZodString>;
399
+ type: z.ZodString;
400
+ status: z.ZodString;
401
+ description: z.ZodNullable<z.ZodString>;
402
+ customDescription: z.ZodNullable<z.ZodString>;
403
+ shortDescription: z.ZodNullable<z.ZodString>;
404
+ coverImageUrl: z.ZodNullable<z.ZodString>;
405
+ developer: z.ZodNullable<z.ZodString>;
406
+ publisher: z.ZodNullable<z.ZodString>;
407
+ releaseDate: z.ZodNullable<z.ZodDate>;
408
+ steamAppId: z.ZodNullable<z.ZodNumber>;
409
+ steamRating: z.ZodNullable<z.ZodNumber>;
410
+ hasMultiplayer: z.ZodBoolean;
411
+ hasCoop: z.ZodBoolean;
412
+ hasSinglePlayer: z.ZodBoolean;
413
+ metaTitle: z.ZodNullable<z.ZodString>;
414
+ metaDescription: z.ZodNullable<z.ZodString>;
415
+ salesCount: z.ZodNumber;
416
+ viewsCount: z.ZodNumber;
417
+ category: z.ZodObject<{
418
+ slug: z.ZodString;
419
+ name: z.ZodString;
420
+ } & {
421
+ id: z.ZodNumber;
422
+ }, "strip", z.ZodTypeAny, {
423
+ id: number;
424
+ name: string;
425
+ slug: string;
426
+ }, {
427
+ id: number;
428
+ name: string;
429
+ slug: string;
430
+ }>;
431
+ variants: z.ZodArray<z.ZodObject<{
432
+ id: z.ZodNumber;
433
+ name: z.ZodString;
434
+ sku: z.ZodString;
435
+ price: z.ZodString;
436
+ originalPrice: z.ZodNullable<z.ZodString>;
437
+ topupAmount: z.ZodNullable<z.ZodString>;
438
+ currency: z.ZodNullable<z.ZodString>;
439
+ durationDays: z.ZodNullable<z.ZodNumber>;
440
+ platform: z.ZodNullable<z.ZodString>;
441
+ regionCode: z.ZodNullable<z.ZodString>;
442
+ deliveryType: z.ZodString;
443
+ inStock: z.ZodBoolean;
444
+ }, "strip", z.ZodTypeAny, {
445
+ id: number;
446
+ price: string;
447
+ name: string;
448
+ sku: string;
449
+ originalPrice: string | null;
450
+ topupAmount: string | null;
451
+ currency: string | null;
452
+ durationDays: number | null;
453
+ platform: string | null;
454
+ regionCode: string | null;
455
+ deliveryType: string;
456
+ inStock: boolean;
457
+ }, {
458
+ id: number;
459
+ price: string;
460
+ name: string;
461
+ sku: string;
462
+ originalPrice: string | null;
463
+ topupAmount: string | null;
464
+ currency: string | null;
465
+ durationDays: number | null;
466
+ platform: string | null;
467
+ regionCode: string | null;
468
+ deliveryType: string;
469
+ inStock: boolean;
470
+ }>, "many">;
471
+ media: z.ZodArray<z.ZodObject<{
472
+ id: z.ZodNumber;
473
+ type: z.ZodString;
474
+ url: z.ZodString;
475
+ alt: z.ZodNullable<z.ZodString>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ type: string;
478
+ id: number;
479
+ url: string;
480
+ alt: string | null;
481
+ }, {
482
+ type: string;
483
+ id: number;
484
+ url: string;
485
+ alt: string | null;
486
+ }>, "many">;
487
+ genres: z.ZodArray<z.ZodObject<{
488
+ id: z.ZodNumber;
489
+ slug: z.ZodString;
490
+ name: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: number;
493
+ name: string;
494
+ slug: string;
495
+ }, {
496
+ id: number;
497
+ name: string;
498
+ slug: string;
499
+ }>, "many">;
500
+ tags: z.ZodArray<z.ZodObject<{
501
+ id: z.ZodNumber;
502
+ slug: z.ZodString;
503
+ name: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
505
+ id: number;
506
+ name: string;
507
+ slug: string;
508
+ }, {
509
+ id: number;
510
+ name: string;
511
+ slug: string;
512
+ }>, "many">;
513
+ regions: z.ZodArray<z.ZodObject<Omit<{
514
+ id: z.ZodNumber;
515
+ code: z.ZodString;
516
+ name: z.ZodString;
517
+ _count: z.ZodObject<{
518
+ products: z.ZodNumber;
519
+ }, "strip", z.ZodTypeAny, {
520
+ products: number;
521
+ }, {
522
+ products: number;
523
+ }>;
524
+ }, "_count">, "strip", z.ZodTypeAny, {
525
+ code: string;
526
+ id: number;
527
+ name: string;
528
+ }, {
529
+ code: string;
530
+ id: number;
531
+ name: string;
532
+ }>, "many">;
533
+ systemRequirements: z.ZodArray<z.ZodObject<{
534
+ type: z.ZodString;
535
+ os: z.ZodNullable<z.ZodString>;
536
+ processor: z.ZodNullable<z.ZodString>;
537
+ memory: z.ZodNullable<z.ZodString>;
538
+ graphics: z.ZodNullable<z.ZodString>;
539
+ storage: z.ZodNullable<z.ZodString>;
540
+ directx: z.ZodNullable<z.ZodString>;
541
+ network: z.ZodNullable<z.ZodString>;
542
+ additional: z.ZodNullable<z.ZodString>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ type: string;
545
+ os: string | null;
546
+ processor: string | null;
547
+ memory: string | null;
548
+ graphics: string | null;
549
+ storage: string | null;
550
+ directx: string | null;
551
+ network: string | null;
552
+ additional: string | null;
553
+ }, {
554
+ type: string;
555
+ os: string | null;
556
+ processor: string | null;
557
+ memory: string | null;
558
+ graphics: string | null;
559
+ storage: string | null;
560
+ directx: string | null;
561
+ network: string | null;
562
+ additional: string | null;
563
+ }>, "many">;
564
+ dlcs: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodNumber;
566
+ slug: z.ZodString;
567
+ title: z.ZodString;
568
+ coverImageUrl: z.ZodNullable<z.ZodString>;
569
+ variants: z.ZodArray<z.ZodObject<{
570
+ price: z.ZodAny;
571
+ originalPrice: z.ZodAny;
572
+ }, "strip", z.ZodTypeAny, {
573
+ price?: any;
574
+ originalPrice?: any;
575
+ }, {
576
+ price?: any;
577
+ originalPrice?: any;
578
+ }>, "many">;
579
+ }, "strip", z.ZodTypeAny, {
580
+ id: number;
581
+ slug: string;
582
+ title: string;
583
+ coverImageUrl: string | null;
584
+ variants: {
585
+ price?: any;
586
+ originalPrice?: any;
587
+ }[];
588
+ }, {
589
+ id: number;
590
+ slug: string;
591
+ title: string;
592
+ coverImageUrl: string | null;
593
+ variants: {
594
+ price?: any;
595
+ originalPrice?: any;
596
+ }[];
597
+ }>, "many">;
598
+ createdAt: z.ZodDate;
599
+ updatedAt: z.ZodDate;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: string;
602
+ status: string;
603
+ id: number;
604
+ createdAt: Date;
605
+ updatedAt: Date;
606
+ slug: string;
607
+ title: string;
608
+ originalTitle: string | null;
609
+ description: string | null;
610
+ customDescription: string | null;
611
+ shortDescription: string | null;
612
+ coverImageUrl: string | null;
613
+ developer: string | null;
614
+ publisher: string | null;
615
+ releaseDate: Date | null;
616
+ steamAppId: number | null;
617
+ hasMultiplayer: boolean;
618
+ hasCoop: boolean;
619
+ hasSinglePlayer: boolean;
620
+ metaTitle: string | null;
621
+ metaDescription: string | null;
622
+ variants: {
623
+ id: number;
624
+ price: string;
625
+ name: string;
626
+ sku: string;
627
+ originalPrice: string | null;
628
+ topupAmount: string | null;
629
+ currency: string | null;
630
+ durationDays: number | null;
631
+ platform: string | null;
632
+ regionCode: string | null;
633
+ deliveryType: string;
634
+ inStock: boolean;
635
+ }[];
636
+ steamRating: number | null;
637
+ salesCount: number;
638
+ category: {
639
+ id: number;
640
+ name: string;
641
+ slug: string;
642
+ };
643
+ genres: {
644
+ id: number;
645
+ name: string;
646
+ slug: string;
647
+ }[];
648
+ regions: {
649
+ code: string;
650
+ id: number;
651
+ name: string;
652
+ }[];
653
+ viewsCount: number;
654
+ media: {
655
+ type: string;
656
+ id: number;
657
+ url: string;
658
+ alt: string | null;
659
+ }[];
660
+ tags: {
661
+ id: number;
662
+ name: string;
663
+ slug: string;
664
+ }[];
665
+ systemRequirements: {
666
+ type: string;
667
+ os: string | null;
668
+ processor: string | null;
669
+ memory: string | null;
670
+ graphics: string | null;
671
+ storage: string | null;
672
+ directx: string | null;
673
+ network: string | null;
674
+ additional: string | null;
675
+ }[];
676
+ dlcs: {
677
+ id: number;
678
+ slug: string;
679
+ title: string;
680
+ coverImageUrl: string | null;
681
+ variants: {
682
+ price?: any;
683
+ originalPrice?: any;
684
+ }[];
685
+ }[];
686
+ }, {
687
+ type: string;
688
+ status: string;
689
+ id: number;
690
+ createdAt: Date;
691
+ updatedAt: Date;
692
+ slug: string;
693
+ title: string;
694
+ originalTitle: string | null;
695
+ description: string | null;
696
+ customDescription: string | null;
697
+ shortDescription: string | null;
698
+ coverImageUrl: string | null;
699
+ developer: string | null;
700
+ publisher: string | null;
701
+ releaseDate: Date | null;
702
+ steamAppId: number | null;
703
+ hasMultiplayer: boolean;
704
+ hasCoop: boolean;
705
+ hasSinglePlayer: boolean;
706
+ metaTitle: string | null;
707
+ metaDescription: string | null;
708
+ variants: {
709
+ id: number;
710
+ price: string;
711
+ name: string;
712
+ sku: string;
713
+ originalPrice: string | null;
714
+ topupAmount: string | null;
715
+ currency: string | null;
716
+ durationDays: number | null;
717
+ platform: string | null;
718
+ regionCode: string | null;
719
+ deliveryType: string;
720
+ inStock: boolean;
721
+ }[];
722
+ steamRating: number | null;
723
+ salesCount: number;
724
+ category: {
725
+ id: number;
726
+ name: string;
727
+ slug: string;
728
+ };
729
+ genres: {
730
+ id: number;
731
+ name: string;
732
+ slug: string;
733
+ }[];
734
+ regions: {
735
+ code: string;
736
+ id: number;
737
+ name: string;
738
+ }[];
739
+ viewsCount: number;
740
+ media: {
741
+ type: string;
742
+ id: number;
743
+ url: string;
744
+ alt: string | null;
745
+ }[];
746
+ tags: {
747
+ id: number;
748
+ name: string;
749
+ slug: string;
750
+ }[];
751
+ systemRequirements: {
752
+ type: string;
753
+ os: string | null;
754
+ processor: string | null;
755
+ memory: string | null;
756
+ graphics: string | null;
757
+ storage: string | null;
758
+ directx: string | null;
759
+ network: string | null;
760
+ additional: string | null;
761
+ }[];
762
+ dlcs: {
763
+ id: number;
764
+ slug: string;
765
+ title: string;
766
+ coverImageUrl: string | null;
767
+ variants: {
768
+ price?: any;
769
+ originalPrice?: any;
770
+ }[];
771
+ }[];
772
+ }>;
773
+ };
774
+ create: {
775
+ method: "POST";
776
+ path: string;
777
+ request: z.ZodObject<{
778
+ slug: z.ZodString;
779
+ title: z.ZodString;
780
+ originalTitle: z.ZodOptional<z.ZodString>;
781
+ type: z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>;
782
+ categoryId: z.ZodNumber;
783
+ parentProductId: z.ZodOptional<z.ZodNumber>;
784
+ description: z.ZodOptional<z.ZodString>;
785
+ customDescription: z.ZodOptional<z.ZodString>;
786
+ shortDescription: z.ZodOptional<z.ZodString>;
787
+ coverImageUrl: z.ZodOptional<z.ZodString>;
788
+ developer: z.ZodOptional<z.ZodString>;
789
+ publisher: z.ZodOptional<z.ZodString>;
790
+ releaseDate: z.ZodOptional<z.ZodString>;
791
+ steamAppId: z.ZodOptional<z.ZodNumber>;
792
+ hasMultiplayer: z.ZodDefault<z.ZodBoolean>;
793
+ hasCoop: z.ZodDefault<z.ZodBoolean>;
794
+ hasSinglePlayer: z.ZodDefault<z.ZodBoolean>;
795
+ metaTitle: z.ZodOptional<z.ZodString>;
796
+ metaDescription: z.ZodOptional<z.ZodString>;
797
+ genreIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
798
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
799
+ regionIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
800
+ }, "strip", z.ZodTypeAny, {
801
+ type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
802
+ slug: string;
803
+ title: string;
804
+ categoryId: number;
805
+ hasMultiplayer: boolean;
806
+ hasCoop: boolean;
807
+ hasSinglePlayer: boolean;
808
+ originalTitle?: string | undefined;
809
+ parentProductId?: number | undefined;
810
+ description?: string | undefined;
811
+ customDescription?: string | undefined;
812
+ shortDescription?: string | undefined;
813
+ coverImageUrl?: string | undefined;
814
+ developer?: string | undefined;
815
+ publisher?: string | undefined;
816
+ releaseDate?: string | undefined;
817
+ steamAppId?: number | undefined;
818
+ metaTitle?: string | undefined;
819
+ metaDescription?: string | undefined;
820
+ genreIds?: number[] | undefined;
821
+ tagIds?: number[] | undefined;
822
+ regionIds?: number[] | undefined;
823
+ }, {
824
+ type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
825
+ slug: string;
826
+ title: string;
827
+ categoryId: number;
828
+ originalTitle?: string | undefined;
829
+ parentProductId?: number | undefined;
830
+ description?: string | undefined;
831
+ customDescription?: string | undefined;
832
+ shortDescription?: string | undefined;
833
+ coverImageUrl?: string | undefined;
834
+ developer?: string | undefined;
835
+ publisher?: string | undefined;
836
+ releaseDate?: string | undefined;
837
+ steamAppId?: number | undefined;
838
+ hasMultiplayer?: boolean | undefined;
839
+ hasCoop?: boolean | undefined;
840
+ hasSinglePlayer?: boolean | undefined;
841
+ metaTitle?: string | undefined;
842
+ metaDescription?: string | undefined;
843
+ genreIds?: number[] | undefined;
844
+ tagIds?: number[] | undefined;
845
+ regionIds?: number[] | undefined;
846
+ }>;
847
+ response: z.ZodObject<{
848
+ id: z.ZodNumber;
849
+ slug: z.ZodString;
850
+ title: z.ZodString;
851
+ originalTitle: z.ZodNullable<z.ZodString>;
852
+ type: z.ZodString;
853
+ status: z.ZodString;
854
+ description: z.ZodNullable<z.ZodString>;
855
+ customDescription: z.ZodNullable<z.ZodString>;
856
+ shortDescription: z.ZodNullable<z.ZodString>;
857
+ coverImageUrl: z.ZodNullable<z.ZodString>;
858
+ developer: z.ZodNullable<z.ZodString>;
859
+ publisher: z.ZodNullable<z.ZodString>;
860
+ releaseDate: z.ZodNullable<z.ZodDate>;
861
+ steamAppId: z.ZodNullable<z.ZodNumber>;
862
+ steamRating: z.ZodNullable<z.ZodNumber>;
863
+ hasMultiplayer: z.ZodBoolean;
864
+ hasCoop: z.ZodBoolean;
865
+ hasSinglePlayer: z.ZodBoolean;
866
+ metaTitle: z.ZodNullable<z.ZodString>;
867
+ metaDescription: z.ZodNullable<z.ZodString>;
868
+ salesCount: z.ZodNumber;
869
+ viewsCount: z.ZodNumber;
870
+ category: z.ZodObject<{
871
+ slug: z.ZodString;
872
+ name: z.ZodString;
873
+ } & {
874
+ id: z.ZodNumber;
875
+ }, "strip", z.ZodTypeAny, {
876
+ id: number;
877
+ name: string;
878
+ slug: string;
879
+ }, {
880
+ id: number;
881
+ name: string;
882
+ slug: string;
883
+ }>;
884
+ variants: z.ZodArray<z.ZodObject<{
885
+ id: z.ZodNumber;
886
+ name: z.ZodString;
887
+ sku: z.ZodString;
888
+ price: z.ZodString;
889
+ originalPrice: z.ZodNullable<z.ZodString>;
890
+ topupAmount: z.ZodNullable<z.ZodString>;
891
+ currency: z.ZodNullable<z.ZodString>;
892
+ durationDays: z.ZodNullable<z.ZodNumber>;
893
+ platform: z.ZodNullable<z.ZodString>;
894
+ regionCode: z.ZodNullable<z.ZodString>;
895
+ deliveryType: z.ZodString;
896
+ inStock: z.ZodBoolean;
897
+ }, "strip", z.ZodTypeAny, {
898
+ id: number;
899
+ price: string;
900
+ name: string;
901
+ sku: string;
902
+ originalPrice: string | null;
903
+ topupAmount: string | null;
904
+ currency: string | null;
905
+ durationDays: number | null;
906
+ platform: string | null;
907
+ regionCode: string | null;
908
+ deliveryType: string;
909
+ inStock: boolean;
910
+ }, {
911
+ id: number;
912
+ price: string;
913
+ name: string;
914
+ sku: string;
915
+ originalPrice: string | null;
916
+ topupAmount: string | null;
917
+ currency: string | null;
918
+ durationDays: number | null;
919
+ platform: string | null;
920
+ regionCode: string | null;
921
+ deliveryType: string;
922
+ inStock: boolean;
923
+ }>, "many">;
924
+ media: z.ZodArray<z.ZodObject<{
925
+ id: z.ZodNumber;
926
+ type: z.ZodString;
927
+ url: z.ZodString;
928
+ alt: z.ZodNullable<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ type: string;
931
+ id: number;
932
+ url: string;
933
+ alt: string | null;
934
+ }, {
935
+ type: string;
936
+ id: number;
937
+ url: string;
938
+ alt: string | null;
939
+ }>, "many">;
940
+ genres: z.ZodArray<z.ZodObject<{
941
+ id: z.ZodNumber;
942
+ slug: z.ZodString;
943
+ name: z.ZodString;
944
+ }, "strip", z.ZodTypeAny, {
945
+ id: number;
946
+ name: string;
947
+ slug: string;
948
+ }, {
949
+ id: number;
950
+ name: string;
951
+ slug: string;
952
+ }>, "many">;
953
+ tags: z.ZodArray<z.ZodObject<{
954
+ id: z.ZodNumber;
955
+ slug: z.ZodString;
956
+ name: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ id: number;
959
+ name: string;
960
+ slug: string;
961
+ }, {
962
+ id: number;
963
+ name: string;
964
+ slug: string;
965
+ }>, "many">;
966
+ regions: z.ZodArray<z.ZodObject<Omit<{
967
+ id: z.ZodNumber;
968
+ code: z.ZodString;
969
+ name: z.ZodString;
970
+ _count: z.ZodObject<{
971
+ products: z.ZodNumber;
972
+ }, "strip", z.ZodTypeAny, {
973
+ products: number;
974
+ }, {
975
+ products: number;
976
+ }>;
977
+ }, "_count">, "strip", z.ZodTypeAny, {
978
+ code: string;
979
+ id: number;
980
+ name: string;
981
+ }, {
982
+ code: string;
983
+ id: number;
984
+ name: string;
985
+ }>, "many">;
986
+ systemRequirements: z.ZodArray<z.ZodObject<{
987
+ type: z.ZodString;
988
+ os: z.ZodNullable<z.ZodString>;
989
+ processor: z.ZodNullable<z.ZodString>;
990
+ memory: z.ZodNullable<z.ZodString>;
991
+ graphics: z.ZodNullable<z.ZodString>;
992
+ storage: z.ZodNullable<z.ZodString>;
993
+ directx: z.ZodNullable<z.ZodString>;
994
+ network: z.ZodNullable<z.ZodString>;
995
+ additional: z.ZodNullable<z.ZodString>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ type: string;
998
+ os: string | null;
999
+ processor: string | null;
1000
+ memory: string | null;
1001
+ graphics: string | null;
1002
+ storage: string | null;
1003
+ directx: string | null;
1004
+ network: string | null;
1005
+ additional: string | null;
1006
+ }, {
1007
+ type: string;
1008
+ os: string | null;
1009
+ processor: string | null;
1010
+ memory: string | null;
1011
+ graphics: string | null;
1012
+ storage: string | null;
1013
+ directx: string | null;
1014
+ network: string | null;
1015
+ additional: string | null;
1016
+ }>, "many">;
1017
+ dlcs: z.ZodArray<z.ZodObject<{
1018
+ id: z.ZodNumber;
1019
+ slug: z.ZodString;
1020
+ title: z.ZodString;
1021
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1022
+ variants: z.ZodArray<z.ZodObject<{
1023
+ price: z.ZodAny;
1024
+ originalPrice: z.ZodAny;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ price?: any;
1027
+ originalPrice?: any;
1028
+ }, {
1029
+ price?: any;
1030
+ originalPrice?: any;
1031
+ }>, "many">;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ id: number;
1034
+ slug: string;
1035
+ title: string;
1036
+ coverImageUrl: string | null;
1037
+ variants: {
1038
+ price?: any;
1039
+ originalPrice?: any;
1040
+ }[];
1041
+ }, {
1042
+ id: number;
1043
+ slug: string;
1044
+ title: string;
1045
+ coverImageUrl: string | null;
1046
+ variants: {
1047
+ price?: any;
1048
+ originalPrice?: any;
1049
+ }[];
1050
+ }>, "many">;
1051
+ createdAt: z.ZodDate;
1052
+ updatedAt: z.ZodDate;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ type: string;
1055
+ status: string;
1056
+ id: number;
1057
+ createdAt: Date;
1058
+ updatedAt: Date;
1059
+ slug: string;
1060
+ title: string;
1061
+ originalTitle: string | null;
1062
+ description: string | null;
1063
+ customDescription: string | null;
1064
+ shortDescription: string | null;
1065
+ coverImageUrl: string | null;
1066
+ developer: string | null;
1067
+ publisher: string | null;
1068
+ releaseDate: Date | null;
1069
+ steamAppId: number | null;
1070
+ hasMultiplayer: boolean;
1071
+ hasCoop: boolean;
1072
+ hasSinglePlayer: boolean;
1073
+ metaTitle: string | null;
1074
+ metaDescription: string | null;
1075
+ variants: {
1076
+ id: number;
1077
+ price: string;
1078
+ name: string;
1079
+ sku: string;
1080
+ originalPrice: string | null;
1081
+ topupAmount: string | null;
1082
+ currency: string | null;
1083
+ durationDays: number | null;
1084
+ platform: string | null;
1085
+ regionCode: string | null;
1086
+ deliveryType: string;
1087
+ inStock: boolean;
1088
+ }[];
1089
+ steamRating: number | null;
1090
+ salesCount: number;
1091
+ category: {
1092
+ id: number;
1093
+ name: string;
1094
+ slug: string;
1095
+ };
1096
+ genres: {
1097
+ id: number;
1098
+ name: string;
1099
+ slug: string;
1100
+ }[];
1101
+ regions: {
1102
+ code: string;
1103
+ id: number;
1104
+ name: string;
1105
+ }[];
1106
+ viewsCount: number;
1107
+ media: {
1108
+ type: string;
1109
+ id: number;
1110
+ url: string;
1111
+ alt: string | null;
1112
+ }[];
1113
+ tags: {
1114
+ id: number;
1115
+ name: string;
1116
+ slug: string;
1117
+ }[];
1118
+ systemRequirements: {
1119
+ type: string;
1120
+ os: string | null;
1121
+ processor: string | null;
1122
+ memory: string | null;
1123
+ graphics: string | null;
1124
+ storage: string | null;
1125
+ directx: string | null;
1126
+ network: string | null;
1127
+ additional: string | null;
1128
+ }[];
1129
+ dlcs: {
1130
+ id: number;
1131
+ slug: string;
1132
+ title: string;
1133
+ coverImageUrl: string | null;
1134
+ variants: {
1135
+ price?: any;
1136
+ originalPrice?: any;
1137
+ }[];
1138
+ }[];
1139
+ }, {
1140
+ type: string;
1141
+ status: string;
1142
+ id: number;
1143
+ createdAt: Date;
1144
+ updatedAt: Date;
1145
+ slug: string;
1146
+ title: string;
1147
+ originalTitle: string | null;
1148
+ description: string | null;
1149
+ customDescription: string | null;
1150
+ shortDescription: string | null;
1151
+ coverImageUrl: string | null;
1152
+ developer: string | null;
1153
+ publisher: string | null;
1154
+ releaseDate: Date | null;
1155
+ steamAppId: number | null;
1156
+ hasMultiplayer: boolean;
1157
+ hasCoop: boolean;
1158
+ hasSinglePlayer: boolean;
1159
+ metaTitle: string | null;
1160
+ metaDescription: string | null;
1161
+ variants: {
1162
+ id: number;
1163
+ price: string;
1164
+ name: string;
1165
+ sku: string;
1166
+ originalPrice: string | null;
1167
+ topupAmount: string | null;
1168
+ currency: string | null;
1169
+ durationDays: number | null;
1170
+ platform: string | null;
1171
+ regionCode: string | null;
1172
+ deliveryType: string;
1173
+ inStock: boolean;
1174
+ }[];
1175
+ steamRating: number | null;
1176
+ salesCount: number;
1177
+ category: {
1178
+ id: number;
1179
+ name: string;
1180
+ slug: string;
1181
+ };
1182
+ genres: {
1183
+ id: number;
1184
+ name: string;
1185
+ slug: string;
1186
+ }[];
1187
+ regions: {
1188
+ code: string;
1189
+ id: number;
1190
+ name: string;
1191
+ }[];
1192
+ viewsCount: number;
1193
+ media: {
1194
+ type: string;
1195
+ id: number;
1196
+ url: string;
1197
+ alt: string | null;
1198
+ }[];
1199
+ tags: {
1200
+ id: number;
1201
+ name: string;
1202
+ slug: string;
1203
+ }[];
1204
+ systemRequirements: {
1205
+ type: string;
1206
+ os: string | null;
1207
+ processor: string | null;
1208
+ memory: string | null;
1209
+ graphics: string | null;
1210
+ storage: string | null;
1211
+ directx: string | null;
1212
+ network: string | null;
1213
+ additional: string | null;
1214
+ }[];
1215
+ dlcs: {
1216
+ id: number;
1217
+ slug: string;
1218
+ title: string;
1219
+ coverImageUrl: string | null;
1220
+ variants: {
1221
+ price?: any;
1222
+ originalPrice?: any;
1223
+ }[];
1224
+ }[];
1225
+ }>;
1226
+ };
1227
+ update: {
1228
+ method: "PUT";
1229
+ path: string;
1230
+ request: z.ZodObject<{
1231
+ slug: z.ZodOptional<z.ZodString>;
1232
+ title: z.ZodOptional<z.ZodString>;
1233
+ originalTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1234
+ type: z.ZodOptional<z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>>;
1235
+ categoryId: z.ZodOptional<z.ZodNumber>;
1236
+ parentProductId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1237
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1238
+ customDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1239
+ shortDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1240
+ coverImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1241
+ developer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1242
+ publisher: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1243
+ releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1244
+ steamAppId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1245
+ hasMultiplayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1246
+ hasCoop: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1247
+ hasSinglePlayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1248
+ metaTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1249
+ metaDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1250
+ genreIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1251
+ tagIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1252
+ regionIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1253
+ } & {
1254
+ status: z.ZodOptional<z.ZodEnum<["DRAFT", "ACTIVE", "OUT_OF_STOCK", "ARCHIVED"]>>;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
1257
+ status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
1258
+ slug?: string | undefined;
1259
+ title?: string | undefined;
1260
+ originalTitle?: string | undefined;
1261
+ categoryId?: number | undefined;
1262
+ parentProductId?: number | undefined;
1263
+ description?: string | undefined;
1264
+ customDescription?: string | undefined;
1265
+ shortDescription?: string | undefined;
1266
+ coverImageUrl?: string | undefined;
1267
+ developer?: string | undefined;
1268
+ publisher?: string | undefined;
1269
+ releaseDate?: string | undefined;
1270
+ steamAppId?: number | undefined;
1271
+ hasMultiplayer?: boolean | undefined;
1272
+ hasCoop?: boolean | undefined;
1273
+ hasSinglePlayer?: boolean | undefined;
1274
+ metaTitle?: string | undefined;
1275
+ metaDescription?: string | undefined;
1276
+ genreIds?: number[] | undefined;
1277
+ tagIds?: number[] | undefined;
1278
+ regionIds?: number[] | undefined;
1279
+ }, {
1280
+ type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
1281
+ status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
1282
+ slug?: string | undefined;
1283
+ title?: string | undefined;
1284
+ originalTitle?: string | undefined;
1285
+ categoryId?: number | undefined;
1286
+ parentProductId?: number | undefined;
1287
+ description?: string | undefined;
1288
+ customDescription?: string | undefined;
1289
+ shortDescription?: string | undefined;
1290
+ coverImageUrl?: string | undefined;
1291
+ developer?: string | undefined;
1292
+ publisher?: string | undefined;
1293
+ releaseDate?: string | undefined;
1294
+ steamAppId?: number | undefined;
1295
+ hasMultiplayer?: boolean | undefined;
1296
+ hasCoop?: boolean | undefined;
1297
+ hasSinglePlayer?: boolean | undefined;
1298
+ metaTitle?: string | undefined;
1299
+ metaDescription?: string | undefined;
1300
+ genreIds?: number[] | undefined;
1301
+ tagIds?: number[] | undefined;
1302
+ regionIds?: number[] | undefined;
1303
+ }>;
1304
+ response: z.ZodObject<{
1305
+ id: z.ZodNumber;
1306
+ slug: z.ZodString;
1307
+ title: z.ZodString;
1308
+ originalTitle: z.ZodNullable<z.ZodString>;
1309
+ type: z.ZodString;
1310
+ status: z.ZodString;
1311
+ description: z.ZodNullable<z.ZodString>;
1312
+ customDescription: z.ZodNullable<z.ZodString>;
1313
+ shortDescription: z.ZodNullable<z.ZodString>;
1314
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1315
+ developer: z.ZodNullable<z.ZodString>;
1316
+ publisher: z.ZodNullable<z.ZodString>;
1317
+ releaseDate: z.ZodNullable<z.ZodDate>;
1318
+ steamAppId: z.ZodNullable<z.ZodNumber>;
1319
+ steamRating: z.ZodNullable<z.ZodNumber>;
1320
+ hasMultiplayer: z.ZodBoolean;
1321
+ hasCoop: z.ZodBoolean;
1322
+ hasSinglePlayer: z.ZodBoolean;
1323
+ metaTitle: z.ZodNullable<z.ZodString>;
1324
+ metaDescription: z.ZodNullable<z.ZodString>;
1325
+ salesCount: z.ZodNumber;
1326
+ viewsCount: z.ZodNumber;
1327
+ category: z.ZodObject<{
1328
+ slug: z.ZodString;
1329
+ name: z.ZodString;
1330
+ } & {
1331
+ id: z.ZodNumber;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ id: number;
1334
+ name: string;
1335
+ slug: string;
1336
+ }, {
1337
+ id: number;
1338
+ name: string;
1339
+ slug: string;
1340
+ }>;
1341
+ variants: z.ZodArray<z.ZodObject<{
1342
+ id: z.ZodNumber;
1343
+ name: z.ZodString;
1344
+ sku: z.ZodString;
1345
+ price: z.ZodString;
1346
+ originalPrice: z.ZodNullable<z.ZodString>;
1347
+ topupAmount: z.ZodNullable<z.ZodString>;
1348
+ currency: z.ZodNullable<z.ZodString>;
1349
+ durationDays: z.ZodNullable<z.ZodNumber>;
1350
+ platform: z.ZodNullable<z.ZodString>;
1351
+ regionCode: z.ZodNullable<z.ZodString>;
1352
+ deliveryType: z.ZodString;
1353
+ inStock: z.ZodBoolean;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ id: number;
1356
+ price: string;
1357
+ name: string;
1358
+ sku: string;
1359
+ originalPrice: string | null;
1360
+ topupAmount: string | null;
1361
+ currency: string | null;
1362
+ durationDays: number | null;
1363
+ platform: string | null;
1364
+ regionCode: string | null;
1365
+ deliveryType: string;
1366
+ inStock: boolean;
1367
+ }, {
1368
+ id: number;
1369
+ price: string;
1370
+ name: string;
1371
+ sku: string;
1372
+ originalPrice: string | null;
1373
+ topupAmount: string | null;
1374
+ currency: string | null;
1375
+ durationDays: number | null;
1376
+ platform: string | null;
1377
+ regionCode: string | null;
1378
+ deliveryType: string;
1379
+ inStock: boolean;
1380
+ }>, "many">;
1381
+ media: z.ZodArray<z.ZodObject<{
1382
+ id: z.ZodNumber;
1383
+ type: z.ZodString;
1384
+ url: z.ZodString;
1385
+ alt: z.ZodNullable<z.ZodString>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ type: string;
1388
+ id: number;
1389
+ url: string;
1390
+ alt: string | null;
1391
+ }, {
1392
+ type: string;
1393
+ id: number;
1394
+ url: string;
1395
+ alt: string | null;
1396
+ }>, "many">;
1397
+ genres: z.ZodArray<z.ZodObject<{
1398
+ id: z.ZodNumber;
1399
+ slug: z.ZodString;
1400
+ name: z.ZodString;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ id: number;
1403
+ name: string;
1404
+ slug: string;
1405
+ }, {
1406
+ id: number;
1407
+ name: string;
1408
+ slug: string;
1409
+ }>, "many">;
1410
+ tags: z.ZodArray<z.ZodObject<{
1411
+ id: z.ZodNumber;
1412
+ slug: z.ZodString;
1413
+ name: z.ZodString;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ id: number;
1416
+ name: string;
1417
+ slug: string;
1418
+ }, {
1419
+ id: number;
1420
+ name: string;
1421
+ slug: string;
1422
+ }>, "many">;
1423
+ regions: z.ZodArray<z.ZodObject<Omit<{
1424
+ id: z.ZodNumber;
1425
+ code: z.ZodString;
1426
+ name: z.ZodString;
1427
+ _count: z.ZodObject<{
1428
+ products: z.ZodNumber;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ products: number;
1431
+ }, {
1432
+ products: number;
1433
+ }>;
1434
+ }, "_count">, "strip", z.ZodTypeAny, {
1435
+ code: string;
1436
+ id: number;
1437
+ name: string;
1438
+ }, {
1439
+ code: string;
1440
+ id: number;
1441
+ name: string;
1442
+ }>, "many">;
1443
+ systemRequirements: z.ZodArray<z.ZodObject<{
1444
+ type: z.ZodString;
1445
+ os: z.ZodNullable<z.ZodString>;
1446
+ processor: z.ZodNullable<z.ZodString>;
1447
+ memory: z.ZodNullable<z.ZodString>;
1448
+ graphics: z.ZodNullable<z.ZodString>;
1449
+ storage: z.ZodNullable<z.ZodString>;
1450
+ directx: z.ZodNullable<z.ZodString>;
1451
+ network: z.ZodNullable<z.ZodString>;
1452
+ additional: z.ZodNullable<z.ZodString>;
1453
+ }, "strip", z.ZodTypeAny, {
1454
+ type: string;
1455
+ os: string | null;
1456
+ processor: string | null;
1457
+ memory: string | null;
1458
+ graphics: string | null;
1459
+ storage: string | null;
1460
+ directx: string | null;
1461
+ network: string | null;
1462
+ additional: string | null;
1463
+ }, {
1464
+ type: string;
1465
+ os: string | null;
1466
+ processor: string | null;
1467
+ memory: string | null;
1468
+ graphics: string | null;
1469
+ storage: string | null;
1470
+ directx: string | null;
1471
+ network: string | null;
1472
+ additional: string | null;
1473
+ }>, "many">;
1474
+ dlcs: z.ZodArray<z.ZodObject<{
1475
+ id: z.ZodNumber;
1476
+ slug: z.ZodString;
1477
+ title: z.ZodString;
1478
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1479
+ variants: z.ZodArray<z.ZodObject<{
1480
+ price: z.ZodAny;
1481
+ originalPrice: z.ZodAny;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ price?: any;
1484
+ originalPrice?: any;
1485
+ }, {
1486
+ price?: any;
1487
+ originalPrice?: any;
1488
+ }>, "many">;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ id: number;
1491
+ slug: string;
1492
+ title: string;
1493
+ coverImageUrl: string | null;
1494
+ variants: {
1495
+ price?: any;
1496
+ originalPrice?: any;
1497
+ }[];
1498
+ }, {
1499
+ id: number;
1500
+ slug: string;
1501
+ title: string;
1502
+ coverImageUrl: string | null;
1503
+ variants: {
1504
+ price?: any;
1505
+ originalPrice?: any;
1506
+ }[];
1507
+ }>, "many">;
1508
+ createdAt: z.ZodDate;
1509
+ updatedAt: z.ZodDate;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ type: string;
1512
+ status: string;
1513
+ id: number;
1514
+ createdAt: Date;
1515
+ updatedAt: Date;
1516
+ slug: string;
1517
+ title: string;
1518
+ originalTitle: string | null;
1519
+ description: string | null;
1520
+ customDescription: string | null;
1521
+ shortDescription: string | null;
1522
+ coverImageUrl: string | null;
1523
+ developer: string | null;
1524
+ publisher: string | null;
1525
+ releaseDate: Date | null;
1526
+ steamAppId: number | null;
1527
+ hasMultiplayer: boolean;
1528
+ hasCoop: boolean;
1529
+ hasSinglePlayer: boolean;
1530
+ metaTitle: string | null;
1531
+ metaDescription: string | null;
1532
+ variants: {
1533
+ id: number;
1534
+ price: string;
1535
+ name: string;
1536
+ sku: string;
1537
+ originalPrice: string | null;
1538
+ topupAmount: string | null;
1539
+ currency: string | null;
1540
+ durationDays: number | null;
1541
+ platform: string | null;
1542
+ regionCode: string | null;
1543
+ deliveryType: string;
1544
+ inStock: boolean;
1545
+ }[];
1546
+ steamRating: number | null;
1547
+ salesCount: number;
1548
+ category: {
1549
+ id: number;
1550
+ name: string;
1551
+ slug: string;
1552
+ };
1553
+ genres: {
1554
+ id: number;
1555
+ name: string;
1556
+ slug: string;
1557
+ }[];
1558
+ regions: {
1559
+ code: string;
1560
+ id: number;
1561
+ name: string;
1562
+ }[];
1563
+ viewsCount: number;
1564
+ media: {
1565
+ type: string;
1566
+ id: number;
1567
+ url: string;
1568
+ alt: string | null;
1569
+ }[];
1570
+ tags: {
1571
+ id: number;
1572
+ name: string;
1573
+ slug: string;
1574
+ }[];
1575
+ systemRequirements: {
1576
+ type: string;
1577
+ os: string | null;
1578
+ processor: string | null;
1579
+ memory: string | null;
1580
+ graphics: string | null;
1581
+ storage: string | null;
1582
+ directx: string | null;
1583
+ network: string | null;
1584
+ additional: string | null;
1585
+ }[];
1586
+ dlcs: {
1587
+ id: number;
1588
+ slug: string;
1589
+ title: string;
1590
+ coverImageUrl: string | null;
1591
+ variants: {
1592
+ price?: any;
1593
+ originalPrice?: any;
1594
+ }[];
1595
+ }[];
1596
+ }, {
1597
+ type: string;
1598
+ status: string;
1599
+ id: number;
1600
+ createdAt: Date;
1601
+ updatedAt: Date;
1602
+ slug: string;
1603
+ title: string;
1604
+ originalTitle: string | null;
1605
+ description: string | null;
1606
+ customDescription: string | null;
1607
+ shortDescription: string | null;
1608
+ coverImageUrl: string | null;
1609
+ developer: string | null;
1610
+ publisher: string | null;
1611
+ releaseDate: Date | null;
1612
+ steamAppId: number | null;
1613
+ hasMultiplayer: boolean;
1614
+ hasCoop: boolean;
1615
+ hasSinglePlayer: boolean;
1616
+ metaTitle: string | null;
1617
+ metaDescription: string | null;
1618
+ variants: {
1619
+ id: number;
1620
+ price: string;
1621
+ name: string;
1622
+ sku: string;
1623
+ originalPrice: string | null;
1624
+ topupAmount: string | null;
1625
+ currency: string | null;
1626
+ durationDays: number | null;
1627
+ platform: string | null;
1628
+ regionCode: string | null;
1629
+ deliveryType: string;
1630
+ inStock: boolean;
1631
+ }[];
1632
+ steamRating: number | null;
1633
+ salesCount: number;
1634
+ category: {
1635
+ id: number;
1636
+ name: string;
1637
+ slug: string;
1638
+ };
1639
+ genres: {
1640
+ id: number;
1641
+ name: string;
1642
+ slug: string;
1643
+ }[];
1644
+ regions: {
1645
+ code: string;
1646
+ id: number;
1647
+ name: string;
1648
+ }[];
1649
+ viewsCount: number;
1650
+ media: {
1651
+ type: string;
1652
+ id: number;
1653
+ url: string;
1654
+ alt: string | null;
1655
+ }[];
1656
+ tags: {
1657
+ id: number;
1658
+ name: string;
1659
+ slug: string;
1660
+ }[];
1661
+ systemRequirements: {
1662
+ type: string;
1663
+ os: string | null;
1664
+ processor: string | null;
1665
+ memory: string | null;
1666
+ graphics: string | null;
1667
+ storage: string | null;
1668
+ directx: string | null;
1669
+ network: string | null;
1670
+ additional: string | null;
1671
+ }[];
1672
+ dlcs: {
1673
+ id: number;
1674
+ slug: string;
1675
+ title: string;
1676
+ coverImageUrl: string | null;
1677
+ variants: {
1678
+ price?: any;
1679
+ originalPrice?: any;
1680
+ }[];
1681
+ }[];
1682
+ }>;
1683
+ };
1684
+ archive: {
1685
+ method: "DELETE";
1686
+ path: string;
1687
+ response: z.ZodObject<{
1688
+ status: z.ZodString;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ status: string;
1691
+ }, {
1692
+ status: string;
1693
+ }>;
1694
+ };
1695
+ createVariant: {
1696
+ method: "POST";
1697
+ path: string;
1698
+ request: z.ZodObject<{
1699
+ name: z.ZodString;
1700
+ sku: z.ZodString;
1701
+ price: z.ZodNumber;
1702
+ originalPrice: z.ZodOptional<z.ZodNumber>;
1703
+ costPrice: z.ZodOptional<z.ZodNumber>;
1704
+ topupAmount: z.ZodOptional<z.ZodNumber>;
1705
+ currency: z.ZodOptional<z.ZodString>;
1706
+ durationDays: z.ZodOptional<z.ZodNumber>;
1707
+ platform: z.ZodOptional<z.ZodString>;
1708
+ regionCode: z.ZodOptional<z.ZodString>;
1709
+ deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ price: number;
1712
+ name: string;
1713
+ sku: string;
1714
+ deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
1715
+ originalPrice?: number | undefined;
1716
+ costPrice?: number | undefined;
1717
+ topupAmount?: number | undefined;
1718
+ currency?: string | undefined;
1719
+ durationDays?: number | undefined;
1720
+ platform?: string | undefined;
1721
+ regionCode?: string | undefined;
1722
+ }, {
1723
+ price: number;
1724
+ name: string;
1725
+ sku: string;
1726
+ originalPrice?: number | undefined;
1727
+ costPrice?: number | undefined;
1728
+ topupAmount?: number | undefined;
1729
+ currency?: string | undefined;
1730
+ durationDays?: number | undefined;
1731
+ platform?: string | undefined;
1732
+ regionCode?: string | undefined;
1733
+ deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
1734
+ }>;
1735
+ };
1736
+ updateVariant: {
1737
+ method: "PUT";
1738
+ path: string;
1739
+ request: z.ZodObject<{
1740
+ name: z.ZodString;
1741
+ sku: z.ZodString;
1742
+ price: z.ZodNumber;
1743
+ originalPrice: z.ZodOptional<z.ZodNumber>;
1744
+ costPrice: z.ZodOptional<z.ZodNumber>;
1745
+ topupAmount: z.ZodOptional<z.ZodNumber>;
1746
+ currency: z.ZodOptional<z.ZodString>;
1747
+ durationDays: z.ZodOptional<z.ZodNumber>;
1748
+ platform: z.ZodOptional<z.ZodString>;
1749
+ regionCode: z.ZodOptional<z.ZodString>;
1750
+ deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ price: number;
1753
+ name: string;
1754
+ sku: string;
1755
+ deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
1756
+ originalPrice?: number | undefined;
1757
+ costPrice?: number | undefined;
1758
+ topupAmount?: number | undefined;
1759
+ currency?: string | undefined;
1760
+ durationDays?: number | undefined;
1761
+ platform?: string | undefined;
1762
+ regionCode?: string | undefined;
1763
+ }, {
1764
+ price: number;
1765
+ name: string;
1766
+ sku: string;
1767
+ originalPrice?: number | undefined;
1768
+ costPrice?: number | undefined;
1769
+ topupAmount?: number | undefined;
1770
+ currency?: string | undefined;
1771
+ durationDays?: number | undefined;
1772
+ platform?: string | undefined;
1773
+ regionCode?: string | undefined;
1774
+ deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
1775
+ }>;
1776
+ };
1777
+ importKeys: {
1778
+ method: "POST";
1779
+ path: string;
1780
+ request: z.ZodObject<{
1781
+ keys: z.ZodArray<z.ZodString, "many">;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ keys: string[];
1784
+ }, {
1785
+ keys: string[];
1786
+ }>;
1787
+ response: z.ZodObject<{
1788
+ imported: z.ZodNumber;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ imported: number;
1791
+ }, {
1792
+ imported: number;
1793
+ }>;
1794
+ };
1795
+ getKeysCount: {
1796
+ method: "GET";
1797
+ path: string;
1798
+ response: z.ZodObject<{
1799
+ available: z.ZodNumber;
1800
+ sold: z.ZodNumber;
1801
+ reserved: z.ZodNumber;
1802
+ total: z.ZodNumber;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ total: number;
1805
+ available: number;
1806
+ sold: number;
1807
+ reserved: number;
1808
+ }, {
1809
+ total: number;
1810
+ available: number;
1811
+ sold: number;
1812
+ reserved: number;
1813
+ }>;
1814
+ };
1815
+ addMedia: {
1816
+ method: "POST";
1817
+ path: string;
1818
+ request: z.ZodObject<{
1819
+ type: z.ZodEnum<["SCREENSHOT", "SLIDER", "VIDEO", "TRAILER"]>;
1820
+ url: z.ZodString;
1821
+ alt: z.ZodOptional<z.ZodString>;
1822
+ sortOrder: z.ZodDefault<z.ZodNumber>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
1825
+ url: string;
1826
+ sortOrder: number;
1827
+ alt?: string | undefined;
1828
+ }, {
1829
+ type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
1830
+ url: string;
1831
+ alt?: string | undefined;
1832
+ sortOrder?: number | undefined;
1833
+ }>;
1834
+ };
1835
+ removeMedia: {
1836
+ method: "DELETE";
1837
+ path: string;
1838
+ };
1839
+ upsertSystemRequirements: {
1840
+ method: "POST";
1841
+ path: string;
1842
+ request: z.ZodObject<{
1843
+ type: z.ZodEnum<["minimum", "recommended"]>;
1844
+ os: z.ZodOptional<z.ZodString>;
1845
+ processor: z.ZodOptional<z.ZodString>;
1846
+ memory: z.ZodOptional<z.ZodString>;
1847
+ graphics: z.ZodOptional<z.ZodString>;
1848
+ storage: z.ZodOptional<z.ZodString>;
1849
+ directx: z.ZodOptional<z.ZodString>;
1850
+ network: z.ZodOptional<z.ZodString>;
1851
+ additional: z.ZodOptional<z.ZodString>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ type: "minimum" | "recommended";
1854
+ os?: string | undefined;
1855
+ processor?: string | undefined;
1856
+ memory?: string | undefined;
1857
+ graphics?: string | undefined;
1858
+ storage?: string | undefined;
1859
+ directx?: string | undefined;
1860
+ network?: string | undefined;
1861
+ additional?: string | undefined;
1862
+ }, {
1863
+ type: "minimum" | "recommended";
1864
+ os?: string | undefined;
1865
+ processor?: string | undefined;
1866
+ memory?: string | undefined;
1867
+ graphics?: string | undefined;
1868
+ storage?: string | undefined;
1869
+ directx?: string | undefined;
1870
+ network?: string | undefined;
1871
+ additional?: string | undefined;
1872
+ }>;
1873
+ };
1874
+ };
1875
+ export type ProductEndpointKey = keyof typeof ProductEndpoints;
1876
+ export type GetProductRequest<K extends ProductEndpointKey> = typeof ProductEndpoints[K] extends {
1877
+ request: z.ZodTypeAny;
1878
+ } ? z.infer<typeof ProductEndpoints[K]["request"]> : never;
1879
+ export type GetProductResponse<K extends ProductEndpointKey> = typeof ProductEndpoints[K] extends {
1880
+ response: z.ZodTypeAny;
1881
+ } ? z.infer<typeof ProductEndpoints[K]["response"]> : never;