@purpleschool/gptbot 0.7.38-texteditor → 0.7.39-texteditor

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.
@@ -5,8 +5,6 @@ const zod_1 = require("zod");
5
5
  const writer_document_type_schema_1 = require("./writer-document-type.schema");
6
6
  const writer_ai_action_schema_1 = require("./writer-ai-action.schema");
7
7
  exports.WriterConfigSchema = zod_1.z.object({
8
- minPages: zod_1.z.number(),
9
- maxPages: zod_1.z.number(),
10
8
  maxPromptLength: zod_1.z.number(),
11
9
  documentTypes: zod_1.z.array(writer_document_type_schema_1.WriterDocumentTypeSchema),
12
10
  aiActions: zod_1.z.array(writer_ai_action_schema_1.WriterAiActionSchema),
@@ -2,13 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WriterDocumentTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const icon_variants_schema_1 = require("../../icon-variants.schema");
5
6
  exports.WriterDocumentTypeSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  title: zod_1.z.string(),
8
- icon: zod_1.z.string(),
9
+ icons: icon_variants_schema_1.IconVariantsSchema,
9
10
  order: zod_1.z.number(),
10
11
  minPages: zod_1.z.number(),
11
12
  maxPages: zod_1.z.number(),
13
+ pageRange: zod_1.z.array(zod_1.z.number()),
12
14
  createdAt: zod_1.z.date(),
13
15
  updatedAt: zod_1.z.date(),
14
16
  });
@@ -3,8 +3,6 @@ import { WriterDocumentTypeSchema } from './writer-document-type.schema';
3
3
  import { WriterAiActionSchema } from './writer-ai-action.schema';
4
4
 
5
5
  export const WriterConfigSchema = z.object({
6
- minPages: z.number(),
7
- maxPages: z.number(),
8
6
  maxPromptLength: z.number(),
9
7
  documentTypes: z.array(WriterDocumentTypeSchema),
10
8
  aiActions: z.array(WriterAiActionSchema),
@@ -1,12 +1,14 @@
1
1
  import { z } from 'zod';
2
+ import { IconVariantsSchema } from '../../icon-variants.schema';
2
3
 
3
4
  export const WriterDocumentTypeSchema = z.object({
4
5
  uuid: z.string().uuid(),
5
6
  title: z.string(),
6
- icon: z.string(),
7
+ icons: IconVariantsSchema,
7
8
  order: z.number(),
8
9
  minPages: z.number(),
9
10
  maxPages: z.number(),
11
+ pageRange: z.array(z.number()),
10
12
  createdAt: z.date(),
11
13
  updatedAt: z.date(),
12
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.7.38-texteditor",
3
+ "version": "0.7.39-texteditor",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",