@purpleschool/gptbot-tools 0.0.119 → 0.0.120

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.
@@ -6,14 +6,10 @@ const command_response_schema_1 = require("../../common/models/command-response.
6
6
  const models_1 = require("../models");
7
7
  var FindImageGenerationJobByIdQuery;
8
8
  (function (FindImageGenerationJobByIdQuery) {
9
- FindImageGenerationJobByIdQuery.RequestSchema = zod_1.z
10
- .object({
9
+ FindImageGenerationJobByIdQuery.RequestSchema = zod_1.z.object({
11
10
  uuid: zod_1.z.string(),
12
11
  userId: zod_1.z.string().uuid().nullable().optional(),
13
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- })
15
- .refine((data) => data.userId || data.unregisteredUserId, {
16
- message: 'Either userId or unregisteredUserId must be provided',
17
13
  });
18
14
  FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationJobSchema);
19
15
  })(FindImageGenerationJobByIdQuery || (exports.FindImageGenerationJobByIdQuery = FindImageGenerationJobByIdQuery = {}));
@@ -6,14 +6,10 @@ const command_response_schema_1 = require("../../common/models/command-response.
6
6
  const video_editor_job_schema_1 = require("../models/video-editor-job.schema");
7
7
  var FindVideoEditorJobByIdQuery;
8
8
  (function (FindVideoEditorJobByIdQuery) {
9
- FindVideoEditorJobByIdQuery.RequestSchema = zod_1.z
10
- .object({
9
+ FindVideoEditorJobByIdQuery.RequestSchema = zod_1.z.object({
11
10
  uuid: zod_1.z.string(),
12
11
  userId: zod_1.z.string().uuid().nullable().optional(),
13
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
- })
15
- .refine((data) => data.userId || data.unregisteredUserId, {
16
- message: 'Either userId or unregisteredUserId must be provided',
17
13
  });
18
14
  FindVideoEditorJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(video_editor_job_schema_1.VideoEditorJobSchema);
19
15
  })(FindVideoEditorJobByIdQuery || (exports.FindVideoEditorJobByIdQuery = FindVideoEditorJobByIdQuery = {}));
@@ -3,15 +3,11 @@ import { ICommandResponseSchema } from '../../common/models/command-response.sch
3
3
  import { ImageGenerationJobSchema } from '../models';
4
4
 
5
5
  export namespace FindImageGenerationJobByIdQuery {
6
- export const RequestSchema = z
7
- .object({
8
- uuid: z.string(),
9
- userId: z.string().uuid().nullable().optional(),
10
- unregisteredUserId: z.string().uuid().nullable().optional(),
11
- })
12
- .refine((data) => data.userId || data.unregisteredUserId, {
13
- message: 'Either userId or unregisteredUserId must be provided',
14
- });
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ });
15
11
  export type Request = z.infer<typeof RequestSchema>;
16
12
 
17
13
  export const ResponseSchema = ICommandResponseSchema(ImageGenerationJobSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.119",
3
+ "version": "0.0.120",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -3,15 +3,11 @@ import { ICommandResponseSchema } from '../../common/models/command-response.sch
3
3
  import { VideoEditorJobSchema } from '../models/video-editor-job.schema';
4
4
 
5
5
  export namespace FindVideoEditorJobByIdQuery {
6
- export const RequestSchema = z
7
- .object({
8
- uuid: z.string(),
9
- userId: z.string().uuid().nullable().optional(),
10
- unregisteredUserId: z.string().uuid().nullable().optional(),
11
- })
12
- .refine((data) => data.userId || data.unregisteredUserId, {
13
- message: 'Either userId or unregisteredUserId must be provided',
14
- });
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ });
15
11
  export type Request = z.infer<typeof RequestSchema>;
16
12
 
17
13
  export const ResponseSchema = ICommandResponseSchema(VideoEditorJobSchema);