@purpleschool/gptbot 0.12.40 → 0.12.41-stage-2
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/api/controllers/http/blog.ts +4 -0
- package/api/controllers/http/category.ts +4 -0
- package/api/controllers/http/chat-private.ts +0 -1
- package/api/controllers/http/chat-public.ts +0 -1
- package/api/controllers/http/course.ts +12 -0
- package/api/controllers/http/index.ts +0 -1
- package/api/controllers/http/page.ts +4 -0
- package/api/controllers/http/prompt-category.ts +4 -0
- package/api/controllers/http/prompt-topic.ts +4 -0
- package/api/controllers/http/prompt.ts +4 -0
- package/api/controllers/http/question.ts +4 -0
- package/api/controllers/http/team-account.ts +1 -0
- package/api/routes.ts +68 -26
- package/build/api/controllers/http/blog.js +3 -0
- package/build/api/controllers/http/category.js +3 -0
- package/build/api/controllers/http/chat-private.js +0 -1
- package/build/api/controllers/http/chat-public.js +0 -1
- package/build/api/controllers/http/course.js +9 -0
- package/build/api/controllers/http/index.js +0 -1
- package/build/api/controllers/http/page.js +3 -0
- package/build/api/controllers/http/prompt-category.js +3 -0
- package/build/api/controllers/http/prompt-topic.js +3 -0
- package/build/api/controllers/http/prompt.js +3 -0
- package/build/api/controllers/http/question.js +3 -0
- package/build/api/controllers/http/team-account.js +1 -0
- package/build/api/routes.js +34 -20
- package/build/commands/blog/create-post-translation.command.js +23 -0
- package/build/commands/blog/create-post.command.js +6 -0
- package/build/commands/blog/get-all-post-translations.query.js +14 -0
- package/build/commands/blog/index.js +3 -0
- package/build/commands/blog/update-post-translation.command.js +23 -0
- package/build/commands/blog/update-post.command.js +6 -0
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +6 -13
- package/build/commands/cabinet/get-user-statistics-overview.command.js +5 -1
- package/build/commands/category/create-category-translation.command.js +21 -0
- package/build/commands/category/create-category.command.js +4 -0
- package/build/commands/category/get-all-category-translations.query.js +14 -0
- package/build/commands/category/index.js +3 -0
- package/build/commands/category/update-category-translation.command.js +21 -0
- package/build/commands/category/update-category.command.js +4 -0
- package/build/commands/chat/index.js +0 -1
- package/build/commands/course/create-course-translation.command.js +22 -0
- package/build/commands/course/create-course.command.js +5 -0
- package/build/commands/course/create-lesson-translation.command.js +18 -0
- package/build/commands/course/create-section-translation.command.js +18 -0
- package/build/commands/course/get-all-course-translations.query.js +14 -0
- package/build/commands/course/get-all-lesson-translations.query.js +14 -0
- package/build/commands/course/get-all-section-translations.query.js +14 -0
- package/build/commands/course/index.js +9 -0
- package/build/commands/course/update-course-translation.command.js +22 -0
- package/build/commands/course/update-lesson-translation.command.js +18 -0
- package/build/commands/course/update-section-translation.command.js +18 -0
- package/build/commands/page/create-page-translation.command.js +23 -0
- package/build/commands/page/create-page.command.js +6 -0
- package/build/commands/page/find-page.command.js +10 -2
- package/build/commands/page/get-all-page-translations.query.js +14 -0
- package/build/commands/page/index.js +3 -0
- package/build/commands/page/update-page-translation.command.js +23 -0
- package/build/commands/page/update-page.command.js +5 -0
- package/build/commands/prompt/create-prompt-translation.command.js +19 -0
- package/build/commands/prompt/create-prompt.command.js +2 -0
- package/build/commands/prompt/get-all-prompt-translations.query.js +14 -0
- package/build/commands/prompt/index.js +3 -0
- package/build/commands/prompt/update-prompt-translation.command.js +19 -0
- package/build/commands/prompt/update-prompt.command.js +2 -0
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +20 -0
- package/build/commands/prompt-category/create-prompt-category.command.js +3 -0
- package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +14 -0
- package/build/commands/prompt-category/index.js +3 -0
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +20 -0
- package/build/commands/prompt-category/update-prompt-category.command.js +3 -0
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +22 -0
- package/build/commands/prompt-topic/create-prompt-topic.command.js +5 -0
- package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +14 -0
- package/build/commands/prompt-topic/index.js +3 -0
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +22 -0
- package/build/commands/prompt-topic/update-prompt-topic.command.js +5 -0
- package/build/commands/question/create-question-translation.command.js +19 -0
- package/build/commands/question/create-question.command.js +2 -0
- package/build/commands/question/get-all-question-translations.query.js +14 -0
- package/build/commands/question/index.js +3 -0
- package/build/commands/question/update-question-translation.command.js +19 -0
- package/build/commands/question/update-question.command.js +2 -0
- package/build/commands/team-account/get-team-account-statistics-by-month.command.js +6 -13
- package/build/commands/team-account/get-team-account-statistics-overview.command.js +5 -1
- package/build/commands/team-account/index.js +1 -0
- package/build/commands/team-account/update-team-account-invite.command.js +17 -0
- package/build/commands/tools/index.js +0 -1
- package/build/commands/ui-notification/create-admin-broadcast-ui-notification.command.js +9 -2
- package/build/commands/unregistered-user/patch-locale.command.js +3 -3
- package/build/commands/user/get-me.command.js +2 -1
- package/build/commands/user/patch-locale.command.js +3 -3
- package/build/constants/cabinet/enums/index.js +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +22 -0
- package/build/constants/index.js +0 -1
- package/build/constants/subscription/enums/index.js +1 -0
- package/build/constants/subscription/enums/subscription-balance-field.enum.js +8 -0
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-type.enum.js +0 -1
- package/build/constants/user/enums/index.js +0 -1
- package/build/models/category-translation.schema.js +16 -0
- package/build/models/course-translation.schema.js +17 -0
- package/build/models/index.js +10 -0
- package/build/models/lesson-translation.schema.js +13 -0
- package/build/models/page-translation.schema.js +18 -0
- package/build/models/post-translation.schema.js +18 -0
- package/build/models/prompt-category-translation.schema.js +18 -0
- package/build/models/prompt-topic-translation.schema.js +20 -0
- package/build/models/prompt-translation.schema.js +14 -0
- package/build/models/question-translation.schema.js +14 -0
- package/build/models/section-translation.schema.js +13 -0
- package/build/models/tools/index.js +0 -1
- package/build/models/ui-notification.schema.js +13 -8
- package/build/models/user.schema.js +2 -2
- package/commands/blog/create-post-translation.command.ts +28 -0
- package/commands/blog/create-post.command.ts +6 -0
- package/commands/blog/get-all-post-translations.query.ts +16 -0
- package/commands/blog/index.ts +3 -0
- package/commands/blog/update-post-translation.command.ts +28 -0
- package/commands/blog/update-post.command.ts +6 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +7 -14
- package/commands/cabinet/get-user-statistics-overview.command.ts +6 -2
- package/commands/category/create-category-translation.command.ts +26 -0
- package/commands/category/create-category.command.ts +4 -0
- package/commands/category/get-all-category-translations.query.ts +16 -0
- package/commands/category/index.ts +3 -0
- package/commands/category/update-category-translation.command.ts +26 -0
- package/commands/category/update-category.command.ts +4 -0
- package/commands/chat/index.ts +0 -1
- package/commands/course/create-course-translation.command.ts +27 -0
- package/commands/course/create-course.command.ts +5 -0
- package/commands/course/create-lesson-translation.command.ts +23 -0
- package/commands/course/create-section-translation.command.ts +23 -0
- package/commands/course/get-all-course-translations.query.ts +16 -0
- package/commands/course/get-all-lesson-translations.query.ts +16 -0
- package/commands/course/get-all-section-translations.query.ts +16 -0
- package/commands/course/index.ts +9 -0
- package/commands/course/update-course-translation.command.ts +27 -0
- package/commands/course/update-lesson-translation.command.ts +23 -0
- package/commands/course/update-section-translation.command.ts +23 -0
- package/commands/page/create-page-translation.command.ts +28 -0
- package/commands/page/create-page.command.ts +6 -0
- package/commands/page/find-page.command.ts +15 -2
- package/commands/page/get-all-page-translations.query.ts +16 -0
- package/commands/page/index.ts +3 -0
- package/commands/page/update-page-translation.command.ts +28 -0
- package/commands/page/update-page.command.ts +5 -0
- package/commands/prompt/create-prompt-translation.command.ts +24 -0
- package/commands/prompt/create-prompt.command.ts +2 -0
- package/commands/prompt/get-all-prompt-translations.query.ts +16 -0
- package/commands/prompt/index.ts +3 -0
- package/commands/prompt/update-prompt-translation.command.ts +24 -0
- package/commands/prompt/update-prompt.command.ts +2 -0
- package/commands/prompt-category/create-prompt-category-translation.command.ts +25 -0
- package/commands/prompt-category/create-prompt-category.command.ts +3 -0
- package/commands/prompt-category/get-all-prompt-category-translations.query.ts +16 -0
- package/commands/prompt-category/index.ts +3 -0
- package/commands/prompt-category/update-prompt-category-translation.command.ts +25 -0
- package/commands/prompt-category/update-prompt-category.command.ts +3 -0
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +27 -0
- package/commands/prompt-topic/create-prompt-topic.command.ts +5 -0
- package/commands/prompt-topic/get-all-prompt-topic-translations.query.ts +16 -0
- package/commands/prompt-topic/index.ts +3 -0
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +27 -0
- package/commands/prompt-topic/update-prompt-topic.command.ts +5 -0
- package/commands/question/create-question-translation.command.ts +24 -0
- package/commands/question/create-question.command.ts +2 -0
- package/commands/question/get-all-question-translations.query.ts +16 -0
- package/commands/question/index.ts +3 -0
- package/commands/question/update-question-translation.command.ts +24 -0
- package/commands/question/update-question.command.ts +2 -0
- package/commands/team-account/get-team-account-statistics-by-month.command.ts +7 -14
- package/commands/team-account/get-team-account-statistics-overview.command.ts +6 -2
- package/commands/team-account/index.ts +1 -0
- package/commands/team-account/update-team-account-invite.command.ts +22 -0
- package/commands/tools/index.ts +0 -1
- package/commands/ui-notification/create-admin-broadcast-ui-notification.command.ts +9 -2
- package/commands/unregistered-user/patch-locale.command.ts +1 -1
- package/commands/user/get-me.command.ts +2 -1
- package/commands/user/patch-locale.command.ts +1 -1
- package/constants/cabinet/enums/index.ts +1 -0
- package/constants/cabinet/enums/statistics-request-type.enum.ts +18 -0
- package/constants/index.ts +0 -1
- package/constants/subscription/enums/index.ts +1 -0
- package/constants/subscription/enums/subscription-balance-field.enum.ts +4 -0
- package/constants/tool/enums/index.ts +0 -1
- package/constants/tool/enums/tool-type.enum.ts +0 -1
- package/constants/user/enums/index.ts +0 -1
- package/models/category-translation.schema.ts +14 -0
- package/models/course-translation.schema.ts +15 -0
- package/models/index.ts +10 -0
- package/models/lesson-translation.schema.ts +11 -0
- package/models/page-translation.schema.ts +16 -0
- package/models/post-translation.schema.ts +16 -0
- package/models/prompt-category-translation.schema.ts +13 -0
- package/models/prompt-topic-translation.schema.ts +15 -0
- package/models/prompt-translation.schema.ts +12 -0
- package/models/question-translation.schema.ts +12 -0
- package/models/section-translation.schema.ts +11 -0
- package/models/tools/index.ts +0 -1
- package/models/ui-notification.schema.ts +14 -7
- package/models/user.schema.ts +1 -1
- package/package.json +2 -1
- package/api/controllers/http/html-page-builder.ts +0 -12
- package/build/api/controllers/http/html-page-builder.js +0 -14
- package/build/commands/chat/calculate-chat-price.command.js +0 -18
- package/build/commands/tools/html-page-builder/delete-all-html-page-builder-sessions.command.js +0 -10
- package/build/commands/tools/html-page-builder/delete-html-page-builder-session-by-uuid.command.js +0 -13
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +0 -19
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.js +0 -15
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +0 -18
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +0 -15
- package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.js +0 -11
- package/build/commands/tools/html-page-builder/index.js +0 -24
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.js +0 -17
- package/build/constants/tool/enums/job-request-origin.enum.js +0 -8
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.js +0 -8
- package/build/constants/tool-html-page-builder/enums/index.js +0 -17
- package/build/constants/tool-html-page-builder/index.js +0 -17
- package/build/constants/user/enums/locale.enum.js +0 -8
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.js +0 -8
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +0 -29
- package/build/models/tools/html-page-builder/html-page-builder-model.schema.js +0 -18
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +0 -16
- package/build/models/tools/html-page-builder/index.js +0 -20
- package/commands/chat/calculate-chat-price.command.ts +0 -19
- package/commands/tools/html-page-builder/delete-all-html-page-builder-sessions.command.ts +0 -8
- package/commands/tools/html-page-builder/delete-html-page-builder-session-by-uuid.command.ts +0 -13
- package/commands/tools/html-page-builder/execute-html-page-builder.command.ts +0 -19
- package/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.ts +0 -15
- package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +0 -18
- package/commands/tools/html-page-builder/get-html-page-builder-price.command.ts +0 -15
- package/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.ts +0 -9
- package/commands/tools/html-page-builder/index.ts +0 -8
- package/commands/tools/html-page-builder/update-html-page-builder-session-title.command.ts +0 -19
- package/constants/tool/enums/job-request-origin.enum.ts +0 -4
- package/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.ts +0 -4
- package/constants/tool-html-page-builder/enums/index.ts +0 -1
- package/constants/tool-html-page-builder/index.ts +0 -1
- package/constants/user/enums/locale.enum.ts +0 -4
- package/models/tools/html-page-builder/html-page-builder-config.schema.ts +0 -8
- package/models/tools/html-page-builder/html-page-builder-job.schema.ts +0 -32
- package/models/tools/html-page-builder/html-page-builder-model.schema.ts +0 -18
- package/models/tools/html-page-builder/html-page-builder-session.schema.ts +0 -16
- package/models/tools/html-page-builder/index.ts +0 -4
package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindHtmlPageBuilderSessionByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
const tool_job_schema_1 = require("../../../models/tool-job.schema");
|
|
7
|
-
var FindHtmlPageBuilderSessionByUUIDCommand;
|
|
8
|
-
(function (FindHtmlPageBuilderSessionByUUIDCommand) {
|
|
9
|
-
FindHtmlPageBuilderSessionByUUIDCommand.RequestParamsSchema = tool_job_schema_1.ToolJobSchema.pick({
|
|
10
|
-
uuid: true,
|
|
11
|
-
});
|
|
12
|
-
FindHtmlPageBuilderSessionByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
data: models_1.HtmlPageBuilderSessionSchema,
|
|
14
|
-
});
|
|
15
|
-
})(FindHtmlPageBuilderSessionByUUIDCommand || (exports.FindHtmlPageBuilderSessionByUUIDCommand = FindHtmlPageBuilderSessionByUUIDCommand = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindHtmlPageBuilderSessionsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindHtmlPageBuilderSessionsCommand;
|
|
7
|
-
(function (FindHtmlPageBuilderSessionsCommand) {
|
|
8
|
-
FindHtmlPageBuilderSessionsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
-
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
-
title: zod_1.z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
FindHtmlPageBuilderSessionsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.HtmlPageBuilderSessionSchema),
|
|
15
|
-
totalPages: zod_1.z.number(),
|
|
16
|
-
page: zod_1.z.number(),
|
|
17
|
-
});
|
|
18
|
-
})(FindHtmlPageBuilderSessionsCommand || (exports.FindHtmlPageBuilderSessionsCommand = FindHtmlPageBuilderSessionsCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetHtmlPageBuilderPriceCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var GetHtmlPageBuilderPriceCommand;
|
|
6
|
-
(function (GetHtmlPageBuilderPriceCommand) {
|
|
7
|
-
GetHtmlPageBuilderPriceCommand.RequestSchema = zod_1.z.object({
|
|
8
|
-
modelId: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
GetHtmlPageBuilderPriceCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.object({
|
|
12
|
-
price: zod_1.z.number(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
})(GetHtmlPageBuilderPriceCommand || (exports.GetHtmlPageBuilderPriceCommand = GetHtmlPageBuilderPriceCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetHtmlPageBuilderToolConfigCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var GetHtmlPageBuilderToolConfigCommand;
|
|
7
|
-
(function (GetHtmlPageBuilderToolConfigCommand) {
|
|
8
|
-
GetHtmlPageBuilderToolConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
-
data: models_1.HtmlPageBuilderConfigSchema,
|
|
10
|
-
});
|
|
11
|
-
})(GetHtmlPageBuilderToolConfigCommand || (exports.GetHtmlPageBuilderToolConfigCommand = GetHtmlPageBuilderToolConfigCommand = {}));
|
|
@@ -1,24 +0,0 @@
|
|
|
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("./execute-html-page-builder.command"), exports);
|
|
18
|
-
__exportStar(require("./get-html-page-builder-tool-config.command"), exports);
|
|
19
|
-
__exportStar(require("./get-html-page-builder-price.command"), exports);
|
|
20
|
-
__exportStar(require("./find-html-page-builder-session-by-uuid.command"), exports);
|
|
21
|
-
__exportStar(require("./find-html-page-builder-sessions.command"), exports);
|
|
22
|
-
__exportStar(require("./update-html-page-builder-session-title.command"), exports);
|
|
23
|
-
__exportStar(require("./delete-html-page-builder-session-by-uuid.command"), exports);
|
|
24
|
-
__exportStar(require("./delete-all-html-page-builder-sessions.command"), exports);
|
package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateHtmlPageBuilderSessionTitleCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var UpdateHtmlPageBuilderSessionTitleCommand;
|
|
7
|
-
(function (UpdateHtmlPageBuilderSessionTitleCommand) {
|
|
8
|
-
UpdateHtmlPageBuilderSessionTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
});
|
|
11
|
-
UpdateHtmlPageBuilderSessionTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
});
|
|
14
|
-
UpdateHtmlPageBuilderSessionTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.HtmlPageBuilderSessionSchema,
|
|
16
|
-
});
|
|
17
|
-
})(UpdateHtmlPageBuilderSessionTitleCommand || (exports.UpdateHtmlPageBuilderSessionTitleCommand = UpdateHtmlPageBuilderSessionTitleCommand = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JOB_REQUEST_ORIGIN = void 0;
|
|
4
|
-
var JOB_REQUEST_ORIGIN;
|
|
5
|
-
(function (JOB_REQUEST_ORIGIN) {
|
|
6
|
-
JOB_REQUEST_ORIGIN["API"] = "api";
|
|
7
|
-
JOB_REQUEST_ORIGIN["B2B"] = "b2b";
|
|
8
|
-
})(JOB_REQUEST_ORIGIN || (exports.JOB_REQUEST_ORIGIN = JOB_REQUEST_ORIGIN = {}));
|
package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HTML_PAGE_BUILDER_SESSION_STAGE = void 0;
|
|
4
|
-
var HTML_PAGE_BUILDER_SESSION_STAGE;
|
|
5
|
-
(function (HTML_PAGE_BUILDER_SESSION_STAGE) {
|
|
6
|
-
HTML_PAGE_BUILDER_SESSION_STAGE["BUILD"] = "BUILD";
|
|
7
|
-
HTML_PAGE_BUILDER_SESSION_STAGE["REFINE"] = "REFINE";
|
|
8
|
-
})(HTML_PAGE_BUILDER_SESSION_STAGE || (exports.HTML_PAGE_BUILDER_SESSION_STAGE = HTML_PAGE_BUILDER_SESSION_STAGE = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./html-page-builder-session-stage.enum"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
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("./enums"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HtmlPageBuilderConfigSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const html_page_builder_model_schema_1 = require("./html-page-builder-model.schema");
|
|
6
|
-
exports.HtmlPageBuilderConfigSchema = zod_1.z.object({
|
|
7
|
-
models: zod_1.z.array(html_page_builder_model_schema_1.HtmlPageBuilderModelSchema),
|
|
8
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HtmlPageBuilderJobSchema = exports.HtmlPageBuilderJobParamsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.HtmlPageBuilderJobParamsSchema = zod_1.z.object({
|
|
8
|
-
attachedFiles: zod_1.z.array(common_1.AttachedToolFileSchema),
|
|
9
|
-
});
|
|
10
|
-
exports.HtmlPageBuilderJobSchema = zod_1.z.object({
|
|
11
|
-
uuid: zod_1.z.string().uuid(),
|
|
12
|
-
sessionId: zod_1.z.string().uuid(),
|
|
13
|
-
modelId: zod_1.z.string().uuid(),
|
|
14
|
-
userPrompt: zod_1.z.string(),
|
|
15
|
-
title: zod_1.z.string(),
|
|
16
|
-
generatedHtml: zod_1.z.string().nullable().optional(),
|
|
17
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
|
|
18
|
-
error: zod_1.z.string().nullable(),
|
|
19
|
-
price: zod_1.z.number(),
|
|
20
|
-
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
21
|
-
dislikeReason: zod_1.z.string().nullable(),
|
|
22
|
-
userId: zod_1.z.string().nullable().optional(),
|
|
23
|
-
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
24
|
-
params: exports.HtmlPageBuilderJobParamsSchema,
|
|
25
|
-
isDeleted: zod_1.z.boolean(),
|
|
26
|
-
createdAt: zod_1.z.date(),
|
|
27
|
-
completedAt: zod_1.z.date().nullable().optional(),
|
|
28
|
-
updatedAt: zod_1.z.date(),
|
|
29
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HtmlPageBuilderModelSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
const icon_variants_schema_1 = require("../../icon-variants.schema");
|
|
7
|
-
exports.HtmlPageBuilderModelSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string(),
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
description: zod_1.z.string(),
|
|
11
|
-
price: zod_1.z.number(),
|
|
12
|
-
order: zod_1.z.number(),
|
|
13
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_MODEL_STATUS),
|
|
14
|
-
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
15
|
-
maxPromptLength: zod_1.z.number(),
|
|
16
|
-
createdAt: zod_1.z.date(),
|
|
17
|
-
updatedAt: zod_1.z.date(),
|
|
18
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HtmlPageBuilderSessionSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
|
-
exports.HtmlPageBuilderSessionSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
title: zod_1.z.string(),
|
|
9
|
-
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
|
|
10
|
-
currentHtml: zod_1.z.string().nullable().optional(),
|
|
11
|
-
userId: zod_1.z.string().nullable().optional(),
|
|
12
|
-
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
13
|
-
isDeleted: zod_1.z.boolean(),
|
|
14
|
-
createdAt: zod_1.z.date(),
|
|
15
|
-
updatedAt: zod_1.z.date(),
|
|
16
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
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("./html-page-builder-config.schema"), exports);
|
|
18
|
-
__exportStar(require("./html-page-builder-job.schema"), exports);
|
|
19
|
-
__exportStar(require("./html-page-builder-model.schema"), exports);
|
|
20
|
-
__exportStar(require("./html-page-builder-session.schema"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AI_MODEL_FEATURE } from '../../constants';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export namespace CalculateChatPriceCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
text: z.string(),
|
|
7
|
-
chatId: z.string().uuid().optional(),
|
|
8
|
-
aiModelId: z.string().uuid(),
|
|
9
|
-
files: z.array(z.string().uuid()).optional().default([]),
|
|
10
|
-
features: z.array(z.nativeEnum(AI_MODEL_FEATURE)).optional().default([]),
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export const ResponseSchema = z.object({
|
|
14
|
-
price: z.number(),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
package/commands/tools/html-page-builder/delete-html-page-builder-session-by-uuid.command.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace DeleteHtmlPageBuilderSessionByUUIDCommand {
|
|
4
|
-
export const RequestParamsSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
});
|
|
7
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
8
|
-
|
|
9
|
-
export const ResponseSchema = z.object({
|
|
10
|
-
data: z.boolean(),
|
|
11
|
-
});
|
|
12
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace ExecuteHtmlPageBuilderCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
sessionId: z.string().uuid().optional(),
|
|
7
|
-
prompt: z.string(),
|
|
8
|
-
modelId: z.string().uuid(),
|
|
9
|
-
params: z.object({
|
|
10
|
-
attachedFiles: z.array(z.string().uuid()),
|
|
11
|
-
}),
|
|
12
|
-
});
|
|
13
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: HtmlPageBuilderSessionSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
|
-
import { ToolJobSchema } from '../../../models/tool-job.schema';
|
|
4
|
-
|
|
5
|
-
export namespace FindHtmlPageBuilderSessionByUUIDCommand {
|
|
6
|
-
export const RequestParamsSchema = ToolJobSchema.pick({
|
|
7
|
-
uuid: true,
|
|
8
|
-
});
|
|
9
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: HtmlPageBuilderSessionSchema,
|
|
13
|
-
});
|
|
14
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace FindHtmlPageBuilderSessionsCommand {
|
|
5
|
-
export const RequestQuerySchema = z.object({
|
|
6
|
-
limit: z.coerce.number().min(1).optional(),
|
|
7
|
-
offset: z.coerce.number().min(0).default(0).optional(),
|
|
8
|
-
title: z.string().optional(),
|
|
9
|
-
});
|
|
10
|
-
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
11
|
-
|
|
12
|
-
export const ResponseSchema = z.object({
|
|
13
|
-
data: z.array(HtmlPageBuilderSessionSchema),
|
|
14
|
-
totalPages: z.number(),
|
|
15
|
-
page: z.number(),
|
|
16
|
-
});
|
|
17
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace GetHtmlPageBuilderPriceCommand {
|
|
4
|
-
export const RequestSchema = z.object({
|
|
5
|
-
modelId: z.string().uuid(),
|
|
6
|
-
});
|
|
7
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
|
|
9
|
-
export const ResponseSchema = z.object({
|
|
10
|
-
data: z.object({
|
|
11
|
-
price: z.number(),
|
|
12
|
-
}),
|
|
13
|
-
});
|
|
14
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderConfigSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace GetHtmlPageBuilderToolConfigCommand {
|
|
5
|
-
export const ResponseSchema = z.object({
|
|
6
|
-
data: HtmlPageBuilderConfigSchema,
|
|
7
|
-
});
|
|
8
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './execute-html-page-builder.command';
|
|
2
|
-
export * from './get-html-page-builder-tool-config.command';
|
|
3
|
-
export * from './get-html-page-builder-price.command';
|
|
4
|
-
export * from './find-html-page-builder-session-by-uuid.command';
|
|
5
|
-
export * from './find-html-page-builder-sessions.command';
|
|
6
|
-
export * from './update-html-page-builder-session-title.command';
|
|
7
|
-
export * from './delete-html-page-builder-session-by-uuid.command';
|
|
8
|
-
export * from './delete-all-html-page-builder-sessions.command';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
title: z.string(),
|
|
7
|
-
});
|
|
8
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestParamsSchema = z.object({
|
|
11
|
-
uuid: z.string().uuid(),
|
|
12
|
-
});
|
|
13
|
-
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: HtmlPageBuilderSessionSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './html-page-builder-session-stage.enum';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './enums';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HtmlPageBuilderModelSchema } from './html-page-builder-model.schema';
|
|
3
|
-
|
|
4
|
-
export const HtmlPageBuilderConfigSchema = z.object({
|
|
5
|
-
models: z.array(HtmlPageBuilderModelSchema),
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export type HtmlPageBuilderConfig = z.infer<typeof HtmlPageBuilderConfigSchema>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_JOB_STATUS, USER_REACTION } from '../../../constants';
|
|
3
|
-
import { AttachedToolFileSchema } from '../common';
|
|
4
|
-
|
|
5
|
-
export const HtmlPageBuilderJobParamsSchema = z.object({
|
|
6
|
-
attachedFiles: z.array(AttachedToolFileSchema),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type HtmlPageBuilderJobParams = z.infer<typeof HtmlPageBuilderJobParamsSchema>;
|
|
10
|
-
|
|
11
|
-
export const HtmlPageBuilderJobSchema = z.object({
|
|
12
|
-
uuid: z.string().uuid(),
|
|
13
|
-
sessionId: z.string().uuid(),
|
|
14
|
-
modelId: z.string().uuid(),
|
|
15
|
-
userPrompt: z.string(),
|
|
16
|
-
title: z.string(),
|
|
17
|
-
generatedHtml: z.string().nullable().optional(),
|
|
18
|
-
status: z.nativeEnum(TOOL_JOB_STATUS),
|
|
19
|
-
error: z.string().nullable(),
|
|
20
|
-
price: z.number(),
|
|
21
|
-
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
22
|
-
dislikeReason: z.string().nullable(),
|
|
23
|
-
userId: z.string().nullable().optional(),
|
|
24
|
-
unregisteredUserId: z.string().nullable().optional(),
|
|
25
|
-
params: HtmlPageBuilderJobParamsSchema,
|
|
26
|
-
isDeleted: z.boolean(),
|
|
27
|
-
createdAt: z.date(),
|
|
28
|
-
completedAt: z.date().nullable().optional(),
|
|
29
|
-
updatedAt: z.date(),
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export type HtmlPageBuilderJob = z.infer<typeof HtmlPageBuilderJobSchema>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_MODEL_STATUS } from '../../../constants';
|
|
3
|
-
import { IconVariantsSchema } from '../../icon-variants.schema';
|
|
4
|
-
|
|
5
|
-
export const HtmlPageBuilderModelSchema = z.object({
|
|
6
|
-
uuid: z.string(),
|
|
7
|
-
title: z.string(),
|
|
8
|
-
description: z.string(),
|
|
9
|
-
price: z.number(),
|
|
10
|
-
order: z.number(),
|
|
11
|
-
status: z.nativeEnum(TOOL_MODEL_STATUS),
|
|
12
|
-
icons: IconVariantsSchema,
|
|
13
|
-
maxPromptLength: z.number(),
|
|
14
|
-
createdAt: z.date(),
|
|
15
|
-
updatedAt: z.date(),
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export type HtmlPageBuilderModel = z.infer<typeof HtmlPageBuilderModelSchema>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_JOB_STATUS } from '../../../constants';
|
|
3
|
-
|
|
4
|
-
export const HtmlPageBuilderSessionSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
title: z.string(),
|
|
7
|
-
status: z.nativeEnum(TOOL_JOB_STATUS),
|
|
8
|
-
currentHtml: z.string().nullable().optional(),
|
|
9
|
-
userId: z.string().nullable().optional(),
|
|
10
|
-
unregisteredUserId: z.string().nullable().optional(),
|
|
11
|
-
isDeleted: z.boolean(),
|
|
12
|
-
createdAt: z.date(),
|
|
13
|
-
updatedAt: z.date(),
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export type HtmlPageBuilderSession = z.infer<typeof HtmlPageBuilderSessionSchema>;
|