@purpleschool/gptbot 0.20.1-stage-2 → 0.20.3-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/api/controllers/http/writer.d.ts +2 -0
- package/build/api/controllers/http/writer.js +2 -0
- package/build/api/routes.d.ts +4 -0
- package/build/api/routes.js +4 -0
- package/build/commands/tools/presentation/create-presentation.command.d.ts +3 -0
- package/build/commands/tools/presentation/find-presentation-by-uuid.command.d.ts +3 -0
- package/build/commands/tools/presentation/find-presentations.command.d.ts +3 -0
- package/build/commands/tools/presentation/generate-presentation-outline.command.d.ts +42 -0
- package/build/commands/tools/presentation/generate-presentation-outline.command.js +13 -0
- package/build/commands/tools/presentation/generate-presentation-slides.command.d.ts +3 -0
- package/build/commands/tools/presentation/index.d.ts +1 -0
- package/build/commands/tools/presentation/index.js +1 -0
- package/build/commands/tools/presentation/set-reaction-to-presentation.command.d.ts +3 -0
- package/build/commands/tools/presentation/update-presentation-favorite.command.d.ts +3 -0
- package/build/commands/tools/presentation/update-presentation.command.d.ts +3 -0
- package/build/commands/tools/writer/analyze-writer-document-topic.command.d.ts +51 -0
- package/build/commands/tools/writer/analyze-writer-document-topic.command.js +10 -0
- package/build/commands/tools/writer/collect-writer-document-sources.command.d.ts +2 -0
- package/build/commands/tools/writer/create-writer-document.command.d.ts +2 -0
- package/build/commands/tools/writer/find-writer-document-by-uuid.command.d.ts +2 -0
- package/build/commands/tools/writer/find-writer-documents.command.d.ts +2 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.d.ts +3 -0
- package/build/commands/tools/writer/generate-writer-document-contents.command.js +1 -0
- package/build/commands/tools/writer/generate-writer-document-outline.command.d.ts +56 -0
- package/build/commands/tools/writer/generate-writer-document-outline.command.js +14 -0
- package/build/commands/tools/writer/index.d.ts +2 -0
- package/build/commands/tools/writer/index.js +2 -0
- package/build/commands/tools/writer/set-reaction.writer-document.command.d.ts +2 -0
- package/build/commands/tools/writer/update-writer-document-favorite.command.d.ts +2 -0
- package/build/commands/tools/writer/update-writer-document-title.command.d.ts +2 -0
- package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts +17 -0
- package/build/commands/ui-notification/find-ui-notifications.command.d.ts +17 -0
- package/build/constants/ui-notification/enums/ui-notification-type.enum.d.ts +2 -1
- package/build/constants/ui-notification/enums/ui-notification-type.enum.js +1 -0
- package/build/models/tools/presentation/presentation.schema.d.ts +6 -0
- package/build/models/tools/presentation/presentation.schema.js +3 -0
- package/build/models/tools/writer/writer-document.schema.d.ts +2 -0
- package/build/models/tools/writer/writer-document.schema.js +2 -0
- package/build/models/ui-notification.schema.d.ts +25 -1
- package/build/models/ui-notification.schema.js +11 -1
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export declare const WRITER_ROUTES: {
|
|
|
10
10
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
11
11
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
12
12
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
13
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
14
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
13
15
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
14
16
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
15
17
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
@@ -13,6 +13,8 @@ exports.WRITER_ROUTES = {
|
|
|
13
13
|
UPLOAD_SOURCE: (uuid) => `documents/${uuid}/sources/upload`,
|
|
14
14
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `documents/${docId}/sources/${sourceId}/confirm`,
|
|
15
15
|
GENERATE_CONTENTS: (uuid) => `documents/${uuid}/generate`,
|
|
16
|
+
ANALYZE_TOPIC: (uuid) => `documents/${uuid}/topic/analyze`,
|
|
17
|
+
GENERATE_OUTLINE: (uuid) => `documents/${uuid}/outline/generate`,
|
|
16
18
|
UPDATE_OUTLINE: (uuid) => `documents/${uuid}/outline`,
|
|
17
19
|
UPDATE_TITLE_PAGE: (uuid) => `documents/${uuid}/title-page`,
|
|
18
20
|
UPDATE_FAVORITE: (uuid) => `documents/${uuid}/favorite`,
|
package/build/api/routes.d.ts
CHANGED
|
@@ -563,6 +563,8 @@ export declare const REST_API: {
|
|
|
563
563
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
564
564
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
565
565
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
566
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
567
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
566
568
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
567
569
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
568
570
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
@@ -590,6 +592,8 @@ export declare const REST_API: {
|
|
|
590
592
|
readonly UPLOAD_SOURCE: (uuid: string) => string;
|
|
591
593
|
readonly CONFIRM_SOURCE_CITATION_METADATA: (docId: string, sourceId: string) => string;
|
|
592
594
|
readonly GENERATE_CONTENTS: (uuid: string) => string;
|
|
595
|
+
readonly GENERATE_OUTLINE: (uuid: string) => string;
|
|
596
|
+
readonly ANALYZE_TOPIC: (uuid: string) => string;
|
|
593
597
|
readonly UPDATE_OUTLINE: (uuid: string) => string;
|
|
594
598
|
readonly UPDATE_TITLE_PAGE: (uuid: string) => string;
|
|
595
599
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -602,6 +602,8 @@ exports.REST_API = {
|
|
|
602
602
|
UPLOAD_SOURCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPLOAD_SOURCE(uuid)}`,
|
|
603
603
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.CONFIRM_SOURCE_CITATION_METADATA(docId, sourceId)}`,
|
|
604
604
|
GENERATE_CONTENTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.GENERATE_CONTENTS(uuid)}`,
|
|
605
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
606
|
+
ANALYZE_TOPIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.ANALYZE_TOPIC(uuid)}`,
|
|
605
607
|
UPDATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_OUTLINE(uuid)}`,
|
|
606
608
|
UPDATE_TITLE_PAGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_TITLE_PAGE(uuid)}`,
|
|
607
609
|
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PUBLIC}/${CONTROLLERS.WRITER_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
@@ -629,6 +631,8 @@ exports.REST_API = {
|
|
|
629
631
|
UPLOAD_SOURCE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPLOAD_SOURCE(uuid)}`,
|
|
630
632
|
CONFIRM_SOURCE_CITATION_METADATA: (docId, sourceId) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.CONFIRM_SOURCE_CITATION_METADATA(docId, sourceId)}`,
|
|
631
633
|
GENERATE_CONTENTS: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.GENERATE_CONTENTS(uuid)}`,
|
|
634
|
+
GENERATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.GENERATE_OUTLINE(uuid)}`,
|
|
635
|
+
ANALYZE_TOPIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.ANALYZE_TOPIC(uuid)}`,
|
|
632
636
|
UPDATE_OUTLINE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_OUTLINE(uuid)}`,
|
|
633
637
|
UPDATE_TITLE_PAGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_TITLE_PAGE(uuid)}`,
|
|
634
638
|
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.WRITER_CONTROLLER_PRIVATE}/${CONTROLLERS.WRITER_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
@@ -24,6 +24,9 @@ export declare namespace CreatePresentationCommand {
|
|
|
24
24
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
25
25
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
26
26
|
slideCount: z.ZodNumber;
|
|
27
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
30
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
28
31
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -19,6 +19,9 @@ export declare namespace FindPresentationByUuidCommand {
|
|
|
19
19
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
20
20
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
21
21
|
slideCount: z.ZodNumber;
|
|
22
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
25
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
23
26
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
24
27
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -25,6 +25,9 @@ export declare namespace FindPresentationsCommand {
|
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
26
26
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
27
27
|
slideCount: z.ZodNumber;
|
|
28
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
31
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
30
33
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GeneratePresentationOutlineCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
slideCount: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
11
|
+
const ResponseSchema: z.ZodObject<{
|
|
12
|
+
data: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
prompt: z.ZodString;
|
|
15
|
+
stage: z.ZodEnum<typeof import("../../..").PRESENTATION_STAGE>;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
isFavorite: z.ZodBoolean;
|
|
18
|
+
thumbnail: z.ZodString;
|
|
19
|
+
languageId: z.ZodString;
|
|
20
|
+
templateId: z.ZodString;
|
|
21
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
22
|
+
docUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
24
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
25
|
+
slideCount: z.ZodNumber;
|
|
26
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
30
|
+
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
31
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
author: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
createdAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
34
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
targetAudience: z.ZodEnum<typeof import("../../..").PRESENTATION_TARGET_AUDIENCE>;
|
|
37
|
+
createdAt: z.ZodDate;
|
|
38
|
+
updatedAt: z.ZodDate;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneratePresentationOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GeneratePresentationOutlineCommand;
|
|
7
|
+
(function (GeneratePresentationOutlineCommand) {
|
|
8
|
+
GeneratePresentationOutlineCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
GeneratePresentationOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
slideCount: zod_1.z.number().int().positive().optional(),
|
|
11
|
+
});
|
|
12
|
+
GeneratePresentationOutlineCommand.ResponseSchema = zod_1.z.object({ data: models_1.PresentationSchema });
|
|
13
|
+
})(GeneratePresentationOutlineCommand || (exports.GeneratePresentationOutlineCommand = GeneratePresentationOutlineCommand = {}));
|
|
@@ -27,6 +27,9 @@ export declare namespace GeneratePresentationSlidesCommand {
|
|
|
27
27
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
28
28
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
29
29
|
slideCount: z.ZodNumber;
|
|
30
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
33
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
31
34
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
32
35
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -23,3 +23,4 @@ export * from './presentation-generate-report.command';
|
|
|
23
23
|
export * from './update-slide.command';
|
|
24
24
|
export * from './set-reaction-to-presentation.command';
|
|
25
25
|
export * from './update-presentation-favorite.command';
|
|
26
|
+
export * from './generate-presentation-outline.command';
|
|
@@ -39,3 +39,4 @@ __exportStar(require("./presentation-generate-report.command"), exports);
|
|
|
39
39
|
__exportStar(require("./update-slide.command"), exports);
|
|
40
40
|
__exportStar(require("./set-reaction-to-presentation.command"), exports);
|
|
41
41
|
__exportStar(require("./update-presentation-favorite.command"), exports);
|
|
42
|
+
__exportStar(require("./generate-presentation-outline.command"), exports);
|
|
@@ -25,6 +25,9 @@ export declare namespace SetReactionToPresentationCommand {
|
|
|
25
25
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
26
26
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
27
27
|
slideCount: z.ZodNumber;
|
|
28
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
31
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
29
32
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
30
33
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -23,6 +23,9 @@ export declare namespace UpdatePresentationFavoriteCommand {
|
|
|
23
23
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
24
24
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
25
25
|
slideCount: z.ZodNumber;
|
|
26
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
29
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
27
30
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
28
31
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -29,6 +29,9 @@ export declare namespace UpdatePresentationCommand {
|
|
|
29
29
|
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
30
30
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
31
31
|
slideCount: z.ZodNumber;
|
|
32
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
35
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
33
36
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
34
37
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AnalyzeWriterDocumentTopicCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodUUID;
|
|
10
|
+
prompt: z.ZodString;
|
|
11
|
+
topic: z.ZodString;
|
|
12
|
+
title: z.ZodNullable<z.ZodString>;
|
|
13
|
+
typeId: z.ZodString;
|
|
14
|
+
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
15
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
20
|
+
subsections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
institution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
faculty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
specialty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
isTitlePageEnabled: z.ZodBoolean;
|
|
34
|
+
isFavorite: z.ZodBoolean;
|
|
35
|
+
sourceMd: z.ZodNullable<z.ZodString>;
|
|
36
|
+
finalMd: z.ZodNullable<z.ZodString>;
|
|
37
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
41
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
42
|
+
description: z.ZodNullable<z.ZodString>;
|
|
43
|
+
skipSources: z.ZodBoolean;
|
|
44
|
+
pages: z.ZodNumber;
|
|
45
|
+
createdAt: z.ZodDate;
|
|
46
|
+
updatedAt: z.ZodDate;
|
|
47
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyzeWriterDocumentTopicCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var AnalyzeWriterDocumentTopicCommand;
|
|
7
|
+
(function (AnalyzeWriterDocumentTopicCommand) {
|
|
8
|
+
AnalyzeWriterDocumentTopicCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
AnalyzeWriterDocumentTopicCommand.ResponseSchema = zod_1.z.object({ data: models_1.WriterDocumentSchema });
|
|
10
|
+
})(AnalyzeWriterDocumentTopicCommand || (exports.AnalyzeWriterDocumentTopicCommand = AnalyzeWriterDocumentTopicCommand = {}));
|
|
@@ -14,6 +14,8 @@ export declare namespace CollectWriterDocumentSourcesCommand {
|
|
|
14
14
|
title: z.ZodNullable<z.ZodString>;
|
|
15
15
|
typeId: z.ZodString;
|
|
16
16
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
17
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
outline: z.ZodArray<z.ZodObject<{
|
|
18
20
|
title: z.ZodString;
|
|
19
21
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -14,6 +14,8 @@ export declare namespace CreateWriterDocumentCommand {
|
|
|
14
14
|
title: z.ZodNullable<z.ZodString>;
|
|
15
15
|
typeId: z.ZodString;
|
|
16
16
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
17
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
outline: z.ZodArray<z.ZodObject<{
|
|
18
20
|
title: z.ZodString;
|
|
19
21
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -12,6 +12,8 @@ export declare namespace FindWriterDocumentByUUIDCommand {
|
|
|
12
12
|
title: z.ZodNullable<z.ZodString>;
|
|
13
13
|
typeId: z.ZodString;
|
|
14
14
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
15
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
outline: z.ZodArray<z.ZodObject<{
|
|
16
18
|
title: z.ZodString;
|
|
17
19
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -18,6 +18,8 @@ export declare namespace FindWriterDocumentsCommand {
|
|
|
18
18
|
title: z.ZodNullable<z.ZodString>;
|
|
19
19
|
typeId: z.ZodString;
|
|
20
20
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
21
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
outline: z.ZodArray<z.ZodObject<{
|
|
22
24
|
title: z.ZodString;
|
|
23
25
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -6,6 +6,7 @@ export declare namespace GenerateWriterDocumentContentsCommand {
|
|
|
6
6
|
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
7
|
const RequestBodySchema: z.ZodObject<{
|
|
8
8
|
modelId: z.ZodUUID;
|
|
9
|
+
skipSources: z.ZodOptional<z.ZodBoolean>;
|
|
9
10
|
}, z.core.$strip>;
|
|
10
11
|
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
11
12
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -16,6 +17,8 @@ export declare namespace GenerateWriterDocumentContentsCommand {
|
|
|
16
17
|
title: z.ZodNullable<z.ZodString>;
|
|
17
18
|
typeId: z.ZodString;
|
|
18
19
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
20
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
22
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
23
|
title: z.ZodString;
|
|
21
24
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -10,6 +10,7 @@ var GenerateWriterDocumentContentsCommand;
|
|
|
10
10
|
});
|
|
11
11
|
GenerateWriterDocumentContentsCommand.RequestBodySchema = zod_1.z.object({
|
|
12
12
|
modelId: zod_1.z.uuid(),
|
|
13
|
+
skipSources: zod_1.z.boolean().optional(),
|
|
13
14
|
});
|
|
14
15
|
GenerateWriterDocumentContentsCommand.ResponseSchema = zod_1.z.object({
|
|
15
16
|
data: models_1.WriterDocumentSchema,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GenerateWriterDocumentOutlineCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const RequestBodySchema: z.ZodObject<{
|
|
8
|
+
numPages: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
uuid: z.ZodUUID;
|
|
15
|
+
prompt: z.ZodString;
|
|
16
|
+
topic: z.ZodString;
|
|
17
|
+
title: z.ZodNullable<z.ZodString>;
|
|
18
|
+
typeId: z.ZodString;
|
|
19
|
+
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
20
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
outline: z.ZodArray<z.ZodObject<{
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
25
|
+
subsections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
titlePage: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
institution: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
faculty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
specialty: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
subject: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
isTitlePageEnabled: z.ZodBoolean;
|
|
39
|
+
isFavorite: z.ZodBoolean;
|
|
40
|
+
sourceMd: z.ZodNullable<z.ZodString>;
|
|
41
|
+
finalMd: z.ZodNullable<z.ZodString>;
|
|
42
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
43
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
46
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
47
|
+
description: z.ZodNullable<z.ZodString>;
|
|
48
|
+
skipSources: z.ZodBoolean;
|
|
49
|
+
pages: z.ZodNumber;
|
|
50
|
+
createdAt: z.ZodDate;
|
|
51
|
+
updatedAt: z.ZodDate;
|
|
52
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateWriterDocumentOutlineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GenerateWriterDocumentOutlineCommand;
|
|
7
|
+
(function (GenerateWriterDocumentOutlineCommand) {
|
|
8
|
+
GenerateWriterDocumentOutlineCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.uuid() });
|
|
9
|
+
GenerateWriterDocumentOutlineCommand.RequestBodySchema = zod_1.z.object({
|
|
10
|
+
numPages: zod_1.z.number().int().positive().optional(),
|
|
11
|
+
description: zod_1.z.string().nullable().optional(),
|
|
12
|
+
});
|
|
13
|
+
GenerateWriterDocumentOutlineCommand.ResponseSchema = zod_1.z.object({ data: models_1.WriterDocumentSchema });
|
|
14
|
+
})(GenerateWriterDocumentOutlineCommand || (exports.GenerateWriterDocumentOutlineCommand = GenerateWriterDocumentOutlineCommand = {}));
|
|
@@ -23,3 +23,5 @@ export * from './confirm-source-citation-metadata.command';
|
|
|
23
23
|
export * from './discard-writer-source.command';
|
|
24
24
|
export * from './update-writer-document-favorite.command';
|
|
25
25
|
export * from './update-writer-document-title.command';
|
|
26
|
+
export * from './analyze-writer-document-topic.command';
|
|
27
|
+
export * from './generate-writer-document-outline.command';
|
|
@@ -39,3 +39,5 @@ __exportStar(require("./confirm-source-citation-metadata.command"), exports);
|
|
|
39
39
|
__exportStar(require("./discard-writer-source.command"), exports);
|
|
40
40
|
__exportStar(require("./update-writer-document-favorite.command"), exports);
|
|
41
41
|
__exportStar(require("./update-writer-document-title.command"), exports);
|
|
42
|
+
__exportStar(require("./analyze-writer-document-topic.command"), exports);
|
|
43
|
+
__exportStar(require("./generate-writer-document-outline.command"), exports);
|
|
@@ -18,6 +18,8 @@ export declare namespace SetReactionWriterDocumentCommand {
|
|
|
18
18
|
title: z.ZodNullable<z.ZodString>;
|
|
19
19
|
typeId: z.ZodString;
|
|
20
20
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
21
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
outline: z.ZodArray<z.ZodObject<{
|
|
22
24
|
title: z.ZodString;
|
|
23
25
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -16,6 +16,8 @@ export declare namespace UpdateWriterDocumentFavoriteCommand {
|
|
|
16
16
|
title: z.ZodNullable<z.ZodString>;
|
|
17
17
|
typeId: z.ZodString;
|
|
18
18
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
19
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
22
|
title: z.ZodString;
|
|
21
23
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -16,6 +16,8 @@ export declare namespace UpdateWriterDocumentTitleCommand {
|
|
|
16
16
|
title: z.ZodNullable<z.ZodString>;
|
|
17
17
|
typeId: z.ZodString;
|
|
18
18
|
stage: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_STAGE>;
|
|
19
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
outline: z.ZodArray<z.ZodObject<{
|
|
20
22
|
title: z.ZodString;
|
|
21
23
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts
CHANGED
|
@@ -118,6 +118,23 @@ export declare namespace FindActiveUiNotificationsByPageAndUserCommand {
|
|
|
118
118
|
url: z.ZodString;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
120
|
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
+
uuid: z.ZodUUID;
|
|
123
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
124
|
+
priority: z.ZodNumber;
|
|
125
|
+
isRead: z.ZodBoolean;
|
|
126
|
+
readAt: z.ZodNullable<z.ZodDate>;
|
|
127
|
+
status: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_STATUS>;
|
|
128
|
+
conditionOfExecution: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
|
|
129
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
130
|
+
serverTime: z.ZodOptional<z.ZodDate>;
|
|
131
|
+
type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.LOYALTY_LEVEL_UP>;
|
|
132
|
+
dynamicUiContent: z.ZodObject<{
|
|
133
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
134
|
+
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
135
|
+
level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
|
|
136
|
+
bonusPercent: z.ZodNumber;
|
|
137
|
+
}, z.core.$strip>;
|
|
121
138
|
}, z.core.$strip>], "type">>;
|
|
122
139
|
}, z.core.$strip>;
|
|
123
140
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -119,6 +119,23 @@ export declare namespace FindUiNotificationsCommand {
|
|
|
119
119
|
url: z.ZodString;
|
|
120
120
|
}, z.core.$strip>;
|
|
121
121
|
}, z.core.$strip>;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
uuid: z.ZodUUID;
|
|
124
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
125
|
+
priority: z.ZodNumber;
|
|
126
|
+
isRead: z.ZodBoolean;
|
|
127
|
+
readAt: z.ZodNullable<z.ZodDate>;
|
|
128
|
+
status: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_STATUS>;
|
|
129
|
+
conditionOfExecution: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
|
|
130
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
131
|
+
serverTime: z.ZodOptional<z.ZodDate>;
|
|
132
|
+
type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.LOYALTY_LEVEL_UP>;
|
|
133
|
+
dynamicUiContent: z.ZodObject<{
|
|
134
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
135
|
+
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
136
|
+
level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
|
|
137
|
+
bonusPercent: z.ZodNumber;
|
|
138
|
+
}, z.core.$strip>;
|
|
122
139
|
}, z.core.$strip>], "type">>;
|
|
123
140
|
}, z.core.$strip>;
|
|
124
141
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -10,4 +10,5 @@ var UI_NOTIFICATION_TYPE;
|
|
|
10
10
|
UI_NOTIFICATION_TYPE["EMAIL_NOT_VERIFIED"] = "EMAIL_NOT_VERIFIED";
|
|
11
11
|
UI_NOTIFICATION_TYPE["GENERIC"] = "GENERIC";
|
|
12
12
|
UI_NOTIFICATION_TYPE["BLOG_UPDATE"] = "BLOG_UPDATE";
|
|
13
|
+
UI_NOTIFICATION_TYPE["LOYALTY_LEVEL_UP"] = "LOYALTY_LEVEL_UP";
|
|
13
14
|
})(UI_NOTIFICATION_TYPE || (exports.UI_NOTIFICATION_TYPE = UI_NOTIFICATION_TYPE = {}));
|
|
@@ -14,6 +14,9 @@ export declare const PresentationSchema: z.ZodObject<{
|
|
|
14
14
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
15
15
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
16
16
|
slideCount: z.ZodNumber;
|
|
17
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
20
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
18
21
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
19
22
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -40,6 +43,9 @@ export declare const PresentationWithSlidesSchema: z.ZodObject<{
|
|
|
40
43
|
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
41
44
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
42
45
|
slideCount: z.ZodNumber;
|
|
46
|
+
requestedSlideCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
49
|
lastContentUpdateAt: z.ZodNullable<z.ZodDate>;
|
|
44
50
|
lastPptxExportedAt: z.ZodNullable<z.ZodDate>;
|
|
45
51
|
titlePage: z.ZodNullable<z.ZodObject<{
|
|
@@ -20,6 +20,9 @@ exports.PresentationSchema = zod_1.z.object({
|
|
|
20
20
|
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
21
21
|
dislikeReason: zod_1.z.string().nullable(),
|
|
22
22
|
slideCount: zod_1.z.number(),
|
|
23
|
+
requestedSlideCount: zod_1.z.number().int().nullable().optional(),
|
|
24
|
+
errorCode: zod_1.z.string().nullable().optional(),
|
|
25
|
+
error: zod_1.z.string().nullable().optional(),
|
|
23
26
|
lastContentUpdateAt: zod_1.z.date().nullable(),
|
|
24
27
|
lastPptxExportedAt: zod_1.z.date().nullable(),
|
|
25
28
|
titlePage: presentation_title_page_schema_1.PresentationTitlePageSchema.nullable(),
|
|
@@ -7,6 +7,8 @@ export declare const WriterDocumentSchema: z.ZodObject<{
|
|
|
7
7
|
title: z.ZodNullable<z.ZodString>;
|
|
8
8
|
typeId: z.ZodString;
|
|
9
9
|
stage: z.ZodEnum<typeof WRITER_DOCUMENT_STAGE>;
|
|
10
|
+
errorCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
12
|
outline: z.ZodArray<z.ZodObject<{
|
|
11
13
|
title: z.ZodString;
|
|
12
14
|
type: z.ZodEnum<typeof import("../../..").WRITER_DOCUMENT_SECTION_TYPE>;
|
|
@@ -12,6 +12,8 @@ exports.WriterDocumentSchema = zod_1.z.object({
|
|
|
12
12
|
title: zod_1.z.string().nullable(),
|
|
13
13
|
typeId: zod_1.z.string(),
|
|
14
14
|
stage: zod_1.z.enum(constants_1.WRITER_DOCUMENT_STAGE),
|
|
15
|
+
errorCode: zod_1.z.string().nullable().optional(),
|
|
16
|
+
error: zod_1.z.string().nullable().optional(),
|
|
15
17
|
outline: writer_document_outline_schema_1.WriterDocumentOutlineSchema,
|
|
16
18
|
titlePage: writer_document_title_page_schema_1.WriterDocumentTitlePageSchema.nullable(),
|
|
17
19
|
isTitlePageEnabled: zod_1.z.boolean(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { UI_NOTIFICATION_CONDITION_OF_EXECUTION, UI_NOTIFICATION_STATUS, UI_NOTIFICATION_TYPE } from '../constants';
|
|
2
|
+
import { LOYALTY_LEVEL, UI_NOTIFICATION_CONDITION_OF_EXECUTION, UI_NOTIFICATION_STATUS, UI_NOTIFICATION_TYPE } from '../constants';
|
|
3
3
|
export declare const UiNotificationBaseSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodUUID;
|
|
5
5
|
userId: z.ZodNullable<z.ZodString>;
|
|
@@ -57,6 +57,13 @@ export declare const BlogUpdateUiContentSchema: z.ZodObject<{
|
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
export type BlogUpdateUiContent = z.infer<typeof BlogUpdateUiContentSchema>;
|
|
60
|
+
export declare const LoyaltyLevelUpUiContentSchema: z.ZodObject<{
|
|
61
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
62
|
+
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
63
|
+
level: z.ZodEnum<typeof LOYALTY_LEVEL>;
|
|
64
|
+
bonusPercent: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type LoyaltyLevelUpUiContent = z.infer<typeof LoyaltyLevelUpUiContentSchema>;
|
|
60
67
|
export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
68
|
uuid: z.ZodUUID;
|
|
62
69
|
userId: z.ZodNullable<z.ZodString>;
|
|
@@ -170,5 +177,22 @@ export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
170
177
|
url: z.ZodString;
|
|
171
178
|
}, z.core.$strip>;
|
|
172
179
|
}, z.core.$strip>;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
uuid: z.ZodUUID;
|
|
182
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
183
|
+
priority: z.ZodNumber;
|
|
184
|
+
isRead: z.ZodBoolean;
|
|
185
|
+
readAt: z.ZodNullable<z.ZodDate>;
|
|
186
|
+
status: z.ZodEnum<typeof UI_NOTIFICATION_STATUS>;
|
|
187
|
+
conditionOfExecution: z.ZodEnum<typeof UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
|
|
188
|
+
endDate: z.ZodNullable<z.ZodDate>;
|
|
189
|
+
serverTime: z.ZodOptional<z.ZodDate>;
|
|
190
|
+
type: z.ZodLiteral<UI_NOTIFICATION_TYPE.LOYALTY_LEVEL_UP>;
|
|
191
|
+
dynamicUiContent: z.ZodObject<{
|
|
192
|
+
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
193
|
+
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
194
|
+
level: z.ZodEnum<typeof LOYALTY_LEVEL>;
|
|
195
|
+
bonusPercent: z.ZodNumber;
|
|
196
|
+
}, z.core.$strip>;
|
|
173
197
|
}, z.core.$strip>], "type">;
|
|
174
198
|
export type UiNotification = z.infer<typeof UiNotificationSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UiNotificationSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
|
|
3
|
+
exports.UiNotificationSchema = exports.LoyaltyLevelUpUiContentSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const localized_text_schema_1 = require("../helpers/localized-text.schema");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
@@ -52,6 +52,12 @@ exports.BlogUpdateUiContentSchema = zod_1.z.object({
|
|
|
52
52
|
url: zod_1.z.string(),
|
|
53
53
|
}),
|
|
54
54
|
});
|
|
55
|
+
exports.LoyaltyLevelUpUiContentSchema = zod_1.z.object({
|
|
56
|
+
title: exports.LocalizedUiNotificationTextSchema,
|
|
57
|
+
message: exports.LocalizedUiNotificationTextSchema,
|
|
58
|
+
level: zod_1.z.enum(constants_1.LOYALTY_LEVEL),
|
|
59
|
+
bonusPercent: zod_1.z.number(),
|
|
60
|
+
});
|
|
55
61
|
exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
|
|
56
62
|
exports.UiNotificationBaseSchema.extend({
|
|
57
63
|
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.CONNECT_TELEGRAM_BONUS),
|
|
@@ -81,4 +87,8 @@ exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
81
87
|
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.BLOG_UPDATE),
|
|
82
88
|
dynamicUiContent: exports.BlogUpdateUiContentSchema,
|
|
83
89
|
}),
|
|
90
|
+
exports.UiNotificationBaseSchema.extend({
|
|
91
|
+
type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.LOYALTY_LEVEL_UP),
|
|
92
|
+
dynamicUiContent: exports.LoyaltyLevelUpUiContentSchema,
|
|
93
|
+
}),
|
|
84
94
|
]);
|