@purpleschool/gptbot 0.15.93 → 0.16.0-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/consent.d.ts +4 -0
- package/build/api/controllers/http/consent.js +7 -0
- package/build/api/controllers/http/html-page-builder.d.ts +8 -0
- package/build/api/controllers/http/html-page-builder.js +11 -0
- package/build/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/routes.d.ts +18 -0
- package/build/api/routes.js +18 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +98 -0
- package/build/commands/cookie-consent/acknowledge-cookie-consent.command.d.ts +10 -0
- package/build/commands/cookie-consent/acknowledge-cookie-consent.command.js +27 -0
- package/build/commands/cookie-consent/index.d.ts +1 -0
- package/build/commands/cookie-consent/index.js +17 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts +126 -0
- package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.js +24 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +71 -3
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +17 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.d.ts +31 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.js +14 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.d.ts +38 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.js +30 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.d.ts +70 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.js +18 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +63 -3
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +66 -6
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +1 -1
- package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.d.ts +23 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.js +14 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.d.ts +30 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.js +30 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.d.ts +10 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +17 -1
- package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.d.ts +98 -0
- package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.d.ts +14 -0
- package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.js +18 -0
- package/build/commands/tools/html-page-builder/index.d.ts +8 -0
- package/build/commands/tools/html-page-builder/index.js +8 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +63 -3
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.d.ts +124 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.js +32 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +63 -3
- package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.d.ts +4 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.js +8 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.d.ts +5 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.js +9 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.d.ts +12 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.js +16 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.d.ts +18 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.js +22 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.d.ts +8 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.js +12 -0
- package/build/constants/tool-html-page-builder/enums/index.d.ts +5 -1
- package/build/constants/tool-html-page-builder/enums/index.js +5 -1
- package/build/models/canvas-node-definition.schema.d.ts +294 -0
- package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.d.ts +39 -0
- package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.js +31 -0
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.d.ts +109 -0
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.js +18 -1
- package/build/models/tools/html-page-builder/html-page-builder-font.schema.d.ts +24 -0
- package/build/models/tools/html-page-builder/html-page-builder-font.schema.js +18 -0
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +76 -3
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +42 -3
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.d.ts +30 -0
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.js +18 -0
- package/build/models/tools/html-page-builder/html-page-builder-preset.schema.d.ts +58 -0
- package/build/models/tools/html-page-builder/html-page-builder-preset.schema.js +22 -0
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +65 -5
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +12 -1
- package/build/models/tools/html-page-builder/html-page-builder-style.schema.d.ts +16 -0
- package/build/models/tools/html-page-builder/html-page-builder-style.schema.js +18 -0
- package/build/models/tools/html-page-builder/index.d.ts +5 -0
- package/build/models/tools/html-page-builder/index.js +5 -0
- package/package.json +1 -1
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.d.ts +0 -4
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.js +0 -8
package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.d.ts
CHANGED
|
@@ -29,6 +29,104 @@ export declare namespace GetHtmlPageBuilderToolConfigCommand {
|
|
|
29
29
|
canUse: z.ZodBoolean;
|
|
30
30
|
}, z.core.$strip>>;
|
|
31
31
|
maxAttachmentsCount: z.ZodNumber;
|
|
32
|
+
styleTags: z.ZodArray<z.ZodObject<{
|
|
33
|
+
tag: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>;
|
|
34
|
+
label: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
fontTags: z.ZodArray<z.ZodObject<{
|
|
37
|
+
tag: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>;
|
|
38
|
+
label: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
41
|
+
uuid: z.ZodUUID;
|
|
42
|
+
code: z.ZodString;
|
|
43
|
+
title: z.ZodString;
|
|
44
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
previewUrl: z.ZodString;
|
|
46
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>>;
|
|
48
|
+
popularity: z.ZodNumber;
|
|
49
|
+
order: z.ZodNumber;
|
|
50
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
51
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
fonts: z.ZodArray<z.ZodObject<{
|
|
54
|
+
uuid: z.ZodUUID;
|
|
55
|
+
code: z.ZodString;
|
|
56
|
+
title: z.ZodString;
|
|
57
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
icons: z.ZodObject<{
|
|
59
|
+
light: z.ZodObject<{
|
|
60
|
+
svg: z.ZodString;
|
|
61
|
+
png: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
dark: z.ZodObject<{
|
|
64
|
+
svg: z.ZodString;
|
|
65
|
+
png: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>>;
|
|
69
|
+
popularity: z.ZodNumber;
|
|
70
|
+
order: z.ZodNumber;
|
|
71
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
72
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
75
|
+
uuid: z.ZodUUID;
|
|
76
|
+
code: z.ZodString;
|
|
77
|
+
title: z.ZodString;
|
|
78
|
+
prompt: z.ZodString;
|
|
79
|
+
icons: z.ZodObject<{
|
|
80
|
+
light: z.ZodObject<{
|
|
81
|
+
svg: z.ZodString;
|
|
82
|
+
png: z.ZodString;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
dark: z.ZodObject<{
|
|
85
|
+
svg: z.ZodString;
|
|
86
|
+
png: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
styleId: z.ZodUUID;
|
|
90
|
+
fontId: z.ZodUUID;
|
|
91
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
uuid: z.ZodUUID;
|
|
93
|
+
code: z.ZodString;
|
|
94
|
+
title: z.ZodString;
|
|
95
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
previewUrl: z.ZodString;
|
|
97
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>>;
|
|
99
|
+
popularity: z.ZodNumber;
|
|
100
|
+
order: z.ZodNumber;
|
|
101
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
102
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodUUID;
|
|
106
|
+
code: z.ZodString;
|
|
107
|
+
title: z.ZodString;
|
|
108
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
icons: z.ZodObject<{
|
|
110
|
+
light: z.ZodObject<{
|
|
111
|
+
svg: z.ZodString;
|
|
112
|
+
png: z.ZodString;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
dark: z.ZodObject<{
|
|
115
|
+
svg: z.ZodString;
|
|
116
|
+
png: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>>;
|
|
120
|
+
popularity: z.ZodNumber;
|
|
121
|
+
order: z.ZodNumber;
|
|
122
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
123
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
pagesCount: z.ZodNumber;
|
|
126
|
+
order: z.ZodNumber;
|
|
127
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
128
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
32
130
|
}, z.core.$strip>;
|
|
33
131
|
}, z.core.$strip>;
|
|
34
132
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSharedHtmlPageBuilderSiteCommand {
|
|
3
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
+
jobId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
|
8
|
+
data: z.ZodObject<{
|
|
9
|
+
contentUrl: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSharedHtmlPageBuilderSiteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var GetSharedHtmlPageBuilderSiteCommand;
|
|
6
|
+
(function (GetSharedHtmlPageBuilderSiteCommand) {
|
|
7
|
+
GetSharedHtmlPageBuilderSiteCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
+
jobId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
// Everything an anonymous visitor's page is allowed to know: the address to frame and the
|
|
11
|
+
// name to show. Nothing about the owner of the site, what they asked for, or what it cost.
|
|
12
|
+
GetSharedHtmlPageBuilderSiteCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: zod_1.z.object({
|
|
14
|
+
contentUrl: zod_1.z.string(),
|
|
15
|
+
title: zod_1.z.string(),
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
})(GetSharedHtmlPageBuilderSiteCommand || (exports.GetSharedHtmlPageBuilderSiteCommand = GetSharedHtmlPageBuilderSiteCommand = {}));
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export * from './execute-html-page-builder.command';
|
|
2
2
|
export * from './get-html-page-builder-tool-config.command';
|
|
3
3
|
export * from './get-html-page-builder-price.command';
|
|
4
|
+
export * from './get-shared-html-page-builder-site.command';
|
|
4
5
|
export * from './find-html-page-builder-session-by-uuid.command';
|
|
5
6
|
export * from './find-html-page-builder-sessions.command';
|
|
6
7
|
export * from './update-html-page-builder-session-title.command';
|
|
7
8
|
export * from './delete-html-page-builder-session-by-uuid.command';
|
|
8
9
|
export * from './delete-all-html-page-builder-sessions.command';
|
|
9
10
|
export * from './update-html-page-builder-session-favorite.command';
|
|
11
|
+
export * from './update-html-page-builder-session-reaction.command';
|
|
12
|
+
export * from './find-html-page-builder-styles.command';
|
|
13
|
+
export * from './find-html-page-builder-style-by-uuid.command';
|
|
14
|
+
export * from './find-html-page-builder-fonts.command';
|
|
15
|
+
export * from './find-html-page-builder-font-by-uuid.command';
|
|
16
|
+
export * from './find-html-page-builder-presets.command';
|
|
17
|
+
export * from './answer-html-page-builder-questions.command';
|
|
@@ -17,9 +17,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./execute-html-page-builder.command"), exports);
|
|
18
18
|
__exportStar(require("./get-html-page-builder-tool-config.command"), exports);
|
|
19
19
|
__exportStar(require("./get-html-page-builder-price.command"), exports);
|
|
20
|
+
__exportStar(require("./get-shared-html-page-builder-site.command"), exports);
|
|
20
21
|
__exportStar(require("./find-html-page-builder-session-by-uuid.command"), exports);
|
|
21
22
|
__exportStar(require("./find-html-page-builder-sessions.command"), exports);
|
|
22
23
|
__exportStar(require("./update-html-page-builder-session-title.command"), exports);
|
|
23
24
|
__exportStar(require("./delete-html-page-builder-session-by-uuid.command"), exports);
|
|
24
25
|
__exportStar(require("./delete-all-html-page-builder-sessions.command"), exports);
|
|
25
26
|
__exportStar(require("./update-html-page-builder-session-favorite.command"), exports);
|
|
27
|
+
__exportStar(require("./update-html-page-builder-session-reaction.command"), exports);
|
|
28
|
+
__exportStar(require("./find-html-page-builder-styles.command"), exports);
|
|
29
|
+
__exportStar(require("./find-html-page-builder-style-by-uuid.command"), exports);
|
|
30
|
+
__exportStar(require("./find-html-page-builder-fonts.command"), exports);
|
|
31
|
+
__exportStar(require("./find-html-page-builder-font-by-uuid.command"), exports);
|
|
32
|
+
__exportStar(require("./find-html-page-builder-presets.command"), exports);
|
|
33
|
+
__exportStar(require("./answer-html-page-builder-questions.command"), exports);
|
|
@@ -12,9 +12,28 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
12
12
|
data: z.ZodObject<{
|
|
13
13
|
uuid: z.ZodUUID;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
-
status: z.ZodEnum<typeof import("../../..").
|
|
15
|
+
status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
|
|
16
16
|
currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodUUID;
|
|
20
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
21
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
22
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
stylesheet: z.ZodString;
|
|
24
|
+
script: z.ZodString;
|
|
25
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
error: z.ZodNullable<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
17
34
|
lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
35
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
36
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
18
37
|
jobs: z.ZodArray<z.ZodObject<{
|
|
19
38
|
uuid: z.ZodUUID;
|
|
20
39
|
sessionId: z.ZodUUID;
|
|
@@ -22,11 +41,40 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
22
41
|
userPrompt: z.ZodString;
|
|
23
42
|
title: z.ZodString;
|
|
24
43
|
generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
45
|
+
slug: z.ZodString;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
html: z.ZodString;
|
|
48
|
+
order: z.ZodNumber;
|
|
49
|
+
isHome: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>>>;
|
|
51
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
52
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
stylesheet: z.ZodString;
|
|
54
|
+
script: z.ZodString;
|
|
55
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
56
|
+
slug: z.ZodString;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
25
60
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
26
61
|
error: z.ZodNullable<z.ZodString>;
|
|
27
62
|
price: z.ZodNumber;
|
|
28
|
-
|
|
29
|
-
|
|
63
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
question: z.ZodString;
|
|
66
|
+
type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
|
|
67
|
+
options: z.ZodArray<z.ZodString>;
|
|
68
|
+
recommendedAnswer: z.ZodString;
|
|
69
|
+
allowCustomAnswer: z.ZodBoolean;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
questionId: z.ZodString;
|
|
73
|
+
answers: z.ZodArray<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
accentColor: z.ZodDefault<z.ZodString>;
|
|
30
78
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
79
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
80
|
params: z.ZodObject<{
|
|
@@ -41,12 +89,24 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
41
89
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
90
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
91
|
}, z.core.$strip>>;
|
|
92
|
+
pagesCount: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
94
|
+
question: z.ZodString;
|
|
95
|
+
answer: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
44
97
|
}, z.core.$strip>;
|
|
45
98
|
isDeleted: z.ZodBoolean;
|
|
46
99
|
createdAt: z.ZodDate;
|
|
47
100
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
48
101
|
updatedAt: z.ZodDate;
|
|
49
102
|
}, z.core.$strip>>;
|
|
103
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
104
|
+
slug: z.ZodString;
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
html: z.ZodString;
|
|
107
|
+
order: z.ZodNumber;
|
|
108
|
+
isHome: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>>;
|
|
50
110
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
111
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
112
|
isFavorite: z.ZodBoolean;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_REACTION } from '../../../constants';
|
|
3
|
+
/**
|
|
4
|
+
* Rates the site, not one generation: the reaction lives on the session, next to `isFavorite`.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
9
|
+
dislikeReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
16
|
+
const ResponseSchema: z.ZodObject<{
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
|
|
21
|
+
currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
26
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
stylesheet: z.ZodString;
|
|
29
|
+
script: z.ZodString;
|
|
30
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
31
|
+
slug: z.ZodString;
|
|
32
|
+
url: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
error: z.ZodNullable<z.ZodString>;
|
|
36
|
+
createdAt: z.ZodDate;
|
|
37
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
40
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
41
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
42
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
43
|
+
uuid: z.ZodUUID;
|
|
44
|
+
sessionId: z.ZodUUID;
|
|
45
|
+
modelId: z.ZodUUID;
|
|
46
|
+
userPrompt: z.ZodString;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
|
+
slug: z.ZodString;
|
|
51
|
+
title: z.ZodString;
|
|
52
|
+
html: z.ZodString;
|
|
53
|
+
order: z.ZodNumber;
|
|
54
|
+
isHome: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>>>>;
|
|
56
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
57
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
stylesheet: z.ZodString;
|
|
59
|
+
script: z.ZodString;
|
|
60
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
61
|
+
slug: z.ZodString;
|
|
62
|
+
url: z.ZodString;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
66
|
+
error: z.ZodNullable<z.ZodString>;
|
|
67
|
+
price: z.ZodNumber;
|
|
68
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
question: z.ZodString;
|
|
71
|
+
type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
|
|
72
|
+
options: z.ZodArray<z.ZodString>;
|
|
73
|
+
recommendedAnswer: z.ZodString;
|
|
74
|
+
allowCustomAnswer: z.ZodBoolean;
|
|
75
|
+
}, z.core.$strip>>>;
|
|
76
|
+
answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
77
|
+
questionId: z.ZodString;
|
|
78
|
+
answers: z.ZodArray<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
accentColor: z.ZodDefault<z.ZodString>;
|
|
83
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
params: z.ZodObject<{
|
|
86
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
87
|
+
uuid: z.ZodString;
|
|
88
|
+
url: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
mimeType: z.ZodString;
|
|
91
|
+
type: z.ZodString;
|
|
92
|
+
size: z.ZodNumber;
|
|
93
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
94
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
pagesCount: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
99
|
+
question: z.ZodString;
|
|
100
|
+
answer: z.ZodString;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
isDeleted: z.ZodBoolean;
|
|
104
|
+
createdAt: z.ZodDate;
|
|
105
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
106
|
+
updatedAt: z.ZodDate;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
109
|
+
slug: z.ZodString;
|
|
110
|
+
title: z.ZodString;
|
|
111
|
+
html: z.ZodString;
|
|
112
|
+
order: z.ZodNumber;
|
|
113
|
+
isHome: z.ZodBoolean;
|
|
114
|
+
}, z.core.$strip>>;
|
|
115
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
isFavorite: z.ZodBoolean;
|
|
118
|
+
isDeleted: z.ZodBoolean;
|
|
119
|
+
createdAt: z.ZodDate;
|
|
120
|
+
updatedAt: z.ZodDate;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
124
|
+
}
|
package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateHtmlPageBuilderSessionReactionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
/**
|
|
8
|
+
* Rates the site, not one generation: the reaction lives on the session, next to `isFavorite`.
|
|
9
|
+
*/
|
|
10
|
+
var UpdateHtmlPageBuilderSessionReactionCommand;
|
|
11
|
+
(function (UpdateHtmlPageBuilderSessionReactionCommand) {
|
|
12
|
+
UpdateHtmlPageBuilderSessionReactionCommand.RequestSchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
|
|
15
|
+
// Kept only for a dislike; any other reaction clears it
|
|
16
|
+
dislikeReason: zod_1.z.string().max(1000).nullable().optional(),
|
|
17
|
+
})
|
|
18
|
+
.refine((data) => {
|
|
19
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
}, {
|
|
24
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
25
|
+
});
|
|
26
|
+
UpdateHtmlPageBuilderSessionReactionCommand.RequestParamsSchema = zod_1.z.object({
|
|
27
|
+
uuid: zod_1.z.uuid(),
|
|
28
|
+
});
|
|
29
|
+
UpdateHtmlPageBuilderSessionReactionCommand.ResponseSchema = zod_1.z.object({
|
|
30
|
+
data: models_1.HtmlPageBuilderSessionSchema,
|
|
31
|
+
});
|
|
32
|
+
})(UpdateHtmlPageBuilderSessionReactionCommand || (exports.UpdateHtmlPageBuilderSessionReactionCommand = UpdateHtmlPageBuilderSessionReactionCommand = {}));
|
package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts
CHANGED
|
@@ -12,9 +12,28 @@ export declare namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
|
12
12
|
data: z.ZodObject<{
|
|
13
13
|
uuid: z.ZodUUID;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
-
status: z.ZodEnum<typeof import("../../..").
|
|
15
|
+
status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
|
|
16
16
|
currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodUUID;
|
|
20
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
21
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
22
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
stylesheet: z.ZodString;
|
|
24
|
+
script: z.ZodString;
|
|
25
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
error: z.ZodNullable<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodDate;
|
|
32
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
17
34
|
lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
35
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
36
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
18
37
|
jobs: z.ZodArray<z.ZodObject<{
|
|
19
38
|
uuid: z.ZodUUID;
|
|
20
39
|
sessionId: z.ZodUUID;
|
|
@@ -22,11 +41,40 @@ export declare namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
|
22
41
|
userPrompt: z.ZodString;
|
|
23
42
|
title: z.ZodString;
|
|
24
43
|
generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
45
|
+
slug: z.ZodString;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
html: z.ZodString;
|
|
48
|
+
order: z.ZodNumber;
|
|
49
|
+
isHome: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>>>;
|
|
51
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
52
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
stylesheet: z.ZodString;
|
|
54
|
+
script: z.ZodString;
|
|
55
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
56
|
+
slug: z.ZodString;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
25
60
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
26
61
|
error: z.ZodNullable<z.ZodString>;
|
|
27
62
|
price: z.ZodNumber;
|
|
28
|
-
|
|
29
|
-
|
|
63
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
question: z.ZodString;
|
|
66
|
+
type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
|
|
67
|
+
options: z.ZodArray<z.ZodString>;
|
|
68
|
+
recommendedAnswer: z.ZodString;
|
|
69
|
+
allowCustomAnswer: z.ZodBoolean;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
questionId: z.ZodString;
|
|
73
|
+
answers: z.ZodArray<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
accentColor: z.ZodDefault<z.ZodString>;
|
|
30
78
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
79
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
80
|
params: z.ZodObject<{
|
|
@@ -41,12 +89,24 @@ export declare namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
|
41
89
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
90
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
43
91
|
}, z.core.$strip>>;
|
|
92
|
+
pagesCount: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
94
|
+
question: z.ZodString;
|
|
95
|
+
answer: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
44
97
|
}, z.core.$strip>;
|
|
45
98
|
isDeleted: z.ZodBoolean;
|
|
46
99
|
createdAt: z.ZodDate;
|
|
47
100
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
48
101
|
updatedAt: z.ZodDate;
|
|
49
102
|
}, z.core.$strip>>;
|
|
103
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
104
|
+
slug: z.ZodString;
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
html: z.ZodString;
|
|
107
|
+
order: z.ZodNumber;
|
|
108
|
+
isHome: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>>;
|
|
50
110
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
111
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
112
|
isFavorite: z.ZodBoolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTML_PAGE_BUILDER_CATALOG_SORT = void 0;
|
|
4
|
+
var HTML_PAGE_BUILDER_CATALOG_SORT;
|
|
5
|
+
(function (HTML_PAGE_BUILDER_CATALOG_SORT) {
|
|
6
|
+
HTML_PAGE_BUILDER_CATALOG_SORT["POPULARITY"] = "POPULARITY";
|
|
7
|
+
HTML_PAGE_BUILDER_CATALOG_SORT["NEW"] = "NEW";
|
|
8
|
+
})(HTML_PAGE_BUILDER_CATALOG_SORT || (exports.HTML_PAGE_BUILDER_CATALOG_SORT = HTML_PAGE_BUILDER_CATALOG_SORT = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTML_PAGE_BUILDER_FONT_TAG = void 0;
|
|
4
|
+
var HTML_PAGE_BUILDER_FONT_TAG;
|
|
5
|
+
(function (HTML_PAGE_BUILDER_FONT_TAG) {
|
|
6
|
+
HTML_PAGE_BUILDER_FONT_TAG["BASIC"] = "BASIC";
|
|
7
|
+
HTML_PAGE_BUILDER_FONT_TAG["ACCENT"] = "ACCENT";
|
|
8
|
+
HTML_PAGE_BUILDER_FONT_TAG["ELEGANT"] = "ELEGANT";
|
|
9
|
+
})(HTML_PAGE_BUILDER_FONT_TAG || (exports.HTML_PAGE_BUILDER_FONT_TAG = HTML_PAGE_BUILDER_FONT_TAG = {}));
|
package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shape of the answer a clarifying question expects; the model picks it per question, so how the
|
|
3
|
+
* answer is collected is part of what is being asked.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum HTML_PAGE_BUILDER_QUESTION_TYPE {
|
|
6
|
+
/** Exactly one of `options` */
|
|
7
|
+
SINGLE = "single",
|
|
8
|
+
/** One or more of `options` */
|
|
9
|
+
MULTI = "multi",
|
|
10
|
+
/** Free text; `options` may still be offered as examples */
|
|
11
|
+
TEXT = "text"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTML_PAGE_BUILDER_QUESTION_TYPE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Shape of the answer a clarifying question expects; the model picks it per question, so how the
|
|
6
|
+
* answer is collected is part of what is being asked.
|
|
7
|
+
*/
|
|
8
|
+
var HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
9
|
+
(function (HTML_PAGE_BUILDER_QUESTION_TYPE) {
|
|
10
|
+
/** Exactly one of `options` */
|
|
11
|
+
HTML_PAGE_BUILDER_QUESTION_TYPE["SINGLE"] = "single";
|
|
12
|
+
/** One or more of `options` */
|
|
13
|
+
HTML_PAGE_BUILDER_QUESTION_TYPE["MULTI"] = "multi";
|
|
14
|
+
/** Free text; `options` may still be offered as examples */
|
|
15
|
+
HTML_PAGE_BUILDER_QUESTION_TYPE["TEXT"] = "text";
|
|
16
|
+
})(HTML_PAGE_BUILDER_QUESTION_TYPE || (exports.HTML_PAGE_BUILDER_QUESTION_TYPE = HTML_PAGE_BUILDER_QUESTION_TYPE = {}));
|
package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress of a html-page-builder session, and the only signal the client polls for: a run now
|
|
3
|
+
* passes through two provider phases with a human in between.
|
|
4
|
+
*
|
|
5
|
+
* Deliberately separate from `TOOL_JOB_STATUS`: the values overlap in spelling but not in meaning,
|
|
6
|
+
* and a session can sit in `awaiting_answers` for as long as the user needs.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum HTML_PAGE_BUILDER_SESSION_STATUS {
|
|
9
|
+
PENDING = "pending",
|
|
10
|
+
/** The model is writing the clarifying questions */
|
|
11
|
+
CLARIFYING = "clarifying",
|
|
12
|
+
/** Questions are ready and the session waits for the user; nobody is charged for waiting */
|
|
13
|
+
AWAITING_ANSWERS = "awaiting_answers",
|
|
14
|
+
/** The model is writing the site */
|
|
15
|
+
GENERATING = "generating",
|
|
16
|
+
COMPLETED = "completed",
|
|
17
|
+
FAILED = "failed"
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTML_PAGE_BUILDER_SESSION_STATUS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Progress of a html-page-builder session, and the only signal the client polls for: a run now
|
|
6
|
+
* passes through two provider phases with a human in between.
|
|
7
|
+
*
|
|
8
|
+
* Deliberately separate from `TOOL_JOB_STATUS`: the values overlap in spelling but not in meaning,
|
|
9
|
+
* and a session can sit in `awaiting_answers` for as long as the user needs.
|
|
10
|
+
*/
|
|
11
|
+
var HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
12
|
+
(function (HTML_PAGE_BUILDER_SESSION_STATUS) {
|
|
13
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["PENDING"] = "pending";
|
|
14
|
+
/** The model is writing the clarifying questions */
|
|
15
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["CLARIFYING"] = "clarifying";
|
|
16
|
+
/** Questions are ready and the session waits for the user; nobody is charged for waiting */
|
|
17
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["AWAITING_ANSWERS"] = "awaiting_answers";
|
|
18
|
+
/** The model is writing the site */
|
|
19
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["GENERATING"] = "generating";
|
|
20
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["COMPLETED"] = "completed";
|
|
21
|
+
HTML_PAGE_BUILDER_SESSION_STATUS["FAILED"] = "failed";
|
|
22
|
+
})(HTML_PAGE_BUILDER_SESSION_STATUS || (exports.HTML_PAGE_BUILDER_SESSION_STATUS = HTML_PAGE_BUILDER_SESSION_STATUS = {}));
|