@purpleschool/gptbot 0.12.14 → 0.12.16
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/commands/tools/image-editor/image-editor.command.js +6 -0
- package/build/commands/tools/interior-design/interior-design.command.js +2 -0
- package/build/constants/index.js +1 -0
- package/build/constants/tool-interior-design/enums/index.js +17 -0
- package/build/constants/tool-interior-design/enums/interior-design-job-source.enum.js +8 -0
- package/build/constants/tool-interior-design/index.js +17 -0
- package/build/models/tools/interior-design/interior-design-job.schema.js +1 -0
- package/commands/tools/image-editor/image-editor.command.ts +6 -0
- package/commands/tools/interior-design/interior-design.command.ts +2 -0
- package/constants/index.ts +1 -0
- package/constants/tool-interior-design/enums/index.ts +1 -0
- package/constants/tool-interior-design/enums/interior-design-job-source.enum.ts +4 -0
- package/constants/tool-interior-design/index.ts +1 -0
- package/models/tools/interior-design/interior-design-job.schema.ts +2 -1
- package/package.json +1 -1
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ImageEditorCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
5
6
|
const models_1 = require("../../../models");
|
|
6
7
|
var ImageEditorCommand;
|
|
7
8
|
(function (ImageEditorCommand) {
|
|
8
9
|
ImageEditorCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
workspaceId: zod_1.z.string().uuid().nullable().optional(),
|
|
11
|
+
workspaceItemId: zod_1.z.string().uuid().nullable().optional(),
|
|
12
|
+
workspaceToolType: zod_1.z.nativeEnum(constants_1.TOOL_CONTENT_TYPE).nullable().optional(),
|
|
13
|
+
workspaceSlot: zod_1.z.nativeEnum(constants_1.TOOL_WORKSPACE_ITEM_SLOT).optional(),
|
|
14
|
+
workspaceOrder: zod_1.z.number().int().min(0).optional(),
|
|
9
15
|
modelId: zod_1.z.string().uuid(),
|
|
10
16
|
prompt: zod_1.z.string(),
|
|
11
17
|
params: zod_1.z.object({
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InteriorDesignCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
5
6
|
const models_1 = require("../../../models");
|
|
6
7
|
var InteriorDesignCommand;
|
|
7
8
|
(function (InteriorDesignCommand) {
|
|
@@ -13,6 +14,7 @@ var InteriorDesignCommand;
|
|
|
13
14
|
styleId: zod_1.z.string().optional(),
|
|
14
15
|
roomTypeId: zod_1.z.string().optional(),
|
|
15
16
|
}),
|
|
17
|
+
jobSource: zod_1.z.nativeEnum(constants_1.INTERIOR_DESIGN_JOB_SOURCE),
|
|
16
18
|
});
|
|
17
19
|
InteriorDesignCommand.ResponseSchema = zod_1.z.object({
|
|
18
20
|
data: models_1.ToolJobSchema,
|
package/build/constants/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __exportStar(require("./tool-video-editor"), exports);
|
|
|
51
51
|
__exportStar(require("./writer"), exports);
|
|
52
52
|
__exportStar(require("./tool-image-editor"), exports);
|
|
53
53
|
__exportStar(require("./tool-image-generation"), exports);
|
|
54
|
+
__exportStar(require("./tool-interior-design"), exports);
|
|
54
55
|
__exportStar(require("./feedback"), exports);
|
|
55
56
|
__exportStar(require("./daily-streak"), exports);
|
|
56
57
|
__exportStar(require("./cabinet"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./interior-design-job-source.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INTERIOR_DESIGN_JOB_SOURCE = void 0;
|
|
4
|
+
var INTERIOR_DESIGN_JOB_SOURCE;
|
|
5
|
+
(function (INTERIOR_DESIGN_JOB_SOURCE) {
|
|
6
|
+
INTERIOR_DESIGN_JOB_SOURCE["CREATED"] = "created";
|
|
7
|
+
INTERIOR_DESIGN_JOB_SOURCE["UPDATED"] = "updated";
|
|
8
|
+
})(INTERIOR_DESIGN_JOB_SOURCE || (exports.INTERIOR_DESIGN_JOB_SOURCE = INTERIOR_DESIGN_JOB_SOURCE = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
@@ -16,6 +16,7 @@ exports.InteriorDesignJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
16
16
|
prompt: zod_1.z.string(),
|
|
17
17
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
18
18
|
imageUrls: zod_1.z.string().array(),
|
|
19
|
+
jobSource: zod_1.z.nativeEnum(constants_1.INTERIOR_DESIGN_JOB_SOURCE),
|
|
19
20
|
images: zod_1.z
|
|
20
21
|
.array(file_schema_1.FileSchema.pick({
|
|
21
22
|
uuid: true,
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { TOOL_CONTENT_TYPE, TOOL_WORKSPACE_ITEM_SLOT } from '../../../constants';
|
|
2
3
|
import { ToolJobSchema } from '../../../models';
|
|
3
4
|
|
|
4
5
|
export namespace ImageEditorCommand {
|
|
5
6
|
export const RequestSchema = z.object({
|
|
7
|
+
workspaceId: z.string().uuid().nullable().optional(),
|
|
8
|
+
workspaceItemId: z.string().uuid().nullable().optional(),
|
|
9
|
+
workspaceToolType: z.nativeEnum(TOOL_CONTENT_TYPE).nullable().optional(),
|
|
10
|
+
workspaceSlot: z.nativeEnum(TOOL_WORKSPACE_ITEM_SLOT).optional(),
|
|
11
|
+
workspaceOrder: z.number().int().min(0).optional(),
|
|
6
12
|
modelId: z.string().uuid(),
|
|
7
13
|
prompt: z.string(),
|
|
8
14
|
params: z.object({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { INTERIOR_DESIGN_JOB_SOURCE } from '../../../constants';
|
|
2
3
|
import { ToolJobSchema } from '../../../models';
|
|
3
4
|
|
|
4
5
|
export namespace InteriorDesignCommand {
|
|
@@ -10,6 +11,7 @@ export namespace InteriorDesignCommand {
|
|
|
10
11
|
styleId: z.string().optional(),
|
|
11
12
|
roomTypeId: z.string().optional(),
|
|
12
13
|
}),
|
|
14
|
+
jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
|
|
13
15
|
});
|
|
14
16
|
export type Request = z.infer<typeof RequestSchema>;
|
|
15
17
|
|
package/constants/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './tool-video-editor';
|
|
|
35
35
|
export * from './writer';
|
|
36
36
|
export * from './tool-image-editor';
|
|
37
37
|
export * from './tool-image-generation';
|
|
38
|
+
export * from './tool-interior-design';
|
|
38
39
|
export * from './feedback';
|
|
39
40
|
export * from './daily-streak';
|
|
40
41
|
export * from './cabinet';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interior-design-job-source.enum';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { USER_REACTION } from '../../../constants';
|
|
2
|
+
import { INTERIOR_DESIGN_JOB_SOURCE, USER_REACTION } from '../../../constants';
|
|
3
3
|
import { ToolJobSchema } from '../../tool-job.schema';
|
|
4
4
|
import { FileSchema } from '../../file.schema';
|
|
5
5
|
import { AttachedToolFileSchema } from '../common';
|
|
@@ -17,6 +17,7 @@ export const InteriorDesignJobSchema = ToolJobSchema.extend({
|
|
|
17
17
|
prompt: z.string(),
|
|
18
18
|
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
19
19
|
imageUrls: z.string().array(),
|
|
20
|
+
jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
|
|
20
21
|
images: z
|
|
21
22
|
.array(
|
|
22
23
|
FileSchema.pick({
|