@purpleschool/gptbot 0.12.71 → 0.12.72
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/ai-studio/canvas/find-canvases-by-user.query.js +1 -1
- package/build/commands/ai-studio/canvas-node/count-canvas-nodes-by-canvas.query.js +16 -0
- package/build/commands/ai-studio/canvas-node/index.js +1 -0
- package/commands/ai-studio/canvas/find-canvases-by-user.query.ts +1 -1
- package/commands/ai-studio/canvas-node/count-canvas-nodes-by-canvas.query.ts +20 -0
- package/commands/ai-studio/canvas-node/index.ts +1 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var FindCanvasesByUserQuery;
|
|
|
11
11
|
name: zod_1.z.string().trim().optional(),
|
|
12
12
|
});
|
|
13
13
|
FindCanvasesByUserQuery.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.CanvasSchema),
|
|
14
|
+
data: zod_1.z.array(models_1.CanvasSchema.extend({ countOfNodes: zod_1.z.number() })),
|
|
15
15
|
page: zod_1.z.number(),
|
|
16
16
|
totalPages: zod_1.z.number(),
|
|
17
17
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountCanvasNodesByCanvasQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var CountCanvasNodesByCanvasQuery;
|
|
6
|
+
(function (CountCanvasNodesByCanvasQuery) {
|
|
7
|
+
CountCanvasNodesByCanvasQuery.RequestSchema = zod_1.z.object({
|
|
8
|
+
canvasIds: zod_1.z.array(zod_1.z.string().uuid()),
|
|
9
|
+
});
|
|
10
|
+
CountCanvasNodesByCanvasQuery.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.array(zod_1.z.object({
|
|
12
|
+
canvasId: zod_1.z.string().uuid(),
|
|
13
|
+
countOfNodes: zod_1.z.number(),
|
|
14
|
+
})),
|
|
15
|
+
});
|
|
16
|
+
})(CountCanvasNodesByCanvasQuery || (exports.CountCanvasNodesByCanvasQuery = CountCanvasNodesByCanvasQuery = {}));
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./count-canvas-nodes-by-canvas.query"), exports);
|
|
17
18
|
__exportStar(require("./create-canvas-node.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-canvas-node.command"), exports);
|
|
19
20
|
__exportStar(require("./find-canvas-node-by-uuid.query"), exports);
|
|
@@ -11,7 +11,7 @@ export namespace FindCanvasesByUserQuery {
|
|
|
11
11
|
export type Request = z.infer<typeof RequestSchema>;
|
|
12
12
|
|
|
13
13
|
export const ResponseSchema = z.object({
|
|
14
|
-
data: z.array(CanvasSchema),
|
|
14
|
+
data: z.array(CanvasSchema.extend({ countOfNodes: z.number() })),
|
|
15
15
|
page: z.number(),
|
|
16
16
|
totalPages: z.number(),
|
|
17
17
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace CountCanvasNodesByCanvasQuery {
|
|
4
|
+
export const RequestSchema = z.object({
|
|
5
|
+
canvasIds: z.array(z.string().uuid()),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.object({
|
|
11
|
+
data: z.array(
|
|
12
|
+
z.object({
|
|
13
|
+
canvasId: z.string().uuid(),
|
|
14
|
+
countOfNodes: z.number(),
|
|
15
|
+
}),
|
|
16
|
+
),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
+
}
|