@purpleschool/gptbot-tools 0.2.81 → 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.
@@ -73,6 +73,7 @@ export declare namespace ExecuteImageGenerationCommand {
73
73
  userId: string | null;
74
74
  unregisteredUserId: string | null;
75
75
  isDeleted: boolean;
76
+ isFavorite: boolean;
76
77
  subJobs: {
77
78
  uuid: string;
78
79
  prompt: string;
@@ -163,6 +164,7 @@ export declare namespace ExecuteImageGenerationCommand {
163
164
  userId: string | null;
164
165
  unregisteredUserId: string | null;
165
166
  isDeleted: boolean;
167
+ isFavorite: boolean;
166
168
  subJobs: {
167
169
  uuid: string;
168
170
  prompt: string;
@@ -11,15 +11,13 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
11
11
  isSuccess: z.ZodBoolean;
12
12
  data: z.ZodOptional<z.ZodType<{
13
13
  uuid: string;
14
- prompt: string;
15
14
  title: string;
16
- status: import("../..").JOB_STATUS;
15
+ prompt: string;
16
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
17
17
  error: string | null;
18
+ modelId: string;
19
+ presetId: string | null;
18
20
  price: number;
19
- previewUrl: string | null;
20
- reaction: import("../..").USER_REACTION | null;
21
- dislikeReason: string | null;
22
- externalId: string | null;
23
21
  params: {
24
22
  aspectRatio: string;
25
23
  attachedFiles: {
@@ -37,39 +35,80 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
37
35
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
38
36
  batching?: number | undefined;
39
37
  };
40
- output: string[];
41
- presetId?: string | null | undefined;
42
- modelId: string;
43
- groupId: string | null;
44
38
  attempts: {
45
39
  order: number;
46
40
  status: string;
47
41
  error: string | null;
48
42
  timestamp: Date;
49
43
  }[];
50
- userId?: string | null | undefined;
51
- unregisteredUserId?: string | null | undefined;
52
- isPublished: boolean;
53
- origin: string;
54
- callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
55
- postId: string | null;
44
+ scope: import("../..").JOB_SCOPE;
45
+ userId: string | null;
46
+ unregisteredUserId: string | null;
56
47
  isDeleted: boolean;
57
48
  isFavorite: boolean;
58
- internalError: string | null;
59
- tokenReservationId?: string | null | undefined;
49
+ subJobs: {
50
+ uuid: string;
51
+ prompt: string;
52
+ title: string;
53
+ status: import("../..").JOB_STATUS;
54
+ error: string | null;
55
+ price: number;
56
+ previewUrl: string | null;
57
+ reaction: import("../..").USER_REACTION | null;
58
+ dislikeReason: string | null;
59
+ externalId: string | null;
60
+ params: {
61
+ aspectRatio: string;
62
+ attachedFiles: {
63
+ uuid: string;
64
+ url: string;
65
+ name: string;
66
+ mimeType: string;
67
+ type: string;
68
+ size: number;
69
+ duration?: number | null | undefined;
70
+ content?: string | null | undefined;
71
+ contentLength?: number | null | undefined;
72
+ }[];
73
+ enhancePrompt: boolean;
74
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
75
+ batching?: number | undefined;
76
+ };
77
+ output: string[];
78
+ presetId?: string | null | undefined;
79
+ modelId: string;
80
+ groupId: string | null;
81
+ attempts: {
82
+ order: number;
83
+ status: string;
84
+ error: string | null;
85
+ timestamp: Date;
86
+ }[];
87
+ userId?: string | null | undefined;
88
+ unregisteredUserId?: string | null | undefined;
89
+ isPublished: boolean;
90
+ origin: string;
91
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
92
+ postId: string | null;
93
+ isDeleted: boolean;
94
+ isFavorite: boolean;
95
+ internalError: string | null;
96
+ tokenReservationId?: string | null | undefined;
97
+ createdAt: Date;
98
+ updatedAt: Date;
99
+ }[];
60
100
  createdAt: Date;
101
+ completedAt: Date | null;
61
102
  updatedAt: Date;
62
103
  }, unknown, z.core.$ZodTypeInternals<{
63
104
  uuid: string;
64
- prompt: string;
65
105
  title: string;
66
- status: import("../..").JOB_STATUS;
106
+ prompt: string;
107
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
67
108
  error: string | null;
109
+ modelId: string;
110
+ presetId: string | null;
68
111
  price: number;
69
- previewUrl: string | null;
70
- reaction: import("../..").USER_REACTION | null;
71
- dislikeReason: string | null;
72
- externalId: string | null;
73
112
  params: {
74
113
  aspectRatio: string;
75
114
  attachedFiles: {
@@ -87,27 +126,70 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
87
126
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
88
127
  batching?: number | undefined;
89
128
  };
90
- output: string[];
91
- presetId?: string | null | undefined;
92
- modelId: string;
93
- groupId: string | null;
94
129
  attempts: {
95
130
  order: number;
96
131
  status: string;
97
132
  error: string | null;
98
133
  timestamp: Date;
99
134
  }[];
100
- userId?: string | null | undefined;
101
- unregisteredUserId?: string | null | undefined;
102
- isPublished: boolean;
103
- origin: string;
104
- callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
105
- postId: string | null;
135
+ scope: import("../..").JOB_SCOPE;
136
+ userId: string | null;
137
+ unregisteredUserId: string | null;
106
138
  isDeleted: boolean;
107
139
  isFavorite: boolean;
108
- internalError: string | null;
109
- tokenReservationId?: string | null | undefined;
140
+ subJobs: {
141
+ uuid: string;
142
+ prompt: string;
143
+ title: string;
144
+ status: import("../..").JOB_STATUS;
145
+ error: string | null;
146
+ price: number;
147
+ previewUrl: string | null;
148
+ reaction: import("../..").USER_REACTION | null;
149
+ dislikeReason: string | null;
150
+ externalId: string | null;
151
+ params: {
152
+ aspectRatio: string;
153
+ attachedFiles: {
154
+ uuid: string;
155
+ url: string;
156
+ name: string;
157
+ mimeType: string;
158
+ type: string;
159
+ size: number;
160
+ duration?: number | null | undefined;
161
+ content?: string | null | undefined;
162
+ contentLength?: number | null | undefined;
163
+ }[];
164
+ enhancePrompt: boolean;
165
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
166
+ batching?: number | undefined;
167
+ };
168
+ output: string[];
169
+ presetId?: string | null | undefined;
170
+ modelId: string;
171
+ groupId: string | null;
172
+ attempts: {
173
+ order: number;
174
+ status: string;
175
+ error: string | null;
176
+ timestamp: Date;
177
+ }[];
178
+ userId?: string | null | undefined;
179
+ unregisteredUserId?: string | null | undefined;
180
+ isPublished: boolean;
181
+ origin: string;
182
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
183
+ postId: string | null;
184
+ isDeleted: boolean;
185
+ isFavorite: boolean;
186
+ internalError: string | null;
187
+ tokenReservationId?: string | null | undefined;
188
+ createdAt: Date;
189
+ updatedAt: Date;
190
+ }[];
110
191
  createdAt: Date;
192
+ completedAt: Date | null;
111
193
  updatedAt: Date;
112
194
  }, unknown>>>;
113
195
  code: z.ZodOptional<z.ZodString>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateImageGenerationJobFavoriteCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- const image_generation_job_schema_1 = require("../models/image-generation-job.schema");
6
+ const image_generation_group_schema_1 = require("../models/image-generation-group.schema");
7
7
  var UpdateImageGenerationJobFavoriteCommand;
8
8
  (function (UpdateImageGenerationJobFavoriteCommand) {
9
9
  UpdateImageGenerationJobFavoriteCommand.RequestSchema = zod_1.z.object({
@@ -12,5 +12,5 @@ var UpdateImageGenerationJobFavoriteCommand;
12
12
  unregisteredUserId: zod_1.z.uuid().nullable().optional(),
13
13
  isFavorite: zod_1.z.boolean(),
14
14
  });
15
- UpdateImageGenerationJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(image_generation_job_schema_1.ImageGenerationJobSchema);
15
+ UpdateImageGenerationJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(image_generation_group_schema_1.ImageGenerationGroupSchema);
16
16
  })(UpdateImageGenerationJobFavoriteCommand || (exports.UpdateImageGenerationJobFavoriteCommand = UpdateImageGenerationJobFavoriteCommand = {}));
@@ -37,6 +37,7 @@ export declare const ImageGenerationGroupSchema: z.ZodObject<{
37
37
  userId: z.ZodNullable<z.ZodString>;
38
38
  unregisteredUserId: z.ZodNullable<z.ZodString>;
39
39
  isDeleted: z.ZodBoolean;
40
+ isFavorite: z.ZodBoolean;
40
41
  subJobs: z.ZodArray<z.ZodObject<{
41
42
  uuid: z.ZodString;
42
43
  prompt: z.ZodString;
@@ -26,6 +26,7 @@ exports.ImageGenerationGroupSchema = zod_1.z.object({
26
26
  userId: zod_1.z.string().nullable(),
27
27
  unregisteredUserId: zod_1.z.string().nullable(),
28
28
  isDeleted: zod_1.z.boolean(),
29
+ isFavorite: zod_1.z.boolean(),
29
30
  subJobs: zod_1.z.array(image_generation_job_schema_1.ImageGenerationJobSchema),
30
31
  createdAt: zod_1.z.coerce.date(),
31
32
  completedAt: zod_1.z.coerce.date().nullable(),
@@ -44,6 +44,7 @@ export declare namespace FindImageGenerationJobByIdQuery {
44
44
  userId: string | null;
45
45
  unregisteredUserId: string | null;
46
46
  isDeleted: boolean;
47
+ isFavorite: boolean;
47
48
  subJobs: {
48
49
  uuid: string;
49
50
  prompt: string;
@@ -134,6 +135,7 @@ export declare namespace FindImageGenerationJobByIdQuery {
134
135
  userId: string | null;
135
136
  unregisteredUserId: string | null;
136
137
  isDeleted: boolean;
138
+ isFavorite: boolean;
137
139
  subJobs: {
138
140
  uuid: string;
139
141
  prompt: string;
@@ -56,6 +56,7 @@ export declare namespace FindImageGenerationJobsQuery {
56
56
  userId: string | null;
57
57
  unregisteredUserId: string | null;
58
58
  isDeleted: boolean;
59
+ isFavorite: boolean;
59
60
  subJobs: {
60
61
  uuid: string;
61
62
  prompt: string;
@@ -151,6 +152,7 @@ export declare namespace FindImageGenerationJobsQuery {
151
152
  userId: string | null;
152
153
  unregisteredUserId: string | null;
153
154
  isDeleted: boolean;
155
+ isFavorite: boolean;
154
156
  subJobs: {
155
157
  uuid: string;
156
158
  prompt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.81",
3
+ "version": "0.2.82",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [