@gigapay-dev/contracts 3.13.0 → 3.13.2
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/collections/dtos.d.ts +13 -0
- package/build/domains/collections/dtos.d.ts.map +1 -1
- package/build/domains/collections/index.d.ts +13 -0
- package/build/domains/collections/index.d.ts.map +1 -1
- package/build/domains/collections/queries.d.ts +26 -0
- package/build/domains/collections/queries.d.ts.map +1 -1
- package/build/domains/orders/commands.d.ts +6 -6
- package/build/domains/orders/dtos.d.ts +3 -3
- package/build/domains/orders/index.d.ts +12 -12
- package/build/domains/orders/queries.d.ts +18 -18
- package/build/domains/products/dtos.d.ts +26 -0
- package/build/domains/products/dtos.d.ts.map +1 -1
- package/build/domains/products/dtos.js +2 -0
- package/build/domains/products/dtos.js.map +1 -1
- package/build/domains/products/index.d.ts +131 -169
- package/build/domains/products/index.d.ts.map +1 -1
- package/build/domains/products/index.js +3 -0
- package/build/domains/products/index.js.map +1 -1
- package/build/domains/products/queries.d.ts +110 -6
- package/build/domains/products/queries.d.ts.map +1 -1
- package/build/domains/products/reviews.d.ts +286 -0
- package/build/domains/products/reviews.d.ts.map +1 -0
- package/build/domains/products/reviews.js +81 -0
- package/build/domains/products/reviews.js.map +1 -0
- package/build/index.d.ts +155 -181
- package/build/index.d.ts.map +1 -1
- package/build/shared/money.d.ts +5 -3
- package/build/shared/money.d.ts.map +1 -1
- package/build/shared/money.js +8 -4
- package/build/shared/money.js.map +1 -1
- package/package.json +1 -1
|
@@ -113,6 +113,19 @@ export declare const CollectionPageSchema: z.ZodObject<{
|
|
|
113
113
|
kzt: z.ZodString;
|
|
114
114
|
}, z.core.$strip>;
|
|
115
115
|
popularityScore: z.ZodNumber;
|
|
116
|
+
rating: z.ZodObject<{
|
|
117
|
+
average: z.ZodNumber;
|
|
118
|
+
count: z.ZodNumber;
|
|
119
|
+
distribution: z.ZodObject<{
|
|
120
|
+
1: z.ZodNumber;
|
|
121
|
+
2: z.ZodNumber;
|
|
122
|
+
3: z.ZodNumber;
|
|
123
|
+
4: z.ZodNumber;
|
|
124
|
+
5: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
userRating: z.ZodNullable<z.ZodNumber>;
|
|
127
|
+
canRate: z.ZodBoolean;
|
|
128
|
+
}, z.core.$strip>;
|
|
116
129
|
seo: z.ZodObject<{
|
|
117
130
|
metaTitle: z.ZodString;
|
|
118
131
|
metaDescription: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAU3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAUlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAU3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAUlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -166,6 +166,19 @@ export declare const CollectionEndpoints: {
|
|
|
166
166
|
kzt: import("zod").ZodString;
|
|
167
167
|
}, import("zod/v4/core").$strip>;
|
|
168
168
|
popularityScore: import("zod").ZodNumber;
|
|
169
|
+
rating: import("zod").ZodObject<{
|
|
170
|
+
average: import("zod").ZodNumber;
|
|
171
|
+
count: import("zod").ZodNumber;
|
|
172
|
+
distribution: import("zod").ZodObject<{
|
|
173
|
+
1: import("zod").ZodNumber;
|
|
174
|
+
2: import("zod").ZodNumber;
|
|
175
|
+
3: import("zod").ZodNumber;
|
|
176
|
+
4: import("zod").ZodNumber;
|
|
177
|
+
5: import("zod").ZodNumber;
|
|
178
|
+
}, import("zod/v4/core").$strip>;
|
|
179
|
+
userRating: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
180
|
+
canRate: import("zod").ZodBoolean;
|
|
181
|
+
}, import("zod/v4/core").$strip>;
|
|
169
182
|
seo: import("zod").ZodObject<{
|
|
170
183
|
metaTitle: import("zod").ZodString;
|
|
171
184
|
metaDescription: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGtB,CAAC"}
|
|
@@ -81,6 +81,19 @@ export declare const GetCollectionBySlugEndpoint: {
|
|
|
81
81
|
kzt: z.ZodString;
|
|
82
82
|
}, z.core.$strip>;
|
|
83
83
|
popularityScore: z.ZodNumber;
|
|
84
|
+
rating: z.ZodObject<{
|
|
85
|
+
average: z.ZodNumber;
|
|
86
|
+
count: z.ZodNumber;
|
|
87
|
+
distribution: z.ZodObject<{
|
|
88
|
+
1: z.ZodNumber;
|
|
89
|
+
2: z.ZodNumber;
|
|
90
|
+
3: z.ZodNumber;
|
|
91
|
+
4: z.ZodNumber;
|
|
92
|
+
5: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
userRating: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
canRate: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>;
|
|
84
97
|
seo: z.ZodObject<{
|
|
85
98
|
metaTitle: z.ZodString;
|
|
86
99
|
metaDescription: z.ZodString;
|
|
@@ -252,6 +265,19 @@ export declare const CollectionQueries: {
|
|
|
252
265
|
kzt: z.ZodString;
|
|
253
266
|
}, z.core.$strip>;
|
|
254
267
|
popularityScore: z.ZodNumber;
|
|
268
|
+
rating: z.ZodObject<{
|
|
269
|
+
average: z.ZodNumber;
|
|
270
|
+
count: z.ZodNumber;
|
|
271
|
+
distribution: z.ZodObject<{
|
|
272
|
+
1: z.ZodNumber;
|
|
273
|
+
2: z.ZodNumber;
|
|
274
|
+
3: z.ZodNumber;
|
|
275
|
+
4: z.ZodNumber;
|
|
276
|
+
5: z.ZodNumber;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
userRating: z.ZodNullable<z.ZodNumber>;
|
|
279
|
+
canRate: z.ZodBoolean;
|
|
280
|
+
}, z.core.$strip>;
|
|
255
281
|
seo: z.ZodObject<{
|
|
256
282
|
metaTitle: z.ZodString;
|
|
257
283
|
metaDescription: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;EAAgC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAKxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/collections/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;EAAgC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAKxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMH,CAAC;AAEtC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;CAMJ,CAAC;AAEtC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOF,CAAC;AAEtC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpB,CAAC"}
|
|
@@ -105,9 +105,9 @@ export declare const RefundOrderEndpoint: {
|
|
|
105
105
|
}>;
|
|
106
106
|
fetchedAt: z.ZodString;
|
|
107
107
|
rates: z.ZodObject<{
|
|
108
|
-
usdRub: z.ZodString
|
|
109
|
-
usdUah: z.ZodString
|
|
110
|
-
usdKzt: z.ZodString
|
|
108
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
109
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
110
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
111
111
|
}, z.core.$strip>;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
113
|
status: z.ZodEnum<{
|
|
@@ -229,9 +229,9 @@ export declare const OrderCommands: {
|
|
|
229
229
|
}>;
|
|
230
230
|
fetchedAt: z.ZodString;
|
|
231
231
|
rates: z.ZodObject<{
|
|
232
|
-
usdRub: z.ZodString
|
|
233
|
-
usdUah: z.ZodString
|
|
234
|
-
usdKzt: z.ZodString
|
|
232
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
233
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
234
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
235
235
|
}, z.core.$strip>;
|
|
236
236
|
}, z.core.$strip>;
|
|
237
237
|
status: z.ZodEnum<{
|
|
@@ -75,9 +75,9 @@ export declare const OrderResponseSchema: z.ZodObject<{
|
|
|
75
75
|
}>;
|
|
76
76
|
fetchedAt: z.ZodString;
|
|
77
77
|
rates: z.ZodObject<{
|
|
78
|
-
usdRub: z.ZodString
|
|
79
|
-
usdUah: z.ZodString
|
|
80
|
-
usdKzt: z.ZodString
|
|
78
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
79
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
80
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
82
|
}, z.core.$strip>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
@@ -45,9 +45,9 @@ export declare const OrderEndpoints: {
|
|
|
45
45
|
}>;
|
|
46
46
|
fetchedAt: import("zod").ZodString;
|
|
47
47
|
rates: import("zod").ZodObject<{
|
|
48
|
-
usdRub: import("zod").ZodString
|
|
49
|
-
usdUah: import("zod").ZodString
|
|
50
|
-
usdKzt: import("zod").ZodString
|
|
48
|
+
usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
49
|
+
usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
50
|
+
usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
51
51
|
}, import("zod/v4/core").$strip>;
|
|
52
52
|
}, import("zod/v4/core").$strip>;
|
|
53
53
|
status: import("zod").ZodEnum<{
|
|
@@ -128,9 +128,9 @@ export declare const OrderEndpoints: {
|
|
|
128
128
|
}>;
|
|
129
129
|
fetchedAt: import("zod").ZodString;
|
|
130
130
|
rates: import("zod").ZodObject<{
|
|
131
|
-
usdRub: import("zod").ZodString
|
|
132
|
-
usdUah: import("zod").ZodString
|
|
133
|
-
usdKzt: import("zod").ZodString
|
|
131
|
+
usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
132
|
+
usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
133
|
+
usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
134
134
|
}, import("zod/v4/core").$strip>;
|
|
135
135
|
}, import("zod/v4/core").$strip>;
|
|
136
136
|
status: import("zod").ZodEnum<{
|
|
@@ -227,9 +227,9 @@ export declare const OrderEndpoints: {
|
|
|
227
227
|
}>;
|
|
228
228
|
fetchedAt: import("zod").ZodString;
|
|
229
229
|
rates: import("zod").ZodObject<{
|
|
230
|
-
usdRub: import("zod").ZodString
|
|
231
|
-
usdUah: import("zod").ZodString
|
|
232
|
-
usdKzt: import("zod").ZodString
|
|
230
|
+
usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
231
|
+
usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
232
|
+
usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
233
233
|
}, import("zod/v4/core").$strip>;
|
|
234
234
|
}, import("zod/v4/core").$strip>;
|
|
235
235
|
status: import("zod").ZodEnum<{
|
|
@@ -354,9 +354,9 @@ export declare const OrderEndpoints: {
|
|
|
354
354
|
}>;
|
|
355
355
|
fetchedAt: import("zod").ZodString;
|
|
356
356
|
rates: import("zod").ZodObject<{
|
|
357
|
-
usdRub: import("zod").ZodString
|
|
358
|
-
usdUah: import("zod").ZodString
|
|
359
|
-
usdKzt: import("zod").ZodString
|
|
357
|
+
usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
358
|
+
usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
359
|
+
usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
|
|
360
360
|
}, import("zod/v4/core").$strip>;
|
|
361
361
|
}, import("zod/v4/core").$strip>;
|
|
362
362
|
status: import("zod").ZodEnum<{
|
|
@@ -41,9 +41,9 @@ export declare const GetOrderByIdEndpoint: {
|
|
|
41
41
|
}>;
|
|
42
42
|
fetchedAt: z.ZodString;
|
|
43
43
|
rates: z.ZodObject<{
|
|
44
|
-
usdRub: z.ZodString
|
|
45
|
-
usdUah: z.ZodString
|
|
46
|
-
usdKzt: z.ZodString
|
|
44
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
45
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
46
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
status: z.ZodEnum<{
|
|
@@ -124,9 +124,9 @@ export declare const ListOrdersForUserEndpoint: {
|
|
|
124
124
|
}>;
|
|
125
125
|
fetchedAt: z.ZodString;
|
|
126
126
|
rates: z.ZodObject<{
|
|
127
|
-
usdRub: z.ZodString
|
|
128
|
-
usdUah: z.ZodString
|
|
129
|
-
usdKzt: z.ZodString
|
|
127
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
128
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
129
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
130
130
|
}, z.core.$strip>;
|
|
131
131
|
}, z.core.$strip>;
|
|
132
132
|
status: z.ZodEnum<{
|
|
@@ -239,9 +239,9 @@ export declare const ListOrdersAdminEndpoint: {
|
|
|
239
239
|
}>;
|
|
240
240
|
fetchedAt: z.ZodString;
|
|
241
241
|
rates: z.ZodObject<{
|
|
242
|
-
usdRub: z.ZodString
|
|
243
|
-
usdUah: z.ZodString
|
|
244
|
-
usdKzt: z.ZodString
|
|
242
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
243
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
244
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
245
245
|
}, z.core.$strip>;
|
|
246
246
|
}, z.core.$strip>;
|
|
247
247
|
status: z.ZodEnum<{
|
|
@@ -326,9 +326,9 @@ export declare const OrderQueries: {
|
|
|
326
326
|
}>;
|
|
327
327
|
fetchedAt: z.ZodString;
|
|
328
328
|
rates: z.ZodObject<{
|
|
329
|
-
usdRub: z.ZodString
|
|
330
|
-
usdUah: z.ZodString
|
|
331
|
-
usdKzt: z.ZodString
|
|
329
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
330
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
331
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
332
332
|
}, z.core.$strip>;
|
|
333
333
|
}, z.core.$strip>;
|
|
334
334
|
status: z.ZodEnum<{
|
|
@@ -409,9 +409,9 @@ export declare const OrderQueries: {
|
|
|
409
409
|
}>;
|
|
410
410
|
fetchedAt: z.ZodString;
|
|
411
411
|
rates: z.ZodObject<{
|
|
412
|
-
usdRub: z.ZodString
|
|
413
|
-
usdUah: z.ZodString
|
|
414
|
-
usdKzt: z.ZodString
|
|
412
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
413
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
414
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
415
415
|
}, z.core.$strip>;
|
|
416
416
|
}, z.core.$strip>;
|
|
417
417
|
status: z.ZodEnum<{
|
|
@@ -508,9 +508,9 @@ export declare const OrderQueries: {
|
|
|
508
508
|
}>;
|
|
509
509
|
fetchedAt: z.ZodString;
|
|
510
510
|
rates: z.ZodObject<{
|
|
511
|
-
usdRub: z.ZodString
|
|
512
|
-
usdUah: z.ZodString
|
|
513
|
-
usdKzt: z.ZodString
|
|
511
|
+
usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
512
|
+
usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
513
|
+
usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
514
514
|
}, z.core.$strip>;
|
|
515
515
|
}, z.core.$strip>;
|
|
516
516
|
status: z.ZodEnum<{
|
|
@@ -170,6 +170,19 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
170
170
|
kzt: z.ZodString;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
popularityScore: z.ZodNumber;
|
|
173
|
+
rating: z.ZodObject<{
|
|
174
|
+
average: z.ZodNumber;
|
|
175
|
+
count: z.ZodNumber;
|
|
176
|
+
distribution: z.ZodObject<{
|
|
177
|
+
1: z.ZodNumber;
|
|
178
|
+
2: z.ZodNumber;
|
|
179
|
+
3: z.ZodNumber;
|
|
180
|
+
4: z.ZodNumber;
|
|
181
|
+
5: z.ZodNumber;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
userRating: z.ZodNullable<z.ZodNumber>;
|
|
184
|
+
canRate: z.ZodBoolean;
|
|
185
|
+
}, z.core.$strip>;
|
|
173
186
|
seo: z.ZodObject<{
|
|
174
187
|
metaTitle: z.ZodString;
|
|
175
188
|
metaDescription: z.ZodString;
|
|
@@ -248,6 +261,19 @@ export declare const AdminProductSchema: z.ZodObject<{
|
|
|
248
261
|
kzt: z.ZodString;
|
|
249
262
|
}, z.core.$strip>;
|
|
250
263
|
popularityScore: z.ZodNumber;
|
|
264
|
+
rating: z.ZodObject<{
|
|
265
|
+
average: z.ZodNumber;
|
|
266
|
+
count: z.ZodNumber;
|
|
267
|
+
distribution: z.ZodObject<{
|
|
268
|
+
1: z.ZodNumber;
|
|
269
|
+
2: z.ZodNumber;
|
|
270
|
+
3: z.ZodNumber;
|
|
271
|
+
4: z.ZodNumber;
|
|
272
|
+
5: z.ZodNumber;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
userRating: z.ZodNullable<z.ZodNumber>;
|
|
275
|
+
canRate: z.ZodBoolean;
|
|
276
|
+
}, z.core.$strip>;
|
|
251
277
|
seo: z.ZodObject<{
|
|
252
278
|
metaTitle: z.ZodString;
|
|
253
279
|
metaDescription: z.ZodString;
|
|
@@ -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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AAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAM3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.MoneyAmountSchema = exports.VariantStockSchema = exports.AdminProductSch
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const money_1 = require("../../shared/money");
|
|
6
6
|
Object.defineProperty(exports, "MoneyAmountSchema", { enumerable: true, get: function () { return money_1.MoneyAmountSchema; } });
|
|
7
|
+
const reviews_1 = require("./reviews");
|
|
7
8
|
exports.ProductTypeSchema = zod_1.z.enum([
|
|
8
9
|
"GAME_KEY",
|
|
9
10
|
"GAME_GIFT",
|
|
@@ -90,6 +91,7 @@ exports.ProductSchema = zod_1.z.object({
|
|
|
90
91
|
basePrice: money_1.MoneyTripletSchema,
|
|
91
92
|
/** Оконный рейтинг покупок; дефолтная сортировка каталога — по нему. */
|
|
92
93
|
popularityScore: zod_1.z.number().nonnegative(),
|
|
94
|
+
rating: reviews_1.ProductRatingSummarySchema,
|
|
93
95
|
seo: exports.ProductSeoSchema,
|
|
94
96
|
variants: zod_1.z.array(exports.ProductVariantSchema),
|
|
95
97
|
/** Галерея для слайдера, отсортирована по sortOrder. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.js","sourceRoot":"","sources":["../../../src/domains/products/dtos.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA2E;
|
|
1
|
+
{"version":3,"file":"dtos.js","sourceRoot":"","sources":["../../../src/domains/products/dtos.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA2E;AAmJlE,kGAnJA,yBAAiB,OAmJA;AAlJ1B,uCAAuD;AAE1C,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,UAAU;IACV,WAAW;IACX,OAAO;IACP,cAAc;IACd,cAAc;IACd,KAAK;IACL,UAAU;IACV,SAAS;CACT,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC;AAG9E,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAG5D,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC7C,aAAa;IACb,YAAY;IACZ,eAAe;IACf,SAAS;IACT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