@purpleschool/gptbot 0.6.10 → 0.6.12

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,12 +8,10 @@ var UpdateChatCommand;
8
8
  UpdateChatCommand.RequestParamsSchema = models_1.ChatSchema.pick({
9
9
  uuid: true,
10
10
  });
11
- UpdateChatCommand.RequestSchema = zod_1.z
12
- .object({
13
- title: zod_1.z.string().max(65),
14
- folderId: zod_1.z.string().uuid(),
15
- })
16
- .partial();
11
+ UpdateChatCommand.RequestSchema = zod_1.z.object({
12
+ title: zod_1.z.string().max(65).optional(),
13
+ folderId: zod_1.z.string().uuid().nullable().optional(),
14
+ });
17
15
  UpdateChatCommand.ResponseSchema = zod_1.z.object({
18
16
  data: models_1.ChatSchema,
19
17
  });
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DeleteFolderCommand = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
- const __1 = require("../..");
8
+ const models_1 = require("../../models");
9
9
  var DeleteFolderCommand;
10
10
  (function (DeleteFolderCommand) {
11
- DeleteFolderCommand.RequestSchema = __1.FolderSchema.pick({
11
+ DeleteFolderCommand.RequestSchema = models_1.FolderSchema.pick({
12
12
  uuid: true,
13
13
  });
14
14
  DeleteFolderCommand.ResponseSchema = zod_1.default.object({
@@ -13,6 +13,7 @@ exports.ChatSchema = zod_1.z.object({
13
13
  title: zod_1.z.string(),
14
14
  chatStatus: zod_1.z.enum(Object.values(constants_1.CHAT_STATUS_ENUM)),
15
15
  messages: zod_1.z.array(message_schema_1.MessageSchema),
16
+ folderId: zod_1.z.string().nullable(),
16
17
  createdAt: zod_1.z.date(),
17
18
  updatedAt: zod_1.z.date(),
18
19
  deletedAt: zod_1.z.nullable(zod_1.z.date()),
@@ -7,12 +7,10 @@ export namespace UpdateChatCommand {
7
7
  });
8
8
  export type RequestParams = z.infer<typeof RequestParamsSchema>;
9
9
 
10
- export const RequestSchema = z
11
- .object({
12
- title: z.string().max(65),
13
- folderId: z.string().uuid(),
14
- })
15
- .partial();
10
+ export const RequestSchema = z.object({
11
+ title: z.string().max(65).optional(),
12
+ folderId: z.string().uuid().nullable().optional(),
13
+ });
16
14
 
17
15
  export type RequestBody = z.infer<typeof RequestSchema>;
18
16
 
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- import { FolderSchema } from '../..';
2
+ import { FolderSchema } from '../../models';
3
3
 
4
4
  export namespace DeleteFolderCommand {
5
5
  export const RequestSchema = FolderSchema.pick({
@@ -11,6 +11,7 @@ export const ChatSchema = z.object({
11
11
  title: z.string(),
12
12
  chatStatus: z.enum(Object.values(CHAT_STATUS_ENUM) as [TChatStatusEnum]),
13
13
  messages: z.array(MessageSchema),
14
+ folderId: z.string().nullable(),
14
15
 
15
16
  createdAt: z.date(),
16
17
  updatedAt: z.date(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",