@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.
@@ -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);
@@ -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
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums"), exports);
18
18
  __exportStar(require("./errors"), exports);
19
19
  __exportStar(require("./common"), exports);
20
+ __exportStar(require("./tools-api"), exports);
@@ -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("../../../common");
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
@@ -1,4 +1,3 @@
1
1
  export * from './ai-model-status.enum';
2
2
  export * from './locale.enum';
3
3
  export * from './statistics';
4
- export * from './tools-api';
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
@@ -1,3 +1,4 @@
1
1
  export * from './enums';
2
2
  export * from './errors';
3
3
  export * from './common';
4
+ export * from './tools-api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/rugpt-lib-common",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,10 +1,11 @@
1
1
  import { z } from "zod";
2
- import { ICommandResponseSchema } from "../../../common";
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