@purpleschool/gptbot-tools 0.2.55 → 0.2.56-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/marketplace-card/models/marketplace-card-config.schema.d.ts +0 -1
- package/build/marketplace-card/models/marketplace-card-model.schema.d.ts +0 -1
- package/build/marketplace-card/models/marketplace-card-model.schema.js +0 -1
- package/build/marketplace-card/queries/get-marketplace-card-config.query.d.ts +0 -2
- 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 +55 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +28 -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 +15 -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 +46 -0
- package/build/photo-sessions/commands/get-photo-sessions-price.command.js +30 -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 +147 -0
- package/build/photo-sessions/commands/photo-sessions.command.js +41 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +142 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.js +23 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +115 -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 +113 -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 +113 -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 +118 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.js +26 -0
- package/build/photo-sessions/enums/index.d.ts +2 -0
- package/build/photo-sessions/enums/index.js +18 -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 +4 -0
- package/build/photo-sessions/models/index.js +20 -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-job.schema.d.ts +78 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +46 -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 +110 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.js +10 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +130 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.js +28 -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/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/models/global-tools-config.schema.d.ts +96 -1
- package/build/tools/models/global-tools-config.schema.js +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +62 -2
- package/build/tools/queries/get-global-tools-config.query.d.ts +192 -2
- package/build/tools/queries/get-tools-with-configs.query.d.ts +62 -2
- package/build/video-editor/commands/edit-video.command.d.ts +57 -0
- package/build/video-editor/commands/edit-video.command.js +1 -1
- package/build/video-editor/commands/get-video-editor-price.command.d.ts +1 -0
- package/build/video-editor/commands/retry-video-editor-job.command.d.ts +57 -0
- package/build/video-editor/commands/set-reaction-to-video-editor-job.command.d.ts +38 -0
- package/build/video-editor/commands/update-published-status-video-editor-jobs.command.d.ts +38 -0
- package/build/video-editor/commands/update-video-editor-job-favorite.command.d.ts +38 -0
- package/build/video-editor/commands/update-video-editor-job-title.command.d.ts +38 -0
- package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.d.ts +62 -0
- package/build/video-editor/enums/video-editor-model-limitation.enum.d.ts +2 -1
- package/build/video-editor/enums/video-editor-model-limitation.enum.js +1 -0
- package/build/video-editor/enums/video-editor-model-strategy.enum.d.ts +2 -5
- package/build/video-editor/enums/video-editor-model-strategy.enum.js +2 -5
- package/build/video-editor/models/video-editor-config.schema.d.ts +31 -0
- package/build/video-editor/models/video-editor-job.schema.d.ts +38 -0
- package/build/video-editor/models/video-editor-job.schema.js +9 -0
- package/build/video-editor/models/video-editor-model.schema.d.ts +64 -0
- package/build/video-editor/models/video-editor-model.schema.js +40 -0
- package/build/video-editor/queries/find-video-editor-job-by-id.query.d.ts +38 -0
- package/build/video-editor/queries/find-video-editor-jobs.query.d.ts +38 -0
- package/build/video-editor/queries/get-video-editor-config.query.d.ts +62 -0
- package/package.json +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
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>;
|
|
@@ -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.date(),
|
|
41
|
+
updatedAt: zod_1.z.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.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>;
|
|
@@ -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.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
|
+
});
|
|
@@ -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.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
|
+
}
|
|
@@ -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(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 = {}));
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { JOB_SORT, JOB_STATUS } from '../../tools';
|
|
4
|
+
export declare namespace FindPhotoSessionsJobsQuery {
|
|
5
|
+
const RequestSchema: z.ZodObject<{
|
|
6
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
unregisteredUserId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
9
|
+
title: z.ZodOptional<z.ZodString>;
|
|
10
|
+
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
11
|
+
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
12
|
+
status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
|
|
13
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
14
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
|
18
|
+
isSuccess: z.ZodBoolean;
|
|
19
|
+
data: z.ZodOptional<z.ZodType<{
|
|
20
|
+
data: {
|
|
21
|
+
uuid: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
reaction: import("../..").USER_REACTION | null;
|
|
24
|
+
dislikeReason: string | null;
|
|
25
|
+
externalId: string | null;
|
|
26
|
+
title: string;
|
|
27
|
+
status: JOB_STATUS;
|
|
28
|
+
error: string | null;
|
|
29
|
+
modelId: string;
|
|
30
|
+
price: number;
|
|
31
|
+
previewUrl: string | null;
|
|
32
|
+
params: {
|
|
33
|
+
attachedFiles?: {
|
|
34
|
+
uuid: string;
|
|
35
|
+
url: string;
|
|
36
|
+
name: string;
|
|
37
|
+
mimeType: string;
|
|
38
|
+
type: string;
|
|
39
|
+
size: number;
|
|
40
|
+
duration?: number | null | undefined;
|
|
41
|
+
content?: string | null | undefined;
|
|
42
|
+
contentLength?: number | null | undefined;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
imageUrls?: string[] | undefined;
|
|
45
|
+
styleId?: string | null | undefined;
|
|
46
|
+
referenceId?: string | null | undefined;
|
|
47
|
+
referenceIds?: string[] | undefined;
|
|
48
|
+
customStylePrompt?: string | null | undefined;
|
|
49
|
+
customStylePhotos?: string[] | undefined;
|
|
50
|
+
clothingPhotos?: string[] | undefined;
|
|
51
|
+
hairstylePhotos?: string[] | undefined;
|
|
52
|
+
accessoriesPhotos?: string[] | undefined;
|
|
53
|
+
aspectRatio?: string | undefined;
|
|
54
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
55
|
+
};
|
|
56
|
+
imageUrls: string[] | null;
|
|
57
|
+
attempts: any[];
|
|
58
|
+
userId?: string | null | undefined;
|
|
59
|
+
unregisteredUserId?: string | null | undefined;
|
|
60
|
+
isPublished: boolean;
|
|
61
|
+
postId: string | null;
|
|
62
|
+
isDeleted: boolean;
|
|
63
|
+
isFavorite: boolean;
|
|
64
|
+
tokenReservationId?: string | null | undefined;
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
completedAt?: Date | null | undefined;
|
|
67
|
+
updatedAt: Date;
|
|
68
|
+
}[];
|
|
69
|
+
page: number;
|
|
70
|
+
totalPages: number;
|
|
71
|
+
total: number;
|
|
72
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
73
|
+
data: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
prompt: string;
|
|
76
|
+
reaction: import("../..").USER_REACTION | null;
|
|
77
|
+
dislikeReason: string | null;
|
|
78
|
+
externalId: string | null;
|
|
79
|
+
title: string;
|
|
80
|
+
status: JOB_STATUS;
|
|
81
|
+
error: string | null;
|
|
82
|
+
modelId: string;
|
|
83
|
+
price: number;
|
|
84
|
+
previewUrl: string | null;
|
|
85
|
+
params: {
|
|
86
|
+
attachedFiles?: {
|
|
87
|
+
uuid: string;
|
|
88
|
+
url: string;
|
|
89
|
+
name: string;
|
|
90
|
+
mimeType: string;
|
|
91
|
+
type: string;
|
|
92
|
+
size: number;
|
|
93
|
+
duration?: number | null | undefined;
|
|
94
|
+
content?: string | null | undefined;
|
|
95
|
+
contentLength?: number | null | undefined;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
imageUrls?: string[] | undefined;
|
|
98
|
+
styleId?: string | null | undefined;
|
|
99
|
+
referenceId?: string | null | undefined;
|
|
100
|
+
referenceIds?: string[] | undefined;
|
|
101
|
+
customStylePrompt?: string | null | undefined;
|
|
102
|
+
customStylePhotos?: string[] | undefined;
|
|
103
|
+
clothingPhotos?: string[] | undefined;
|
|
104
|
+
hairstylePhotos?: string[] | undefined;
|
|
105
|
+
accessoriesPhotos?: string[] | undefined;
|
|
106
|
+
aspectRatio?: string | undefined;
|
|
107
|
+
userHasActiveSubscriptionOrProduct?: boolean | undefined;
|
|
108
|
+
};
|
|
109
|
+
imageUrls: string[] | null;
|
|
110
|
+
attempts: any[];
|
|
111
|
+
userId?: string | null | undefined;
|
|
112
|
+
unregisteredUserId?: string | null | undefined;
|
|
113
|
+
isPublished: boolean;
|
|
114
|
+
postId: string | null;
|
|
115
|
+
isDeleted: boolean;
|
|
116
|
+
isFavorite: boolean;
|
|
117
|
+
tokenReservationId?: string | null | undefined;
|
|
118
|
+
createdAt: Date;
|
|
119
|
+
completedAt?: Date | null | undefined;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
}[];
|
|
122
|
+
page: number;
|
|
123
|
+
totalPages: number;
|
|
124
|
+
total: number;
|
|
125
|
+
}, unknown>>>;
|
|
126
|
+
code: z.ZodOptional<z.ZodString>;
|
|
127
|
+
message: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
130
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPhotoSessionsJobsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
7
|
+
const models_1 = require("../models");
|
|
8
|
+
const tools_1 = require("../../tools");
|
|
9
|
+
var FindPhotoSessionsJobsQuery;
|
|
10
|
+
(function (FindPhotoSessionsJobsQuery) {
|
|
11
|
+
FindPhotoSessionsJobsQuery.RequestSchema = zod_1.z.object({
|
|
12
|
+
userId: zod_1.z.string().uuid().optional(),
|
|
13
|
+
unregisteredUserId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
scope: zod_1.z.nativeEnum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
|
|
15
|
+
title: zod_1.z.string().optional(),
|
|
16
|
+
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
17
|
+
createdAtSortOrder: zod_1.z.nativeEnum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
18
|
+
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS).optional(),
|
|
19
|
+
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
20
|
+
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
21
|
+
});
|
|
22
|
+
FindPhotoSessionsJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
23
|
+
data: zod_1.z.array(models_1.PhotoSessionJobSchema),
|
|
24
|
+
page: zod_1.z.number(),
|
|
25
|
+
totalPages: zod_1.z.number(),
|
|
26
|
+
total: zod_1.z.number(),
|
|
27
|
+
}));
|
|
28
|
+
})(FindPhotoSessionsJobsQuery || (exports.FindPhotoSessionsJobsQuery = FindPhotoSessionsJobsQuery = {}));
|