@purpleschool/rugpt-lib-common 0.0.30 → 0.0.32
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/enums/index.js +0 -1
- package/build/errors/errors.js +10 -0
- package/build/index.js +1 -0
- package/build/{enums/tools-api → tools-api}/commands/save-file.command.js +2 -1
- package/enums/index.ts +0 -1
- package/errors/errors.ts +10 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/{enums/tools-api → tools-api}/commands/save-file.command.ts +2 -1
- /package/build/{enums/tools-api → tools-api}/commands/index.js +0 -0
- /package/build/{enums/tools-api → tools-api}/index.js +0 -0
- /package/build/{enums/tools-api → tools-api}/tools-api.amqp.routes.js +0 -0
- /package/{enums/tools-api → tools-api}/commands/index.ts +0 -0
- /package/{enums/tools-api → tools-api}/index.ts +0 -0
- /package/{enums/tools-api → tools-api}/tools-api.amqp.routes.ts +0 -0
package/build/enums/index.js
CHANGED
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ai-model-status.enum"), exports);
|
|
18
18
|
__exportStar(require("./locale.enum"), exports);
|
|
19
19
|
__exportStar(require("./statistics"), exports);
|
|
20
|
-
__exportStar(require("./tools-api"), exports);
|
package/build/errors/errors.js
CHANGED
|
@@ -3108,6 +3108,16 @@ exports.ERRORS = {
|
|
|
3108
3108
|
httpCode: 404,
|
|
3109
3109
|
message: "Инструмент не найден",
|
|
3110
3110
|
},
|
|
3111
|
+
PREVIEW_GENERATION_ERROR: {
|
|
3112
|
+
code: 'TOOL.PREVIEW_GENERATION_ERROR',
|
|
3113
|
+
httpCode: 500,
|
|
3114
|
+
message: 'Произошла ошибка при генерации preview-изображения',
|
|
3115
|
+
},
|
|
3116
|
+
PREVIEW_UPLOAD_ERROR: {
|
|
3117
|
+
code: 'TOOL.PREVIEW_UPLOAD_ERROR',
|
|
3118
|
+
httpCode: 500,
|
|
3119
|
+
message: 'Произошла ошибка при загрузке preview-изображения',
|
|
3120
|
+
},
|
|
3111
3121
|
},
|
|
3112
3122
|
TRANSACTION: {
|
|
3113
3123
|
CHUNK_CREATE_ERROR: {
|
package/build/index.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SaveFileCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
6
|
var SaveFileCommand;
|
|
7
7
|
(function (SaveFileCommand) {
|
|
8
8
|
SaveFileCommand.RequestSchema = zod_1.z.object({
|
|
9
9
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
10
10
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
+
jobId: zod_1.z.string().uuid(),
|
|
11
12
|
fileUrls: zod_1.z.array(zod_1.z.string().url()).min(1),
|
|
12
13
|
});
|
|
13
14
|
const fileWithUuid = zod_1.z.object({
|
package/enums/index.ts
CHANGED
package/errors/errors.ts
CHANGED
|
@@ -3202,6 +3202,16 @@ export const ERRORS = {
|
|
|
3202
3202
|
httpCode: 404,
|
|
3203
3203
|
message: "Инструмент не найден",
|
|
3204
3204
|
},
|
|
3205
|
+
PREVIEW_GENERATION_ERROR: {
|
|
3206
|
+
code: 'TOOL.PREVIEW_GENERATION_ERROR',
|
|
3207
|
+
httpCode: 500,
|
|
3208
|
+
message: 'Произошла ошибка при генерации preview-изображения',
|
|
3209
|
+
},
|
|
3210
|
+
PREVIEW_UPLOAD_ERROR: {
|
|
3211
|
+
code: 'TOOL.PREVIEW_UPLOAD_ERROR',
|
|
3212
|
+
httpCode: 500,
|
|
3213
|
+
message: 'Произошла ошибка при загрузке preview-изображения',
|
|
3214
|
+
},
|
|
3205
3215
|
},
|
|
3206
3216
|
TRANSACTION: {
|
|
3207
3217
|
CHUNK_CREATE_ERROR: {
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ICommandResponseSchema } from "
|
|
2
|
+
import { ICommandResponseSchema } from "../../common";
|
|
3
3
|
|
|
4
4
|
export namespace SaveFileCommand {
|
|
5
5
|
export const RequestSchema = z.object({
|
|
6
6
|
userId: z.string().uuid().nullable().optional(),
|
|
7
7
|
unregisteredUserId: z.string().uuid().nullable().optional(),
|
|
8
|
+
jobId: z.string().uuid(),
|
|
8
9
|
fileUrls: z.array(z.string().url()).min(1),
|
|
9
10
|
});
|
|
10
11
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|