@ai-grator/api 0.1.39 → 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/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/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 +5 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/errors/errors.ts +7 -0
- package/index.ts +1 -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 +8 -0
package/build/errors/errors.d.ts
CHANGED
|
@@ -908,6 +908,13 @@ export declare const ERRORS: {
|
|
|
908
908
|
readonly message: "Не удалось удалить страницу";
|
|
909
909
|
};
|
|
910
910
|
};
|
|
911
|
+
readonly PRICING_PAGE: {
|
|
912
|
+
readonly FIND_ERROR: {
|
|
913
|
+
readonly httpCode: 500;
|
|
914
|
+
readonly code: "PRICING_PAGE.FIND_ERROR";
|
|
915
|
+
readonly message: "Не удалось получить данные страницы цен";
|
|
916
|
+
};
|
|
917
|
+
};
|
|
911
918
|
readonly MODEL_FAMILY: {
|
|
912
919
|
readonly NOT_FOUND: {
|
|
913
920
|
readonly httpCode: 404;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA69BT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -911,6 +911,13 @@ exports.ERRORS = {
|
|
|
911
911
|
message: 'Не удалось удалить страницу',
|
|
912
912
|
},
|
|
913
913
|
},
|
|
914
|
+
PRICING_PAGE: {
|
|
915
|
+
FIND_ERROR: {
|
|
916
|
+
httpCode: 500,
|
|
917
|
+
code: 'PRICING_PAGE.FIND_ERROR',
|
|
918
|
+
message: 'Не удалось получить данные страницы цен',
|
|
919
|
+
},
|
|
920
|
+
},
|
|
914
921
|
MODEL_FAMILY: {
|
|
915
922
|
NOT_FOUND: {
|
|
916
923
|
httpCode: 404,
|
|
@@ -33,8 +33,8 @@ export declare const CreateGenerationJobCommandResponse: z.ZodObject<{
|
|
|
33
33
|
fileName: z.ZodString;
|
|
34
34
|
size: z.ZodNumber;
|
|
35
35
|
source: z.ZodEnum<{
|
|
36
|
-
user: "user";
|
|
37
36
|
context: "context";
|
|
37
|
+
user: "user";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>>>>;
|
|
40
40
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -83,8 +83,8 @@ export declare const CreateGenerationJobCommand: {
|
|
|
83
83
|
fileName: z.ZodString;
|
|
84
84
|
size: z.ZodNumber;
|
|
85
85
|
source: z.ZodEnum<{
|
|
86
|
-
user: "user";
|
|
87
86
|
context: "context";
|
|
87
|
+
user: "user";
|
|
88
88
|
}>;
|
|
89
89
|
}, z.core.$strip>>>>;
|
|
90
90
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -31,8 +31,8 @@ export declare const UpdateGenerationJobCommandResponse: z.ZodObject<{
|
|
|
31
31
|
fileName: z.ZodString;
|
|
32
32
|
size: z.ZodNumber;
|
|
33
33
|
source: z.ZodEnum<{
|
|
34
|
-
user: "user";
|
|
35
34
|
context: "context";
|
|
35
|
+
user: "user";
|
|
36
36
|
}>;
|
|
37
37
|
}, z.core.$strip>>>>;
|
|
38
38
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -78,8 +78,8 @@ export declare const UpdateGenerationJobCommand: {
|
|
|
78
78
|
fileName: z.ZodString;
|
|
79
79
|
size: z.ZodNumber;
|
|
80
80
|
source: z.ZodEnum<{
|
|
81
|
-
user: "user";
|
|
82
81
|
context: "context";
|
|
82
|
+
user: "user";
|
|
83
83
|
}>;
|
|
84
84
|
}, z.core.$strip>>>>;
|
|
85
85
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -27,8 +27,8 @@ export declare const GetGenerationJobByUuidQueryResponse: z.ZodObject<{
|
|
|
27
27
|
fileName: z.ZodString;
|
|
28
28
|
size: z.ZodNumber;
|
|
29
29
|
source: z.ZodEnum<{
|
|
30
|
-
user: "user";
|
|
31
30
|
context: "context";
|
|
31
|
+
user: "user";
|
|
32
32
|
}>;
|
|
33
33
|
}, z.core.$strip>>>>;
|
|
34
34
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -71,8 +71,8 @@ export declare const GetGenerationJobByUuidQuery: {
|
|
|
71
71
|
fileName: z.ZodString;
|
|
72
72
|
size: z.ZodNumber;
|
|
73
73
|
source: z.ZodEnum<{
|
|
74
|
-
user: "user";
|
|
75
74
|
context: "context";
|
|
75
|
+
user: "user";
|
|
76
76
|
}>;
|
|
77
77
|
}, z.core.$strip>>>>;
|
|
78
78
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -33,8 +33,8 @@ export declare const GenerationJobHistoryItemSchema: z.ZodObject<{
|
|
|
33
33
|
fileName: z.ZodString;
|
|
34
34
|
size: z.ZodNumber;
|
|
35
35
|
source: z.ZodEnum<{
|
|
36
|
-
user: "user";
|
|
37
36
|
context: "context";
|
|
37
|
+
user: "user";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>>>>;
|
|
40
40
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -69,8 +69,8 @@ export declare const GetGenerationJobHistoryQueryResponse: z.ZodObject<{
|
|
|
69
69
|
fileName: z.ZodString;
|
|
70
70
|
size: z.ZodNumber;
|
|
71
71
|
source: z.ZodEnum<{
|
|
72
|
-
user: "user";
|
|
73
72
|
context: "context";
|
|
73
|
+
user: "user";
|
|
74
74
|
}>;
|
|
75
75
|
}, z.core.$strip>>>>;
|
|
76
76
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -124,8 +124,8 @@ export declare const GetGenerationJobHistoryQuery: {
|
|
|
124
124
|
fileName: z.ZodString;
|
|
125
125
|
size: z.ZodNumber;
|
|
126
126
|
source: z.ZodEnum<{
|
|
127
|
-
user: "user";
|
|
128
127
|
context: "context";
|
|
128
|
+
user: "user";
|
|
129
129
|
}>;
|
|
130
130
|
}, z.core.$strip>>>>;
|
|
131
131
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -28,8 +28,8 @@ export declare const GetGenerationJobsQueryResponse: z.ZodObject<{
|
|
|
28
28
|
fileName: z.ZodString;
|
|
29
29
|
size: z.ZodNumber;
|
|
30
30
|
source: z.ZodEnum<{
|
|
31
|
-
user: "user";
|
|
32
31
|
context: "context";
|
|
32
|
+
user: "user";
|
|
33
33
|
}>;
|
|
34
34
|
}, z.core.$strip>>>>;
|
|
35
35
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -74,8 +74,8 @@ export declare const GetGenerationJobsQuery: {
|
|
|
74
74
|
fileName: z.ZodString;
|
|
75
75
|
size: z.ZodNumber;
|
|
76
76
|
source: z.ZodEnum<{
|
|
77
|
-
user: "user";
|
|
78
77
|
context: "context";
|
|
78
|
+
user: "user";
|
|
79
79
|
}>;
|
|
80
80
|
}, z.core.$strip>>>>;
|
|
81
81
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GenerationJobAttachmentFileSourceSchema: z.ZodEnum<{
|
|
3
|
-
user: "user";
|
|
4
3
|
context: "context";
|
|
4
|
+
user: "user";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const GenerationJobAttachmentFileSchema: z.ZodObject<{
|
|
7
7
|
uuid: z.ZodString;
|
|
@@ -12,8 +12,8 @@ export declare const GenerationJobAttachmentFileSchema: z.ZodObject<{
|
|
|
12
12
|
fileName: z.ZodString;
|
|
13
13
|
size: z.ZodNumber;
|
|
14
14
|
source: z.ZodEnum<{
|
|
15
|
-
user: "user";
|
|
16
15
|
context: "context";
|
|
16
|
+
user: "user";
|
|
17
17
|
}>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
19
|
export type GenerationJobAttachmentFileSourceSchemaType = z.infer<typeof GenerationJobAttachmentFileSourceSchema>;
|
|
@@ -33,8 +33,8 @@ export declare const GenerationJobResponseSchema: z.ZodObject<{
|
|
|
33
33
|
fileName: z.ZodString;
|
|
34
34
|
size: z.ZodNumber;
|
|
35
35
|
source: z.ZodEnum<{
|
|
36
|
-
user: "user";
|
|
37
36
|
context: "context";
|
|
37
|
+
user: "user";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>>>>;
|
|
40
40
|
errorMessage: z.ZodNullable<z.ZodString>;
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./ai-model"), exports);
|
|
|
19
19
|
__exportStar(require("./generation-model"), exports);
|
|
20
20
|
__exportStar(require("./model-catalog"), exports);
|
|
21
21
|
__exportStar(require("./model-page"), exports);
|
|
22
|
+
__exportStar(require("./pricing-page"), exports);
|
|
22
23
|
__exportStar(require("./generation-job"), exports);
|
|
23
24
|
__exportStar(require("./article"), exports);
|
|
24
25
|
__exportStar(require("./auth"), exports);
|
|
@@ -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
|
+
});
|