@purpleschool/gptbot-tools 0.3.88-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/delete-interior-design-generation-group-by-uuid.command.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteInteriorDesignGenerationGroupByUuidCommand {
|
|
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
|
+
}, 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<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
12
|
+
code: z.ZodOptional<z.ZodString>;
|
|
13
|
+
message: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
+
}
|
package/build/interior-design/commands/delete-interior-design-generation-group-by-uuid.command.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteInteriorDesignGenerationGroupByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var DeleteInteriorDesignGenerationGroupByUuidCommand;
|
|
7
|
+
(function (DeleteInteriorDesignGenerationGroupByUuidCommand) {
|
|
8
|
+
DeleteInteriorDesignGenerationGroupByUuidCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
});
|
|
13
|
+
DeleteInteriorDesignGenerationGroupByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
14
|
+
})(DeleteInteriorDesignGenerationGroupByUuidCommand || (exports.DeleteInteriorDesignGenerationGroupByUuidCommand = DeleteInteriorDesignGenerationGroupByUuidCommand = {}));
|
|
@@ -8,7 +8,191 @@ export declare namespace DeleteInteriorDesignJobByUuidCommand {
|
|
|
8
8
|
type Request = z.infer<typeof RequestSchema>;
|
|
9
9
|
const ResponseSchema: z.ZodObject<{
|
|
10
10
|
isSuccess: z.ZodBoolean;
|
|
11
|
-
data: z.ZodOptional<z.ZodType<
|
|
11
|
+
data: z.ZodOptional<z.ZodType<{
|
|
12
|
+
deletedVariantId: string;
|
|
13
|
+
group: {
|
|
14
|
+
uuid: string;
|
|
15
|
+
title: string;
|
|
16
|
+
prompt: string;
|
|
17
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
18
|
+
error: string | null;
|
|
19
|
+
modelId: string;
|
|
20
|
+
price: number;
|
|
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
|
+
styleId?: string | undefined;
|
|
34
|
+
roomTypeId?: string | undefined;
|
|
35
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
36
|
+
objectTypeId?: string | undefined;
|
|
37
|
+
objectSubtypeId?: string | undefined;
|
|
38
|
+
resolution?: string | undefined;
|
|
39
|
+
promptProfileVersion?: string | undefined;
|
|
40
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
41
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
42
|
+
batching: number;
|
|
43
|
+
};
|
|
44
|
+
userId: string | null;
|
|
45
|
+
unregisteredUserId: string | null;
|
|
46
|
+
isDeleted: boolean;
|
|
47
|
+
isFavorite: boolean;
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
completedAt: Date | null;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
subJobs: {
|
|
52
|
+
uuid: string;
|
|
53
|
+
prompt: string;
|
|
54
|
+
reaction: import("../..").USER_REACTION | null;
|
|
55
|
+
dislikeReason: string | null;
|
|
56
|
+
externalId: string | null;
|
|
57
|
+
title: string;
|
|
58
|
+
status: import("../..").JOB_STATUS;
|
|
59
|
+
error: string | null;
|
|
60
|
+
internalError?: string | null | undefined;
|
|
61
|
+
modelId: string;
|
|
62
|
+
groupId?: string | null | undefined;
|
|
63
|
+
position?: number | null | undefined;
|
|
64
|
+
attemptId?: string | null | undefined;
|
|
65
|
+
price: number;
|
|
66
|
+
previewUrl: string | null;
|
|
67
|
+
params: {
|
|
68
|
+
attachedFiles?: {
|
|
69
|
+
uuid: string;
|
|
70
|
+
url: string;
|
|
71
|
+
name: string;
|
|
72
|
+
mimeType: string;
|
|
73
|
+
type: string;
|
|
74
|
+
size: number;
|
|
75
|
+
duration?: number | null | undefined;
|
|
76
|
+
content?: string | null | undefined;
|
|
77
|
+
contentLength?: number | null | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
styleId?: string | undefined;
|
|
80
|
+
roomTypeId?: string | undefined;
|
|
81
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
82
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
83
|
+
objectTypeId?: string | undefined;
|
|
84
|
+
objectSubtypeId?: string | undefined;
|
|
85
|
+
resolution?: string | undefined;
|
|
86
|
+
batching?: number | undefined;
|
|
87
|
+
promptProfileVersion?: string | undefined;
|
|
88
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
89
|
+
};
|
|
90
|
+
imageUrls: string[] | null;
|
|
91
|
+
attempts: any[];
|
|
92
|
+
userId?: string | null | undefined;
|
|
93
|
+
unregisteredUserId?: string | null | undefined;
|
|
94
|
+
tokenReservationId?: string | null | undefined;
|
|
95
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
96
|
+
isDeleted: boolean;
|
|
97
|
+
isFavorite: boolean;
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
completedAt?: Date | null | undefined;
|
|
100
|
+
updatedAt: Date;
|
|
101
|
+
}[];
|
|
102
|
+
} | null;
|
|
103
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
104
|
+
deletedVariantId: string;
|
|
105
|
+
group: {
|
|
106
|
+
uuid: string;
|
|
107
|
+
title: string;
|
|
108
|
+
prompt: string;
|
|
109
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
110
|
+
error: string | null;
|
|
111
|
+
modelId: string;
|
|
112
|
+
price: number;
|
|
113
|
+
params: {
|
|
114
|
+
attachedFiles?: {
|
|
115
|
+
uuid: string;
|
|
116
|
+
url: string;
|
|
117
|
+
name: string;
|
|
118
|
+
mimeType: string;
|
|
119
|
+
type: string;
|
|
120
|
+
size: number;
|
|
121
|
+
duration?: number | null | undefined;
|
|
122
|
+
content?: string | null | undefined;
|
|
123
|
+
contentLength?: number | null | undefined;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
styleId?: string | undefined;
|
|
126
|
+
roomTypeId?: string | undefined;
|
|
127
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
128
|
+
objectTypeId?: string | undefined;
|
|
129
|
+
objectSubtypeId?: string | undefined;
|
|
130
|
+
resolution?: string | undefined;
|
|
131
|
+
promptProfileVersion?: string | undefined;
|
|
132
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
133
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
134
|
+
batching: number;
|
|
135
|
+
};
|
|
136
|
+
userId: string | null;
|
|
137
|
+
unregisteredUserId: string | null;
|
|
138
|
+
isDeleted: boolean;
|
|
139
|
+
isFavorite: boolean;
|
|
140
|
+
createdAt: Date;
|
|
141
|
+
completedAt: Date | null;
|
|
142
|
+
updatedAt: Date;
|
|
143
|
+
subJobs: {
|
|
144
|
+
uuid: string;
|
|
145
|
+
prompt: string;
|
|
146
|
+
reaction: import("../..").USER_REACTION | null;
|
|
147
|
+
dislikeReason: string | null;
|
|
148
|
+
externalId: string | null;
|
|
149
|
+
title: string;
|
|
150
|
+
status: import("../..").JOB_STATUS;
|
|
151
|
+
error: string | null;
|
|
152
|
+
internalError?: string | null | undefined;
|
|
153
|
+
modelId: string;
|
|
154
|
+
groupId?: string | null | undefined;
|
|
155
|
+
position?: number | null | undefined;
|
|
156
|
+
attemptId?: string | null | undefined;
|
|
157
|
+
price: number;
|
|
158
|
+
previewUrl: string | null;
|
|
159
|
+
params: {
|
|
160
|
+
attachedFiles?: {
|
|
161
|
+
uuid: string;
|
|
162
|
+
url: string;
|
|
163
|
+
name: string;
|
|
164
|
+
mimeType: string;
|
|
165
|
+
type: string;
|
|
166
|
+
size: number;
|
|
167
|
+
duration?: number | null | undefined;
|
|
168
|
+
content?: string | null | undefined;
|
|
169
|
+
contentLength?: number | null | undefined;
|
|
170
|
+
}[] | undefined;
|
|
171
|
+
styleId?: string | undefined;
|
|
172
|
+
roomTypeId?: string | undefined;
|
|
173
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
174
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
175
|
+
objectTypeId?: string | undefined;
|
|
176
|
+
objectSubtypeId?: string | undefined;
|
|
177
|
+
resolution?: string | undefined;
|
|
178
|
+
batching?: number | undefined;
|
|
179
|
+
promptProfileVersion?: string | undefined;
|
|
180
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
181
|
+
};
|
|
182
|
+
imageUrls: string[] | null;
|
|
183
|
+
attempts: any[];
|
|
184
|
+
userId?: string | null | undefined;
|
|
185
|
+
unregisteredUserId?: string | null | undefined;
|
|
186
|
+
tokenReservationId?: string | null | undefined;
|
|
187
|
+
jobSource: import("..").INTERIOR_DESIGN_JOB_SOURCE;
|
|
188
|
+
isDeleted: boolean;
|
|
189
|
+
isFavorite: boolean;
|
|
190
|
+
createdAt: Date;
|
|
191
|
+
completedAt?: Date | null | undefined;
|
|
192
|
+
updatedAt: Date;
|
|
193
|
+
}[];
|
|
194
|
+
} | null;
|
|
195
|
+
}, unknown>>>;
|
|
12
196
|
code: z.ZodOptional<z.ZodString>;
|
|
13
197
|
message: z.ZodOptional<z.ZodString>;
|
|
14
198
|
}, z.core.$strip>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeleteInteriorDesignJobByUuidCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const models_1 = require("../models");
|
|
6
7
|
var DeleteInteriorDesignJobByUuidCommand;
|
|
7
8
|
(function (DeleteInteriorDesignJobByUuidCommand) {
|
|
8
9
|
DeleteInteriorDesignJobByUuidCommand.RequestSchema = zod_1.z.object({
|
|
@@ -10,5 +11,8 @@ var DeleteInteriorDesignJobByUuidCommand;
|
|
|
10
11
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
11
12
|
uuid: zod_1.z.string(),
|
|
12
13
|
});
|
|
13
|
-
DeleteInteriorDesignJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.
|
|
14
|
+
DeleteInteriorDesignJobByUuidCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
15
|
+
deletedVariantId: zod_1.z.uuid(),
|
|
16
|
+
group: models_1.InteriorDesignGenerationGroupSchema.nullable(),
|
|
17
|
+
}));
|
|
14
18
|
})(DeleteInteriorDesignJobByUuidCommand || (exports.DeleteInteriorDesignJobByUuidCommand = DeleteInteriorDesignJobByUuidCommand = {}));
|
|
@@ -20,6 +20,7 @@ export declare namespace GetInteriorDesignPriceCommand {
|
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
21
|
styleId: z.ZodOptional<z.ZodString>;
|
|
22
22
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
23
24
|
}, z.core.$strip>;
|
|
24
25
|
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
25
26
|
}, z.core.$strip>;
|
|
@@ -16,6 +16,7 @@ var GetInteriorDesignPriceCommand;
|
|
|
16
16
|
attachedFiles: zod_1.z.array(common_1.AttachedFileSchema),
|
|
17
17
|
styleId: zod_1.z.string().optional(),
|
|
18
18
|
roomTypeId: zod_1.z.string().optional(),
|
|
19
|
+
resolution: zod_1.z.string().optional(),
|
|
19
20
|
}),
|
|
20
21
|
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
21
22
|
});
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export * from './delete-interior-design-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './retry-interior-design-job.command';
|
|
1
|
+
export * from './delete-interior-design-generation-group-by-uuid.command';
|
|
2
|
+
export * from './retry-interior-design-generation-group-job.command';
|
|
4
3
|
export * from './set-reaction-to-interior-design-job.command';
|
|
5
4
|
export * from './interior-design.command';
|
|
6
5
|
export * from './update-interior-design-job-title.command';
|
|
7
6
|
export * from './update-interior-design-job-favorite.command';
|
|
7
|
+
export * from './update-interior-design-generation-group-favorite.command';
|
|
8
8
|
export * from './interior-design-model';
|
|
9
9
|
export * from './get-interior-design-price.command';
|
|
10
|
+
export * from './delete-interior-design-job-by-uuid.command';
|
|
11
|
+
export * from './delete-all-interior-design-jobs.command';
|
|
12
|
+
export * from './retry-interior-design-job.command';
|
|
@@ -14,12 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./delete-interior-design-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./retry-interior-design-job.command"), exports);
|
|
17
|
+
__exportStar(require("./delete-interior-design-generation-group-by-uuid.command"), exports);
|
|
18
|
+
__exportStar(require("./retry-interior-design-generation-group-job.command"), exports);
|
|
20
19
|
__exportStar(require("./set-reaction-to-interior-design-job.command"), exports);
|
|
21
20
|
__exportStar(require("./interior-design.command"), exports);
|
|
22
21
|
__exportStar(require("./update-interior-design-job-title.command"), exports);
|
|
23
22
|
__exportStar(require("./update-interior-design-job-favorite.command"), exports);
|
|
23
|
+
__exportStar(require("./update-interior-design-generation-group-favorite.command"), exports);
|
|
24
24
|
__exportStar(require("./interior-design-model"), exports);
|
|
25
25
|
__exportStar(require("./get-interior-design-price.command"), exports);
|
|
26
|
+
__exportStar(require("./delete-interior-design-job-by-uuid.command"), exports);
|
|
27
|
+
__exportStar(require("./delete-all-interior-design-jobs.command"), exports);
|
|
28
|
+
__exportStar(require("./retry-interior-design-job.command"), exports);
|
|
@@ -33,10 +33,14 @@ export declare namespace GetInteriorDesignModelByUuidCommand {
|
|
|
33
33
|
maxImages: number;
|
|
34
34
|
acceptedTypes: string[];
|
|
35
35
|
};
|
|
36
|
+
resolution?: {
|
|
37
|
+
options: string[];
|
|
38
|
+
} | undefined;
|
|
36
39
|
};
|
|
37
40
|
pricingRules: {
|
|
38
41
|
condition: {
|
|
39
42
|
withoutSub?: boolean | undefined;
|
|
43
|
+
resolution?: string | undefined;
|
|
40
44
|
};
|
|
41
45
|
value: number;
|
|
42
46
|
}[];
|
|
@@ -68,10 +72,14 @@ export declare namespace GetInteriorDesignModelByUuidCommand {
|
|
|
68
72
|
maxImages: number;
|
|
69
73
|
acceptedTypes: string[];
|
|
70
74
|
};
|
|
75
|
+
resolution?: {
|
|
76
|
+
options: string[];
|
|
77
|
+
} | undefined;
|
|
71
78
|
};
|
|
72
79
|
pricingRules: {
|
|
73
80
|
condition: {
|
|
74
81
|
withoutSub?: boolean | undefined;
|
|
82
|
+
resolution?: string | undefined;
|
|
75
83
|
};
|
|
76
84
|
value: number;
|
|
77
85
|
}[];
|
|
@@ -5,10 +5,10 @@ export declare namespace InteriorDesignCommand {
|
|
|
5
5
|
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
6
6
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
7
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
8
|
-
|
|
8
|
+
description: z.ZodString;
|
|
9
9
|
modelId: z.ZodString;
|
|
10
10
|
params: z.ZodObject<{
|
|
11
|
-
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
11
|
+
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
12
|
uuid: z.ZodString;
|
|
13
13
|
url: z.ZodString;
|
|
14
14
|
name: z.ZodString;
|
|
@@ -18,12 +18,22 @@ export declare namespace InteriorDesignCommand {
|
|
|
18
18
|
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
19
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
20
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
-
}, z.core.$strip
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
22
|
styleId: z.ZodOptional<z.ZodString>;
|
|
23
23
|
roomTypeId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
generationMode: z.ZodOptional<z.ZodEnum<typeof import("..").INTERIOR_DESIGN_GENERATION_MODE>>;
|
|
25
|
+
objectTypeId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
objectSubtypeId: z.ZodOptional<z.ZodString>;
|
|
27
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
28
|
+
promptProfileVersion: z.ZodOptional<z.ZodString>;
|
|
29
|
+
promptProfileInput: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
30
|
+
generationType: z.ZodEnum<typeof import("..").INTERIOR_DESIGN_GENERATION_TYPE>;
|
|
31
|
+
batching: z.ZodDefault<z.ZodNumber>;
|
|
24
32
|
}, z.core.$strip>;
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
childReservations: z.ZodArray<z.ZodObject<{
|
|
34
|
+
tokenReservationId: z.ZodUUID;
|
|
35
|
+
precalculatedPrice: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
27
37
|
userHasActiveSubscriptionOrProduct: z.ZodBoolean;
|
|
28
38
|
jobSource: z.ZodEnum<typeof INTERIOR_DESIGN_JOB_SOURCE>;
|
|
29
39
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -33,17 +43,12 @@ export declare namespace InteriorDesignCommand {
|
|
|
33
43
|
isSuccess: z.ZodBoolean;
|
|
34
44
|
data: z.ZodOptional<z.ZodType<{
|
|
35
45
|
uuid: string;
|
|
36
|
-
prompt: string;
|
|
37
|
-
reaction: import("../..").USER_REACTION | null;
|
|
38
|
-
dislikeReason: string | null;
|
|
39
|
-
externalId: string | null;
|
|
40
46
|
title: string;
|
|
41
|
-
|
|
47
|
+
prompt: string;
|
|
48
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
42
49
|
error: string | null;
|
|
43
|
-
internalError?: string | null | undefined;
|
|
44
50
|
modelId: string;
|
|
45
51
|
price: number;
|
|
46
|
-
previewUrl: string | null;
|
|
47
52
|
params: {
|
|
48
53
|
attachedFiles?: {
|
|
49
54
|
uuid: string;
|
|
@@ -58,31 +63,81 @@ export declare namespace InteriorDesignCommand {
|
|
|
58
63
|
}[] | undefined;
|
|
59
64
|
styleId?: string | undefined;
|
|
60
65
|
roomTypeId?: string | undefined;
|
|
66
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
67
|
+
objectTypeId?: string | undefined;
|
|
68
|
+
objectSubtypeId?: string | undefined;
|
|
69
|
+
resolution?: string | undefined;
|
|
70
|
+
promptProfileVersion?: string | undefined;
|
|
71
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
72
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
73
|
+
batching: number;
|
|
61
74
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
userId?: string | null | undefined;
|
|
65
|
-
unregisteredUserId?: string | null | undefined;
|
|
66
|
-
tokenReservationId?: string | null | undefined;
|
|
67
|
-
jobSource: INTERIOR_DESIGN_JOB_SOURCE;
|
|
75
|
+
userId: string | null;
|
|
76
|
+
unregisteredUserId: string | null;
|
|
68
77
|
isDeleted: boolean;
|
|
69
78
|
isFavorite: boolean;
|
|
70
79
|
createdAt: Date;
|
|
71
|
-
completedAt
|
|
80
|
+
completedAt: Date | null;
|
|
72
81
|
updatedAt: Date;
|
|
82
|
+
subJobs: {
|
|
83
|
+
uuid: string;
|
|
84
|
+
prompt: string;
|
|
85
|
+
reaction: import("../..").USER_REACTION | null;
|
|
86
|
+
dislikeReason: string | null;
|
|
87
|
+
externalId: string | null;
|
|
88
|
+
title: string;
|
|
89
|
+
status: import("../..").JOB_STATUS;
|
|
90
|
+
error: string | null;
|
|
91
|
+
internalError?: string | null | undefined;
|
|
92
|
+
modelId: string;
|
|
93
|
+
groupId?: string | null | undefined;
|
|
94
|
+
position?: number | null | undefined;
|
|
95
|
+
attemptId?: string | null | undefined;
|
|
96
|
+
price: number;
|
|
97
|
+
previewUrl: string | null;
|
|
98
|
+
params: {
|
|
99
|
+
attachedFiles?: {
|
|
100
|
+
uuid: string;
|
|
101
|
+
url: string;
|
|
102
|
+
name: string;
|
|
103
|
+
mimeType: string;
|
|
104
|
+
type: string;
|
|
105
|
+
size: number;
|
|
106
|
+
duration?: number | null | undefined;
|
|
107
|
+
content?: string | null | undefined;
|
|
108
|
+
contentLength?: number | null | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
styleId?: string | undefined;
|
|
111
|
+
roomTypeId?: string | undefined;
|
|
112
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
113
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
114
|
+
objectTypeId?: string | undefined;
|
|
115
|
+
objectSubtypeId?: string | undefined;
|
|
116
|
+
resolution?: string | undefined;
|
|
117
|
+
batching?: number | undefined;
|
|
118
|
+
promptProfileVersion?: string | undefined;
|
|
119
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
120
|
+
};
|
|
121
|
+
imageUrls: string[] | null;
|
|
122
|
+
attempts: any[];
|
|
123
|
+
userId?: string | null | undefined;
|
|
124
|
+
unregisteredUserId?: string | null | undefined;
|
|
125
|
+
tokenReservationId?: string | null | undefined;
|
|
126
|
+
jobSource: INTERIOR_DESIGN_JOB_SOURCE;
|
|
127
|
+
isDeleted: boolean;
|
|
128
|
+
isFavorite: boolean;
|
|
129
|
+
createdAt: Date;
|
|
130
|
+
completedAt?: Date | null | undefined;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
}[];
|
|
73
133
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
74
134
|
uuid: string;
|
|
75
|
-
prompt: string;
|
|
76
|
-
reaction: import("../..").USER_REACTION | null;
|
|
77
|
-
dislikeReason: string | null;
|
|
78
|
-
externalId: string | null;
|
|
79
135
|
title: string;
|
|
80
|
-
|
|
136
|
+
prompt: string;
|
|
137
|
+
status: import("..").INTERIOR_DESIGN_GENERATION_GROUP_STATUS;
|
|
81
138
|
error: string | null;
|
|
82
|
-
internalError?: string | null | undefined;
|
|
83
139
|
modelId: string;
|
|
84
140
|
price: number;
|
|
85
|
-
previewUrl: string | null;
|
|
86
141
|
params: {
|
|
87
142
|
attachedFiles?: {
|
|
88
143
|
uuid: string;
|
|
@@ -97,18 +152,73 @@ export declare namespace InteriorDesignCommand {
|
|
|
97
152
|
}[] | undefined;
|
|
98
153
|
styleId?: string | undefined;
|
|
99
154
|
roomTypeId?: string | undefined;
|
|
155
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
156
|
+
objectTypeId?: string | undefined;
|
|
157
|
+
objectSubtypeId?: string | undefined;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
promptProfileVersion?: string | undefined;
|
|
160
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
161
|
+
generationType: import("..").INTERIOR_DESIGN_GENERATION_TYPE;
|
|
162
|
+
batching: number;
|
|
100
163
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
userId?: string | null | undefined;
|
|
104
|
-
unregisteredUserId?: string | null | undefined;
|
|
105
|
-
tokenReservationId?: string | null | undefined;
|
|
106
|
-
jobSource: INTERIOR_DESIGN_JOB_SOURCE;
|
|
164
|
+
userId: string | null;
|
|
165
|
+
unregisteredUserId: string | null;
|
|
107
166
|
isDeleted: boolean;
|
|
108
167
|
isFavorite: boolean;
|
|
109
168
|
createdAt: Date;
|
|
110
|
-
completedAt
|
|
169
|
+
completedAt: Date | null;
|
|
111
170
|
updatedAt: Date;
|
|
171
|
+
subJobs: {
|
|
172
|
+
uuid: string;
|
|
173
|
+
prompt: string;
|
|
174
|
+
reaction: import("../..").USER_REACTION | null;
|
|
175
|
+
dislikeReason: string | null;
|
|
176
|
+
externalId: string | null;
|
|
177
|
+
title: string;
|
|
178
|
+
status: import("../..").JOB_STATUS;
|
|
179
|
+
error: string | null;
|
|
180
|
+
internalError?: string | null | undefined;
|
|
181
|
+
modelId: string;
|
|
182
|
+
groupId?: string | null | undefined;
|
|
183
|
+
position?: number | null | undefined;
|
|
184
|
+
attemptId?: string | null | undefined;
|
|
185
|
+
price: number;
|
|
186
|
+
previewUrl: string | null;
|
|
187
|
+
params: {
|
|
188
|
+
attachedFiles?: {
|
|
189
|
+
uuid: string;
|
|
190
|
+
url: string;
|
|
191
|
+
name: string;
|
|
192
|
+
mimeType: string;
|
|
193
|
+
type: string;
|
|
194
|
+
size: number;
|
|
195
|
+
duration?: number | null | undefined;
|
|
196
|
+
content?: string | null | undefined;
|
|
197
|
+
contentLength?: number | null | undefined;
|
|
198
|
+
}[] | undefined;
|
|
199
|
+
styleId?: string | undefined;
|
|
200
|
+
roomTypeId?: string | undefined;
|
|
201
|
+
generationType?: import("..").INTERIOR_DESIGN_GENERATION_TYPE | undefined;
|
|
202
|
+
generationMode?: import("..").INTERIOR_DESIGN_GENERATION_MODE | undefined;
|
|
203
|
+
objectTypeId?: string | undefined;
|
|
204
|
+
objectSubtypeId?: string | undefined;
|
|
205
|
+
resolution?: string | undefined;
|
|
206
|
+
batching?: number | undefined;
|
|
207
|
+
promptProfileVersion?: string | undefined;
|
|
208
|
+
promptProfileInput?: Record<string, unknown> | undefined;
|
|
209
|
+
};
|
|
210
|
+
imageUrls: string[] | null;
|
|
211
|
+
attempts: any[];
|
|
212
|
+
userId?: string | null | undefined;
|
|
213
|
+
unregisteredUserId?: string | null | undefined;
|
|
214
|
+
tokenReservationId?: string | null | undefined;
|
|
215
|
+
jobSource: INTERIOR_DESIGN_JOB_SOURCE;
|
|
216
|
+
isDeleted: boolean;
|
|
217
|
+
isFavorite: boolean;
|
|
218
|
+
createdAt: Date;
|
|
219
|
+
completedAt?: Date | null | undefined;
|
|
220
|
+
updatedAt: Date;
|
|
221
|
+
}[];
|
|
112
222
|
}, unknown>>>;
|
|
113
223
|
code: z.ZodOptional<z.ZodString>;
|
|
114
224
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -6,24 +6,28 @@ const command_response_schema_1 = require("../../common/models/command-response.
|
|
|
6
6
|
const models_1 = require("../models");
|
|
7
7
|
const common_1 = require("../../common");
|
|
8
8
|
const enums_1 = require("../enums");
|
|
9
|
+
const InteriorDesignChildReservationSchema = zod_1.z.object({
|
|
10
|
+
tokenReservationId: zod_1.z.uuid(),
|
|
11
|
+
precalculatedPrice: zod_1.z.number(),
|
|
12
|
+
});
|
|
9
13
|
var InteriorDesignCommand;
|
|
10
14
|
(function (InteriorDesignCommand) {
|
|
11
|
-
InteriorDesignCommand.RequestSchema = zod_1.z
|
|
15
|
+
InteriorDesignCommand.RequestSchema = zod_1.z
|
|
16
|
+
.object({
|
|
12
17
|
locale: common_1.LocaleSchema,
|
|
13
18
|
userId: zod_1.z.uuid().nullable().optional(),
|
|
14
19
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
15
|
-
|
|
20
|
+
description: zod_1.z.string(),
|
|
16
21
|
modelId: zod_1.z.string(),
|
|
17
|
-
params:
|
|
18
|
-
|
|
19
|
-
styleId: zod_1.z.string().optional(),
|
|
20
|
-
roomTypeId: zod_1.z.string().optional(),
|
|
21
|
-
}),
|
|
22
|
-
tokenReservationId: zod_1.z.uuid(),
|
|
23
|
-
precalculatedPrice: zod_1.z.number(),
|
|
22
|
+
params: models_1.InteriorDesignGenerationParamsSchema,
|
|
23
|
+
childReservations: zod_1.z.array(InteriorDesignChildReservationSchema).min(1).max(4),
|
|
24
24
|
userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
|
|
25
25
|
jobSource: zod_1.z.enum(enums_1.INTERIOR_DESIGN_JOB_SOURCE),
|
|
26
26
|
mock: zod_1.z.boolean().optional(),
|
|
27
|
+
})
|
|
28
|
+
.refine((data) => data.childReservations.length === data.params.batching, {
|
|
29
|
+
message: 'childReservations must match batching',
|
|
30
|
+
path: ['childReservations'],
|
|
27
31
|
});
|
|
28
|
-
InteriorDesignCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.
|
|
32
|
+
InteriorDesignCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.InteriorDesignGenerationGroupSchema);
|
|
29
33
|
})(InteriorDesignCommand || (exports.InteriorDesignCommand = InteriorDesignCommand = {}));
|