@purpleschool/gptbot 0.14.7-stage-2 → 0.14.8-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/build/commands/model-page/question-translation/create-model-page-question-translation.command.js +3 -0
- package/build/commands/model-page/question-translation/update-model-page-question-translation.command.js +2 -0
- package/build/commands/model-page/translation/create-model-page-translation.command.js +5 -1
- package/build/commands/model-page/translation/update-model-page-translation.command.js +3 -0
- package/build/models/model-page/model-page-public.schema.js +5 -0
- package/build/models/model-page/model-page-question-translation.schema.js +2 -0
- package/build/models/model-page/model-page-translation.schema.js +3 -0
- package/commands/model-page/question-translation/create-model-page-question-translation.command.ts +3 -0
- package/commands/model-page/question-translation/update-model-page-question-translation.command.ts +2 -0
- package/commands/model-page/translation/create-model-page-translation.command.ts +7 -1
- package/commands/model-page/translation/update-model-page-translation.command.ts +3 -0
- package/models/model-page/model-page-public.schema.ts +5 -0
- package/models/model-page/model-page-question-translation.schema.ts +2 -0
- package/models/model-page/model-page-translation.schema.ts +3 -0
- package/package.json +1 -1
|
@@ -11,6 +11,9 @@ var CreateModelPageQuestionTranslationCommand;
|
|
|
11
11
|
locale: true,
|
|
12
12
|
title: true,
|
|
13
13
|
answer: true,
|
|
14
|
+
}).extend({
|
|
15
|
+
metaTitle: zod_1.z.string(),
|
|
16
|
+
metaDescription: zod_1.z.string(),
|
|
14
17
|
});
|
|
15
18
|
CreateModelPageQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
19
|
data: models_1.ModelPageQuestionTranslationSchema,
|
|
@@ -9,6 +9,8 @@ var UpdateModelPageQuestionTranslationCommand;
|
|
|
9
9
|
UpdateModelPageQuestionTranslationCommand.RequestParamSchema = common_schemas_1.ModelPageTranslationParamSchema;
|
|
10
10
|
UpdateModelPageQuestionTranslationCommand.RequestSchema = models_1.ModelPageQuestionTranslationSchema.pick({
|
|
11
11
|
title: true,
|
|
12
|
+
metaTitle: true,
|
|
13
|
+
metaDescription: true,
|
|
12
14
|
answer: true,
|
|
13
15
|
}).partial();
|
|
14
16
|
UpdateModelPageQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -11,7 +11,11 @@ var CreateModelPageTranslationCommand;
|
|
|
11
11
|
locale: true,
|
|
12
12
|
description: true,
|
|
13
13
|
documentation: true,
|
|
14
|
-
})
|
|
14
|
+
}).merge(models_1.ModelPageTranslationSchema.pick({
|
|
15
|
+
title: true,
|
|
16
|
+
metaTitle: true,
|
|
17
|
+
metaDescription: true,
|
|
18
|
+
}).partial());
|
|
15
19
|
CreateModelPageTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
20
|
data: models_1.ModelPageTranslationSchema,
|
|
17
21
|
});
|
|
@@ -8,6 +8,9 @@ var UpdateModelPageTranslationCommand;
|
|
|
8
8
|
(function (UpdateModelPageTranslationCommand) {
|
|
9
9
|
UpdateModelPageTranslationCommand.RequestParamSchema = common_schemas_1.ModelPageTranslationParamSchema;
|
|
10
10
|
UpdateModelPageTranslationCommand.RequestSchema = models_1.ModelPageTranslationSchema.pick({
|
|
11
|
+
title: true,
|
|
12
|
+
metaTitle: true,
|
|
13
|
+
metaDescription: true,
|
|
11
14
|
description: true,
|
|
12
15
|
documentation: true,
|
|
13
16
|
}).partial();
|
|
@@ -51,6 +51,9 @@ exports.ModelPageHubSchema = zod_1.z.object({
|
|
|
51
51
|
exports.ModelPageDetailSchema = zod_1.z.object({
|
|
52
52
|
uuid: zod_1.z.string().uuid(),
|
|
53
53
|
slug: zod_1.z.string(),
|
|
54
|
+
title: zod_1.z.string().nullable(),
|
|
55
|
+
metaTitle: zod_1.z.string().nullable(),
|
|
56
|
+
metaDescription: zod_1.z.string().nullable(),
|
|
54
57
|
description: zod_1.z.string(),
|
|
55
58
|
documentation: zod_1.z.string(),
|
|
56
59
|
codeExamples: zod_1.z.array(exports.ModelPageCodeExampleSchema),
|
|
@@ -72,6 +75,8 @@ exports.ModelPageQuestionTypeListSchema = zod_1.z.object({
|
|
|
72
75
|
exports.ModelPageAnswerDetailSchema = zod_1.z.object({
|
|
73
76
|
uuid: zod_1.z.string().uuid(),
|
|
74
77
|
title: zod_1.z.string(),
|
|
78
|
+
metaTitle: zod_1.z.string().nullable(),
|
|
79
|
+
metaDescription: zod_1.z.string().nullable(),
|
|
75
80
|
questionType: zod_1.z.nativeEnum(constants_1.MODEL_PAGE_QUESTION_TYPE),
|
|
76
81
|
answer: zod_1.z.string(),
|
|
77
82
|
codeExamples: zod_1.z.array(exports.ModelPageCodeExampleSchema),
|
|
@@ -8,6 +8,8 @@ exports.ModelPageQuestionTranslationSchema = zod_1.z.object({
|
|
|
8
8
|
modelPageQuestionId: zod_1.z.string().uuid(),
|
|
9
9
|
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
10
|
title: zod_1.z.string(),
|
|
11
|
+
metaTitle: zod_1.z.string().nullable(),
|
|
12
|
+
metaDescription: zod_1.z.string().nullable(),
|
|
11
13
|
answer: zod_1.z.string(),
|
|
12
14
|
createdAt: zod_1.z.date(),
|
|
13
15
|
updatedAt: zod_1.z.date(),
|
|
@@ -7,6 +7,9 @@ exports.ModelPageTranslationSchema = zod_1.z.object({
|
|
|
7
7
|
uuid: zod_1.z.string().uuid(),
|
|
8
8
|
modelPageId: zod_1.z.string().uuid(),
|
|
9
9
|
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
+
title: zod_1.z.string().nullable(),
|
|
11
|
+
metaTitle: zod_1.z.string().nullable(),
|
|
12
|
+
metaDescription: zod_1.z.string().nullable(),
|
|
10
13
|
description: zod_1.z.string(),
|
|
11
14
|
documentation: zod_1.z.string(),
|
|
12
15
|
createdAt: zod_1.z.date(),
|
|
@@ -10,7 +10,13 @@ export namespace CreateModelPageTranslationCommand {
|
|
|
10
10
|
locale: true,
|
|
11
11
|
description: true,
|
|
12
12
|
documentation: true,
|
|
13
|
-
})
|
|
13
|
+
}).merge(
|
|
14
|
+
ModelPageTranslationSchema.pick({
|
|
15
|
+
title: true,
|
|
16
|
+
metaTitle: true,
|
|
17
|
+
metaDescription: true,
|
|
18
|
+
}).partial(),
|
|
19
|
+
);
|
|
14
20
|
|
|
15
21
|
export type Request = z.infer<typeof RequestSchema>;
|
|
16
22
|
|
|
@@ -7,6 +7,9 @@ export namespace UpdateModelPageTranslationCommand {
|
|
|
7
7
|
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
8
8
|
|
|
9
9
|
export const RequestSchema = ModelPageTranslationSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
metaTitle: true,
|
|
12
|
+
metaDescription: true,
|
|
10
13
|
description: true,
|
|
11
14
|
documentation: true,
|
|
12
15
|
}).partial();
|
|
@@ -82,6 +82,9 @@ export type ModelPageHub = z.infer<typeof ModelPageHubSchema>;
|
|
|
82
82
|
export const ModelPageDetailSchema = z.object({
|
|
83
83
|
uuid: z.string().uuid(),
|
|
84
84
|
slug: z.string(),
|
|
85
|
+
title: z.string().nullable(),
|
|
86
|
+
metaTitle: z.string().nullable(),
|
|
87
|
+
metaDescription: z.string().nullable(),
|
|
85
88
|
description: z.string(),
|
|
86
89
|
documentation: z.string(),
|
|
87
90
|
codeExamples: z.array(ModelPageCodeExampleSchema),
|
|
@@ -113,6 +116,8 @@ export type ModelPageQuestionTypeList = z.infer<typeof ModelPageQuestionTypeList
|
|
|
113
116
|
export const ModelPageAnswerDetailSchema = z.object({
|
|
114
117
|
uuid: z.string().uuid(),
|
|
115
118
|
title: z.string(),
|
|
119
|
+
metaTitle: z.string().nullable(),
|
|
120
|
+
metaDescription: z.string().nullable(),
|
|
116
121
|
questionType: z.nativeEnum(MODEL_PAGE_QUESTION_TYPE),
|
|
117
122
|
answer: z.string(),
|
|
118
123
|
codeExamples: z.array(ModelPageCodeExampleSchema),
|
|
@@ -6,6 +6,8 @@ export const ModelPageQuestionTranslationSchema = z.object({
|
|
|
6
6
|
modelPageQuestionId: z.string().uuid(),
|
|
7
7
|
locale: z.nativeEnum(LOCALE),
|
|
8
8
|
title: z.string(),
|
|
9
|
+
metaTitle: z.string().nullable(),
|
|
10
|
+
metaDescription: z.string().nullable(),
|
|
9
11
|
answer: z.string(),
|
|
10
12
|
createdAt: z.date(),
|
|
11
13
|
updatedAt: z.date(),
|
|
@@ -5,6 +5,9 @@ export const ModelPageTranslationSchema = z.object({
|
|
|
5
5
|
uuid: z.string().uuid(),
|
|
6
6
|
modelPageId: z.string().uuid(),
|
|
7
7
|
locale: z.nativeEnum(LOCALE),
|
|
8
|
+
title: z.string().nullable(),
|
|
9
|
+
metaTitle: z.string().nullable(),
|
|
10
|
+
metaDescription: z.string().nullable(),
|
|
8
11
|
description: z.string(),
|
|
9
12
|
documentation: z.string(),
|
|
10
13
|
createdAt: z.date(),
|