@purpleschool/gptbot-tools 0.0.126 → 0.0.128

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.
@@ -19,7 +19,7 @@ var UpdatePublishedStatusMusicJobsCommand;
19
19
  postId: zod_1.z.string().nullable().optional(),
20
20
  })
21
21
  .refine((data) => (data.isPublished ? !!data.postId : true), {
22
- message: 'Post ID is required when job is published',
22
+ message: 'Post ID is required when track is published',
23
23
  path: ['postId'],
24
24
  }),
25
25
  });
@@ -46,8 +46,6 @@ exports.MusicJobSchema = zod_1.z.object({
46
46
  attempts: zod_1.z.array(zod_1.z.any()),
47
47
  userId: zod_1.z.string().nullable().optional(),
48
48
  unregisteredUserId: zod_1.z.string().nullable().optional(),
49
- isPublished: zod_1.z.boolean(),
50
- postId: zod_1.z.string().nullable(),
51
49
  isDeleted: zod_1.z.boolean(),
52
50
  createdAt: zod_1.z.date(),
53
51
  completedAt: zod_1.z.date().nullable().optional(),
@@ -11,6 +11,8 @@ exports.MusicTrackSchema = zod_1.z.object({
11
11
  prompt: zod_1.z.string().nullable(),
12
12
  tags: zod_1.z.string(),
13
13
  duration: zod_1.z.number(),
14
+ isPublished: zod_1.z.boolean().optional(),
15
+ postId: zod_1.z.string().nullable().optional(),
14
16
  genJobId: zod_1.z.string().nullable().optional(),
15
17
  editorJobId: zod_1.z.string().nullable().optional(),
16
18
  createdAt: zod_1.z.date(),
@@ -16,7 +16,7 @@ export namespace UpdatePublishedStatusMusicJobsCommand {
16
16
  postId: z.string().nullable().optional(),
17
17
  })
18
18
  .refine((data) => (data.isPublished ? !!data.postId : true), {
19
- message: 'Post ID is required when job is published',
19
+ message: 'Post ID is required when track is published',
20
20
  path: ['postId'],
21
21
  }),
22
22
  });
@@ -47,8 +47,6 @@ export const MusicJobSchema = z.object({
47
47
  attempts: z.array(z.any()),
48
48
  userId: z.string().nullable().optional(),
49
49
  unregisteredUserId: z.string().nullable().optional(),
50
- isPublished: z.boolean(),
51
- postId: z.string().nullable(),
52
50
  isDeleted: z.boolean(),
53
51
  createdAt: z.date(),
54
52
  completedAt: z.date().nullable().optional(),
@@ -9,6 +9,8 @@ export const MusicTrackSchema = z.object({
9
9
  prompt: z.string().nullable(),
10
10
  tags: z.string(),
11
11
  duration: z.number(),
12
+ isPublished: z.boolean().optional(),
13
+ postId: z.string().nullable().optional(),
12
14
 
13
15
  genJobId: z.string().nullable().optional(),
14
16
  editorJobId: z.string().nullable().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {