@purpleschool/gptbot-tools 0.2.66-stage2 → 0.2.67-stage2
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/photo-sessions/commands/get-photo-sessions-price.command.d.ts +2 -13
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +2 -3
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +10 -43
- package/build/photo-sessions/commands/photo-sessions.command.js +2 -3
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +8 -95
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -3
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +8 -30
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +8 -30
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +8 -30
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +8 -30
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +0 -1
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +0 -1
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +12 -15
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +19 -29
- package/build/photo-sessions/models/photo-session-job.schema.js +9 -5
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +1 -1
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +8 -30
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +8 -30
- package/package.json +1 -1
|
@@ -17,19 +17,8 @@ export declare namespace GetPhotoSessionsPriceCommand {
|
|
|
17
17
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
18
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
|
-
styleId: z.
|
|
21
|
-
|
|
22
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
-
uuid: z.ZodString;
|
|
24
|
-
url: z.ZodString;
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
mimeType: z.ZodString;
|
|
27
|
-
type: z.ZodString;
|
|
28
|
-
size: z.ZodNumber;
|
|
29
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
30
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
-
}, z.core.$strip>>>;
|
|
20
|
+
styleId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
photosCount: z.ZodNumber;
|
|
33
22
|
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
23
|
uuid: z.ZodString;
|
|
35
24
|
url: z.ZodString;
|
|
@@ -13,9 +13,8 @@ var GetPhotoSessionsPriceCommand;
|
|
|
13
13
|
prompt: zod_1.z.string().optional(),
|
|
14
14
|
params: zod_1.z.object({
|
|
15
15
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
|
|
16
|
-
styleId: zod_1.z.string().uuid().nullable()
|
|
17
|
-
|
|
18
|
-
customStylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(6).optional(),
|
|
16
|
+
styleId: zod_1.z.string().uuid().nullable(),
|
|
17
|
+
photosCount: zod_1.z.number().int().min(1).max(6),
|
|
19
18
|
clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
20
19
|
hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
21
20
|
accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
@@ -20,19 +20,8 @@ export declare namespace PhotoSessionsCommand {
|
|
|
20
20
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
21
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
-
styleId: z.
|
|
24
|
-
|
|
25
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
-
uuid: z.ZodString;
|
|
27
|
-
url: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
mimeType: z.ZodString;
|
|
30
|
-
type: z.ZodString;
|
|
31
|
-
size: z.ZodNumber;
|
|
32
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
-
}, z.core.$strip>>>;
|
|
23
|
+
styleId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
photosCount: z.ZodNumber;
|
|
36
25
|
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
26
|
uuid: z.ZodString;
|
|
38
27
|
url: z.ZodString;
|
|
@@ -97,7 +86,7 @@ export declare namespace PhotoSessionsCommand {
|
|
|
97
86
|
dislikeReason: string | null;
|
|
98
87
|
externalId: string | null;
|
|
99
88
|
title: string;
|
|
100
|
-
status: import("../..").JOB_STATUS;
|
|
89
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
101
90
|
error: string | null;
|
|
102
91
|
modelId: string;
|
|
103
92
|
groupId: string;
|
|
@@ -114,21 +103,10 @@ export declare namespace PhotoSessionsCommand {
|
|
|
114
103
|
content?: string | null | undefined;
|
|
115
104
|
contentLength?: number | null | undefined;
|
|
116
105
|
}[] | undefined;
|
|
117
|
-
|
|
118
|
-
referenceFile?: {
|
|
119
|
-
uuid: string;
|
|
120
|
-
url: string;
|
|
121
|
-
name: string;
|
|
122
|
-
mimeType: string;
|
|
123
|
-
type: string;
|
|
124
|
-
size: number;
|
|
125
|
-
duration?: number | null | undefined;
|
|
126
|
-
content?: string | null | undefined;
|
|
127
|
-
contentLength?: number | null | undefined;
|
|
128
|
-
} | undefined;
|
|
106
|
+
styleReferenceImageUrl?: string | undefined;
|
|
129
107
|
styleId?: string | null | undefined;
|
|
130
108
|
referenceId?: string | null | undefined;
|
|
131
|
-
|
|
109
|
+
photosCount?: number | undefined;
|
|
132
110
|
clothingPhotos?: {
|
|
133
111
|
uuid: string;
|
|
134
112
|
url: string;
|
|
@@ -169,7 +147,7 @@ export declare namespace PhotoSessionsCommand {
|
|
|
169
147
|
attempts: {
|
|
170
148
|
order: number;
|
|
171
149
|
attemptId?: string | undefined;
|
|
172
|
-
status: import("../..").JOB_STATUS;
|
|
150
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
173
151
|
error: string | null;
|
|
174
152
|
timestamp: Date;
|
|
175
153
|
}[];
|
|
@@ -208,7 +186,7 @@ export declare namespace PhotoSessionsCommand {
|
|
|
208
186
|
dislikeReason: string | null;
|
|
209
187
|
externalId: string | null;
|
|
210
188
|
title: string;
|
|
211
|
-
status: import("../..").JOB_STATUS;
|
|
189
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
212
190
|
error: string | null;
|
|
213
191
|
modelId: string;
|
|
214
192
|
groupId: string;
|
|
@@ -225,21 +203,10 @@ export declare namespace PhotoSessionsCommand {
|
|
|
225
203
|
content?: string | null | undefined;
|
|
226
204
|
contentLength?: number | null | undefined;
|
|
227
205
|
}[] | undefined;
|
|
228
|
-
|
|
229
|
-
referenceFile?: {
|
|
230
|
-
uuid: string;
|
|
231
|
-
url: string;
|
|
232
|
-
name: string;
|
|
233
|
-
mimeType: string;
|
|
234
|
-
type: string;
|
|
235
|
-
size: number;
|
|
236
|
-
duration?: number | null | undefined;
|
|
237
|
-
content?: string | null | undefined;
|
|
238
|
-
contentLength?: number | null | undefined;
|
|
239
|
-
} | undefined;
|
|
206
|
+
styleReferenceImageUrl?: string | undefined;
|
|
240
207
|
styleId?: string | null | undefined;
|
|
241
208
|
referenceId?: string | null | undefined;
|
|
242
|
-
|
|
209
|
+
photosCount?: number | undefined;
|
|
243
210
|
clothingPhotos?: {
|
|
244
211
|
uuid: string;
|
|
245
212
|
url: string;
|
|
@@ -280,7 +247,7 @@ export declare namespace PhotoSessionsCommand {
|
|
|
280
247
|
attempts: {
|
|
281
248
|
order: number;
|
|
282
249
|
attemptId?: string | undefined;
|
|
283
|
-
status: import("../..").JOB_STATUS;
|
|
250
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
284
251
|
error: string | null;
|
|
285
252
|
timestamp: Date;
|
|
286
253
|
}[];
|
|
@@ -18,9 +18,8 @@ var PhotoSessionsCommand;
|
|
|
18
18
|
modelId: zod_1.z.string(),
|
|
19
19
|
params: zod_1.z.object({
|
|
20
20
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).min(1).max(3),
|
|
21
|
-
styleId: zod_1.z.string().uuid().nullable()
|
|
22
|
-
|
|
23
|
-
customStylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(6).optional(),
|
|
21
|
+
styleId: zod_1.z.string().uuid().nullable(),
|
|
22
|
+
photosCount: zod_1.z.number().int().min(1).max(6),
|
|
24
23
|
clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
25
24
|
hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
26
25
|
accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
@@ -5,71 +5,6 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
5
5
|
uuid: z.ZodString;
|
|
6
6
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
9
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
10
|
-
params: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
-
uuid: z.ZodString;
|
|
13
|
-
url: z.ZodString;
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
mimeType: z.ZodString;
|
|
16
|
-
type: z.ZodString;
|
|
17
|
-
size: z.ZodNumber;
|
|
18
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
-
}, z.core.$strip>>>;
|
|
22
|
-
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
-
referenceFile: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
uuid: z.ZodString;
|
|
25
|
-
url: z.ZodString;
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
mimeType: z.ZodString;
|
|
28
|
-
type: z.ZodString;
|
|
29
|
-
size: z.ZodNumber;
|
|
30
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
|
-
}, z.core.$strip>>;
|
|
34
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
-
uuid: z.ZodString;
|
|
39
|
-
url: z.ZodString;
|
|
40
|
-
name: z.ZodString;
|
|
41
|
-
mimeType: z.ZodString;
|
|
42
|
-
type: z.ZodString;
|
|
43
|
-
size: z.ZodNumber;
|
|
44
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
45
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
47
|
-
}, z.core.$strip>>>;
|
|
48
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
uuid: z.ZodString;
|
|
50
|
-
url: z.ZodString;
|
|
51
|
-
name: z.ZodString;
|
|
52
|
-
mimeType: z.ZodString;
|
|
53
|
-
type: z.ZodString;
|
|
54
|
-
size: z.ZodNumber;
|
|
55
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
56
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
58
|
-
}, z.core.$strip>>>;
|
|
59
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
-
uuid: z.ZodString;
|
|
61
|
-
url: z.ZodString;
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
mimeType: z.ZodString;
|
|
64
|
-
type: z.ZodString;
|
|
65
|
-
size: z.ZodNumber;
|
|
66
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
68
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
}, z.core.$strip>>>;
|
|
70
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
71
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
8
|
}, z.core.$strip>;
|
|
74
9
|
type Request = z.infer<typeof RequestSchema>;
|
|
75
10
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -81,7 +16,7 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
81
16
|
dislikeReason: string | null;
|
|
82
17
|
externalId: string | null;
|
|
83
18
|
title: string;
|
|
84
|
-
status: import("../..").JOB_STATUS;
|
|
19
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
85
20
|
error: string | null;
|
|
86
21
|
modelId: string;
|
|
87
22
|
groupId: string;
|
|
@@ -98,21 +33,10 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
98
33
|
content?: string | null | undefined;
|
|
99
34
|
contentLength?: number | null | undefined;
|
|
100
35
|
}[] | undefined;
|
|
101
|
-
|
|
102
|
-
referenceFile?: {
|
|
103
|
-
uuid: string;
|
|
104
|
-
url: string;
|
|
105
|
-
name: string;
|
|
106
|
-
mimeType: string;
|
|
107
|
-
type: string;
|
|
108
|
-
size: number;
|
|
109
|
-
duration?: number | null | undefined;
|
|
110
|
-
content?: string | null | undefined;
|
|
111
|
-
contentLength?: number | null | undefined;
|
|
112
|
-
} | undefined;
|
|
36
|
+
styleReferenceImageUrl?: string | undefined;
|
|
113
37
|
styleId?: string | null | undefined;
|
|
114
38
|
referenceId?: string | null | undefined;
|
|
115
|
-
|
|
39
|
+
photosCount?: number | undefined;
|
|
116
40
|
clothingPhotos?: {
|
|
117
41
|
uuid: string;
|
|
118
42
|
url: string;
|
|
@@ -153,7 +77,7 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
153
77
|
attempts: {
|
|
154
78
|
order: number;
|
|
155
79
|
attemptId?: string | undefined;
|
|
156
|
-
status: import("../..").JOB_STATUS;
|
|
80
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
157
81
|
error: string | null;
|
|
158
82
|
timestamp: Date;
|
|
159
83
|
}[];
|
|
@@ -173,7 +97,7 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
173
97
|
dislikeReason: string | null;
|
|
174
98
|
externalId: string | null;
|
|
175
99
|
title: string;
|
|
176
|
-
status: import("../..").JOB_STATUS;
|
|
100
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
177
101
|
error: string | null;
|
|
178
102
|
modelId: string;
|
|
179
103
|
groupId: string;
|
|
@@ -190,21 +114,10 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
190
114
|
content?: string | null | undefined;
|
|
191
115
|
contentLength?: number | null | undefined;
|
|
192
116
|
}[] | undefined;
|
|
193
|
-
|
|
194
|
-
referenceFile?: {
|
|
195
|
-
uuid: string;
|
|
196
|
-
url: string;
|
|
197
|
-
name: string;
|
|
198
|
-
mimeType: string;
|
|
199
|
-
type: string;
|
|
200
|
-
size: number;
|
|
201
|
-
duration?: number | null | undefined;
|
|
202
|
-
content?: string | null | undefined;
|
|
203
|
-
contentLength?: number | null | undefined;
|
|
204
|
-
} | undefined;
|
|
117
|
+
styleReferenceImageUrl?: string | undefined;
|
|
205
118
|
styleId?: string | null | undefined;
|
|
206
119
|
referenceId?: string | null | undefined;
|
|
207
|
-
|
|
120
|
+
photosCount?: number | undefined;
|
|
208
121
|
clothingPhotos?: {
|
|
209
122
|
uuid: string;
|
|
210
123
|
url: string;
|
|
@@ -245,7 +158,7 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
245
158
|
attempts: {
|
|
246
159
|
order: number;
|
|
247
160
|
attemptId?: string | undefined;
|
|
248
|
-
status: import("../..").JOB_STATUS;
|
|
161
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
249
162
|
error: string | null;
|
|
250
163
|
timestamp: Date;
|
|
251
164
|
}[];
|
|
@@ -12,9 +12,6 @@ var RetryPhotoSessionsJobCommand;
|
|
|
12
12
|
uuid: zod_1.z.string().uuid(),
|
|
13
13
|
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
14
14
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
-
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
16
|
-
prompt: zod_1.z.string().optional(),
|
|
17
|
-
params: models_1.PhotoSessionJobParamsSchema.optional(),
|
|
18
15
|
});
|
|
19
16
|
RetryPhotoSessionsJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
|
|
20
17
|
})(RetryPhotoSessionsJobCommand || (exports.RetryPhotoSessionsJobCommand = RetryPhotoSessionsJobCommand = {}));
|
|
@@ -18,7 +18,7 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
18
18
|
dislikeReason: string | null;
|
|
19
19
|
externalId: string | null;
|
|
20
20
|
title: string;
|
|
21
|
-
status: import("../..").JOB_STATUS;
|
|
21
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
22
22
|
error: string | null;
|
|
23
23
|
modelId: string;
|
|
24
24
|
groupId: string;
|
|
@@ -35,21 +35,10 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
35
35
|
content?: string | null | undefined;
|
|
36
36
|
contentLength?: number | null | undefined;
|
|
37
37
|
}[] | undefined;
|
|
38
|
-
|
|
39
|
-
referenceFile?: {
|
|
40
|
-
uuid: string;
|
|
41
|
-
url: string;
|
|
42
|
-
name: string;
|
|
43
|
-
mimeType: string;
|
|
44
|
-
type: string;
|
|
45
|
-
size: number;
|
|
46
|
-
duration?: number | null | undefined;
|
|
47
|
-
content?: string | null | undefined;
|
|
48
|
-
contentLength?: number | null | undefined;
|
|
49
|
-
} | undefined;
|
|
38
|
+
styleReferenceImageUrl?: string | undefined;
|
|
50
39
|
styleId?: string | null | undefined;
|
|
51
40
|
referenceId?: string | null | undefined;
|
|
52
|
-
|
|
41
|
+
photosCount?: number | undefined;
|
|
53
42
|
clothingPhotos?: {
|
|
54
43
|
uuid: string;
|
|
55
44
|
url: string;
|
|
@@ -90,7 +79,7 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
90
79
|
attempts: {
|
|
91
80
|
order: number;
|
|
92
81
|
attemptId?: string | undefined;
|
|
93
|
-
status: import("../..").JOB_STATUS;
|
|
82
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
94
83
|
error: string | null;
|
|
95
84
|
timestamp: Date;
|
|
96
85
|
}[];
|
|
@@ -110,7 +99,7 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
110
99
|
dislikeReason: string | null;
|
|
111
100
|
externalId: string | null;
|
|
112
101
|
title: string;
|
|
113
|
-
status: import("../..").JOB_STATUS;
|
|
102
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
114
103
|
error: string | null;
|
|
115
104
|
modelId: string;
|
|
116
105
|
groupId: string;
|
|
@@ -127,21 +116,10 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
127
116
|
content?: string | null | undefined;
|
|
128
117
|
contentLength?: number | null | undefined;
|
|
129
118
|
}[] | undefined;
|
|
130
|
-
|
|
131
|
-
referenceFile?: {
|
|
132
|
-
uuid: string;
|
|
133
|
-
url: string;
|
|
134
|
-
name: string;
|
|
135
|
-
mimeType: string;
|
|
136
|
-
type: string;
|
|
137
|
-
size: number;
|
|
138
|
-
duration?: number | null | undefined;
|
|
139
|
-
content?: string | null | undefined;
|
|
140
|
-
contentLength?: number | null | undefined;
|
|
141
|
-
} | undefined;
|
|
119
|
+
styleReferenceImageUrl?: string | undefined;
|
|
142
120
|
styleId?: string | null | undefined;
|
|
143
121
|
referenceId?: string | null | undefined;
|
|
144
|
-
|
|
122
|
+
photosCount?: number | undefined;
|
|
145
123
|
clothingPhotos?: {
|
|
146
124
|
uuid: string;
|
|
147
125
|
url: string;
|
|
@@ -182,7 +160,7 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
182
160
|
attempts: {
|
|
183
161
|
order: number;
|
|
184
162
|
attemptId?: string | undefined;
|
|
185
|
-
status: import("../..").JOB_STATUS;
|
|
163
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
186
164
|
error: string | null;
|
|
187
165
|
timestamp: Date;
|
|
188
166
|
}[];
|
|
@@ -16,7 +16,7 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
16
16
|
dislikeReason: string | null;
|
|
17
17
|
externalId: string | null;
|
|
18
18
|
title: string;
|
|
19
|
-
status: import("../..").JOB_STATUS;
|
|
19
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
20
20
|
error: string | null;
|
|
21
21
|
modelId: string;
|
|
22
22
|
groupId: string;
|
|
@@ -33,21 +33,10 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
33
33
|
content?: string | null | undefined;
|
|
34
34
|
contentLength?: number | null | undefined;
|
|
35
35
|
}[] | undefined;
|
|
36
|
-
|
|
37
|
-
referenceFile?: {
|
|
38
|
-
uuid: string;
|
|
39
|
-
url: string;
|
|
40
|
-
name: string;
|
|
41
|
-
mimeType: string;
|
|
42
|
-
type: string;
|
|
43
|
-
size: number;
|
|
44
|
-
duration?: number | null | undefined;
|
|
45
|
-
content?: string | null | undefined;
|
|
46
|
-
contentLength?: number | null | undefined;
|
|
47
|
-
} | undefined;
|
|
36
|
+
styleReferenceImageUrl?: string | undefined;
|
|
48
37
|
styleId?: string | null | undefined;
|
|
49
38
|
referenceId?: string | null | undefined;
|
|
50
|
-
|
|
39
|
+
photosCount?: number | undefined;
|
|
51
40
|
clothingPhotos?: {
|
|
52
41
|
uuid: string;
|
|
53
42
|
url: string;
|
|
@@ -88,7 +77,7 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
88
77
|
attempts: {
|
|
89
78
|
order: number;
|
|
90
79
|
attemptId?: string | undefined;
|
|
91
|
-
status: import("../..").JOB_STATUS;
|
|
80
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
92
81
|
error: string | null;
|
|
93
82
|
timestamp: Date;
|
|
94
83
|
}[];
|
|
@@ -108,7 +97,7 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
108
97
|
dislikeReason: string | null;
|
|
109
98
|
externalId: string | null;
|
|
110
99
|
title: string;
|
|
111
|
-
status: import("../..").JOB_STATUS;
|
|
100
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
112
101
|
error: string | null;
|
|
113
102
|
modelId: string;
|
|
114
103
|
groupId: string;
|
|
@@ -125,21 +114,10 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
125
114
|
content?: string | null | undefined;
|
|
126
115
|
contentLength?: number | null | undefined;
|
|
127
116
|
}[] | undefined;
|
|
128
|
-
|
|
129
|
-
referenceFile?: {
|
|
130
|
-
uuid: string;
|
|
131
|
-
url: string;
|
|
132
|
-
name: string;
|
|
133
|
-
mimeType: string;
|
|
134
|
-
type: string;
|
|
135
|
-
size: number;
|
|
136
|
-
duration?: number | null | undefined;
|
|
137
|
-
content?: string | null | undefined;
|
|
138
|
-
contentLength?: number | null | undefined;
|
|
139
|
-
} | undefined;
|
|
117
|
+
styleReferenceImageUrl?: string | undefined;
|
|
140
118
|
styleId?: string | null | undefined;
|
|
141
119
|
referenceId?: string | null | undefined;
|
|
142
|
-
|
|
120
|
+
photosCount?: number | undefined;
|
|
143
121
|
clothingPhotos?: {
|
|
144
122
|
uuid: string;
|
|
145
123
|
url: string;
|
|
@@ -180,7 +158,7 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
180
158
|
attempts: {
|
|
181
159
|
order: number;
|
|
182
160
|
attemptId?: string | undefined;
|
|
183
|
-
status: import("../..").JOB_STATUS;
|
|
161
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
184
162
|
error: string | null;
|
|
185
163
|
timestamp: Date;
|
|
186
164
|
}[];
|
|
@@ -31,7 +31,7 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
31
31
|
dislikeReason: string | null;
|
|
32
32
|
externalId: string | null;
|
|
33
33
|
title: string;
|
|
34
|
-
status: import("../..").JOB_STATUS;
|
|
34
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
35
35
|
error: string | null;
|
|
36
36
|
modelId: string;
|
|
37
37
|
groupId: string;
|
|
@@ -48,21 +48,10 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
48
48
|
content?: string | null | undefined;
|
|
49
49
|
contentLength?: number | null | undefined;
|
|
50
50
|
}[] | undefined;
|
|
51
|
-
|
|
52
|
-
referenceFile?: {
|
|
53
|
-
uuid: string;
|
|
54
|
-
url: string;
|
|
55
|
-
name: string;
|
|
56
|
-
mimeType: string;
|
|
57
|
-
type: string;
|
|
58
|
-
size: number;
|
|
59
|
-
duration?: number | null | undefined;
|
|
60
|
-
content?: string | null | undefined;
|
|
61
|
-
contentLength?: number | null | undefined;
|
|
62
|
-
} | undefined;
|
|
51
|
+
styleReferenceImageUrl?: string | undefined;
|
|
63
52
|
styleId?: string | null | undefined;
|
|
64
53
|
referenceId?: string | null | undefined;
|
|
65
|
-
|
|
54
|
+
photosCount?: number | undefined;
|
|
66
55
|
clothingPhotos?: {
|
|
67
56
|
uuid: string;
|
|
68
57
|
url: string;
|
|
@@ -103,7 +92,7 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
103
92
|
attempts: {
|
|
104
93
|
order: number;
|
|
105
94
|
attemptId?: string | undefined;
|
|
106
|
-
status: import("../..").JOB_STATUS;
|
|
95
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
107
96
|
error: string | null;
|
|
108
97
|
timestamp: Date;
|
|
109
98
|
}[];
|
|
@@ -142,7 +131,7 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
142
131
|
dislikeReason: string | null;
|
|
143
132
|
externalId: string | null;
|
|
144
133
|
title: string;
|
|
145
|
-
status: import("../..").JOB_STATUS;
|
|
134
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
146
135
|
error: string | null;
|
|
147
136
|
modelId: string;
|
|
148
137
|
groupId: string;
|
|
@@ -159,21 +148,10 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
159
148
|
content?: string | null | undefined;
|
|
160
149
|
contentLength?: number | null | undefined;
|
|
161
150
|
}[] | undefined;
|
|
162
|
-
|
|
163
|
-
referenceFile?: {
|
|
164
|
-
uuid: string;
|
|
165
|
-
url: string;
|
|
166
|
-
name: string;
|
|
167
|
-
mimeType: string;
|
|
168
|
-
type: string;
|
|
169
|
-
size: number;
|
|
170
|
-
duration?: number | null | undefined;
|
|
171
|
-
content?: string | null | undefined;
|
|
172
|
-
contentLength?: number | null | undefined;
|
|
173
|
-
} | undefined;
|
|
151
|
+
styleReferenceImageUrl?: string | undefined;
|
|
174
152
|
styleId?: string | null | undefined;
|
|
175
153
|
referenceId?: string | null | undefined;
|
|
176
|
-
|
|
154
|
+
photosCount?: number | undefined;
|
|
177
155
|
clothingPhotos?: {
|
|
178
156
|
uuid: string;
|
|
179
157
|
url: string;
|
|
@@ -214,7 +192,7 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
214
192
|
attempts: {
|
|
215
193
|
order: number;
|
|
216
194
|
attemptId?: string | undefined;
|
|
217
|
-
status: import("../..").JOB_STATUS;
|
|
195
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
218
196
|
error: string | null;
|
|
219
197
|
timestamp: Date;
|
|
220
198
|
}[];
|
package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
21
21
|
dislikeReason: string | null;
|
|
22
22
|
externalId: string | null;
|
|
23
23
|
title: string;
|
|
24
|
-
status: import("../..").JOB_STATUS;
|
|
24
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
25
25
|
error: string | null;
|
|
26
26
|
modelId: string;
|
|
27
27
|
groupId: string;
|
|
@@ -38,21 +38,10 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
38
38
|
content?: string | null | undefined;
|
|
39
39
|
contentLength?: number | null | undefined;
|
|
40
40
|
}[] | undefined;
|
|
41
|
-
|
|
42
|
-
referenceFile?: {
|
|
43
|
-
uuid: string;
|
|
44
|
-
url: string;
|
|
45
|
-
name: string;
|
|
46
|
-
mimeType: string;
|
|
47
|
-
type: string;
|
|
48
|
-
size: number;
|
|
49
|
-
duration?: number | null | undefined;
|
|
50
|
-
content?: string | null | undefined;
|
|
51
|
-
contentLength?: number | null | undefined;
|
|
52
|
-
} | undefined;
|
|
41
|
+
styleReferenceImageUrl?: string | undefined;
|
|
53
42
|
styleId?: string | null | undefined;
|
|
54
43
|
referenceId?: string | null | undefined;
|
|
55
|
-
|
|
44
|
+
photosCount?: number | undefined;
|
|
56
45
|
clothingPhotos?: {
|
|
57
46
|
uuid: string;
|
|
58
47
|
url: string;
|
|
@@ -93,7 +82,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
93
82
|
attempts: {
|
|
94
83
|
order: number;
|
|
95
84
|
attemptId?: string | undefined;
|
|
96
|
-
status: import("../..").JOB_STATUS;
|
|
85
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
97
86
|
error: string | null;
|
|
98
87
|
timestamp: Date;
|
|
99
88
|
}[];
|
|
@@ -113,7 +102,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
113
102
|
dislikeReason: string | null;
|
|
114
103
|
externalId: string | null;
|
|
115
104
|
title: string;
|
|
116
|
-
status: import("../..").JOB_STATUS;
|
|
105
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
117
106
|
error: string | null;
|
|
118
107
|
modelId: string;
|
|
119
108
|
groupId: string;
|
|
@@ -130,21 +119,10 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
130
119
|
content?: string | null | undefined;
|
|
131
120
|
contentLength?: number | null | undefined;
|
|
132
121
|
}[] | undefined;
|
|
133
|
-
|
|
134
|
-
referenceFile?: {
|
|
135
|
-
uuid: string;
|
|
136
|
-
url: string;
|
|
137
|
-
name: string;
|
|
138
|
-
mimeType: string;
|
|
139
|
-
type: string;
|
|
140
|
-
size: number;
|
|
141
|
-
duration?: number | null | undefined;
|
|
142
|
-
content?: string | null | undefined;
|
|
143
|
-
contentLength?: number | null | undefined;
|
|
144
|
-
} | undefined;
|
|
122
|
+
styleReferenceImageUrl?: string | undefined;
|
|
145
123
|
styleId?: string | null | undefined;
|
|
146
124
|
referenceId?: string | null | undefined;
|
|
147
|
-
|
|
125
|
+
photosCount?: number | undefined;
|
|
148
126
|
clothingPhotos?: {
|
|
149
127
|
uuid: string;
|
|
150
128
|
url: string;
|
|
@@ -185,7 +163,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
185
163
|
attempts: {
|
|
186
164
|
order: number;
|
|
187
165
|
attemptId?: string | undefined;
|
|
188
|
-
status: import("../..").JOB_STATUS;
|
|
166
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
189
167
|
error: string | null;
|
|
190
168
|
timestamp: Date;
|
|
191
169
|
}[];
|
|
@@ -4,7 +4,6 @@ exports.PHOTO_SESSION_GROUP_STATUS = void 0;
|
|
|
4
4
|
var PHOTO_SESSION_GROUP_STATUS;
|
|
5
5
|
(function (PHOTO_SESSION_GROUP_STATUS) {
|
|
6
6
|
PHOTO_SESSION_GROUP_STATUS["PENDING"] = "pending";
|
|
7
|
-
PHOTO_SESSION_GROUP_STATUS["PROCESSING"] = "processing";
|
|
8
7
|
PHOTO_SESSION_GROUP_STATUS["COMPLETED"] = "completed";
|
|
9
8
|
PHOTO_SESSION_GROUP_STATUS["AWAITING_RETRY_JOB"] = "awaiting_retry_job";
|
|
10
9
|
PHOTO_SESSION_GROUP_STATUS["FAILED"] = "failed";
|
|
@@ -23,7 +23,11 @@ export declare const PhotoSessionGroupSchema: z.ZodObject<{
|
|
|
23
23
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
24
24
|
externalId: z.ZodNullable<z.ZodString>;
|
|
25
25
|
title: z.ZodString;
|
|
26
|
-
status: z.ZodEnum<
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
completed: import("../..").JOB_STATUS.COMPLETED;
|
|
28
|
+
failed: import("../..").JOB_STATUS.FAILED;
|
|
29
|
+
pending: import("../..").JOB_STATUS.PENDING;
|
|
30
|
+
}>;
|
|
27
31
|
error: z.ZodNullable<z.ZodString>;
|
|
28
32
|
modelId: z.ZodString;
|
|
29
33
|
groupId: z.ZodString;
|
|
@@ -40,21 +44,10 @@ export declare const PhotoSessionGroupSchema: z.ZodObject<{
|
|
|
40
44
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
45
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
46
|
}, z.core.$strip>>>;
|
|
43
|
-
|
|
44
|
-
referenceFile: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
uuid: z.ZodString;
|
|
46
|
-
url: z.ZodString;
|
|
47
|
-
name: z.ZodString;
|
|
48
|
-
mimeType: z.ZodString;
|
|
49
|
-
type: z.ZodString;
|
|
50
|
-
size: z.ZodNumber;
|
|
51
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
53
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
47
|
+
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
55
48
|
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
49
|
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
|
|
50
|
+
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
58
51
|
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
52
|
uuid: z.ZodString;
|
|
60
53
|
url: z.ZodString;
|
|
@@ -95,7 +88,11 @@ export declare const PhotoSessionGroupSchema: z.ZodObject<{
|
|
|
95
88
|
attempts: z.ZodArray<z.ZodObject<{
|
|
96
89
|
order: z.ZodNumber;
|
|
97
90
|
attemptId: z.ZodOptional<z.ZodString>;
|
|
98
|
-
status: z.ZodEnum<
|
|
91
|
+
status: z.ZodEnum<{
|
|
92
|
+
completed: import("../..").JOB_STATUS.COMPLETED;
|
|
93
|
+
failed: import("../..").JOB_STATUS.FAILED;
|
|
94
|
+
pending: import("../..").JOB_STATUS.PENDING;
|
|
95
|
+
}>;
|
|
99
96
|
error: z.ZodNullable<z.ZodString>;
|
|
100
97
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
101
98
|
}, z.core.$strip>>;
|
|
@@ -13,21 +13,10 @@ export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
|
|
|
13
13
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
14
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
|
-
|
|
17
|
-
referenceFile: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
uuid: z.ZodString;
|
|
19
|
-
url: z.ZodString;
|
|
20
|
-
name: z.ZodString;
|
|
21
|
-
mimeType: z.ZodString;
|
|
22
|
-
type: z.ZodString;
|
|
23
|
-
size: z.ZodNumber;
|
|
24
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
16
|
+
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
28
17
|
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
18
|
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
|
|
19
|
+
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
31
20
|
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
21
|
uuid: z.ZodString;
|
|
33
22
|
url: z.ZodString;
|
|
@@ -68,7 +57,11 @@ export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
|
|
|
68
57
|
export declare const PhotoSessionJobAttemptSchema: z.ZodObject<{
|
|
69
58
|
order: z.ZodNumber;
|
|
70
59
|
attemptId: z.ZodOptional<z.ZodString>;
|
|
71
|
-
status: z.ZodEnum<
|
|
60
|
+
status: z.ZodEnum<{
|
|
61
|
+
completed: JOB_STATUS.COMPLETED;
|
|
62
|
+
failed: JOB_STATUS.FAILED;
|
|
63
|
+
pending: JOB_STATUS.PENDING;
|
|
64
|
+
}>;
|
|
72
65
|
error: z.ZodNullable<z.ZodString>;
|
|
73
66
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
74
67
|
}, z.core.$strip>;
|
|
@@ -80,7 +73,11 @@ export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
|
80
73
|
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
81
74
|
externalId: z.ZodNullable<z.ZodString>;
|
|
82
75
|
title: z.ZodString;
|
|
83
|
-
status: z.ZodEnum<
|
|
76
|
+
status: z.ZodEnum<{
|
|
77
|
+
completed: JOB_STATUS.COMPLETED;
|
|
78
|
+
failed: JOB_STATUS.FAILED;
|
|
79
|
+
pending: JOB_STATUS.PENDING;
|
|
80
|
+
}>;
|
|
84
81
|
error: z.ZodNullable<z.ZodString>;
|
|
85
82
|
modelId: z.ZodString;
|
|
86
83
|
groupId: z.ZodString;
|
|
@@ -97,21 +94,10 @@ export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
|
97
94
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
98
95
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
99
96
|
}, z.core.$strip>>>;
|
|
100
|
-
|
|
101
|
-
referenceFile: z.ZodOptional<z.ZodObject<{
|
|
102
|
-
uuid: z.ZodString;
|
|
103
|
-
url: z.ZodString;
|
|
104
|
-
name: z.ZodString;
|
|
105
|
-
mimeType: z.ZodString;
|
|
106
|
-
type: z.ZodString;
|
|
107
|
-
size: z.ZodNumber;
|
|
108
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
109
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
110
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
111
|
-
}, z.core.$strip>>;
|
|
97
|
+
styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
|
|
112
98
|
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
99
|
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
|
|
100
|
+
photosCount: z.ZodOptional<z.ZodNumber>;
|
|
115
101
|
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
102
|
uuid: z.ZodString;
|
|
117
103
|
url: z.ZodString;
|
|
@@ -152,7 +138,11 @@ export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
|
152
138
|
attempts: z.ZodArray<z.ZodObject<{
|
|
153
139
|
order: z.ZodNumber;
|
|
154
140
|
attemptId: z.ZodOptional<z.ZodString>;
|
|
155
|
-
status: z.ZodEnum<
|
|
141
|
+
status: z.ZodEnum<{
|
|
142
|
+
completed: JOB_STATUS.COMPLETED;
|
|
143
|
+
failed: JOB_STATUS.FAILED;
|
|
144
|
+
pending: JOB_STATUS.PENDING;
|
|
145
|
+
}>;
|
|
156
146
|
error: z.ZodNullable<z.ZodString>;
|
|
157
147
|
timestamp: z.ZodCoercedDate<unknown>;
|
|
158
148
|
}, z.core.$strip>>;
|
|
@@ -4,13 +4,17 @@ exports.PhotoSessionJobSchema = exports.PhotoSessionJobAttemptSchema = exports.P
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const tools_1 = require("../../tools");
|
|
6
6
|
const common_1 = require("../../common");
|
|
7
|
+
const PhotoSessionJobStatusSchema = zod_1.z.enum([
|
|
8
|
+
tools_1.JOB_STATUS.PENDING,
|
|
9
|
+
tools_1.JOB_STATUS.COMPLETED,
|
|
10
|
+
tools_1.JOB_STATUS.FAILED,
|
|
11
|
+
]);
|
|
7
12
|
exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
8
13
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).max(3).optional(),
|
|
9
|
-
|
|
10
|
-
referenceFile: common_1.AttachedFileSchema.optional(),
|
|
14
|
+
styleReferenceImageUrl: zod_1.z.string().optional(),
|
|
11
15
|
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
16
|
referenceId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
-
|
|
17
|
+
photosCount: zod_1.z.number().int().min(1).max(6).optional(),
|
|
14
18
|
clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
15
19
|
hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
16
20
|
accessoriesPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
|
|
@@ -20,7 +24,7 @@ exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
|
20
24
|
exports.PhotoSessionJobAttemptSchema = zod_1.z.object({
|
|
21
25
|
order: zod_1.z.number(),
|
|
22
26
|
attemptId: zod_1.z.string().optional(),
|
|
23
|
-
status:
|
|
27
|
+
status: PhotoSessionJobStatusSchema,
|
|
24
28
|
error: zod_1.z.string().nullable(),
|
|
25
29
|
timestamp: zod_1.z.coerce.date(),
|
|
26
30
|
});
|
|
@@ -31,7 +35,7 @@ exports.PhotoSessionJobSchema = zod_1.z.object({
|
|
|
31
35
|
dislikeReason: zod_1.z.string().nullable(),
|
|
32
36
|
externalId: zod_1.z.string().nullable(),
|
|
33
37
|
title: zod_1.z.string(),
|
|
34
|
-
status:
|
|
38
|
+
status: PhotoSessionJobStatusSchema,
|
|
35
39
|
error: zod_1.z.string().nullable(),
|
|
36
40
|
modelId: zod_1.z.string(),
|
|
37
41
|
groupId: zod_1.z.string(),
|
|
@@ -7,7 +7,7 @@ const models_1 = require("../models");
|
|
|
7
7
|
var FindPhotoSessionStylesQuery;
|
|
8
8
|
(function (FindPhotoSessionStylesQuery) {
|
|
9
9
|
FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
|
|
10
|
-
limit: zod_1.z.coerce.number().min(1).max(
|
|
10
|
+
limit: zod_1.z.coerce.number().min(1).max(50).optional(),
|
|
11
11
|
offset: zod_1.z.coerce.number().min(0).optional(),
|
|
12
12
|
});
|
|
13
13
|
FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
@@ -30,7 +30,7 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
30
30
|
dislikeReason: string | null;
|
|
31
31
|
externalId: string | null;
|
|
32
32
|
title: string;
|
|
33
|
-
status: import("../..").JOB_STATUS;
|
|
33
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
34
34
|
error: string | null;
|
|
35
35
|
modelId: string;
|
|
36
36
|
groupId: string;
|
|
@@ -47,21 +47,10 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
47
47
|
content?: string | null | undefined;
|
|
48
48
|
contentLength?: number | null | undefined;
|
|
49
49
|
}[] | undefined;
|
|
50
|
-
|
|
51
|
-
referenceFile?: {
|
|
52
|
-
uuid: string;
|
|
53
|
-
url: string;
|
|
54
|
-
name: string;
|
|
55
|
-
mimeType: string;
|
|
56
|
-
type: string;
|
|
57
|
-
size: number;
|
|
58
|
-
duration?: number | null | undefined;
|
|
59
|
-
content?: string | null | undefined;
|
|
60
|
-
contentLength?: number | null | undefined;
|
|
61
|
-
} | undefined;
|
|
50
|
+
styleReferenceImageUrl?: string | undefined;
|
|
62
51
|
styleId?: string | null | undefined;
|
|
63
52
|
referenceId?: string | null | undefined;
|
|
64
|
-
|
|
53
|
+
photosCount?: number | undefined;
|
|
65
54
|
clothingPhotos?: {
|
|
66
55
|
uuid: string;
|
|
67
56
|
url: string;
|
|
@@ -102,7 +91,7 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
102
91
|
attempts: {
|
|
103
92
|
order: number;
|
|
104
93
|
attemptId?: string | undefined;
|
|
105
|
-
status: import("../..").JOB_STATUS;
|
|
94
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
106
95
|
error: string | null;
|
|
107
96
|
timestamp: Date;
|
|
108
97
|
}[];
|
|
@@ -141,7 +130,7 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
141
130
|
dislikeReason: string | null;
|
|
142
131
|
externalId: string | null;
|
|
143
132
|
title: string;
|
|
144
|
-
status: import("../..").JOB_STATUS;
|
|
133
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
145
134
|
error: string | null;
|
|
146
135
|
modelId: string;
|
|
147
136
|
groupId: string;
|
|
@@ -158,21 +147,10 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
158
147
|
content?: string | null | undefined;
|
|
159
148
|
contentLength?: number | null | undefined;
|
|
160
149
|
}[] | undefined;
|
|
161
|
-
|
|
162
|
-
referenceFile?: {
|
|
163
|
-
uuid: string;
|
|
164
|
-
url: string;
|
|
165
|
-
name: string;
|
|
166
|
-
mimeType: string;
|
|
167
|
-
type: string;
|
|
168
|
-
size: number;
|
|
169
|
-
duration?: number | null | undefined;
|
|
170
|
-
content?: string | null | undefined;
|
|
171
|
-
contentLength?: number | null | undefined;
|
|
172
|
-
} | undefined;
|
|
150
|
+
styleReferenceImageUrl?: string | undefined;
|
|
173
151
|
styleId?: string | null | undefined;
|
|
174
152
|
referenceId?: string | null | undefined;
|
|
175
|
-
|
|
153
|
+
photosCount?: number | undefined;
|
|
176
154
|
clothingPhotos?: {
|
|
177
155
|
uuid: string;
|
|
178
156
|
url: string;
|
|
@@ -213,7 +191,7 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
|
213
191
|
attempts: {
|
|
214
192
|
order: number;
|
|
215
193
|
attemptId?: string | undefined;
|
|
216
|
-
status: import("../..").JOB_STATUS;
|
|
194
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
217
195
|
error: string | null;
|
|
218
196
|
timestamp: Date;
|
|
219
197
|
}[];
|
|
@@ -40,7 +40,7 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
40
40
|
dislikeReason: string | null;
|
|
41
41
|
externalId: string | null;
|
|
42
42
|
title: string;
|
|
43
|
-
status: import("../..").JOB_STATUS;
|
|
43
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
44
44
|
error: string | null;
|
|
45
45
|
modelId: string;
|
|
46
46
|
groupId: string;
|
|
@@ -57,21 +57,10 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
57
57
|
content?: string | null | undefined;
|
|
58
58
|
contentLength?: number | null | undefined;
|
|
59
59
|
}[] | undefined;
|
|
60
|
-
|
|
61
|
-
referenceFile?: {
|
|
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
|
-
} | undefined;
|
|
60
|
+
styleReferenceImageUrl?: string | undefined;
|
|
72
61
|
styleId?: string | null | undefined;
|
|
73
62
|
referenceId?: string | null | undefined;
|
|
74
|
-
|
|
63
|
+
photosCount?: number | undefined;
|
|
75
64
|
clothingPhotos?: {
|
|
76
65
|
uuid: string;
|
|
77
66
|
url: string;
|
|
@@ -112,7 +101,7 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
112
101
|
attempts: {
|
|
113
102
|
order: number;
|
|
114
103
|
attemptId?: string | undefined;
|
|
115
|
-
status: import("../..").JOB_STATUS;
|
|
104
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
116
105
|
error: string | null;
|
|
117
106
|
timestamp: Date;
|
|
118
107
|
}[];
|
|
@@ -156,7 +145,7 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
156
145
|
dislikeReason: string | null;
|
|
157
146
|
externalId: string | null;
|
|
158
147
|
title: string;
|
|
159
|
-
status: import("../..").JOB_STATUS;
|
|
148
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
160
149
|
error: string | null;
|
|
161
150
|
modelId: string;
|
|
162
151
|
groupId: string;
|
|
@@ -173,21 +162,10 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
173
162
|
content?: string | null | undefined;
|
|
174
163
|
contentLength?: number | null | undefined;
|
|
175
164
|
}[] | undefined;
|
|
176
|
-
|
|
177
|
-
referenceFile?: {
|
|
178
|
-
uuid: string;
|
|
179
|
-
url: string;
|
|
180
|
-
name: string;
|
|
181
|
-
mimeType: string;
|
|
182
|
-
type: string;
|
|
183
|
-
size: number;
|
|
184
|
-
duration?: number | null | undefined;
|
|
185
|
-
content?: string | null | undefined;
|
|
186
|
-
contentLength?: number | null | undefined;
|
|
187
|
-
} | undefined;
|
|
165
|
+
styleReferenceImageUrl?: string | undefined;
|
|
188
166
|
styleId?: string | null | undefined;
|
|
189
167
|
referenceId?: string | null | undefined;
|
|
190
|
-
|
|
168
|
+
photosCount?: number | undefined;
|
|
191
169
|
clothingPhotos?: {
|
|
192
170
|
uuid: string;
|
|
193
171
|
url: string;
|
|
@@ -228,7 +206,7 @@ export declare namespace FindPhotoSessionsJobsQuery {
|
|
|
228
206
|
attempts: {
|
|
229
207
|
order: number;
|
|
230
208
|
attemptId?: string | undefined;
|
|
231
|
-
status: import("../..").JOB_STATUS;
|
|
209
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
232
210
|
error: string | null;
|
|
233
211
|
timestamp: Date;
|
|
234
212
|
}[];
|