@purpleschool/gptbot-tools 0.4.2 → 0.4.4-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/html-page-builder/commands/get-html-page-builder-refine-price-calculation-data.command.d.ts +44 -0
- package/build/html-page-builder/commands/get-html-page-builder-refine-price-calculation-data.command.js +23 -0
- package/build/html-page-builder/commands/html-page-builder-answer-questions.command.d.ts +4 -0
- package/build/html-page-builder/commands/html-page-builder-download-zip.command.d.ts +20 -0
- package/build/html-page-builder/commands/html-page-builder-download-zip.command.js +14 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +8 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.js +2 -0
- package/build/html-page-builder/commands/html-page-builder-publish.command.d.ts +20 -0
- package/build/html-page-builder/commands/html-page-builder-publish.command.js +14 -0
- package/build/html-page-builder/commands/html-page-builder-refine.command.d.ts +244 -0
- package/build/html-page-builder/commands/html-page-builder-refine.command.js +19 -0
- package/build/html-page-builder/commands/html-page-builder-retry-build.command.d.ts +245 -0
- package/build/html-page-builder/commands/html-page-builder-retry-build.command.js +20 -0
- package/build/html-page-builder/commands/html-page-builder-retry-refine.command.d.ts +243 -0
- package/build/html-page-builder/commands/html-page-builder-retry-refine.command.js +19 -0
- package/build/html-page-builder/commands/html-page-builder-sources.command.d.ts +22 -0
- package/build/html-page-builder/commands/html-page-builder-sources.command.js +14 -0
- package/build/html-page-builder/commands/index.d.ts +7 -0
- package/build/html-page-builder/commands/index.js +7 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts +4 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-reaction.command.d.ts +4 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-title.command.d.ts +4 -0
- package/build/html-page-builder/models/html-page-builder-config.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.js +4 -0
- package/build/html-page-builder/models/html-page-builder-preset.schema.d.ts +1 -0
- package/build/html-page-builder/models/html-page-builder-session.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-style.schema.d.ts +1 -0
- package/build/html-page-builder/models/html-page-builder-style.schema.js +1 -0
- package/build/html-page-builder/queries/find-html-page-builder-presets.query.d.ts +2 -0
- package/build/html-page-builder/queries/find-html-page-builder-session-by-id.query.d.ts +4 -0
- package/build/html-page-builder/queries/find-html-page-builder-sessions.query.d.ts +4 -0
- package/build/html-page-builder/queries/find-html-page-builder-style-by-id.query.d.ts +2 -0
- package/build/html-page-builder/queries/find-html-page-builder-styles.query.d.ts +2 -0
- package/build/html-page-builder/queries/get-html-page-builder-config.query.d.ts +4 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.d.ts +7 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.js +7 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +3 -1
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +2 -0
- package/build/tools/enums/job-status.enum.d.ts +2 -1
- package/build/tools/enums/job-status.enum.js +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +4 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +4 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +4 -0
- package/build/tools/routes/tools.aqmp.routes.d.ts +1 -0
- package/build/tools/routes/tools.aqmp.routes.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Starts BUILD again for a failed generation without creating another clarification job. The
|
|
4
|
+
* service reads the immutable generation inputs and paid reservation from `jobId`.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace HtmlPageBuilderRetryBuildCommand {
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
9
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
10
|
+
jobId: z.ZodUUID;
|
|
11
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
isSuccess: z.ZodBoolean;
|
|
16
|
+
data: z.ZodOptional<z.ZodType<{
|
|
17
|
+
uuid: string;
|
|
18
|
+
title: string;
|
|
19
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
20
|
+
currentHtml?: string | null | undefined;
|
|
21
|
+
currentJobId?: string | null | undefined;
|
|
22
|
+
currentJob?: {
|
|
23
|
+
uuid: string;
|
|
24
|
+
status: import("../..").JOB_STATUS;
|
|
25
|
+
previewUrl?: string | undefined;
|
|
26
|
+
files?: {
|
|
27
|
+
stylesheet: string;
|
|
28
|
+
script: string;
|
|
29
|
+
pages: {
|
|
30
|
+
slug: string;
|
|
31
|
+
url: string;
|
|
32
|
+
}[];
|
|
33
|
+
} | undefined;
|
|
34
|
+
error: string | null;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
completedAt?: Date | null | undefined;
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
lastUsedModelId?: string | null | undefined;
|
|
39
|
+
reaction: import("../..").USER_REACTION | null;
|
|
40
|
+
dislikeReason: string | null;
|
|
41
|
+
userId?: string | null | undefined;
|
|
42
|
+
unregisteredUserId?: string | null | undefined;
|
|
43
|
+
isDeleted: boolean;
|
|
44
|
+
isFavorite: boolean;
|
|
45
|
+
jobs?: {
|
|
46
|
+
uuid: string;
|
|
47
|
+
sessionId: string;
|
|
48
|
+
baseJobId: string | null;
|
|
49
|
+
modelId: string;
|
|
50
|
+
userPrompt: string;
|
|
51
|
+
title: string;
|
|
52
|
+
generatedHtml?: string | null | undefined;
|
|
53
|
+
generatedPages?: {
|
|
54
|
+
slug: string;
|
|
55
|
+
title: string;
|
|
56
|
+
html: string;
|
|
57
|
+
order: number;
|
|
58
|
+
isHome: boolean;
|
|
59
|
+
}[] | null | undefined;
|
|
60
|
+
previewUrl?: string | undefined;
|
|
61
|
+
files?: {
|
|
62
|
+
stylesheet: string;
|
|
63
|
+
script: string;
|
|
64
|
+
pages: {
|
|
65
|
+
slug: string;
|
|
66
|
+
url: string;
|
|
67
|
+
}[];
|
|
68
|
+
} | undefined;
|
|
69
|
+
status: import("../..").JOB_STATUS;
|
|
70
|
+
generationStarted: boolean;
|
|
71
|
+
error: string | null;
|
|
72
|
+
internalError?: string | null | undefined;
|
|
73
|
+
price: number;
|
|
74
|
+
inputTokens?: number | null | undefined;
|
|
75
|
+
outputTokens?: number | null | undefined;
|
|
76
|
+
totalTokens?: number | null | undefined;
|
|
77
|
+
tokenReservationId?: string | null | undefined;
|
|
78
|
+
questions: {
|
|
79
|
+
id: string;
|
|
80
|
+
question: string;
|
|
81
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
82
|
+
options: string[];
|
|
83
|
+
recommendedAnswer: string;
|
|
84
|
+
allowCustomAnswer: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
answers: {
|
|
87
|
+
questionId: string;
|
|
88
|
+
answers: string[];
|
|
89
|
+
}[];
|
|
90
|
+
styleId?: string | null | undefined;
|
|
91
|
+
fontId?: string | null | undefined;
|
|
92
|
+
accentColor: string;
|
|
93
|
+
userId?: string | null | undefined;
|
|
94
|
+
unregisteredUserId?: string | null | undefined;
|
|
95
|
+
params: {
|
|
96
|
+
attachedFiles: {
|
|
97
|
+
uuid: string;
|
|
98
|
+
url: string;
|
|
99
|
+
name: string;
|
|
100
|
+
mimeType: string;
|
|
101
|
+
type: string;
|
|
102
|
+
size: number;
|
|
103
|
+
duration?: number | null | undefined;
|
|
104
|
+
content?: string | null | undefined;
|
|
105
|
+
contentLength?: number | null | undefined;
|
|
106
|
+
}[];
|
|
107
|
+
pagesCount?: number | undefined;
|
|
108
|
+
clarifications: {
|
|
109
|
+
question: string;
|
|
110
|
+
answer: string;
|
|
111
|
+
}[];
|
|
112
|
+
mock?: boolean | undefined;
|
|
113
|
+
};
|
|
114
|
+
isDeleted: boolean;
|
|
115
|
+
createdAt: Date;
|
|
116
|
+
completedAt?: Date | null | undefined;
|
|
117
|
+
updatedAt: Date;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
pages?: {
|
|
120
|
+
slug: string;
|
|
121
|
+
title: string;
|
|
122
|
+
html: string;
|
|
123
|
+
order: number;
|
|
124
|
+
isHome: boolean;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
createdAt: Date;
|
|
127
|
+
updatedAt: Date;
|
|
128
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
129
|
+
uuid: string;
|
|
130
|
+
title: string;
|
|
131
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
132
|
+
currentHtml?: string | null | undefined;
|
|
133
|
+
currentJobId?: string | null | undefined;
|
|
134
|
+
currentJob?: {
|
|
135
|
+
uuid: string;
|
|
136
|
+
status: import("../..").JOB_STATUS;
|
|
137
|
+
previewUrl?: string | undefined;
|
|
138
|
+
files?: {
|
|
139
|
+
stylesheet: string;
|
|
140
|
+
script: string;
|
|
141
|
+
pages: {
|
|
142
|
+
slug: string;
|
|
143
|
+
url: string;
|
|
144
|
+
}[];
|
|
145
|
+
} | undefined;
|
|
146
|
+
error: string | null;
|
|
147
|
+
createdAt: Date;
|
|
148
|
+
completedAt?: Date | null | undefined;
|
|
149
|
+
} | null | undefined;
|
|
150
|
+
lastUsedModelId?: string | null | undefined;
|
|
151
|
+
reaction: import("../..").USER_REACTION | null;
|
|
152
|
+
dislikeReason: string | null;
|
|
153
|
+
userId?: string | null | undefined;
|
|
154
|
+
unregisteredUserId?: string | null | undefined;
|
|
155
|
+
isDeleted: boolean;
|
|
156
|
+
isFavorite: boolean;
|
|
157
|
+
jobs?: {
|
|
158
|
+
uuid: string;
|
|
159
|
+
sessionId: string;
|
|
160
|
+
baseJobId: string | null;
|
|
161
|
+
modelId: string;
|
|
162
|
+
userPrompt: string;
|
|
163
|
+
title: string;
|
|
164
|
+
generatedHtml?: string | null | undefined;
|
|
165
|
+
generatedPages?: {
|
|
166
|
+
slug: string;
|
|
167
|
+
title: string;
|
|
168
|
+
html: string;
|
|
169
|
+
order: number;
|
|
170
|
+
isHome: boolean;
|
|
171
|
+
}[] | null | undefined;
|
|
172
|
+
previewUrl?: string | undefined;
|
|
173
|
+
files?: {
|
|
174
|
+
stylesheet: string;
|
|
175
|
+
script: string;
|
|
176
|
+
pages: {
|
|
177
|
+
slug: string;
|
|
178
|
+
url: string;
|
|
179
|
+
}[];
|
|
180
|
+
} | undefined;
|
|
181
|
+
status: import("../..").JOB_STATUS;
|
|
182
|
+
generationStarted: boolean;
|
|
183
|
+
error: string | null;
|
|
184
|
+
internalError?: string | null | undefined;
|
|
185
|
+
price: number;
|
|
186
|
+
inputTokens?: number | null | undefined;
|
|
187
|
+
outputTokens?: number | null | undefined;
|
|
188
|
+
totalTokens?: number | null | undefined;
|
|
189
|
+
tokenReservationId?: string | null | undefined;
|
|
190
|
+
questions: {
|
|
191
|
+
id: string;
|
|
192
|
+
question: string;
|
|
193
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
194
|
+
options: string[];
|
|
195
|
+
recommendedAnswer: string;
|
|
196
|
+
allowCustomAnswer: boolean;
|
|
197
|
+
}[];
|
|
198
|
+
answers: {
|
|
199
|
+
questionId: string;
|
|
200
|
+
answers: string[];
|
|
201
|
+
}[];
|
|
202
|
+
styleId?: string | null | undefined;
|
|
203
|
+
fontId?: string | null | undefined;
|
|
204
|
+
accentColor: string;
|
|
205
|
+
userId?: string | null | undefined;
|
|
206
|
+
unregisteredUserId?: string | null | undefined;
|
|
207
|
+
params: {
|
|
208
|
+
attachedFiles: {
|
|
209
|
+
uuid: string;
|
|
210
|
+
url: string;
|
|
211
|
+
name: string;
|
|
212
|
+
mimeType: string;
|
|
213
|
+
type: string;
|
|
214
|
+
size: number;
|
|
215
|
+
duration?: number | null | undefined;
|
|
216
|
+
content?: string | null | undefined;
|
|
217
|
+
contentLength?: number | null | undefined;
|
|
218
|
+
}[];
|
|
219
|
+
pagesCount?: number | undefined;
|
|
220
|
+
clarifications: {
|
|
221
|
+
question: string;
|
|
222
|
+
answer: string;
|
|
223
|
+
}[];
|
|
224
|
+
mock?: boolean | undefined;
|
|
225
|
+
};
|
|
226
|
+
isDeleted: boolean;
|
|
227
|
+
createdAt: Date;
|
|
228
|
+
completedAt?: Date | null | undefined;
|
|
229
|
+
updatedAt: Date;
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
pages?: {
|
|
232
|
+
slug: string;
|
|
233
|
+
title: string;
|
|
234
|
+
html: string;
|
|
235
|
+
order: number;
|
|
236
|
+
isHome: boolean;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
createdAt: Date;
|
|
239
|
+
updatedAt: Date;
|
|
240
|
+
}, unknown>>>;
|
|
241
|
+
code: z.ZodOptional<z.ZodString>;
|
|
242
|
+
message: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
245
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderRetryBuildCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
/**
|
|
8
|
+
* Starts BUILD again for a failed generation without creating another clarification job. The
|
|
9
|
+
* service reads the immutable generation inputs and paid reservation from `jobId`.
|
|
10
|
+
*/
|
|
11
|
+
var HtmlPageBuilderRetryBuildCommand;
|
|
12
|
+
(function (HtmlPageBuilderRetryBuildCommand) {
|
|
13
|
+
HtmlPageBuilderRetryBuildCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
15
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
16
|
+
jobId: zod_1.z.uuid(),
|
|
17
|
+
mock: zod_1.z.boolean().optional(),
|
|
18
|
+
});
|
|
19
|
+
HtmlPageBuilderRetryBuildCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.HtmlPageBuilderSessionSchema);
|
|
20
|
+
})(HtmlPageBuilderRetryBuildCommand || (exports.HtmlPageBuilderRetryBuildCommand = HtmlPageBuilderRetryBuildCommand = {}));
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderRetryRefineCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
jobId: z.ZodUUID;
|
|
7
|
+
tokenReservationId: z.ZodOptional<z.ZodUUID>;
|
|
8
|
+
precalculatedPrice: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
const ResponseSchema: z.ZodObject<{
|
|
13
|
+
isSuccess: z.ZodBoolean;
|
|
14
|
+
data: z.ZodOptional<z.ZodType<{
|
|
15
|
+
uuid: string;
|
|
16
|
+
title: string;
|
|
17
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
18
|
+
currentHtml?: string | null | undefined;
|
|
19
|
+
currentJobId?: string | null | undefined;
|
|
20
|
+
currentJob?: {
|
|
21
|
+
uuid: string;
|
|
22
|
+
status: import("../..").JOB_STATUS;
|
|
23
|
+
previewUrl?: string | undefined;
|
|
24
|
+
files?: {
|
|
25
|
+
stylesheet: string;
|
|
26
|
+
script: string;
|
|
27
|
+
pages: {
|
|
28
|
+
slug: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}[];
|
|
31
|
+
} | undefined;
|
|
32
|
+
error: string | null;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
completedAt?: Date | null | undefined;
|
|
35
|
+
} | null | undefined;
|
|
36
|
+
lastUsedModelId?: string | null | undefined;
|
|
37
|
+
reaction: import("../..").USER_REACTION | null;
|
|
38
|
+
dislikeReason: string | null;
|
|
39
|
+
userId?: string | null | undefined;
|
|
40
|
+
unregisteredUserId?: string | null | undefined;
|
|
41
|
+
isDeleted: boolean;
|
|
42
|
+
isFavorite: boolean;
|
|
43
|
+
jobs?: {
|
|
44
|
+
uuid: string;
|
|
45
|
+
sessionId: string;
|
|
46
|
+
baseJobId: string | null;
|
|
47
|
+
modelId: string;
|
|
48
|
+
userPrompt: string;
|
|
49
|
+
title: string;
|
|
50
|
+
generatedHtml?: string | null | undefined;
|
|
51
|
+
generatedPages?: {
|
|
52
|
+
slug: string;
|
|
53
|
+
title: string;
|
|
54
|
+
html: string;
|
|
55
|
+
order: number;
|
|
56
|
+
isHome: boolean;
|
|
57
|
+
}[] | null | undefined;
|
|
58
|
+
previewUrl?: string | undefined;
|
|
59
|
+
files?: {
|
|
60
|
+
stylesheet: string;
|
|
61
|
+
script: string;
|
|
62
|
+
pages: {
|
|
63
|
+
slug: string;
|
|
64
|
+
url: string;
|
|
65
|
+
}[];
|
|
66
|
+
} | undefined;
|
|
67
|
+
status: import("../..").JOB_STATUS;
|
|
68
|
+
generationStarted: boolean;
|
|
69
|
+
error: string | null;
|
|
70
|
+
internalError?: string | null | undefined;
|
|
71
|
+
price: number;
|
|
72
|
+
inputTokens?: number | null | undefined;
|
|
73
|
+
outputTokens?: number | null | undefined;
|
|
74
|
+
totalTokens?: number | null | undefined;
|
|
75
|
+
tokenReservationId?: string | null | undefined;
|
|
76
|
+
questions: {
|
|
77
|
+
id: string;
|
|
78
|
+
question: string;
|
|
79
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
80
|
+
options: string[];
|
|
81
|
+
recommendedAnswer: string;
|
|
82
|
+
allowCustomAnswer: boolean;
|
|
83
|
+
}[];
|
|
84
|
+
answers: {
|
|
85
|
+
questionId: string;
|
|
86
|
+
answers: string[];
|
|
87
|
+
}[];
|
|
88
|
+
styleId?: string | null | undefined;
|
|
89
|
+
fontId?: string | null | undefined;
|
|
90
|
+
accentColor: string;
|
|
91
|
+
userId?: string | null | undefined;
|
|
92
|
+
unregisteredUserId?: string | null | undefined;
|
|
93
|
+
params: {
|
|
94
|
+
attachedFiles: {
|
|
95
|
+
uuid: string;
|
|
96
|
+
url: string;
|
|
97
|
+
name: string;
|
|
98
|
+
mimeType: string;
|
|
99
|
+
type: string;
|
|
100
|
+
size: number;
|
|
101
|
+
duration?: number | null | undefined;
|
|
102
|
+
content?: string | null | undefined;
|
|
103
|
+
contentLength?: number | null | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
pagesCount?: number | undefined;
|
|
106
|
+
clarifications: {
|
|
107
|
+
question: string;
|
|
108
|
+
answer: string;
|
|
109
|
+
}[];
|
|
110
|
+
mock?: boolean | undefined;
|
|
111
|
+
};
|
|
112
|
+
isDeleted: boolean;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
completedAt?: Date | null | undefined;
|
|
115
|
+
updatedAt: Date;
|
|
116
|
+
}[] | undefined;
|
|
117
|
+
pages?: {
|
|
118
|
+
slug: string;
|
|
119
|
+
title: string;
|
|
120
|
+
html: string;
|
|
121
|
+
order: number;
|
|
122
|
+
isHome: boolean;
|
|
123
|
+
}[] | undefined;
|
|
124
|
+
createdAt: Date;
|
|
125
|
+
updatedAt: Date;
|
|
126
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
127
|
+
uuid: string;
|
|
128
|
+
title: string;
|
|
129
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
130
|
+
currentHtml?: string | null | undefined;
|
|
131
|
+
currentJobId?: string | null | undefined;
|
|
132
|
+
currentJob?: {
|
|
133
|
+
uuid: string;
|
|
134
|
+
status: import("../..").JOB_STATUS;
|
|
135
|
+
previewUrl?: string | undefined;
|
|
136
|
+
files?: {
|
|
137
|
+
stylesheet: string;
|
|
138
|
+
script: string;
|
|
139
|
+
pages: {
|
|
140
|
+
slug: string;
|
|
141
|
+
url: string;
|
|
142
|
+
}[];
|
|
143
|
+
} | undefined;
|
|
144
|
+
error: string | null;
|
|
145
|
+
createdAt: Date;
|
|
146
|
+
completedAt?: Date | null | undefined;
|
|
147
|
+
} | null | undefined;
|
|
148
|
+
lastUsedModelId?: string | null | undefined;
|
|
149
|
+
reaction: import("../..").USER_REACTION | null;
|
|
150
|
+
dislikeReason: string | null;
|
|
151
|
+
userId?: string | null | undefined;
|
|
152
|
+
unregisteredUserId?: string | null | undefined;
|
|
153
|
+
isDeleted: boolean;
|
|
154
|
+
isFavorite: boolean;
|
|
155
|
+
jobs?: {
|
|
156
|
+
uuid: string;
|
|
157
|
+
sessionId: string;
|
|
158
|
+
baseJobId: string | null;
|
|
159
|
+
modelId: string;
|
|
160
|
+
userPrompt: string;
|
|
161
|
+
title: string;
|
|
162
|
+
generatedHtml?: string | null | undefined;
|
|
163
|
+
generatedPages?: {
|
|
164
|
+
slug: string;
|
|
165
|
+
title: string;
|
|
166
|
+
html: string;
|
|
167
|
+
order: number;
|
|
168
|
+
isHome: boolean;
|
|
169
|
+
}[] | null | undefined;
|
|
170
|
+
previewUrl?: string | undefined;
|
|
171
|
+
files?: {
|
|
172
|
+
stylesheet: string;
|
|
173
|
+
script: string;
|
|
174
|
+
pages: {
|
|
175
|
+
slug: string;
|
|
176
|
+
url: string;
|
|
177
|
+
}[];
|
|
178
|
+
} | undefined;
|
|
179
|
+
status: import("../..").JOB_STATUS;
|
|
180
|
+
generationStarted: boolean;
|
|
181
|
+
error: string | null;
|
|
182
|
+
internalError?: string | null | undefined;
|
|
183
|
+
price: number;
|
|
184
|
+
inputTokens?: number | null | undefined;
|
|
185
|
+
outputTokens?: number | null | undefined;
|
|
186
|
+
totalTokens?: number | null | undefined;
|
|
187
|
+
tokenReservationId?: string | null | undefined;
|
|
188
|
+
questions: {
|
|
189
|
+
id: string;
|
|
190
|
+
question: string;
|
|
191
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
192
|
+
options: string[];
|
|
193
|
+
recommendedAnswer: string;
|
|
194
|
+
allowCustomAnswer: boolean;
|
|
195
|
+
}[];
|
|
196
|
+
answers: {
|
|
197
|
+
questionId: string;
|
|
198
|
+
answers: string[];
|
|
199
|
+
}[];
|
|
200
|
+
styleId?: string | null | undefined;
|
|
201
|
+
fontId?: string | null | undefined;
|
|
202
|
+
accentColor: string;
|
|
203
|
+
userId?: string | null | undefined;
|
|
204
|
+
unregisteredUserId?: string | null | undefined;
|
|
205
|
+
params: {
|
|
206
|
+
attachedFiles: {
|
|
207
|
+
uuid: string;
|
|
208
|
+
url: string;
|
|
209
|
+
name: string;
|
|
210
|
+
mimeType: string;
|
|
211
|
+
type: string;
|
|
212
|
+
size: number;
|
|
213
|
+
duration?: number | null | undefined;
|
|
214
|
+
content?: string | null | undefined;
|
|
215
|
+
contentLength?: number | null | undefined;
|
|
216
|
+
}[];
|
|
217
|
+
pagesCount?: number | undefined;
|
|
218
|
+
clarifications: {
|
|
219
|
+
question: string;
|
|
220
|
+
answer: string;
|
|
221
|
+
}[];
|
|
222
|
+
mock?: boolean | undefined;
|
|
223
|
+
};
|
|
224
|
+
isDeleted: boolean;
|
|
225
|
+
createdAt: Date;
|
|
226
|
+
completedAt?: Date | null | undefined;
|
|
227
|
+
updatedAt: Date;
|
|
228
|
+
}[] | undefined;
|
|
229
|
+
pages?: {
|
|
230
|
+
slug: string;
|
|
231
|
+
title: string;
|
|
232
|
+
html: string;
|
|
233
|
+
order: number;
|
|
234
|
+
isHome: boolean;
|
|
235
|
+
}[] | undefined;
|
|
236
|
+
createdAt: Date;
|
|
237
|
+
updatedAt: Date;
|
|
238
|
+
}, unknown>>>;
|
|
239
|
+
code: z.ZodOptional<z.ZodString>;
|
|
240
|
+
message: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
243
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderRetryRefineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
var HtmlPageBuilderRetryRefineCommand;
|
|
8
|
+
(function (HtmlPageBuilderRetryRefineCommand) {
|
|
9
|
+
HtmlPageBuilderRetryRefineCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
/** The failed refine job, which preserves its immutable base snapshot and prompt. */
|
|
13
|
+
jobId: zod_1.z.uuid(),
|
|
14
|
+
tokenReservationId: zod_1.z.uuid().optional(),
|
|
15
|
+
precalculatedPrice: zod_1.z.number().optional(),
|
|
16
|
+
mock: zod_1.z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
HtmlPageBuilderRetryRefineCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.HtmlPageBuilderSessionSchema);
|
|
19
|
+
})(HtmlPageBuilderRetryRefineCommand || (exports.HtmlPageBuilderRetryRefineCommand = HtmlPageBuilderRetryRefineCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderSourcesCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
jobId: z.ZodUUID;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
isSuccess: z.ZodBoolean;
|
|
11
|
+
data: z.ZodOptional<z.ZodType<{
|
|
12
|
+
name: string;
|
|
13
|
+
body: string;
|
|
14
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
15
|
+
name: string;
|
|
16
|
+
body: string;
|
|
17
|
+
}[], unknown>>>;
|
|
18
|
+
code: z.ZodOptional<z.ZodString>;
|
|
19
|
+
message: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderSourcesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var HtmlPageBuilderSourcesCommand;
|
|
7
|
+
(function (HtmlPageBuilderSourcesCommand) {
|
|
8
|
+
HtmlPageBuilderSourcesCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
jobId: zod_1.z.uuid(),
|
|
10
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
});
|
|
13
|
+
HtmlPageBuilderSourcesCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.array(zod_1.z.object({ name: zod_1.z.string(), body: zod_1.z.string() })));
|
|
14
|
+
})(HtmlPageBuilderSourcesCommand || (exports.HtmlPageBuilderSourcesCommand = HtmlPageBuilderSourcesCommand = {}));
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export * from './html-page-builder-answer-questions.command';
|
|
2
2
|
export * from './get-html-page-builder-price-calculation-data.command';
|
|
3
3
|
export * from './html-page-builder-execute.command';
|
|
4
|
+
export * from './html-page-builder-retry-build.command';
|
|
5
|
+
export * from './get-html-page-builder-refine-price-calculation-data.command';
|
|
6
|
+
export * from './html-page-builder-refine.command';
|
|
7
|
+
export * from './html-page-builder-retry-refine.command';
|
|
8
|
+
export * from './html-page-builder-download-zip.command';
|
|
9
|
+
export * from './html-page-builder-publish.command';
|
|
10
|
+
export * from './html-page-builder-sources.command';
|
|
4
11
|
export * from './soft-delete-all-html-page-builder-sessions.command';
|
|
5
12
|
export * from './soft-delete-html-page-builder-session-by-uuid.command';
|
|
6
13
|
export * from './update-html-page-builder-session-title.command';
|
|
@@ -17,6 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./html-page-builder-answer-questions.command"), exports);
|
|
18
18
|
__exportStar(require("./get-html-page-builder-price-calculation-data.command"), exports);
|
|
19
19
|
__exportStar(require("./html-page-builder-execute.command"), exports);
|
|
20
|
+
__exportStar(require("./html-page-builder-retry-build.command"), exports);
|
|
21
|
+
__exportStar(require("./get-html-page-builder-refine-price-calculation-data.command"), exports);
|
|
22
|
+
__exportStar(require("./html-page-builder-refine.command"), exports);
|
|
23
|
+
__exportStar(require("./html-page-builder-retry-refine.command"), exports);
|
|
24
|
+
__exportStar(require("./html-page-builder-download-zip.command"), exports);
|
|
25
|
+
__exportStar(require("./html-page-builder-publish.command"), exports);
|
|
26
|
+
__exportStar(require("./html-page-builder-sources.command"), exports);
|
|
20
27
|
__exportStar(require("./soft-delete-all-html-page-builder-sessions.command"), exports);
|
|
21
28
|
__exportStar(require("./soft-delete-html-page-builder-session-by-uuid.command"), exports);
|
|
22
29
|
__exportStar(require("./update-html-page-builder-session-title.command"), exports);
|
package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
41
41
|
jobs?: {
|
|
42
42
|
uuid: string;
|
|
43
43
|
sessionId: string;
|
|
44
|
+
baseJobId: string | null;
|
|
44
45
|
modelId: string;
|
|
45
46
|
userPrompt: string;
|
|
46
47
|
title: string;
|
|
@@ -62,6 +63,7 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
62
63
|
}[];
|
|
63
64
|
} | undefined;
|
|
64
65
|
status: import("../..").JOB_STATUS;
|
|
66
|
+
generationStarted: boolean;
|
|
65
67
|
error: string | null;
|
|
66
68
|
internalError?: string | null | undefined;
|
|
67
69
|
price: number;
|
|
@@ -151,6 +153,7 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
151
153
|
jobs?: {
|
|
152
154
|
uuid: string;
|
|
153
155
|
sessionId: string;
|
|
156
|
+
baseJobId: string | null;
|
|
154
157
|
modelId: string;
|
|
155
158
|
userPrompt: string;
|
|
156
159
|
title: string;
|
|
@@ -172,6 +175,7 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
172
175
|
}[];
|
|
173
176
|
} | undefined;
|
|
174
177
|
status: import("../..").JOB_STATUS;
|
|
178
|
+
generationStarted: boolean;
|
|
175
179
|
error: string | null;
|
|
176
180
|
internalError?: string | null | undefined;
|
|
177
181
|
price: number;
|
package/build/html-page-builder/commands/update-html-page-builder-session-reaction.command.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
46
46
|
jobs?: {
|
|
47
47
|
uuid: string;
|
|
48
48
|
sessionId: string;
|
|
49
|
+
baseJobId: string | null;
|
|
49
50
|
modelId: string;
|
|
50
51
|
userPrompt: string;
|
|
51
52
|
title: string;
|
|
@@ -67,6 +68,7 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
67
68
|
}[];
|
|
68
69
|
} | undefined;
|
|
69
70
|
status: import("../..").JOB_STATUS;
|
|
71
|
+
generationStarted: boolean;
|
|
70
72
|
error: string | null;
|
|
71
73
|
internalError?: string | null | undefined;
|
|
72
74
|
price: number;
|
|
@@ -156,6 +158,7 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
156
158
|
jobs?: {
|
|
157
159
|
uuid: string;
|
|
158
160
|
sessionId: string;
|
|
161
|
+
baseJobId: string | null;
|
|
159
162
|
modelId: string;
|
|
160
163
|
userPrompt: string;
|
|
161
164
|
title: string;
|
|
@@ -177,6 +180,7 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
177
180
|
}[];
|
|
178
181
|
} | undefined;
|
|
179
182
|
status: import("../..").JOB_STATUS;
|
|
183
|
+
generationStarted: boolean;
|
|
180
184
|
error: string | null;
|
|
181
185
|
internalError?: string | null | undefined;
|
|
182
186
|
price: number;
|