@purpleschool/gptbot 0.12.70-stage-2 → 0.12.71
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 +0 -4
- package/api/controllers/http/canvas-template.ts +1 -0
- package/api/controllers/http/category.ts +0 -4
- package/api/controllers/http/course.ts +0 -12
- package/api/controllers/http/index.ts +1 -0
- package/api/controllers/http/page.ts +0 -4
- package/api/controllers/http/palette.ts +6 -0
- package/api/controllers/http/prompt-category.ts +0 -4
- package/api/controllers/http/prompt-topic.ts +0 -4
- package/api/controllers/http/prompt.ts +0 -4
- package/api/controllers/http/question.ts +0 -4
- package/api/controllers/http/team-account.ts +0 -1
- package/api/routes.ts +5 -68
- package/build/api/controllers/http/blog.js +0 -3
- package/build/api/controllers/http/canvas-template.js +1 -0
- package/build/api/controllers/http/category.js +0 -3
- package/build/api/controllers/http/course.js +0 -9
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/page.js +0 -3
- package/build/api/controllers/http/palette.js +8 -0
- package/build/api/controllers/http/prompt-category.js +0 -3
- package/build/api/controllers/http/prompt-topic.js +0 -3
- package/build/api/controllers/http/prompt.js +0 -3
- package/build/api/controllers/http/question.js +0 -3
- package/build/api/controllers/http/team-account.js +0 -1
- package/build/api/routes.js +5 -34
- package/build/commands/{canvas → ai-studio/canvas}/create-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/delete-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid-with-relations.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvases-by-user.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/run-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/save-canvas.command.js +8 -4
- package/build/commands/{canvas → ai-studio/canvas}/update-canvas.command.js +1 -1
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/create-canvas-edge.command.js +2 -2
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edge-by-source-and-target.query.js +1 -1
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edges-by-canvas.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/create-canvas-node.command.js +8 -4
- package/build/commands/{canvas-node → ai-studio/canvas-node}/delete-canvas-node.command.js +2 -2
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-by-uuid.query.js +2 -2
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-definitions-with-configs.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-nodes-by-canvas.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/update-canvas-node.command.js +13 -5
- package/build/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-from-template.command.js +1 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-template.command.js +6 -2
- package/build/commands/{canvas-template → ai-studio/canvas-template}/delete-canvas-template.command.js +3 -2
- package/build/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-template-by-uuid.query.js +1 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-templates.query.js +6 -1
- package/build/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.js +14 -0
- package/build/commands/{canvas-template → ai-studio/canvas-template}/index.js +2 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/update-canvas-template.command.js +6 -2
- package/build/commands/ai-studio/canvas-tool/index.js +17 -0
- package/build/commands/ai-studio/canvas-tool/palette/generate-palette.command.js +20 -0
- package/build/commands/ai-studio/canvas-tool/palette/get-palette-price.command.js +17 -0
- package/build/commands/ai-studio/canvas-tool/palette/index.js +18 -0
- package/build/commands/ai-studio/index.js +21 -0
- package/build/commands/blog/create-post.command.js +0 -6
- package/build/commands/blog/index.js +0 -3
- package/build/commands/blog/update-post.command.js +0 -6
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +13 -6
- package/build/commands/cabinet/get-user-statistics-overview.command.js +1 -5
- package/build/commands/category/create-category.command.js +0 -4
- package/build/commands/category/index.js +0 -3
- package/build/commands/category/update-category.command.js +0 -4
- package/build/commands/course/create-course.command.js +0 -5
- package/build/commands/course/index.js +0 -9
- package/build/commands/index.js +5 -4
- package/build/commands/page/create-page.command.js +0 -6
- package/build/commands/page/find-page.command.js +2 -10
- package/build/commands/page/index.js +0 -3
- package/build/commands/page/update-page.command.js +0 -5
- package/build/commands/prompt/create-prompt.command.js +0 -2
- package/build/commands/prompt/index.js +0 -3
- package/build/commands/prompt/update-prompt.command.js +0 -2
- package/build/commands/prompt-category/create-prompt-category.command.js +0 -3
- package/build/commands/prompt-category/index.js +0 -3
- package/build/commands/prompt-category/update-prompt-category.command.js +0 -3
- package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -5
- package/build/commands/prompt-topic/index.js +0 -3
- package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -5
- package/build/commands/question/create-question.command.js +0 -2
- package/build/commands/question/index.js +0 -3
- package/build/commands/question/update-question.command.js +0 -2
- package/build/commands/team-account/get-team-account-statistics-by-month.command.js +13 -6
- package/build/commands/team-account/get-team-account-statistics-overview.command.js +1 -5
- package/build/commands/team-account/index.js +0 -1
- package/build/commands/ui-notification/create-admin-broadcast-ui-notification.command.js +2 -9
- package/build/commands/unregistered-user/patch-locale.command.js +3 -3
- package/build/commands/user/get-me.command.js +1 -2
- package/build/commands/user/patch-locale.command.js +3 -3
- package/build/constants/cabinet/enums/index.js +0 -1
- package/build/constants/subscription/enums/index.js +0 -1
- package/build/constants/tool/enums/index.js +1 -0
- package/build/constants/tool/enums/job-request-origin.enum.js +8 -0
- package/build/constants/user/enums/index.js +1 -0
- package/build/constants/user/enums/locale.enum.js +8 -0
- package/build/models/canvas-node.schema.js +140 -37
- package/build/models/canvas-template.schema.js +21 -5
- package/build/models/index.js +0 -10
- package/build/models/ui-notification.schema.js +8 -13
- package/build/models/user.schema.js +2 -2
- package/commands/{canvas → ai-studio/canvas}/create-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/delete-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid-with-relations.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvases-by-user.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/run-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/save-canvas.command.ts +13 -9
- package/commands/{canvas → ai-studio/canvas}/update-canvas.command.ts +1 -1
- package/commands/{canvas-edge → ai-studio/canvas-edge}/create-canvas-edge.command.ts +2 -2
- package/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edge-by-source-and-target.query.ts +1 -1
- package/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edges-by-canvas.query.ts +1 -1
- package/commands/ai-studio/canvas-node/create-canvas-node.command.ts +33 -0
- package/commands/{canvas-node → ai-studio/canvas-node}/delete-canvas-node.command.ts +2 -2
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-by-uuid.query.ts +2 -2
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-definitions-with-configs.query.ts +1 -1
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-nodes-by-canvas.query.ts +1 -1
- package/commands/ai-studio/canvas-node/update-canvas-node.command.ts +40 -0
- package/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-from-template.command.ts +1 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-template.command.ts +7 -2
- package/commands/{canvas-template → ai-studio/canvas-template}/delete-canvas-template.command.ts +3 -2
- package/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-template-by-uuid.query.ts +1 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-templates.query.ts +6 -1
- package/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.ts +16 -0
- package/commands/{canvas-template → ai-studio/canvas-template}/index.ts +2 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/update-canvas-template.command.ts +11 -2
- package/commands/ai-studio/canvas-tool/index.ts +1 -0
- package/commands/ai-studio/canvas-tool/palette/generate-palette.command.ts +23 -0
- package/commands/ai-studio/canvas-tool/palette/get-palette-price.command.ts +17 -0
- package/commands/ai-studio/canvas-tool/palette/index.ts +2 -0
- package/commands/ai-studio/index.ts +5 -0
- package/commands/blog/create-post.command.ts +0 -6
- package/commands/blog/index.ts +0 -3
- package/commands/blog/update-post.command.ts +0 -6
- package/commands/cabinet/get-user-statistics-by-month.command.ts +14 -7
- package/commands/cabinet/get-user-statistics-overview.command.ts +2 -6
- package/commands/category/create-category.command.ts +0 -4
- package/commands/category/index.ts +0 -3
- package/commands/category/update-category.command.ts +0 -4
- package/commands/course/create-course.command.ts +0 -5
- package/commands/course/index.ts +0 -9
- package/commands/index.ts +5 -5
- package/commands/page/create-page.command.ts +0 -6
- package/commands/page/find-page.command.ts +2 -15
- package/commands/page/index.ts +0 -3
- package/commands/page/update-page.command.ts +0 -5
- package/commands/prompt/create-prompt.command.ts +0 -2
- package/commands/prompt/index.ts +0 -3
- package/commands/prompt/update-prompt.command.ts +0 -2
- package/commands/prompt-category/create-prompt-category.command.ts +0 -3
- package/commands/prompt-category/index.ts +0 -3
- package/commands/prompt-category/update-prompt-category.command.ts +0 -3
- package/commands/prompt-topic/create-prompt-topic.command.ts +0 -5
- package/commands/prompt-topic/index.ts +0 -3
- package/commands/prompt-topic/update-prompt-topic.command.ts +0 -5
- package/commands/question/create-question.command.ts +0 -2
- package/commands/question/index.ts +0 -3
- package/commands/question/update-question.command.ts +0 -2
- package/commands/team-account/get-team-account-statistics-by-month.command.ts +14 -7
- package/commands/team-account/get-team-account-statistics-overview.command.ts +2 -6
- package/commands/team-account/index.ts +0 -1
- package/commands/ui-notification/create-admin-broadcast-ui-notification.command.ts +2 -9
- package/commands/unregistered-user/patch-locale.command.ts +1 -1
- package/commands/user/get-me.command.ts +1 -2
- package/commands/user/patch-locale.command.ts +1 -1
- package/constants/cabinet/enums/index.ts +0 -1
- package/constants/subscription/enums/index.ts +0 -1
- package/constants/tool/enums/index.ts +1 -0
- package/constants/tool/enums/job-request-origin.enum.ts +4 -0
- package/constants/user/enums/index.ts +1 -0
- package/constants/user/enums/locale.enum.ts +4 -0
- package/models/canvas-node.schema.ts +167 -41
- package/models/canvas-template.schema.ts +28 -9
- package/models/index.ts +0 -10
- package/models/ui-notification.schema.ts +7 -14
- package/models/user.schema.ts +1 -1
- package/package.json +1 -2
- package/build/commands/blog/create-post-translation.command.js +0 -23
- package/build/commands/blog/get-all-post-translations.query.js +0 -14
- package/build/commands/blog/update-post-translation.command.js +0 -23
- package/build/commands/category/create-category-translation.command.js +0 -21
- package/build/commands/category/get-all-category-translations.query.js +0 -14
- package/build/commands/category/update-category-translation.command.js +0 -21
- package/build/commands/course/create-course-translation.command.js +0 -22
- package/build/commands/course/create-lesson-translation.command.js +0 -18
- package/build/commands/course/create-section-translation.command.js +0 -18
- package/build/commands/course/get-all-course-translations.query.js +0 -14
- package/build/commands/course/get-all-lesson-translations.query.js +0 -14
- package/build/commands/course/get-all-section-translations.query.js +0 -14
- package/build/commands/course/update-course-translation.command.js +0 -22
- package/build/commands/course/update-lesson-translation.command.js +0 -18
- package/build/commands/course/update-section-translation.command.js +0 -18
- package/build/commands/page/create-page-translation.command.js +0 -23
- package/build/commands/page/get-all-page-translations.query.js +0 -14
- package/build/commands/page/update-page-translation.command.js +0 -23
- package/build/commands/prompt/create-prompt-translation.command.js +0 -19
- package/build/commands/prompt/get-all-prompt-translations.query.js +0 -14
- package/build/commands/prompt/update-prompt-translation.command.js +0 -19
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -20
- package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +0 -14
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -20
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -22
- package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +0 -14
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -22
- package/build/commands/question/create-question-translation.command.js +0 -19
- package/build/commands/question/get-all-question-translations.query.js +0 -14
- package/build/commands/question/update-question-translation.command.js +0 -19
- package/build/commands/team-account/update-team-account-invite.command.js +0 -17
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +0 -24
- package/build/constants/subscription/enums/subscription-balance-field.enum.js +0 -8
- package/build/models/category-translation.schema.js +0 -16
- package/build/models/course-translation.schema.js +0 -17
- package/build/models/lesson-translation.schema.js +0 -13
- package/build/models/page-translation.schema.js +0 -18
- package/build/models/post-translation.schema.js +0 -18
- package/build/models/prompt-category-translation.schema.js +0 -18
- package/build/models/prompt-topic-translation.schema.js +0 -20
- package/build/models/prompt-translation.schema.js +0 -14
- package/build/models/question-translation.schema.js +0 -14
- package/build/models/section-translation.schema.js +0 -13
- package/commands/blog/create-post-translation.command.ts +0 -28
- package/commands/blog/get-all-post-translations.query.ts +0 -16
- package/commands/blog/update-post-translation.command.ts +0 -28
- package/commands/canvas-node/create-canvas-node.command.ts +0 -25
- package/commands/canvas-node/update-canvas-node.command.ts +0 -26
- package/commands/category/create-category-translation.command.ts +0 -26
- package/commands/category/get-all-category-translations.query.ts +0 -16
- package/commands/category/update-category-translation.command.ts +0 -26
- package/commands/course/create-course-translation.command.ts +0 -27
- package/commands/course/create-lesson-translation.command.ts +0 -23
- package/commands/course/create-section-translation.command.ts +0 -23
- package/commands/course/get-all-course-translations.query.ts +0 -16
- package/commands/course/get-all-lesson-translations.query.ts +0 -16
- package/commands/course/get-all-section-translations.query.ts +0 -16
- package/commands/course/update-course-translation.command.ts +0 -27
- package/commands/course/update-lesson-translation.command.ts +0 -23
- package/commands/course/update-section-translation.command.ts +0 -23
- package/commands/page/create-page-translation.command.ts +0 -28
- package/commands/page/get-all-page-translations.query.ts +0 -16
- package/commands/page/update-page-translation.command.ts +0 -28
- package/commands/prompt/create-prompt-translation.command.ts +0 -24
- package/commands/prompt/get-all-prompt-translations.query.ts +0 -16
- package/commands/prompt/update-prompt-translation.command.ts +0 -24
- package/commands/prompt-category/create-prompt-category-translation.command.ts +0 -25
- package/commands/prompt-category/get-all-prompt-category-translations.query.ts +0 -16
- package/commands/prompt-category/update-prompt-category-translation.command.ts +0 -25
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +0 -27
- package/commands/prompt-topic/get-all-prompt-topic-translations.query.ts +0 -16
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +0 -27
- package/commands/question/create-question-translation.command.ts +0 -24
- package/commands/question/get-all-question-translations.query.ts +0 -16
- package/commands/question/update-question-translation.command.ts +0 -24
- package/commands/team-account/update-team-account-invite.command.ts +0 -22
- package/constants/cabinet/enums/statistics-request-type.enum.ts +0 -20
- package/constants/subscription/enums/subscription-balance-field.enum.ts +0 -4
- package/models/category-translation.schema.ts +0 -14
- package/models/course-translation.schema.ts +0 -15
- package/models/lesson-translation.schema.ts +0 -11
- package/models/page-translation.schema.ts +0 -16
- package/models/post-translation.schema.ts +0 -16
- package/models/prompt-category-translation.schema.ts +0 -13
- package/models/prompt-topic-translation.schema.ts +0 -15
- package/models/prompt-translation.schema.ts +0 -12
- package/models/question-translation.schema.ts +0 -12
- package/models/section-translation.schema.ts +0 -11
- /package/build/commands/{canvas → ai-studio/canvas}/index.js +0 -0
- /package/build/commands/{canvas-edge → ai-studio/canvas-edge}/delete-canvas-edge.command.js +0 -0
- /package/build/commands/{canvas-edge → ai-studio/canvas-edge}/index.js +0 -0
- /package/build/commands/{canvas-node → ai-studio/canvas-node}/index.js +0 -0
- /package/commands/{canvas → ai-studio/canvas}/index.ts +0 -0
- /package/commands/{canvas-edge → ai-studio/canvas-edge}/delete-canvas-edge.command.ts +0 -0
- /package/commands/{canvas-edge → ai-studio/canvas-edge}/index.ts +0 -0
- /package/commands/{canvas-node → ai-studio/canvas-node}/index.ts +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { QuestionTranslationSchema } from '../../models';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export namespace CreateQuestionTranslationCommand {
|
|
5
|
-
export const RequestSchema = QuestionTranslationSchema.pick({
|
|
6
|
-
question: true,
|
|
7
|
-
answer: true,
|
|
8
|
-
locale: true,
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
12
|
-
|
|
13
|
-
export const RequestParamSchema = z.object({
|
|
14
|
-
uuid: z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
18
|
-
|
|
19
|
-
export const ResponseSchema = z.object({
|
|
20
|
-
data: QuestionTranslationSchema,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
24
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { QuestionTranslationSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace GetAllQuestionTranslationsQuery {
|
|
5
|
-
export const RequestParamSchema = z.object({
|
|
6
|
-
uuid: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: z.array(QuestionTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { QuestionTranslationSchema } from '../../models';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateQuestionTranslationCommand {
|
|
5
|
-
export const RequestSchema = QuestionTranslationSchema.pick({
|
|
6
|
-
question: true,
|
|
7
|
-
answer: true,
|
|
8
|
-
}).partial();
|
|
9
|
-
|
|
10
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
11
|
-
|
|
12
|
-
export const RequestParamSchema = z.object({
|
|
13
|
-
uuid: z.string().uuid(),
|
|
14
|
-
translationUuid: z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
18
|
-
|
|
19
|
-
export const ResponseSchema = z.object({
|
|
20
|
-
data: QuestionTranslationSchema,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
24
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TeamAccountInviteResponseSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateTeamAccountInviteCommand {
|
|
5
|
-
export const RequestParam = z.object({
|
|
6
|
-
uuid: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type RequestParam = z.infer<typeof RequestParam>;
|
|
10
|
-
|
|
11
|
-
export const RequestSchema = z.object({
|
|
12
|
-
limit: z.number().int().positive().nullable(),
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
16
|
-
|
|
17
|
-
export const ResponseSchema = z.object({
|
|
18
|
-
data: TeamAccountInviteResponseSchema,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export enum STATISTICS_REQUEST_TYPE {
|
|
2
|
-
IMAGE = 'IMAGE',
|
|
3
|
-
VIDEO = 'VIDEO',
|
|
4
|
-
PRESENTATION = 'PRESENTATION',
|
|
5
|
-
TEXT = 'TEXT',
|
|
6
|
-
AUDIO = 'AUDIO',
|
|
7
|
-
PARAPHRASE = 'PARAPHRASE',
|
|
8
|
-
WRITER = 'WRITER',
|
|
9
|
-
PRESENTATION_AI_ACTION = 'PRESENTATION_AI_ACTION',
|
|
10
|
-
WRITER_ACTION = 'WRITER_ACTION',
|
|
11
|
-
VIDEO_EDITOR = 'VIDEO_EDITOR',
|
|
12
|
-
MUSIC = 'MUSIC',
|
|
13
|
-
MUSIC_ACTION = 'MUSIC_ACTION',
|
|
14
|
-
INTERIOR_DESIGN = 'INTERIOR_DESIGN',
|
|
15
|
-
MARKETPLACE_CARD = 'MARKETPLACE_CARD',
|
|
16
|
-
SOLVING_EDU_TASK = 'SOLVING_EDU_TASK',
|
|
17
|
-
SPELL_CORRECTOR = 'SPELL_CORRECTOR',
|
|
18
|
-
DIAGRAMS = 'DIAGRAMS',
|
|
19
|
-
HTML_PAGE_BUILDER = 'HTML_PAGE_BUILDER',
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const CategoryTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
categoryId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
name: z.string().min(3).max(16384),
|
|
9
|
-
prompt: z.nullable(z.string().min(3).max(16384)),
|
|
10
|
-
placeholder: z.nullable(z.string()),
|
|
11
|
-
seoName: z.string().min(3).max(16384),
|
|
12
|
-
createdAt: z.date(),
|
|
13
|
-
updatedAt: z.date(),
|
|
14
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const CourseTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
courseId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
subtitle: z.string(),
|
|
10
|
-
prerequisites: z.string(),
|
|
11
|
-
description: z.string(),
|
|
12
|
-
skills: z.array(z.string()),
|
|
13
|
-
createdAt: z.date(),
|
|
14
|
-
updatedAt: z.date(),
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const LessonTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
lessonId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
createdAt: z.date(),
|
|
10
|
-
updatedAt: z.date(),
|
|
11
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const PageTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
pageId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
metaTitle: z.string().min(3).max(16384),
|
|
9
|
-
metaDescription: z.string().min(3).max(16384),
|
|
10
|
-
title: z.string().min(3).max(16384),
|
|
11
|
-
subTitle: z.string().min(3).max(16384),
|
|
12
|
-
seoTextMd: z.string().min(3).max(16384),
|
|
13
|
-
toolTitle: z.string().nullable(),
|
|
14
|
-
createdAt: z.date(),
|
|
15
|
-
updatedAt: z.date(),
|
|
16
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const PostTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
postId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
content: z.string(),
|
|
10
|
-
author: z.string(),
|
|
11
|
-
contentPreview: z.nullable(z.string()),
|
|
12
|
-
metaTitle: z.nullable(z.string()),
|
|
13
|
-
metaDescription: z.nullable(z.string()),
|
|
14
|
-
createdAt: z.date(),
|
|
15
|
-
updatedAt: z.date(),
|
|
16
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const PromptCategoryTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
promptCategoryId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
metaTitle: z.string().nullable(),
|
|
10
|
-
metaDescription: z.string().nullable(),
|
|
11
|
-
createdAt: z.date(),
|
|
12
|
-
updatedAt: z.date(),
|
|
13
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const PromptTopicTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
promptTopicId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
content: z.string(),
|
|
10
|
-
metaTitle: z.string().nullable(),
|
|
11
|
-
metaDescription: z.string().nullable(),
|
|
12
|
-
seoText: z.string().nullable(),
|
|
13
|
-
createdAt: z.date(),
|
|
14
|
-
updatedAt: z.date(),
|
|
15
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const PromptTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
promptId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string().nullable(),
|
|
9
|
-
content: z.string(),
|
|
10
|
-
createdAt: z.date(),
|
|
11
|
-
updatedAt: z.date(),
|
|
12
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const QuestionTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
questionId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
question: z.string().min(3).max(16384),
|
|
9
|
-
answer: z.string().min(3).max(16384),
|
|
10
|
-
createdAt: z.date(),
|
|
11
|
-
updatedAt: z.date(),
|
|
12
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
|
|
4
|
-
export const SectionTranslationSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
sectionId: z.string().uuid(),
|
|
7
|
-
locale: z.nativeEnum(LOCALE),
|
|
8
|
-
title: z.string(),
|
|
9
|
-
createdAt: z.date(),
|
|
10
|
-
updatedAt: z.date(),
|
|
11
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|