@purpleschool/gptbot 0.7.57-presentations → 0.7.58-presentations

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.
@@ -8,7 +8,7 @@ var GenerateAndInsertSlideCommand;
8
8
  (function (GenerateAndInsertSlideCommand) {
9
9
  GenerateAndInsertSlideCommand.RequestSchema = zod_1.z.object({
10
10
  contentTypeId: zod_1.z.nativeEnum(constants_1.SLIDE_CONTENT_TYPE),
11
- prompt: zod_1.z.string().min(1).max(10000).optional(),
11
+ prompt: zod_1.z.string().max(10000).optional(),
12
12
  title: zod_1.z.string().min(1).max(80),
13
13
  position: zod_1.z.number().min(0),
14
14
  layoutId: zod_1.z.nativeEnum(constants_1.SLIDE_LAYOUT).optional(),
@@ -2011,4 +2011,9 @@ exports.ERRORS = {
2011
2011
  message: 'Произошла ошибка при обновлении изображения на слайде',
2012
2012
  httpCode: 500,
2013
2013
  },
2014
+ FILE_TYPE_NOT_SUPPORTED: {
2015
+ code: 'A413',
2016
+ message: 'Неподдерживаемый тип файла',
2017
+ httpCode: 400,
2018
+ },
2014
2019
  };
@@ -5,7 +5,7 @@ import { SLIDE_CONTENT_TYPE, SLIDE_LAYOUT } from '../../../constants';
5
5
  export namespace GenerateAndInsertSlideCommand {
6
6
  export const RequestSchema = z.object({
7
7
  contentTypeId: z.nativeEnum(SLIDE_CONTENT_TYPE),
8
- prompt: z.string().min(1).max(10000).optional(),
8
+ prompt: z.string().max(10000).optional(),
9
9
  title: z.string().min(1).max(80),
10
10
  position: z.number().min(0),
11
11
  layoutId: z.nativeEnum(SLIDE_LAYOUT).optional(),
@@ -2019,4 +2019,9 @@ export const ERRORS = {
2019
2019
  message: 'Произошла ошибка при обновлении изображения на слайде',
2020
2020
  httpCode: 500,
2021
2021
  },
2022
+ FILE_TYPE_NOT_SUPPORTED: {
2023
+ code: 'A413',
2024
+ message: 'Неподдерживаемый тип файла',
2025
+ httpCode: 400,
2026
+ },
2022
2027
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.57-presentations",
3
+ "version": "0.7.58-presentations",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",