@purpleschool/gptbot-tools 0.2.70 → 0.2.72-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/ai-proxy/routes/ai-proxy.routes.d.ts +1 -0
- package/build/ai-proxy/routes/ai-proxy.routes.js +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +58 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +21 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.d.ts +14 -0
- package/build/photo-sessions/commands/admin/delete-photo-session-style.command.js +12 -0
- package/build/photo-sessions/commands/admin/index.d.ts +3 -0
- package/build/photo-sessions/commands/admin/index.js +19 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +54 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +18 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.d.ts +17 -0
- package/build/photo-sessions/commands/delete-all-photo-sessions-jobs.command.js +19 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.d.ts +16 -0
- package/build/photo-sessions/commands/delete-photo-sessions-job-by-uuid.command.js +14 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.d.ts +74 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +28 -0
- package/build/photo-sessions/commands/index.d.ts +10 -0
- package/build/photo-sessions/commands/index.js +26 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +272 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +37 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +179 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +17 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +181 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.js +27 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +179 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.js +16 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +217 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.js +16 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +184 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +3 -0
- package/build/photo-sessions/enums/index.js +19 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.d.ts +6 -0
- package/build/photo-sessions/enums/photo-session-group-status.enum.js +10 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.d.ts +5 -0
- package/build/photo-sessions/enums/photo-session-look-type.enum.js +9 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +8 -0
- package/build/photo-sessions/index.d.ts +5 -0
- package/build/photo-sessions/index.js +21 -0
- package/build/photo-sessions/models/index.d.ts +5 -0
- package/build/photo-sessions/models/index.js +21 -0
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +72 -0
- package/build/photo-sessions/models/photo-session-config.schema.js +16 -0
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +113 -0
- package/build/photo-sessions/models/photo-session-group.schema.js +27 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +159 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +55 -0
- package/build/photo-sessions/models/photo-session-model.schema.d.ts +69 -0
- package/build/photo-sessions/models/photo-session-model.schema.js +42 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +29 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +22 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +46 -0
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +57 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +19 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +216 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +18 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +235 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +33 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +142 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.js +10 -0
- package/build/photo-sessions/queries/index.d.ts +5 -0
- package/build/photo-sessions/queries/index.js +21 -0
- package/build/photo-sessions/routes/index.d.ts +2 -0
- package/build/photo-sessions/routes/index.js +18 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.d.ts +19 -0
- package/build/photo-sessions/routes/photo-sessions.amqp.routes.js +22 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.d.ts +1 -0
- package/build/photo-sessions/routes/photo-sessions.http.routes.js +4 -0
- package/build/spell-corrector/commands/get-spell-corrector-price.command.d.ts +16 -3
- package/build/spell-corrector/commands/get-spell-corrector-price.command.js +6 -1
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.d.ts +67 -0
- package/build/spell-corrector/commands/retry-spell-corrector-job.command.js +2 -0
- package/build/spell-corrector/commands/set-reaction-to-spell-corrector-job.command.d.ts +56 -0
- package/build/spell-corrector/commands/spell-corrector.command.d.ts +69 -1
- package/build/spell-corrector/commands/spell-corrector.command.js +9 -2
- package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.d.ts +56 -0
- package/build/spell-corrector/commands/update-spell-corrector-job-title.command.d.ts +56 -0
- package/build/spell-corrector/constants/index.d.ts +1 -0
- package/build/spell-corrector/constants/index.js +17 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.d.ts +32 -0
- package/build/spell-corrector/constants/spell-corrector-errors.constant.js +35 -0
- package/build/spell-corrector/enums/index.d.ts +1 -0
- package/build/spell-corrector/enums/index.js +17 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.d.ts +4 -0
- package/build/spell-corrector/enums/spell-corrector-input-kind.enum.js +8 -0
- package/build/spell-corrector/index.d.ts +2 -0
- package/build/spell-corrector/index.js +2 -0
- package/build/spell-corrector/models/index.d.ts +2 -0
- package/build/spell-corrector/models/index.js +2 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.d.ts +7 -0
- package/build/spell-corrector/models/spell-corrector-correction-statistics.schema.js +13 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.d.ts +22 -0
- package/build/spell-corrector/models/spell-corrector-document.schema.js +16 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.d.ts +29 -0
- package/build/spell-corrector/models/spell-corrector-job.schema.js +11 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.d.ts +4 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.js +4 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.d.ts +5 -0
- package/build/spell-corrector/models/spell-corrector-tool-config.schema.js +1 -0
- package/build/spell-corrector/queries/find-spell-corrector-job-by-uuid.query.d.ts +56 -0
- package/build/spell-corrector/queries/find-spell-corrector-jobs.query.d.ts +56 -0
- package/build/spell-corrector/queries/get-spell-corrector-tool-config.query.d.ts +10 -0
- package/build/tools/enums/tool-content-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-content-type.enum.js +1 -0
- package/build/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/tools/enums/tool-type.enum.js +1 -0
- 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/global-tools-config.schema.d.ts +81 -0
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tool-job.schema.d.ts +1 -0
- package/build/tools/models/tool-job.schema.js +1 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +32 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +162 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +32 -0
- package/build/tts/commands/create-voice-clone.command.d.ts +81 -0
- package/build/tts/commands/create-voice-clone.command.js +21 -0
- package/build/tts/commands/create-voice-design.command.d.ts +40 -0
- package/build/tts/commands/create-voice-design.command.js +20 -0
- package/build/tts/commands/delete-voice.command.d.ts +17 -0
- package/build/tts/commands/delete-voice.command.js +14 -0
- package/build/tts/commands/download-tts-job.command.d.ts +25 -0
- package/build/tts/commands/download-tts-job.command.js +19 -0
- package/build/tts/commands/improve-tts-text.command.d.ts +22 -0
- package/build/tts/commands/improve-tts-text.command.js +16 -0
- package/build/tts/commands/index.d.ts +7 -0
- package/build/tts/commands/index.js +7 -0
- package/build/tts/commands/retry-tts-job.command.d.ts +29 -2
- package/build/tts/commands/retry-tts-job.command.js +2 -0
- package/build/tts/commands/select-voice-design.command.d.ts +77 -0
- package/build/tts/commands/select-voice-design.command.js +17 -0
- package/build/tts/commands/set-reaction-to-tts-job.command.d.ts +29 -2
- package/build/tts/commands/set-reaction-to-tts-job.command.js +1 -0
- package/build/tts/commands/tts.command.d.ts +35 -3
- package/build/tts/commands/tts.command.js +4 -1
- package/build/tts/commands/update-tts-job-favorite.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-favorite.command.js +2 -0
- package/build/tts/commands/update-tts-job-title.command.d.ts +29 -2
- package/build/tts/commands/update-tts-job-title.command.js +2 -0
- package/build/tts/commands/update-voice.command.d.ts +78 -0
- package/build/tts/commands/update-voice.command.js +18 -0
- package/build/tts/enums/index.d.ts +7 -0
- package/build/tts/enums/index.js +7 -0
- package/build/tts/enums/tts-download-format.enum.d.ts +5 -0
- package/build/tts/enums/tts-download-format.enum.js +9 -0
- package/build/tts/enums/voice-category.enum.d.ts +19 -0
- package/build/tts/enums/voice-category.enum.js +23 -0
- package/build/tts/enums/voice-gender.enum.d.ts +4 -0
- package/build/tts/enums/voice-gender.enum.js +8 -0
- package/build/tts/enums/voice-source.enum.d.ts +5 -0
- package/build/tts/enums/voice-source.enum.js +9 -0
- package/build/tts/enums/voice-status.enum.d.ts +5 -0
- package/build/tts/enums/voice-status.enum.js +9 -0
- package/build/tts/enums/voice-tag-group.enum.d.ts +5 -0
- package/build/tts/enums/voice-tag-group.enum.js +9 -0
- package/build/tts/enums/voice-tag.enum.d.ts +20 -0
- package/build/tts/enums/voice-tag.enum.js +24 -0
- package/build/tts/models/index.d.ts +7 -0
- package/build/tts/models/index.js +7 -0
- package/build/tts/models/tts-config-with-vendors.schema.d.ts +1 -0
- package/build/tts/models/tts-config.schema.d.ts +11 -0
- package/build/tts/models/tts-config.schema.js +5 -0
- package/build/tts/models/tts-job.schema.d.ts +34 -2
- package/build/tts/models/tts-job.schema.js +22 -2
- package/build/tts/models/tts-model-with-vendor.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.d.ts +1 -0
- package/build/tts/models/tts-model.schema.js +1 -0
- package/build/tts/models/voice-category.schema.d.ts +7 -0
- package/build/tts/models/voice-category.schema.js +9 -0
- package/build/tts/models/voice-design-draft.schema.d.ts +13 -0
- package/build/tts/models/voice-design-draft.schema.js +13 -0
- package/build/tts/models/voice-design-sample.schema.d.ts +6 -0
- package/build/tts/models/voice-design-sample.schema.js +8 -0
- package/build/tts/models/voice-gender.schema.d.ts +7 -0
- package/build/tts/models/voice-gender.schema.js +9 -0
- package/build/tts/models/voice-source.schema.d.ts +7 -0
- package/build/tts/models/voice-source.schema.js +9 -0
- package/build/tts/models/voice-tag.schema.d.ts +9 -0
- package/build/tts/models/voice-tag.schema.js +11 -0
- package/build/tts/models/voice.schema.d.ts +34 -0
- package/build/tts/models/voice.schema.js +30 -0
- package/build/tts/queries/find-tts-job-by-id.query.d.ts +29 -2
- package/build/tts/queries/find-tts-job-by-id.query.js +2 -0
- package/build/tts/queries/find-tts-jobs.query.d.ts +29 -2
- package/build/tts/queries/find-tts-jobs.query.js +1 -0
- package/build/tts/queries/find-voice-by-id.query.d.ts +77 -0
- package/build/tts/queries/find-voice-by-id.query.js +17 -0
- package/build/tts/queries/find-voices.query.d.ts +122 -0
- package/build/tts/queries/find-voices.query.js +25 -0
- package/build/tts/queries/get-tts-config-with-vendors.query.d.ts +2 -0
- package/build/tts/queries/get-tts-config.query.d.ts +22 -0
- package/build/tts/queries/index.d.ts +2 -0
- package/build/tts/queries/index.js +2 -0
- package/build/tts/routes/tts.amqp.routes.d.ts +9 -0
- package/build/tts/routes/tts.amqp.routes.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
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.coerce.date(),
|
|
41
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
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.ZodCoercedDate<unknown>;
|
|
9
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
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.ZodCoercedDate<unknown>;
|
|
24
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
27
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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.coerce.date(),
|
|
12
|
+
updatedAt: zod_1.z.coerce.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.coerce.date(),
|
|
21
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
22
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindPhotoSessionStylesQuery {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5
|
+
offset: 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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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(50).optional(),
|
|
11
|
+
offset: zod_1.z.coerce.number().min(0).optional(),
|
|
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 = {}));
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace FindPhotoSessionsJobByIdQuery {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
isSuccess: z.ZodBoolean;
|
|
11
|
+
data: z.ZodOptional<z.ZodType<{
|
|
12
|
+
uuid: string;
|
|
13
|
+
title: string;
|
|
14
|
+
prompt: string;
|
|
15
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
16
|
+
error: string | null;
|
|
17
|
+
modelId: string;
|
|
18
|
+
price: number;
|
|
19
|
+
tokenReservationId: string | null;
|
|
20
|
+
params: unknown;
|
|
21
|
+
attempts: unknown[];
|
|
22
|
+
scope: import("../..").JOB_SCOPE;
|
|
23
|
+
userId: string | null;
|
|
24
|
+
unregisteredUserId: string | null;
|
|
25
|
+
isDeleted: boolean;
|
|
26
|
+
subJobs: {
|
|
27
|
+
uuid: string;
|
|
28
|
+
prompt: string;
|
|
29
|
+
reaction: import("../..").USER_REACTION | null;
|
|
30
|
+
dislikeReason: string | null;
|
|
31
|
+
externalId: string | null;
|
|
32
|
+
title: string;
|
|
33
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
34
|
+
error: string | null;
|
|
35
|
+
modelId: string;
|
|
36
|
+
groupId: string;
|
|
37
|
+
previewUrl: string | null;
|
|
38
|
+
params: {
|
|
39
|
+
attachedFiles?: {
|
|
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;
|
|
50
|
+
styleReferenceImageUrl?: string | undefined;
|
|
51
|
+
styleId?: string | null | undefined;
|
|
52
|
+
referenceId?: string | null | undefined;
|
|
53
|
+
photosCount?: number | undefined;
|
|
54
|
+
clothingPhotos?: {
|
|
55
|
+
uuid: string;
|
|
56
|
+
url: string;
|
|
57
|
+
name: string;
|
|
58
|
+
mimeType: string;
|
|
59
|
+
type: string;
|
|
60
|
+
size: number;
|
|
61
|
+
duration?: number | null | undefined;
|
|
62
|
+
content?: string | null | undefined;
|
|
63
|
+
contentLength?: number | null | undefined;
|
|
64
|
+
}[] | undefined;
|
|
65
|
+
hairstylePhotos?: {
|
|
66
|
+
uuid: string;
|
|
67
|
+
url: string;
|
|
68
|
+
name: string;
|
|
69
|
+
mimeType: string;
|
|
70
|
+
type: string;
|
|
71
|
+
size: number;
|
|
72
|
+
duration?: number | null | undefined;
|
|
73
|
+
content?: string | null | undefined;
|
|
74
|
+
contentLength?: number | null | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
accessoriesPhotos?: {
|
|
77
|
+
uuid: string;
|
|
78
|
+
url: string;
|
|
79
|
+
name: string;
|
|
80
|
+
mimeType: string;
|
|
81
|
+
type: string;
|
|
82
|
+
size: number;
|
|
83
|
+
duration?: number | null | undefined;
|
|
84
|
+
content?: string | null | undefined;
|
|
85
|
+
contentLength?: number | null | undefined;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
aspectRatio?: string | undefined;
|
|
88
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
89
|
+
};
|
|
90
|
+
imageUrls: string[] | null;
|
|
91
|
+
attempts: {
|
|
92
|
+
order: number;
|
|
93
|
+
attemptId?: string | undefined;
|
|
94
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
95
|
+
error: string | null;
|
|
96
|
+
timestamp: Date;
|
|
97
|
+
}[];
|
|
98
|
+
userId?: string | null | undefined;
|
|
99
|
+
unregisteredUserId?: string | null | undefined;
|
|
100
|
+
isPublished: boolean;
|
|
101
|
+
postId: string | null;
|
|
102
|
+
isDeleted: boolean;
|
|
103
|
+
isFavorite: boolean;
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
completedAt?: Date | null | undefined;
|
|
106
|
+
updatedAt: Date;
|
|
107
|
+
}[];
|
|
108
|
+
createdAt: Date;
|
|
109
|
+
completedAt: Date | null;
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
112
|
+
uuid: string;
|
|
113
|
+
title: string;
|
|
114
|
+
prompt: string;
|
|
115
|
+
status: import("..").PHOTO_SESSION_GROUP_STATUS;
|
|
116
|
+
error: string | null;
|
|
117
|
+
modelId: string;
|
|
118
|
+
price: number;
|
|
119
|
+
tokenReservationId: string | null;
|
|
120
|
+
params: unknown;
|
|
121
|
+
attempts: unknown[];
|
|
122
|
+
scope: import("../..").JOB_SCOPE;
|
|
123
|
+
userId: string | null;
|
|
124
|
+
unregisteredUserId: string | null;
|
|
125
|
+
isDeleted: boolean;
|
|
126
|
+
subJobs: {
|
|
127
|
+
uuid: string;
|
|
128
|
+
prompt: string;
|
|
129
|
+
reaction: import("../..").USER_REACTION | null;
|
|
130
|
+
dislikeReason: string | null;
|
|
131
|
+
externalId: string | null;
|
|
132
|
+
title: string;
|
|
133
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
134
|
+
error: string | null;
|
|
135
|
+
modelId: string;
|
|
136
|
+
groupId: string;
|
|
137
|
+
previewUrl: string | null;
|
|
138
|
+
params: {
|
|
139
|
+
attachedFiles?: {
|
|
140
|
+
uuid: string;
|
|
141
|
+
url: string;
|
|
142
|
+
name: string;
|
|
143
|
+
mimeType: string;
|
|
144
|
+
type: string;
|
|
145
|
+
size: number;
|
|
146
|
+
duration?: number | null | undefined;
|
|
147
|
+
content?: string | null | undefined;
|
|
148
|
+
contentLength?: number | null | undefined;
|
|
149
|
+
}[] | undefined;
|
|
150
|
+
styleReferenceImageUrl?: string | undefined;
|
|
151
|
+
styleId?: string | null | undefined;
|
|
152
|
+
referenceId?: string | null | undefined;
|
|
153
|
+
photosCount?: number | undefined;
|
|
154
|
+
clothingPhotos?: {
|
|
155
|
+
uuid: string;
|
|
156
|
+
url: string;
|
|
157
|
+
name: string;
|
|
158
|
+
mimeType: string;
|
|
159
|
+
type: string;
|
|
160
|
+
size: number;
|
|
161
|
+
duration?: number | null | undefined;
|
|
162
|
+
content?: string | null | undefined;
|
|
163
|
+
contentLength?: number | null | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
hairstylePhotos?: {
|
|
166
|
+
uuid: string;
|
|
167
|
+
url: string;
|
|
168
|
+
name: string;
|
|
169
|
+
mimeType: string;
|
|
170
|
+
type: string;
|
|
171
|
+
size: number;
|
|
172
|
+
duration?: number | null | undefined;
|
|
173
|
+
content?: string | null | undefined;
|
|
174
|
+
contentLength?: number | null | undefined;
|
|
175
|
+
}[] | undefined;
|
|
176
|
+
accessoriesPhotos?: {
|
|
177
|
+
uuid: string;
|
|
178
|
+
url: string;
|
|
179
|
+
name: string;
|
|
180
|
+
mimeType: string;
|
|
181
|
+
type: string;
|
|
182
|
+
size: number;
|
|
183
|
+
duration?: number | null | undefined;
|
|
184
|
+
content?: string | null | undefined;
|
|
185
|
+
contentLength?: number | null | undefined;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
aspectRatio?: string | undefined;
|
|
188
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
189
|
+
};
|
|
190
|
+
imageUrls: string[] | null;
|
|
191
|
+
attempts: {
|
|
192
|
+
order: number;
|
|
193
|
+
attemptId?: string | undefined;
|
|
194
|
+
status: import("../..").JOB_STATUS.PENDING | import("../..").JOB_STATUS.COMPLETED | import("../..").JOB_STATUS.FAILED;
|
|
195
|
+
error: string | null;
|
|
196
|
+
timestamp: Date;
|
|
197
|
+
}[];
|
|
198
|
+
userId?: string | null | undefined;
|
|
199
|
+
unregisteredUserId?: string | null | undefined;
|
|
200
|
+
isPublished: boolean;
|
|
201
|
+
postId: string | null;
|
|
202
|
+
isDeleted: boolean;
|
|
203
|
+
isFavorite: boolean;
|
|
204
|
+
createdAt: Date;
|
|
205
|
+
completedAt?: Date | null | undefined;
|
|
206
|
+
updatedAt: Date;
|
|
207
|
+
}[];
|
|
208
|
+
createdAt: Date;
|
|
209
|
+
completedAt: Date | null;
|
|
210
|
+
updatedAt: Date;
|
|
211
|
+
}, unknown>>>;
|
|
212
|
+
code: z.ZodOptional<z.ZodString>;
|
|
213
|
+
message: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
216
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPhotoSessionsJobByIdQuery = 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 FindPhotoSessionsJobByIdQuery;
|
|
8
|
+
(function (FindPhotoSessionsJobByIdQuery) {
|
|
9
|
+
FindPhotoSessionsJobByIdQuery.RequestSchema = models_1.PhotoSessionGroupSchema.pick({ uuid: true })
|
|
10
|
+
.extend({
|
|
11
|
+
userId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
+
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => Boolean(data.userId) !== Boolean(data.unregisteredUserId), {
|
|
15
|
+
message: 'Exactly one owner identity is required',
|
|
16
|
+
});
|
|
17
|
+
FindPhotoSessionsJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionGroupSchema);
|
|
18
|
+
})(FindPhotoSessionsJobByIdQuery || (exports.FindPhotoSessionsJobByIdQuery = FindPhotoSessionsJobByIdQuery = {}));
|