@purpleschool/gptbot 0.12.19 → 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.
- package/api/controllers/http/tool-workspace.ts +1 -0
- package/build/api/controllers/http/tool-workspace.js +1 -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/build/models/tools/marketplace-card/marketplace-card-config.schema.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/models/tools/marketplace-card/marketplace-card-config.schema.ts +1 -0
- package/package.json +1 -1
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);
|
|
@@ -12,6 +12,7 @@ exports.MarketplaceCardStylePresetSchema = zod_1.z.object({
|
|
|
12
12
|
exports.MarketplaceCardModelSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
price: zod_1.z.number(),
|
|
15
|
+
title: zod_1.z.string(),
|
|
15
16
|
params: zod_1.z.object({
|
|
16
17
|
imageAttachment: zod_1.z.object({
|
|
17
18
|
supported: zod_1.z.boolean(),
|
|
@@ -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';
|
|
@@ -12,6 +12,7 @@ export type MarketplaceCardStylePreset = z.infer<typeof MarketplaceCardStylePres
|
|
|
12
12
|
export const MarketplaceCardModelSchema = z.object({
|
|
13
13
|
uuid: z.string().uuid(),
|
|
14
14
|
price: z.number(),
|
|
15
|
+
title: z.string(),
|
|
15
16
|
params: z.object({
|
|
16
17
|
imageAttachment: z.object({
|
|
17
18
|
supported: z.boolean(),
|