@purpleschool/gptbot-tools 0.0.135 → 0.1.134
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.
- package/build/image-generation/models/image-generation-job.schema.js +0 -1
- package/build/image-generation/queries/find-image-generation-jobs.query.js +0 -2
- package/image-generation/models/image-generation-job.schema.ts +1 -2
- package/image-generation/queries/find-image-generation-jobs.query.ts +0 -2
- package/package.json +1 -1
|
@@ -29,7 +29,6 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
|
|
|
29
29
|
userId: zod_1.z.string().nullable().optional(),
|
|
30
30
|
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
31
31
|
isPublished: zod_1.z.boolean(),
|
|
32
|
-
origin: zod_1.z.nativeEnum(tools_1.JOB_REQUEST_ORIGIN),
|
|
33
32
|
postId: zod_1.z.string().nullable(),
|
|
34
33
|
isDeleted: zod_1.z.boolean(),
|
|
35
34
|
internalError: zod_1.z.string().nullable(),
|
|
@@ -4,7 +4,6 @@ exports.FindImageGenerationJobsQuery = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
6
|
const models_1 = require("../models");
|
|
7
|
-
const job_request_origin_enum_1 = require("../../tools/enums/job-request-origin.enum");
|
|
8
7
|
var FindImageGenerationJobsQuery;
|
|
9
8
|
(function (FindImageGenerationJobsQuery) {
|
|
10
9
|
FindImageGenerationJobsQuery.RequestSchema = zod_1.z
|
|
@@ -14,7 +13,6 @@ var FindImageGenerationJobsQuery;
|
|
|
14
13
|
title: zod_1.z.string().optional(),
|
|
15
14
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
16
15
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
17
|
-
origin: zod_1.z.nativeEnum(job_request_origin_enum_1.JOB_REQUEST_ORIGIN).optional(),
|
|
18
16
|
})
|
|
19
17
|
.refine((data) => {
|
|
20
18
|
return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { JOB_STATUS } from '../../tools';
|
|
3
3
|
import { AttachedFileSchema, USER_REACTION } from '../../common';
|
|
4
4
|
import { IMAGE_GENERATION_RESOLUTION } from '../enums';
|
|
5
5
|
|
|
@@ -29,7 +29,6 @@ export const ImageGenerationJobSchema = z.object({
|
|
|
29
29
|
userId: z.string().nullable().optional(),
|
|
30
30
|
unregisteredUserId: z.string().nullable().optional(),
|
|
31
31
|
isPublished: z.boolean(),
|
|
32
|
-
origin: z.nativeEnum(JOB_REQUEST_ORIGIN),
|
|
33
32
|
postId: z.string().nullable(),
|
|
34
33
|
isDeleted: z.boolean(),
|
|
35
34
|
internalError: z.string().nullable(),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
3
|
import { ImageGenerationJobSchema } from '../models';
|
|
4
|
-
import { JOB_REQUEST_ORIGIN } from '../../tools/enums/job-request-origin.enum';
|
|
5
4
|
|
|
6
5
|
export namespace FindImageGenerationJobsQuery {
|
|
7
6
|
export const RequestSchema = z
|
|
@@ -11,7 +10,6 @@ export namespace FindImageGenerationJobsQuery {
|
|
|
11
10
|
title: z.string().optional(),
|
|
12
11
|
limit: z.coerce.number().min(1).optional(),
|
|
13
12
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
14
|
-
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).optional(),
|
|
15
13
|
})
|
|
16
14
|
.refine(
|
|
17
15
|
(data) => {
|