@purpleschool/gptbot-tools 0.4.1-stage-2 → 0.4.2-stage-2
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/tool-workspace/commands/update-tool-workspace.command.d.ts +5 -0
- package/build/tool-workspace/commands/update-tool-workspace.command.js +1 -0
- package/build/tool-workspace/models/tool-workspace-contents.schema.d.ts +2 -0
- package/build/tool-workspace/models/tool-workspace.schema.d.ts +2 -0
- package/build/tool-workspace/models/tool-workspace.schema.js +2 -0
- package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +4 -0
- package/build/tool-workspace/queries/find-tool-workspaces.query.d.ts +7 -0
- package/build/tool-workspace/queries/find-tool-workspaces.query.js +3 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare namespace UpdateToolWorkspaceCommand {
|
|
|
5
5
|
uuid: z.ZodUUID;
|
|
6
6
|
title: z.ZodOptional<z.ZodString>;
|
|
7
7
|
coverUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
8
9
|
status: z.ZodOptional<z.ZodEnum<typeof TOOL_WORKSPACE_STATUS>>;
|
|
9
10
|
userId: z.ZodOptional<z.ZodUUID>;
|
|
10
11
|
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -17,6 +18,8 @@ export declare namespace UpdateToolWorkspaceCommand {
|
|
|
17
18
|
toolType: import("../..").TOOL_CONTENT_TYPE;
|
|
18
19
|
title: string;
|
|
19
20
|
coverUrl: string | null;
|
|
21
|
+
isFavorite: boolean;
|
|
22
|
+
pendingJobsCount?: number | undefined;
|
|
20
23
|
status: TOOL_WORKSPACE_STATUS;
|
|
21
24
|
userId?: string | null | undefined;
|
|
22
25
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -27,6 +30,8 @@ export declare namespace UpdateToolWorkspaceCommand {
|
|
|
27
30
|
toolType: import("../..").TOOL_CONTENT_TYPE;
|
|
28
31
|
title: string;
|
|
29
32
|
coverUrl: string | null;
|
|
33
|
+
isFavorite: boolean;
|
|
34
|
+
pendingJobsCount?: number | undefined;
|
|
30
35
|
status: TOOL_WORKSPACE_STATUS;
|
|
31
36
|
userId?: string | null | undefined;
|
|
32
37
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -12,6 +12,7 @@ var UpdateToolWorkspaceCommand;
|
|
|
12
12
|
uuid: zod_1.z.uuid(),
|
|
13
13
|
title: zod_1.z.string().min(1).optional(),
|
|
14
14
|
coverUrl: zod_1.z.string().nullable().optional(),
|
|
15
|
+
isFavorite: zod_1.z.boolean().optional(),
|
|
15
16
|
status: zod_1.z.enum(enums_1.TOOL_WORKSPACE_STATUS).optional(),
|
|
16
17
|
userId: zod_1.z.uuid().optional(),
|
|
17
18
|
unregisteredUserId: zod_1.z.uuid().optional(),
|
|
@@ -5,6 +5,8 @@ export declare const ToolWorkspaceContentsSchema: z.ZodObject<{
|
|
|
5
5
|
toolType: z.ZodEnum<typeof import("../..").TOOL_CONTENT_TYPE>;
|
|
6
6
|
title: z.ZodString;
|
|
7
7
|
coverUrl: z.ZodNullable<z.ZodString>;
|
|
8
|
+
isFavorite: z.ZodBoolean;
|
|
9
|
+
pendingJobsCount: z.ZodOptional<z.ZodNumber>;
|
|
8
10
|
status: z.ZodEnum<typeof import("..").TOOL_WORKSPACE_STATUS>;
|
|
9
11
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
10
12
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -6,6 +6,8 @@ export declare const ToolWorkspaceSchema: z.ZodObject<{
|
|
|
6
6
|
toolType: z.ZodEnum<typeof TOOL_CONTENT_TYPE>;
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
coverUrl: z.ZodNullable<z.ZodString>;
|
|
9
|
+
isFavorite: z.ZodBoolean;
|
|
10
|
+
pendingJobsCount: z.ZodOptional<z.ZodNumber>;
|
|
9
11
|
status: z.ZodEnum<typeof TOOL_WORKSPACE_STATUS>;
|
|
10
12
|
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
11
13
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
@@ -9,6 +9,8 @@ exports.ToolWorkspaceSchema = zod_1.z.object({
|
|
|
9
9
|
toolType: zod_1.z.enum(tool_content_type_enum_1.TOOL_CONTENT_TYPE),
|
|
10
10
|
title: zod_1.z.string(),
|
|
11
11
|
coverUrl: zod_1.z.string().nullable(),
|
|
12
|
+
isFavorite: zod_1.z.boolean(),
|
|
13
|
+
pendingJobsCount: zod_1.z.number().int().nonnegative().optional(),
|
|
12
14
|
status: zod_1.z.enum(enums_1.TOOL_WORKSPACE_STATUS),
|
|
13
15
|
userId: zod_1.z.uuid().nullable().optional(),
|
|
14
16
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
@@ -14,6 +14,8 @@ export declare namespace FindToolWorkspaceByUuidQuery {
|
|
|
14
14
|
toolType: import("../..").TOOL_CONTENT_TYPE;
|
|
15
15
|
title: string;
|
|
16
16
|
coverUrl: string | null;
|
|
17
|
+
isFavorite: boolean;
|
|
18
|
+
pendingJobsCount?: number | undefined;
|
|
17
19
|
status: import("..").TOOL_WORKSPACE_STATUS;
|
|
18
20
|
userId?: string | null | undefined;
|
|
19
21
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -190,6 +192,8 @@ export declare namespace FindToolWorkspaceByUuidQuery {
|
|
|
190
192
|
toolType: import("../..").TOOL_CONTENT_TYPE;
|
|
191
193
|
title: string;
|
|
192
194
|
coverUrl: string | null;
|
|
195
|
+
isFavorite: boolean;
|
|
196
|
+
pendingJobsCount?: number | undefined;
|
|
193
197
|
status: import("..").TOOL_WORKSPACE_STATUS;
|
|
194
198
|
userId?: string | null | undefined;
|
|
195
199
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_SORT } from '../../tools/enums/job-sort.enum';
|
|
2
3
|
import { TOOL_CONTENT_TYPE } from '../../tools/enums/tool-content-type.enum';
|
|
3
4
|
export declare namespace FindToolWorkspacesQuery {
|
|
4
5
|
const RequestSchema: z.ZodObject<{
|
|
5
6
|
toolType: z.ZodOptional<z.ZodEnum<typeof TOOL_CONTENT_TYPE>>;
|
|
6
7
|
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
7
9
|
userId: z.ZodOptional<z.ZodUUID>;
|
|
8
10
|
unregisteredUserId: z.ZodOptional<z.ZodUUID>;
|
|
9
11
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
10
12
|
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
13
|
+
updatedAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
11
14
|
}, z.core.$strip>;
|
|
12
15
|
type Request = z.infer<typeof RequestSchema>;
|
|
13
16
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -18,6 +21,8 @@ export declare namespace FindToolWorkspacesQuery {
|
|
|
18
21
|
toolType: TOOL_CONTENT_TYPE;
|
|
19
22
|
title: string;
|
|
20
23
|
coverUrl: string | null;
|
|
24
|
+
isFavorite: boolean;
|
|
25
|
+
pendingJobsCount?: number | undefined;
|
|
21
26
|
status: import("..").TOOL_WORKSPACE_STATUS;
|
|
22
27
|
userId?: string | null | undefined;
|
|
23
28
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -32,6 +37,8 @@ export declare namespace FindToolWorkspacesQuery {
|
|
|
32
37
|
toolType: TOOL_CONTENT_TYPE;
|
|
33
38
|
title: string;
|
|
34
39
|
coverUrl: string | null;
|
|
40
|
+
isFavorite: boolean;
|
|
41
|
+
pendingJobsCount?: number | undefined;
|
|
35
42
|
status: import("..").TOOL_WORKSPACE_STATUS;
|
|
36
43
|
userId?: string | null | undefined;
|
|
37
44
|
unregisteredUserId?: string | null | undefined;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FindToolWorkspacesQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const job_sort_enum_1 = require("../../tools/enums/job-sort.enum");
|
|
6
7
|
const tool_content_type_enum_1 = require("../../tools/enums/tool-content-type.enum");
|
|
7
8
|
const models_1 = require("../models");
|
|
8
9
|
var FindToolWorkspacesQuery;
|
|
@@ -11,10 +12,12 @@ var FindToolWorkspacesQuery;
|
|
|
11
12
|
.object({
|
|
12
13
|
toolType: zod_1.z.enum(tool_content_type_enum_1.TOOL_CONTENT_TYPE).optional(),
|
|
13
14
|
title: zod_1.z.string().optional(),
|
|
15
|
+
isFavorite: zod_1.z.boolean().optional(),
|
|
14
16
|
userId: zod_1.z.uuid().optional(),
|
|
15
17
|
unregisteredUserId: zod_1.z.uuid().optional(),
|
|
16
18
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
17
19
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
20
|
+
updatedAtSortOrder: zod_1.z.enum(job_sort_enum_1.JOB_SORT).optional().default(job_sort_enum_1.JOB_SORT.DESC),
|
|
18
21
|
})
|
|
19
22
|
.refine((data) => {
|
|
20
23
|
return Boolean(data.userId) !== Boolean(data.unregisteredUserId);
|