@purpleschool/gptbot 0.12.21 → 0.12.23
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/api/routes.ts
CHANGED
|
@@ -1152,4 +1152,24 @@ export const REST_API = {
|
|
|
1152
1152
|
RETRY: (uuid: string) =>
|
|
1153
1153
|
`${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
|
|
1154
1154
|
},
|
|
1155
|
+
TOOL_WORKSPACE_PRIVATE: {
|
|
1156
|
+
GET_WORKSPACES: `${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACES}`,
|
|
1157
|
+
GET_WORKSPACE: (uuid: string) =>
|
|
1158
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACE(uuid)}`,
|
|
1159
|
+
UPDATE: (uuid: string) =>
|
|
1160
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.UPDATE(uuid)}`,
|
|
1161
|
+
DELETE: (uuid: string) =>
|
|
1162
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE(uuid)}`,
|
|
1163
|
+
DELETE_ALL: `${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE_ALL}`,
|
|
1164
|
+
},
|
|
1165
|
+
TOOL_WORKSPACE_PUBLIC: {
|
|
1166
|
+
GET_WORKSPACES: `${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACES}`,
|
|
1167
|
+
GET_WORKSPACE: (uuid: string) =>
|
|
1168
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACE(uuid)}`,
|
|
1169
|
+
UPDATE: (uuid: string) =>
|
|
1170
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.UPDATE(uuid)}`,
|
|
1171
|
+
DELETE: (uuid: string) =>
|
|
1172
|
+
`${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE(uuid)}`,
|
|
1173
|
+
DELETE_ALL: `${ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE_ALL}`,
|
|
1174
|
+
},
|
|
1155
1175
|
} as const;
|
package/build/api/routes.js
CHANGED
|
@@ -869,4 +869,18 @@ exports.REST_API = {
|
|
|
869
869
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE_ALL}`,
|
|
870
870
|
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
|
|
871
871
|
},
|
|
872
|
+
TOOL_WORKSPACE_PRIVATE: {
|
|
873
|
+
GET_WORKSPACES: `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACES}`,
|
|
874
|
+
GET_WORKSPACE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACE(uuid)}`,
|
|
875
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.UPDATE(uuid)}`,
|
|
876
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE(uuid)}`,
|
|
877
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PRIVATE}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE_ALL}`,
|
|
878
|
+
},
|
|
879
|
+
TOOL_WORKSPACE_PUBLIC: {
|
|
880
|
+
GET_WORKSPACES: `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACES}`,
|
|
881
|
+
GET_WORKSPACE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.GET_WORKSPACE(uuid)}`,
|
|
882
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.UPDATE(uuid)}`,
|
|
883
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE(uuid)}`,
|
|
884
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE_ALL}`,
|
|
885
|
+
},
|
|
872
886
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketplaceCardJobSchema = exports.MarketplaceCardJobAttachmentsSchema = exports.AttachedFileSchema = void 0;
|
|
3
|
+
exports.MarketplaceCardJobSchema = exports.MarketplaceCardJobAttachmentsSchema = exports.ResultImageFileSchema = exports.AttachedFileSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
6
|
const tool_job_schema_1 = require("../../tool-job.schema");
|
|
@@ -8,6 +8,10 @@ exports.AttachedFileSchema = zod_1.z.object({
|
|
|
8
8
|
uuid: zod_1.z.string(),
|
|
9
9
|
url: zod_1.z.string(),
|
|
10
10
|
});
|
|
11
|
+
exports.ResultImageFileSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string(),
|
|
13
|
+
url: zod_1.z.string(),
|
|
14
|
+
});
|
|
11
15
|
exports.MarketplaceCardJobAttachmentsSchema = zod_1.z.object({
|
|
12
16
|
ownStyleImage: exports.AttachedFileSchema.optional().nullable(),
|
|
13
17
|
inputImages: zod_1.z.array(exports.AttachedFileSchema).optional(),
|
|
@@ -22,6 +26,7 @@ exports.MarketplaceCardJobSchema = tool_job_schema_1.ToolJobSchema.extend({
|
|
|
22
26
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
23
27
|
customStylePrompt: zod_1.z.string().nullable(),
|
|
24
28
|
resultImages: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
29
|
+
resultImagesFiles: zod_1.z.array(exports.ResultImageFileSchema).nullable(),
|
|
25
30
|
backgroundDescription: zod_1.z.string().nullable(),
|
|
26
31
|
price: zod_1.z.number(),
|
|
27
32
|
attachments: exports.MarketplaceCardJobAttachmentsSchema,
|
|
@@ -7,6 +7,11 @@ export const AttachedFileSchema = z.object({
|
|
|
7
7
|
url: z.string(),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
+
export const ResultImageFileSchema = z.object({
|
|
11
|
+
uuid: z.string(),
|
|
12
|
+
url: z.string(),
|
|
13
|
+
});
|
|
14
|
+
|
|
10
15
|
export const MarketplaceCardJobAttachmentsSchema = z.object({
|
|
11
16
|
ownStyleImage: AttachedFileSchema.optional().nullable(),
|
|
12
17
|
inputImages: z.array(AttachedFileSchema).optional(),
|
|
@@ -22,6 +27,7 @@ export const MarketplaceCardJobSchema = ToolJobSchema.extend({
|
|
|
22
27
|
tags: z.array(z.string()),
|
|
23
28
|
customStylePrompt: z.string().nullable(),
|
|
24
29
|
resultImages: z.array(z.string()).nullable(),
|
|
30
|
+
resultImagesFiles: z.array(ResultImageFileSchema).nullable(),
|
|
25
31
|
backgroundDescription: z.string().nullable(),
|
|
26
32
|
price: z.number(),
|
|
27
33
|
attachments: MarketplaceCardJobAttachmentsSchema,
|