@purpleschool/gptbot 0.12.20 → 0.12.21

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.
@@ -6,4 +6,5 @@ export const TOOL_WORKSPACE_ROUTES = {
6
6
  GET_WORKSPACE: (uuid: string) => uuid,
7
7
  UPDATE: (uuid: string) => uuid,
8
8
  DELETE: (uuid: string) => uuid,
9
+ DELETE_ALL: '',
9
10
  } as const;
@@ -8,4 +8,5 @@ exports.TOOL_WORKSPACE_ROUTES = {
8
8
  GET_WORKSPACE: (uuid) => uuid,
9
9
  UPDATE: (uuid) => uuid,
10
10
  DELETE: (uuid) => uuid,
11
+ DELETE_ALL: '',
11
12
  };
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.12.20",
3
+ "version": "0.12.21",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",