@ai-grator/api 0.1.38 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/admin/endpoints/commands/create-admin-page.command.d.ts +48 -0
- package/build/admin/endpoints/commands/create-admin-page.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/update-admin-page-status.command.d.ts +24 -0
- package/build/admin/endpoints/commands/update-admin-page-status.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/update-admin-page.command.d.ts +48 -0
- package/build/admin/endpoints/commands/update-admin-page.command.d.ts.map +1 -1
- package/build/admin/endpoints/queries/get-admin-page.query.d.ts +24 -0
- package/build/admin/endpoints/queries/get-admin-page.query.d.ts.map +1 -1
- package/build/admin/models/admin-page-response.schema.d.ts +12 -0
- package/build/admin/models/admin-page-response.schema.d.ts.map +1 -1
- package/build/errors/errors.d.ts +7 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +7 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +3 -3
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +2 -2
- package/build/generation-job/models/generation-job-attachment-file.schema.d.ts +2 -2
- package/build/generation-job/models/generation-job-response.schema.d.ts +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/model-page/endpoints/model-page.d.ts +4 -0
- package/build/model-page/endpoints/model-page.d.ts.map +1 -1
- package/build/model-page/endpoints/model-page.js +5 -1
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts +24 -0
- package/build/model-page/endpoints/queries/get-public-model-by-slug.query.d.ts.map +1 -1
- package/build/model-page/endpoints/queries/get-public-page-by-slug.query.d.ts +387 -0
- package/build/model-page/endpoints/queries/get-public-page-by-slug.query.d.ts.map +1 -0
- package/build/model-page/endpoints/queries/get-public-page-by-slug.query.js +25 -0
- 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/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/page-content.schema.d.ts +37 -0
- package/build/model-page/models/page-content.schema.d.ts.map +1 -1
- package/build/model-page/models/page-content.schema.js +13 -1
- package/build/model-page/models/public-model-detail.schema.d.ts +12 -0
- package/build/model-page/models/public-model-detail.schema.d.ts.map +1 -1
- package/build/model-page/models/public-page.schema.d.ts +187 -0
- package/build/model-page/models/public-page.schema.d.ts.map +1 -0
- package/build/model-page/models/public-page.schema.js +16 -0
- package/build/pricing-page/endpoints/index.d.ts +3 -0
- package/build/pricing-page/endpoints/index.d.ts.map +1 -0
- package/build/pricing-page/endpoints/index.js +18 -0
- package/build/pricing-page/endpoints/pricing-page.d.ts +5 -0
- package/build/pricing-page/endpoints/pricing-page.d.ts.map +1 -0
- package/build/pricing-page/endpoints/pricing-page.js +7 -0
- package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts +132 -0
- package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts.map +1 -0
- package/build/pricing-page/endpoints/queries/get-pricing-page.query.js +16 -0
- package/build/pricing-page/endpoints/queries/index.d.ts +2 -0
- package/build/pricing-page/endpoints/queries/index.d.ts.map +1 -0
- package/build/pricing-page/endpoints/queries/index.js +17 -0
- package/build/pricing-page/index.d.ts +3 -0
- package/build/pricing-page/index.d.ts.map +1 -0
- package/build/pricing-page/index.js +18 -0
- package/build/pricing-page/models/index.d.ts +9 -0
- package/build/pricing-page/models/index.d.ts.map +1 -0
- package/build/pricing-page/models/index.js +24 -0
- package/build/pricing-page/models/pricing-breadcrumb-item.schema.d.ts +7 -0
- package/build/pricing-page/models/pricing-breadcrumb-item.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-breadcrumb-item.schema.js +8 -0
- package/build/pricing-page/models/pricing-calculator-task.schema.d.ts +48 -0
- package/build/pricing-page/models/pricing-calculator-task.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-calculator-task.schema.js +27 -0
- package/build/pricing-page/models/pricing-faq-item.schema.d.ts +7 -0
- package/build/pricing-page/models/pricing-faq-item.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-faq-item.schema.js +8 -0
- package/build/pricing-page/models/pricing-image-model.schema.d.ts +10 -0
- package/build/pricing-page/models/pricing-image-model.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-image-model.schema.js +11 -0
- package/build/pricing-page/models/pricing-models.schema.d.ts +45 -0
- package/build/pricing-page/models/pricing-models.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-models.schema.js +17 -0
- package/build/pricing-page/models/pricing-page.schema.d.ts +64 -0
- package/build/pricing-page/models/pricing-page.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-page.schema.js +15 -0
- package/build/pricing-page/models/pricing-text-model.schema.d.ts +10 -0
- package/build/pricing-page/models/pricing-text-model.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-text-model.schema.js +11 -0
- package/build/pricing-page/models/pricing-video-model.schema.d.ts +13 -0
- package/build/pricing-page/models/pricing-video-model.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-video-model.schema.js +14 -0
- package/build/scripts/generate-openapi.js +67 -491
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +7 -0
- package/index.ts +1 -0
- package/model-page/endpoints/model-page.ts +6 -0
- package/model-page/endpoints/queries/get-public-page-by-slug.query.ts +28 -0
- package/model-page/endpoints/queries/index.ts +1 -0
- package/model-page/models/index.ts +1 -0
- package/model-page/models/page-content.schema.ts +15 -0
- package/model-page/models/public-page.schema.ts +17 -0
- package/package.json +1 -1
- package/pricing-page/endpoints/index.ts +2 -0
- package/pricing-page/endpoints/pricing-page.ts +5 -0
- package/pricing-page/endpoints/queries/get-pricing-page.query.ts +15 -0
- package/pricing-page/endpoints/queries/index.ts +1 -0
- package/pricing-page/index.ts +2 -0
- package/pricing-page/models/index.ts +8 -0
- package/pricing-page/models/pricing-breadcrumb-item.schema.ts +8 -0
- package/pricing-page/models/pricing-calculator-task.schema.ts +34 -0
- package/pricing-page/models/pricing-faq-item.schema.ts +8 -0
- package/pricing-page/models/pricing-image-model.schema.ts +11 -0
- package/pricing-page/models/pricing-models.schema.ts +19 -0
- package/pricing-page/models/pricing-page.schema.ts +15 -0
- package/pricing-page/models/pricing-text-model.schema.ts +11 -0
- package/pricing-page/models/pricing-video-model.schema.ts +14 -0
- package/scripts/generate-openapi.ts +97 -526
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PAGE_TYPE } from '../enums';
|
|
3
|
+
export declare const PUBLIC_PAGE_TYPES: readonly [PAGE_TYPE.STATIC, PAGE_TYPE.HUB];
|
|
4
|
+
export declare const PublicPageSchema: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
static: PAGE_TYPE.STATIC;
|
|
8
|
+
hub: PAGE_TYPE.HUB;
|
|
9
|
+
}>;
|
|
10
|
+
seo: z.ZodObject<{
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
h1: z.ZodString;
|
|
13
|
+
focusKeyword: z.ZodNullable<z.ZodString>;
|
|
14
|
+
canonicalUrl: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodURL]>;
|
|
15
|
+
robotsIndex: z.ZodEnum<typeof import("../enums").ROBOTS_INDEX>;
|
|
16
|
+
robotsFollow: z.ZodEnum<typeof import("../enums").ROBOTS_FOLLOW>;
|
|
17
|
+
twitterCard: z.ZodEnum<typeof import("../enums").TWITTER_CARD>;
|
|
18
|
+
hreflangAlternates: z.ZodArray<z.ZodObject<{
|
|
19
|
+
locale: z.ZodString;
|
|
20
|
+
url: z.ZodURL;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
23
|
+
ogTitle: z.ZodString;
|
|
24
|
+
ogDescription: z.ZodNullable<z.ZodString>;
|
|
25
|
+
ogImage: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
schemaToggles: z.ZodObject<{
|
|
28
|
+
enableProductSchema: z.ZodBoolean;
|
|
29
|
+
enableFAQSchema: z.ZodBoolean;
|
|
30
|
+
enableBreadcrumbSchema: z.ZodBoolean;
|
|
31
|
+
enableOrganizationSchema: z.ZodBoolean;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
content: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
blocks: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
37
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
38
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
39
|
+
type: z.ZodLiteral<"richText">;
|
|
40
|
+
body: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
44
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
45
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
46
|
+
type: z.ZodLiteral<"featureList">;
|
|
47
|
+
items: z.ZodArray<z.ZodObject<{
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
body: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
54
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
55
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
56
|
+
type: z.ZodLiteral<"specs">;
|
|
57
|
+
items: z.ZodArray<z.ZodObject<{
|
|
58
|
+
label: z.ZodString;
|
|
59
|
+
value: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
64
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
65
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
66
|
+
type: z.ZodLiteral<"examples">;
|
|
67
|
+
items: z.ZodArray<z.ZodObject<{
|
|
68
|
+
title: z.ZodString;
|
|
69
|
+
alt: z.ZodString;
|
|
70
|
+
prompt: z.ZodString;
|
|
71
|
+
settings: z.ZodString;
|
|
72
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
73
|
+
images: z.ZodArray<z.ZodObject<{
|
|
74
|
+
url: z.ZodURL;
|
|
75
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
76
|
+
readonly image: "image";
|
|
77
|
+
readonly video: "video";
|
|
78
|
+
}>>;
|
|
79
|
+
alt: z.ZodString;
|
|
80
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
86
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
87
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
88
|
+
type: z.ZodLiteral<"comparison">;
|
|
89
|
+
columns: z.ZodArray<z.ZodString>;
|
|
90
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
91
|
+
label: z.ZodString;
|
|
92
|
+
values: z.ZodArray<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
97
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
98
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
99
|
+
type: z.ZodLiteral<"prosCons">;
|
|
100
|
+
items: z.ZodArray<z.ZodObject<{
|
|
101
|
+
title: z.ZodString;
|
|
102
|
+
pros: z.ZodArray<z.ZodString>;
|
|
103
|
+
cons: z.ZodArray<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
108
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
109
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
110
|
+
type: z.ZodLiteral<"steps">;
|
|
111
|
+
items: z.ZodArray<z.ZodObject<{
|
|
112
|
+
title: z.ZodString;
|
|
113
|
+
body: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
118
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
119
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
120
|
+
type: z.ZodLiteral<"faq">;
|
|
121
|
+
items: z.ZodArray<z.ZodObject<{
|
|
122
|
+
question: z.ZodString;
|
|
123
|
+
answer: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
128
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
129
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
130
|
+
type: z.ZodLiteral<"relatedLinks">;
|
|
131
|
+
items: z.ZodArray<z.ZodObject<{
|
|
132
|
+
kind: z.ZodEnum<{
|
|
133
|
+
readonly model: "model";
|
|
134
|
+
readonly task: "task";
|
|
135
|
+
}>;
|
|
136
|
+
slug: z.ZodString;
|
|
137
|
+
title: z.ZodString;
|
|
138
|
+
note: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
143
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
144
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
145
|
+
type: z.ZodLiteral<"demo">;
|
|
146
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
147
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
label: z.ZodString;
|
|
150
|
+
prompt: z.ZodString;
|
|
151
|
+
settings: z.ZodNullable<z.ZodString>;
|
|
152
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
153
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
154
|
+
url: z.ZodURL;
|
|
155
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
readonly image: "image";
|
|
157
|
+
readonly video: "video";
|
|
158
|
+
}>>;
|
|
159
|
+
alt: z.ZodString;
|
|
160
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
166
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
167
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
168
|
+
type: z.ZodLiteral<"pricingWidget">;
|
|
169
|
+
ctaLabel: z.ZodString;
|
|
170
|
+
ctaSlug: z.ZodString;
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
heading: z.ZodNullable<z.ZodString>;
|
|
174
|
+
intro: z.ZodNullable<z.ZodString>;
|
|
175
|
+
outro: z.ZodNullable<z.ZodString>;
|
|
176
|
+
type: z.ZodLiteral<"pricingTable">;
|
|
177
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
178
|
+
label: z.ZodString;
|
|
179
|
+
price: z.ZodString;
|
|
180
|
+
unit: z.ZodString;
|
|
181
|
+
note: z.ZodNullable<z.ZodString>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
}, z.core.$strip>], "type">>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type PublicPageSchemaType = z.infer<typeof PublicPageSchema>;
|
|
187
|
+
//# sourceMappingURL=public-page.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-page.schema.d.ts","sourceRoot":"","sources":["../../../model-page/models/public-page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAKrC,eAAO,MAAM,iBAAiB,4CAA6C,CAAC;AAE5E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicPageSchema = exports.PUBLIC_PAGE_TYPES = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
const page_content_schema_1 = require("./page-content.schema");
|
|
7
|
+
const schema_toggles_schema_1 = require("./schema-toggles.schema");
|
|
8
|
+
const seo_meta_schema_1 = require("./seo-meta.schema");
|
|
9
|
+
exports.PUBLIC_PAGE_TYPES = [enums_1.PAGE_TYPE.STATIC, enums_1.PAGE_TYPE.HUB];
|
|
10
|
+
exports.PublicPageSchema = zod_1.z.object({
|
|
11
|
+
slug: zod_1.z.string().min(1),
|
|
12
|
+
type: zod_1.z.enum(exports.PUBLIC_PAGE_TYPES),
|
|
13
|
+
seo: seo_meta_schema_1.PublicSeoMetaSchema,
|
|
14
|
+
schemaToggles: schema_toggles_schema_1.SchemaTogglesSchema,
|
|
15
|
+
content: page_content_schema_1.PageContentSchema.nullable(),
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../pricing-page/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./pricing-page"), exports);
|
|
18
|
+
__exportStar(require("./queries"), exports);
|
|
@@ -0,0 +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;;CAEtB,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
2
|
+
export declare const GetPricingPageQueryResponse: import("zod").ZodObject<{
|
|
3
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
4
|
+
models: import("zod").ZodObject<{
|
|
5
|
+
text: import("zod").ZodObject<{
|
|
6
|
+
inputUnitChars: import("zod").ZodNumber;
|
|
7
|
+
outputUnitChars: import("zod").ZodNumber;
|
|
8
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
slug: import("zod").ZodString;
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
context: import("zod").ZodNumber;
|
|
12
|
+
inputPrice: import("zod").ZodNumber;
|
|
13
|
+
outputPrice: import("zod").ZodNumber;
|
|
14
|
+
}, import("zod/v4/core").$strip>>;
|
|
15
|
+
}, import("zod/v4/core").$strip>;
|
|
16
|
+
image: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
slug: import("zod").ZodString;
|
|
18
|
+
name: import("zod").ZodString;
|
|
19
|
+
maxResolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
20
|
+
maxReferences: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
21
|
+
pricePerImage: import("zod").ZodNumber;
|
|
22
|
+
}, import("zod/v4/core").$strip>>;
|
|
23
|
+
video: import("zod").ZodArray<import("zod").ZodObject<{
|
|
24
|
+
slug: import("zod").ZodString;
|
|
25
|
+
name: import("zod").ZodString;
|
|
26
|
+
maxResolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
27
|
+
maxInputChars: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
28
|
+
maxDurationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
29
|
+
maxReferences: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
30
|
+
audio: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
31
|
+
pricePerSecond: import("zod").ZodNumber;
|
|
32
|
+
}, import("zod/v4/core").$strip>>;
|
|
33
|
+
}, import("zod/v4/core").$strip>;
|
|
34
|
+
calculatorTasks: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
35
|
+
key: import("zod").ZodString;
|
|
36
|
+
label: import("zod").ZodString;
|
|
37
|
+
price: import("zod").ZodNumber;
|
|
38
|
+
type: import("zod").ZodLiteral<"text">;
|
|
39
|
+
inputChars: import("zod").ZodNumber;
|
|
40
|
+
outputChars: import("zod").ZodNumber;
|
|
41
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
42
|
+
key: import("zod").ZodString;
|
|
43
|
+
label: import("zod").ZodString;
|
|
44
|
+
price: import("zod").ZodNumber;
|
|
45
|
+
type: import("zod").ZodLiteral<"image">;
|
|
46
|
+
units: import("zod").ZodNumber;
|
|
47
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
48
|
+
key: import("zod").ZodString;
|
|
49
|
+
label: import("zod").ZodString;
|
|
50
|
+
price: import("zod").ZodNumber;
|
|
51
|
+
type: import("zod").ZodLiteral<"video">;
|
|
52
|
+
units: import("zod").ZodNumber;
|
|
53
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
54
|
+
faq: import("zod").ZodArray<import("zod").ZodObject<{
|
|
55
|
+
question: import("zod").ZodString;
|
|
56
|
+
answer: import("zod").ZodString;
|
|
57
|
+
}, import("zod/v4/core").$strip>>;
|
|
58
|
+
breadcrumb: import("zod").ZodArray<import("zod").ZodObject<{
|
|
59
|
+
label: import("zod").ZodString;
|
|
60
|
+
url: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
61
|
+
}, import("zod/v4/core").$strip>>;
|
|
62
|
+
}, import("zod/v4/core").$strip>;
|
|
63
|
+
export declare const GetPricingPageQuery: {
|
|
64
|
+
method: HTTP_METHODS.GET;
|
|
65
|
+
path: "";
|
|
66
|
+
summary: string;
|
|
67
|
+
responses: {
|
|
68
|
+
200: import("zod").ZodObject<{
|
|
69
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
70
|
+
models: import("zod").ZodObject<{
|
|
71
|
+
text: import("zod").ZodObject<{
|
|
72
|
+
inputUnitChars: import("zod").ZodNumber;
|
|
73
|
+
outputUnitChars: import("zod").ZodNumber;
|
|
74
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
75
|
+
slug: import("zod").ZodString;
|
|
76
|
+
name: import("zod").ZodString;
|
|
77
|
+
context: import("zod").ZodNumber;
|
|
78
|
+
inputPrice: import("zod").ZodNumber;
|
|
79
|
+
outputPrice: import("zod").ZodNumber;
|
|
80
|
+
}, import("zod/v4/core").$strip>>;
|
|
81
|
+
}, import("zod/v4/core").$strip>;
|
|
82
|
+
image: import("zod").ZodArray<import("zod").ZodObject<{
|
|
83
|
+
slug: import("zod").ZodString;
|
|
84
|
+
name: import("zod").ZodString;
|
|
85
|
+
maxResolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
86
|
+
maxReferences: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
87
|
+
pricePerImage: import("zod").ZodNumber;
|
|
88
|
+
}, import("zod/v4/core").$strip>>;
|
|
89
|
+
video: import("zod").ZodArray<import("zod").ZodObject<{
|
|
90
|
+
slug: import("zod").ZodString;
|
|
91
|
+
name: import("zod").ZodString;
|
|
92
|
+
maxResolution: import("zod").ZodNullable<import("zod").ZodString>;
|
|
93
|
+
maxInputChars: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
94
|
+
maxDurationSec: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
95
|
+
maxReferences: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
96
|
+
audio: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
97
|
+
pricePerSecond: import("zod").ZodNumber;
|
|
98
|
+
}, import("zod/v4/core").$strip>>;
|
|
99
|
+
}, import("zod/v4/core").$strip>;
|
|
100
|
+
calculatorTasks: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
101
|
+
key: import("zod").ZodString;
|
|
102
|
+
label: import("zod").ZodString;
|
|
103
|
+
price: import("zod").ZodNumber;
|
|
104
|
+
type: import("zod").ZodLiteral<"text">;
|
|
105
|
+
inputChars: import("zod").ZodNumber;
|
|
106
|
+
outputChars: import("zod").ZodNumber;
|
|
107
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
108
|
+
key: import("zod").ZodString;
|
|
109
|
+
label: import("zod").ZodString;
|
|
110
|
+
price: import("zod").ZodNumber;
|
|
111
|
+
type: import("zod").ZodLiteral<"image">;
|
|
112
|
+
units: import("zod").ZodNumber;
|
|
113
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
114
|
+
key: import("zod").ZodString;
|
|
115
|
+
label: import("zod").ZodString;
|
|
116
|
+
price: import("zod").ZodNumber;
|
|
117
|
+
type: import("zod").ZodLiteral<"video">;
|
|
118
|
+
units: import("zod").ZodNumber;
|
|
119
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
120
|
+
faq: import("zod").ZodArray<import("zod").ZodObject<{
|
|
121
|
+
question: import("zod").ZodString;
|
|
122
|
+
answer: import("zod").ZodString;
|
|
123
|
+
}, import("zod/v4/core").$strip>>;
|
|
124
|
+
breadcrumb: import("zod").ZodArray<import("zod").ZodObject<{
|
|
125
|
+
label: import("zod").ZodString;
|
|
126
|
+
url: import("zod").ZodNullable<import("zod").ZodURL>;
|
|
127
|
+
}, import("zod/v4/core").$strip>>;
|
|
128
|
+
}, import("zod/v4/core").$strip>;
|
|
129
|
+
500: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=get-pricing-page.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-pricing-page.query.d.ts","sourceRoot":"","sources":["../../../../pricing-page/endpoints/queries/get-pricing-page.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAoB,CAAC;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPricingPageQuery = exports.GetPricingPageQueryResponse = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const pricing_page_1 = require("../pricing-page");
|
|
7
|
+
exports.GetPricingPageQueryResponse = models_1.PricingPageSchema;
|
|
8
|
+
exports.GetPricingPageQuery = (0, _common_1.defineContract)({
|
|
9
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
10
|
+
path: pricing_page_1.PRICING_PAGE_ROUTES.GET,
|
|
11
|
+
summary: 'Get pricing page data: model tables, calculator tasks, FAQ and breadcrumb',
|
|
12
|
+
responses: {
|
|
13
|
+
200: exports.GetPricingPageQueryResponse,
|
|
14
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../pricing-page/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-pricing-page.query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pricing-page/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./models"), exports);
|
|
18
|
+
__exportStar(require("./endpoints"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './pricing-breadcrumb-item.schema';
|
|
2
|
+
export * from './pricing-calculator-task.schema';
|
|
3
|
+
export * from './pricing-faq-item.schema';
|
|
4
|
+
export * from './pricing-image-model.schema';
|
|
5
|
+
export * from './pricing-models.schema';
|
|
6
|
+
export * from './pricing-page.schema';
|
|
7
|
+
export * from './pricing-text-model.schema';
|
|
8
|
+
export * from './pricing-video-model.schema';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./pricing-breadcrumb-item.schema"), exports);
|
|
18
|
+
__exportStar(require("./pricing-calculator-task.schema"), exports);
|
|
19
|
+
__exportStar(require("./pricing-faq-item.schema"), exports);
|
|
20
|
+
__exportStar(require("./pricing-image-model.schema"), exports);
|
|
21
|
+
__exportStar(require("./pricing-models.schema"), exports);
|
|
22
|
+
__exportStar(require("./pricing-page.schema"), exports);
|
|
23
|
+
__exportStar(require("./pricing-text-model.schema"), exports);
|
|
24
|
+
__exportStar(require("./pricing-video-model.schema"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingBreadcrumbItemSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PricingBreadcrumbItemSchemaType = z.infer<typeof PricingBreadcrumbItemSchema>;
|
|
7
|
+
//# sourceMappingURL=pricing-breadcrumb-item.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-breadcrumb-item.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-breadcrumb-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingBreadcrumbItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PricingBreadcrumbItemSchema = zod_1.z.object({
|
|
6
|
+
label: zod_1.z.string().min(1),
|
|
7
|
+
url: zod_1.z.url().nullable(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingCalculatorTextTaskSchema: z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
price: z.ZodNumber;
|
|
6
|
+
type: z.ZodLiteral<"text">;
|
|
7
|
+
inputChars: z.ZodNumber;
|
|
8
|
+
outputChars: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const PricingCalculatorImageTaskSchema: z.ZodObject<{
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
price: z.ZodNumber;
|
|
14
|
+
type: z.ZodLiteral<"image">;
|
|
15
|
+
units: z.ZodNumber;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const PricingCalculatorVideoTaskSchema: z.ZodObject<{
|
|
18
|
+
key: z.ZodString;
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
price: z.ZodNumber;
|
|
21
|
+
type: z.ZodLiteral<"video">;
|
|
22
|
+
units: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const PricingCalculatorTaskSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
price: z.ZodNumber;
|
|
28
|
+
type: z.ZodLiteral<"text">;
|
|
29
|
+
inputChars: z.ZodNumber;
|
|
30
|
+
outputChars: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
key: z.ZodString;
|
|
33
|
+
label: z.ZodString;
|
|
34
|
+
price: z.ZodNumber;
|
|
35
|
+
type: z.ZodLiteral<"image">;
|
|
36
|
+
units: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
key: z.ZodString;
|
|
39
|
+
label: z.ZodString;
|
|
40
|
+
price: z.ZodNumber;
|
|
41
|
+
type: z.ZodLiteral<"video">;
|
|
42
|
+
units: z.ZodNumber;
|
|
43
|
+
}, z.core.$strip>], "type">;
|
|
44
|
+
export type PricingCalculatorTextTaskSchemaType = z.infer<typeof PricingCalculatorTextTaskSchema>;
|
|
45
|
+
export type PricingCalculatorImageTaskSchemaType = z.infer<typeof PricingCalculatorImageTaskSchema>;
|
|
46
|
+
export type PricingCalculatorVideoTaskSchemaType = z.infer<typeof PricingCalculatorVideoTaskSchema>;
|
|
47
|
+
export type PricingCalculatorTaskSchemaType = z.infer<typeof PricingCalculatorTaskSchema>;
|
|
48
|
+
//# sourceMappingURL=pricing-calculator-task.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-calculator-task.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-calculator-task.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,+BAA+B;;;;;;;iBAI1C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;iBAG3C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;2BAItC,CAAC;AAEH,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;AACpG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACpG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingCalculatorTaskSchema = exports.PricingCalculatorVideoTaskSchema = exports.PricingCalculatorImageTaskSchema = exports.PricingCalculatorTextTaskSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PricingCalculatorTaskBaseSchema = zod_1.z.object({
|
|
6
|
+
key: zod_1.z.string().min(1),
|
|
7
|
+
label: zod_1.z.string().min(1),
|
|
8
|
+
price: zod_1.z.number().nonnegative(),
|
|
9
|
+
});
|
|
10
|
+
exports.PricingCalculatorTextTaskSchema = PricingCalculatorTaskBaseSchema.extend({
|
|
11
|
+
type: zod_1.z.literal('text'),
|
|
12
|
+
inputChars: zod_1.z.number().int().positive(),
|
|
13
|
+
outputChars: zod_1.z.number().int().positive(),
|
|
14
|
+
});
|
|
15
|
+
exports.PricingCalculatorImageTaskSchema = PricingCalculatorTaskBaseSchema.extend({
|
|
16
|
+
type: zod_1.z.literal('image'),
|
|
17
|
+
units: zod_1.z.number().int().positive(),
|
|
18
|
+
});
|
|
19
|
+
exports.PricingCalculatorVideoTaskSchema = PricingCalculatorTaskBaseSchema.extend({
|
|
20
|
+
type: zod_1.z.literal('video'),
|
|
21
|
+
units: zod_1.z.number().int().positive(),
|
|
22
|
+
});
|
|
23
|
+
exports.PricingCalculatorTaskSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
|
+
exports.PricingCalculatorTextTaskSchema,
|
|
25
|
+
exports.PricingCalculatorImageTaskSchema,
|
|
26
|
+
exports.PricingCalculatorVideoTaskSchema,
|
|
27
|
+
]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingFaqItemSchema: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
answer: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PricingFaqItemSchemaType = z.infer<typeof PricingFaqItemSchema>;
|
|
7
|
+
//# sourceMappingURL=pricing-faq-item.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-faq-item.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-faq-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingFaqItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PricingFaqItemSchema = zod_1.z.object({
|
|
6
|
+
question: zod_1.z.string().min(1),
|
|
7
|
+
answer: zod_1.z.string().min(1),
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingImageModelSchema: z.ZodObject<{
|
|
3
|
+
slug: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
maxResolution: z.ZodNullable<z.ZodString>;
|
|
6
|
+
maxReferences: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
pricePerImage: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type PricingImageModelSchemaType = z.infer<typeof PricingImageModelSchema>;
|
|
10
|
+
//# sourceMappingURL=pricing-image-model.schema.d.ts.map
|