@purpleschool/gptbot 0.12.20 → 0.12.22
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/controllers/http/tool-workspace.ts +1 -0
- package/api/routes.ts +20 -0
- package/build/api/controllers/http/tool-workspace.js +1 -0
- package/build/api/routes.js +14 -0
- package/build/commands/tools/tool-workspace/delete-all-tool-workspaces-by-tool-type.command.js +12 -0
- package/build/commands/tools/tool-workspace/index.js +1 -0
- package/commands/tools/tool-workspace/delete-all-tool-workspaces-by-tool-type.command.ts +12 -0
- package/commands/tools/tool-workspace/index.ts +1 -0
- package/package.json +1 -1
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
|
};
|
package/build/commands/tools/tool-workspace/delete-all-tool-workspaces-by-tool-type.command.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAllToolWorkspacesByToolTypeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
var DeleteAllToolWorkspacesByToolTypeCommand;
|
|
7
|
+
(function (DeleteAllToolWorkspacesByToolTypeCommand) {
|
|
8
|
+
DeleteAllToolWorkspacesByToolTypeCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
+
toolType: zod_1.z.nativeEnum(constants_1.TOOL_CONTENT_TYPE),
|
|
10
|
+
});
|
|
11
|
+
DeleteAllToolWorkspacesByToolTypeCommand.ResponseSchema = zod_1.z.void();
|
|
12
|
+
})(DeleteAllToolWorkspacesByToolTypeCommand || (exports.DeleteAllToolWorkspacesByToolTypeCommand = DeleteAllToolWorkspacesByToolTypeCommand = {}));
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./find-tool-workspace-by-uuid.command"), exports);
|
|
|
18
18
|
__exportStar(require("./find-tool-workspaces.command"), exports);
|
|
19
19
|
__exportStar(require("./update-tool-workspace.command"), exports);
|
|
20
20
|
__exportStar(require("./delete-tool-workspace-by-uuid.command"), exports);
|
|
21
|
+
__exportStar(require("./delete-all-tool-workspaces-by-tool-type.command"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TOOL_CONTENT_TYPE } from '../../../constants';
|
|
3
|
+
|
|
4
|
+
export namespace DeleteAllToolWorkspacesByToolTypeCommand {
|
|
5
|
+
export const RequestQuerySchema = z.object({
|
|
6
|
+
toolType: z.nativeEnum(TOOL_CONTENT_TYPE),
|
|
7
|
+
});
|
|
8
|
+
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.void();
|
|
11
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
12
|
+
}
|
|
@@ -2,3 +2,4 @@ export * from './find-tool-workspace-by-uuid.command';
|
|
|
2
2
|
export * from './find-tool-workspaces.command';
|
|
3
3
|
export * from './update-tool-workspace.command';
|
|
4
4
|
export * from './delete-tool-workspace-by-uuid.command';
|
|
5
|
+
export * from './delete-all-tool-workspaces-by-tool-type.command';
|