@purpleschool/gptbot-tools 0.2.57 → 0.2.59
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/ai-proxy/routes/ai-proxy.routes.d.ts +0 -1
- package/build/ai-proxy/routes/ai-proxy.routes.js +0 -1
- package/build/image-editor/commands/get-image-editor-price.command.d.ts +2 -0
- package/build/image-editor/commands/get-image-editor-price.command.js +2 -0
- package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.d.ts +6 -0
- package/build/image-editor/commands/image-editor.command.d.ts +3 -0
- package/build/image-editor/commands/image-editor.command.js +1 -0
- package/build/image-editor/commands/retry-image-editor-job.command.d.ts +3 -0
- package/build/image-editor/commands/set-reaction-to-image-editor-job.command.d.ts +2 -0
- package/build/image-editor/commands/update-image-editor-job-favorite.command.d.ts +2 -0
- package/build/image-editor/commands/update-image-editor-job-title.command.d.ts +2 -0
- package/build/image-editor/commands/update-published-status-image-editor-jobs.command.d.ts +2 -0
- package/build/image-editor/enums/image-editor-strategy.enum.d.ts +1 -0
- package/build/image-editor/enums/image-editor-strategy.enum.js +1 -0
- package/build/image-editor/models/image-editor-config.schema.d.ts +3 -0
- package/build/image-editor/models/image-editor-job.schema.d.ts +2 -0
- package/build/image-editor/models/image-editor-job.schema.js +1 -0
- package/build/image-editor/models/image-editor-model.schema.d.ts +6 -0
- package/build/image-editor/models/image-editor-model.schema.js +5 -0
- package/build/image-editor/queries/find-image-editor-job-by-id.query.d.ts +2 -0
- package/build/image-editor/queries/find-image-editor-jobs.query.d.ts +2 -0
- package/build/image-editor/queries/find-image-jobs.query.d.ts +2 -0
- package/build/image-editor/queries/get-image-editor-config.query.d.ts +6 -0
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +1 -0
- package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +2 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -2
- package/build/tools/enums/tool-content-type.enum.js +1 -2
- package/build/tools/enums/tool-type.enum.d.ts +0 -1
- package/build/tools/enums/tool-type.enum.js +0 -1
- package/build/tools/models/global-tools-config.schema.d.ts +3 -76
- package/build/tools/models/global-tools-config.schema.js +0 -2
- package/build/tools/models/tools-with-configs.schema.d.ts +6 -22
- package/build/tools/queries/get-global-tools-config.query.d.ts +6 -152
- package/build/tools/queries/get-tools-with-configs.query.d.ts +6 -22
- package/build/tts/commands/index.d.ts +0 -7
- package/build/tts/commands/index.js +0 -7
- package/build/tts/commands/retry-tts-job.command.d.ts +2 -29
- package/build/tts/commands/retry-tts-job.command.js +0 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +2 -29
- package/build/tts/commands/set-reaction-to-tts-job.command.js +0 -1
- package/build/tts/commands/tts.command.d.ts +3 -35
- package/build/tts/commands/tts.command.js +1 -4
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-favorite.command.js +0 -2
- package/build/tts/commands/update-tts-job-title.command.d.ts +2 -29
- package/build/tts/commands/update-tts-job-title.command.js +0 -2
- package/build/tts/enums/index.d.ts +0 -7
- package/build/tts/enums/index.js +0 -7
- package/build/tts/models/index.d.ts +0 -5
- package/build/tts/models/index.js +0 -5
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +0 -1
- package/build/tts/models/tts-config.schema.d.ts +0 -11
- package/build/tts/models/tts-config.schema.js +0 -5
- package/build/tts/models/tts-job.schema.d.ts +2 -34
- package/build/tts/models/tts-job.schema.js +2 -22
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.d.ts +0 -1
- package/build/tts/models/tts-model.schema.js +0 -1
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +2 -29
- package/build/tts/queries/find-tts-job-by-id.query.js +0 -2
- package/build/tts/queries/find-tts-jobs.query.d.ts +2 -29
- package/build/tts/queries/find-tts-jobs.query.js +0 -1
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +0 -2
- package/build/tts/queries/get-tts-config.query.d.ts +0 -22
- package/build/tts/queries/index.d.ts +0 -2
- package/build/tts/queries/index.js +0 -2
- package/build/tts/routes/tts.amqp.routes.d.ts +0 -9
- package/build/tts/routes/tts.amqp.routes.js +0 -9
- package/package.json +1 -1
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -58
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -21
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +0 -14
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +0 -12
- package/build/photo-sessions/commands/admin/index.d.ts +0 -3
- package/build/photo-sessions/commands/admin/index.js +0 -19
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -55
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +0 -28
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +0 -17
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +0 -15
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +0 -16
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +0 -14
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +0 -46
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +0 -30
- package/build/photo-sessions/commands/index.d.ts +0 -10
- package/build/photo-sessions/commands/index.js +0 -26
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +0 -147
- package/build/photo-sessions/commands/photo-sessions.command.js +0 -41
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +0 -142
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +0 -23
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +0 -115
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +0 -27
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +0 -16
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +0 -113
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +0 -16
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +0 -118
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +0 -26
- package/build/photo-sessions/enums/index.d.ts +0 -2
- package/build/photo-sessions/enums/index.js +0 -18
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +0 -5
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +0 -9
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +0 -4
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +0 -8
- package/build/photo-sessions/index.d.ts +0 -5
- package/build/photo-sessions/index.js +0 -21
- package/build/photo-sessions/models/index.d.ts +0 -4
- package/build/photo-sessions/models/index.js +0 -20
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +0 -72
- package/build/photo-sessions/models/photo-session-config.schema.js +0 -16
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +0 -78
- package/build/photo-sessions/models/photo-session-job.schema.js +0 -46
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +0 -69
- package/build/photo-sessions/models/photo-session-model.schema.js +0 -42
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -29
- package/build/photo-sessions/models/photo-session-style.schema.js +0 -22
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -46
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -57
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +0 -19
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +0 -110
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +0 -10
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +0 -130
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +0 -28
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +0 -142
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +0 -10
- package/build/photo-sessions/queries/index.d.ts +0 -5
- package/build/photo-sessions/queries/index.js +0 -21
- package/build/photo-sessions/routes/index.d.ts +0 -2
- package/build/photo-sessions/routes/index.js +0 -18
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +0 -19
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +0 -22
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +0 -1
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +0 -4
- package/build/tts/commands/create-voice-clone.command.d.ts +0 -56
- package/build/tts/commands/create-voice-clone.command.js +0 -19
- package/build/tts/commands/create-voice-design.command.d.ts +0 -35
- package/build/tts/commands/create-voice-design.command.js +0 -18
- package/build/tts/commands/delete-voice.command.d.ts +0 -15
- package/build/tts/commands/delete-voice.command.js +0 -13
- package/build/tts/commands/download-tts-job.command.d.ts +0 -25
- package/build/tts/commands/download-tts-job.command.js +0 -19
- package/build/tts/commands/improve-tts-text.command.d.ts +0 -22
- package/build/tts/commands/improve-tts-text.command.js +0 -16
- package/build/tts/commands/select-voice-design.command.d.ts +0 -53
- package/build/tts/commands/select-voice-design.command.js +0 -16
- package/build/tts/commands/update-voice.command.d.ts +0 -53
- package/build/tts/commands/update-voice.command.js +0 -16
- package/build/tts/enums/tts-download-format.enum.d.ts +0 -5
- package/build/tts/enums/tts-download-format.enum.js +0 -9
- package/build/tts/enums/voice-category.enum.d.ts +0 -14
- package/build/tts/enums/voice-category.enum.js +0 -18
- package/build/tts/enums/voice-gender.enum.d.ts +0 -4
- package/build/tts/enums/voice-gender.enum.js +0 -8
- package/build/tts/enums/voice-source.enum.d.ts +0 -5
- package/build/tts/enums/voice-source.enum.js +0 -9
- package/build/tts/enums/voice-status.enum.d.ts +0 -5
- package/build/tts/enums/voice-status.enum.js +0 -9
- package/build/tts/enums/voice-tag-group.enum.d.ts +0 -5
- package/build/tts/enums/voice-tag-group.enum.js +0 -9
- package/build/tts/enums/voice-tag.enum.d.ts +0 -20
- package/build/tts/enums/voice-tag.enum.js +0 -24
- package/build/tts/models/voice-category.schema.d.ts +0 -7
- package/build/tts/models/voice-category.schema.js +0 -9
- package/build/tts/models/voice-design-draft.schema.d.ts +0 -12
- package/build/tts/models/voice-design-draft.schema.js +0 -12
- package/build/tts/models/voice-design-sample.schema.d.ts +0 -6
- package/build/tts/models/voice-design-sample.schema.js +0 -8
- package/build/tts/models/voice-tag.schema.d.ts +0 -9
- package/build/tts/models/voice-tag.schema.js +0 -11
- package/build/tts/models/voice.schema.d.ts +0 -25
- package/build/tts/models/voice.schema.js +0 -27
- package/build/tts/queries/find-voice-by-id.query.d.ts +0 -53
- package/build/tts/queries/find-voice-by-id.query.js +0 -16
- package/build/tts/queries/find-voices.query.d.ts +0 -87
- package/build/tts/queries/find-voices.query.js +0 -24
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./photo-session-config.schema"), exports);
|
|
18
|
-
__exportStar(require("./photo-session-job.schema"), exports);
|
|
19
|
-
__exportStar(require("./photo-session-model.schema"), exports);
|
|
20
|
-
__exportStar(require("./photo-session-style.schema"), exports);
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PHOTO_SESSION_LOOK_TYPE } from '../enums';
|
|
3
|
-
export declare const PhotoSessionLookCategorySchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
5
|
-
maxPhotos: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
8
|
-
models: z.ZodArray<z.ZodObject<{
|
|
9
|
-
uuid: z.ZodString;
|
|
10
|
-
title: z.ZodString;
|
|
11
|
-
description: z.ZodString;
|
|
12
|
-
aiModel: z.ZodString;
|
|
13
|
-
isNew: z.ZodBoolean;
|
|
14
|
-
tierLabel: z.ZodString;
|
|
15
|
-
pricePerImage: z.ZodNumber;
|
|
16
|
-
order: z.ZodNumber;
|
|
17
|
-
status: z.ZodEnum<typeof import("../..").TOOL_MODEL_STATUS>;
|
|
18
|
-
icons: z.ZodObject<{
|
|
19
|
-
light: z.ZodObject<{
|
|
20
|
-
svg: z.ZodString;
|
|
21
|
-
png: z.ZodString;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
dark: z.ZodObject<{
|
|
24
|
-
svg: z.ZodString;
|
|
25
|
-
png: z.ZodString;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
strategy: z.ZodEnum<typeof import("..").PHOTO_SESSION_STRATEGY>;
|
|
29
|
-
maxInputLength: z.ZodNumber;
|
|
30
|
-
params: z.ZodObject<{
|
|
31
|
-
imageAttachment: z.ZodObject<{
|
|
32
|
-
supported: z.ZodBoolean;
|
|
33
|
-
maxImages: z.ZodNumber;
|
|
34
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
|
-
width: z.ZodNumber;
|
|
38
|
-
height: z.ZodNumber;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
42
|
-
condition: z.ZodObject<{
|
|
43
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
value: z.ZodNumber;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
createdAt: z.ZodDate;
|
|
48
|
-
updatedAt: z.ZodDate;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
styles: z.ZodArray<z.ZodObject<{
|
|
51
|
-
uuid: z.ZodString;
|
|
52
|
-
code: z.ZodString;
|
|
53
|
-
title: z.ZodString;
|
|
54
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
references: z.ZodArray<z.ZodObject<{
|
|
56
|
-
uuid: z.ZodString;
|
|
57
|
-
styleId: z.ZodString;
|
|
58
|
-
photoUrl: z.ZodString;
|
|
59
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
-
order: z.ZodNumber;
|
|
61
|
-
createdAt: z.ZodDate;
|
|
62
|
-
updatedAt: z.ZodDate;
|
|
63
|
-
}, z.core.$strip>>;
|
|
64
|
-
createdAt: z.ZodDate;
|
|
65
|
-
updatedAt: z.ZodDate;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
looks: z.ZodArray<z.ZodObject<{
|
|
68
|
-
type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
|
|
69
|
-
maxPhotos: z.ZodNumber;
|
|
70
|
-
}, z.core.$strip>>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
export type PhotoSessionConfig = z.infer<typeof PhotoSessionConfigSchema>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionConfigSchema = exports.PhotoSessionLookCategorySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const photo_session_model_schema_1 = require("./photo-session-model.schema");
|
|
6
|
-
const photo_session_style_schema_1 = require("./photo-session-style.schema");
|
|
7
|
-
const enums_1 = require("../enums");
|
|
8
|
-
exports.PhotoSessionLookCategorySchema = zod_1.z.object({
|
|
9
|
-
type: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_LOOK_TYPE),
|
|
10
|
-
maxPhotos: zod_1.z.number(),
|
|
11
|
-
});
|
|
12
|
-
exports.PhotoSessionConfigSchema = zod_1.z.object({
|
|
13
|
-
models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
|
|
14
|
-
styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
|
|
15
|
-
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
16
|
-
});
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_STATUS } from '../../tools';
|
|
3
|
-
import { USER_REACTION } from '../../common';
|
|
4
|
-
export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
|
|
5
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
uuid: z.ZodString;
|
|
7
|
-
url: z.ZodString;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
mimeType: z.ZodString;
|
|
10
|
-
type: z.ZodString;
|
|
11
|
-
size: z.ZodNumber;
|
|
12
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
}, z.core.$strip>>>;
|
|
16
|
-
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
-
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
26
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
export type PhotoSessionJobParams = z.infer<typeof PhotoSessionJobParamsSchema>;
|
|
29
|
-
export declare const PhotoSessionJobSchema: z.ZodObject<{
|
|
30
|
-
uuid: z.ZodString;
|
|
31
|
-
prompt: z.ZodString;
|
|
32
|
-
reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
|
|
33
|
-
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
34
|
-
externalId: z.ZodNullable<z.ZodString>;
|
|
35
|
-
title: z.ZodString;
|
|
36
|
-
status: z.ZodEnum<typeof JOB_STATUS>;
|
|
37
|
-
error: z.ZodNullable<z.ZodString>;
|
|
38
|
-
modelId: z.ZodString;
|
|
39
|
-
price: z.ZodNumber;
|
|
40
|
-
previewUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
-
params: z.ZodObject<{
|
|
42
|
-
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
-
uuid: z.ZodString;
|
|
44
|
-
url: z.ZodString;
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
mimeType: z.ZodString;
|
|
47
|
-
type: z.ZodString;
|
|
48
|
-
size: z.ZodNumber;
|
|
49
|
-
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
50
|
-
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
51
|
-
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
|
-
}, z.core.$strip>>>;
|
|
53
|
-
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
-
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
referenceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
|
-
customStylePrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
-
customStylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
-
clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
-
hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
-
accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
63
|
-
userHasActiveSubscriptionOrProduct: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
66
|
-
attempts: z.ZodArray<z.ZodAny>;
|
|
67
|
-
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
-
isPublished: z.ZodBoolean;
|
|
70
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
71
|
-
isDeleted: z.ZodBoolean;
|
|
72
|
-
isFavorite: z.ZodBoolean;
|
|
73
|
-
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
createdAt: z.ZodDate;
|
|
75
|
-
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
76
|
-
updatedAt: z.ZodDate;
|
|
77
|
-
}, z.core.$strip>;
|
|
78
|
-
export type PhotoSessionJob = z.infer<typeof PhotoSessionJobSchema>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionJobSchema = exports.PhotoSessionJobParamsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const tools_1 = require("../../tools");
|
|
6
|
-
const common_1 = require("../../common");
|
|
7
|
-
exports.PhotoSessionJobParamsSchema = zod_1.z.object({
|
|
8
|
-
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).optional(),
|
|
9
|
-
imageUrls: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
-
styleId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
-
referenceId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
-
referenceIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
13
|
-
customStylePrompt: zod_1.z.string().nullable().optional(),
|
|
14
|
-
customStylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
15
|
-
clothingPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
16
|
-
hairstylePhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
17
|
-
accessoriesPhotos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
18
|
-
aspectRatio: zod_1.z.string().optional(),
|
|
19
|
-
userHasActiveSubscriptionOrProduct: zod_1.z.boolean().optional(),
|
|
20
|
-
});
|
|
21
|
-
exports.PhotoSessionJobSchema = zod_1.z.object({
|
|
22
|
-
uuid: zod_1.z.string(),
|
|
23
|
-
prompt: zod_1.z.string(),
|
|
24
|
-
reaction: zod_1.z.nativeEnum(common_1.USER_REACTION).nullable(),
|
|
25
|
-
dislikeReason: zod_1.z.string().nullable(),
|
|
26
|
-
externalId: zod_1.z.string().nullable(),
|
|
27
|
-
title: zod_1.z.string(),
|
|
28
|
-
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
|
29
|
-
error: zod_1.z.string().nullable(),
|
|
30
|
-
modelId: zod_1.z.string(),
|
|
31
|
-
price: zod_1.z.number(),
|
|
32
|
-
previewUrl: zod_1.z.string().nullable(),
|
|
33
|
-
params: exports.PhotoSessionJobParamsSchema,
|
|
34
|
-
imageUrls: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
35
|
-
attempts: zod_1.z.array(zod_1.z.any()),
|
|
36
|
-
userId: zod_1.z.string().nullable().optional(),
|
|
37
|
-
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
38
|
-
isPublished: zod_1.z.boolean(),
|
|
39
|
-
postId: zod_1.z.string().nullable(),
|
|
40
|
-
isDeleted: zod_1.z.boolean(),
|
|
41
|
-
isFavorite: zod_1.z.boolean(),
|
|
42
|
-
tokenReservationId: zod_1.z.string().nullable().optional(),
|
|
43
|
-
createdAt: zod_1.z.date(),
|
|
44
|
-
completedAt: zod_1.z.date().nullable().optional(),
|
|
45
|
-
updatedAt: zod_1.z.date(),
|
|
46
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TOOL_MODEL_STATUS } from '../../common';
|
|
3
|
-
import { PHOTO_SESSION_STRATEGY } from '../enums';
|
|
4
|
-
export declare const PhotoSessionModelParamsSchema: z.ZodObject<{
|
|
5
|
-
imageAttachment: z.ZodObject<{
|
|
6
|
-
supported: z.ZodBoolean;
|
|
7
|
-
maxImages: z.ZodNumber;
|
|
8
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11
|
-
width: z.ZodNumber;
|
|
12
|
-
height: z.ZodNumber;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type PhotoSessionModelParams = z.infer<typeof PhotoSessionModelParamsSchema>;
|
|
16
|
-
export declare const PhotoSessionModelPricingRuleConditionSchema: z.ZodObject<{
|
|
17
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type PhotoSessionModelPricingRuleCondition = z.infer<typeof PhotoSessionModelPricingRuleConditionSchema>;
|
|
20
|
-
export declare const PhotoSessionModelPricingRulesSchema: z.ZodArray<z.ZodObject<{
|
|
21
|
-
condition: z.ZodObject<{
|
|
22
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
value: z.ZodNumber;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
export type PhotoSessionModelPricingRules = z.infer<typeof PhotoSessionModelPricingRulesSchema>;
|
|
27
|
-
export declare const PhotoSessionModelSchema: z.ZodObject<{
|
|
28
|
-
uuid: z.ZodString;
|
|
29
|
-
title: z.ZodString;
|
|
30
|
-
description: z.ZodString;
|
|
31
|
-
aiModel: z.ZodString;
|
|
32
|
-
isNew: z.ZodBoolean;
|
|
33
|
-
tierLabel: z.ZodString;
|
|
34
|
-
pricePerImage: z.ZodNumber;
|
|
35
|
-
order: z.ZodNumber;
|
|
36
|
-
status: z.ZodEnum<typeof TOOL_MODEL_STATUS>;
|
|
37
|
-
icons: z.ZodObject<{
|
|
38
|
-
light: z.ZodObject<{
|
|
39
|
-
svg: z.ZodString;
|
|
40
|
-
png: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
dark: z.ZodObject<{
|
|
43
|
-
svg: z.ZodString;
|
|
44
|
-
png: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
strategy: z.ZodEnum<typeof PHOTO_SESSION_STRATEGY>;
|
|
48
|
-
maxInputLength: z.ZodNumber;
|
|
49
|
-
params: z.ZodObject<{
|
|
50
|
-
imageAttachment: z.ZodObject<{
|
|
51
|
-
supported: z.ZodBoolean;
|
|
52
|
-
maxImages: z.ZodNumber;
|
|
53
|
-
acceptedTypes: z.ZodArray<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
aspectRatio: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
-
width: z.ZodNumber;
|
|
57
|
-
height: z.ZodNumber;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
pricingRules: z.ZodArray<z.ZodObject<{
|
|
61
|
-
condition: z.ZodObject<{
|
|
62
|
-
withoutSub: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
value: z.ZodNumber;
|
|
65
|
-
}, z.core.$strip>>;
|
|
66
|
-
createdAt: z.ZodDate;
|
|
67
|
-
updatedAt: z.ZodDate;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export type PhotoSessionModel = z.infer<typeof PhotoSessionModelSchema>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionModelSchema = exports.PhotoSessionModelPricingRulesSchema = exports.PhotoSessionModelPricingRuleConditionSchema = exports.PhotoSessionModelParamsSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
|
-
const enums_1 = require("../enums");
|
|
7
|
-
exports.PhotoSessionModelParamsSchema = zod_1.z.object({
|
|
8
|
-
imageAttachment: zod_1.z.object({
|
|
9
|
-
supported: zod_1.z.boolean(),
|
|
10
|
-
maxImages: zod_1.z.number(),
|
|
11
|
-
acceptedTypes: zod_1.z.array(zod_1.z.string()),
|
|
12
|
-
}),
|
|
13
|
-
aspectRatio: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
|
|
14
|
-
width: zod_1.z.number(),
|
|
15
|
-
height: zod_1.z.number(),
|
|
16
|
-
})),
|
|
17
|
-
});
|
|
18
|
-
exports.PhotoSessionModelPricingRuleConditionSchema = zod_1.z.object({
|
|
19
|
-
withoutSub: zod_1.z.boolean().optional(),
|
|
20
|
-
});
|
|
21
|
-
exports.PhotoSessionModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
22
|
-
condition: exports.PhotoSessionModelPricingRuleConditionSchema,
|
|
23
|
-
value: zod_1.z.number(),
|
|
24
|
-
}));
|
|
25
|
-
exports.PhotoSessionModelSchema = zod_1.z.object({
|
|
26
|
-
uuid: zod_1.z.string(),
|
|
27
|
-
title: zod_1.z.string(),
|
|
28
|
-
description: zod_1.z.string(),
|
|
29
|
-
aiModel: zod_1.z.string(),
|
|
30
|
-
isNew: zod_1.z.boolean(),
|
|
31
|
-
tierLabel: zod_1.z.string(),
|
|
32
|
-
pricePerImage: zod_1.z.number(),
|
|
33
|
-
order: zod_1.z.number(),
|
|
34
|
-
status: zod_1.z.nativeEnum(common_1.TOOL_MODEL_STATUS),
|
|
35
|
-
icons: common_1.IconVariantsSchema,
|
|
36
|
-
strategy: zod_1.z.nativeEnum(enums_1.PHOTO_SESSION_STRATEGY),
|
|
37
|
-
maxInputLength: zod_1.z.number(),
|
|
38
|
-
params: exports.PhotoSessionModelParamsSchema,
|
|
39
|
-
pricingRules: exports.PhotoSessionModelPricingRulesSchema,
|
|
40
|
-
createdAt: zod_1.z.date(),
|
|
41
|
-
updatedAt: zod_1.z.date(),
|
|
42
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
|
-
uuid: z.ZodString;
|
|
4
|
-
styleId: z.ZodString;
|
|
5
|
-
photoUrl: z.ZodString;
|
|
6
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
-
order: z.ZodNumber;
|
|
8
|
-
createdAt: z.ZodDate;
|
|
9
|
-
updatedAt: z.ZodDate;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type PhotoSessionStyleReference = z.infer<typeof PhotoSessionStyleReferenceSchema>;
|
|
12
|
-
export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
13
|
-
uuid: z.ZodString;
|
|
14
|
-
code: z.ZodString;
|
|
15
|
-
title: z.ZodString;
|
|
16
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
references: z.ZodArray<z.ZodObject<{
|
|
18
|
-
uuid: z.ZodString;
|
|
19
|
-
styleId: z.ZodString;
|
|
20
|
-
photoUrl: z.ZodString;
|
|
21
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
order: z.ZodNumber;
|
|
23
|
-
createdAt: z.ZodDate;
|
|
24
|
-
updatedAt: z.ZodDate;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
createdAt: z.ZodDate;
|
|
27
|
-
updatedAt: z.ZodDate;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.string().uuid(),
|
|
7
|
-
styleId: zod_1.z.string().uuid(),
|
|
8
|
-
photoUrl: zod_1.z.string(),
|
|
9
|
-
description: zod_1.z.string().nullable().optional(),
|
|
10
|
-
order: zod_1.z.number().int().min(0).max(5),
|
|
11
|
-
createdAt: zod_1.z.date(),
|
|
12
|
-
updatedAt: zod_1.z.date(),
|
|
13
|
-
});
|
|
14
|
-
exports.PhotoSessionStyleSchema = zod_1.z.object({
|
|
15
|
-
uuid: zod_1.z.string().uuid(),
|
|
16
|
-
code: zod_1.z.string(),
|
|
17
|
-
title: zod_1.z.string(),
|
|
18
|
-
description: zod_1.z.string().nullable().optional(),
|
|
19
|
-
references: zod_1.z.array(exports.PhotoSessionStyleReferenceSchema),
|
|
20
|
-
createdAt: zod_1.z.date(),
|
|
21
|
-
updatedAt: zod_1.z.date(),
|
|
22
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
isSuccess: z.ZodBoolean;
|
|
9
|
-
data: z.ZodOptional<z.ZodType<{
|
|
10
|
-
uuid: string;
|
|
11
|
-
code: string;
|
|
12
|
-
title: string;
|
|
13
|
-
description?: string | null | undefined;
|
|
14
|
-
references: {
|
|
15
|
-
uuid: string;
|
|
16
|
-
styleId: string;
|
|
17
|
-
photoUrl: string;
|
|
18
|
-
description?: string | null | undefined;
|
|
19
|
-
order: number;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
}[];
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
26
|
-
uuid: string;
|
|
27
|
-
code: string;
|
|
28
|
-
title: string;
|
|
29
|
-
description?: string | null | undefined;
|
|
30
|
-
references: {
|
|
31
|
-
uuid: string;
|
|
32
|
-
styleId: string;
|
|
33
|
-
photoUrl: string;
|
|
34
|
-
description?: string | null | undefined;
|
|
35
|
-
order: number;
|
|
36
|
-
createdAt: Date;
|
|
37
|
-
updatedAt: Date;
|
|
38
|
-
}[];
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
|
-
}, unknown>>>;
|
|
42
|
-
code: z.ZodOptional<z.ZodString>;
|
|
43
|
-
message: z.ZodOptional<z.ZodString>;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
46
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionStyleByIdQuery = void 0;
|
|
4
|
-
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
|
-
const models_1 = require("../models");
|
|
6
|
-
var FindPhotoSessionStyleByIdQuery;
|
|
7
|
-
(function (FindPhotoSessionStyleByIdQuery) {
|
|
8
|
-
FindPhotoSessionStyleByIdQuery.RequestSchema = models_1.PhotoSessionStyleSchema.pick({ uuid: true });
|
|
9
|
-
FindPhotoSessionStyleByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
|
|
10
|
-
})(FindPhotoSessionStyleByIdQuery || (exports.FindPhotoSessionStyleByIdQuery = FindPhotoSessionStyleByIdQuery = {}));
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace FindPhotoSessionStylesQuery {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
-
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
const ResponseSchema: z.ZodObject<{
|
|
9
|
-
isSuccess: z.ZodBoolean;
|
|
10
|
-
data: z.ZodOptional<z.ZodType<{
|
|
11
|
-
data: {
|
|
12
|
-
uuid: string;
|
|
13
|
-
code: string;
|
|
14
|
-
title: string;
|
|
15
|
-
description?: string | null | undefined;
|
|
16
|
-
references: {
|
|
17
|
-
uuid: string;
|
|
18
|
-
styleId: string;
|
|
19
|
-
photoUrl: string;
|
|
20
|
-
description?: string | null | undefined;
|
|
21
|
-
order: number;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
}[];
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
updatedAt: Date;
|
|
27
|
-
}[];
|
|
28
|
-
page: number;
|
|
29
|
-
totalPages: number;
|
|
30
|
-
total: number;
|
|
31
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
32
|
-
data: {
|
|
33
|
-
uuid: string;
|
|
34
|
-
code: string;
|
|
35
|
-
title: string;
|
|
36
|
-
description?: string | null | undefined;
|
|
37
|
-
references: {
|
|
38
|
-
uuid: string;
|
|
39
|
-
styleId: string;
|
|
40
|
-
photoUrl: string;
|
|
41
|
-
description?: string | null | undefined;
|
|
42
|
-
order: number;
|
|
43
|
-
createdAt: Date;
|
|
44
|
-
updatedAt: Date;
|
|
45
|
-
}[];
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
updatedAt: Date;
|
|
48
|
-
}[];
|
|
49
|
-
page: number;
|
|
50
|
-
totalPages: number;
|
|
51
|
-
total: number;
|
|
52
|
-
}, unknown>>>;
|
|
53
|
-
code: z.ZodOptional<z.ZodString>;
|
|
54
|
-
message: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
57
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionStylesQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const models_1 = require("../models");
|
|
7
|
-
var FindPhotoSessionStylesQuery;
|
|
8
|
-
(function (FindPhotoSessionStylesQuery) {
|
|
9
|
-
FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
|
|
10
|
-
limit: zod_1.z.coerce.number().min(1).max(48).optional().default(24),
|
|
11
|
-
offset: zod_1.z.coerce.number().min(0).optional().default(0),
|
|
12
|
-
});
|
|
13
|
-
FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.PhotoSessionStyleSchema),
|
|
15
|
-
page: zod_1.z.number(),
|
|
16
|
-
totalPages: zod_1.z.number(),
|
|
17
|
-
total: zod_1.z.number(),
|
|
18
|
-
}));
|
|
19
|
-
})(FindPhotoSessionStylesQuery || (exports.FindPhotoSessionStylesQuery = FindPhotoSessionStylesQuery = {}));
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
3
|
-
const RequestSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodObject<{
|
|
8
|
-
isSuccess: z.ZodBoolean;
|
|
9
|
-
data: z.ZodOptional<z.ZodType<{
|
|
10
|
-
uuid: string;
|
|
11
|
-
prompt: string;
|
|
12
|
-
reaction: import("../..").USER_REACTION | null;
|
|
13
|
-
dislikeReason: string | null;
|
|
14
|
-
externalId: string | null;
|
|
15
|
-
title: string;
|
|
16
|
-
status: import("../..").JOB_STATUS;
|
|
17
|
-
error: string | null;
|
|
18
|
-
modelId: string;
|
|
19
|
-
price: number;
|
|
20
|
-
previewUrl: string | null;
|
|
21
|
-
params: {
|
|
22
|
-
attachedFiles?: {
|
|
23
|
-
uuid: string;
|
|
24
|
-
url: string;
|
|
25
|
-
name: string;
|
|
26
|
-
mimeType: string;
|
|
27
|
-
type: string;
|
|
28
|
-
size: number;
|
|
29
|
-
duration?: number | null | undefined;
|
|
30
|
-
content?: string | null | undefined;
|
|
31
|
-
contentLength?: number | null | undefined;
|
|
32
|
-
}[] | undefined;
|
|
33
|
-
imageUrls?: string[] | undefined;
|
|
34
|
-
styleId?: string | null | undefined;
|
|
35
|
-
referenceId?: string | null | undefined;
|
|
36
|
-
referenceIds?: string[] | undefined;
|
|
37
|
-
customStylePrompt?: string | null | undefined;
|
|
38
|
-
customStylePhotos?: string[] | undefined;
|
|
39
|
-
clothingPhotos?: string[] | undefined;
|
|
40
|
-
hairstylePhotos?: string[] | undefined;
|
|
41
|
-
accessoriesPhotos?: string[] | undefined;
|
|
42
|
-
aspectRatio?: string | undefined;
|
|
43
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
44
|
-
};
|
|
45
|
-
imageUrls: string[] | null;
|
|
46
|
-
attempts: any[];
|
|
47
|
-
userId?: string | null | undefined;
|
|
48
|
-
unregisteredUserId?: string | null | undefined;
|
|
49
|
-
isPublished: boolean;
|
|
50
|
-
postId: string | null;
|
|
51
|
-
isDeleted: boolean;
|
|
52
|
-
isFavorite: boolean;
|
|
53
|
-
tokenReservationId?: string | null | undefined;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
completedAt?: Date | null | undefined;
|
|
56
|
-
updatedAt: Date;
|
|
57
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
58
|
-
uuid: string;
|
|
59
|
-
prompt: string;
|
|
60
|
-
reaction: import("../..").USER_REACTION | null;
|
|
61
|
-
dislikeReason: string | null;
|
|
62
|
-
externalId: string | null;
|
|
63
|
-
title: string;
|
|
64
|
-
status: import("../..").JOB_STATUS;
|
|
65
|
-
error: string | null;
|
|
66
|
-
modelId: string;
|
|
67
|
-
price: number;
|
|
68
|
-
previewUrl: string | null;
|
|
69
|
-
params: {
|
|
70
|
-
attachedFiles?: {
|
|
71
|
-
uuid: string;
|
|
72
|
-
url: string;
|
|
73
|
-
name: string;
|
|
74
|
-
mimeType: string;
|
|
75
|
-
type: string;
|
|
76
|
-
size: number;
|
|
77
|
-
duration?: number | null | undefined;
|
|
78
|
-
content?: string | null | undefined;
|
|
79
|
-
contentLength?: number | null | undefined;
|
|
80
|
-
}[] | undefined;
|
|
81
|
-
imageUrls?: string[] | undefined;
|
|
82
|
-
styleId?: string | null | undefined;
|
|
83
|
-
referenceId?: string | null | undefined;
|
|
84
|
-
referenceIds?: string[] | undefined;
|
|
85
|
-
customStylePrompt?: string | null | undefined;
|
|
86
|
-
customStylePhotos?: string[] | undefined;
|
|
87
|
-
clothingPhotos?: string[] | undefined;
|
|
88
|
-
hairstylePhotos?: string[] | undefined;
|
|
89
|
-
accessoriesPhotos?: string[] | undefined;
|
|
90
|
-
aspectRatio?: string | undefined;
|
|
91
|
-
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
92
|
-
};
|
|
93
|
-
imageUrls: string[] | null;
|
|
94
|
-
attempts: any[];
|
|
95
|
-
userId?: string | null | undefined;
|
|
96
|
-
unregisteredUserId?: string | null | undefined;
|
|
97
|
-
isPublished: boolean;
|
|
98
|
-
postId: string | null;
|
|
99
|
-
isDeleted: boolean;
|
|
100
|
-
isFavorite: boolean;
|
|
101
|
-
tokenReservationId?: string | null | undefined;
|
|
102
|
-
createdAt: Date;
|
|
103
|
-
completedAt?: Date | null | undefined;
|
|
104
|
-
updatedAt: Date;
|
|
105
|
-
}, unknown>>>;
|
|
106
|
-
code: z.ZodOptional<z.ZodString>;
|
|
107
|
-
message: z.ZodOptional<z.ZodString>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
110
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindPhotoSessionsJobByIdQuery = void 0;
|
|
4
|
-
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
5
|
-
const models_1 = require("../models");
|
|
6
|
-
var FindPhotoSessionsJobByIdQuery;
|
|
7
|
-
(function (FindPhotoSessionsJobByIdQuery) {
|
|
8
|
-
FindPhotoSessionsJobByIdQuery.RequestSchema = models_1.PhotoSessionJobSchema.pick({ uuid: true });
|
|
9
|
-
FindPhotoSessionsJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionJobSchema);
|
|
10
|
-
})(FindPhotoSessionsJobByIdQuery || (exports.FindPhotoSessionsJobByIdQuery = FindPhotoSessionsJobByIdQuery = {}));
|