@ai-grator/api 0.3.81 → 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/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/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/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/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/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/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
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ListMainPagePresetsQueryResponse: z.ZodObject<{
|
|
4
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
tool: z.ZodEnum<typeof import("../..").PRESET_TOOL>;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
description: z.ZodString;
|
|
10
|
+
model: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodUUID;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
icons: z.ZodObject<{
|
|
14
|
+
light: z.ZodString;
|
|
15
|
+
dark: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
20
|
+
image: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodUUID;
|
|
22
|
+
url: z.ZodURL;
|
|
23
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
27
|
+
before: z.ZodObject<{
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
url: z.ZodURL;
|
|
30
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
after: z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
url: z.ZodURL;
|
|
35
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
39
|
+
video: z.ZodObject<{
|
|
40
|
+
uuid: z.ZodUUID;
|
|
41
|
+
url: z.ZodURL;
|
|
42
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
cover: z.ZodObject<{
|
|
45
|
+
uuid: z.ZodUUID;
|
|
46
|
+
url: z.ZodURL;
|
|
47
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>], "type">;
|
|
50
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<import("../..").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
52
|
+
items: z.ZodArray<z.ZodObject<{
|
|
53
|
+
file: z.ZodObject<{
|
|
54
|
+
uuid: z.ZodUUID;
|
|
55
|
+
url: z.ZodURL;
|
|
56
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
59
|
+
note: z.ZodNullable<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<import("../..").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
63
|
+
context: z.ZodNullable<z.ZodString>;
|
|
64
|
+
source: z.ZodNullable<z.ZodString>;
|
|
65
|
+
text: z.ZodString;
|
|
66
|
+
}, z.core.$strip>], "type">>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const ListMainPagePresetsQuery: {
|
|
70
|
+
method: HTTP_METHODS.GET;
|
|
71
|
+
path: "presets";
|
|
72
|
+
summary: string;
|
|
73
|
+
responses: {
|
|
74
|
+
200: z.ZodObject<{
|
|
75
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
76
|
+
slug: z.ZodString;
|
|
77
|
+
tool: z.ZodEnum<typeof import("../..").PRESET_TOOL>;
|
|
78
|
+
label: z.ZodString;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
description: z.ZodString;
|
|
81
|
+
model: z.ZodObject<{
|
|
82
|
+
uuid: z.ZodUUID;
|
|
83
|
+
title: z.ZodString;
|
|
84
|
+
icons: z.ZodObject<{
|
|
85
|
+
light: z.ZodString;
|
|
86
|
+
dark: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
91
|
+
image: z.ZodObject<{
|
|
92
|
+
uuid: z.ZodUUID;
|
|
93
|
+
url: z.ZodURL;
|
|
94
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
98
|
+
before: z.ZodObject<{
|
|
99
|
+
uuid: z.ZodUUID;
|
|
100
|
+
url: z.ZodURL;
|
|
101
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
after: z.ZodObject<{
|
|
104
|
+
uuid: z.ZodUUID;
|
|
105
|
+
url: z.ZodURL;
|
|
106
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
type: z.ZodLiteral<import("../..").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
110
|
+
video: z.ZodObject<{
|
|
111
|
+
uuid: z.ZodUUID;
|
|
112
|
+
url: z.ZodURL;
|
|
113
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
cover: z.ZodObject<{
|
|
116
|
+
uuid: z.ZodUUID;
|
|
117
|
+
url: z.ZodURL;
|
|
118
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
}, z.core.$strip>], "type">;
|
|
121
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<import("../..").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
123
|
+
items: z.ZodArray<z.ZodObject<{
|
|
124
|
+
file: z.ZodObject<{
|
|
125
|
+
uuid: z.ZodUUID;
|
|
126
|
+
url: z.ZodURL;
|
|
127
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
130
|
+
note: z.ZodNullable<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<import("../..").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
134
|
+
context: z.ZodNullable<z.ZodString>;
|
|
135
|
+
source: z.ZodNullable<z.ZodString>;
|
|
136
|
+
text: z.ZodString;
|
|
137
|
+
}, z.core.$strip>], "type">>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export type ListMainPagePresetsQueryResponseType = z.infer<typeof ListMainPagePresetsQueryResponse>;
|
|
144
|
+
//# sourceMappingURL=list-main-page-presets.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-main-page-presets.query.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/queries/list-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,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListMainPagePresetsQuery = exports.ListMainPagePresetsQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const preset_1 = require("../preset");
|
|
8
|
+
exports.ListMainPagePresetsQueryResponse = zod_1.z.object({
|
|
9
|
+
presets: zod_1.z.array(models_1.MainPagePresetCardSchema),
|
|
10
|
+
});
|
|
11
|
+
exports.ListMainPagePresetsQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: preset_1.MAIN_PAGE_ROUTES.GET_PRESETS,
|
|
14
|
+
summary: 'List presets selected by admin for the main page carousel, in admin order; only published presets',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.ListMainPagePresetsQueryResponse,
|
|
17
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -27,4 +27,8 @@ export declare const PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
|
|
|
27
27
|
export declare const PRESET_SEARCH_MAX_LENGTH = 255;
|
|
28
28
|
export declare const PRESET_RESULTS_DEFAULT_LIMIT = 4;
|
|
29
29
|
export declare const PRESET_RESULTS_MAX_LIMIT = 20;
|
|
30
|
+
export declare const MAIN_PAGE_PRESETS_MAX_COUNT = 10;
|
|
31
|
+
export declare const MAIN_PAGE_PRESET_LABEL_MAX_LENGTH = 30;
|
|
32
|
+
export declare const MAIN_PAGE_PRESET_TITLE_MAX_LENGTH = 40;
|
|
33
|
+
export declare const MAIN_PAGE_PRESET_DESCRIPTION_MAX_LENGTH = 90;
|
|
30
34
|
//# sourceMappingURL=preset-limits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset-limits.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-limits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,mBAAmB,QAA+B,CAAC;AAChE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mCAAmC,KAAK,CAAC;AACtD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,oCAAoC,OAAO,CAAC;AACzD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,qCAAqC,KAAK,CAAC;AACxD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,eAAO,MAAM,6CAA6C,MAAM,CAAC;AAEjE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"preset-limits.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-limits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,mBAAmB,QAA+B,CAAC;AAChE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mCAAmC,KAAK,CAAC;AACtD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,oCAAoC,OAAO,CAAC;AACzD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,qCAAqC,KAAK,CAAC;AACxD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,eAAO,MAAM,6CAA6C,MAAM,CAAC;AAEjE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,iCAAiC,KAAK,CAAC;AACpD,eAAO,MAAM,iCAAiC,KAAK,CAAC;AACpD,eAAO,MAAM,uCAAuC,KAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRESET_RESULTS_MAX_LIMIT = exports.PRESET_RESULTS_DEFAULT_LIMIT = exports.PRESET_SEARCH_MAX_LENGTH = exports.PRESET_CATEGORY_ICON_MAX_LENGTH = exports.PRESET_CATEGORY_NAME_MAX_LENGTH = exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = exports.PRESET_TEXT_FIELD_MAX_LENGTH = exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = exports.PRESET_SELECT_MAX_OPTIONS = exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = exports.PRESET_FIELD_HINT_MAX_LENGTH = exports.PRESET_FIELD_LABEL_MAX_LENGTH = exports.PRESET_FIELD_KEY_PATTERN = exports.PRESET_FIELD_KEY_MAX_LENGTH = exports.PRESET_MAX_REQUIRED_FIELDS = exports.PRESET_MAX_FIELDS = exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = exports.PRESET_BADGE_MAX_LENGTH = exports.PRESET_DESCRIPTION_MAX_LENGTH = exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = exports.PRESET_TITLE_MAX_LENGTH = exports.PRESET_SLUG_PATTERN = exports.PRESET_SLUG_MAX_LENGTH = void 0;
|
|
3
|
+
exports.MAIN_PAGE_PRESET_DESCRIPTION_MAX_LENGTH = exports.MAIN_PAGE_PRESET_TITLE_MAX_LENGTH = exports.MAIN_PAGE_PRESET_LABEL_MAX_LENGTH = exports.MAIN_PAGE_PRESETS_MAX_COUNT = exports.PRESET_RESULTS_MAX_LIMIT = exports.PRESET_RESULTS_DEFAULT_LIMIT = exports.PRESET_SEARCH_MAX_LENGTH = exports.PRESET_CATEGORY_ICON_MAX_LENGTH = exports.PRESET_CATEGORY_NAME_MAX_LENGTH = exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = exports.PRESET_TEXT_FIELD_MAX_LENGTH = exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = exports.PRESET_SELECT_MAX_OPTIONS = exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = exports.PRESET_FIELD_HINT_MAX_LENGTH = exports.PRESET_FIELD_LABEL_MAX_LENGTH = exports.PRESET_FIELD_KEY_PATTERN = exports.PRESET_FIELD_KEY_MAX_LENGTH = exports.PRESET_MAX_REQUIRED_FIELDS = exports.PRESET_MAX_FIELDS = exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = exports.PRESET_BADGE_MAX_LENGTH = exports.PRESET_DESCRIPTION_MAX_LENGTH = exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = exports.PRESET_TITLE_MAX_LENGTH = exports.PRESET_SLUG_PATTERN = exports.PRESET_SLUG_MAX_LENGTH = void 0;
|
|
4
4
|
exports.PRESET_SLUG_MAX_LENGTH = 255;
|
|
5
5
|
exports.PRESET_SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
6
6
|
exports.PRESET_TITLE_MAX_LENGTH = 40;
|
|
@@ -30,3 +30,7 @@ exports.PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
|
|
|
30
30
|
exports.PRESET_SEARCH_MAX_LENGTH = 255;
|
|
31
31
|
exports.PRESET_RESULTS_DEFAULT_LIMIT = 4;
|
|
32
32
|
exports.PRESET_RESULTS_MAX_LIMIT = 20;
|
|
33
|
+
exports.MAIN_PAGE_PRESETS_MAX_COUNT = 10;
|
|
34
|
+
exports.MAIN_PAGE_PRESET_LABEL_MAX_LENGTH = 30;
|
|
35
|
+
exports.MAIN_PAGE_PRESET_TITLE_MAX_LENGTH = 40;
|
|
36
|
+
exports.MAIN_PAGE_PRESET_DESCRIPTION_MAX_LENGTH = 90;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
|
|
@@ -22,3 +22,4 @@ __exportStar(require("./preset-input.schema"), exports);
|
|
|
22
22
|
__exportStar(require("./preset-field-value.schema"), exports);
|
|
23
23
|
__exportStar(require("./public-preset.schema"), exports);
|
|
24
24
|
__exportStar(require("./preset-result.schema"), exports);
|
|
25
|
+
__exportStar(require("./main-page-preset.schema"), exports);
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MainPagePresetItemInputSchema: z.ZodObject<{
|
|
3
|
+
presetId: z.ZodUUID;
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const MainPagePresetsInputSchema: z.ZodArray<z.ZodObject<{
|
|
9
|
+
presetId: z.ZodUUID;
|
|
10
|
+
label: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
export declare const MainPagePresetCardSchema: z.ZodObject<{
|
|
15
|
+
slug: z.ZodString;
|
|
16
|
+
tool: z.ZodEnum<typeof import("../enums").PRESET_TOOL>;
|
|
17
|
+
label: z.ZodString;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
model: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodUUID;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
icons: z.ZodObject<{
|
|
24
|
+
light: z.ZodString;
|
|
25
|
+
dark: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<import("../enums").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
30
|
+
image: z.ZodObject<{
|
|
31
|
+
uuid: z.ZodUUID;
|
|
32
|
+
url: z.ZodURL;
|
|
33
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<import("../enums").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
37
|
+
before: z.ZodObject<{
|
|
38
|
+
uuid: z.ZodUUID;
|
|
39
|
+
url: z.ZodURL;
|
|
40
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
after: z.ZodObject<{
|
|
43
|
+
uuid: z.ZodUUID;
|
|
44
|
+
url: z.ZodURL;
|
|
45
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<import("../enums").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
49
|
+
video: z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
cover: z.ZodObject<{
|
|
55
|
+
uuid: z.ZodUUID;
|
|
56
|
+
url: z.ZodURL;
|
|
57
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
}, z.core.$strip>], "type">;
|
|
60
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<import("../enums").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
62
|
+
items: z.ZodArray<z.ZodObject<{
|
|
63
|
+
file: z.ZodObject<{
|
|
64
|
+
uuid: z.ZodUUID;
|
|
65
|
+
url: z.ZodURL;
|
|
66
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
69
|
+
note: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<import("../enums").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
73
|
+
context: z.ZodNullable<z.ZodString>;
|
|
74
|
+
source: z.ZodNullable<z.ZodString>;
|
|
75
|
+
text: z.ZodString;
|
|
76
|
+
}, z.core.$strip>], "type">>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export type MainPagePresetItemInputSchemaType = z.infer<typeof MainPagePresetItemInputSchema>;
|
|
79
|
+
export type MainPagePresetsInputSchemaType = z.infer<typeof MainPagePresetsInputSchema>;
|
|
80
|
+
export type MainPagePresetCardSchemaType = z.infer<typeof MainPagePresetCardSchema>;
|
|
81
|
+
//# sourceMappingURL=main-page-preset.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-page-preset.schema.d.ts","sourceRoot":"","sources":["../../../preset/models/main-page-preset.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,6BAA6B;;;;;iBAKxC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;kBAKjC,CAAC;AAEP,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASnC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MainPagePresetCardSchema = exports.MainPagePresetsInputSchema = exports.MainPagePresetItemInputSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
const preset_common_schema_1 = require("./preset-common.schema");
|
|
7
|
+
const preset_media_schema_1 = require("./preset-media.schema");
|
|
8
|
+
const public_preset_schema_1 = require("./public-preset.schema");
|
|
9
|
+
exports.MainPagePresetItemInputSchema = zod_1.z.object({
|
|
10
|
+
presetId: zod_1.z.uuid(),
|
|
11
|
+
label: zod_1.z.string().trim().min(1).max(enums_1.MAIN_PAGE_PRESET_LABEL_MAX_LENGTH),
|
|
12
|
+
title: zod_1.z.string().trim().min(1).max(enums_1.MAIN_PAGE_PRESET_TITLE_MAX_LENGTH),
|
|
13
|
+
description: zod_1.z.string().trim().min(1).max(enums_1.MAIN_PAGE_PRESET_DESCRIPTION_MAX_LENGTH).nullable().default(null),
|
|
14
|
+
});
|
|
15
|
+
exports.MainPagePresetsInputSchema = zod_1.z
|
|
16
|
+
.array(exports.MainPagePresetItemInputSchema)
|
|
17
|
+
.max(enums_1.MAIN_PAGE_PRESETS_MAX_COUNT)
|
|
18
|
+
.refine((items) => new Set(items.map(({ presetId }) => presetId)).size === items.length, {
|
|
19
|
+
message: 'Preset ids must be unique',
|
|
20
|
+
});
|
|
21
|
+
exports.MainPagePresetCardSchema = zod_1.z.object({
|
|
22
|
+
slug: zod_1.z.string(),
|
|
23
|
+
tool: preset_common_schema_1.PresetToolSchema,
|
|
24
|
+
label: zod_1.z.string(),
|
|
25
|
+
title: zod_1.z.string(),
|
|
26
|
+
description: zod_1.z.string(),
|
|
27
|
+
model: public_preset_schema_1.PublicPresetModelSchema,
|
|
28
|
+
cardMedia: preset_media_schema_1.PresetCardMediaSchema,
|
|
29
|
+
example: preset_media_schema_1.PresetExampleSchema.nullable(),
|
|
30
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-page.d.ts","sourceRoot":"","sources":["../../../pricing-page/endpoints/pricing-page.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,SAAkB,CAAC;AAE1D,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"pricing-page.d.ts","sourceRoot":"","sources":["../../../pricing-page/endpoints/pricing-page.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,SAAkB,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
2
|
+
export declare const GetPricingMinPricesQueryResponse: import("zod").ZodObject<{
|
|
3
|
+
text: import("zod").ZodObject<{
|
|
4
|
+
price: import("zod").ZodNumber;
|
|
5
|
+
modelName: import("zod").ZodString;
|
|
6
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
7
|
+
}, import("zod/v4/core").$strip>;
|
|
8
|
+
image: import("zod").ZodObject<{
|
|
9
|
+
price: import("zod").ZodNumber;
|
|
10
|
+
modelName: import("zod").ZodString;
|
|
11
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12
|
+
resolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
13
|
+
}, import("zod/v4/core").$strip>;
|
|
14
|
+
video: import("zod").ZodObject<{
|
|
15
|
+
price: import("zod").ZodNumber;
|
|
16
|
+
modelName: import("zod").ZodString;
|
|
17
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
18
|
+
resolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
19
|
+
}, import("zod/v4/core").$strip>;
|
|
20
|
+
}, import("zod/v4/core").$strip>;
|
|
21
|
+
export declare const GetPricingMinPricesQuery: {
|
|
22
|
+
method: HTTP_METHODS.GET;
|
|
23
|
+
path: "min-prices";
|
|
24
|
+
summary: string;
|
|
25
|
+
responses: {
|
|
26
|
+
200: import("zod").ZodObject<{
|
|
27
|
+
text: import("zod").ZodObject<{
|
|
28
|
+
price: import("zod").ZodNumber;
|
|
29
|
+
modelName: import("zod").ZodString;
|
|
30
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
31
|
+
}, import("zod/v4/core").$strip>;
|
|
32
|
+
image: import("zod").ZodObject<{
|
|
33
|
+
price: import("zod").ZodNumber;
|
|
34
|
+
modelName: import("zod").ZodString;
|
|
35
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
36
|
+
resolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
37
|
+
}, import("zod/v4/core").$strip>;
|
|
38
|
+
video: import("zod").ZodObject<{
|
|
39
|
+
price: import("zod").ZodNumber;
|
|
40
|
+
modelName: import("zod").ZodString;
|
|
41
|
+
modelSlug: import("zod").ZodNullable<import("zod").ZodString>;
|
|
42
|
+
resolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
43
|
+
}, import("zod/v4/core").$strip>;
|
|
44
|
+
}, import("zod/v4/core").$strip>;
|
|
45
|
+
500: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=get-pricing-min-prices.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pricing-min-prices.query.d.ts","sourceRoot":"","sources":["../../../../pricing-page/endpoints/queries/get-pricing-min-prices.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;gCAAyB,CAAC;AAEvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPricingMinPricesQuery = exports.GetPricingMinPricesQueryResponse = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const pricing_page_1 = require("../pricing-page");
|
|
7
|
+
exports.GetPricingMinPricesQueryResponse = models_1.PricingMinPricesSchema;
|
|
8
|
+
exports.GetPricingMinPricesQuery = (0, _common_1.defineContract)({
|
|
9
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
10
|
+
path: pricing_page_1.PRICING_PAGE_ROUTES.MIN_PRICES,
|
|
11
|
+
summary: 'Get the cheapest text, image and video model prices for the main page',
|
|
12
|
+
responses: {
|
|
13
|
+
200: exports.GetPricingMinPricesQueryResponse,
|
|
14
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../pricing-page/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../pricing-page/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC"}
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./get-pricing-page.query"), exports);
|
|
18
|
+
__exportStar(require("./get-pricing-min-prices.query"), exports);
|
|
@@ -2,6 +2,7 @@ export * from './pricing-breadcrumb-item.schema';
|
|
|
2
2
|
export * from './pricing-condition-item.schema';
|
|
3
3
|
export * from './pricing-faq-item.schema';
|
|
4
4
|
export * from './pricing-image-model.schema';
|
|
5
|
+
export * from './pricing-min-prices.schema';
|
|
5
6
|
export * from './pricing-models.schema';
|
|
6
7
|
export * from './pricing-page.schema';
|
|
7
8
|
export * from './pricing-text-model.schema';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./pricing-breadcrumb-item.schema"), exports);
|
|
|
18
18
|
__exportStar(require("./pricing-condition-item.schema"), exports);
|
|
19
19
|
__exportStar(require("./pricing-faq-item.schema"), exports);
|
|
20
20
|
__exportStar(require("./pricing-image-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./pricing-min-prices.schema"), exports);
|
|
21
22
|
__exportStar(require("./pricing-models.schema"), exports);
|
|
22
23
|
__exportStar(require("./pricing-page.schema"), exports);
|
|
23
24
|
__exportStar(require("./pricing-text-model.schema"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingMinPriceSchema: z.ZodObject<{
|
|
3
|
+
price: z.ZodNumber;
|
|
4
|
+
modelName: z.ZodString;
|
|
5
|
+
modelSlug: z.ZodNullable<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const PricingMinPriceWithResolutionSchema: z.ZodObject<{
|
|
8
|
+
price: z.ZodNumber;
|
|
9
|
+
modelName: z.ZodString;
|
|
10
|
+
modelSlug: z.ZodNullable<z.ZodString>;
|
|
11
|
+
resolution: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const PricingMinPricesSchema: z.ZodObject<{
|
|
14
|
+
text: z.ZodObject<{
|
|
15
|
+
price: z.ZodNumber;
|
|
16
|
+
modelName: z.ZodString;
|
|
17
|
+
modelSlug: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
image: z.ZodObject<{
|
|
20
|
+
price: z.ZodNumber;
|
|
21
|
+
modelName: z.ZodString;
|
|
22
|
+
modelSlug: z.ZodNullable<z.ZodString>;
|
|
23
|
+
resolution: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
video: z.ZodObject<{
|
|
26
|
+
price: z.ZodNumber;
|
|
27
|
+
modelName: z.ZodString;
|
|
28
|
+
modelSlug: z.ZodNullable<z.ZodString>;
|
|
29
|
+
resolution: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type PricingMinPriceSchemaType = z.infer<typeof PricingMinPriceSchema>;
|
|
33
|
+
export type PricingMinPriceWithResolutionSchemaType = z.infer<typeof PricingMinPriceWithResolutionSchema>;
|
|
34
|
+
export type PricingMinPricesSchemaType = z.infer<typeof PricingMinPricesSchema>;
|
|
35
|
+
//# sourceMappingURL=pricing-min-prices.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-min-prices.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-min-prices.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;iBAE9C,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;iBAIjC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingMinPricesSchema = exports.PricingMinPriceWithResolutionSchema = exports.PricingMinPriceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PricingMinPriceSchema = zod_1.z.object({
|
|
6
|
+
price: zod_1.z.number().nonnegative(),
|
|
7
|
+
modelName: zod_1.z.string().min(1),
|
|
8
|
+
modelSlug: zod_1.z.string().min(1).nullable(),
|
|
9
|
+
});
|
|
10
|
+
exports.PricingMinPriceWithResolutionSchema = exports.PricingMinPriceSchema.extend({
|
|
11
|
+
resolution: zod_1.z.string().min(1).nullable(),
|
|
12
|
+
});
|
|
13
|
+
exports.PricingMinPricesSchema = zod_1.z.object({
|
|
14
|
+
text: exports.PricingMinPriceSchema,
|
|
15
|
+
image: exports.PricingMinPriceWithResolutionSchema,
|
|
16
|
+
video: exports.PricingMinPriceWithResolutionSchema,
|
|
17
|
+
});
|
|
@@ -47,8 +47,8 @@ export declare const ReferralAdvertisingLinkStatsSchema: z.ZodObject<{
|
|
|
47
47
|
description: z.ZodNullable<z.ZodString>;
|
|
48
48
|
createdAt: z.ZodISODateTime;
|
|
49
49
|
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
50
|
-
source: z.ZodNullable<z.ZodString>;
|
|
51
50
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
51
|
+
source: z.ZodNullable<z.ZodString>;
|
|
52
52
|
metrics: z.ZodObject<{
|
|
53
53
|
clicks: z.ZodNumber;
|
|
54
54
|
registrations: z.ZodNumber;
|
|
@@ -64,8 +64,8 @@ export declare const GetReferralAdvertisingLinksResponseSchema: z.ZodObject<{
|
|
|
64
64
|
description: z.ZodNullable<z.ZodString>;
|
|
65
65
|
createdAt: z.ZodISODateTime;
|
|
66
66
|
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
67
|
-
source: z.ZodNullable<z.ZodString>;
|
|
68
67
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
68
|
+
source: z.ZodNullable<z.ZodString>;
|
|
69
69
|
metrics: z.ZodObject<{
|
|
70
70
|
clicks: z.ZodNumber;
|
|
71
71
|
registrations: z.ZodNumber;
|
|
@@ -47,8 +47,8 @@ export declare const ReferralLinkStatsItemSchema: z.ZodObject<{
|
|
|
47
47
|
description: z.ZodNullable<z.ZodString>;
|
|
48
48
|
createdAt: z.ZodISODateTime;
|
|
49
49
|
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
50
|
-
source: z.ZodNullable<z.ZodString>;
|
|
51
50
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
51
|
+
source: z.ZodNullable<z.ZodString>;
|
|
52
52
|
metrics: z.ZodObject<{
|
|
53
53
|
visitsTotal: z.ZodNumber;
|
|
54
54
|
visitsUnique: z.ZodNumber;
|
|
@@ -69,8 +69,8 @@ export declare const GetReferralLinksStatsResponseSchema: z.ZodObject<{
|
|
|
69
69
|
description: z.ZodNullable<z.ZodString>;
|
|
70
70
|
createdAt: z.ZodISODateTime;
|
|
71
71
|
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
72
|
-
source: z.ZodNullable<z.ZodString>;
|
|
73
72
|
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
73
|
+
source: z.ZodNullable<z.ZodString>;
|
|
74
74
|
metrics: z.ZodObject<{
|
|
75
75
|
visitsTotal: z.ZodNumber;
|
|
76
76
|
visitsUnique: z.ZodNumber;
|