@gigapay-dev/contracts 3.5.0 → 3.7.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/README.md +1 -1
- package/build/domains/products/commands.d.ts +177 -6
- package/build/domains/products/commands.d.ts.map +1 -1
- package/build/domains/products/commands.js +32 -5
- package/build/domains/products/commands.js.map +1 -1
- package/build/domains/products/index.d.ts +42 -2
- package/build/domains/products/index.d.ts.map +1 -1
- package/build/index.d.ts +42 -2
- package/build/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# Contracts
|
|
1
|
+
# Contracts
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const CreateProductRequestSchema: z.ZodObject<{
|
|
3
3
|
slug: z.ZodString;
|
|
4
4
|
title: z.ZodString;
|
|
5
|
+
originalTitle: z.ZodOptional<z.ZodString>;
|
|
5
6
|
type: z.ZodEnum<{
|
|
6
7
|
GAME_KEY: "GAME_KEY";
|
|
7
8
|
GAME_GIFT: "GAME_GIFT";
|
|
@@ -16,9 +17,9 @@ export declare const CreateProductRequestSchema: z.ZodObject<{
|
|
|
16
17
|
description: z.ZodOptional<z.ZodString>;
|
|
17
18
|
shortDescription: z.ZodOptional<z.ZodString>;
|
|
18
19
|
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
20
|
+
catalogImageUrl: z.ZodOptional<z.ZodURL>;
|
|
21
|
+
cardImageUrl: z.ZodOptional<z.ZodURL>;
|
|
19
22
|
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
22
23
|
categoryId: z.ZodNumber;
|
|
23
24
|
}, z.core.$strip>;
|
|
24
25
|
export type CreateProductRequest = z.infer<typeof CreateProductRequestSchema>;
|
|
@@ -74,7 +75,97 @@ export declare const ParseSteamEditionSchema: z.ZodObject<{
|
|
|
74
75
|
}, z.core.$strip>>;
|
|
75
76
|
}, z.core.$strip>;
|
|
76
77
|
export type ParseSteamEdition = z.infer<typeof ParseSteamEditionSchema>;
|
|
78
|
+
export declare const SteamImageVariantSchema: z.ZodObject<{
|
|
79
|
+
url: z.ZodString;
|
|
80
|
+
width: z.ZodNumber;
|
|
81
|
+
height: z.ZodNumber;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type SteamImageVariant = z.infer<typeof SteamImageVariantSchema>;
|
|
84
|
+
/**
|
|
85
|
+
* Набор изображений игры из Steam CDN.
|
|
86
|
+
* Горизонтальные — под десктоп, вертикальные — под мобильные карточки.
|
|
87
|
+
* Любое поле может быть null: у новых / непопулярных игр часть ассетов не залита.
|
|
88
|
+
*/
|
|
89
|
+
export declare const SteamImageSetSchema: z.ZodObject<{
|
|
90
|
+
header: z.ZodNullable<z.ZodObject<{
|
|
91
|
+
url: z.ZodString;
|
|
92
|
+
width: z.ZodNumber;
|
|
93
|
+
height: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
capsule: z.ZodNullable<z.ZodObject<{
|
|
96
|
+
url: z.ZodString;
|
|
97
|
+
width: z.ZodNumber;
|
|
98
|
+
height: z.ZodNumber;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
hero: z.ZodNullable<z.ZodObject<{
|
|
101
|
+
url: z.ZodString;
|
|
102
|
+
width: z.ZodNumber;
|
|
103
|
+
height: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
portrait: z.ZodNullable<z.ZodObject<{
|
|
106
|
+
url: z.ZodString;
|
|
107
|
+
width: z.ZodNumber;
|
|
108
|
+
height: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
portrait2x: z.ZodNullable<z.ZodObject<{
|
|
111
|
+
url: z.ZodString;
|
|
112
|
+
width: z.ZodNumber;
|
|
113
|
+
height: z.ZodNumber;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
heroCapsule: z.ZodNullable<z.ZodObject<{
|
|
116
|
+
url: z.ZodString;
|
|
117
|
+
width: z.ZodNumber;
|
|
118
|
+
height: z.ZodNumber;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
logo: z.ZodNullable<z.ZodObject<{
|
|
121
|
+
url: z.ZodString;
|
|
122
|
+
width: z.ZodNumber;
|
|
123
|
+
height: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
background: z.ZodNullable<z.ZodString>;
|
|
126
|
+
screenshots: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type SteamImageSet = z.infer<typeof SteamImageSetSchema>;
|
|
77
129
|
export declare const ParseSteamResponseSchema: z.ZodObject<{
|
|
130
|
+
images: z.ZodObject<{
|
|
131
|
+
header: z.ZodNullable<z.ZodObject<{
|
|
132
|
+
url: z.ZodString;
|
|
133
|
+
width: z.ZodNumber;
|
|
134
|
+
height: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
capsule: z.ZodNullable<z.ZodObject<{
|
|
137
|
+
url: z.ZodString;
|
|
138
|
+
width: z.ZodNumber;
|
|
139
|
+
height: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
hero: z.ZodNullable<z.ZodObject<{
|
|
142
|
+
url: z.ZodString;
|
|
143
|
+
width: z.ZodNumber;
|
|
144
|
+
height: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
portrait: z.ZodNullable<z.ZodObject<{
|
|
147
|
+
url: z.ZodString;
|
|
148
|
+
width: z.ZodNumber;
|
|
149
|
+
height: z.ZodNumber;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
portrait2x: z.ZodNullable<z.ZodObject<{
|
|
152
|
+
url: z.ZodString;
|
|
153
|
+
width: z.ZodNumber;
|
|
154
|
+
height: z.ZodNumber;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
heroCapsule: z.ZodNullable<z.ZodObject<{
|
|
157
|
+
url: z.ZodString;
|
|
158
|
+
width: z.ZodNumber;
|
|
159
|
+
height: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
logo: z.ZodNullable<z.ZodObject<{
|
|
162
|
+
url: z.ZodString;
|
|
163
|
+
width: z.ZodNumber;
|
|
164
|
+
height: z.ZodNumber;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
background: z.ZodNullable<z.ZodString>;
|
|
167
|
+
screenshots: z.ZodArray<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>;
|
|
78
169
|
appId: z.ZodNumber;
|
|
79
170
|
slug: z.ZodString;
|
|
80
171
|
title: z.ZodString;
|
|
@@ -117,6 +208,7 @@ export declare const CreateProductEndpoint: {
|
|
|
117
208
|
readonly request: z.ZodObject<{
|
|
118
209
|
slug: z.ZodString;
|
|
119
210
|
title: z.ZodString;
|
|
211
|
+
originalTitle: z.ZodOptional<z.ZodString>;
|
|
120
212
|
type: z.ZodEnum<{
|
|
121
213
|
GAME_KEY: "GAME_KEY";
|
|
122
214
|
GAME_GIFT: "GAME_GIFT";
|
|
@@ -131,9 +223,9 @@ export declare const CreateProductEndpoint: {
|
|
|
131
223
|
description: z.ZodOptional<z.ZodString>;
|
|
132
224
|
shortDescription: z.ZodOptional<z.ZodString>;
|
|
133
225
|
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
226
|
+
catalogImageUrl: z.ZodOptional<z.ZodURL>;
|
|
227
|
+
cardImageUrl: z.ZodOptional<z.ZodURL>;
|
|
134
228
|
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
136
|
-
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
137
229
|
categoryId: z.ZodNumber;
|
|
138
230
|
}, z.core.$strip>;
|
|
139
231
|
readonly response: z.ZodObject<{
|
|
@@ -224,6 +316,45 @@ export declare const ParseSteamEndpoint: {
|
|
|
224
316
|
appId: z.ZodCoercedNumber<unknown>;
|
|
225
317
|
}, z.core.$strip>;
|
|
226
318
|
readonly response: z.ZodObject<{
|
|
319
|
+
images: z.ZodObject<{
|
|
320
|
+
header: z.ZodNullable<z.ZodObject<{
|
|
321
|
+
url: z.ZodString;
|
|
322
|
+
width: z.ZodNumber;
|
|
323
|
+
height: z.ZodNumber;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
capsule: z.ZodNullable<z.ZodObject<{
|
|
326
|
+
url: z.ZodString;
|
|
327
|
+
width: z.ZodNumber;
|
|
328
|
+
height: z.ZodNumber;
|
|
329
|
+
}, z.core.$strip>>;
|
|
330
|
+
hero: z.ZodNullable<z.ZodObject<{
|
|
331
|
+
url: z.ZodString;
|
|
332
|
+
width: z.ZodNumber;
|
|
333
|
+
height: z.ZodNumber;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
portrait: z.ZodNullable<z.ZodObject<{
|
|
336
|
+
url: z.ZodString;
|
|
337
|
+
width: z.ZodNumber;
|
|
338
|
+
height: z.ZodNumber;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
portrait2x: z.ZodNullable<z.ZodObject<{
|
|
341
|
+
url: z.ZodString;
|
|
342
|
+
width: z.ZodNumber;
|
|
343
|
+
height: z.ZodNumber;
|
|
344
|
+
}, z.core.$strip>>;
|
|
345
|
+
heroCapsule: z.ZodNullable<z.ZodObject<{
|
|
346
|
+
url: z.ZodString;
|
|
347
|
+
width: z.ZodNumber;
|
|
348
|
+
height: z.ZodNumber;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
logo: z.ZodNullable<z.ZodObject<{
|
|
351
|
+
url: z.ZodString;
|
|
352
|
+
width: z.ZodNumber;
|
|
353
|
+
height: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
background: z.ZodNullable<z.ZodString>;
|
|
356
|
+
screenshots: z.ZodArray<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>;
|
|
227
358
|
appId: z.ZodNumber;
|
|
228
359
|
slug: z.ZodString;
|
|
229
360
|
title: z.ZodString;
|
|
@@ -286,6 +417,7 @@ export declare const ProductCommands: {
|
|
|
286
417
|
readonly request: z.ZodObject<{
|
|
287
418
|
slug: z.ZodString;
|
|
288
419
|
title: z.ZodString;
|
|
420
|
+
originalTitle: z.ZodOptional<z.ZodString>;
|
|
289
421
|
type: z.ZodEnum<{
|
|
290
422
|
GAME_KEY: "GAME_KEY";
|
|
291
423
|
GAME_GIFT: "GAME_GIFT";
|
|
@@ -300,9 +432,9 @@ export declare const ProductCommands: {
|
|
|
300
432
|
description: z.ZodOptional<z.ZodString>;
|
|
301
433
|
shortDescription: z.ZodOptional<z.ZodString>;
|
|
302
434
|
coverImageUrl: z.ZodOptional<z.ZodURL>;
|
|
435
|
+
catalogImageUrl: z.ZodOptional<z.ZodURL>;
|
|
436
|
+
cardImageUrl: z.ZodOptional<z.ZodURL>;
|
|
303
437
|
steamAppId: z.ZodOptional<z.ZodNumber>;
|
|
304
|
-
showcaseId: z.ZodOptional<z.ZodNumber>;
|
|
305
|
-
subShowcaseId: z.ZodOptional<z.ZodNumber>;
|
|
306
438
|
categoryId: z.ZodNumber;
|
|
307
439
|
}, z.core.$strip>;
|
|
308
440
|
readonly response: z.ZodObject<{
|
|
@@ -410,6 +542,45 @@ export declare const ProductCommands: {
|
|
|
410
542
|
appId: z.ZodCoercedNumber<unknown>;
|
|
411
543
|
}, z.core.$strip>;
|
|
412
544
|
readonly response: z.ZodObject<{
|
|
545
|
+
images: z.ZodObject<{
|
|
546
|
+
header: z.ZodNullable<z.ZodObject<{
|
|
547
|
+
url: z.ZodString;
|
|
548
|
+
width: z.ZodNumber;
|
|
549
|
+
height: z.ZodNumber;
|
|
550
|
+
}, z.core.$strip>>;
|
|
551
|
+
capsule: z.ZodNullable<z.ZodObject<{
|
|
552
|
+
url: z.ZodString;
|
|
553
|
+
width: z.ZodNumber;
|
|
554
|
+
height: z.ZodNumber;
|
|
555
|
+
}, z.core.$strip>>;
|
|
556
|
+
hero: z.ZodNullable<z.ZodObject<{
|
|
557
|
+
url: z.ZodString;
|
|
558
|
+
width: z.ZodNumber;
|
|
559
|
+
height: z.ZodNumber;
|
|
560
|
+
}, z.core.$strip>>;
|
|
561
|
+
portrait: z.ZodNullable<z.ZodObject<{
|
|
562
|
+
url: z.ZodString;
|
|
563
|
+
width: z.ZodNumber;
|
|
564
|
+
height: z.ZodNumber;
|
|
565
|
+
}, z.core.$strip>>;
|
|
566
|
+
portrait2x: z.ZodNullable<z.ZodObject<{
|
|
567
|
+
url: z.ZodString;
|
|
568
|
+
width: z.ZodNumber;
|
|
569
|
+
height: z.ZodNumber;
|
|
570
|
+
}, z.core.$strip>>;
|
|
571
|
+
heroCapsule: z.ZodNullable<z.ZodObject<{
|
|
572
|
+
url: z.ZodString;
|
|
573
|
+
width: z.ZodNumber;
|
|
574
|
+
height: z.ZodNumber;
|
|
575
|
+
}, z.core.$strip>>;
|
|
576
|
+
logo: z.ZodNullable<z.ZodObject<{
|
|
577
|
+
url: z.ZodString;
|
|
578
|
+
width: z.ZodNumber;
|
|
579
|
+
height: z.ZodNumber;
|
|
580
|
+
}, z.core.$strip>>;
|
|
581
|
+
background: z.ZodNullable<z.ZodString>;
|
|
582
|
+
screenshots: z.ZodArray<z.ZodString>;
|
|
583
|
+
}, z.core.$strip>;
|
|
413
584
|
appId: z.ZodNumber;
|
|
414
585
|
slug: z.ZodString;
|
|
415
586
|
title: z.ZodString;
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOG,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAOE,CAAC;AAEtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAOE,CAAC;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOG,CAAC;AAEtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAQM,CAAC;AAEtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOM,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;CAQA,CAAC;AAEtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlB,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.PublishProductEndpoint = exports.ArchiveProductEndpoint = exports.CreateProductEndpoint = exports.ParseSteamResponseSchema = exports.ParseSteamEditionSchema = exports.ParseSteamGameModeSchema = exports.SetVariantMarginRequestSchema = exports.ImportKeysRequestSchema = exports.CreateVariantRequestSchema = exports.CreateProductRequestSchema = void 0;
|
|
3
|
+
exports.ProductCommands = exports.SetVariantMarginEndpoint = exports.ParseSteamEndpoint = exports.ImportKeysEndpoint = exports.CreateVariantEndpoint = exports.PublishProductEndpoint = exports.ArchiveProductEndpoint = exports.CreateProductEndpoint = exports.ParseSteamResponseSchema = exports.SteamImageSetSchema = exports.SteamImageVariantSchema = 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");
|
|
@@ -8,14 +8,16 @@ const dtos_1 = require("./dtos");
|
|
|
8
8
|
exports.CreateProductRequestSchema = zod_1.z.object({
|
|
9
9
|
slug: zod_1.z.string().min(1).max(128),
|
|
10
10
|
title: zod_1.z.string().min(1).max(256),
|
|
11
|
+
originalTitle: zod_1.z.string().max(256).optional(),
|
|
11
12
|
type: dtos_1.ProductTypeSchema,
|
|
12
13
|
basePriceUsd: money_1.MoneyAmountSchema,
|
|
13
|
-
description: zod_1.z.string().max(
|
|
14
|
-
shortDescription: zod_1.z.string().max(
|
|
14
|
+
description: zod_1.z.string().max(65_536).optional(),
|
|
15
|
+
shortDescription: zod_1.z.string().max(2048).optional(),
|
|
15
16
|
coverImageUrl: zod_1.z.url().optional(),
|
|
17
|
+
catalogImageUrl: zod_1.z.url().optional(),
|
|
18
|
+
cardImageUrl: zod_1.z.url().optional(),
|
|
16
19
|
steamAppId: zod_1.z.number().int().positive().optional(),
|
|
17
|
-
|
|
18
|
-
subShowcaseId: zod_1.z.number().int().positive().optional(),
|
|
20
|
+
// Каталожная привязка выводится из категории: category → (showcase | subShowcase).
|
|
19
21
|
categoryId: zod_1.z.number().int().positive(),
|
|
20
22
|
});
|
|
21
23
|
exports.CreateVariantRequestSchema = zod_1.z.object({
|
|
@@ -53,7 +55,32 @@ exports.ParseSteamEditionSchema = zod_1.z.object({
|
|
|
53
55
|
discount: zod_1.z.string(),
|
|
54
56
|
})),
|
|
55
57
|
});
|
|
58
|
+
exports.SteamImageVariantSchema = zod_1.z.object({
|
|
59
|
+
url: zod_1.z.string(),
|
|
60
|
+
width: zod_1.z.number().int().positive(),
|
|
61
|
+
height: zod_1.z.number().int().positive(),
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Набор изображений игры из Steam CDN.
|
|
65
|
+
* Горизонтальные — под десктоп, вертикальные — под мобильные карточки.
|
|
66
|
+
* Любое поле может быть null: у новых / непопулярных игр часть ассетов не залита.
|
|
67
|
+
*/
|
|
68
|
+
exports.SteamImageSetSchema = zod_1.z.object({
|
|
69
|
+
// Горизонтальные (десктоп)
|
|
70
|
+
header: exports.SteamImageVariantSchema.nullable(),
|
|
71
|
+
capsule: exports.SteamImageVariantSchema.nullable(),
|
|
72
|
+
hero: exports.SteamImageVariantSchema.nullable(),
|
|
73
|
+
// Вертикальные (мобилка)
|
|
74
|
+
portrait: exports.SteamImageVariantSchema.nullable(),
|
|
75
|
+
portrait2x: exports.SteamImageVariantSchema.nullable(),
|
|
76
|
+
heroCapsule: exports.SteamImageVariantSchema.nullable(),
|
|
77
|
+
// Прозрачный логотип для наложения на hero
|
|
78
|
+
logo: exports.SteamImageVariantSchema.nullable(),
|
|
79
|
+
background: zod_1.z.string().nullable(),
|
|
80
|
+
screenshots: zod_1.z.array(zod_1.z.string()),
|
|
81
|
+
});
|
|
56
82
|
exports.ParseSteamResponseSchema = zod_1.z.object({
|
|
83
|
+
images: exports.SteamImageSetSchema,
|
|
57
84
|
appId: zod_1.z.number().int().positive(),
|
|
58
85
|
slug: zod_1.z.string(),
|
|
59
86
|
title: zod_1.z.string(),
|
|
@@ -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,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,IAAI,EAAE,wBAAiB;IACvB,YAAY,EAAE,yBAAiB;IAC/B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,
|
|
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,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC7C,IAAI,EAAE,wBAAiB;IACvB,YAAY,EAAE,yBAAiB;IAC/B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IAC9C,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAA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AI;CACiB,CAAC;AAEzB,QAAA,kBAAkB,GAAG;IACjC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wCAAwC;IAC9C,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;IAC/D,QAAQ,EAAE,gCAAwB;IAClC,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,IAAI;CACiB,CAAC;AAEzB,QAAA,wBAAwB,GAAG;IACvC,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,yCAAyC;IAC/C,MAAM,EAAE,sBAAa;IACrB,OAAO,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,OAAO,EAAE,8BAAsB;IAC/B,aAAa,EAAE,6BAAqB;IACpC,UAAU,EAAE,0BAAkB;IAC9B,gBAAgB,EAAE,gCAAwB;IAC1C,UAAU,EAAE,0BAAkB;CACrB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const ProductEndpoints: {
|
|
|
8
8
|
readonly request: import("zod").ZodObject<{
|
|
9
9
|
slug: import("zod").ZodString;
|
|
10
10
|
title: import("zod").ZodString;
|
|
11
|
+
originalTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
12
|
type: import("zod").ZodEnum<{
|
|
12
13
|
GAME_KEY: "GAME_KEY";
|
|
13
14
|
GAME_GIFT: "GAME_GIFT";
|
|
@@ -22,9 +23,9 @@ export declare const ProductEndpoints: {
|
|
|
22
23
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
24
|
shortDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
25
|
coverImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
26
|
+
catalogImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
27
|
+
cardImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
25
28
|
steamAppId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
26
|
-
showcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
27
|
-
subShowcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
29
|
categoryId: import("zod").ZodNumber;
|
|
29
30
|
}, import("zod/v4/core").$strip>;
|
|
30
31
|
readonly response: import("zod").ZodObject<{
|
|
@@ -132,6 +133,45 @@ export declare const ProductEndpoints: {
|
|
|
132
133
|
appId: import("zod").ZodCoercedNumber<unknown>;
|
|
133
134
|
}, import("zod/v4/core").$strip>;
|
|
134
135
|
readonly response: import("zod").ZodObject<{
|
|
136
|
+
images: import("zod").ZodObject<{
|
|
137
|
+
header: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
138
|
+
url: import("zod").ZodString;
|
|
139
|
+
width: import("zod").ZodNumber;
|
|
140
|
+
height: import("zod").ZodNumber;
|
|
141
|
+
}, import("zod/v4/core").$strip>>;
|
|
142
|
+
capsule: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
143
|
+
url: import("zod").ZodString;
|
|
144
|
+
width: import("zod").ZodNumber;
|
|
145
|
+
height: import("zod").ZodNumber;
|
|
146
|
+
}, import("zod/v4/core").$strip>>;
|
|
147
|
+
hero: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
148
|
+
url: import("zod").ZodString;
|
|
149
|
+
width: import("zod").ZodNumber;
|
|
150
|
+
height: import("zod").ZodNumber;
|
|
151
|
+
}, import("zod/v4/core").$strip>>;
|
|
152
|
+
portrait: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
153
|
+
url: import("zod").ZodString;
|
|
154
|
+
width: import("zod").ZodNumber;
|
|
155
|
+
height: import("zod").ZodNumber;
|
|
156
|
+
}, import("zod/v4/core").$strip>>;
|
|
157
|
+
portrait2x: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
158
|
+
url: import("zod").ZodString;
|
|
159
|
+
width: import("zod").ZodNumber;
|
|
160
|
+
height: import("zod").ZodNumber;
|
|
161
|
+
}, import("zod/v4/core").$strip>>;
|
|
162
|
+
heroCapsule: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
163
|
+
url: import("zod").ZodString;
|
|
164
|
+
width: import("zod").ZodNumber;
|
|
165
|
+
height: import("zod").ZodNumber;
|
|
166
|
+
}, import("zod/v4/core").$strip>>;
|
|
167
|
+
logo: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
168
|
+
url: import("zod").ZodString;
|
|
169
|
+
width: import("zod").ZodNumber;
|
|
170
|
+
height: import("zod").ZodNumber;
|
|
171
|
+
}, import("zod/v4/core").$strip>>;
|
|
172
|
+
background: import("zod").ZodNullable<import("zod").ZodString>;
|
|
173
|
+
screenshots: import("zod").ZodArray<import("zod").ZodString>;
|
|
174
|
+
}, import("zod/v4/core").$strip>;
|
|
135
175
|
appId: import("zod").ZodNumber;
|
|
136
176
|
slug: import("zod").ZodString;
|
|
137
177
|
title: import("zod").ZodString;
|
|
@@ -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"}
|
package/build/index.d.ts
CHANGED
|
@@ -811,6 +811,7 @@ export declare const AllEndpoints: {
|
|
|
811
811
|
readonly request: import("zod").ZodObject<{
|
|
812
812
|
slug: import("zod").ZodString;
|
|
813
813
|
title: import("zod").ZodString;
|
|
814
|
+
originalTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
814
815
|
type: import("zod").ZodEnum<{
|
|
815
816
|
GAME_KEY: "GAME_KEY";
|
|
816
817
|
GAME_GIFT: "GAME_GIFT";
|
|
@@ -825,9 +826,9 @@ export declare const AllEndpoints: {
|
|
|
825
826
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
826
827
|
shortDescription: import("zod").ZodOptional<import("zod").ZodString>;
|
|
827
828
|
coverImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
829
|
+
catalogImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
830
|
+
cardImageUrl: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
828
831
|
steamAppId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
829
|
-
showcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
830
|
-
subShowcaseId: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
831
832
|
categoryId: import("zod").ZodNumber;
|
|
832
833
|
}, import("zod/v4/core").$strip>;
|
|
833
834
|
readonly response: import("zod").ZodObject<{
|
|
@@ -935,6 +936,45 @@ export declare const AllEndpoints: {
|
|
|
935
936
|
appId: import("zod").ZodCoercedNumber<unknown>;
|
|
936
937
|
}, import("zod/v4/core").$strip>;
|
|
937
938
|
readonly response: import("zod").ZodObject<{
|
|
939
|
+
images: import("zod").ZodObject<{
|
|
940
|
+
header: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
941
|
+
url: import("zod").ZodString;
|
|
942
|
+
width: import("zod").ZodNumber;
|
|
943
|
+
height: import("zod").ZodNumber;
|
|
944
|
+
}, import("zod/v4/core").$strip>>;
|
|
945
|
+
capsule: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
946
|
+
url: import("zod").ZodString;
|
|
947
|
+
width: import("zod").ZodNumber;
|
|
948
|
+
height: import("zod").ZodNumber;
|
|
949
|
+
}, import("zod/v4/core").$strip>>;
|
|
950
|
+
hero: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
951
|
+
url: import("zod").ZodString;
|
|
952
|
+
width: import("zod").ZodNumber;
|
|
953
|
+
height: import("zod").ZodNumber;
|
|
954
|
+
}, import("zod/v4/core").$strip>>;
|
|
955
|
+
portrait: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
956
|
+
url: import("zod").ZodString;
|
|
957
|
+
width: import("zod").ZodNumber;
|
|
958
|
+
height: import("zod").ZodNumber;
|
|
959
|
+
}, import("zod/v4/core").$strip>>;
|
|
960
|
+
portrait2x: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
961
|
+
url: import("zod").ZodString;
|
|
962
|
+
width: import("zod").ZodNumber;
|
|
963
|
+
height: import("zod").ZodNumber;
|
|
964
|
+
}, import("zod/v4/core").$strip>>;
|
|
965
|
+
heroCapsule: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
966
|
+
url: import("zod").ZodString;
|
|
967
|
+
width: import("zod").ZodNumber;
|
|
968
|
+
height: import("zod").ZodNumber;
|
|
969
|
+
}, import("zod/v4/core").$strip>>;
|
|
970
|
+
logo: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
971
|
+
url: import("zod").ZodString;
|
|
972
|
+
width: import("zod").ZodNumber;
|
|
973
|
+
height: import("zod").ZodNumber;
|
|
974
|
+
}, import("zod/v4/core").$strip>>;
|
|
975
|
+
background: import("zod").ZodNullable<import("zod").ZodString>;
|
|
976
|
+
screenshots: import("zod").ZodArray<import("zod").ZodString>;
|
|
977
|
+
}, import("zod/v4/core").$strip>;
|
|
938
978
|
appId: import("zod").ZodNumber;
|
|
939
979
|
slug: import("zod").ZodString;
|
|
940
980
|
title: import("zod").ZodString;
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CA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