@ai-grator/api 0.1.40 → 0.1.42
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/contact-form/endpoints/commands/index.d.ts +2 -0
- package/build/contact-form/endpoints/commands/index.d.ts.map +1 -0
- package/build/contact-form/endpoints/commands/index.js +17 -0
- package/build/contact-form/endpoints/commands/submit-contact-form.command.d.ts +25 -0
- package/build/contact-form/endpoints/commands/submit-contact-form.command.d.ts.map +1 -0
- package/build/contact-form/endpoints/commands/submit-contact-form.command.js +25 -0
- package/build/contact-form/endpoints/contact-form.d.ts +5 -0
- package/build/contact-form/endpoints/contact-form.d.ts.map +1 -0
- package/build/contact-form/endpoints/contact-form.js +7 -0
- package/build/contact-form/endpoints/index.d.ts +3 -0
- package/build/contact-form/endpoints/index.d.ts.map +1 -0
- package/build/contact-form/endpoints/index.js +18 -0
- package/build/contact-form/index.d.ts +2 -0
- package/build/contact-form/index.d.ts.map +1 -0
- package/build/contact-form/index.js +17 -0
- 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/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts +12 -0
- package/build/pricing-page/endpoints/queries/get-pricing-page.query.d.ts.map +1 -1
- 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-condition-item.schema.d.ts +7 -0
- package/build/pricing-page/models/pricing-condition-item.schema.d.ts.map +1 -0
- package/build/pricing-page/models/pricing-condition-item.schema.js +8 -0
- package/build/pricing-page/models/pricing-page.schema.d.ts +6 -0
- package/build/pricing-page/models/pricing-page.schema.d.ts.map +1 -1
- package/build/pricing-page/models/pricing-page.schema.js +4 -0
- package/build/scripts/generate-openapi.js +6 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/contact-form/endpoints/commands/index.ts +1 -0
- package/contact-form/endpoints/commands/submit-contact-form.command.ts +25 -0
- package/contact-form/endpoints/contact-form.ts +5 -0
- package/contact-form/endpoints/index.ts +2 -0
- package/contact-form/index.ts +1 -0
- package/errors/errors.ts +7 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/pricing-page/models/index.ts +1 -0
- package/pricing-page/models/pricing-condition-item.schema.ts +8 -0
- package/pricing-page/models/pricing-page.schema.ts +4 -0
- package/scripts/generate-openapi.ts +10 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../contact-form/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,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("./submit-contact-form.command"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const SubmitContactFormCommandBody: z.ZodObject<{
|
|
4
|
+
email: z.ZodEmail;
|
|
5
|
+
message: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const SubmitContactFormCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
8
|
+
export declare const SubmitContactFormCommand: {
|
|
9
|
+
method: HTTP_METHODS.POST;
|
|
10
|
+
path: "";
|
|
11
|
+
summary: string;
|
|
12
|
+
request: {
|
|
13
|
+
body: z.ZodObject<{
|
|
14
|
+
email: z.ZodEmail;
|
|
15
|
+
message: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
};
|
|
18
|
+
responses: {
|
|
19
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
20
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
429: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=submit-contact-form.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submit-contact-form.command.d.ts","sourceRoot":"","sources":["../../../../contact-form/endpoints/commands/submit-contact-form.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,gCAAgC,uJAA4B,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;CAanC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubmitContactFormCommand = exports.SubmitContactFormCommandResponse = exports.SubmitContactFormCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const contact_form_1 = require("../contact-form");
|
|
7
|
+
exports.SubmitContactFormCommandBody = zod_1.z.object({
|
|
8
|
+
email: zod_1.z.email(),
|
|
9
|
+
message: zod_1.z.string().trim().min(1).max(2000),
|
|
10
|
+
});
|
|
11
|
+
exports.SubmitContactFormCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
12
|
+
exports.SubmitContactFormCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
14
|
+
path: contact_form_1.CONTACT_FORM_ROUTES.SUBMIT,
|
|
15
|
+
summary: 'Submit the public contact form; forwards the message to support by email',
|
|
16
|
+
request: {
|
|
17
|
+
body: exports.SubmitContactFormCommandBody,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.SubmitContactFormCommandResponse,
|
|
21
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
429: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-form.d.ts","sourceRoot":"","sources":["../../../contact-form/endpoints/contact-form.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAE/D,eAAO,MAAM,mBAAmB;;CAEtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../contact-form/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,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("./contact-form"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../contact-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,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("./endpoints"), exports);
|
package/build/errors/errors.d.ts
CHANGED
|
@@ -915,6 +915,13 @@ export declare const ERRORS: {
|
|
|
915
915
|
readonly message: "Не удалось получить данные страницы цен";
|
|
916
916
|
};
|
|
917
917
|
};
|
|
918
|
+
readonly CONTACT_FORM: {
|
|
919
|
+
readonly SUBMIT_ERROR: {
|
|
920
|
+
readonly httpCode: 500;
|
|
921
|
+
readonly code: "CONTACT_FORM.SUBMIT_ERROR";
|
|
922
|
+
readonly message: "Не удалось отправить сообщение в поддержку";
|
|
923
|
+
};
|
|
924
|
+
};
|
|
918
925
|
readonly MODEL_FAMILY: {
|
|
919
926
|
readonly NOT_FOUND: {
|
|
920
927
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAo+BT,CAAC"}
|
package/build/errors/errors.js
CHANGED
|
@@ -918,6 +918,13 @@ exports.ERRORS = {
|
|
|
918
918
|
message: 'Не удалось получить данные страницы цен',
|
|
919
919
|
},
|
|
920
920
|
},
|
|
921
|
+
CONTACT_FORM: {
|
|
922
|
+
SUBMIT_ERROR: {
|
|
923
|
+
httpCode: 500,
|
|
924
|
+
code: 'CONTACT_FORM.SUBMIT_ERROR',
|
|
925
|
+
message: 'Не удалось отправить сообщение в поддержку',
|
|
926
|
+
},
|
|
927
|
+
},
|
|
921
928
|
MODEL_FAMILY: {
|
|
922
929
|
NOT_FOUND: {
|
|
923
930
|
httpCode: 404,
|
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,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"}
|
|
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,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
|
@@ -20,6 +20,7 @@ __exportStar(require("./generation-model"), exports);
|
|
|
20
20
|
__exportStar(require("./model-catalog"), exports);
|
|
21
21
|
__exportStar(require("./model-page"), exports);
|
|
22
22
|
__exportStar(require("./pricing-page"), exports);
|
|
23
|
+
__exportStar(require("./contact-form"), exports);
|
|
23
24
|
__exportStar(require("./generation-job"), exports);
|
|
24
25
|
__exportStar(require("./article"), exports);
|
|
25
26
|
__exportStar(require("./auth"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HTTP_METHODS } from '../../../_common';
|
|
2
2
|
export declare const GetPricingPageQueryResponse: import("zod").ZodObject<{
|
|
3
|
+
h1: import("zod").ZodString;
|
|
4
|
+
lead: import("zod").ZodNullable<import("zod").ZodString>;
|
|
3
5
|
updatedAt: import("zod").ZodISODateTime;
|
|
4
6
|
models: import("zod").ZodObject<{
|
|
5
7
|
text: import("zod").ZodObject<{
|
|
@@ -51,6 +53,10 @@ export declare const GetPricingPageQueryResponse: import("zod").ZodObject<{
|
|
|
51
53
|
type: import("zod").ZodLiteral<"video">;
|
|
52
54
|
units: import("zod").ZodNumber;
|
|
53
55
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
56
|
+
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
57
|
+
title: import("zod").ZodString;
|
|
58
|
+
body: import("zod").ZodString;
|
|
59
|
+
}, import("zod/v4/core").$strip>>;
|
|
54
60
|
faq: import("zod").ZodArray<import("zod").ZodObject<{
|
|
55
61
|
question: import("zod").ZodString;
|
|
56
62
|
answer: import("zod").ZodString;
|
|
@@ -66,6 +72,8 @@ export declare const GetPricingPageQuery: {
|
|
|
66
72
|
summary: string;
|
|
67
73
|
responses: {
|
|
68
74
|
200: import("zod").ZodObject<{
|
|
75
|
+
h1: import("zod").ZodString;
|
|
76
|
+
lead: import("zod").ZodNullable<import("zod").ZodString>;
|
|
69
77
|
updatedAt: import("zod").ZodISODateTime;
|
|
70
78
|
models: import("zod").ZodObject<{
|
|
71
79
|
text: import("zod").ZodObject<{
|
|
@@ -117,6 +125,10 @@ export declare const GetPricingPageQuery: {
|
|
|
117
125
|
type: import("zod").ZodLiteral<"video">;
|
|
118
126
|
units: import("zod").ZodNumber;
|
|
119
127
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
128
|
+
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
129
|
+
title: import("zod").ZodString;
|
|
130
|
+
body: import("zod").ZodString;
|
|
131
|
+
}, import("zod/v4/core").$strip>>;
|
|
120
132
|
faq: import("zod").ZodArray<import("zod").ZodObject<{
|
|
121
133
|
question: import("zod").ZodString;
|
|
122
134
|
answer: import("zod").ZodString;
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './pricing-breadcrumb-item.schema';
|
|
2
2
|
export * from './pricing-calculator-task.schema';
|
|
3
|
+
export * from './pricing-condition-item.schema';
|
|
3
4
|
export * from './pricing-faq-item.schema';
|
|
4
5
|
export * from './pricing-image-model.schema';
|
|
5
6
|
export * from './pricing-models.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,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"}
|
|
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,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"}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./pricing-breadcrumb-item.schema"), exports);
|
|
18
18
|
__exportStar(require("./pricing-calculator-task.schema"), exports);
|
|
19
|
+
__exportStar(require("./pricing-condition-item.schema"), exports);
|
|
19
20
|
__exportStar(require("./pricing-faq-item.schema"), exports);
|
|
20
21
|
__exportStar(require("./pricing-image-model.schema"), exports);
|
|
21
22
|
__exportStar(require("./pricing-models.schema"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PricingConditionItemSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
body: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type PricingConditionItemSchemaType = z.infer<typeof PricingConditionItemSchema>;
|
|
7
|
+
//# sourceMappingURL=pricing-condition-item.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-condition-item.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-condition-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingConditionItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PricingConditionItemSchema = zod_1.z.object({
|
|
6
|
+
title: zod_1.z.string().min(1),
|
|
7
|
+
body: zod_1.z.string().min(1),
|
|
8
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PricingPageSchema: z.ZodObject<{
|
|
3
|
+
h1: z.ZodString;
|
|
4
|
+
lead: z.ZodNullable<z.ZodString>;
|
|
3
5
|
updatedAt: z.ZodISODateTime;
|
|
4
6
|
models: z.ZodObject<{
|
|
5
7
|
text: z.ZodObject<{
|
|
@@ -51,6 +53,10 @@ export declare const PricingPageSchema: z.ZodObject<{
|
|
|
51
53
|
type: z.ZodLiteral<"video">;
|
|
52
54
|
units: z.ZodNumber;
|
|
53
55
|
}, z.core.$strip>], "type">>;
|
|
56
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
57
|
+
title: z.ZodString;
|
|
58
|
+
body: z.ZodString;
|
|
59
|
+
}, z.core.$strip>>;
|
|
54
60
|
faq: z.ZodArray<z.ZodObject<{
|
|
55
61
|
question: z.ZodString;
|
|
56
62
|
answer: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-page.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"pricing-page.schema.d.ts","sourceRoot":"","sources":["../../../pricing-page/models/pricing-page.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS5B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -4,12 +4,16 @@ exports.PricingPageSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const pricing_breadcrumb_item_schema_1 = require("./pricing-breadcrumb-item.schema");
|
|
6
6
|
const pricing_calculator_task_schema_1 = require("./pricing-calculator-task.schema");
|
|
7
|
+
const pricing_condition_item_schema_1 = require("./pricing-condition-item.schema");
|
|
7
8
|
const pricing_faq_item_schema_1 = require("./pricing-faq-item.schema");
|
|
8
9
|
const pricing_models_schema_1 = require("./pricing-models.schema");
|
|
9
10
|
exports.PricingPageSchema = zod_1.z.object({
|
|
11
|
+
h1: zod_1.z.string().min(1),
|
|
12
|
+
lead: zod_1.z.string().min(1).nullable(),
|
|
10
13
|
updatedAt: zod_1.z.iso.datetime(),
|
|
11
14
|
models: pricing_models_schema_1.PricingModelsSchema,
|
|
12
15
|
calculatorTasks: zod_1.z.array(pricing_calculator_task_schema_1.PricingCalculatorTaskSchema),
|
|
16
|
+
conditions: zod_1.z.array(pricing_condition_item_schema_1.PricingConditionItemSchema),
|
|
13
17
|
faq: zod_1.z.array(pricing_faq_item_schema_1.PricingFaqItemSchema),
|
|
14
18
|
breadcrumb: zod_1.z.array(pricing_breadcrumb_item_schema_1.PricingBreadcrumbItemSchema),
|
|
15
19
|
});
|
|
@@ -84,6 +84,8 @@ const model_catalog_1 = require("../model-catalog/endpoints/model-catalog");
|
|
|
84
84
|
const get_model_catalog_query_1 = require("../model-catalog/endpoints/queries/get-model-catalog.query");
|
|
85
85
|
const pricing_page_1 = require("../pricing-page/endpoints/pricing-page");
|
|
86
86
|
const get_pricing_page_query_1 = require("../pricing-page/endpoints/queries/get-pricing-page.query");
|
|
87
|
+
const contact_form_1 = require("../contact-form/endpoints/contact-form");
|
|
88
|
+
const submit_contact_form_command_1 = require("../contact-form/endpoints/commands/submit-contact-form.command");
|
|
87
89
|
const generation_model_1 = require("../generation-model/endpoints/generation-model");
|
|
88
90
|
const get_generation_models_query_1 = require("../generation-model/endpoints/queries/get-generation-models.query");
|
|
89
91
|
const get_generation_models_by_type_query_1 = require("../generation-model/endpoints/queries/get-generation-models-by-type.query");
|
|
@@ -215,6 +217,8 @@ async function main() {
|
|
|
215
217
|
registerSchema('PublicModelsGetBySlugResponse', get_public_model_by_slug_query_1.GetPublicModelBySlugQueryResponse);
|
|
216
218
|
registerSchema('ModelCatalogGetAllResponse', get_model_catalog_query_1.GetModelCatalogQueryResponse);
|
|
217
219
|
registerSchema('PricingPageGetResponse', get_pricing_page_query_1.GetPricingPageQueryResponse);
|
|
220
|
+
registerSchema('ContactFormSubmitRequest', submit_contact_form_command_1.SubmitContactFormCommandBody);
|
|
221
|
+
registerSchema('ContactFormSubmitResponse', submit_contact_form_command_1.SubmitContactFormCommandResponse);
|
|
218
222
|
registerSchema('GenerationModelGetAllResponse', get_generation_models_query_1.GetGenerationModelsQueryResponse);
|
|
219
223
|
registerSchema('GenerationModelGetByTypeParams', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryParams);
|
|
220
224
|
registerSchema('GenerationModelGetByTypeResponse', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryResponse);
|
|
@@ -391,6 +395,7 @@ async function main() {
|
|
|
391
395
|
const publicPageContracts = [get_public_page_by_slug_query_1.GetPublicPageBySlugQuery];
|
|
392
396
|
const modelCatalogContracts = [get_model_catalog_query_1.GetModelCatalogQuery];
|
|
393
397
|
const pricingPageContracts = [get_pricing_page_query_1.GetPricingPageQuery];
|
|
398
|
+
const contactFormContracts = [submit_contact_form_command_1.SubmitContactFormCommand];
|
|
394
399
|
const generationModelContracts = [
|
|
395
400
|
get_generation_models_query_1.GetGenerationModelsQuery,
|
|
396
401
|
get_generation_models_by_type_query_1.GetGenerationModelsByTypeQuery,
|
|
@@ -495,6 +500,7 @@ async function main() {
|
|
|
495
500
|
{ controller: model_page_1.PUBLIC_PAGE_CONTROLLER, tag: 'Pages (public)', contracts: publicPageContracts },
|
|
496
501
|
{ controller: model_catalog_1.MODEL_CATALOG_CONTROLLER, tag: 'Model Catalog', contracts: modelCatalogContracts },
|
|
497
502
|
{ controller: pricing_page_1.PRICING_PAGE_CONTROLLER, tag: 'Pricing Page (public)', contracts: pricingPageContracts },
|
|
503
|
+
{ controller: contact_form_1.CONTACT_FORM_CONTROLLER, tag: 'Contact Form (public)', contracts: contactFormContracts },
|
|
498
504
|
{ controller: generation_model_1.GENERATION_MODEL_CONTROLLER, tag: 'Generation Models', contracts: generationModelContracts },
|
|
499
505
|
{ controller: generation_job_1.GENERATION_JOB_CONTROLLER, tag: 'Generation Jobs', contracts: generationJobContracts },
|
|
500
506
|
{
|