@gigapay-dev/contracts 1.8.5 → 2.0.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 -0
- package/build/client.d.ts +934 -0
- package/build/client.d.ts.map +1 -0
- package/build/client.js +184 -0
- package/build/client.js.map +1 -0
- package/build/commands/api-response.d.ts +1 -0
- package/build/commands/api-response.d.ts.map +1 -0
- package/build/commands/api-response.js +1 -0
- package/build/commands/api-response.js.map +1 -0
- package/build/commands/auth/confirm.d.ts +1 -0
- package/build/commands/auth/confirm.d.ts.map +1 -0
- package/build/commands/auth/confirm.js +1 -0
- package/build/commands/auth/confirm.js.map +1 -0
- package/build/commands/auth/endpoints.d.ts +1 -0
- package/build/commands/auth/endpoints.d.ts.map +1 -0
- package/build/commands/auth/endpoints.js +1 -0
- package/build/commands/auth/endpoints.js.map +1 -0
- package/build/commands/auth/index.d.ts +2 -0
- package/build/commands/auth/index.d.ts.map +1 -0
- package/build/commands/auth/index.js +2 -0
- package/build/commands/auth/index.js.map +1 -0
- package/build/commands/auth/login.d.ts +1 -0
- package/build/commands/auth/login.d.ts.map +1 -0
- package/build/commands/auth/login.js +1 -0
- package/build/commands/auth/login.js.map +1 -0
- package/build/commands/auth/profile.d.ts +1 -0
- package/build/commands/auth/profile.d.ts.map +1 -0
- package/build/commands/auth/profile.js +1 -0
- package/build/commands/auth/profile.js.map +1 -0
- package/build/commands/auth/register.d.ts +1 -0
- package/build/commands/auth/register.d.ts.map +1 -0
- package/build/commands/auth/register.js +1 -0
- package/build/commands/auth/register.js.map +1 -0
- package/build/commands/auth/reset.d.ts +1 -0
- package/build/commands/auth/reset.d.ts.map +1 -0
- package/build/commands/auth/reset.js +1 -0
- package/build/commands/auth/reset.js.map +1 -0
- package/build/commands/common.d.ts +65 -0
- package/build/commands/common.d.ts.map +1 -0
- package/build/commands/common.js +29 -0
- package/build/commands/common.js.map +1 -0
- package/build/commands/consts.d.ts +1 -0
- package/build/commands/consts.d.ts.map +1 -0
- package/build/commands/consts.js +1 -0
- package/build/commands/consts.js.map +1 -0
- package/build/commands/endpoints.d.ts +4643 -0
- package/build/commands/endpoints.d.ts.map +1 -0
- package/build/commands/endpoints.js +26 -0
- package/build/commands/endpoints.js.map +1 -0
- package/build/commands/index.d.ts +3 -0
- package/build/commands/index.d.ts.map +1 -0
- package/build/commands/index.js +3 -0
- package/build/commands/index.js.map +1 -0
- package/build/commands/orders/create.d.ts +5 -0
- package/build/commands/orders/create.d.ts.map +1 -0
- package/build/commands/orders/create.js +3 -0
- package/build/commands/orders/create.js.map +1 -0
- package/build/commands/orders/endpoints.d.ts +40 -24
- package/build/commands/orders/endpoints.d.ts.map +1 -0
- package/build/commands/orders/endpoints.js +1 -0
- package/build/commands/orders/endpoints.js.map +1 -0
- package/build/commands/orders/enums.d.ts +1 -0
- package/build/commands/orders/enums.d.ts.map +1 -0
- package/build/commands/orders/enums.js +1 -0
- package/build/commands/orders/enums.js.map +1 -0
- package/build/commands/orders/index.d.ts +1 -0
- package/build/commands/orders/index.d.ts.map +1 -0
- package/build/commands/orders/index.js +1 -0
- package/build/commands/orders/index.js.map +1 -0
- package/build/commands/orders/query.d.ts +7 -6
- package/build/commands/orders/query.d.ts.map +1 -0
- package/build/commands/orders/query.js +1 -0
- package/build/commands/orders/query.js.map +1 -0
- package/build/commands/orders/read.d.ts +8 -3
- package/build/commands/orders/read.d.ts.map +1 -0
- package/build/commands/orders/read.js +4 -1
- package/build/commands/orders/read.js.map +1 -0
- package/build/commands/orders/update.d.ts +1 -0
- package/build/commands/orders/update.d.ts.map +1 -0
- package/build/commands/orders/update.js +1 -0
- package/build/commands/orders/update.js.map +1 -0
- package/build/commands/pagination.d.ts +8 -7
- package/build/commands/pagination.d.ts.map +1 -0
- package/build/commands/pagination.js +5 -7
- package/build/commands/pagination.js.map +1 -0
- package/build/commands/payment-methods/create.d.ts +1 -0
- package/build/commands/payment-methods/create.d.ts.map +1 -0
- package/build/commands/payment-methods/create.js +1 -0
- package/build/commands/payment-methods/create.js.map +1 -0
- package/build/commands/payment-methods/endpoints.d.ts +1 -0
- package/build/commands/payment-methods/endpoints.d.ts.map +1 -0
- package/build/commands/payment-methods/endpoints.js +1 -0
- package/build/commands/payment-methods/endpoints.js.map +1 -0
- package/build/commands/payment-methods/index.d.ts +1 -0
- package/build/commands/payment-methods/index.d.ts.map +1 -0
- package/build/commands/payment-methods/index.js +1 -0
- package/build/commands/payment-methods/index.js.map +1 -0
- package/build/commands/payment-methods/read.d.ts +1 -0
- package/build/commands/payment-methods/read.d.ts.map +1 -0
- package/build/commands/payment-methods/read.js +1 -0
- package/build/commands/payment-methods/read.js.map +1 -0
- package/build/commands/payment-methods/update.d.ts +1 -0
- package/build/commands/payment-methods/update.d.ts.map +1 -0
- package/build/commands/payment-methods/update.js +1 -0
- package/build/commands/payment-methods/update.js.map +1 -0
- package/build/commands/products/create.d.ts +13 -0
- package/build/commands/products/create.d.ts.map +1 -0
- package/build/commands/products/create.js +7 -0
- package/build/commands/products/create.js.map +1 -0
- package/build/commands/products/endpoints.d.ts +101 -2
- package/build/commands/products/endpoints.d.ts.map +1 -0
- package/build/commands/products/endpoints.js +1 -0
- package/build/commands/products/endpoints.js.map +1 -0
- package/build/commands/products/enums.d.ts +1 -0
- package/build/commands/products/enums.d.ts.map +1 -0
- package/build/commands/products/enums.js +1 -0
- package/build/commands/products/enums.js.map +1 -0
- package/build/commands/products/index.d.ts +1 -0
- package/build/commands/products/index.d.ts.map +1 -0
- package/build/commands/products/index.js +1 -0
- package/build/commands/products/index.js.map +1 -0
- package/build/commands/products/query.d.ts +3 -2
- package/build/commands/products/query.d.ts.map +1 -0
- package/build/commands/products/query.js +1 -0
- package/build/commands/products/query.js.map +1 -0
- package/build/commands/products/read.d.ts +400 -0
- package/build/commands/products/read.d.ts.map +1 -0
- package/build/commands/products/read.js +67 -1
- package/build/commands/products/read.js.map +1 -0
- package/build/commands/products/update.d.ts +7 -0
- package/build/commands/products/update.d.ts.map +1 -0
- package/build/commands/products/update.js +1 -0
- package/build/commands/products/update.js.map +1 -0
- package/build/commands/promocode-activations/create.d.ts +1 -0
- package/build/commands/promocode-activations/create.d.ts.map +1 -0
- package/build/commands/promocode-activations/create.js +1 -0
- package/build/commands/promocode-activations/create.js.map +1 -0
- package/build/commands/promocode-activations/endpoints.d.ts +158 -0
- package/build/commands/promocode-activations/endpoints.d.ts.map +1 -0
- package/build/commands/promocode-activations/endpoints.js +39 -0
- package/build/commands/promocode-activations/endpoints.js.map +1 -0
- package/build/commands/promocode-activations/index.d.ts +2 -0
- package/build/commands/promocode-activations/index.d.ts.map +1 -0
- package/build/commands/promocode-activations/index.js +2 -0
- package/build/commands/promocode-activations/index.js.map +1 -0
- package/build/commands/promocode-activations/read.d.ts +1 -0
- package/build/commands/promocode-activations/read.d.ts.map +1 -0
- package/build/commands/promocode-activations/read.js +1 -0
- package/build/commands/promocode-activations/read.js.map +1 -0
- package/build/commands/promocode-activations/update.d.ts +1 -0
- package/build/commands/promocode-activations/update.d.ts.map +1 -0
- package/build/commands/promocode-activations/update.js +1 -0
- package/build/commands/promocode-activations/update.js.map +1 -0
- package/build/commands/promocodes/create.d.ts +1 -0
- package/build/commands/promocodes/create.d.ts.map +1 -0
- package/build/commands/promocodes/create.js +1 -0
- package/build/commands/promocodes/create.js.map +1 -0
- package/build/commands/promocodes/endpoints.d.ts +1 -0
- package/build/commands/promocodes/endpoints.d.ts.map +1 -0
- package/build/commands/promocodes/endpoints.js +1 -0
- package/build/commands/promocodes/endpoints.js.map +1 -0
- package/build/commands/promocodes/enums.d.ts +1 -0
- package/build/commands/promocodes/enums.d.ts.map +1 -0
- package/build/commands/promocodes/enums.js +1 -0
- package/build/commands/promocodes/enums.js.map +1 -0
- package/build/commands/promocodes/index.d.ts +1 -0
- package/build/commands/promocodes/index.d.ts.map +1 -0
- package/build/commands/promocodes/index.js +1 -0
- package/build/commands/promocodes/index.js.map +1 -0
- package/build/commands/promocodes/read.d.ts +1 -0
- package/build/commands/promocodes/read.d.ts.map +1 -0
- package/build/commands/promocodes/read.js +1 -0
- package/build/commands/promocodes/read.js.map +1 -0
- package/build/commands/promocodes/update.d.ts +1 -0
- package/build/commands/promocodes/update.d.ts.map +1 -0
- package/build/commands/promocodes/update.js +1 -0
- package/build/commands/promocodes/update.js.map +1 -0
- package/build/commands/refresh-sessions/create.d.ts +1 -0
- package/build/commands/refresh-sessions/create.d.ts.map +1 -0
- package/build/commands/refresh-sessions/create.js +1 -0
- package/build/commands/refresh-sessions/create.js.map +1 -0
- package/build/commands/refresh-sessions/endpoints.d.ts +216 -0
- package/build/commands/refresh-sessions/endpoints.d.ts.map +1 -0
- package/build/commands/refresh-sessions/endpoints.js +47 -0
- package/build/commands/refresh-sessions/endpoints.js.map +1 -0
- package/build/commands/refresh-sessions/enums.d.ts +1 -0
- package/build/commands/refresh-sessions/enums.d.ts.map +1 -0
- package/build/commands/refresh-sessions/enums.js +1 -0
- package/build/commands/refresh-sessions/enums.js.map +1 -0
- package/build/commands/refresh-sessions/index.d.ts +2 -0
- package/build/commands/refresh-sessions/index.d.ts.map +1 -0
- package/build/commands/refresh-sessions/index.js +2 -0
- package/build/commands/refresh-sessions/index.js.map +1 -0
- package/build/commands/refresh-sessions/read.d.ts +1 -0
- package/build/commands/refresh-sessions/read.d.ts.map +1 -0
- package/build/commands/refresh-sessions/read.js +1 -0
- package/build/commands/refresh-sessions/read.js.map +1 -0
- package/build/commands/refresh-sessions/update.d.ts +1 -0
- package/build/commands/refresh-sessions/update.d.ts.map +1 -0
- package/build/commands/refresh-sessions/update.js +1 -0
- package/build/commands/refresh-sessions/update.js.map +1 -0
- package/build/commands/settings/endpoints.d.ts +1 -0
- package/build/commands/settings/endpoints.d.ts.map +1 -0
- package/build/commands/settings/endpoints.js +1 -0
- package/build/commands/settings/endpoints.js.map +1 -0
- package/build/commands/settings/index.d.ts +1 -0
- package/build/commands/settings/index.d.ts.map +1 -0
- package/build/commands/settings/index.js +1 -0
- package/build/commands/settings/index.js.map +1 -0
- package/build/commands/settings/read.d.ts +1 -0
- package/build/commands/settings/read.d.ts.map +1 -0
- package/build/commands/settings/read.js +1 -0
- package/build/commands/settings/read.js.map +1 -0
- package/build/commands/settings/update.d.ts +1 -0
- package/build/commands/settings/update.d.ts.map +1 -0
- package/build/commands/settings/update.js +1 -0
- package/build/commands/settings/update.js.map +1 -0
- package/build/commands/stats/endpoints.d.ts +1 -0
- package/build/commands/stats/endpoints.d.ts.map +1 -0
- package/build/commands/stats/endpoints.js +1 -0
- package/build/commands/stats/endpoints.js.map +1 -0
- package/build/commands/stats/index.d.ts +1 -0
- package/build/commands/stats/index.d.ts.map +1 -0
- package/build/commands/stats/index.js +1 -0
- package/build/commands/stats/index.js.map +1 -0
- package/build/commands/stats/query.d.ts +1 -0
- package/build/commands/stats/query.d.ts.map +1 -0
- package/build/commands/stats/query.js +1 -0
- package/build/commands/stats/query.js.map +1 -0
- package/build/commands/stats/read.d.ts +1 -0
- package/build/commands/stats/read.d.ts.map +1 -0
- package/build/commands/stats/read.js +1 -0
- package/build/commands/stats/read.js.map +1 -0
- package/build/commands/users/create.d.ts +1 -0
- package/build/commands/users/create.d.ts.map +1 -0
- package/build/commands/users/create.js +1 -0
- package/build/commands/users/create.js.map +1 -0
- package/build/commands/users/endpoints.d.ts +7 -6
- package/build/commands/users/endpoints.d.ts.map +1 -0
- package/build/commands/users/endpoints.js +1 -0
- package/build/commands/users/endpoints.js.map +1 -0
- package/build/commands/users/enums.d.ts +1 -0
- package/build/commands/users/enums.d.ts.map +1 -0
- package/build/commands/users/enums.js +1 -0
- package/build/commands/users/enums.js.map +1 -0
- package/build/commands/users/index.d.ts +1 -0
- package/build/commands/users/index.d.ts.map +1 -0
- package/build/commands/users/index.js +1 -0
- package/build/commands/users/index.js.map +1 -0
- package/build/commands/users/query.d.ts +7 -6
- package/build/commands/users/query.d.ts.map +1 -0
- package/build/commands/users/query.js +1 -0
- package/build/commands/users/query.js.map +1 -0
- package/build/commands/users/read.d.ts +1 -0
- package/build/commands/users/read.d.ts.map +1 -0
- package/build/commands/users/read.js +1 -0
- package/build/commands/users/read.js.map +1 -0
- package/build/commands/users/update.d.ts +1 -0
- package/build/commands/users/update.d.ts.map +1 -0
- package/build/commands/users/update.js +1 -0
- package/build/commands/users/update.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -0
- package/build/types.d.ts +1 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +1 -0
- package/build/types.js.map +1 -0
- package/package.json +48 -17
- package/commands/api-response.ts +0 -10
- package/commands/auth/confirm.ts +0 -10
- package/commands/auth/endpoints.ts +0 -51
- package/commands/auth/index.ts +0 -5
- package/commands/auth/login.ts +0 -13
- package/commands/auth/profile.ts +0 -10
- package/commands/auth/register.ts +0 -8
- package/commands/auth/reset.ts +0 -9
- package/commands/consts.ts +0 -1
- package/commands/index.ts +0 -13
- package/commands/orders/create.ts +0 -41
- package/commands/orders/endpoints.ts +0 -51
- package/commands/orders/enums.ts +0 -25
- package/commands/orders/index.ts +0 -6
- package/commands/orders/query.ts +0 -46
- package/commands/orders/read.ts +0 -83
- package/commands/orders/update.ts +0 -16
- package/commands/pagination.ts +0 -8
- package/commands/payment-methods/create.ts +0 -19
- package/commands/payment-methods/endpoints.ts +0 -67
- package/commands/payment-methods/index.ts +0 -4
- package/commands/payment-methods/read.ts +0 -30
- package/commands/payment-methods/update.ts +0 -19
- package/commands/products/create.ts +0 -134
- package/commands/products/endpoints.ts +0 -108
- package/commands/products/enums.ts +0 -33
- package/commands/products/index.ts +0 -6
- package/commands/products/query.ts +0 -52
- package/commands/products/read.ts +0 -205
- package/commands/products/update.ts +0 -11
- package/commands/promocode-activations/create.ts +0 -10
- package/commands/promocode-activations/index.ts +0 -3
- package/commands/promocode-activations/read.ts +0 -11
- package/commands/promocode-activations/update.ts +0 -10
- package/commands/promocodes/create.ts +0 -18
- package/commands/promocodes/endpoints.ts +0 -62
- package/commands/promocodes/enums.ts +0 -9
- package/commands/promocodes/index.ts +0 -5
- package/commands/promocodes/read.ts +0 -20
- package/commands/promocodes/update.ts +0 -16
- package/commands/refresh-sessions/create.ts +0 -13
- package/commands/refresh-sessions/enums.ts +0 -4
- package/commands/refresh-sessions/index.ts +0 -4
- package/commands/refresh-sessions/read.ts +0 -14
- package/commands/refresh-sessions/update.ts +0 -13
- package/commands/settings/endpoints.ts +0 -52
- package/commands/settings/index.ts +0 -3
- package/commands/settings/read.ts +0 -10
- package/commands/settings/update.ts +0 -10
- package/commands/stats/endpoints.ts +0 -23
- package/commands/stats/index.ts +0 -3
- package/commands/stats/query.ts +0 -18
- package/commands/stats/read.ts +0 -14
- package/commands/users/create.ts +0 -19
- package/commands/users/endpoints.ts +0 -47
- package/commands/users/enums.ts +0 -10
- package/commands/users/index.ts +0 -6
- package/commands/users/query.ts +0 -20
- package/commands/users/read.ts +0 -25
- package/commands/users/update.ts +0 -19
- package/index.ts +0 -1
- package/tsconfig.json +0 -111
- package/types.ts +0 -9
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.KeysCountResponseSchema = exports.ProductDetailResponseSchema = exports.ProductCatalogResponseSchema = exports.DlcBriefSchema = exports.SystemRequirementsResponseSchema = exports.MediaResponseSchema = exports.VariantDetailSchema = exports.VariantCatalogSchema = exports.RegionResponseSchema = exports.RegionBriefSchema = exports.TagBriefSchema = exports.GenreResponseSchema = exports.GenreBriefSchema = exports.CategoryResponseSchema = exports.CategoryBriefSchema = void 0;
|
|
6
|
+
exports.SteamParseResponseSchema = exports.KeysCountResponseSchema = exports.ProductDetailResponseSchema = exports.ProductCatalogResponseSchema = exports.DlcBriefSchema = exports.SystemRequirementsResponseSchema = exports.MediaResponseSchema = exports.VariantDetailSchema = exports.VariantCatalogSchema = exports.RegionResponseSchema = exports.RegionBriefSchema = exports.TagBriefSchema = exports.GenreResponseSchema = exports.GenreBriefSchema = exports.CategoryResponseSchema = exports.CategoryBriefSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
// === Вложенные схемы ===
|
|
9
9
|
/** Категория (краткая) */
|
|
@@ -60,6 +60,7 @@ exports.RegionResponseSchema = zod_1.default.object({
|
|
|
60
60
|
exports.VariantCatalogSchema = zod_1.default.object({
|
|
61
61
|
id: zod_1.default.number(),
|
|
62
62
|
name: zod_1.default.string(),
|
|
63
|
+
imageUrl: zod_1.default.string().nullable(),
|
|
63
64
|
price: zod_1.default.string(),
|
|
64
65
|
originalPrice: zod_1.default.string().nullable(),
|
|
65
66
|
platform: zod_1.default.string().nullable(),
|
|
@@ -70,6 +71,7 @@ exports.VariantDetailSchema = zod_1.default.object({
|
|
|
70
71
|
id: zod_1.default.number(),
|
|
71
72
|
name: zod_1.default.string(),
|
|
72
73
|
sku: zod_1.default.string(),
|
|
74
|
+
imageUrl: zod_1.default.string().nullable(),
|
|
73
75
|
price: zod_1.default.string(),
|
|
74
76
|
originalPrice: zod_1.default.string().nullable(),
|
|
75
77
|
topupAmount: zod_1.default.string().nullable(),
|
|
@@ -105,6 +107,8 @@ exports.DlcBriefSchema = zod_1.default.object({
|
|
|
105
107
|
slug: zod_1.default.string(),
|
|
106
108
|
title: zod_1.default.string(),
|
|
107
109
|
coverImageUrl: zod_1.default.string().nullable(),
|
|
110
|
+
catalogImageUrl: zod_1.default.string().nullable(),
|
|
111
|
+
cardImageUrl: zod_1.default.string().nullable(),
|
|
108
112
|
variants: zod_1.default.array(zod_1.default.object({
|
|
109
113
|
price: zod_1.default.any(),
|
|
110
114
|
originalPrice: zod_1.default.any(),
|
|
@@ -119,6 +123,8 @@ exports.ProductCatalogResponseSchema = zod_1.default.object({
|
|
|
119
123
|
type: zod_1.default.string(),
|
|
120
124
|
shortDescription: zod_1.default.string().nullable(),
|
|
121
125
|
coverImageUrl: zod_1.default.string().nullable(),
|
|
126
|
+
catalogImageUrl: zod_1.default.string().nullable(),
|
|
127
|
+
cardImageUrl: zod_1.default.string().nullable(),
|
|
122
128
|
steamRating: zod_1.default.number().nullable(),
|
|
123
129
|
hasMultiplayer: zod_1.default.boolean(),
|
|
124
130
|
hasCoop: zod_1.default.boolean(),
|
|
@@ -144,6 +150,8 @@ exports.ProductDetailResponseSchema = zod_1.default.object({
|
|
|
144
150
|
customDescription: zod_1.default.string().nullable(),
|
|
145
151
|
shortDescription: zod_1.default.string().nullable(),
|
|
146
152
|
coverImageUrl: zod_1.default.string().nullable(),
|
|
153
|
+
catalogImageUrl: zod_1.default.string().nullable(),
|
|
154
|
+
cardImageUrl: zod_1.default.string().nullable(),
|
|
147
155
|
developer: zod_1.default.string().nullable(),
|
|
148
156
|
publisher: zod_1.default.string().nullable(),
|
|
149
157
|
releaseDate: zod_1.default.coerce.date().nullable(),
|
|
@@ -174,3 +182,61 @@ exports.KeysCountResponseSchema = zod_1.default.object({
|
|
|
174
182
|
reserved: zod_1.default.number(),
|
|
175
183
|
total: zod_1.default.number(),
|
|
176
184
|
});
|
|
185
|
+
// === Парсинг Steam ===
|
|
186
|
+
/** Спарсенные системные требования */
|
|
187
|
+
const ParsedSystemRequirementsSchema = zod_1.default.object({
|
|
188
|
+
os: zod_1.default.string().optional(),
|
|
189
|
+
processor: zod_1.default.string().optional(),
|
|
190
|
+
memory: zod_1.default.string().optional(),
|
|
191
|
+
graphics: zod_1.default.string().optional(),
|
|
192
|
+
storage: zod_1.default.string().optional(),
|
|
193
|
+
directx: zod_1.default.string().optional(),
|
|
194
|
+
network: zod_1.default.string().optional(),
|
|
195
|
+
});
|
|
196
|
+
/** Данные игры из Steam Store API */
|
|
197
|
+
const SteamParsedDataSchema = zod_1.default.object({
|
|
198
|
+
title: zod_1.default.string(),
|
|
199
|
+
originalTitle: zod_1.default.string().optional(),
|
|
200
|
+
description: zod_1.default.string(),
|
|
201
|
+
shortDescription: zod_1.default.string(),
|
|
202
|
+
coverImageUrl: zod_1.default.string(),
|
|
203
|
+
catalogImageUrl: zod_1.default.string(),
|
|
204
|
+
cardImageUrl: zod_1.default.string(),
|
|
205
|
+
developer: zod_1.default.string().optional(),
|
|
206
|
+
publisher: zod_1.default.string().optional(),
|
|
207
|
+
releaseDate: zod_1.default.string().optional(),
|
|
208
|
+
steamAppId: zod_1.default.number(),
|
|
209
|
+
steamRating: zod_1.default.number().optional(),
|
|
210
|
+
hasMultiplayer: zod_1.default.boolean(),
|
|
211
|
+
hasCoop: zod_1.default.boolean(),
|
|
212
|
+
hasSinglePlayer: zod_1.default.boolean(),
|
|
213
|
+
genres: zod_1.default.array(zod_1.default.string()),
|
|
214
|
+
screenshots: zod_1.default.array(zod_1.default.string()),
|
|
215
|
+
systemRequirements: zod_1.default.object({
|
|
216
|
+
minimum: ParsedSystemRequirementsSchema.optional(),
|
|
217
|
+
recommended: ParsedSystemRequirementsSchema.optional(),
|
|
218
|
+
}),
|
|
219
|
+
});
|
|
220
|
+
/** Региональная цена из Dessly */
|
|
221
|
+
const DesslyRegionPriceSchema = zod_1.default.object({
|
|
222
|
+
region: zod_1.default.string(),
|
|
223
|
+
price: zod_1.default.string(),
|
|
224
|
+
priceOriginal: zod_1.default.string(),
|
|
225
|
+
discount: zod_1.default.string(),
|
|
226
|
+
});
|
|
227
|
+
/** Издание игры из Dessly */
|
|
228
|
+
const DesslyEditionSchema = zod_1.default.object({
|
|
229
|
+
edition: zod_1.default.string(),
|
|
230
|
+
packageId: zod_1.default.number(),
|
|
231
|
+
regions: zod_1.default.array(DesslyRegionPriceSchema),
|
|
232
|
+
});
|
|
233
|
+
/** Данные из Dessly API */
|
|
234
|
+
const DesslyParsedDataSchema = zod_1.default.object({
|
|
235
|
+
editions: zod_1.default.array(DesslyEditionSchema),
|
|
236
|
+
});
|
|
237
|
+
/** Ответ парсинга игры по Steam App ID */
|
|
238
|
+
exports.SteamParseResponseSchema = zod_1.default.object({
|
|
239
|
+
steam: SteamParsedDataSchema.nullable(),
|
|
240
|
+
dessly: DesslyParsedDataSchema.nullable(),
|
|
241
|
+
});
|
|
242
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/products/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAGpB,0BAA0B;AAE1B,0BAA0B;AACb,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,+CAA+C;AAClC,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;QAChB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACF,CAAC,CAAC;AAEH,6BAA6B;AAChB,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,uCAAuC;AAC1B,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;I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;IACxC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,6BAA6B;AAC7B,MAAM,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;CACzC,CAAC,CAAC;AAEH,2BAA2B;AAC3B,MAAM,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,aAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACtC,CAAC,CAAC;AAEH,0CAA0C;AAC7B,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
|
|
@@ -11,6 +11,8 @@ export declare const ProductUpdateRequestSchema: z.ZodObject<{
|
|
|
11
11
|
customDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
shortDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
13
13
|
coverImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
catalogImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
cardImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
14
16
|
developer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
15
17
|
publisher: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
16
18
|
releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -38,6 +40,8 @@ export declare const ProductUpdateRequestSchema: z.ZodObject<{
|
|
|
38
40
|
customDescription?: string | undefined;
|
|
39
41
|
shortDescription?: string | undefined;
|
|
40
42
|
coverImageUrl?: string | undefined;
|
|
43
|
+
catalogImageUrl?: string | undefined;
|
|
44
|
+
cardImageUrl?: string | undefined;
|
|
41
45
|
developer?: string | undefined;
|
|
42
46
|
publisher?: string | undefined;
|
|
43
47
|
releaseDate?: string | undefined;
|
|
@@ -62,6 +66,8 @@ export declare const ProductUpdateRequestSchema: z.ZodObject<{
|
|
|
62
66
|
customDescription?: string | undefined;
|
|
63
67
|
shortDescription?: string | undefined;
|
|
64
68
|
coverImageUrl?: string | undefined;
|
|
69
|
+
catalogImageUrl?: string | undefined;
|
|
70
|
+
cardImageUrl?: string | undefined;
|
|
65
71
|
developer?: string | undefined;
|
|
66
72
|
publisher?: string | undefined;
|
|
67
73
|
releaseDate?: string | undefined;
|
|
@@ -76,3 +82,4 @@ export declare const ProductUpdateRequestSchema: z.ZodObject<{
|
|
|
76
82
|
regionIds?: number[] | undefined;
|
|
77
83
|
}>;
|
|
78
84
|
export type ProductUpdateRequest = z.infer<typeof ProductUpdateRequestSchema>;
|
|
85
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/products/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,gDAAgD;AAChD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;IACtC,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/products/update.ts"],"names":[],"mappings":";;;AACA,qCAAsD;AACtD,mCAAwC;AAExC,gDAAgD;AACnC,QAAA,0BAA0B,GAAG,mCAA0B,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;IACrF,sBAAsB;IACtB,MAAM,EAAE,qBAAa,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/promocode-activations/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/promocode-activations/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PromoCodeActivationEndpoints: {
|
|
3
|
+
create: {
|
|
4
|
+
method: "POST";
|
|
5
|
+
path: string;
|
|
6
|
+
request: z.ZodObject<{
|
|
7
|
+
promocodeId: z.ZodNumber;
|
|
8
|
+
refferalId: z.ZodNumber;
|
|
9
|
+
discountValue: z.ZodNumber;
|
|
10
|
+
activatedAt: z.ZodDate;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
promocodeId: number;
|
|
13
|
+
discountValue: number;
|
|
14
|
+
refferalId: number;
|
|
15
|
+
activatedAt: Date;
|
|
16
|
+
}, {
|
|
17
|
+
promocodeId: number;
|
|
18
|
+
discountValue: number;
|
|
19
|
+
refferalId: number;
|
|
20
|
+
activatedAt: Date;
|
|
21
|
+
}>;
|
|
22
|
+
response: z.ZodObject<{
|
|
23
|
+
id: z.ZodNumber;
|
|
24
|
+
promocodeId: z.ZodNumber;
|
|
25
|
+
refferalId: z.ZodNumber;
|
|
26
|
+
discountValue: z.ZodString;
|
|
27
|
+
activatedAt: z.ZodDate;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
id: number;
|
|
30
|
+
promocodeId: number;
|
|
31
|
+
discountValue: string;
|
|
32
|
+
refferalId: number;
|
|
33
|
+
activatedAt: Date;
|
|
34
|
+
}, {
|
|
35
|
+
id: number;
|
|
36
|
+
promocodeId: number;
|
|
37
|
+
discountValue: string;
|
|
38
|
+
refferalId: number;
|
|
39
|
+
activatedAt: Date;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
list: {
|
|
43
|
+
method: "GET";
|
|
44
|
+
path: string;
|
|
45
|
+
request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
46
|
+
response: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodNumber;
|
|
48
|
+
promocodeId: z.ZodNumber;
|
|
49
|
+
refferalId: z.ZodNumber;
|
|
50
|
+
discountValue: z.ZodString;
|
|
51
|
+
activatedAt: z.ZodDate;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
id: number;
|
|
54
|
+
promocodeId: number;
|
|
55
|
+
discountValue: string;
|
|
56
|
+
refferalId: number;
|
|
57
|
+
activatedAt: Date;
|
|
58
|
+
}, {
|
|
59
|
+
id: number;
|
|
60
|
+
promocodeId: number;
|
|
61
|
+
discountValue: string;
|
|
62
|
+
refferalId: number;
|
|
63
|
+
activatedAt: Date;
|
|
64
|
+
}>, "many">;
|
|
65
|
+
};
|
|
66
|
+
getById: {
|
|
67
|
+
method: "GET";
|
|
68
|
+
path: string;
|
|
69
|
+
request: z.ZodObject<{
|
|
70
|
+
id: z.ZodNumber;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
id: number;
|
|
73
|
+
}, {
|
|
74
|
+
id: number;
|
|
75
|
+
}>;
|
|
76
|
+
response: z.ZodObject<{
|
|
77
|
+
id: z.ZodNumber;
|
|
78
|
+
promocodeId: z.ZodNumber;
|
|
79
|
+
refferalId: z.ZodNumber;
|
|
80
|
+
discountValue: z.ZodString;
|
|
81
|
+
activatedAt: z.ZodDate;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
id: number;
|
|
84
|
+
promocodeId: number;
|
|
85
|
+
discountValue: string;
|
|
86
|
+
refferalId: number;
|
|
87
|
+
activatedAt: Date;
|
|
88
|
+
}, {
|
|
89
|
+
id: number;
|
|
90
|
+
promocodeId: number;
|
|
91
|
+
discountValue: string;
|
|
92
|
+
refferalId: number;
|
|
93
|
+
activatedAt: Date;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
update: {
|
|
97
|
+
method: "PATCH";
|
|
98
|
+
path: string;
|
|
99
|
+
request: z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
body: z.ZodObject<{
|
|
102
|
+
promocodeId: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
refferalId: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
discountValue: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
activatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
promocodeId?: number | undefined;
|
|
108
|
+
discountValue?: number | undefined;
|
|
109
|
+
refferalId?: number | undefined;
|
|
110
|
+
activatedAt?: Date | null | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
promocodeId?: number | undefined;
|
|
113
|
+
discountValue?: number | undefined;
|
|
114
|
+
refferalId?: number | undefined;
|
|
115
|
+
activatedAt?: Date | null | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
id: number;
|
|
119
|
+
body: {
|
|
120
|
+
promocodeId?: number | undefined;
|
|
121
|
+
discountValue?: number | undefined;
|
|
122
|
+
refferalId?: number | undefined;
|
|
123
|
+
activatedAt?: Date | null | undefined;
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
id: number;
|
|
127
|
+
body: {
|
|
128
|
+
promocodeId?: number | undefined;
|
|
129
|
+
discountValue?: number | undefined;
|
|
130
|
+
refferalId?: number | undefined;
|
|
131
|
+
activatedAt?: Date | null | undefined;
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
134
|
+
response: z.ZodObject<{
|
|
135
|
+
id: z.ZodNumber;
|
|
136
|
+
promocodeId: z.ZodNumber;
|
|
137
|
+
refferalId: z.ZodNumber;
|
|
138
|
+
discountValue: z.ZodString;
|
|
139
|
+
activatedAt: z.ZodDate;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
id: number;
|
|
142
|
+
promocodeId: number;
|
|
143
|
+
discountValue: string;
|
|
144
|
+
refferalId: number;
|
|
145
|
+
activatedAt: Date;
|
|
146
|
+
}, {
|
|
147
|
+
id: number;
|
|
148
|
+
promocodeId: number;
|
|
149
|
+
discountValue: string;
|
|
150
|
+
refferalId: number;
|
|
151
|
+
activatedAt: Date;
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export type PromoCodeActivationEndpointKey = keyof typeof PromoCodeActivationEndpoints;
|
|
156
|
+
export type GetPromoCodeActivationRequest<K extends PromoCodeActivationEndpointKey> = z.infer<typeof PromoCodeActivationEndpoints[K]["request"]>;
|
|
157
|
+
export type GetPromoCodeActivationResponse<K extends PromoCodeActivationEndpointKey> = z.infer<typeof PromoCodeActivationEndpoints[K]["response"]>;
|
|
158
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/promocode-activations/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BG,CAAC;AAE7C,MAAM,MAAM,8BAA8B,GAAG,MAAM,OAAO,4BAA4B,CAAC;AAEvF,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,8BAA8B,IAC9E,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,8BAA8B,IAC/E,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromoCodeActivationEndpoints = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const create_1 = require("./create");
|
|
6
|
+
const read_1 = require("./read");
|
|
7
|
+
const update_1 = require("./update");
|
|
8
|
+
exports.PromoCodeActivationEndpoints = {
|
|
9
|
+
create: {
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/promo-code-activations",
|
|
12
|
+
request: create_1.PromoCodeActivationCreateSchema,
|
|
13
|
+
response: read_1.PromoCodeActivationReadResponseSchema,
|
|
14
|
+
},
|
|
15
|
+
list: {
|
|
16
|
+
method: "GET",
|
|
17
|
+
path: "/promo-code-activations",
|
|
18
|
+
request: zod_1.z.object({}),
|
|
19
|
+
response: zod_1.z.array(read_1.PromoCodeActivationReadResponseSchema),
|
|
20
|
+
},
|
|
21
|
+
getById: {
|
|
22
|
+
method: "GET",
|
|
23
|
+
path: "/promo-code-activations/:id",
|
|
24
|
+
request: zod_1.z.object({
|
|
25
|
+
id: zod_1.z.coerce.number().positive(),
|
|
26
|
+
}),
|
|
27
|
+
response: read_1.PromoCodeActivationReadResponseSchema,
|
|
28
|
+
},
|
|
29
|
+
update: {
|
|
30
|
+
method: "PATCH",
|
|
31
|
+
path: "/promo-code-activations/:id",
|
|
32
|
+
request: zod_1.z.object({
|
|
33
|
+
id: zod_1.z.coerce.number().positive(),
|
|
34
|
+
body: update_1.PromoCodeActivationUpdateSchema,
|
|
35
|
+
}),
|
|
36
|
+
response: read_1.PromoCodeActivationReadResponseSchema,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../commands/promocode-activations/endpoints.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,qCAA2D;AAC3D,iCAA+D;AAC/D,qCAA2D;AAE9C,QAAA,4BAA4B,GAAG;IACxC,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,wCAA+B;QACxC,QAAQ,EAAE,4CAAqC;KAClD;IACD,IAAI,EAAE;QACF,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACrB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,4CAAqC,CAAC;KAC3D;IACD,OAAO,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,6BAA6B;QACnC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,QAAQ,EAAE,4CAAqC;KAClD;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,6BAA6B;QACnC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,wCAA+B;SACxC,CAAC;QACF,QAAQ,EAAE,4CAAqC;KAClD;CACuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/promocode-activations/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA"}
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create"), exports);
|
|
18
18
|
__exportStar(require("./read"), exports);
|
|
19
19
|
__exportStar(require("./update"), exports);
|
|
20
|
+
__exportStar(require("./endpoints"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/promocode-activations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,8CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/promocode-activations/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;EAMhD,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/promocode-activations/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,qCAAqC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/promocode-activations/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/promocode-activations/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/promocodes/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAyD;AAE5C,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,qBAAa;IACnB,MAAM,EAAE,uBAAe;CAC1B,CAAC,CAAC"}
|
|
@@ -351,3 +351,4 @@ export declare const PromoCodeEndpoints: {
|
|
|
351
351
|
export type PromoCodeEndpointKey = keyof typeof PromoCodeEndpoints;
|
|
352
352
|
export type GetPromoCodeRequest<K extends PromoCodeEndpointKey> = z.infer<typeof PromoCodeEndpoints[K]["request"]>;
|
|
353
353
|
export type GetPromoCodeResponse<K extends PromoCodeEndpointKey> = z.infer<typeof PromoCodeEndpoints[K]["response"]>;
|
|
354
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,CAAC,MAAM,CAAC;YACd,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;SACpB,CAAC;QACF,QAAQ,EAAE,kCAA2B;KACxC;IACD,MAAM,EAAE;QACJ,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;YACd,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,IAAI,EAAE,8BAAqB;SAC9B,CAAC;QACF,QAAQ,EAAE,kCAA2B;KAC1C;CAEyC,CAAC"}
|
|
@@ -3,3 +3,4 @@ export declare const PromoCodeType: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
|
|
|
3
3
|
export declare const PromoCodeStatus: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
|
|
4
4
|
export type PromoCodeType = z.infer<typeof PromoCodeType>;
|
|
5
5
|
export type PromoCodeStatus = z.infer<typeof PromoCodeStatus>;
|
|
6
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/enums.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,aAAa,qCAAmC,CAAC;AAC9D,eAAO,MAAM,eAAe,oEAAkE,CAAC;AAE/F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -7,3 +7,4 @@ exports.PromoCodeStatus = exports.PromoCodeType = void 0;
|
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.PromoCodeType = zod_1.default.enum(["USER", "AD", "SYSTEM"]);
|
|
9
9
|
exports.PromoCodeStatus = zod_1.default.enum(["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]);
|
|
10
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../commands/promocodes/enums.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,aAAa,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjD,QAAA,eAAe,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../commands/promocodes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../commands/promocodes/read.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,mCAAyD;AAE5C,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC5B,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,qBAAa;IACnB,MAAM,EAAE,uBAAe;CAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../commands/promocodes/update.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAyD;AAE5C,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnE,sBAAsB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1E,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,qBAAa,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,uBAAe,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../commands/refresh-sessions/create.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAA+C;AAElC,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,4BAAoB;IAC5B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|