@purpleschool/gptbot-tools 0.2.18-stage-2 → 0.2.20-stage
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/common/models/index.js +0 -1
- package/build/diagrams/commands/diagrams.command.js +0 -1
- package/build/diagrams/commands/edit-diagrams-job.command.js +0 -1
- package/build/diagrams/commands/get-diagrams-price-calculation-data.command.js +23 -0
- package/build/diagrams/commands/index.js +1 -0
- package/build/diagrams/commands/retry-diagrams-job.command.js +0 -2
- package/build/diagrams/queries/get-diagrams-config.query.js +4 -3
- package/build/diagrams/routes/diagrams.amqp.routes.js +1 -0
- package/build/html-page-builder/commands/get-html-page-builder-price-calculation-data.command.js +36 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.js +1 -12
- package/build/html-page-builder/commands/index.js +1 -1
- package/build/html-page-builder/models/html-page-builder-session.schema.js +1 -0
- package/build/html-page-builder/queries/get-html-page-builder-config.query.js +2 -1
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.js +1 -1
- package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js +0 -1
- package/build/image-editor/commands/image-editor.command.js +0 -2
- package/build/image-editor/commands/retry-image-editor-job.command.js +0 -2
- package/build/image-editor/queries/get-image-editor-config.query.js +2 -3
- package/build/image-generation/commands/execute-image-generation.command.js +2 -4
- package/build/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.js +0 -1
- package/build/image-generation/commands/retry-image-generation-job.command.js +0 -2
- package/build/image-generation/models/image-generation-job.schema.js +1 -3
- package/build/image-generation/queries/find-image-generation-jobs.query.js +2 -2
- package/build/image-generation/queries/get-image-generation-config.query.js +4 -3
- package/build/interior-design/commands/get-interior-design-price.command.js +0 -1
- package/build/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.js +0 -1
- package/build/interior-design/commands/interior-design.command.js +0 -1
- package/build/interior-design/commands/retry-interior-design-job.command.js +0 -2
- package/build/interior-design/queries/get-interior-design-config.query.js +2 -3
- package/build/marketplace-card/commands/execute-marketplace-card.command.js +0 -1
- package/build/marketplace-card/commands/retry-marketplace-card-job.command.js +0 -1
- package/build/marketplace-card/queries/get-marketplace-card-config.query.js +2 -1
- package/build/music/commands/generate-lyrics.command.js +0 -2
- package/build/music/commands/generate-music.command.js +0 -2
- package/build/music/commands/music-model/get-music-model-by-uuid.command.js +0 -1
- package/build/music/commands/retry-music-job.command.js +0 -2
- package/build/music/queries/get-music-config.query.js +2 -3
- package/build/paraphrase/queries/get-paraphrase-tool-config.query.js +2 -3
- package/build/presentation/commands/create-presentation.command.js +0 -1
- package/build/presentation/commands/generate-and-insert-slide.command.js +0 -1
- package/build/presentation/commands/generate-slides.command.js +0 -1
- package/build/presentation/queries/get-presentation-config.query.js +0 -1
- package/build/solving-edu-task/commands/retry-solving-edu-task-job.command.js +0 -2
- package/build/solving-edu-task/commands/solving-edu-task.command.js +0 -1
- package/build/solving-edu-task/queries/get-solving-edu-task-config.query.js +2 -1
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.js +2 -3
- package/build/stt/queries/get-stt-config.query.js +2 -3
- package/build/tools/enums/index.js +1 -0
- package/build/tools/enums/job-request-origin.enum.js +8 -0
- package/build/tools/events/tool-job-complete.event.js +1 -2
- package/build/tools/queries/find-all-tools.query.js +0 -1
- package/build/tools/queries/find-grouped-tools.query.js +0 -1
- package/build/tools/queries/get-global-tools-config.query.js +2 -3
- package/build/tools/queries/get-tools-with-configs.query.js +2 -3
- package/build/tts/queries/get-tts-config.query.js +2 -3
- package/build/video/commands/retry-video-job.command.js +0 -2
- package/build/video/commands/video-model/get-video-model-by-uuid.command.js +0 -1
- package/build/video/commands/video.command.js +0 -2
- package/build/video/queries/get-video-config.query.js +2 -3
- package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.js +0 -1
- package/build/video-editor/queries/get-video-editor-config.query.js +4 -3
- package/build/writer/commands/create-writer-document.command.js +0 -1
- package/build/writer/commands/generate-document-outline.command.js +0 -2
- package/build/writer/queries/get-writer-config.query.js +0 -1
- package/common/models/index.ts +0 -1
- package/diagrams/commands/diagrams.command.ts +1 -2
- package/diagrams/commands/edit-diagrams-job.command.ts +1 -2
- package/diagrams/commands/get-diagrams-price-calculation-data.command.ts +25 -0
- package/diagrams/commands/index.ts +1 -0
- package/diagrams/commands/retry-diagrams-job.command.ts +0 -2
- package/diagrams/queries/get-diagrams-config.query.ts +3 -3
- package/diagrams/routes/diagrams.amqp.routes.ts +1 -0
- package/html-page-builder/commands/get-html-page-builder-price-calculation-data.command.ts +38 -0
- package/html-page-builder/commands/html-page-builder-execute.command.ts +10 -24
- package/html-page-builder/commands/index.ts +1 -1
- package/html-page-builder/models/html-page-builder-session.schema.ts +1 -0
- package/html-page-builder/queries/get-html-page-builder-config.query.ts +2 -2
- package/html-page-builder/routes/html-page-builder.amqp.routes.ts +1 -1
- package/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.ts +1 -2
- package/image-editor/commands/image-editor.command.ts +0 -2
- package/image-editor/commands/retry-image-editor-job.command.ts +0 -2
- package/image-editor/queries/get-image-editor-config.query.ts +1 -4
- package/image-generation/commands/execute-image-generation.command.ts +2 -4
- package/image-generation/commands/image-generation-model/get-image-generation-model-by-uuid.command.ts +1 -2
- package/image-generation/commands/retry-image-generation-job.command.ts +0 -2
- package/image-generation/models/image-generation-job.schema.ts +2 -4
- package/image-generation/queries/find-image-generation-jobs.query.ts +2 -2
- package/image-generation/queries/get-image-generation-config.query.ts +2 -2
- package/interior-design/commands/get-interior-design-price.command.ts +1 -2
- package/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.ts +1 -2
- package/interior-design/commands/interior-design.command.ts +1 -2
- package/interior-design/commands/retry-interior-design-job.command.ts +0 -2
- package/interior-design/queries/get-interior-design-config.query.ts +1 -4
- package/marketplace-card/commands/execute-marketplace-card.command.ts +1 -2
- package/marketplace-card/commands/retry-marketplace-card-job.command.ts +1 -2
- package/marketplace-card/queries/get-marketplace-card-config.query.ts +2 -2
- package/music/commands/generate-lyrics.command.ts +0 -2
- package/music/commands/generate-music.command.ts +0 -2
- package/music/commands/music-model/get-music-model-by-uuid.command.ts +1 -2
- package/music/commands/retry-music-job.command.ts +0 -2
- package/music/queries/get-music-config.query.ts +1 -4
- package/package.json +1 -2
- package/paraphrase/queries/get-paraphrase-tool-config.query.ts +1 -4
- package/presentation/commands/create-presentation.command.ts +1 -2
- package/presentation/commands/generate-and-insert-slide.command.ts +1 -2
- package/presentation/commands/generate-slides.command.ts +1 -2
- package/presentation/queries/get-presentation-config.query.ts +1 -4
- package/solving-edu-task/commands/retry-solving-edu-task-job.command.ts +0 -2
- package/solving-edu-task/commands/solving-edu-task.command.ts +1 -2
- package/solving-edu-task/queries/get-solving-edu-task-config.query.ts +2 -2
- package/spell-corrector/queries/get-spell-corrector-tool-config.query.ts +1 -4
- package/stt/queries/get-stt-config.query.ts +1 -4
- package/tools/enums/index.ts +1 -0
- package/tools/enums/job-request-origin.enum.ts +4 -0
- package/tools/events/tool-job-complete.event.ts +2 -3
- package/tools/queries/find-all-tools.query.ts +1 -4
- package/tools/queries/find-grouped-tools.query.ts +1 -4
- package/tools/queries/get-global-tools-config.query.ts +1 -4
- package/tools/queries/get-tools-with-configs.query.ts +1 -4
- package/tts/queries/get-tts-config.query.ts +1 -4
- package/video/commands/retry-video-job.command.ts +0 -2
- package/video/commands/video-model/get-video-model-by-uuid.command.ts +1 -2
- package/video/commands/video.command.ts +0 -2
- package/video/queries/get-video-config.query.ts +1 -4
- package/video-editor/commands/video-editor-model/get-video-editor-model.command.ts +1 -2
- package/video-editor/queries/get-video-editor-config.query.ts +2 -2
- package/writer/commands/create-writer-document.command.ts +1 -2
- package/writer/commands/generate-document-outline.command.ts +0 -2
- package/writer/queries/get-writer-config.query.ts +1 -4
- package/build/common/models/locale.schema.js +0 -9
- package/build/html-page-builder/commands/get-html-page-builder-price.command.js +0 -17
- package/common/models/locale.schema.ts +0 -11
- package/html-page-builder/commands/get-html-page-builder-price.command.ts +0 -19
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./command-response.schema"), exports);
|
|
18
18
|
__exportStar(require("./icon-variants.schema"), exports);
|
|
19
19
|
__exportStar(require("./attached-file.schema"), exports);
|
|
20
|
-
__exportStar(require("./locale.schema"), exports);
|
|
@@ -7,7 +7,6 @@ const models_1 = require("../models");
|
|
|
7
7
|
var DiagramsCommand;
|
|
8
8
|
(function (DiagramsCommand) {
|
|
9
9
|
DiagramsCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: common_1.LocaleSchema,
|
|
11
10
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
11
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
prompt: zod_1.z.string(),
|
|
@@ -7,7 +7,6 @@ const models_1 = require("../models");
|
|
|
7
7
|
var EditDiagramsJobCommand;
|
|
8
8
|
(function (EditDiagramsJobCommand) {
|
|
9
9
|
EditDiagramsJobCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: common_1.LocaleSchema,
|
|
11
10
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
11
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDiagramsPriceCalculationDataCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
var GetDiagramsPriceCalculationDataCommand;
|
|
7
|
+
(function (GetDiagramsPriceCalculationDataCommand) {
|
|
8
|
+
GetDiagramsPriceCalculationDataCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
modelId: zod_1.z.string().uuid(),
|
|
10
|
+
chartTypeUuid: zod_1.z.string().uuid(),
|
|
11
|
+
dataTextLength: zod_1.z.number().int().nonnegative().optional(),
|
|
12
|
+
jobId: zod_1.z.string().uuid().optional(),
|
|
13
|
+
parentVersionUuid: zod_1.z.string().uuid().optional(),
|
|
14
|
+
});
|
|
15
|
+
GetDiagramsPriceCalculationDataCommand.ResponseDataSchema = zod_1.z.object({
|
|
16
|
+
modelPricing: zod_1.z.object({
|
|
17
|
+
inputPrice: zod_1.z.number(),
|
|
18
|
+
outputPrice: zod_1.z.number(),
|
|
19
|
+
}),
|
|
20
|
+
effectivePromptLength: zod_1.z.number(),
|
|
21
|
+
});
|
|
22
|
+
GetDiagramsPriceCalculationDataCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(GetDiagramsPriceCalculationDataCommand.ResponseDataSchema);
|
|
23
|
+
})(GetDiagramsPriceCalculationDataCommand || (exports.GetDiagramsPriceCalculationDataCommand = GetDiagramsPriceCalculationDataCommand = {}));
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./set-reaction-to-diagrams-job.command"), exports);
|
|
|
21
21
|
__exportStar(require("./retry-diagrams-job.command"), exports);
|
|
22
22
|
__exportStar(require("./delete-diagrams-job-by-uuid.command"), exports);
|
|
23
23
|
__exportStar(require("./delete-all-diagrams-jobs.command"), exports);
|
|
24
|
+
__exportStar(require("./get-diagrams-price-calculation-data.command"), exports);
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryDiagramsJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
7
6
|
const models_1 = require("../models");
|
|
8
7
|
var RetryDiagramsJobCommand;
|
|
9
8
|
(function (RetryDiagramsJobCommand) {
|
|
10
9
|
RetryDiagramsJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: locale_schema_1.LocaleSchema,
|
|
12
10
|
uuid: zod_1.z.string().uuid(),
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetDiagramsConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
6
|
const models_1 = require("../models");
|
|
6
7
|
var GetDiagramsConfigQuery;
|
|
7
8
|
(function (GetDiagramsConfigQuery) {
|
|
8
|
-
GetDiagramsConfigQuery.
|
|
9
|
-
GetDiagramsConfigQuery.ResponseSchema = (0,
|
|
9
|
+
GetDiagramsConfigQuery.Request = zod_1.z.object({});
|
|
10
|
+
GetDiagramsConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.DiagramsConfigSchema);
|
|
10
11
|
})(GetDiagramsConfigQuery || (exports.GetDiagramsConfigQuery = GetDiagramsConfigQuery = {}));
|
|
@@ -4,6 +4,7 @@ exports.DIAGRAMS_AMQP_ROUTES = void 0;
|
|
|
4
4
|
exports.DIAGRAMS_AMQP_ROUTES = {
|
|
5
5
|
EXECUTE: 'tools.diagrams.execute.rpc',
|
|
6
6
|
CONFIG: 'tools.diagrams.config.rpc',
|
|
7
|
+
GET_PRICE_CALCULATION_DATA: 'tools.diagrams.price-calculation-data.rpc',
|
|
7
8
|
GET_JOB: 'tools.diagrams.jobs.get.rpc',
|
|
8
9
|
LIST_JOBS: 'tools.diagrams.jobs.list.rpc',
|
|
9
10
|
EDIT: 'tools.diagrams.jobs.edit.rpc',
|
package/build/html-page-builder/commands/get-html-page-builder-price-calculation-data.command.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetHtmlPageBuilderPriceCalculationDataCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const enums_1 = require("../enums");
|
|
7
|
+
var GetHtmlPageBuilderPriceCalculationDataCommand;
|
|
8
|
+
(function (GetHtmlPageBuilderPriceCalculationDataCommand) {
|
|
9
|
+
GetHtmlPageBuilderPriceCalculationDataCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
modelId: zod_1.z.string().uuid(),
|
|
11
|
+
inputLength: zod_1.z.number().int().nonnegative(),
|
|
12
|
+
sessionId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
});
|
|
14
|
+
GetHtmlPageBuilderPriceCalculationDataCommand.ResponseDataSchema = zod_1.z.object({
|
|
15
|
+
modelPricing: zod_1.z.object({
|
|
16
|
+
inputPrice: zod_1.z.number(),
|
|
17
|
+
outputPrice: zod_1.z.number(),
|
|
18
|
+
}),
|
|
19
|
+
effectivePromptLength: zod_1.z.number(),
|
|
20
|
+
breakdown: zod_1.z.object({
|
|
21
|
+
systemPromptLength: zod_1.z.number(),
|
|
22
|
+
inputLength: zod_1.z.number(),
|
|
23
|
+
currentHtmlLength: zod_1.z.number(),
|
|
24
|
+
userPromptTemplateOverheadLength: zod_1.z.number(),
|
|
25
|
+
modeHintLength: zod_1.z.number(),
|
|
26
|
+
userMessageLength: zod_1.z.number(),
|
|
27
|
+
attachmentsTextLength: zod_1.z.number(),
|
|
28
|
+
}),
|
|
29
|
+
metadata: zod_1.z.object({
|
|
30
|
+
mode: zod_1.z.nativeEnum(enums_1.HTML_PAGE_BUILDER_SESSION_STAGE),
|
|
31
|
+
modelId: zod_1.z.string().uuid(),
|
|
32
|
+
sessionId: zod_1.z.string().uuid().nullable(),
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
GetHtmlPageBuilderPriceCalculationDataCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetHtmlPageBuilderPriceCalculationDataCommand.ResponseDataSchema);
|
|
36
|
+
})(GetHtmlPageBuilderPriceCalculationDataCommand || (exports.GetHtmlPageBuilderPriceCalculationDataCommand = GetHtmlPageBuilderPriceCalculationDataCommand = {}));
|
|
@@ -6,8 +6,7 @@ const command_response_schema_1 = require("../../common/models/command-response.
|
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
var HtmlPageBuilderExecuteCommand;
|
|
8
8
|
(function (HtmlPageBuilderExecuteCommand) {
|
|
9
|
-
HtmlPageBuilderExecuteCommand.RequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
9
|
+
HtmlPageBuilderExecuteCommand.RequestSchema = zod_1.z.object({
|
|
11
10
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
11
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
sessionId: zod_1.z.string().uuid().optional(),
|
|
@@ -16,16 +15,6 @@ var HtmlPageBuilderExecuteCommand;
|
|
|
16
15
|
params: models_1.HtmlPageBuilderJobParamsSchema,
|
|
17
16
|
tokenReservationId: zod_1.z.string().uuid().optional(),
|
|
18
17
|
precalculatedPrice: zod_1.z.number().optional(),
|
|
19
|
-
})
|
|
20
|
-
.refine((data) => {
|
|
21
|
-
return !(data.userId && data.unregisteredUserId);
|
|
22
|
-
}, {
|
|
23
|
-
message: 'userId and unregisteredUserId cannot be used together',
|
|
24
|
-
path: ['userId', 'unregisteredUserId'],
|
|
25
|
-
})
|
|
26
|
-
.refine((data) => { var _a; return Boolean((_a = data.userId) !== null && _a !== void 0 ? _a : data.unregisteredUserId); }, {
|
|
27
|
-
message: 'userId or unregisteredUserId is required',
|
|
28
|
-
path: ['userId', 'unregisteredUserId'],
|
|
29
18
|
});
|
|
30
19
|
HtmlPageBuilderExecuteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.HtmlPageBuilderSessionSchema);
|
|
31
20
|
})(HtmlPageBuilderExecuteCommand || (exports.HtmlPageBuilderExecuteCommand = HtmlPageBuilderExecuteCommand = {}));
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-html-page-builder-session.command"), exports);
|
|
18
|
-
__exportStar(require("./get-html-page-builder-price.command"), exports);
|
|
18
|
+
__exportStar(require("./get-html-page-builder-price-calculation-data.command"), exports);
|
|
19
19
|
__exportStar(require("./html-page-builder-execute.command"), exports);
|
|
20
20
|
__exportStar(require("./soft-delete-all-html-page-builder-sessions.command"), exports);
|
|
21
21
|
__exportStar(require("./soft-delete-html-page-builder-session-by-uuid.command"), exports);
|
|
@@ -11,6 +11,7 @@ exports.HtmlPageBuilderSessionSchema = zod_1.z.object({
|
|
|
11
11
|
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
12
12
|
stage: zod_1.z.nativeEnum(enums_1.HTML_PAGE_BUILDER_SESSION_STAGE),
|
|
13
13
|
currentHtml: zod_1.z.string().nullable().optional(),
|
|
14
|
+
lastUsedModelId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
15
|
userId: zod_1.z.string().nullable().optional(),
|
|
15
16
|
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
16
17
|
isDeleted: zod_1.z.boolean(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetHtmlPageBuilderConfigQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const common_1 = require("../../common");
|
|
5
6
|
const models_1 = require("../models");
|
|
6
7
|
var GetHtmlPageBuilderConfigQuery;
|
|
7
8
|
(function (GetHtmlPageBuilderConfigQuery) {
|
|
8
|
-
GetHtmlPageBuilderConfigQuery.RequestSchema =
|
|
9
|
+
GetHtmlPageBuilderConfigQuery.RequestSchema = zod_1.z.object({});
|
|
9
10
|
GetHtmlPageBuilderConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.HtmlPageBuilderConfigSchema);
|
|
10
11
|
})(GetHtmlPageBuilderConfigQuery || (exports.GetHtmlPageBuilderConfigQuery = GetHtmlPageBuilderConfigQuery = {}));
|
|
@@ -4,7 +4,7 @@ exports.HTML_PAGE_BUILDER_AMQP_ROUTES = void 0;
|
|
|
4
4
|
exports.HTML_PAGE_BUILDER_AMQP_ROUTES = {
|
|
5
5
|
CONFIG: 'tools.html-page-builder.config.rpc',
|
|
6
6
|
EXECUTE: 'tools.html-page-builder.execute.rpc',
|
|
7
|
-
|
|
7
|
+
GET_PRICE_CALCULATION_DATA: 'tools.html-page-builder.get-price-calculation-data.rpc',
|
|
8
8
|
CREATE_SESSION: 'tools.html-page-builder.sessions.create.rpc',
|
|
9
9
|
LIST_SESSIONS: 'tools.html-page-builder.sessions.list.rpc',
|
|
10
10
|
GET_SESSION: 'tools.html-page-builder.sessions.get.rpc',
|
package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js
CHANGED
|
@@ -8,7 +8,6 @@ var GetImageEditorModelByUuidCommand;
|
|
|
8
8
|
(function (GetImageEditorModelByUuidCommand) {
|
|
9
9
|
GetImageEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetImageEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageEditorModelSchema);
|
|
14
13
|
})(GetImageEditorModelByUuidCommand || (exports.GetImageEditorModelByUuidCommand = GetImageEditorModelByUuidCommand = {}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ImageEditorCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
7
6
|
const models_1 = require("../models");
|
|
8
7
|
const common_1 = require("../../common");
|
|
9
8
|
const tool_workspace_1 = require("../../tool-workspace");
|
|
@@ -11,7 +10,6 @@ const tools_1 = require("../../tools");
|
|
|
11
10
|
var ImageEditorCommand;
|
|
12
11
|
(function (ImageEditorCommand) {
|
|
13
12
|
ImageEditorCommand.RequestSchema = zod_1.z.object({
|
|
14
|
-
locale: locale_schema_1.LocaleSchema,
|
|
15
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
17
15
|
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -4,11 +4,9 @@ exports.RetryImageEditorJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
-
const common_1 = require("../../common");
|
|
8
7
|
var RetryImageEditorJobCommand;
|
|
9
8
|
(function (RetryImageEditorJobCommand) {
|
|
10
9
|
RetryImageEditorJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
10
|
uuid: zod_1.z.string().uuid(),
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetImageEditorConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
var GetImageEditorConfigQuery;
|
|
7
7
|
(function (GetImageEditorConfigQuery) {
|
|
8
|
-
GetImageEditorConfigQuery.
|
|
9
|
-
GetImageEditorConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageEditorConfigSchema);
|
|
8
|
+
GetImageEditorConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageEditorConfigSchema);
|
|
10
9
|
})(GetImageEditorConfigQuery || (exports.GetImageEditorConfigQuery = GetImageEditorConfigQuery = {}));
|
|
@@ -3,20 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExecuteImageGenerationCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const
|
|
6
|
+
const tools_1 = require("../../tools");
|
|
7
7
|
const models_1 = require("../models");
|
|
8
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
9
8
|
var ExecuteImageGenerationCommand;
|
|
10
9
|
(function (ExecuteImageGenerationCommand) {
|
|
11
10
|
ExecuteImageGenerationCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
locale: locale_schema_1.LocaleSchema,
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
13
|
prompt: zod_1.z.string(),
|
|
16
14
|
modelId: zod_1.z.string().uuid(),
|
|
17
15
|
params: models_1.ImageGenerationRequestParamsSchema,
|
|
18
16
|
presetId: zod_1.z.string().uuid().nullable().optional(),
|
|
19
|
-
|
|
17
|
+
origin: zod_1.z.nativeEnum(tools_1.JOB_REQUEST_ORIGIN).default(tools_1.JOB_REQUEST_ORIGIN.API),
|
|
20
18
|
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
21
19
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
22
20
|
precalculatedPrice: zod_1.z.number(),
|
|
@@ -8,7 +8,6 @@ var GetImageGenerationModelByUuidCommand;
|
|
|
8
8
|
(function (GetImageGenerationModelByUuidCommand) {
|
|
9
9
|
GetImageGenerationModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetImageGenerationModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageGenerationModelSchema);
|
|
14
13
|
})(GetImageGenerationModelByUuidCommand || (exports.GetImageGenerationModelByUuidCommand = GetImageGenerationModelByUuidCommand = {}));
|
|
@@ -4,11 +4,9 @@ exports.RetryImageGenerationJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
-
const common_1 = require("../../common");
|
|
8
7
|
var RetryImageGenerationJobCommand;
|
|
9
8
|
(function (RetryImageGenerationJobCommand) {
|
|
10
9
|
RetryImageGenerationJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
10
|
uuid: zod_1.z.string().uuid(),
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
7
|
const enums_1 = require("../enums");
|
|
8
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
9
8
|
exports.ImageGenerationJobParamsSchema = zod_1.z.object({
|
|
10
9
|
aspectRatio: zod_1.z.string(),
|
|
11
10
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema),
|
|
@@ -31,8 +30,7 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
|
|
|
31
30
|
userId: zod_1.z.string().nullable().optional(),
|
|
32
31
|
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
33
32
|
isPublished: zod_1.z.boolean(),
|
|
34
|
-
origin: zod_1.z.
|
|
35
|
-
callOrigin: zod_1.z.nativeEnum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN),
|
|
33
|
+
origin: zod_1.z.nativeEnum(tools_1.JOB_REQUEST_ORIGIN),
|
|
36
34
|
postId: zod_1.z.string().nullable(),
|
|
37
35
|
isDeleted: zod_1.z.boolean(),
|
|
38
36
|
internalError: zod_1.z.string().nullable(),
|
|
@@ -4,7 +4,7 @@ exports.FindImageGenerationJobsQuery = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
-
const
|
|
7
|
+
const job_request_origin_enum_1 = require("../../tools/enums/job-request-origin.enum");
|
|
8
8
|
var FindImageGenerationJobsQuery;
|
|
9
9
|
(function (FindImageGenerationJobsQuery) {
|
|
10
10
|
FindImageGenerationJobsQuery.RequestSchema = zod_1.z
|
|
@@ -14,7 +14,7 @@ var FindImageGenerationJobsQuery;
|
|
|
14
14
|
title: zod_1.z.string().optional(),
|
|
15
15
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
16
16
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
17
|
-
|
|
17
|
+
origin: zod_1.z.nativeEnum(job_request_origin_enum_1.JOB_REQUEST_ORIGIN).optional(),
|
|
18
18
|
})
|
|
19
19
|
.refine((data) => {
|
|
20
20
|
return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetImageGenerationConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
6
|
const models_1 = require("../models");
|
|
6
7
|
var GetImageGenerationConfigQuery;
|
|
7
8
|
(function (GetImageGenerationConfigQuery) {
|
|
8
|
-
GetImageGenerationConfigQuery.RequestSchema =
|
|
9
|
-
GetImageGenerationConfigQuery.ResponseSchema = (0,
|
|
9
|
+
GetImageGenerationConfigQuery.RequestSchema = zod_1.z.object({});
|
|
10
|
+
GetImageGenerationConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationConfigSchema);
|
|
10
11
|
})(GetImageGenerationConfigQuery || (exports.GetImageGenerationConfigQuery = GetImageGenerationConfigQuery = {}));
|
|
@@ -7,7 +7,6 @@ const common_1 = require("../../common");
|
|
|
7
7
|
var GetInteriorDesignPriceCommand;
|
|
8
8
|
(function (GetInteriorDesignPriceCommand) {
|
|
9
9
|
GetInteriorDesignPriceCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: common_1.LocaleSchema,
|
|
11
10
|
modelId: zod_1.z.string().uuid(),
|
|
12
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -8,7 +8,6 @@ var GetInteriorDesignModelByUuidCommand;
|
|
|
8
8
|
(function (GetInteriorDesignModelByUuidCommand) {
|
|
9
9
|
GetInteriorDesignModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetInteriorDesignModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.InteriorDesignModelSchema);
|
|
14
13
|
})(GetInteriorDesignModelByUuidCommand || (exports.GetInteriorDesignModelByUuidCommand = GetInteriorDesignModelByUuidCommand = {}));
|
|
@@ -9,7 +9,6 @@ const enums_1 = require("../enums");
|
|
|
9
9
|
var InteriorDesignCommand;
|
|
10
10
|
(function (InteriorDesignCommand) {
|
|
11
11
|
InteriorDesignCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
locale: common_1.LocaleSchema,
|
|
13
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
14
|
prompt: zod_1.z.string(),
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetryInteriorDesignJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const common_1 = require("../../common");
|
|
7
6
|
const models_1 = require("../models");
|
|
8
7
|
var RetryInteriorDesignJobCommand;
|
|
9
8
|
(function (RetryInteriorDesignJobCommand) {
|
|
10
9
|
RetryInteriorDesignJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
10
|
uuid: zod_1.z.string().uuid(),
|
|
13
11
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
14
12
|
precalculatedPrice: zod_1.z.number(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetInteriorDesignConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
5
|
const interior_design_config_schema_1 = require("../models/interior-design-config.schema");
|
|
6
6
|
var GetInteriorDesignConfigQuery;
|
|
7
7
|
(function (GetInteriorDesignConfigQuery) {
|
|
8
|
-
GetInteriorDesignConfigQuery.
|
|
9
|
-
GetInteriorDesignConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(interior_design_config_schema_1.InteriorDesignConfigSchema);
|
|
8
|
+
GetInteriorDesignConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(interior_design_config_schema_1.InteriorDesignConfigSchema);
|
|
10
9
|
})(GetInteriorDesignConfigQuery || (exports.GetInteriorDesignConfigQuery = GetInteriorDesignConfigQuery = {}));
|
|
@@ -10,7 +10,6 @@ const common_1 = require("../../common");
|
|
|
10
10
|
var ExecuteMarketplaceCardCommand;
|
|
11
11
|
(function (ExecuteMarketplaceCardCommand) {
|
|
12
12
|
ExecuteMarketplaceCardCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
locale: common_1.LocaleSchema,
|
|
14
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
16
15
|
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -8,7 +8,6 @@ const models_1 = require("../models");
|
|
|
8
8
|
var RetryMarketplaceCardJobCommand;
|
|
9
9
|
(function (RetryMarketplaceCardJobCommand) {
|
|
10
10
|
RetryMarketplaceCardJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
uuid: zod_1.z.string().uuid(),
|
|
13
12
|
tokenReservationId: zod_1.z.string().uuid(),
|
|
14
13
|
precalculatedPrice: zod_1.z.number(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetMarketplaceCardConfigQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const common_1 = require("../../common");
|
|
5
6
|
const models_1 = require("../models");
|
|
6
7
|
var GetMarketplaceCardConfigQuery;
|
|
7
8
|
(function (GetMarketplaceCardConfigQuery) {
|
|
8
|
-
GetMarketplaceCardConfigQuery.RequestSchema =
|
|
9
|
+
GetMarketplaceCardConfigQuery.RequestSchema = zod_1.z.object({});
|
|
9
10
|
GetMarketplaceCardConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MarketplaceCardConfigSchema);
|
|
10
11
|
})(GetMarketplaceCardConfigQuery || (exports.GetMarketplaceCardConfigQuery = GetMarketplaceCardConfigQuery = {}));
|
|
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateLyricsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
7
6
|
var GenerateLyricsCommand;
|
|
8
7
|
(function (GenerateLyricsCommand) {
|
|
9
8
|
GenerateLyricsCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: locale_schema_1.LocaleSchema,
|
|
11
9
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
10
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
11
|
userBalance: zod_1.z.number(),
|
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateMusicCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
7
6
|
const music_job_schema_1 = require("../models/music-job.schema");
|
|
8
7
|
const models_1 = require("../models");
|
|
9
8
|
var GenerateMusicCommand;
|
|
10
9
|
(function (GenerateMusicCommand) {
|
|
11
10
|
GenerateMusicCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
locale: locale_schema_1.LocaleSchema,
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
13
|
modelId: zod_1.z.string(),
|
|
@@ -8,7 +8,6 @@ var GetMusicModelByUuidCommand;
|
|
|
8
8
|
(function (GetMusicModelByUuidCommand) {
|
|
9
9
|
GetMusicModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetMusicModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicModelSchema);
|
|
14
13
|
})(GetMusicModelByUuidCommand || (exports.GetMusicModelByUuidCommand = GetMusicModelByUuidCommand = {}));
|
|
@@ -4,11 +4,9 @@ exports.RetryMusicJobCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const music_job_schema_1 = require("../models/music-job.schema");
|
|
7
|
-
const common_1 = require("../../common");
|
|
8
7
|
var RetryMusicJobCommand;
|
|
9
8
|
(function (RetryMusicJobCommand) {
|
|
10
9
|
RetryMusicJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
10
|
uuid: zod_1.z.string().uuid(),
|
|
13
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetMusicConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
var GetMusicConfigQuery;
|
|
7
7
|
(function (GetMusicConfigQuery) {
|
|
8
|
-
GetMusicConfigQuery.
|
|
9
|
-
GetMusicConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicConfigSchema);
|
|
8
|
+
GetMusicConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.MusicConfigSchema);
|
|
10
9
|
})(GetMusicConfigQuery || (exports.GetMusicConfigQuery = GetMusicConfigQuery = {}));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetParaphraseToolConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
var GetParaphraseToolConfigQuery;
|
|
7
7
|
(function (GetParaphraseToolConfigQuery) {
|
|
8
|
-
GetParaphraseToolConfigQuery.
|
|
9
|
-
GetParaphraseToolConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ParaphraseToolConfigSchema);
|
|
8
|
+
GetParaphraseToolConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ParaphraseToolConfigSchema);
|
|
10
9
|
})(GetParaphraseToolConfigQuery || (exports.GetParaphraseToolConfigQuery = GetParaphraseToolConfigQuery = {}));
|
|
@@ -8,7 +8,6 @@ const enums_1 = require("../enums");
|
|
|
8
8
|
var CreatePresentationCommand;
|
|
9
9
|
(function (CreatePresentationCommand) {
|
|
10
10
|
CreatePresentationCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
13
|
templateId: zod_1.z.string().uuid(),
|
|
@@ -8,7 +8,6 @@ const models_1 = require("../models");
|
|
|
8
8
|
var GenerateAndInsertSlideCommand;
|
|
9
9
|
(function (GenerateAndInsertSlideCommand) {
|
|
10
10
|
GenerateAndInsertSlideCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
13
|
userBalance: zod_1.z.number(),
|
|
@@ -7,7 +7,6 @@ const models_1 = require("../models");
|
|
|
7
7
|
var GenerateSlidesCommand;
|
|
8
8
|
(function (GenerateSlidesCommand) {
|
|
9
9
|
GenerateSlidesCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
locale: common_1.LocaleSchema,
|
|
11
10
|
uuid: zod_1.z.string().uuid(),
|
|
12
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -5,6 +5,5 @@ const common_1 = require("../../common");
|
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
var GetPresentationConfigQuery;
|
|
7
7
|
(function (GetPresentationConfigQuery) {
|
|
8
|
-
GetPresentationConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
8
|
GetPresentationConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.PresentationConfigSchema);
|
|
10
9
|
})(GetPresentationConfigQuery || (exports.GetPresentationConfigQuery = GetPresentationConfigQuery = {}));
|
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RetrySolvingEduTaskJobCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
7
6
|
const models_1 = require("../models");
|
|
8
7
|
const common_1 = require("../../common");
|
|
9
8
|
var RetrySolvingEduTaskJobCommand;
|
|
10
9
|
(function (RetrySolvingEduTaskJobCommand) {
|
|
11
10
|
RetrySolvingEduTaskJobCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
locale: locale_schema_1.LocaleSchema,
|
|
13
11
|
uuid: zod_1.z.string().uuid(),
|
|
14
12
|
tokenReservationId: zod_1.z.string().uuid().optional(),
|
|
15
13
|
precalculatedPrice: zod_1.z.number().optional(),
|
|
@@ -8,7 +8,6 @@ const common_1 = require("../../common");
|
|
|
8
8
|
var SolvingEduTaskCommand;
|
|
9
9
|
(function (SolvingEduTaskCommand) {
|
|
10
10
|
SolvingEduTaskCommand.RequestSchema = zod_1.z.object({
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
13
|
prompt: zod_1.z.string(),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetSolvingEduTaskConfigQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const common_1 = require("../../common");
|
|
5
6
|
const models_1 = require("../models");
|
|
6
7
|
var GetSolvingEduTaskConfigQuery;
|
|
7
8
|
(function (GetSolvingEduTaskConfigQuery) {
|
|
8
|
-
GetSolvingEduTaskConfigQuery.RequestSchema =
|
|
9
|
+
GetSolvingEduTaskConfigQuery.RequestSchema = zod_1.z.object({});
|
|
9
10
|
GetSolvingEduTaskConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SolvingEduTaskConfigSchema);
|
|
10
11
|
})(GetSolvingEduTaskConfigQuery || (exports.GetSolvingEduTaskConfigQuery = GetSolvingEduTaskConfigQuery = {}));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetSpellCorrectorToolConfigQuery = void 0;
|
|
4
|
-
const
|
|
4
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
5
|
const models_1 = require("../models");
|
|
6
6
|
var GetSpellCorrectorToolConfigQuery;
|
|
7
7
|
(function (GetSpellCorrectorToolConfigQuery) {
|
|
8
|
-
GetSpellCorrectorToolConfigQuery.
|
|
9
|
-
GetSpellCorrectorToolConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.SpellCorrectorToolConfigSchema);
|
|
8
|
+
GetSpellCorrectorToolConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.SpellCorrectorToolConfigSchema);
|
|
10
9
|
})(GetSpellCorrectorToolConfigQuery || (exports.GetSpellCorrectorToolConfigQuery = GetSpellCorrectorToolConfigQuery = {}));
|