@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
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetSTTConfigQuery = 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 GetSTTConfigQuery;
|
|
7
7
|
(function (GetSTTConfigQuery) {
|
|
8
|
-
GetSTTConfigQuery.
|
|
9
|
-
GetSTTConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.STTConfigSchema);
|
|
8
|
+
GetSTTConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.STTConfigSchema);
|
|
10
9
|
})(GetSTTConfigQuery || (exports.GetSTTConfigQuery = GetSTTConfigQuery = {}));
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./job-status.enum"), exports);
|
|
|
18
18
|
__exportStar(require("./tool-type.enum"), exports);
|
|
19
19
|
__exportStar(require("./tool-content-type.enum"), exports);
|
|
20
20
|
__exportStar(require("./tool-group.enum"), exports);
|
|
21
|
+
__exportStar(require("./job-request-origin.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JOB_REQUEST_ORIGIN = void 0;
|
|
4
|
+
var JOB_REQUEST_ORIGIN;
|
|
5
|
+
(function (JOB_REQUEST_ORIGIN) {
|
|
6
|
+
JOB_REQUEST_ORIGIN["API"] = "api";
|
|
7
|
+
JOB_REQUEST_ORIGIN["B2B"] = "b2b";
|
|
8
|
+
})(JOB_REQUEST_ORIGIN || (exports.JOB_REQUEST_ORIGIN = JOB_REQUEST_ORIGIN = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ToolJobCompleteEvent = void 0;
|
|
4
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
4
|
const enums_1 = require("../enums");
|
|
6
5
|
const models_1 = require("../models");
|
|
7
6
|
const zod_1 = require("zod");
|
|
@@ -10,7 +9,7 @@ var ToolJobCompleteEvent;
|
|
|
10
9
|
ToolJobCompleteEvent.PayloadSchema = zod_1.z.object({
|
|
11
10
|
job: models_1.ToolJobSchema.extend({
|
|
12
11
|
toolType: zod_1.z.nativeEnum(enums_1.TOOL_TYPE),
|
|
13
|
-
|
|
12
|
+
origin: zod_1.z.nativeEnum(enums_1.JOB_REQUEST_ORIGIN).optional(),
|
|
14
13
|
}),
|
|
15
14
|
});
|
|
16
15
|
})(ToolJobCompleteEvent || (exports.ToolJobCompleteEvent = ToolJobCompleteEvent = {}));
|
|
@@ -6,6 +6,5 @@ const models_1 = require("../models");
|
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
7
|
var FindAllToolsQuery;
|
|
8
8
|
(function (FindAllToolsQuery) {
|
|
9
|
-
FindAllToolsQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
10
9
|
FindAllToolsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.array(models_1.ToolSchema));
|
|
11
10
|
})(FindAllToolsQuery || (exports.FindAllToolsQuery = FindAllToolsQuery = {}));
|
|
@@ -6,6 +6,5 @@ const models_1 = require("../models");
|
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
7
|
var FindGroupedToolsQuery;
|
|
8
8
|
(function (FindGroupedToolsQuery) {
|
|
9
|
-
FindGroupedToolsQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
10
9
|
FindGroupedToolsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(zod_1.z.array(models_1.ToolGroupSchema));
|
|
11
10
|
})(FindGroupedToolsQuery || (exports.FindGroupedToolsQuery = FindGroupedToolsQuery = {}));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetGlobalToolsConfigQuery = 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 GetGlobalToolsConfigQuery;
|
|
7
7
|
(function (GetGlobalToolsConfigQuery) {
|
|
8
|
-
GetGlobalToolsConfigQuery.
|
|
9
|
-
GetGlobalToolsConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.GlobalToolsConfigSchema);
|
|
8
|
+
GetGlobalToolsConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.GlobalToolsConfigSchema);
|
|
10
9
|
})(GetGlobalToolsConfigQuery || (exports.GetGlobalToolsConfigQuery = GetGlobalToolsConfigQuery = {}));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetToolsWithConfigsQuery = 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 GetToolsWithConfigsQuery;
|
|
7
7
|
(function (GetToolsWithConfigsQuery) {
|
|
8
|
-
GetToolsWithConfigsQuery.
|
|
9
|
-
GetToolsWithConfigsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ToolsWithConfigsSchema);
|
|
8
|
+
GetToolsWithConfigsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ToolsWithConfigsSchema);
|
|
10
9
|
})(GetToolsWithConfigsQuery || (exports.GetToolsWithConfigsQuery = GetToolsWithConfigsQuery = {}));
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetTTSConfigQuery = 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 GetTTSConfigQuery;
|
|
7
7
|
(function (GetTTSConfigQuery) {
|
|
8
|
-
GetTTSConfigQuery.
|
|
9
|
-
GetTTSConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.TTSConfigSchema);
|
|
8
|
+
GetTTSConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.TTSConfigSchema);
|
|
10
9
|
})(GetTTSConfigQuery || (exports.GetTTSConfigQuery = GetTTSConfigQuery = {}));
|
|
@@ -5,11 +5,9 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const video_job_schema_1 = require("../models/video-job.schema");
|
|
7
7
|
const models_1 = require("../models");
|
|
8
|
-
const common_1 = require("../../common");
|
|
9
8
|
var RetryVideoJobCommand;
|
|
10
9
|
(function (RetryVideoJobCommand) {
|
|
11
10
|
RetryVideoJobCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
locale: common_1.LocaleSchema,
|
|
13
11
|
uuid: zod_1.z.string().uuid(),
|
|
14
12
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
13
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
@@ -8,7 +8,6 @@ var GetVideoModelByUuidCommand;
|
|
|
8
8
|
(function (GetVideoModelByUuidCommand) {
|
|
9
9
|
GetVideoModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetVideoModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoModelSchema);
|
|
14
13
|
})(GetVideoModelByUuidCommand || (exports.GetVideoModelByUuidCommand = GetVideoModelByUuidCommand = {}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VideoCommand = 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 tool_workspace_1 = require("../../tool-workspace");
|
|
8
7
|
const tools_1 = require("../../tools");
|
|
9
8
|
const video_job_schema_1 = require("../models/video-job.schema");
|
|
@@ -11,7 +10,6 @@ const models_1 = require("../models");
|
|
|
11
10
|
var VideoCommand;
|
|
12
11
|
(function (VideoCommand) {
|
|
13
12
|
VideoCommand.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(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetVideoConfigQuery = 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 GetVideoConfigQuery;
|
|
7
7
|
(function (GetVideoConfigQuery) {
|
|
8
|
-
GetVideoConfigQuery.
|
|
9
|
-
GetVideoConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoConfigSchema);
|
|
8
|
+
GetVideoConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.VideoConfigSchema);
|
|
10
9
|
})(GetVideoConfigQuery || (exports.GetVideoConfigQuery = GetVideoConfigQuery = {}));
|
|
@@ -8,7 +8,6 @@ var GetVideoEditorModelByUuidCommand;
|
|
|
8
8
|
(function (GetVideoEditorModelByUuidCommand) {
|
|
9
9
|
GetVideoEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
|
-
locale: common_1.LocaleSchema,
|
|
12
11
|
});
|
|
13
12
|
GetVideoEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoEditorModelSchema);
|
|
14
13
|
})(GetVideoEditorModelByUuidCommand || (exports.GetVideoEditorModelByUuidCommand = GetVideoEditorModelByUuidCommand = {}));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetVideoEditorConfigQuery = 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 GetVideoEditorConfigQuery;
|
|
7
8
|
(function (GetVideoEditorConfigQuery) {
|
|
8
|
-
GetVideoEditorConfigQuery.RequestSchema =
|
|
9
|
-
GetVideoEditorConfigQuery.ResponseSchema = (0,
|
|
9
|
+
GetVideoEditorConfigQuery.RequestSchema = zod_1.z.object({});
|
|
10
|
+
GetVideoEditorConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.VideoEditorConfigSchema);
|
|
10
11
|
})(GetVideoEditorConfigQuery || (exports.GetVideoEditorConfigQuery = GetVideoEditorConfigQuery = {}));
|
|
@@ -7,7 +7,6 @@ const models_1 = require("../models");
|
|
|
7
7
|
var CreateWriterDocumentCommand;
|
|
8
8
|
(function (CreateWriterDocumentCommand) {
|
|
9
9
|
CreateWriterDocumentCommand.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(),
|
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateWriterDocumentOutlineCommand = 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 GenerateWriterDocumentOutlineCommand;
|
|
9
8
|
(function (GenerateWriterDocumentOutlineCommand) {
|
|
10
9
|
GenerateWriterDocumentOutlineCommand.RequestSchema = zod_1.z.object({
|
|
11
10
|
uuid: zod_1.z.string().uuid(),
|
|
12
|
-
locale: locale_schema_1.LocaleSchema,
|
|
13
11
|
numPages: zod_1.z.number(),
|
|
14
12
|
description: zod_1.z.string().nullable().optional(),
|
|
15
13
|
userId: 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 GetWriterConfigQuery;
|
|
7
7
|
(function (GetWriterConfigQuery) {
|
|
8
|
-
GetWriterConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
|
|
9
8
|
GetWriterConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.WriterConfigSchema);
|
|
10
9
|
})(GetWriterConfigQuery || (exports.GetWriterConfigQuery = GetWriterConfigQuery = {}));
|
package/common/models/index.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common';
|
|
3
3
|
import { DiagramsJobParamsSchema, DiagramsJobSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace DiagramsCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
-
locale: LocaleSchema,
|
|
8
7
|
userId: z.string().uuid().nullable().optional(),
|
|
9
8
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
9
|
prompt: z.string(),
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common';
|
|
3
3
|
import { DiagramsJobSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace EditDiagramsJobCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
-
locale: LocaleSchema,
|
|
8
7
|
userId: z.string().uuid().nullable().optional(),
|
|
9
8
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
10
9
|
uuid: z.string().uuid(),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema } from '../../common';
|
|
3
|
+
|
|
4
|
+
export namespace GetDiagramsPriceCalculationDataCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
modelId: z.string().uuid(),
|
|
7
|
+
chartTypeUuid: z.string().uuid(),
|
|
8
|
+
dataTextLength: z.number().int().nonnegative().optional(),
|
|
9
|
+
jobId: z.string().uuid().optional(),
|
|
10
|
+
parentVersionUuid: z.string().uuid().optional(),
|
|
11
|
+
});
|
|
12
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
13
|
+
|
|
14
|
+
export const ResponseDataSchema = z.object({
|
|
15
|
+
modelPricing: z.object({
|
|
16
|
+
inputPrice: z.number(),
|
|
17
|
+
outputPrice: z.number(),
|
|
18
|
+
}),
|
|
19
|
+
effectivePromptLength: z.number(),
|
|
20
|
+
});
|
|
21
|
+
export type ResponseData = z.infer<typeof ResponseDataSchema>;
|
|
22
|
+
|
|
23
|
+
export const ResponseSchema = ICommandResponseSchema(ResponseDataSchema);
|
|
24
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
25
|
+
}
|
|
@@ -5,3 +5,4 @@ export * from './set-reaction-to-diagrams-job.command';
|
|
|
5
5
|
export * from './retry-diagrams-job.command';
|
|
6
6
|
export * from './delete-diagrams-job-by-uuid.command';
|
|
7
7
|
export * from './delete-all-diagrams-jobs.command';
|
|
8
|
+
export * from './get-diagrams-price-calculation-data.command';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
4
3
|
import { DiagramsJobParamsSchema, DiagramsJobSchema } from '../models';
|
|
5
4
|
|
|
6
5
|
export namespace RetryDiagramsJobCommand {
|
|
7
6
|
export const RequestSchema = z.object({
|
|
8
|
-
locale: LocaleSchema,
|
|
9
7
|
uuid: z.string().uuid(),
|
|
10
8
|
userId: z.string().uuid().nullable().optional(),
|
|
11
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { DiagramsConfigSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace GetDiagramsConfigQuery {
|
|
6
|
-
export const
|
|
7
|
-
export type Request = z.infer<typeof
|
|
6
|
+
export const Request = z.object({});
|
|
7
|
+
export type Request = z.infer<typeof Request>;
|
|
8
8
|
export const ResponseSchema = ICommandResponseSchema(DiagramsConfigSchema);
|
|
9
9
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const DIAGRAMS_AMQP_ROUTES = {
|
|
2
2
|
EXECUTE: 'tools.diagrams.execute.rpc',
|
|
3
3
|
CONFIG: 'tools.diagrams.config.rpc',
|
|
4
|
+
GET_PRICE_CALCULATION_DATA: 'tools.diagrams.price-calculation-data.rpc',
|
|
4
5
|
GET_JOB: 'tools.diagrams.jobs.get.rpc',
|
|
5
6
|
LIST_JOBS: 'tools.diagrams.jobs.list.rpc',
|
|
6
7
|
EDIT: 'tools.diagrams.jobs.edit.rpc',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
import { HTML_PAGE_BUILDER_SESSION_STAGE } from '../enums';
|
|
4
|
+
|
|
5
|
+
export namespace GetHtmlPageBuilderPriceCalculationDataCommand {
|
|
6
|
+
export const RequestSchema = z.object({
|
|
7
|
+
modelId: z.string().uuid(),
|
|
8
|
+
inputLength: z.number().int().nonnegative(),
|
|
9
|
+
sessionId: z.string().uuid().nullable().optional(),
|
|
10
|
+
});
|
|
11
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
|
|
13
|
+
export const ResponseDataSchema = z.object({
|
|
14
|
+
modelPricing: z.object({
|
|
15
|
+
inputPrice: z.number(),
|
|
16
|
+
outputPrice: z.number(),
|
|
17
|
+
}),
|
|
18
|
+
effectivePromptLength: z.number(),
|
|
19
|
+
breakdown: z.object({
|
|
20
|
+
systemPromptLength: z.number(),
|
|
21
|
+
inputLength: z.number(),
|
|
22
|
+
currentHtmlLength: z.number(),
|
|
23
|
+
userPromptTemplateOverheadLength: z.number(),
|
|
24
|
+
modeHintLength: z.number(),
|
|
25
|
+
userMessageLength: z.number(),
|
|
26
|
+
attachmentsTextLength: z.number(),
|
|
27
|
+
}),
|
|
28
|
+
metadata: z.object({
|
|
29
|
+
mode: z.nativeEnum(HTML_PAGE_BUILDER_SESSION_STAGE),
|
|
30
|
+
modelId: z.string().uuid(),
|
|
31
|
+
sessionId: z.string().uuid().nullable(),
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
export type ResponseData = z.infer<typeof ResponseDataSchema>;
|
|
35
|
+
|
|
36
|
+
export const ResponseSchema = ICommandResponseSchema(ResponseDataSchema);
|
|
37
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
38
|
+
}
|
|
@@ -3,30 +3,16 @@ import { ICommandResponseSchema } from '../../common/models/command-response.sch
|
|
|
3
3
|
import { HtmlPageBuilderJobParamsSchema, HtmlPageBuilderSessionSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace HtmlPageBuilderExecuteCommand {
|
|
6
|
-
export const RequestSchema = z
|
|
7
|
-
.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})
|
|
17
|
-
.refine(
|
|
18
|
-
(data) => {
|
|
19
|
-
return !(data.userId && data.unregisteredUserId);
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
message: 'userId and unregisteredUserId cannot be used together',
|
|
23
|
-
path: ['userId', 'unregisteredUserId'],
|
|
24
|
-
},
|
|
25
|
-
)
|
|
26
|
-
.refine((data) => Boolean(data.userId ?? data.unregisteredUserId), {
|
|
27
|
-
message: 'userId or unregisteredUserId is required',
|
|
28
|
-
path: ['userId', 'unregisteredUserId'],
|
|
29
|
-
});
|
|
6
|
+
export const RequestSchema = z.object({
|
|
7
|
+
userId: z.string().uuid().nullable().optional(),
|
|
8
|
+
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
9
|
+
sessionId: z.string().uuid().optional(),
|
|
10
|
+
userPrompt: z.string(),
|
|
11
|
+
modelId: z.string().uuid(),
|
|
12
|
+
params: HtmlPageBuilderJobParamsSchema,
|
|
13
|
+
tokenReservationId: z.string().uuid().optional(),
|
|
14
|
+
precalculatedPrice: z.number().optional(),
|
|
15
|
+
});
|
|
30
16
|
export type Request = z.infer<typeof RequestSchema>;
|
|
31
17
|
|
|
32
18
|
export const ResponseSchema = ICommandResponseSchema(HtmlPageBuilderSessionSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './create-html-page-builder-session.command';
|
|
2
|
-
export * from './get-html-page-builder-price.command';
|
|
2
|
+
export * from './get-html-page-builder-price-calculation-data.command';
|
|
3
3
|
export * from './html-page-builder-execute.command';
|
|
4
4
|
export * from './soft-delete-all-html-page-builder-sessions.command';
|
|
5
5
|
export * from './soft-delete-html-page-builder-session-by-uuid.command';
|
|
@@ -9,6 +9,7 @@ export const HtmlPageBuilderSessionSchema = z.object({
|
|
|
9
9
|
status: z.nativeEnum(JOB_STATUS),
|
|
10
10
|
stage: z.nativeEnum(HTML_PAGE_BUILDER_SESSION_STAGE),
|
|
11
11
|
currentHtml: z.string().nullable().optional(),
|
|
12
|
+
lastUsedModelId: z.string().uuid().nullable().optional(),
|
|
12
13
|
userId: z.string().nullable().optional(),
|
|
13
14
|
unregisteredUserId: z.string().nullable().optional(),
|
|
14
15
|
isDeleted: z.boolean(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common';
|
|
3
3
|
import { HtmlPageBuilderConfigSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace GetHtmlPageBuilderConfigQuery {
|
|
6
|
-
export const RequestSchema =
|
|
6
|
+
export const RequestSchema = z.object({});
|
|
7
7
|
export type Request = z.infer<typeof RequestSchema>;
|
|
8
8
|
|
|
9
9
|
export const ResponseSchema = ICommandResponseSchema(HtmlPageBuilderConfigSchema);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const HTML_PAGE_BUILDER_AMQP_ROUTES = {
|
|
2
2
|
CONFIG: 'tools.html-page-builder.config.rpc',
|
|
3
3
|
EXECUTE: 'tools.html-page-builder.execute.rpc',
|
|
4
|
-
|
|
4
|
+
GET_PRICE_CALCULATION_DATA: 'tools.html-page-builder.get-price-calculation-data.rpc',
|
|
5
5
|
CREATE_SESSION: 'tools.html-page-builder.sessions.create.rpc',
|
|
6
6
|
LIST_SESSIONS: 'tools.html-page-builder.sessions.list.rpc',
|
|
7
7
|
GET_SESSION: 'tools.html-page-builder.sessions.get.rpc',
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ImageEditorModelSchema } from '../../models';
|
|
3
|
-
import { ICommandResponseSchema
|
|
3
|
+
import { ICommandResponseSchema } from '../../../common';
|
|
4
4
|
|
|
5
5
|
export namespace GetImageEditorModelByUuidCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
7
|
uuid: z.string().uuid(),
|
|
8
|
-
locale: LocaleSchema,
|
|
9
8
|
});
|
|
10
9
|
export type Request = z.infer<typeof RequestSchema>;
|
|
11
10
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import { LocaleSchema } from '../../common/models/locale.schema';
|
|
4
3
|
import { ImageEditorJobSchema } from '../models';
|
|
5
4
|
import { AttachedFileSchema } from '../../common';
|
|
6
5
|
import { TOOL_WORKSPACE_ITEM_SLOT } from '../../tool-workspace';
|
|
@@ -8,7 +7,6 @@ import { TOOL_CONTENT_TYPE } from '../../tools';
|
|
|
8
7
|
|
|
9
8
|
export namespace ImageEditorCommand {
|
|
10
9
|
export const RequestSchema = z.object({
|
|
11
|
-
locale: LocaleSchema,
|
|
12
10
|
userId: z.string().uuid().nullable().optional(),
|
|
13
11
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
14
12
|
workspaceId: z.string().uuid().nullable().optional(),
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageEditorJobParamsSchema, ImageEditorJobSchema } from '../models';
|
|
4
|
-
import { LocaleSchema } from '../../common';
|
|
5
4
|
|
|
6
5
|
export namespace RetryImageEditorJobCommand {
|
|
7
6
|
export const RequestSchema = z.object({
|
|
8
|
-
locale: LocaleSchema,
|
|
9
7
|
uuid: z.string().uuid(),
|
|
10
8
|
userId: z.string().uuid().nullable().optional(),
|
|
11
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageEditorConfigSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace GetImageEditorConfigQuery {
|
|
6
|
-
export const RequestSchema = LocaleRequestSchema;
|
|
7
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
|
|
9
6
|
export const ResponseSchema = ICommandResponseSchema(ImageEditorConfigSchema);
|
|
10
7
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
8
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import {
|
|
3
|
+
import { JOB_REQUEST_ORIGIN } from '../../tools';
|
|
4
4
|
import { ImageGenerationJobSchema, ImageGenerationRequestParamsSchema } from '../models';
|
|
5
|
-
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
6
5
|
|
|
7
6
|
export namespace ExecuteImageGenerationCommand {
|
|
8
7
|
export const RequestSchema = z.object({
|
|
9
|
-
locale: LocaleSchema,
|
|
10
8
|
userId: z.string().uuid().nullable().optional(),
|
|
11
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
12
10
|
prompt: z.string(),
|
|
13
11
|
modelId: z.string().uuid(),
|
|
14
12
|
params: ImageGenerationRequestParamsSchema,
|
|
15
13
|
presetId: z.string().uuid().nullable().optional(),
|
|
16
|
-
|
|
14
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API),
|
|
17
15
|
userHasActiveSubscriptionOrProduct: z.boolean(),
|
|
18
16
|
tokenReservationId: z.string().uuid(),
|
|
19
17
|
precalculatedPrice: z.number(),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ImageGenerationModelSchema } from '../../models';
|
|
3
|
-
import { ICommandResponseSchema
|
|
3
|
+
import { ICommandResponseSchema } from '../../../common';
|
|
4
4
|
|
|
5
5
|
export namespace GetImageGenerationModelByUuidCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
7
|
uuid: z.string().uuid(),
|
|
8
|
-
locale: LocaleSchema,
|
|
9
8
|
});
|
|
10
9
|
export type Request = z.infer<typeof RequestSchema>;
|
|
11
10
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageGenerationJobSchema, ImageGenerationRequestParamsSchema } from '../models';
|
|
4
|
-
import { LocaleSchema } from '../../common';
|
|
5
4
|
|
|
6
5
|
export namespace RetryImageGenerationJobCommand {
|
|
7
6
|
export const RequestSchema = z.object({
|
|
8
|
-
locale: LocaleSchema,
|
|
9
7
|
uuid: z.string().uuid(),
|
|
10
8
|
userId: z.string().uuid().nullable().optional(),
|
|
11
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { JOB_STATUS } from '../../tools';
|
|
2
|
+
import { JOB_REQUEST_ORIGIN, JOB_STATUS } from '../../tools';
|
|
3
3
|
import { AttachedFileSchema, USER_REACTION } from '../../common';
|
|
4
4
|
import { IMAGE_GENERATION_RESOLUTION } from '../enums';
|
|
5
|
-
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
6
5
|
|
|
7
6
|
export const ImageGenerationJobParamsSchema = z.object({
|
|
8
7
|
aspectRatio: z.string(),
|
|
@@ -31,8 +30,7 @@ export const ImageGenerationJobSchema = z.object({
|
|
|
31
30
|
userId: z.string().nullable().optional(),
|
|
32
31
|
unregisteredUserId: z.string().nullable().optional(),
|
|
33
32
|
isPublished: z.boolean(),
|
|
34
|
-
origin: z.
|
|
35
|
-
callOrigin: z.nativeEnum(STATISTICS_CALL_ORIGIN),
|
|
33
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN),
|
|
36
34
|
postId: z.string().nullable(),
|
|
37
35
|
isDeleted: z.boolean(),
|
|
38
36
|
internalError: z.string().nullable(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageGenerationJobSchema } from '../models';
|
|
4
|
-
import {
|
|
4
|
+
import { JOB_REQUEST_ORIGIN } from '../../tools/enums/job-request-origin.enum';
|
|
5
5
|
|
|
6
6
|
export namespace FindImageGenerationJobsQuery {
|
|
7
7
|
export const RequestSchema = z
|
|
@@ -11,7 +11,7 @@ export namespace FindImageGenerationJobsQuery {
|
|
|
11
11
|
title: z.string().optional(),
|
|
12
12
|
limit: z.coerce.number().min(1).optional(),
|
|
13
13
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
14
|
-
|
|
14
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).optional(),
|
|
15
15
|
})
|
|
16
16
|
.refine(
|
|
17
17
|
(data) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ICommandResponseSchema
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageGenerationConfigSchema } from '../models';
|
|
4
4
|
|
|
5
5
|
export namespace GetImageGenerationConfigQuery {
|
|
6
|
-
export const RequestSchema =
|
|
6
|
+
export const RequestSchema = z.object({});
|
|
7
7
|
export type Request = z.infer<typeof RequestSchema>;
|
|
8
8
|
|
|
9
9
|
export const ResponseSchema = ICommandResponseSchema(ImageGenerationConfigSchema);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
-
import { AttachedFileSchema
|
|
3
|
+
import { AttachedFileSchema } from '../../common';
|
|
4
4
|
|
|
5
5
|
export namespace GetInteriorDesignPriceCommand {
|
|
6
6
|
export const RequestSchema = z.object({
|
|
7
|
-
locale: LocaleSchema,
|
|
8
7
|
modelId: z.string().uuid(),
|
|
9
8
|
userId: z.string().uuid().nullable().optional(),
|
|
10
9
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|