@purpleschool/gptbot-tools 0.3.0-stage-2 → 0.4.0-stage-2
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/interior-design/commands/delete-interior-design-generation-group-by-uuid.command.d.ts +16 -0
- package/build/interior-design/commands/delete-interior-design-generation-group-by-uuid.command.js +14 -0
- package/build/interior-design/commands/delete-interior-design-job-by-uuid.command.d.ts +185 -1
- package/build/interior-design/commands/delete-interior-design-job-by-uuid.command.js +5 -1
- package/build/interior-design/commands/get-interior-design-price.command.d.ts +1 -0
- package/build/interior-design/commands/get-interior-design-price.command.js +1 -0
- package/build/interior-design/commands/index.d.ts +6 -3
- package/build/interior-design/commands/index.js +6 -3
- package/build/interior-design/commands/interior-design-model/get-interior-design-model-by-uuid.command.d.ts +8 -0
- package/build/interior-design/commands/interior-design.command.d.ts +143 -33
- package/build/interior-design/commands/interior-design.command.js +14 -10
- package/build/interior-design/commands/retry-interior-design-generation-group-job.command.d.ts +121 -0
- package/build/interior-design/commands/retry-interior-design-generation-group-job.command.js +21 -0
- package/build/interior-design/commands/retry-interior-design-job.command.d.ts +30 -0
- package/build/interior-design/commands/set-reaction-to-interior-design-job.command.d.ts +22 -0
- package/build/interior-design/commands/set-reaction-to-interior-design-job.command.js +1 -6
- package/build/interior-design/commands/update-interior-design-generation-group-favorite.command.d.ts +195 -0
- package/build/interior-design/commands/update-interior-design-generation-group-favorite.command.js +16 -0
- package/build/interior-design/commands/update-interior-design-job-favorite.command.d.ts +22 -0
- package/build/interior-design/commands/update-interior-design-job-title.command.d.ts +128 -28
- package/build/interior-design/commands/update-interior-design-job-title.command.js +1 -1
- package/build/interior-design/enums/index.d.ts +3 -0
- package/build/interior-design/enums/index.js +3 -0
- package/build/interior-design/enums/interior-design-generation-group-status.enum.d.ts +6 -0
- package/build/interior-design/enums/interior-design-generation-group-status.enum.js +10 -0
- package/build/interior-design/enums/interior-design-generation-mode.enum.d.ts +5 -0
- package/build/interior-design/enums/interior-design-generation-mode.enum.js +9 -0
- package/build/interior-design/enums/interior-design-generation-type.enum.d.ts +4 -0
- package/build/interior-design/enums/interior-design-generation-type.enum.js +8 -0
- package/build/interior-design/models/index.d.ts +1 -0
- package/build/interior-design/models/index.js +1 -0
- package/build/interior-design/models/interior-design-config.schema.d.ts +105 -7
- package/build/interior-design/models/interior-design-config.schema.js +29 -2
- package/build/interior-design/models/interior-design-generation-group.schema.d.ts +133 -0
- package/build/interior-design/models/interior-design-generation-group.schema.js +28 -0
- package/build/interior-design/models/interior-design-job.schema.d.ts +47 -3
- package/build/interior-design/models/interior-design-job.schema.js +21 -5
- package/build/interior-design/models/interior-design-model.schema.d.ts +9 -0
- package/build/interior-design/models/interior-design-model.schema.js +6 -0
- package/build/interior-design/queries/find-interior-design-job-by-id.query.d.ts +128 -28
- package/build/interior-design/queries/find-interior-design-job-by-id.query.js +1 -1
- package/build/interior-design/queries/find-interior-design-jobs.query.d.ts +131 -30
- package/build/interior-design/queries/find-interior-design-jobs.query.js +8 -3
- package/build/interior-design/queries/get-interior-design-config.query.d.ts +58 -14
- package/build/tools/models/global-tools-config.schema.d.ts +29 -7
- package/build/tools/models/tools-with-configs.schema.d.ts +58 -14
- package/build/tools/queries/get-global-tools-config.query.d.ts +58 -14
- package/build/tools/queries/get-tools-with-configs.query.d.ts +58 -14
- package/package.json +1 -1
package/build/interior-design/commands/retry-interior-design-generation-group-job.command.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace RetryInteriorDesignGenerationGroupJobCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
|
+
uuid: z.ZodUUID;
|
|
6
|
+
tokenReservationId: z.ZodUUID;
|
|
7
|
+
precalculatedPrice: z.ZodNumber;
|
|
8
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
9
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
10
|
+
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
11
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
isSuccess: z.ZodBoolean;
|
|
16
|
+
data: z.ZodOptional<z.ZodType<{
|
|
17
|
+
uuid: string;
|
|
18
|
+
prompt: string;
|
|
19
|
+
reaction: import("../..").USER_REACTION | null;
|
|
20
|
+
dislikeReason: string | null;
|
|
21
|
+
externalId: string | null;
|
|
22
|
+
title: string;
|
|
23
|
+
status: import("../..").JOB_STATUS;
|
|
24
|
+
error: string | null;
|
|
25
|
+
internalError?: string | null | undefined;
|
|
26
|
+
modelId: string;
|
|
27
|
+
groupId?: string | null | undefined;
|
|
28
|
+
position?: number | null | undefined;
|
|
29
|
+
attemptId?: string | null | undefined;
|
|
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
|
+
styleId?: string | undefined;
|
|
45
|
+
roomTypeId?: string | undefined;
|
|
46
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
47
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
48
|
+
objectTypeId?: string | undefined;
|
|
49
|
+
objectSubtypeId?: string | undefined;
|
|
50
|
+
resolution?: string | undefined;
|
|
51
|
+
batching?: number | undefined;
|
|
52
|
+
promptProfileVersion?: string | undefined;
|
|
53
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
54
|
+
};
|
|
55
|
+
imageUrls: string[] | null;
|
|
56
|
+
attempts: any[];
|
|
57
|
+
userId?: string | null | undefined;
|
|
58
|
+
unregisteredUserId?: string | null | undefined;
|
|
59
|
+
tokenReservationId?: string | null | undefined;
|
|
60
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
61
|
+
isDeleted: boolean;
|
|
62
|
+
isFavorite: boolean;
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
completedAt?: Date | null | undefined;
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
67
|
+
uuid: string;
|
|
68
|
+
prompt: string;
|
|
69
|
+
reaction: import("../..").USER_REACTION | null;
|
|
70
|
+
dislikeReason: string | null;
|
|
71
|
+
externalId: string | null;
|
|
72
|
+
title: string;
|
|
73
|
+
status: import("../..").JOB_STATUS;
|
|
74
|
+
error: string | null;
|
|
75
|
+
internalError?: string | null | undefined;
|
|
76
|
+
modelId: string;
|
|
77
|
+
groupId?: string | null | undefined;
|
|
78
|
+
position?: number | null | undefined;
|
|
79
|
+
attemptId?: string | null | undefined;
|
|
80
|
+
price: number;
|
|
81
|
+
previewUrl: string | null;
|
|
82
|
+
params: {
|
|
83
|
+
attachedFiles?: {
|
|
84
|
+
uuid: string;
|
|
85
|
+
url: string;
|
|
86
|
+
name: string;
|
|
87
|
+
mimeType: string;
|
|
88
|
+
type: string;
|
|
89
|
+
size: number;
|
|
90
|
+
duration?: number | null | undefined;
|
|
91
|
+
content?: string | null | undefined;
|
|
92
|
+
contentLength?: number | null | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
styleId?: string | undefined;
|
|
95
|
+
roomTypeId?: string | undefined;
|
|
96
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
97
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
98
|
+
objectTypeId?: string | undefined;
|
|
99
|
+
objectSubtypeId?: string | undefined;
|
|
100
|
+
resolution?: string | undefined;
|
|
101
|
+
batching?: number | undefined;
|
|
102
|
+
promptProfileVersion?: string | undefined;
|
|
103
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
104
|
+
};
|
|
105
|
+
imageUrls: string[] | null;
|
|
106
|
+
attempts: any[];
|
|
107
|
+
userId?: string | null | undefined;
|
|
108
|
+
unregisteredUserId?: string | null | undefined;
|
|
109
|
+
tokenReservationId?: string | null | undefined;
|
|
110
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
111
|
+
isDeleted: boolean;
|
|
112
|
+
isFavorite: boolean;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
completedAt?: Date | null | undefined;
|
|
115
|
+
updatedAt: Date;
|
|
116
|
+
}, unknown>>>;
|
|
117
|
+
code: z.ZodOptional<z.ZodString>;
|
|
118
|
+
message: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
121
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RetryInteriorDesignGenerationGroupJobCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const common_1 = require("../../common");
|
|
7
|
+
const models_1 = require("../models");
|
|
8
|
+
var RetryInteriorDesignGenerationGroupJobCommand;
|
|
9
|
+
(function (RetryInteriorDesignGenerationGroupJobCommand) {
|
|
10
|
+
RetryInteriorDesignGenerationGroupJobCommand.RequestSchema = zod_1.z.object({
|
|
11
|
+
locale: common_1.LocaleSchema,
|
|
12
|
+
uuid: zod_1.z.uuid(),
|
|
13
|
+
tokenReservationId: zod_1.z.uuid(),
|
|
14
|
+
precalculatedPrice: zod_1.z.number(),
|
|
15
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
16
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
17
|
+
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
18
|
+
mock: zod_1.z.boolean().optional(),
|
|
19
|
+
});
|
|
20
|
+
RetryInteriorDesignGenerationGroupJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.InteriorDesignJobSchema);
|
|
21
|
+
})(RetryInteriorDesignGenerationGroupJobCommand || (exports.RetryInteriorDesignGenerationGroupJobCommand = RetryInteriorDesignGenerationGroupJobCommand = {}));
|
|
@@ -24,6 +24,14 @@ export declare namespace RetryInteriorDesignJobCommand {
|
|
|
24
24
|
}, z.core.$strip>>>;
|
|
25
25
|
styleId: z.ZodOptional<z.ZodString>;
|
|
26
26
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
generationType: z.ZodOptional<z.ZodEnum<typeof import("..").INTERIOR_DESIGN_GENERATION_TYPE>>;
|
|
28
|
+
generationMode: z.ZodOptional<z.ZodEnum<typeof import("..").INTERIOR_DESIGN_GENERATION_MODE>>;
|
|
29
|
+
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
objectSubtypeId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
32
|
+
batching: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
promptProfileVersion: z.ZodOptional<z.ZodString>;
|
|
34
|
+
promptProfileInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
35
|
}, z.core.$strip>>;
|
|
28
36
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
29
37
|
}, z.core.$strip>;
|
|
@@ -41,6 +49,9 @@ export declare namespace RetryInteriorDesignJobCommand {
|
|
|
41
49
|
error: string | null;
|
|
42
50
|
internalError?: string | null | undefined;
|
|
43
51
|
modelId: string;
|
|
52
|
+
groupId?: string | null | undefined;
|
|
53
|
+
position?: number | null | undefined;
|
|
54
|
+
attemptId?: string | null | undefined;
|
|
44
55
|
price: number;
|
|
45
56
|
previewUrl: string | null;
|
|
46
57
|
params: {
|
|
@@ -57,6 +68,14 @@ export declare namespace RetryInteriorDesignJobCommand {
|
|
|
57
68
|
}[] | undefined;
|
|
58
69
|
styleId?: string | undefined;
|
|
59
70
|
roomTypeId?: string | undefined;
|
|
71
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
72
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
73
|
+
objectTypeId?: string | undefined;
|
|
74
|
+
objectSubtypeId?: string | undefined;
|
|
75
|
+
resolution?: string | undefined;
|
|
76
|
+
batching?: number | undefined;
|
|
77
|
+
promptProfileVersion?: string | undefined;
|
|
78
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
60
79
|
};
|
|
61
80
|
imageUrls: string[] | null;
|
|
62
81
|
attempts: any[];
|
|
@@ -80,6 +99,9 @@ export declare namespace RetryInteriorDesignJobCommand {
|
|
|
80
99
|
error: string | null;
|
|
81
100
|
internalError?: string | null | undefined;
|
|
82
101
|
modelId: string;
|
|
102
|
+
groupId?: string | null | undefined;
|
|
103
|
+
position?: number | null | undefined;
|
|
104
|
+
attemptId?: string | null | undefined;
|
|
83
105
|
price: number;
|
|
84
106
|
previewUrl: string | null;
|
|
85
107
|
params: {
|
|
@@ -96,6 +118,14 @@ export declare namespace RetryInteriorDesignJobCommand {
|
|
|
96
118
|
}[] | undefined;
|
|
97
119
|
styleId?: string | undefined;
|
|
98
120
|
roomTypeId?: string | undefined;
|
|
121
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
122
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
123
|
+
objectTypeId?: string | undefined;
|
|
124
|
+
objectSubtypeId?: string | undefined;
|
|
125
|
+
resolution?: string | undefined;
|
|
126
|
+
batching?: number | undefined;
|
|
127
|
+
promptProfileVersion?: string | undefined;
|
|
128
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
99
129
|
};
|
|
100
130
|
imageUrls: string[] | null;
|
|
101
131
|
attempts: any[];
|
|
@@ -22,6 +22,9 @@ export declare namespace SetReactionToInteriorDesignJobCommand {
|
|
|
22
22
|
error: string | null;
|
|
23
23
|
internalError?: string | null | undefined;
|
|
24
24
|
modelId: string;
|
|
25
|
+
groupId?: string | null | undefined;
|
|
26
|
+
position?: number | null | undefined;
|
|
27
|
+
attemptId?: string | null | undefined;
|
|
25
28
|
price: number;
|
|
26
29
|
previewUrl: string | null;
|
|
27
30
|
params: {
|
|
@@ -38,6 +41,14 @@ export declare namespace SetReactionToInteriorDesignJobCommand {
|
|
|
38
41
|
}[] | undefined;
|
|
39
42
|
styleId?: string | undefined;
|
|
40
43
|
roomTypeId?: string | undefined;
|
|
44
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
45
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
46
|
+
objectTypeId?: string | undefined;
|
|
47
|
+
objectSubtypeId?: string | undefined;
|
|
48
|
+
resolution?: string | undefined;
|
|
49
|
+
batching?: number | undefined;
|
|
50
|
+
promptProfileVersion?: string | undefined;
|
|
51
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
41
52
|
};
|
|
42
53
|
imageUrls: string[] | null;
|
|
43
54
|
attempts: any[];
|
|
@@ -61,6 +72,9 @@ export declare namespace SetReactionToInteriorDesignJobCommand {
|
|
|
61
72
|
error: string | null;
|
|
62
73
|
internalError?: string | null | undefined;
|
|
63
74
|
modelId: string;
|
|
75
|
+
groupId?: string | null | undefined;
|
|
76
|
+
position?: number | null | undefined;
|
|
77
|
+
attemptId?: string | null | undefined;
|
|
64
78
|
price: number;
|
|
65
79
|
previewUrl: string | null;
|
|
66
80
|
params: {
|
|
@@ -77,6 +91,14 @@ export declare namespace SetReactionToInteriorDesignJobCommand {
|
|
|
77
91
|
}[] | undefined;
|
|
78
92
|
styleId?: string | undefined;
|
|
79
93
|
roomTypeId?: string | undefined;
|
|
94
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
95
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
96
|
+
objectTypeId?: string | undefined;
|
|
97
|
+
objectSubtypeId?: string | undefined;
|
|
98
|
+
resolution?: string | undefined;
|
|
99
|
+
batching?: number | undefined;
|
|
100
|
+
promptProfileVersion?: string | undefined;
|
|
101
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
80
102
|
};
|
|
81
103
|
imageUrls: string[] | null;
|
|
82
104
|
attempts: any[];
|
|
@@ -15,12 +15,7 @@ var SetReactionToInteriorDesignJobCommand;
|
|
|
15
15
|
reaction: zod_1.z.enum(common_1.USER_REACTION).nullable(),
|
|
16
16
|
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
17
17
|
})
|
|
18
|
-
.refine((data) => {
|
|
19
|
-
if (data.reaction !== common_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
return true;
|
|
23
|
-
}, {
|
|
18
|
+
.refine((data) => data.reaction === common_1.USER_REACTION.DISLIKED || !data.dislikeReason, {
|
|
24
19
|
message: 'Dislike reason is not allowed when reaction is not disliked',
|
|
25
20
|
});
|
|
26
21
|
SetReactionToInteriorDesignJobCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.InteriorDesignJobSchema);
|
package/build/interior-design/commands/update-interior-design-generation-group-favorite.command.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UpdateInteriorDesignGenerationGroupFavoriteCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
|
+
isFavorite: z.ZodBoolean;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
isSuccess: z.ZodBoolean;
|
|
12
|
+
data: z.ZodOptional<z.ZodType<{
|
|
13
|
+
uuid: string;
|
|
14
|
+
title: string;
|
|
15
|
+
prompt: string;
|
|
16
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
17
|
+
error: string | null;
|
|
18
|
+
modelId: string;
|
|
19
|
+
price: number;
|
|
20
|
+
params: {
|
|
21
|
+
attachedFiles?: {
|
|
22
|
+
uuid: string;
|
|
23
|
+
url: string;
|
|
24
|
+
name: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
type: string;
|
|
27
|
+
size: number;
|
|
28
|
+
duration?: number | null | undefined;
|
|
29
|
+
content?: string | null | undefined;
|
|
30
|
+
contentLength?: number | null | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
styleId?: string | undefined;
|
|
33
|
+
roomTypeId?: string | undefined;
|
|
34
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
35
|
+
objectTypeId?: string | undefined;
|
|
36
|
+
objectSubtypeId?: string | undefined;
|
|
37
|
+
resolution?: string | undefined;
|
|
38
|
+
promptProfileVersion?: string | undefined;
|
|
39
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
40
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
41
|
+
batching: number;
|
|
42
|
+
};
|
|
43
|
+
userId: string | null;
|
|
44
|
+
unregisteredUserId: string | null;
|
|
45
|
+
isDeleted: boolean;
|
|
46
|
+
isFavorite: boolean;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
completedAt: Date | null;
|
|
49
|
+
updatedAt: Date;
|
|
50
|
+
subJobs: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
prompt: string;
|
|
53
|
+
reaction: import("../..").USER_REACTION | null;
|
|
54
|
+
dislikeReason: string | null;
|
|
55
|
+
externalId: string | null;
|
|
56
|
+
title: string;
|
|
57
|
+
status: import("../..").JOB_STATUS;
|
|
58
|
+
error: string | null;
|
|
59
|
+
internalError?: string | null | undefined;
|
|
60
|
+
modelId: string;
|
|
61
|
+
groupId?: string | null | undefined;
|
|
62
|
+
position?: number | null | undefined;
|
|
63
|
+
attemptId?: string | null | undefined;
|
|
64
|
+
price: number;
|
|
65
|
+
previewUrl: string | null;
|
|
66
|
+
params: {
|
|
67
|
+
attachedFiles?: {
|
|
68
|
+
uuid: string;
|
|
69
|
+
url: string;
|
|
70
|
+
name: string;
|
|
71
|
+
mimeType: string;
|
|
72
|
+
type: string;
|
|
73
|
+
size: number;
|
|
74
|
+
duration?: number | null | undefined;
|
|
75
|
+
content?: string | null | undefined;
|
|
76
|
+
contentLength?: number | null | undefined;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
styleId?: string | undefined;
|
|
79
|
+
roomTypeId?: string | undefined;
|
|
80
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
81
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
82
|
+
objectTypeId?: string | undefined;
|
|
83
|
+
objectSubtypeId?: string | undefined;
|
|
84
|
+
resolution?: string | undefined;
|
|
85
|
+
batching?: number | undefined;
|
|
86
|
+
promptProfileVersion?: string | undefined;
|
|
87
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
88
|
+
};
|
|
89
|
+
imageUrls: string[] | null;
|
|
90
|
+
attempts: any[];
|
|
91
|
+
userId?: string | null | undefined;
|
|
92
|
+
unregisteredUserId?: string | null | undefined;
|
|
93
|
+
tokenReservationId?: string | null | undefined;
|
|
94
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
95
|
+
isDeleted: boolean;
|
|
96
|
+
isFavorite: boolean;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
completedAt?: Date | null | undefined;
|
|
99
|
+
updatedAt: Date;
|
|
100
|
+
}[];
|
|
101
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
102
|
+
uuid: string;
|
|
103
|
+
title: string;
|
|
104
|
+
prompt: string;
|
|
105
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
106
|
+
error: string | null;
|
|
107
|
+
modelId: string;
|
|
108
|
+
price: number;
|
|
109
|
+
params: {
|
|
110
|
+
attachedFiles?: {
|
|
111
|
+
uuid: string;
|
|
112
|
+
url: string;
|
|
113
|
+
name: string;
|
|
114
|
+
mimeType: string;
|
|
115
|
+
type: string;
|
|
116
|
+
size: number;
|
|
117
|
+
duration?: number | null | undefined;
|
|
118
|
+
content?: string | null | undefined;
|
|
119
|
+
contentLength?: number | null | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
styleId?: string | undefined;
|
|
122
|
+
roomTypeId?: string | undefined;
|
|
123
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
124
|
+
objectTypeId?: string | undefined;
|
|
125
|
+
objectSubtypeId?: string | undefined;
|
|
126
|
+
resolution?: string | undefined;
|
|
127
|
+
promptProfileVersion?: string | undefined;
|
|
128
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
129
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
130
|
+
batching: number;
|
|
131
|
+
};
|
|
132
|
+
userId: string | null;
|
|
133
|
+
unregisteredUserId: string | null;
|
|
134
|
+
isDeleted: boolean;
|
|
135
|
+
isFavorite: boolean;
|
|
136
|
+
createdAt: Date;
|
|
137
|
+
completedAt: Date | null;
|
|
138
|
+
updatedAt: Date;
|
|
139
|
+
subJobs: {
|
|
140
|
+
uuid: string;
|
|
141
|
+
prompt: string;
|
|
142
|
+
reaction: import("../..").USER_REACTION | null;
|
|
143
|
+
dislikeReason: string | null;
|
|
144
|
+
externalId: string | null;
|
|
145
|
+
title: string;
|
|
146
|
+
status: import("../..").JOB_STATUS;
|
|
147
|
+
error: string | null;
|
|
148
|
+
internalError?: string | null | undefined;
|
|
149
|
+
modelId: string;
|
|
150
|
+
groupId?: string | null | undefined;
|
|
151
|
+
position?: number | null | undefined;
|
|
152
|
+
attemptId?: string | null | undefined;
|
|
153
|
+
price: number;
|
|
154
|
+
previewUrl: string | null;
|
|
155
|
+
params: {
|
|
156
|
+
attachedFiles?: {
|
|
157
|
+
uuid: string;
|
|
158
|
+
url: string;
|
|
159
|
+
name: string;
|
|
160
|
+
mimeType: string;
|
|
161
|
+
type: string;
|
|
162
|
+
size: number;
|
|
163
|
+
duration?: number | null | undefined;
|
|
164
|
+
content?: string | null | undefined;
|
|
165
|
+
contentLength?: number | null | undefined;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
styleId?: string | undefined;
|
|
168
|
+
roomTypeId?: string | undefined;
|
|
169
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
170
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
171
|
+
objectTypeId?: string | undefined;
|
|
172
|
+
objectSubtypeId?: string | undefined;
|
|
173
|
+
resolution?: string | undefined;
|
|
174
|
+
batching?: number | undefined;
|
|
175
|
+
promptProfileVersion?: string | undefined;
|
|
176
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
177
|
+
};
|
|
178
|
+
imageUrls: string[] | null;
|
|
179
|
+
attempts: any[];
|
|
180
|
+
userId?: string | null | undefined;
|
|
181
|
+
unregisteredUserId?: string | null | undefined;
|
|
182
|
+
tokenReservationId?: string | null | undefined;
|
|
183
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
184
|
+
isDeleted: boolean;
|
|
185
|
+
isFavorite: boolean;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
completedAt?: Date | null | undefined;
|
|
188
|
+
updatedAt: Date;
|
|
189
|
+
}[];
|
|
190
|
+
}, unknown>>>;
|
|
191
|
+
code: z.ZodOptional<z.ZodString>;
|
|
192
|
+
message: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
195
|
+
}
|
package/build/interior-design/commands/update-interior-design-generation-group-favorite.command.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateInteriorDesignGenerationGroupFavoriteCommand = 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 UpdateInteriorDesignGenerationGroupFavoriteCommand;
|
|
8
|
+
(function (UpdateInteriorDesignGenerationGroupFavoriteCommand) {
|
|
9
|
+
UpdateInteriorDesignGenerationGroupFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.uuid(),
|
|
11
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
13
|
+
isFavorite: zod_1.z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
UpdateInteriorDesignGenerationGroupFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.InteriorDesignGenerationGroupSchema);
|
|
16
|
+
})(UpdateInteriorDesignGenerationGroupFavoriteCommand || (exports.UpdateInteriorDesignGenerationGroupFavoriteCommand = UpdateInteriorDesignGenerationGroupFavoriteCommand = {}));
|
|
@@ -20,6 +20,9 @@ export declare namespace UpdateInteriorDesignJobFavoriteCommand {
|
|
|
20
20
|
error: string | null;
|
|
21
21
|
internalError?: string | null | undefined;
|
|
22
22
|
modelId: string;
|
|
23
|
+
groupId?: string | null | undefined;
|
|
24
|
+
position?: number | null | undefined;
|
|
25
|
+
attemptId?: string | null | undefined;
|
|
23
26
|
price: number;
|
|
24
27
|
previewUrl: string | null;
|
|
25
28
|
params: {
|
|
@@ -36,6 +39,14 @@ export declare namespace UpdateInteriorDesignJobFavoriteCommand {
|
|
|
36
39
|
}[] | undefined;
|
|
37
40
|
styleId?: string | undefined;
|
|
38
41
|
roomTypeId?: string | undefined;
|
|
42
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
43
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
44
|
+
objectTypeId?: string | undefined;
|
|
45
|
+
objectSubtypeId?: string | undefined;
|
|
46
|
+
resolution?: string | undefined;
|
|
47
|
+
batching?: number | undefined;
|
|
48
|
+
promptProfileVersion?: string | undefined;
|
|
49
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
39
50
|
};
|
|
40
51
|
imageUrls: string[] | null;
|
|
41
52
|
attempts: any[];
|
|
@@ -59,6 +70,9 @@ export declare namespace UpdateInteriorDesignJobFavoriteCommand {
|
|
|
59
70
|
error: string | null;
|
|
60
71
|
internalError?: string | null | undefined;
|
|
61
72
|
modelId: string;
|
|
73
|
+
groupId?: string | null | undefined;
|
|
74
|
+
position?: number | null | undefined;
|
|
75
|
+
attemptId?: string | null | undefined;
|
|
62
76
|
price: number;
|
|
63
77
|
previewUrl: string | null;
|
|
64
78
|
params: {
|
|
@@ -75,6 +89,14 @@ export declare namespace UpdateInteriorDesignJobFavoriteCommand {
|
|
|
75
89
|
}[] | undefined;
|
|
76
90
|
styleId?: string | undefined;
|
|
77
91
|
roomTypeId?: string | undefined;
|
|
92
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
93
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
94
|
+
objectTypeId?: string | undefined;
|
|
95
|
+
objectSubtypeId?: string | undefined;
|
|
96
|
+
resolution?: string | undefined;
|
|
97
|
+
batching?: number | undefined;
|
|
98
|
+
promptProfileVersion?: string | undefined;
|
|
99
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
78
100
|
};
|
|
79
101
|
imageUrls: string[] | null;
|
|
80
102
|
attempts: any[];
|