@purpleschool/gptbot-tools 0.2.62-stage2 → 0.2.63-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/admin/update-photo-session-style.command.d.ts +0 -1
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +1 -11
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +1 -1
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +6 -2
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +46 -7
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +6 -7
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +253 -95
- package/build/photo-sessions/commands/photo-sessions.command.js +14 -17
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +148 -24
- 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 +105 -17
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +1 -1
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +104 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +204 -78
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +1 -1
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +104 -16
- package/build/photo-sessions/enums/index.d.ts +1 -0
- package/build/photo-sessions/enums/index.js +1 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +7 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +11 -0
- package/build/photo-sessions/models/index.d.ts +1 -0
- package/build/photo-sessions/models/index.js +1 -0
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +116 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +104 -13
- package/build/photo-sessions/models/photo-session-job.schema.js +16 -11
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -2
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +2 -2
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +206 -78
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -2
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +210 -83
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +11 -6
- package/build/tools/events/tool-job-complete.event.d.ts +1 -0
- package/build/tools/events/tool-job-failed.event.d.ts +1 -0
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/package.json +1 -1
|
@@ -11,99 +11,225 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
11
11
|
isSuccess: z.ZodBoolean;
|
|
12
12
|
data: z.ZodOptional<z.ZodType<{
|
|
13
13
|
uuid: string;
|
|
14
|
-
prompt: string;
|
|
15
|
-
reaction: import("../..").USER_REACTION | null;
|
|
16
|
-
dislikeReason: string | null;
|
|
17
|
-
externalId: string | null;
|
|
18
14
|
title: string;
|
|
19
|
-
|
|
15
|
+
prompt: string;
|
|
16
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
20
17
|
error: string | null;
|
|
21
18
|
modelId: string;
|
|
22
19
|
price: number;
|
|
23
|
-
|
|
24
|
-
params:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
mimeType: string;
|
|
30
|
-
type: string;
|
|
31
|
-
size: number;
|
|
32
|
-
duration?: number | null | undefined;
|
|
33
|
-
content?: string | null | undefined;
|
|
34
|
-
contentLength?: number | null | undefined;
|
|
35
|
-
}[] | undefined;
|
|
36
|
-
imageUrls?: string[] | undefined;
|
|
37
|
-
styleId?: string | null | undefined;
|
|
38
|
-
referenceId?: string | null | undefined;
|
|
39
|
-
referenceIds?: string[] | undefined;
|
|
40
|
-
customStylePrompt?: string | null | undefined;
|
|
41
|
-
customStylePhotos?: string[] | undefined;
|
|
42
|
-
clothingPhotos?: string[] | undefined;
|
|
43
|
-
hairstylePhotos?: string[] | undefined;
|
|
44
|
-
accessoriesPhotos?: string[] | undefined;
|
|
45
|
-
aspectRatio?: string | undefined;
|
|
46
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
47
|
-
};
|
|
48
|
-
imageUrls: string[] | null;
|
|
49
|
-
attempts: any[];
|
|
50
|
-
userId?: string | null | undefined;
|
|
51
|
-
unregisteredUserId?: string | null | undefined;
|
|
52
|
-
isPublished: boolean;
|
|
53
|
-
postId: string | null;
|
|
20
|
+
tokenReservationId: string | null;
|
|
21
|
+
params: unknown;
|
|
22
|
+
attempts: unknown[];
|
|
23
|
+
scope: import("../..").JOB_SCOPE;
|
|
24
|
+
userId: string | null;
|
|
25
|
+
unregisteredUserId: string | null;
|
|
54
26
|
isDeleted: boolean;
|
|
55
|
-
|
|
56
|
-
|
|
27
|
+
subJobs: {
|
|
28
|
+
uuid: string;
|
|
29
|
+
prompt: string;
|
|
30
|
+
reaction: import("../..").USER_REACTION | null;
|
|
31
|
+
dislikeReason: string | null;
|
|
32
|
+
externalId: string | null;
|
|
33
|
+
title: string;
|
|
34
|
+
status: import("../..").JOB_STATUS;
|
|
35
|
+
error: string | null;
|
|
36
|
+
modelId: string;
|
|
37
|
+
groupId: string;
|
|
38
|
+
previewUrl: string | null;
|
|
39
|
+
params: {
|
|
40
|
+
attachedFiles?: {
|
|
41
|
+
uuid: string;
|
|
42
|
+
url: string;
|
|
43
|
+
name: string;
|
|
44
|
+
mimeType: string;
|
|
45
|
+
type: string;
|
|
46
|
+
size: number;
|
|
47
|
+
duration?: number | null | undefined;
|
|
48
|
+
content?: string | null | undefined;
|
|
49
|
+
contentLength?: number | null | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
imageUrls?: string[] | undefined;
|
|
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;
|
|
63
|
+
styleId?: string | null | undefined;
|
|
64
|
+
referenceId?: string | null | undefined;
|
|
65
|
+
referenceIds?: string[] | undefined;
|
|
66
|
+
clothingPhotos?: {
|
|
67
|
+
uuid: string;
|
|
68
|
+
url: string;
|
|
69
|
+
name: string;
|
|
70
|
+
mimeType: string;
|
|
71
|
+
type: string;
|
|
72
|
+
size: number;
|
|
73
|
+
duration?: number | null | undefined;
|
|
74
|
+
content?: string | null | undefined;
|
|
75
|
+
contentLength?: number | null | undefined;
|
|
76
|
+
}[] | undefined;
|
|
77
|
+
hairstylePhotos?: {
|
|
78
|
+
uuid: string;
|
|
79
|
+
url: string;
|
|
80
|
+
name: string;
|
|
81
|
+
mimeType: string;
|
|
82
|
+
type: string;
|
|
83
|
+
size: number;
|
|
84
|
+
duration?: number | null | undefined;
|
|
85
|
+
content?: string | null | undefined;
|
|
86
|
+
contentLength?: number | null | undefined;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
accessoriesPhotos?: {
|
|
89
|
+
uuid: string;
|
|
90
|
+
url: string;
|
|
91
|
+
name: string;
|
|
92
|
+
mimeType: string;
|
|
93
|
+
type: string;
|
|
94
|
+
size: number;
|
|
95
|
+
duration?: number | null | undefined;
|
|
96
|
+
content?: string | null | undefined;
|
|
97
|
+
contentLength?: number | null | undefined;
|
|
98
|
+
}[] | undefined;
|
|
99
|
+
aspectRatio?: string | undefined;
|
|
100
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
101
|
+
};
|
|
102
|
+
imageUrls: string[] | null;
|
|
103
|
+
attempts: {
|
|
104
|
+
order: number;
|
|
105
|
+
attemptId?: string | undefined;
|
|
106
|
+
status: import("../..").JOB_STATUS;
|
|
107
|
+
error: string | null;
|
|
108
|
+
timestamp: Date;
|
|
109
|
+
}[];
|
|
110
|
+
userId?: string | null | undefined;
|
|
111
|
+
unregisteredUserId?: string | null | undefined;
|
|
112
|
+
isPublished: boolean;
|
|
113
|
+
postId: string | null;
|
|
114
|
+
isDeleted: boolean;
|
|
115
|
+
isFavorite: boolean;
|
|
116
|
+
createdAt: Date;
|
|
117
|
+
completedAt?: Date | null | undefined;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
}[];
|
|
57
120
|
createdAt: Date;
|
|
58
|
-
completedAt
|
|
121
|
+
completedAt: Date | null;
|
|
59
122
|
updatedAt: Date;
|
|
60
123
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
61
124
|
uuid: string;
|
|
62
|
-
prompt: string;
|
|
63
|
-
reaction: import("../..").USER_REACTION | null;
|
|
64
|
-
dislikeReason: string | null;
|
|
65
|
-
externalId: string | null;
|
|
66
125
|
title: string;
|
|
67
|
-
|
|
126
|
+
prompt: string;
|
|
127
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
68
128
|
error: string | null;
|
|
69
129
|
modelId: string;
|
|
70
130
|
price: number;
|
|
71
|
-
|
|
72
|
-
params:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
}[] | undefined;
|
|
84
|
-
imageUrls?: string[] | undefined;
|
|
85
|
-
styleId?: string | null | undefined;
|
|
86
|
-
referenceId?: string | null | undefined;
|
|
87
|
-
referenceIds?: string[] | undefined;
|
|
88
|
-
customStylePrompt?: string | null | undefined;
|
|
89
|
-
customStylePhotos?: string[] | undefined;
|
|
90
|
-
clothingPhotos?: string[] | undefined;
|
|
91
|
-
hairstylePhotos?: string[] | undefined;
|
|
92
|
-
accessoriesPhotos?: string[] | undefined;
|
|
93
|
-
aspectRatio?: string | undefined;
|
|
94
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
95
|
-
};
|
|
96
|
-
imageUrls: string[] | null;
|
|
97
|
-
attempts: any[];
|
|
98
|
-
userId?: string | null | undefined;
|
|
99
|
-
unregisteredUserId?: string | null | undefined;
|
|
100
|
-
isPublished: boolean;
|
|
101
|
-
postId: string | null;
|
|
131
|
+
tokenReservationId: string | null;
|
|
132
|
+
params: unknown;
|
|
133
|
+
attempts: unknown[];
|
|
134
|
+
scope: import("../..").JOB_SCOPE;
|
|
135
|
+
userId: string | null;
|
|
136
|
+
unregisteredUserId: string | null;
|
|
102
137
|
isDeleted: boolean;
|
|
103
|
-
|
|
104
|
-
|
|
138
|
+
subJobs: {
|
|
139
|
+
uuid: string;
|
|
140
|
+
prompt: string;
|
|
141
|
+
reaction: import("../..").USER_REACTION | null;
|
|
142
|
+
dislikeReason: string | null;
|
|
143
|
+
externalId: string | null;
|
|
144
|
+
title: string;
|
|
145
|
+
status: import("../..").JOB_STATUS;
|
|
146
|
+
error: string | null;
|
|
147
|
+
modelId: string;
|
|
148
|
+
groupId: string;
|
|
149
|
+
previewUrl: string | null;
|
|
150
|
+
params: {
|
|
151
|
+
attachedFiles?: {
|
|
152
|
+
uuid: string;
|
|
153
|
+
url: string;
|
|
154
|
+
name: string;
|
|
155
|
+
mimeType: string;
|
|
156
|
+
type: string;
|
|
157
|
+
size: number;
|
|
158
|
+
duration?: number | null | undefined;
|
|
159
|
+
content?: string | null | undefined;
|
|
160
|
+
contentLength?: number | null | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
imageUrls?: string[] | undefined;
|
|
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;
|
|
174
|
+
styleId?: string | null | undefined;
|
|
175
|
+
referenceId?: string | null | undefined;
|
|
176
|
+
referenceIds?: string[] | undefined;
|
|
177
|
+
clothingPhotos?: {
|
|
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;
|
|
188
|
+
hairstylePhotos?: {
|
|
189
|
+
uuid: string;
|
|
190
|
+
url: string;
|
|
191
|
+
name: string;
|
|
192
|
+
mimeType: string;
|
|
193
|
+
type: string;
|
|
194
|
+
size: number;
|
|
195
|
+
duration?: number | null | undefined;
|
|
196
|
+
content?: string | null | undefined;
|
|
197
|
+
contentLength?: number | null | undefined;
|
|
198
|
+
}[] | undefined;
|
|
199
|
+
accessoriesPhotos?: {
|
|
200
|
+
uuid: string;
|
|
201
|
+
url: string;
|
|
202
|
+
name: string;
|
|
203
|
+
mimeType: string;
|
|
204
|
+
type: string;
|
|
205
|
+
size: number;
|
|
206
|
+
duration?: number | null | undefined;
|
|
207
|
+
content?: string | null | undefined;
|
|
208
|
+
contentLength?: number | null | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
aspectRatio?: string | undefined;
|
|
211
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
212
|
+
};
|
|
213
|
+
imageUrls: string[] | null;
|
|
214
|
+
attempts: {
|
|
215
|
+
order: number;
|
|
216
|
+
attemptId?: string | undefined;
|
|
217
|
+
status: import("../..").JOB_STATUS;
|
|
218
|
+
error: string | null;
|
|
219
|
+
timestamp: Date;
|
|
220
|
+
}[];
|
|
221
|
+
userId?: string | null | undefined;
|
|
222
|
+
unregisteredUserId?: string | null | undefined;
|
|
223
|
+
isPublished: boolean;
|
|
224
|
+
postId: string | null;
|
|
225
|
+
isDeleted: boolean;
|
|
226
|
+
isFavorite: boolean;
|
|
227
|
+
createdAt: Date;
|
|
228
|
+
completedAt?: Date | null | undefined;
|
|
229
|
+
updatedAt: Date;
|
|
230
|
+
}[];
|
|
105
231
|
createdAt: Date;
|
|
106
|
-
completedAt
|
|
232
|
+
completedAt: Date | null;
|
|
107
233
|
updatedAt: Date;
|
|
108
234
|
}, unknown>>>;
|
|
109
235
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -12,5 +12,5 @@ var UpdatePhotoSessionsJobTitleCommand;
|
|
|
12
12
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
13
|
title: zod_1.z.string().min(1).max(40),
|
|
14
14
|
});
|
|
15
|
-
UpdatePhotoSessionsJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.
|
|
15
|
+
UpdatePhotoSessionsJobTitleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionGroupSchema);
|
|
16
16
|
})(UpdatePhotoSessionsJobTitleCommand || (exports.UpdatePhotoSessionsJobTitleCommand = UpdatePhotoSessionsJobTitleCommand = {}));
|
package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
24
24
|
status: import("../..").JOB_STATUS;
|
|
25
25
|
error: string | null;
|
|
26
26
|
modelId: string;
|
|
27
|
-
|
|
27
|
+
groupId: string;
|
|
28
28
|
previewUrl: string | null;
|
|
29
29
|
params: {
|
|
30
30
|
attachedFiles?: {
|
|
@@ -39,26 +39,70 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
39
39
|
contentLength?: number | null | undefined;
|
|
40
40
|
}[] | undefined;
|
|
41
41
|
imageUrls?: string[] | undefined;
|
|
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;
|
|
42
53
|
styleId?: string | null | undefined;
|
|
43
54
|
referenceId?: string | null | undefined;
|
|
44
55
|
referenceIds?: string[] | undefined;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
clothingPhotos?: {
|
|
57
|
+
uuid: string;
|
|
58
|
+
url: string;
|
|
59
|
+
name: string;
|
|
60
|
+
mimeType: string;
|
|
61
|
+
type: string;
|
|
62
|
+
size: number;
|
|
63
|
+
duration?: number | null | undefined;
|
|
64
|
+
content?: string | null | undefined;
|
|
65
|
+
contentLength?: number | null | undefined;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
hairstylePhotos?: {
|
|
68
|
+
uuid: string;
|
|
69
|
+
url: string;
|
|
70
|
+
name: string;
|
|
71
|
+
mimeType: string;
|
|
72
|
+
type: string;
|
|
73
|
+
size: number;
|
|
74
|
+
duration?: number | null | undefined;
|
|
75
|
+
content?: string | null | undefined;
|
|
76
|
+
contentLength?: number | null | undefined;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
accessoriesPhotos?: {
|
|
79
|
+
uuid: string;
|
|
80
|
+
url: string;
|
|
81
|
+
name: string;
|
|
82
|
+
mimeType: string;
|
|
83
|
+
type: string;
|
|
84
|
+
size: number;
|
|
85
|
+
duration?: number | null | undefined;
|
|
86
|
+
content?: string | null | undefined;
|
|
87
|
+
contentLength?: number | null | undefined;
|
|
88
|
+
}[] | undefined;
|
|
50
89
|
aspectRatio?: string | undefined;
|
|
51
90
|
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
52
91
|
};
|
|
53
92
|
imageUrls: string[] | null;
|
|
54
|
-
attempts:
|
|
93
|
+
attempts: {
|
|
94
|
+
order: number;
|
|
95
|
+
attemptId?: string | undefined;
|
|
96
|
+
status: import("../..").JOB_STATUS;
|
|
97
|
+
error: string | null;
|
|
98
|
+
timestamp: Date;
|
|
99
|
+
}[];
|
|
55
100
|
userId?: string | null | undefined;
|
|
56
101
|
unregisteredUserId?: string | null | undefined;
|
|
57
102
|
isPublished: boolean;
|
|
58
103
|
postId: string | null;
|
|
59
104
|
isDeleted: boolean;
|
|
60
105
|
isFavorite: boolean;
|
|
61
|
-
tokenReservationId?: string | null | undefined;
|
|
62
106
|
createdAt: Date;
|
|
63
107
|
completedAt?: Date | null | undefined;
|
|
64
108
|
updatedAt: Date;
|
|
@@ -72,7 +116,7 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
72
116
|
status: import("../..").JOB_STATUS;
|
|
73
117
|
error: string | null;
|
|
74
118
|
modelId: string;
|
|
75
|
-
|
|
119
|
+
groupId: string;
|
|
76
120
|
previewUrl: string | null;
|
|
77
121
|
params: {
|
|
78
122
|
attachedFiles?: {
|
|
@@ -87,26 +131,70 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
87
131
|
contentLength?: number | null | undefined;
|
|
88
132
|
}[] | undefined;
|
|
89
133
|
imageUrls?: string[] | undefined;
|
|
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;
|
|
90
145
|
styleId?: string | null | undefined;
|
|
91
146
|
referenceId?: string | null | undefined;
|
|
92
147
|
referenceIds?: string[] | undefined;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
148
|
+
clothingPhotos?: {
|
|
149
|
+
uuid: string;
|
|
150
|
+
url: string;
|
|
151
|
+
name: string;
|
|
152
|
+
mimeType: string;
|
|
153
|
+
type: string;
|
|
154
|
+
size: number;
|
|
155
|
+
duration?: number | null | undefined;
|
|
156
|
+
content?: string | null | undefined;
|
|
157
|
+
contentLength?: number | null | undefined;
|
|
158
|
+
}[] | undefined;
|
|
159
|
+
hairstylePhotos?: {
|
|
160
|
+
uuid: string;
|
|
161
|
+
url: string;
|
|
162
|
+
name: string;
|
|
163
|
+
mimeType: string;
|
|
164
|
+
type: string;
|
|
165
|
+
size: number;
|
|
166
|
+
duration?: number | null | undefined;
|
|
167
|
+
content?: string | null | undefined;
|
|
168
|
+
contentLength?: number | null | undefined;
|
|
169
|
+
}[] | undefined;
|
|
170
|
+
accessoriesPhotos?: {
|
|
171
|
+
uuid: string;
|
|
172
|
+
url: string;
|
|
173
|
+
name: string;
|
|
174
|
+
mimeType: string;
|
|
175
|
+
type: string;
|
|
176
|
+
size: number;
|
|
177
|
+
duration?: number | null | undefined;
|
|
178
|
+
content?: string | null | undefined;
|
|
179
|
+
contentLength?: number | null | undefined;
|
|
180
|
+
}[] | undefined;
|
|
98
181
|
aspectRatio?: string | undefined;
|
|
99
182
|
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
100
183
|
};
|
|
101
184
|
imageUrls: string[] | null;
|
|
102
|
-
attempts:
|
|
185
|
+
attempts: {
|
|
186
|
+
order: number;
|
|
187
|
+
attemptId?: string | undefined;
|
|
188
|
+
status: import("../..").JOB_STATUS;
|
|
189
|
+
error: string | null;
|
|
190
|
+
timestamp: Date;
|
|
191
|
+
}[];
|
|
103
192
|
userId?: string | null | undefined;
|
|
104
193
|
unregisteredUserId?: string | null | undefined;
|
|
105
194
|
isPublished: boolean;
|
|
106
195
|
postId: string | null;
|
|
107
196
|
isDeleted: boolean;
|
|
108
197
|
isFavorite: boolean;
|
|
109
|
-
tokenReservationId?: string | null | undefined;
|
|
110
198
|
createdAt: Date;
|
|
111
199
|
completedAt?: Date | null | undefined;
|
|
112
200
|
updatedAt: Date;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./photo-session-strategy.enum"), exports);
|
|
18
18
|
__exportStar(require("./photo-session-look-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./photo-session-group-status.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PHOTO_SESSION_GROUP_STATUS = void 0;
|
|
4
|
+
var PHOTO_SESSION_GROUP_STATUS;
|
|
5
|
+
(function (PHOTO_SESSION_GROUP_STATUS) {
|
|
6
|
+
PHOTO_SESSION_GROUP_STATUS["PENDING"] = "pending";
|
|
7
|
+
PHOTO_SESSION_GROUP_STATUS["PROCESSING"] = "processing";
|
|
8
|
+
PHOTO_SESSION_GROUP_STATUS["COMPLETED"] = "completed";
|
|
9
|
+
PHOTO_SESSION_GROUP_STATUS["AWAITING_RETRY_JOB"] = "awaiting_retry_job";
|
|
10
|
+
PHOTO_SESSION_GROUP_STATUS["FAILED"] = "failed";
|
|
11
|
+
})(PHOTO_SESSION_GROUP_STATUS || (exports.PHOTO_SESSION_GROUP_STATUS = PHOTO_SESSION_GROUP_STATUS = {}));
|
|
@@ -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("./photo-session-config.schema"), exports);
|
|
18
|
+
__exportStar(require("./photo-session-group.schema"), exports);
|
|
18
19
|
__exportStar(require("./photo-session-job.schema"), exports);
|
|
19
20
|
__exportStar(require("./photo-session-model.schema"), exports);
|
|
20
21
|
__exportStar(require("./photo-session-style.schema"), exports);
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { PHOTO_SESSION_GROUP_STATUS } from '../enums';
|
|
4
|
+
export declare const PhotoSessionGroupSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<typeof PHOTO_SESSION_GROUP_STATUS>;
|
|
9
|
+
error: z.ZodNullable<z.ZodString>;
|
|
10
|
+
modelId: z.ZodString;
|
|
11
|
+
price: z.ZodNumber;
|
|
12
|
+
tokenReservationId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
params: z.ZodUnknown;
|
|
14
|
+
attempts: z.ZodArray<z.ZodUnknown>;
|
|
15
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
16
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
isDeleted: z.ZodBoolean;
|
|
19
|
+
subJobs: z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
prompt: z.ZodString;
|
|
22
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
|
|
23
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
24
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
27
|
+
error: z.ZodNullable<z.ZodString>;
|
|
28
|
+
modelId: z.ZodString;
|
|
29
|
+
groupId: z.ZodString;
|
|
30
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
31
|
+
params: z.ZodObject<{
|
|
32
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
uuid: z.ZodString;
|
|
34
|
+
url: z.ZodString;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
mimeType: z.ZodString;
|
|
37
|
+
type: z.ZodString;
|
|
38
|
+
size: z.ZodNumber;
|
|
39
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
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>>;
|
|
55
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
uuid: z.ZodString;
|
|
60
|
+
url: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
mimeType: z.ZodString;
|
|
63
|
+
type: z.ZodString;
|
|
64
|
+
size: z.ZodNumber;
|
|
65
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
67
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
uuid: z.ZodString;
|
|
71
|
+
url: z.ZodString;
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
mimeType: z.ZodString;
|
|
74
|
+
type: z.ZodString;
|
|
75
|
+
size: z.ZodNumber;
|
|
76
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
77
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
uuid: z.ZodString;
|
|
82
|
+
url: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
mimeType: z.ZodString;
|
|
85
|
+
type: z.ZodString;
|
|
86
|
+
size: z.ZodNumber;
|
|
87
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
88
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
92
|
+
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
95
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
96
|
+
order: z.ZodNumber;
|
|
97
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
99
|
+
error: z.ZodNullable<z.ZodString>;
|
|
100
|
+
timestamp: z.ZodDate;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
isPublished: z.ZodBoolean;
|
|
105
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
106
|
+
isDeleted: z.ZodBoolean;
|
|
107
|
+
isFavorite: z.ZodBoolean;
|
|
108
|
+
createdAt: z.ZodDate;
|
|
109
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
110
|
+
updatedAt: z.ZodDate;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
createdAt: z.ZodDate;
|
|
113
|
+
completedAt: z.ZodNullable<z.ZodDate>;
|
|
114
|
+
updatedAt: z.ZodDate;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type PhotoSessionGroup = z.infer<typeof PhotoSessionGroupSchema>;
|