@purpleschool/gptbot-tools 0.2.80 → 0.2.82
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/commands/execute-image-generation.command.d.ts +131 -36
- package/build/image-generation/commands/execute-image-generation.command.js +2 -1
- package/build/image-generation/commands/forward-image-generation-job.command.d.ts +15 -2
- package/build/image-generation/commands/forward-image-generation-job.command.js +1 -0
- package/build/image-generation/commands/retry-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/save-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +130 -36
- package/build/image-generation/commands/update-image-generation-job-favorite.command.js +2 -2
- package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +14 -2
- package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +14 -2
- package/build/image-generation/enums/image-generation-group-status.enum.d.ts +6 -0
- package/build/image-generation/enums/image-generation-group-status.enum.js +10 -0
- package/build/image-generation/enums/index.d.ts +1 -0
- package/build/image-generation/enums/index.js +1 -0
- package/build/image-generation/models/image-generation-group.schema.d.ts +96 -0
- package/build/image-generation/models/image-generation-group.schema.js +34 -0
- package/build/image-generation/models/image-generation-job.schema.d.ts +9 -3
- package/build/image-generation/models/image-generation-job.schema.js +9 -3
- package/build/image-generation/models/index.d.ts +1 -0
- package/build/image-generation/models/index.js +1 -0
- package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +130 -36
- package/build/image-generation/queries/find-image-generation-job-by-id.query.js +1 -1
- package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +133 -38
- package/build/image-generation/queries/find-image-generation-jobs.query.js +3 -2
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +4 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +1 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +3 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +4 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +4 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +1 -1
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -1
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
- package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +2 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +4 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +2 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +30 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +10 -1
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +2 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +4 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +4 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
- package/build/tools/models/global-tools-config.schema.d.ts +2 -2
- package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
- package/package.json +1 -1
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./image-generation-model-strategy.enum"), exports);
|
|
18
18
|
__exportStar(require("./image-generation-resolution.enum"), exports);
|
|
19
19
|
__exportStar(require("./image-generation-models.enum"), exports);
|
|
20
|
+
__exportStar(require("./image-generation-group-status.enum"), exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { IMAGE_GENERATION_GROUP_STATUS } from '../enums';
|
|
4
|
+
export declare const ImageGenerationGroupSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<typeof IMAGE_GENERATION_GROUP_STATUS>;
|
|
9
|
+
error: z.ZodNullable<z.ZodString>;
|
|
10
|
+
modelId: z.ZodString;
|
|
11
|
+
presetId: z.ZodNullable<z.ZodString>;
|
|
12
|
+
price: z.ZodNumber;
|
|
13
|
+
params: z.ZodObject<{
|
|
14
|
+
aspectRatio: z.ZodString;
|
|
15
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
mimeType: z.ZodString;
|
|
20
|
+
type: z.ZodString;
|
|
21
|
+
size: z.ZodNumber;
|
|
22
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
23
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
enhancePrompt: z.ZodBoolean;
|
|
27
|
+
resolution: z.ZodOptional<z.ZodEnum<typeof import("..").IMAGE_GENERATION_RESOLUTION>>;
|
|
28
|
+
batching: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
31
|
+
order: z.ZodNumber;
|
|
32
|
+
status: z.ZodString;
|
|
33
|
+
error: z.ZodNullable<z.ZodString>;
|
|
34
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
37
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
38
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
isDeleted: z.ZodBoolean;
|
|
40
|
+
isFavorite: z.ZodBoolean;
|
|
41
|
+
subJobs: z.ZodArray<z.ZodObject<{
|
|
42
|
+
uuid: z.ZodString;
|
|
43
|
+
prompt: z.ZodString;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
46
|
+
error: z.ZodNullable<z.ZodString>;
|
|
47
|
+
price: z.ZodNumber;
|
|
48
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
49
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
|
|
50
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
51
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
52
|
+
params: z.ZodObject<{
|
|
53
|
+
aspectRatio: z.ZodString;
|
|
54
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
mimeType: z.ZodString;
|
|
59
|
+
type: z.ZodString;
|
|
60
|
+
size: z.ZodNumber;
|
|
61
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
62
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
63
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
enhancePrompt: z.ZodBoolean;
|
|
66
|
+
resolution: z.ZodOptional<z.ZodEnum<typeof import("..").IMAGE_GENERATION_RESOLUTION>>;
|
|
67
|
+
batching: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
output: z.ZodArray<z.ZodString>;
|
|
70
|
+
presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
modelId: z.ZodString;
|
|
72
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
74
|
+
order: z.ZodNumber;
|
|
75
|
+
status: z.ZodString;
|
|
76
|
+
error: z.ZodNullable<z.ZodString>;
|
|
77
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
isPublished: z.ZodBoolean;
|
|
82
|
+
origin: z.ZodString;
|
|
83
|
+
callOrigin: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN>;
|
|
84
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
85
|
+
isDeleted: z.ZodBoolean;
|
|
86
|
+
isFavorite: z.ZodBoolean;
|
|
87
|
+
internalError: z.ZodNullable<z.ZodString>;
|
|
88
|
+
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
90
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
93
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
94
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type ImageGenerationGroup = z.infer<typeof ImageGenerationGroupSchema>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageGenerationGroupSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const enums_1 = require("../enums");
|
|
7
|
+
const image_generation_job_schema_1 = require("./image-generation-job.schema");
|
|
8
|
+
const image_generation_job_schema_2 = require("./image-generation-job.schema");
|
|
9
|
+
exports.ImageGenerationGroupSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string(),
|
|
11
|
+
title: zod_1.z.string(),
|
|
12
|
+
prompt: zod_1.z.string(),
|
|
13
|
+
status: zod_1.z.enum(enums_1.IMAGE_GENERATION_GROUP_STATUS),
|
|
14
|
+
error: zod_1.z.string().nullable(),
|
|
15
|
+
modelId: zod_1.z.string(),
|
|
16
|
+
presetId: zod_1.z.string().nullable(),
|
|
17
|
+
price: zod_1.z.number(),
|
|
18
|
+
params: image_generation_job_schema_2.ImageGenerationJobParamsSchema,
|
|
19
|
+
attempts: zod_1.z.array(zod_1.z.object({
|
|
20
|
+
order: zod_1.z.number(),
|
|
21
|
+
status: zod_1.z.string(),
|
|
22
|
+
error: zod_1.z.string().nullable(),
|
|
23
|
+
timestamp: zod_1.z.coerce.date(),
|
|
24
|
+
})),
|
|
25
|
+
scope: zod_1.z.enum(common_1.JOB_SCOPE),
|
|
26
|
+
userId: zod_1.z.string().nullable(),
|
|
27
|
+
unregisteredUserId: zod_1.z.string().nullable(),
|
|
28
|
+
isDeleted: zod_1.z.boolean(),
|
|
29
|
+
isFavorite: zod_1.z.boolean(),
|
|
30
|
+
subJobs: zod_1.z.array(image_generation_job_schema_1.ImageGenerationJobSchema),
|
|
31
|
+
createdAt: zod_1.z.coerce.date(),
|
|
32
|
+
completedAt: zod_1.z.coerce.date().nullable(),
|
|
33
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
34
|
+
});
|
|
@@ -52,7 +52,13 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
52
52
|
output: z.ZodArray<z.ZodString>;
|
|
53
53
|
presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
modelId: z.ZodString;
|
|
55
|
-
|
|
55
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
57
|
+
order: z.ZodNumber;
|
|
58
|
+
status: z.ZodString;
|
|
59
|
+
error: z.ZodNullable<z.ZodString>;
|
|
60
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
56
62
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
63
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
64
|
isPublished: z.ZodBoolean;
|
|
@@ -63,7 +69,7 @@ export declare const ImageGenerationJobSchema: z.ZodObject<{
|
|
|
63
69
|
isFavorite: z.ZodBoolean;
|
|
64
70
|
internalError: z.ZodNullable<z.ZodString>;
|
|
65
71
|
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
-
createdAt: z.
|
|
67
|
-
updatedAt: z.
|
|
72
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
73
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
68
74
|
}, z.core.$strip>;
|
|
69
75
|
export type ImageGenerationJob = z.infer<typeof ImageGenerationJobSchema>;
|
|
@@ -28,7 +28,13 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
|
|
|
28
28
|
output: zod_1.z.array(zod_1.z.string()),
|
|
29
29
|
presetId: zod_1.z.string().nullable().optional(),
|
|
30
30
|
modelId: zod_1.z.string(),
|
|
31
|
-
|
|
31
|
+
groupId: zod_1.z.string().nullable(),
|
|
32
|
+
attempts: zod_1.z.array(zod_1.z.object({
|
|
33
|
+
order: zod_1.z.number(),
|
|
34
|
+
status: zod_1.z.string(),
|
|
35
|
+
error: zod_1.z.string().nullable(),
|
|
36
|
+
timestamp: zod_1.z.coerce.date(),
|
|
37
|
+
})),
|
|
32
38
|
userId: zod_1.z.string().nullable().optional(),
|
|
33
39
|
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
34
40
|
isPublished: zod_1.z.boolean(),
|
|
@@ -39,6 +45,6 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
|
|
|
39
45
|
isFavorite: zod_1.z.boolean(),
|
|
40
46
|
internalError: zod_1.z.string().nullable(),
|
|
41
47
|
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
42
|
-
createdAt: zod_1.z.date(),
|
|
43
|
-
updatedAt: zod_1.z.date(),
|
|
48
|
+
createdAt: zod_1.z.coerce.date(),
|
|
49
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
44
50
|
});
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./image-generation-job.schema"), exports);
|
|
18
|
+
__exportStar(require("./image-generation-group.schema"), exports);
|
|
18
19
|
__exportStar(require("./image-generation-model.schema"), exports);
|
|
19
20
|
__exportStar(require("./image-generation-preset.schema"), exports);
|
|
20
21
|
__exportStar(require("./image-generation-config.schema"), exports);
|
|
@@ -10,15 +10,13 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
10
10
|
isSuccess: z.ZodBoolean;
|
|
11
11
|
data: z.ZodOptional<z.ZodType<{
|
|
12
12
|
uuid: string;
|
|
13
|
-
prompt: string;
|
|
14
13
|
title: string;
|
|
15
|
-
|
|
14
|
+
prompt: string;
|
|
15
|
+
status: import("..").IMAGE_GENERATION_GROUP_STATUS;
|
|
16
16
|
error: string | null;
|
|
17
|
+
modelId: string;
|
|
18
|
+
presetId: string | null;
|
|
17
19
|
price: number;
|
|
18
|
-
previewUrl: string | null;
|
|
19
|
-
reaction: import("../..").USER_REACTION | null;
|
|
20
|
-
dislikeReason: string | null;
|
|
21
|
-
externalId: string | null;
|
|
22
20
|
params: {
|
|
23
21
|
aspectRatio: string;
|
|
24
22
|
attachedFiles: {
|
|
@@ -36,33 +34,80 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
36
34
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
37
35
|
batching?: number | undefined;
|
|
38
36
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
postId: string | null;
|
|
37
|
+
attempts: {
|
|
38
|
+
order: number;
|
|
39
|
+
status: string;
|
|
40
|
+
error: string | null;
|
|
41
|
+
timestamp: Date;
|
|
42
|
+
}[];
|
|
43
|
+
scope: import("../..").JOB_SCOPE;
|
|
44
|
+
userId: string | null;
|
|
45
|
+
unregisteredUserId: string | null;
|
|
49
46
|
isDeleted: boolean;
|
|
50
47
|
isFavorite: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
subJobs: {
|
|
49
|
+
uuid: string;
|
|
50
|
+
prompt: string;
|
|
51
|
+
title: string;
|
|
52
|
+
status: import("../..").JOB_STATUS;
|
|
53
|
+
error: string | null;
|
|
54
|
+
price: number;
|
|
55
|
+
previewUrl: string | null;
|
|
56
|
+
reaction: import("../..").USER_REACTION | null;
|
|
57
|
+
dislikeReason: string | null;
|
|
58
|
+
externalId: string | null;
|
|
59
|
+
params: {
|
|
60
|
+
aspectRatio: string;
|
|
61
|
+
attachedFiles: {
|
|
62
|
+
uuid: string;
|
|
63
|
+
url: string;
|
|
64
|
+
name: string;
|
|
65
|
+
mimeType: string;
|
|
66
|
+
type: string;
|
|
67
|
+
size: number;
|
|
68
|
+
duration?: number | null | undefined;
|
|
69
|
+
content?: string | null | undefined;
|
|
70
|
+
contentLength?: number | null | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
enhancePrompt: boolean;
|
|
73
|
+
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
74
|
+
batching?: number | undefined;
|
|
75
|
+
};
|
|
76
|
+
output: string[];
|
|
77
|
+
presetId?: string | null | undefined;
|
|
78
|
+
modelId: string;
|
|
79
|
+
groupId: string | null;
|
|
80
|
+
attempts: {
|
|
81
|
+
order: number;
|
|
82
|
+
status: string;
|
|
83
|
+
error: string | null;
|
|
84
|
+
timestamp: Date;
|
|
85
|
+
}[];
|
|
86
|
+
userId?: string | null | undefined;
|
|
87
|
+
unregisteredUserId?: string | null | undefined;
|
|
88
|
+
isPublished: boolean;
|
|
89
|
+
origin: string;
|
|
90
|
+
callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
|
|
91
|
+
postId: string | null;
|
|
92
|
+
isDeleted: boolean;
|
|
93
|
+
isFavorite: boolean;
|
|
94
|
+
internalError: string | null;
|
|
95
|
+
tokenReservationId?: string | null | undefined;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
}[];
|
|
53
99
|
createdAt: Date;
|
|
100
|
+
completedAt: Date | null;
|
|
54
101
|
updatedAt: Date;
|
|
55
102
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
56
103
|
uuid: string;
|
|
57
|
-
prompt: string;
|
|
58
104
|
title: string;
|
|
59
|
-
|
|
105
|
+
prompt: string;
|
|
106
|
+
status: import("..").IMAGE_GENERATION_GROUP_STATUS;
|
|
60
107
|
error: string | null;
|
|
108
|
+
modelId: string;
|
|
109
|
+
presetId: string | null;
|
|
61
110
|
price: number;
|
|
62
|
-
previewUrl: string | null;
|
|
63
|
-
reaction: import("../..").USER_REACTION | null;
|
|
64
|
-
dislikeReason: string | null;
|
|
65
|
-
externalId: string | null;
|
|
66
111
|
params: {
|
|
67
112
|
aspectRatio: string;
|
|
68
113
|
attachedFiles: {
|
|
@@ -80,21 +125,70 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
80
125
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
81
126
|
batching?: number | undefined;
|
|
82
127
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
postId: string | null;
|
|
128
|
+
attempts: {
|
|
129
|
+
order: number;
|
|
130
|
+
status: string;
|
|
131
|
+
error: string | null;
|
|
132
|
+
timestamp: Date;
|
|
133
|
+
}[];
|
|
134
|
+
scope: import("../..").JOB_SCOPE;
|
|
135
|
+
userId: string | null;
|
|
136
|
+
unregisteredUserId: string | null;
|
|
93
137
|
isDeleted: boolean;
|
|
94
138
|
isFavorite: boolean;
|
|
95
|
-
|
|
96
|
-
|
|
139
|
+
subJobs: {
|
|
140
|
+
uuid: string;
|
|
141
|
+
prompt: string;
|
|
142
|
+
title: string;
|
|
143
|
+
status: import("../..").JOB_STATUS;
|
|
144
|
+
error: string | null;
|
|
145
|
+
price: number;
|
|
146
|
+
previewUrl: string | null;
|
|
147
|
+
reaction: import("../..").USER_REACTION | null;
|
|
148
|
+
dislikeReason: string | null;
|
|
149
|
+
externalId: string | null;
|
|
150
|
+
params: {
|
|
151
|
+
aspectRatio: string;
|
|
152
|
+
attachedFiles: {
|
|
153
|
+
uuid: string;
|
|
154
|
+
url: string;
|
|
155
|
+
name: string;
|
|
156
|
+
mimeType: string;
|
|
157
|
+
type: string;
|
|
158
|
+
size: number;
|
|
159
|
+
duration?: number | null | undefined;
|
|
160
|
+
content?: string | null | undefined;
|
|
161
|
+
contentLength?: number | null | undefined;
|
|
162
|
+
}[];
|
|
163
|
+
enhancePrompt: boolean;
|
|
164
|
+
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
165
|
+
batching?: number | undefined;
|
|
166
|
+
};
|
|
167
|
+
output: string[];
|
|
168
|
+
presetId?: string | null | undefined;
|
|
169
|
+
modelId: string;
|
|
170
|
+
groupId: string | null;
|
|
171
|
+
attempts: {
|
|
172
|
+
order: number;
|
|
173
|
+
status: string;
|
|
174
|
+
error: string | null;
|
|
175
|
+
timestamp: Date;
|
|
176
|
+
}[];
|
|
177
|
+
userId?: string | null | undefined;
|
|
178
|
+
unregisteredUserId?: string | null | undefined;
|
|
179
|
+
isPublished: boolean;
|
|
180
|
+
origin: string;
|
|
181
|
+
callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
|
|
182
|
+
postId: string | null;
|
|
183
|
+
isDeleted: boolean;
|
|
184
|
+
isFavorite: boolean;
|
|
185
|
+
internalError: string | null;
|
|
186
|
+
tokenReservationId?: string | null | undefined;
|
|
187
|
+
createdAt: Date;
|
|
188
|
+
updatedAt: Date;
|
|
189
|
+
}[];
|
|
97
190
|
createdAt: Date;
|
|
191
|
+
completedAt: Date | null;
|
|
98
192
|
updatedAt: Date;
|
|
99
193
|
}, unknown>>>;
|
|
100
194
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -11,5 +11,5 @@ var FindImageGenerationJobByIdQuery;
|
|
|
11
11
|
userId: zod_1.z.uuid().nullable().optional(),
|
|
12
12
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
13
13
|
});
|
|
14
|
-
FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.
|
|
14
|
+
FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationGroupSchema);
|
|
15
15
|
})(FindImageGenerationJobByIdQuery || (exports.FindImageGenerationJobByIdQuery = FindImageGenerationJobByIdQuery = {}));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { IMAGE_GENERATION_GROUP_STATUS } from '../enums';
|
|
3
4
|
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
4
|
-
import { JOB_SORT
|
|
5
|
+
import { JOB_SORT } from '../../tools';
|
|
5
6
|
export declare namespace FindImageGenerationJobsQuery {
|
|
6
7
|
const RequestSchema: z.ZodObject<{
|
|
7
8
|
userId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -10,7 +11,7 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
10
11
|
title: z.ZodOptional<z.ZodString>;
|
|
11
12
|
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
12
13
|
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
13
|
-
status: z.ZodOptional<z.ZodEnum<typeof
|
|
14
|
+
status: z.ZodOptional<z.ZodEnum<typeof IMAGE_GENERATION_GROUP_STATUS>>;
|
|
14
15
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
15
16
|
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
16
17
|
callOrigin: z.ZodOptional<z.ZodEnum<typeof STATISTICS_CALL_ORIGIN>>;
|
|
@@ -21,15 +22,13 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
21
22
|
data: z.ZodOptional<z.ZodType<{
|
|
22
23
|
data: {
|
|
23
24
|
uuid: string;
|
|
24
|
-
prompt: string;
|
|
25
25
|
title: string;
|
|
26
|
-
|
|
26
|
+
prompt: string;
|
|
27
|
+
status: IMAGE_GENERATION_GROUP_STATUS;
|
|
27
28
|
error: string | null;
|
|
29
|
+
modelId: string;
|
|
30
|
+
presetId: string | null;
|
|
28
31
|
price: number;
|
|
29
|
-
previewUrl: string | null;
|
|
30
|
-
reaction: import("../..").USER_REACTION | null;
|
|
31
|
-
dislikeReason: string | null;
|
|
32
|
-
externalId: string | null;
|
|
33
32
|
params: {
|
|
34
33
|
aspectRatio: string;
|
|
35
34
|
attachedFiles: {
|
|
@@ -47,21 +46,70 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
47
46
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
48
47
|
batching?: number | undefined;
|
|
49
48
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
postId: string | null;
|
|
49
|
+
attempts: {
|
|
50
|
+
order: number;
|
|
51
|
+
status: string;
|
|
52
|
+
error: string | null;
|
|
53
|
+
timestamp: Date;
|
|
54
|
+
}[];
|
|
55
|
+
scope: JOB_SCOPE;
|
|
56
|
+
userId: string | null;
|
|
57
|
+
unregisteredUserId: string | null;
|
|
60
58
|
isDeleted: boolean;
|
|
61
59
|
isFavorite: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
subJobs: {
|
|
61
|
+
uuid: string;
|
|
62
|
+
prompt: string;
|
|
63
|
+
title: string;
|
|
64
|
+
status: import("../..").JOB_STATUS;
|
|
65
|
+
error: string | null;
|
|
66
|
+
price: number;
|
|
67
|
+
previewUrl: string | null;
|
|
68
|
+
reaction: import("../..").USER_REACTION | null;
|
|
69
|
+
dislikeReason: string | null;
|
|
70
|
+
externalId: string | null;
|
|
71
|
+
params: {
|
|
72
|
+
aspectRatio: string;
|
|
73
|
+
attachedFiles: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
url: string;
|
|
76
|
+
name: string;
|
|
77
|
+
mimeType: string;
|
|
78
|
+
type: string;
|
|
79
|
+
size: number;
|
|
80
|
+
duration?: number | null | undefined;
|
|
81
|
+
content?: string | null | undefined;
|
|
82
|
+
contentLength?: number | null | undefined;
|
|
83
|
+
}[];
|
|
84
|
+
enhancePrompt: boolean;
|
|
85
|
+
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
86
|
+
batching?: number | undefined;
|
|
87
|
+
};
|
|
88
|
+
output: string[];
|
|
89
|
+
presetId?: string | null | undefined;
|
|
90
|
+
modelId: string;
|
|
91
|
+
groupId: string | null;
|
|
92
|
+
attempts: {
|
|
93
|
+
order: number;
|
|
94
|
+
status: string;
|
|
95
|
+
error: string | null;
|
|
96
|
+
timestamp: Date;
|
|
97
|
+
}[];
|
|
98
|
+
userId?: string | null | undefined;
|
|
99
|
+
unregisteredUserId?: string | null | undefined;
|
|
100
|
+
isPublished: boolean;
|
|
101
|
+
origin: string;
|
|
102
|
+
callOrigin: STATISTICS_CALL_ORIGIN;
|
|
103
|
+
postId: string | null;
|
|
104
|
+
isDeleted: boolean;
|
|
105
|
+
isFavorite: boolean;
|
|
106
|
+
internalError: string | null;
|
|
107
|
+
tokenReservationId?: string | null | undefined;
|
|
108
|
+
createdAt: Date;
|
|
109
|
+
updatedAt: Date;
|
|
110
|
+
}[];
|
|
64
111
|
createdAt: Date;
|
|
112
|
+
completedAt: Date | null;
|
|
65
113
|
updatedAt: Date;
|
|
66
114
|
}[];
|
|
67
115
|
page: number;
|
|
@@ -70,15 +118,13 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
70
118
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
71
119
|
data: {
|
|
72
120
|
uuid: string;
|
|
73
|
-
prompt: string;
|
|
74
121
|
title: string;
|
|
75
|
-
|
|
122
|
+
prompt: string;
|
|
123
|
+
status: IMAGE_GENERATION_GROUP_STATUS;
|
|
76
124
|
error: string | null;
|
|
125
|
+
modelId: string;
|
|
126
|
+
presetId: string | null;
|
|
77
127
|
price: number;
|
|
78
|
-
previewUrl: string | null;
|
|
79
|
-
reaction: import("../..").USER_REACTION | null;
|
|
80
|
-
dislikeReason: string | null;
|
|
81
|
-
externalId: string | null;
|
|
82
128
|
params: {
|
|
83
129
|
aspectRatio: string;
|
|
84
130
|
attachedFiles: {
|
|
@@ -96,21 +142,70 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
96
142
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
97
143
|
batching?: number | undefined;
|
|
98
144
|
};
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
postId: string | null;
|
|
145
|
+
attempts: {
|
|
146
|
+
order: number;
|
|
147
|
+
status: string;
|
|
148
|
+
error: string | null;
|
|
149
|
+
timestamp: Date;
|
|
150
|
+
}[];
|
|
151
|
+
scope: JOB_SCOPE;
|
|
152
|
+
userId: string | null;
|
|
153
|
+
unregisteredUserId: string | null;
|
|
109
154
|
isDeleted: boolean;
|
|
110
155
|
isFavorite: boolean;
|
|
111
|
-
|
|
112
|
-
|
|
156
|
+
subJobs: {
|
|
157
|
+
uuid: string;
|
|
158
|
+
prompt: string;
|
|
159
|
+
title: string;
|
|
160
|
+
status: import("../..").JOB_STATUS;
|
|
161
|
+
error: string | null;
|
|
162
|
+
price: number;
|
|
163
|
+
previewUrl: string | null;
|
|
164
|
+
reaction: import("../..").USER_REACTION | null;
|
|
165
|
+
dislikeReason: string | null;
|
|
166
|
+
externalId: string | null;
|
|
167
|
+
params: {
|
|
168
|
+
aspectRatio: string;
|
|
169
|
+
attachedFiles: {
|
|
170
|
+
uuid: string;
|
|
171
|
+
url: string;
|
|
172
|
+
name: string;
|
|
173
|
+
mimeType: string;
|
|
174
|
+
type: string;
|
|
175
|
+
size: number;
|
|
176
|
+
duration?: number | null | undefined;
|
|
177
|
+
content?: string | null | undefined;
|
|
178
|
+
contentLength?: number | null | undefined;
|
|
179
|
+
}[];
|
|
180
|
+
enhancePrompt: boolean;
|
|
181
|
+
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
182
|
+
batching?: number | undefined;
|
|
183
|
+
};
|
|
184
|
+
output: string[];
|
|
185
|
+
presetId?: string | null | undefined;
|
|
186
|
+
modelId: string;
|
|
187
|
+
groupId: string | null;
|
|
188
|
+
attempts: {
|
|
189
|
+
order: number;
|
|
190
|
+
status: string;
|
|
191
|
+
error: string | null;
|
|
192
|
+
timestamp: Date;
|
|
193
|
+
}[];
|
|
194
|
+
userId?: string | null | undefined;
|
|
195
|
+
unregisteredUserId?: string | null | undefined;
|
|
196
|
+
isPublished: boolean;
|
|
197
|
+
origin: string;
|
|
198
|
+
callOrigin: STATISTICS_CALL_ORIGIN;
|
|
199
|
+
postId: string | null;
|
|
200
|
+
isDeleted: boolean;
|
|
201
|
+
isFavorite: boolean;
|
|
202
|
+
internalError: string | null;
|
|
203
|
+
tokenReservationId?: string | null | undefined;
|
|
204
|
+
createdAt: Date;
|
|
205
|
+
updatedAt: Date;
|
|
206
|
+
}[];
|
|
113
207
|
createdAt: Date;
|
|
208
|
+
completedAt: Date | null;
|
|
114
209
|
updatedAt: Date;
|
|
115
210
|
}[];
|
|
116
211
|
page: number;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
6
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
7
|
const models_1 = require("../models");
|
|
8
|
+
const enums_1 = require("../enums");
|
|
8
9
|
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
9
10
|
const tools_1 = require("../../tools");
|
|
10
11
|
var FindImageGenerationJobsQuery;
|
|
@@ -17,7 +18,7 @@ var FindImageGenerationJobsQuery;
|
|
|
17
18
|
title: zod_1.z.string().optional(),
|
|
18
19
|
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
19
20
|
createdAtSortOrder: zod_1.z.enum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
20
|
-
status: zod_1.z.enum(
|
|
21
|
+
status: zod_1.z.enum(enums_1.IMAGE_GENERATION_GROUP_STATUS).optional(),
|
|
21
22
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
22
23
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
23
24
|
callOrigin: zod_1.z.enum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN).optional(),
|
|
@@ -29,7 +30,7 @@ var FindImageGenerationJobsQuery;
|
|
|
29
30
|
path: ['userId', 'unregisteredUserId'],
|
|
30
31
|
});
|
|
31
32
|
FindImageGenerationJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
32
|
-
data: zod_1.z.array(models_1.
|
|
33
|
+
data: zod_1.z.array(models_1.ImageGenerationGroupSchema),
|
|
33
34
|
page: zod_1.z.number(),
|
|
34
35
|
totalPages: zod_1.z.number(),
|
|
35
36
|
total: zod_1.z.number(),
|