@ai-grator/api 0.3.80 → 0.3.82
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/admin/endpoints/admin.ts +8 -0
- package/admin/endpoints/commands/index.ts +2 -0
- package/admin/endpoints/commands/replace-admin-main-page-models.command.ts +34 -0
- package/admin/endpoints/commands/replace-admin-main-page-presets.command.ts +34 -0
- package/admin/endpoints/queries/get-admin-main-page-models.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-main-page-presets.query.ts +22 -0
- package/admin/endpoints/queries/index.ts +2 -0
- package/admin/models/admin-main-page-model-response.schema.ts +51 -0
- package/admin/models/admin-main-page-preset-response.schema.ts +22 -0
- package/admin/models/admin-trend-response.schema.ts +9 -1
- package/admin/models/index.ts +2 -0
- package/build/admin/endpoints/admin.d.ts +4 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +6 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts +40 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.d.ts +2 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +2 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-models.command.d.ts +169 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-models.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-models.command.js +30 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-presets.command.d.ts +67 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-presets.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/replace-admin-main-page-presets.command.js +30 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts +20 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts +40 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts.map +1 -1
- package/build/admin/endpoints/queries/get-admin-main-page-models.query.d.ts +124 -0
- package/build/admin/endpoints/queries/get-admin-main-page-models.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-main-page-models.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-main-page-presets.query.d.ts +46 -0
- package/build/admin/endpoints/queries/get-admin-main-page-presets.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-main-page-presets.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-partner-links-stats.query.d.ts +2 -2
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts +20 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.d.ts +2 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +2 -0
- package/build/admin/models/admin-main-page-model-response.schema.d.ts +97 -0
- package/build/admin/models/admin-main-page-model-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-main-page-model-response.schema.js +43 -0
- package/build/admin/models/admin-main-page-preset-response.schema.d.ts +25 -0
- package/build/admin/models/admin-main-page-preset-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-main-page-preset-response.schema.js +20 -0
- package/build/admin/models/admin-trend-response.schema.d.ts +10 -0
- package/build/admin/models/admin-trend-response.schema.d.ts.map +1 -1
- package/build/admin/models/admin-trend-response.schema.js +2 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/errors/errors.d.ts +70 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +70 -0
- package/build/model-page/endpoints/model-page.d.ts +3 -0
- package/build/model-page/endpoints/model-page.d.ts.map +1 -1
- package/build/model-page/endpoints/model-page.js +4 -1
- package/build/model-page/endpoints/queries/index.d.ts +1 -0
- package/build/model-page/endpoints/queries/index.d.ts.map +1 -1
- package/build/model-page/endpoints/queries/index.js +1 -0
- package/build/model-page/endpoints/queries/list-main-page-models.query.d.ts +106 -0
- package/build/model-page/endpoints/queries/list-main-page-models.query.d.ts.map +1 -0
- package/build/model-page/endpoints/queries/list-main-page-models.query.js +32 -0
- package/build/model-page/enums/index.d.ts +1 -0
- package/build/model-page/enums/index.d.ts.map +1 -1
- package/build/model-page/enums/index.js +1 -0
- package/build/model-page/enums/main-page-model.enum.d.ts +14 -0
- package/build/model-page/enums/main-page-model.enum.d.ts.map +1 -0
- package/build/model-page/enums/main-page-model.enum.js +17 -0
- package/build/model-page/models/index.d.ts +1 -0
- package/build/model-page/models/index.d.ts.map +1 -1
- package/build/model-page/models/index.js +1 -0
- package/build/model-page/models/main-page-model.schema.d.ts +130 -0
- package/build/model-page/models/main-page-model.schema.d.ts.map +1 -0
- package/build/model-page/models/main-page-model.schema.js +80 -0
- package/build/preset/endpoints/preset.d.ts +4 -0
- package/build/preset/endpoints/preset.d.ts.map +1 -1
- package/build/preset/endpoints/preset.js +5 -1
- package/build/preset/endpoints/queries/index.d.ts +1 -0
- package/build/preset/endpoints/queries/index.d.ts.map +1 -1
- package/build/preset/endpoints/queries/index.js +1 -0
- package/build/preset/endpoints/queries/list-main-page-presets.query.d.ts +144 -0
- package/build/preset/endpoints/queries/list-main-page-presets.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/list-main-page-presets.query.js +19 -0
- package/build/preset/enums/preset-limits.d.ts +4 -0
- package/build/preset/enums/preset-limits.d.ts.map +1 -1
- package/build/preset/enums/preset-limits.js +5 -1
- package/build/preset/models/index.d.ts +1 -0
- package/build/preset/models/index.d.ts.map +1 -1
- package/build/preset/models/index.js +1 -0
- package/build/preset/models/main-page-preset.schema.d.ts +81 -0
- package/build/preset/models/main-page-preset.schema.d.ts.map +1 -0
- package/build/preset/models/main-page-preset.schema.js +30 -0
- package/build/pricing-page/endpoints/pricing-page.d.ts +1 -0
- package/build/pricing-page/endpoints/pricing-page.d.ts.map +1 -1
- package/build/pricing-page/endpoints/pricing-page.js +1 -0
- package/build/pricing-page/endpoints/queries/get-pricing-min-prices.query.d.ts +48 -0
- package/build/pricing-page/endpoints/queries/get-pricing-min-prices.query.d.ts.map +1 -0
- package/build/pricing-page/endpoints/queries/get-pricing-min-prices.query.js +16 -0
- package/build/pricing-page/endpoints/queries/index.d.ts +1 -0
- package/build/pricing-page/endpoints/queries/index.d.ts.map +1 -1
- package/build/pricing-page/endpoints/queries/index.js +1 -0
- package/build/pricing-page/models/index.d.ts +1 -0
- package/build/pricing-page/models/index.d.ts.map +1 -1
- package/build/pricing-page/models/index.js +1 -0
- package/build/pricing-page/models/pricing-min-prices.schema.d.ts +35 -0
- package/build/pricing-page/models/pricing-min-prices.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-min-prices.schema.js +17 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts +2 -2
- package/build/referral/models/referral-link-stats-response.schema.d.ts +2 -2
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts +4 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts.map +1 -1
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts +4 -0
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts.map +1 -1
- package/build/trend/enums/trend-limits.d.ts +3 -0
- package/build/trend/enums/trend-limits.d.ts.map +1 -1
- package/build/trend/enums/trend-limits.js +4 -1
- package/build/trend/models/index.d.ts +1 -0
- package/build/trend/models/index.d.ts.map +1 -1
- package/build/trend/models/index.js +1 -0
- package/build/trend/models/public-trend.schema.d.ts +4 -0
- package/build/trend/models/public-trend.schema.d.ts.map +1 -1
- package/build/trend/models/public-trend.schema.js +2 -0
- package/build/trend/models/trend-engagement.schema.d.ts +19 -0
- package/build/trend/models/trend-engagement.schema.d.ts.map +1 -0
- package/build/trend/models/trend-engagement.schema.js +21 -0
- package/build/trend/models/trend-input.schema.d.ts +10 -0
- package/build/trend/models/trend-input.schema.d.ts.map +1 -1
- package/build/trend/models/trend-input.schema.js +3 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +70 -0
- package/model-page/endpoints/model-page.ts +4 -0
- package/model-page/endpoints/queries/index.ts +1 -0
- package/model-page/endpoints/queries/list-main-page-models.query.ts +36 -0
- package/model-page/enums/index.ts +1 -0
- package/model-page/enums/main-page-model.enum.ts +14 -0
- package/model-page/models/index.ts +1 -0
- package/model-page/models/main-page-model.schema.ts +106 -0
- package/package.json +1 -1
- package/preset/endpoints/preset.ts +6 -0
- package/preset/endpoints/queries/index.ts +1 -0
- package/preset/endpoints/queries/list-main-page-presets.query.ts +20 -0
- package/preset/enums/preset-limits.ts +5 -0
- package/preset/models/index.ts +1 -0
- package/preset/models/main-page-preset.schema.ts +39 -0
- package/pricing-page/endpoints/pricing-page.ts +1 -0
- package/pricing-page/endpoints/queries/get-pricing-min-prices.query.ts +15 -0
- package/pricing-page/endpoints/queries/index.ts +1 -0
- package/pricing-page/models/index.ts +1 -0
- package/pricing-page/models/pricing-min-prices.schema.ts +21 -0
- package/trend/enums/trend-limits.ts +3 -0
- package/trend/models/index.ts +1 -0
- package/trend/models/public-trend.schema.ts +2 -0
- package/trend/models/trend-engagement.schema.ts +33 -0
- package/trend/models/trend-input.schema.ts +3 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ReplaceAdminMainPagePresetsCommandBody: z.ZodObject<{
|
|
4
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5
|
+
presetId: z.ZodUUID;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const ReplaceAdminMainPagePresetsCommandResponse: z.ZodObject<{
|
|
12
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
13
|
+
order: z.ZodInt;
|
|
14
|
+
label: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
description: z.ZodNullable<z.ZodString>;
|
|
17
|
+
isVisible: z.ZodBoolean;
|
|
18
|
+
preset: z.ZodObject<{
|
|
19
|
+
uuid: z.ZodUUID;
|
|
20
|
+
slug: z.ZodString;
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
23
|
+
tool: z.ZodEnum<typeof import("../../../preset").PRESET_TOOL>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const ReplaceAdminMainPagePresetsCommand: {
|
|
28
|
+
method: HTTP_METHODS.PUT;
|
|
29
|
+
path: "main-page/presets";
|
|
30
|
+
summary: string;
|
|
31
|
+
request: {
|
|
32
|
+
body: z.ZodObject<{
|
|
33
|
+
items: z.ZodArray<z.ZodObject<{
|
|
34
|
+
presetId: z.ZodUUID;
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
title: z.ZodString;
|
|
37
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
};
|
|
41
|
+
responses: {
|
|
42
|
+
200: z.ZodObject<{
|
|
43
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
44
|
+
order: z.ZodInt;
|
|
45
|
+
label: z.ZodString;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
description: z.ZodNullable<z.ZodString>;
|
|
48
|
+
isVisible: z.ZodBoolean;
|
|
49
|
+
preset: z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
slug: z.ZodString;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
status: z.ZodEnum<typeof import("../../../preset").PRESET_STATUS>;
|
|
54
|
+
tool: z.ZodEnum<typeof import("../../../preset").PRESET_TOOL>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
59
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
60
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
61
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
62
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type ReplaceAdminMainPagePresetsCommandBodyType = z.infer<typeof ReplaceAdminMainPagePresetsCommandBody>;
|
|
66
|
+
export type ReplaceAdminMainPagePresetsCommandResponseType = z.infer<typeof ReplaceAdminMainPagePresetsCommandResponse>;
|
|
67
|
+
//# sourceMappingURL=replace-admin-main-page-presets.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-admin-main-page-presets.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/replace-admin-main-page-presets.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,sCAAsC;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;iBAErD,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB7C,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAChH,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReplaceAdminMainPagePresetsCommand = exports.ReplaceAdminMainPagePresetsCommandResponse = exports.ReplaceAdminMainPagePresetsCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const preset_1 = require("../../../preset");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.ReplaceAdminMainPagePresetsCommandBody = zod_1.z.object({
|
|
10
|
+
items: preset_1.MainPagePresetsInputSchema,
|
|
11
|
+
});
|
|
12
|
+
exports.ReplaceAdminMainPagePresetsCommandResponse = zod_1.z.object({
|
|
13
|
+
presets: zod_1.z.array(models_1.AdminMainPagePresetResponseSchema),
|
|
14
|
+
});
|
|
15
|
+
exports.ReplaceAdminMainPagePresetsCommand = (0, _common_1.defineContract)({
|
|
16
|
+
method: _common_1.HTTP_METHODS.PUT,
|
|
17
|
+
path: admin_1.ADMIN_ROUTES.REPLACE_MAIN_PAGE_PRESETS,
|
|
18
|
+
summary: 'Replace the main page carousel; position in the array is the order, only published presets, empty list clears it',
|
|
19
|
+
request: {
|
|
20
|
+
body: exports.ReplaceAdminMainPagePresetsCommandBody,
|
|
21
|
+
},
|
|
22
|
+
responses: {
|
|
23
|
+
200: exports.ReplaceAdminMainPagePresetsCommandResponse,
|
|
24
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
@@ -45,6 +45,16 @@ export declare const UpdateAdminTrendStatusCommandResponse: z.ZodObject<{
|
|
|
45
45
|
isDefault: z.ZodBoolean;
|
|
46
46
|
isAvailable: z.ZodBoolean;
|
|
47
47
|
}, z.core.$strip>>;
|
|
48
|
+
likes: z.ZodObject<{
|
|
49
|
+
count: z.ZodInt;
|
|
50
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
51
|
+
max: z.ZodInt;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
views: z.ZodObject<{
|
|
54
|
+
count: z.ZodInt;
|
|
55
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
56
|
+
max: z.ZodInt;
|
|
57
|
+
}, z.core.$strip>;
|
|
48
58
|
generationsCount: z.ZodInt;
|
|
49
59
|
createdAt: z.ZodISODateTime;
|
|
50
60
|
updatedAt: z.ZodISODateTime;
|
|
@@ -101,6 +111,16 @@ export declare const UpdateAdminTrendStatusCommand: {
|
|
|
101
111
|
isDefault: z.ZodBoolean;
|
|
102
112
|
isAvailable: z.ZodBoolean;
|
|
103
113
|
}, z.core.$strip>>;
|
|
114
|
+
likes: z.ZodObject<{
|
|
115
|
+
count: z.ZodInt;
|
|
116
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
117
|
+
max: z.ZodInt;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
views: z.ZodObject<{
|
|
120
|
+
count: z.ZodInt;
|
|
121
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
122
|
+
max: z.ZodInt;
|
|
123
|
+
}, z.core.$strip>;
|
|
104
124
|
generationsCount: z.ZodInt;
|
|
105
125
|
createdAt: z.ZodISODateTime;
|
|
106
126
|
updatedAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-admin-trend-status.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"update-admin-trend-status.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAE9E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -21,6 +21,16 @@ export declare const UpdateAdminTrendCommandBody: z.ZodObject<{
|
|
|
21
21
|
modelId: z.ZodUUID;
|
|
22
22
|
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
|
+
likes: z.ZodDefault<z.ZodObject<{
|
|
25
|
+
count: z.ZodInt;
|
|
26
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
27
|
+
max: z.ZodInt;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
views: z.ZodDefault<z.ZodObject<{
|
|
30
|
+
count: z.ZodInt;
|
|
31
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
32
|
+
max: z.ZodInt;
|
|
33
|
+
}, z.core.$strip>>;
|
|
24
34
|
}, z.core.$strip>;
|
|
25
35
|
export declare const UpdateAdminTrendCommandResponse: z.ZodObject<{
|
|
26
36
|
uuid: z.ZodUUID;
|
|
@@ -61,6 +71,16 @@ export declare const UpdateAdminTrendCommandResponse: z.ZodObject<{
|
|
|
61
71
|
isDefault: z.ZodBoolean;
|
|
62
72
|
isAvailable: z.ZodBoolean;
|
|
63
73
|
}, z.core.$strip>>;
|
|
74
|
+
likes: z.ZodObject<{
|
|
75
|
+
count: z.ZodInt;
|
|
76
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
77
|
+
max: z.ZodInt;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
views: z.ZodObject<{
|
|
80
|
+
count: z.ZodInt;
|
|
81
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
82
|
+
max: z.ZodInt;
|
|
83
|
+
}, z.core.$strip>;
|
|
64
84
|
generationsCount: z.ZodInt;
|
|
65
85
|
createdAt: z.ZodISODateTime;
|
|
66
86
|
updatedAt: z.ZodISODateTime;
|
|
@@ -91,6 +111,16 @@ export declare const UpdateAdminTrendCommand: {
|
|
|
91
111
|
modelId: z.ZodUUID;
|
|
92
112
|
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
93
113
|
}, z.core.$strip>>;
|
|
114
|
+
likes: z.ZodDefault<z.ZodObject<{
|
|
115
|
+
count: z.ZodInt;
|
|
116
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
117
|
+
max: z.ZodInt;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
views: z.ZodDefault<z.ZodObject<{
|
|
120
|
+
count: z.ZodInt;
|
|
121
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
122
|
+
max: z.ZodInt;
|
|
123
|
+
}, z.core.$strip>>;
|
|
94
124
|
}, z.core.$strip>;
|
|
95
125
|
};
|
|
96
126
|
responses: {
|
|
@@ -133,6 +163,16 @@ export declare const UpdateAdminTrendCommand: {
|
|
|
133
163
|
isDefault: z.ZodBoolean;
|
|
134
164
|
isAvailable: z.ZodBoolean;
|
|
135
165
|
}, z.core.$strip>>;
|
|
166
|
+
likes: z.ZodObject<{
|
|
167
|
+
count: z.ZodInt;
|
|
168
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
169
|
+
max: z.ZodInt;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
views: z.ZodObject<{
|
|
172
|
+
count: z.ZodInt;
|
|
173
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
174
|
+
max: z.ZodInt;
|
|
175
|
+
}, z.core.$strip>;
|
|
136
176
|
generationsCount: z.ZodInt;
|
|
137
177
|
createdAt: z.ZodISODateTime;
|
|
138
178
|
updatedAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-admin-trend.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"update-admin-trend.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAmB,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBlC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetAdminMainPageModelsQueryResponse: z.ZodObject<{
|
|
4
|
+
models: z.ZodArray<z.ZodObject<{
|
|
5
|
+
order: z.ZodInt;
|
|
6
|
+
title: z.ZodNullable<z.ZodString>;
|
|
7
|
+
tagline: z.ZodNullable<z.ZodString>;
|
|
8
|
+
label: z.ZodString;
|
|
9
|
+
family: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<import("../../..").MAIN_PAGE_MODEL_TARGET.CHAT>;
|
|
16
|
+
model: z.ZodObject<{
|
|
17
|
+
uuid: z.ZodUUID;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
isActive: z.ZodBoolean;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<import("../../..").MAIN_PAGE_MODEL_TARGET.GENERATION>;
|
|
23
|
+
model: z.ZodObject<{
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
isActive: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
29
|
+
}, z.core.$strip>], "type">;
|
|
30
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
31
|
+
pageId: z.ZodUUID;
|
|
32
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
33
|
+
model: z.ZodObject<{
|
|
34
|
+
uuid: z.ZodUUID;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
isActive: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
demo: z.ZodObject<{
|
|
40
|
+
prompt: z.ZodString;
|
|
41
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
42
|
+
signature: z.ZodString;
|
|
43
|
+
media: z.ZodNullable<z.ZodObject<{
|
|
44
|
+
uuid: z.ZodUUID;
|
|
45
|
+
url: z.ZodURL;
|
|
46
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
47
|
+
fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
sourceMedia: z.ZodNullable<z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
53
|
+
fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const GetAdminMainPageModelsQuery: {
|
|
59
|
+
method: HTTP_METHODS.GET;
|
|
60
|
+
path: "main-page/models";
|
|
61
|
+
summary: string;
|
|
62
|
+
responses: {
|
|
63
|
+
200: z.ZodObject<{
|
|
64
|
+
models: z.ZodArray<z.ZodObject<{
|
|
65
|
+
order: z.ZodInt;
|
|
66
|
+
title: z.ZodNullable<z.ZodString>;
|
|
67
|
+
tagline: z.ZodNullable<z.ZodString>;
|
|
68
|
+
label: z.ZodString;
|
|
69
|
+
family: z.ZodObject<{
|
|
70
|
+
uuid: z.ZodUUID;
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
category: z.ZodEnum<typeof import("../../..").MODEL_CATEGORY>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<import("../../..").MAIN_PAGE_MODEL_TARGET.CHAT>;
|
|
76
|
+
model: z.ZodObject<{
|
|
77
|
+
uuid: z.ZodUUID;
|
|
78
|
+
title: z.ZodString;
|
|
79
|
+
isActive: z.ZodBoolean;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<import("../../..").MAIN_PAGE_MODEL_TARGET.GENERATION>;
|
|
83
|
+
model: z.ZodObject<{
|
|
84
|
+
uuid: z.ZodUUID;
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
isActive: z.ZodBoolean;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
89
|
+
}, z.core.$strip>], "type">;
|
|
90
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
91
|
+
pageId: z.ZodUUID;
|
|
92
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
93
|
+
model: z.ZodObject<{
|
|
94
|
+
uuid: z.ZodUUID;
|
|
95
|
+
title: z.ZodString;
|
|
96
|
+
isActive: z.ZodBoolean;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
demo: z.ZodObject<{
|
|
100
|
+
prompt: z.ZodString;
|
|
101
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
102
|
+
signature: z.ZodString;
|
|
103
|
+
media: z.ZodNullable<z.ZodObject<{
|
|
104
|
+
uuid: z.ZodUUID;
|
|
105
|
+
url: z.ZodURL;
|
|
106
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
107
|
+
fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
sourceMedia: z.ZodNullable<z.ZodObject<{
|
|
110
|
+
uuid: z.ZodUUID;
|
|
111
|
+
url: z.ZodURL;
|
|
112
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
113
|
+
fileType: z.ZodEnum<typeof import("../../..").FILE_TYPE>;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
119
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
120
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export type GetAdminMainPageModelsQueryResponseType = z.infer<typeof GetAdminMainPageModelsQueryResponse>;
|
|
124
|
+
//# sourceMappingURL=get-admin-main-page-models.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-main-page-models.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-main-page-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUtC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminMainPageModelsQuery = exports.GetAdminMainPageModelsQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.GetAdminMainPageModelsQueryResponse = zod_1.z.object({
|
|
9
|
+
models: zod_1.z.array(models_1.AdminMainPageModelResponseSchema),
|
|
10
|
+
});
|
|
11
|
+
exports.GetAdminMainPageModelsQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.GET_MAIN_PAGE_MODELS,
|
|
14
|
+
summary: 'Get rows of the main page models block ordered by order, including versions with inactive models',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.GetAdminMainPageModelsQueryResponse,
|
|
17
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
19
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetAdminMainPagePresetsQueryResponse: z.ZodObject<{
|
|
4
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
5
|
+
order: z.ZodInt;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
description: z.ZodNullable<z.ZodString>;
|
|
9
|
+
isVisible: z.ZodBoolean;
|
|
10
|
+
preset: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodUUID;
|
|
12
|
+
slug: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<typeof import("../../..").PRESET_STATUS>;
|
|
15
|
+
tool: z.ZodEnum<typeof import("../../..").PRESET_TOOL>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const GetAdminMainPagePresetsQuery: {
|
|
20
|
+
method: HTTP_METHODS.GET;
|
|
21
|
+
path: "main-page/presets";
|
|
22
|
+
summary: string;
|
|
23
|
+
responses: {
|
|
24
|
+
200: z.ZodObject<{
|
|
25
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
26
|
+
order: z.ZodInt;
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
description: z.ZodNullable<z.ZodString>;
|
|
30
|
+
isVisible: z.ZodBoolean;
|
|
31
|
+
preset: z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
title: z.ZodString;
|
|
35
|
+
status: z.ZodEnum<typeof import("../../..").PRESET_STATUS>;
|
|
36
|
+
tool: z.ZodEnum<typeof import("../../..").PRESET_TOOL>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
41
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
42
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type GetAdminMainPagePresetsQueryResponseType = z.infer<typeof GetAdminMainPagePresetsQueryResponse>;
|
|
46
|
+
//# sourceMappingURL=get-admin-main-page-presets.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-admin-main-page-presets.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-main-page-presets.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;iBAE/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;CAUvC,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminMainPagePresetsQuery = exports.GetAdminMainPagePresetsQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.GetAdminMainPagePresetsQueryResponse = zod_1.z.object({
|
|
9
|
+
presets: zod_1.z.array(models_1.AdminMainPagePresetResponseSchema),
|
|
10
|
+
});
|
|
11
|
+
exports.GetAdminMainPagePresetsQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.GET_MAIN_PAGE_PRESETS,
|
|
14
|
+
summary: 'Get presets of the main page carousel ordered by order, including unpublished ones',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.GetAdminMainPagePresetsQueryResponse,
|
|
17
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
19
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -14,8 +14,8 @@ export declare const GetAdminPartnerLinksStatsQueryResponse: z.ZodObject<{
|
|
|
14
14
|
description: z.ZodNullable<z.ZodString>;
|
|
15
15
|
createdAt: z.ZodISODateTime;
|
|
16
16
|
tool: z.ZodNullable<z.ZodEnum<typeof import("../../..").TOOL>>;
|
|
17
|
-
source: z.ZodNullable<z.ZodString>;
|
|
18
17
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
18
|
+
source: z.ZodNullable<z.ZodString>;
|
|
19
19
|
metrics: z.ZodObject<{
|
|
20
20
|
visitsTotal: z.ZodNumber;
|
|
21
21
|
visitsUnique: z.ZodNumber;
|
|
@@ -50,8 +50,8 @@ export declare const GetAdminPartnerLinksStatsQuery: {
|
|
|
50
50
|
description: z.ZodNullable<z.ZodString>;
|
|
51
51
|
createdAt: z.ZodISODateTime;
|
|
52
52
|
tool: z.ZodNullable<z.ZodEnum<typeof import("../../..").TOOL>>;
|
|
53
|
-
source: z.ZodNullable<z.ZodString>;
|
|
54
53
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
54
|
+
source: z.ZodNullable<z.ZodString>;
|
|
55
55
|
metrics: z.ZodObject<{
|
|
56
56
|
visitsTotal: z.ZodNumber;
|
|
57
57
|
visitsUnique: z.ZodNumber;
|
|
@@ -42,6 +42,16 @@ export declare const GetAdminTrendQueryResponse: z.ZodObject<{
|
|
|
42
42
|
isDefault: z.ZodBoolean;
|
|
43
43
|
isAvailable: z.ZodBoolean;
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
|
+
likes: z.ZodObject<{
|
|
46
|
+
count: z.ZodInt;
|
|
47
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
48
|
+
max: z.ZodInt;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
views: z.ZodObject<{
|
|
51
|
+
count: z.ZodInt;
|
|
52
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
53
|
+
max: z.ZodInt;
|
|
54
|
+
}, z.core.$strip>;
|
|
45
55
|
generationsCount: z.ZodInt;
|
|
46
56
|
createdAt: z.ZodISODateTime;
|
|
47
57
|
updatedAt: z.ZodISODateTime;
|
|
@@ -95,6 +105,16 @@ export declare const GetAdminTrendQuery: {
|
|
|
95
105
|
isDefault: z.ZodBoolean;
|
|
96
106
|
isAvailable: z.ZodBoolean;
|
|
97
107
|
}, z.core.$strip>>;
|
|
108
|
+
likes: z.ZodObject<{
|
|
109
|
+
count: z.ZodInt;
|
|
110
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
111
|
+
max: z.ZodInt;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
views: z.ZodObject<{
|
|
114
|
+
count: z.ZodInt;
|
|
115
|
+
dailyGrowthPercent: z.ZodNumber;
|
|
116
|
+
max: z.ZodInt;
|
|
117
|
+
}, z.core.$strip>;
|
|
98
118
|
generationsCount: z.ZodInt;
|
|
99
119
|
createdAt: z.ZodISODateTime;
|
|
100
120
|
updatedAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-admin-trend.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-trend.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"get-admin-trend.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-trend.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAEnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc7B,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -32,4 +32,6 @@ export * from './get-admin-preset.query';
|
|
|
32
32
|
export * from './get-admin-presets.query';
|
|
33
33
|
export * from './get-admin-vendor-spend.query';
|
|
34
34
|
export * from './get-admin-vendor-deposits.query';
|
|
35
|
+
export * from './get-admin-main-page-presets.query';
|
|
36
|
+
export * from './get-admin-main-page-models.query';
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC"}
|
|
@@ -48,3 +48,5 @@ __exportStar(require("./get-admin-preset.query"), exports);
|
|
|
48
48
|
__exportStar(require("./get-admin-presets.query"), exports);
|
|
49
49
|
__exportStar(require("./get-admin-vendor-spend.query"), exports);
|
|
50
50
|
__exportStar(require("./get-admin-vendor-deposits.query"), exports);
|
|
51
|
+
__exportStar(require("./get-admin-main-page-presets.query"), exports);
|
|
52
|
+
__exportStar(require("./get-admin-main-page-models.query"), exports);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { MODEL_CATEGORY } from '../../model-catalog';
|
|
3
|
+
import { MAIN_PAGE_MODEL_TARGET } from '../../model-page';
|
|
4
|
+
export declare const AdminMainPageModelFamilyRefSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodUUID;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
category: z.ZodEnum<typeof MODEL_CATEGORY>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const AdminMainPageModelRefSchema: z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
isActive: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const AdminMainPageModelVersionSchema: z.ZodObject<{
|
|
15
|
+
pageId: z.ZodUUID;
|
|
16
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
17
|
+
model: z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
isActive: z.ZodBoolean;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const AdminMainPageModelTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<MAIN_PAGE_MODEL_TARGET.CHAT>;
|
|
25
|
+
model: z.ZodObject<{
|
|
26
|
+
uuid: z.ZodUUID;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
isActive: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<MAIN_PAGE_MODEL_TARGET.GENERATION>;
|
|
32
|
+
model: z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
title: z.ZodString;
|
|
35
|
+
isActive: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
generationType: z.ZodEnum<typeof import("../../generation-model").GENERATION_TYPE>;
|
|
38
|
+
}, z.core.$strip>], "type">;
|
|
39
|
+
export declare const AdminMainPageModelResponseSchema: z.ZodObject<{
|
|
40
|
+
order: z.ZodInt;
|
|
41
|
+
title: z.ZodNullable<z.ZodString>;
|
|
42
|
+
tagline: z.ZodNullable<z.ZodString>;
|
|
43
|
+
label: z.ZodString;
|
|
44
|
+
family: z.ZodObject<{
|
|
45
|
+
uuid: z.ZodUUID;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
category: z.ZodEnum<typeof MODEL_CATEGORY>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<MAIN_PAGE_MODEL_TARGET.CHAT>;
|
|
51
|
+
model: z.ZodObject<{
|
|
52
|
+
uuid: z.ZodUUID;
|
|
53
|
+
title: z.ZodString;
|
|
54
|
+
isActive: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<MAIN_PAGE_MODEL_TARGET.GENERATION>;
|
|
58
|
+
model: z.ZodObject<{
|
|
59
|
+
uuid: z.ZodUUID;
|
|
60
|
+
title: z.ZodString;
|
|
61
|
+
isActive: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
generationType: z.ZodEnum<typeof import("../../generation-model").GENERATION_TYPE>;
|
|
64
|
+
}, z.core.$strip>], "type">;
|
|
65
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
66
|
+
pageId: z.ZodUUID;
|
|
67
|
+
versionName: z.ZodNullable<z.ZodString>;
|
|
68
|
+
model: z.ZodObject<{
|
|
69
|
+
uuid: z.ZodUUID;
|
|
70
|
+
title: z.ZodString;
|
|
71
|
+
isActive: z.ZodBoolean;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
demo: z.ZodObject<{
|
|
75
|
+
prompt: z.ZodString;
|
|
76
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
77
|
+
signature: z.ZodString;
|
|
78
|
+
media: z.ZodNullable<z.ZodObject<{
|
|
79
|
+
uuid: z.ZodUUID;
|
|
80
|
+
url: z.ZodURL;
|
|
81
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
82
|
+
fileType: z.ZodEnum<typeof import("../..").FILE_TYPE>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
sourceMedia: z.ZodNullable<z.ZodObject<{
|
|
85
|
+
uuid: z.ZodUUID;
|
|
86
|
+
url: z.ZodURL;
|
|
87
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
88
|
+
fileType: z.ZodEnum<typeof import("../..").FILE_TYPE>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type AdminMainPageModelFamilyRefSchemaType = z.infer<typeof AdminMainPageModelFamilyRefSchema>;
|
|
93
|
+
export type AdminMainPageModelRefSchemaType = z.infer<typeof AdminMainPageModelRefSchema>;
|
|
94
|
+
export type AdminMainPageModelTargetSchemaType = z.infer<typeof AdminMainPageModelTargetSchema>;
|
|
95
|
+
export type AdminMainPageModelVersionSchemaType = z.infer<typeof AdminMainPageModelVersionSchema>;
|
|
96
|
+
export type AdminMainPageModelResponseSchemaType = z.infer<typeof AdminMainPageModelResponseSchema>;
|
|
97
|
+
//# sourceMappingURL=admin-main-page-model-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-main-page-model-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-main-page-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAA2B,MAAM,kBAAkB,CAAC;AAEnF,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;iBAI1C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;2BAUzC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAChG,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAClG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|