@panoptic-it-solutions/zoho-projects-client 0.1.4 → 0.2.0
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/dist/__tests__/fixtures/attachments.d.ts +126 -0
- package/dist/__tests__/fixtures/attachments.d.ts.map +1 -0
- package/dist/__tests__/fixtures/attachments.js +60 -0
- package/dist/__tests__/fixtures/attachments.js.map +1 -0
- package/dist/__tests__/fixtures/blueprints.d.ts +114 -0
- package/dist/__tests__/fixtures/blueprints.d.ts.map +1 -0
- package/dist/__tests__/fixtures/blueprints.js +102 -0
- package/dist/__tests__/fixtures/blueprints.js.map +1 -0
- package/dist/__tests__/fixtures/comments.d.ts +92 -0
- package/dist/__tests__/fixtures/comments.d.ts.map +1 -0
- package/dist/__tests__/fixtures/comments.js +42 -0
- package/dist/__tests__/fixtures/comments.js.map +1 -0
- package/dist/__tests__/fixtures/customviews.d.ts +5 -0
- package/dist/__tests__/fixtures/customviews.d.ts.map +1 -0
- package/dist/__tests__/fixtures/customviews.js +55 -0
- package/dist/__tests__/fixtures/customviews.js.map +1 -0
- package/dist/__tests__/fixtures/events.d.ts +133 -0
- package/dist/__tests__/fixtures/events.d.ts.map +1 -0
- package/dist/__tests__/fixtures/events.js +75 -0
- package/dist/__tests__/fixtures/events.js.map +1 -0
- package/dist/__tests__/fixtures/forums.d.ts +114 -0
- package/dist/__tests__/fixtures/forums.d.ts.map +1 -0
- package/dist/__tests__/fixtures/forums.js +53 -0
- package/dist/__tests__/fixtures/forums.js.map +1 -0
- package/dist/__tests__/fixtures/groups.d.ts +25 -0
- package/dist/__tests__/fixtures/groups.d.ts.map +1 -0
- package/dist/__tests__/fixtures/groups.js +36 -0
- package/dist/__tests__/fixtures/groups.js.map +1 -0
- package/dist/__tests__/fixtures/index.d.ts +22 -0
- package/dist/__tests__/fixtures/index.d.ts.map +1 -0
- package/dist/__tests__/fixtures/index.js +22 -0
- package/dist/__tests__/fixtures/index.js.map +1 -0
- package/dist/__tests__/fixtures/issues.d.ts +196 -0
- package/dist/__tests__/fixtures/issues.d.ts.map +1 -0
- package/dist/__tests__/fixtures/issues.js +80 -0
- package/dist/__tests__/fixtures/issues.js.map +1 -0
- package/dist/__tests__/fixtures/modules.d.ts +6 -0
- package/dist/__tests__/fixtures/modules.d.ts.map +1 -0
- package/dist/__tests__/fixtures/modules.js +103 -0
- package/dist/__tests__/fixtures/modules.js.map +1 -0
- package/dist/__tests__/fixtures/phases.d.ts +123 -0
- package/dist/__tests__/fixtures/phases.d.ts.map +1 -0
- package/dist/__tests__/fixtures/phases.js +68 -0
- package/dist/__tests__/fixtures/phases.js.map +1 -0
- package/dist/__tests__/fixtures/portals.d.ts +4 -0
- package/dist/__tests__/fixtures/portals.d.ts.map +1 -0
- package/dist/__tests__/fixtures/portals.js +48 -0
- package/dist/__tests__/fixtures/portals.js.map +1 -0
- package/dist/__tests__/fixtures/projects.d.ts +298 -0
- package/dist/__tests__/fixtures/projects.d.ts.map +1 -0
- package/dist/__tests__/fixtures/projects.js +44 -0
- package/dist/__tests__/fixtures/projects.js.map +1 -0
- package/dist/__tests__/fixtures/tags.d.ts +22 -0
- package/dist/__tests__/fixtures/tags.d.ts.map +1 -0
- package/dist/__tests__/fixtures/tags.js +33 -0
- package/dist/__tests__/fixtures/tags.js.map +1 -0
- package/dist/__tests__/fixtures/tasklists.d.ts +107 -0
- package/dist/__tests__/fixtures/tasklists.d.ts.map +1 -0
- package/dist/__tests__/fixtures/tasklists.js +31 -0
- package/dist/__tests__/fixtures/tasklists.js.map +1 -0
- package/dist/__tests__/fixtures/tasks.d.ts +209 -0
- package/dist/__tests__/fixtures/tasks.d.ts.map +1 -0
- package/dist/__tests__/fixtures/tasks.js +69 -0
- package/dist/__tests__/fixtures/tasks.js.map +1 -0
- package/dist/__tests__/fixtures/timelogs.d.ts +151 -0
- package/dist/__tests__/fixtures/timelogs.d.ts.map +1 -0
- package/dist/__tests__/fixtures/timelogs.js +79 -0
- package/dist/__tests__/fixtures/timelogs.js.map +1 -0
- package/dist/__tests__/fixtures/timers.d.ts +5 -0
- package/dist/__tests__/fixtures/timers.d.ts.map +1 -0
- package/dist/__tests__/fixtures/timers.js +50 -0
- package/dist/__tests__/fixtures/timers.js.map +1 -0
- package/dist/__tests__/fixtures/users.d.ts +55 -0
- package/dist/__tests__/fixtures/users.d.ts.map +1 -0
- package/dist/__tests__/fixtures/users.js +47 -0
- package/dist/__tests__/fixtures/users.js.map +1 -0
- package/dist/__tests__/integration/setup.d.ts +14 -0
- package/dist/__tests__/integration/setup.d.ts.map +1 -0
- package/dist/__tests__/integration/setup.js +52 -0
- package/dist/__tests__/integration/setup.js.map +1 -0
- package/dist/__tests__/mocks/handlers.d.ts +34 -0
- package/dist/__tests__/mocks/handlers.d.ts.map +1 -0
- package/dist/__tests__/mocks/handlers.js +49 -0
- package/dist/__tests__/mocks/handlers.js.map +1 -0
- package/dist/__tests__/mocks/server.d.ts +2 -0
- package/dist/__tests__/mocks/server.d.ts.map +1 -0
- package/dist/__tests__/mocks/server.js +7 -0
- package/dist/__tests__/mocks/server.js.map +1 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/__tests__/setup.js +18 -0
- package/dist/__tests__/setup.js.map +1 -0
- package/dist/__tests__/unit/client/attachments.test.d.ts +2 -0
- package/dist/__tests__/unit/client/attachments.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/attachments.test.js +55 -0
- package/dist/__tests__/unit/client/attachments.test.js.map +1 -0
- package/dist/__tests__/unit/client/blueprints.test.d.ts +2 -0
- package/dist/__tests__/unit/client/blueprints.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/blueprints.test.js +127 -0
- package/dist/__tests__/unit/client/blueprints.test.js.map +1 -0
- package/dist/__tests__/unit/client/comments.test.d.ts +2 -0
- package/dist/__tests__/unit/client/comments.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/comments.test.js +95 -0
- package/dist/__tests__/unit/client/comments.test.js.map +1 -0
- package/dist/__tests__/unit/client/customviews.test.d.ts +2 -0
- package/dist/__tests__/unit/client/customviews.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/customviews.test.js +112 -0
- package/dist/__tests__/unit/client/customviews.test.js.map +1 -0
- package/dist/__tests__/unit/client/events.test.d.ts +2 -0
- package/dist/__tests__/unit/client/events.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/events.test.js +79 -0
- package/dist/__tests__/unit/client/events.test.js.map +1 -0
- package/dist/__tests__/unit/client/forums.test.d.ts +2 -0
- package/dist/__tests__/unit/client/forums.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/forums.test.js +75 -0
- package/dist/__tests__/unit/client/forums.test.js.map +1 -0
- package/dist/__tests__/unit/client/groups.test.d.ts +2 -0
- package/dist/__tests__/unit/client/groups.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/groups.test.js +74 -0
- package/dist/__tests__/unit/client/groups.test.js.map +1 -0
- package/dist/__tests__/unit/client/issues.test.d.ts +2 -0
- package/dist/__tests__/unit/client/issues.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/issues.test.js +75 -0
- package/dist/__tests__/unit/client/issues.test.js.map +1 -0
- package/dist/__tests__/unit/client/modules.test.d.ts +2 -0
- package/dist/__tests__/unit/client/modules.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/modules.test.js +92 -0
- package/dist/__tests__/unit/client/modules.test.js.map +1 -0
- package/dist/__tests__/unit/client/phases.test.d.ts +2 -0
- package/dist/__tests__/unit/client/phases.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/phases.test.js +79 -0
- package/dist/__tests__/unit/client/phases.test.js.map +1 -0
- package/dist/__tests__/unit/client/portals.test.d.ts +2 -0
- package/dist/__tests__/unit/client/portals.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/portals.test.js +54 -0
- package/dist/__tests__/unit/client/portals.test.js.map +1 -0
- package/dist/__tests__/unit/client/projects.test.d.ts +2 -0
- package/dist/__tests__/unit/client/projects.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/projects.test.js +171 -0
- package/dist/__tests__/unit/client/projects.test.js.map +1 -0
- package/dist/__tests__/unit/client/tags.test.d.ts +2 -0
- package/dist/__tests__/unit/client/tags.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/tags.test.js +99 -0
- package/dist/__tests__/unit/client/tags.test.js.map +1 -0
- package/dist/__tests__/unit/client/tasklists.test.d.ts +2 -0
- package/dist/__tests__/unit/client/tasklists.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/tasklists.test.js +75 -0
- package/dist/__tests__/unit/client/tasklists.test.js.map +1 -0
- package/dist/__tests__/unit/client/tasks.test.d.ts +2 -0
- package/dist/__tests__/unit/client/tasks.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/tasks.test.js +157 -0
- package/dist/__tests__/unit/client/tasks.test.js.map +1 -0
- package/dist/__tests__/unit/client/timers.test.d.ts +2 -0
- package/dist/__tests__/unit/client/timers.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/timers.test.js +122 -0
- package/dist/__tests__/unit/client/timers.test.js.map +1 -0
- package/dist/__tests__/unit/client/users.test.d.ts +2 -0
- package/dist/__tests__/unit/client/users.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/users.test.js +89 -0
- package/dist/__tests__/unit/client/users.test.js.map +1 -0
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +130 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/client.d.ts +2613 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1623 -1
- package/dist/client.js.map +1 -1
- package/dist/types/attachments.d.ts +1545 -0
- package/dist/types/attachments.d.ts.map +1 -0
- package/dist/types/attachments.js +78 -0
- package/dist/types/attachments.js.map +1 -0
- package/dist/types/blueprints.d.ts +5070 -0
- package/dist/types/blueprints.d.ts.map +1 -0
- package/dist/types/blueprints.js +111 -0
- package/dist/types/blueprints.js.map +1 -0
- package/dist/types/clients.d.ts +384 -0
- package/dist/types/clients.d.ts.map +1 -0
- package/dist/types/clients.js +77 -0
- package/dist/types/clients.js.map +1 -0
- package/dist/types/comments.d.ts +1111 -0
- package/dist/types/comments.d.ts.map +1 -0
- package/dist/types/comments.js +73 -0
- package/dist/types/comments.js.map +1 -0
- package/dist/types/contacts.d.ts +444 -0
- package/dist/types/contacts.d.ts.map +1 -0
- package/dist/types/contacts.js +86 -0
- package/dist/types/contacts.js.map +1 -0
- package/dist/types/customviews.d.ts +1593 -0
- package/dist/types/customviews.d.ts.map +1 -0
- package/dist/types/customviews.js +117 -0
- package/dist/types/customviews.js.map +1 -0
- package/dist/types/dashboards.d.ts +1675 -0
- package/dist/types/dashboards.d.ts.map +1 -0
- package/dist/types/dashboards.js +77 -0
- package/dist/types/dashboards.js.map +1 -0
- package/dist/types/documents.d.ts +2322 -0
- package/dist/types/documents.d.ts.map +1 -0
- package/dist/types/documents.js +121 -0
- package/dist/types/documents.js.map +1 -0
- package/dist/types/events.d.ts +1747 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +122 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/followers.d.ts +198 -0
- package/dist/types/followers.d.ts.map +1 -0
- package/dist/types/followers.js +44 -0
- package/dist/types/followers.js.map +1 -0
- package/dist/types/forums.d.ts +1443 -0
- package/dist/types/forums.d.ts.map +1 -0
- package/dist/types/forums.js +89 -0
- package/dist/types/forums.js.map +1 -0
- package/dist/types/groups.d.ts +237 -0
- package/dist/types/groups.d.ts.map +1 -0
- package/dist/types/groups.js +52 -0
- package/dist/types/groups.js.map +1 -0
- package/dist/types/index.d.ts +31 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +58 -4
- package/dist/types/index.js.map +1 -1
- package/dist/types/issues.d.ts +2600 -0
- package/dist/types/issues.d.ts.map +1 -0
- package/dist/types/issues.js +147 -0
- package/dist/types/issues.js.map +1 -0
- package/dist/types/leaves.d.ts +435 -0
- package/dist/types/leaves.d.ts.map +1 -0
- package/dist/types/leaves.js +92 -0
- package/dist/types/leaves.js.map +1 -0
- package/dist/types/modules.d.ts +469 -0
- package/dist/types/modules.d.ts.map +1 -0
- package/dist/types/modules.js +91 -0
- package/dist/types/modules.js.map +1 -0
- package/dist/types/phases.d.ts +1564 -0
- package/dist/types/phases.d.ts.map +1 -0
- package/dist/types/phases.js +98 -0
- package/dist/types/phases.js.map +1 -0
- package/dist/types/portals.d.ts +1050 -0
- package/dist/types/portals.d.ts.map +1 -0
- package/dist/types/portals.js +58 -0
- package/dist/types/portals.js.map +1 -0
- package/dist/types/profiles.d.ts +243 -0
- package/dist/types/profiles.d.ts.map +1 -0
- package/dist/types/profiles.js +59 -0
- package/dist/types/profiles.js.map +1 -0
- package/dist/types/projects.d.ts +128 -0
- package/dist/types/projects.d.ts.map +1 -1
- package/dist/types/projects.js +44 -0
- package/dist/types/projects.js.map +1 -1
- package/dist/types/reports.d.ts +2010 -0
- package/dist/types/reports.d.ts.map +1 -0
- package/dist/types/reports.js +110 -0
- package/dist/types/reports.js.map +1 -0
- package/dist/types/roles.d.ts +243 -0
- package/dist/types/roles.d.ts.map +1 -0
- package/dist/types/roles.js +59 -0
- package/dist/types/roles.js.map +1 -0
- package/dist/types/search.d.ts +1091 -0
- package/dist/types/search.d.ts.map +1 -0
- package/dist/types/search.js +83 -0
- package/dist/types/search.js.map +1 -0
- package/dist/types/tags.d.ts +198 -0
- package/dist/types/tags.d.ts.map +1 -0
- package/dist/types/tags.js +49 -0
- package/dist/types/tags.js.map +1 -0
- package/dist/types/tasklists.d.ts +1317 -0
- package/dist/types/tasklists.d.ts.map +1 -0
- package/dist/types/tasklists.js +78 -0
- package/dist/types/tasklists.js.map +1 -0
- package/dist/types/tasks.d.ts +182 -0
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +52 -0
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +504 -0
- package/dist/types/teams.d.ts.map +1 -0
- package/dist/types/teams.js +75 -0
- package/dist/types/teams.js.map +1 -0
- package/dist/types/timelogs.d.ts +245 -0
- package/dist/types/timelogs.d.ts.map +1 -1
- package/dist/types/timelogs.js +53 -0
- package/dist/types/timelogs.js.map +1 -1
- package/dist/types/timers.d.ts +1334 -0
- package/dist/types/timers.d.ts.map +1 -0
- package/dist/types/timers.js +108 -0
- package/dist/types/timers.js.map +1 -0
- package/dist/types/trash.d.ts +1447 -0
- package/dist/types/trash.d.ts.map +1 -0
- package/dist/types/trash.js +77 -0
- package/dist/types/trash.js.map +1 -0
- package/dist/types/users.d.ts +100 -0
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +56 -0
- package/dist/types/users.js.map +1 -1
- package/dist/types/widgets.d.ts +1083 -0
- package/dist/types/widgets.d.ts.map +1 -0
- package/dist/types/widgets.js +87 -0
- package/dist/types/widgets.js.map +1 -0
- package/package.json +15 -3
- package/templates/CLAUDE.md +66 -0
- package/templates/commands/zoho-auth.md +195 -0
- package/templates/commands/zoho-examples.md +375 -0
- package/templates/commands/zoho-projects.md +183 -0
- package/templates/types/zoho-projects-api.d.ts +364 -0
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Team member reference
|
|
4
|
+
*/
|
|
5
|
+
export declare const TeamMemberSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
email: z.ZodOptional<z.ZodString>;
|
|
9
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
zpuid?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
email?: string | undefined;
|
|
19
|
+
zpuid?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type TeamMember = z.infer<typeof TeamMemberSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Team from Zoho Projects API
|
|
24
|
+
*/
|
|
25
|
+
export declare const TeamSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
email: z.ZodOptional<z.ZodString>;
|
|
34
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
email?: string | undefined;
|
|
39
|
+
zpuid?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
email?: string | undefined;
|
|
44
|
+
zpuid?: string | undefined;
|
|
45
|
+
}>, "many">>;
|
|
46
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
49
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
51
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
53
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
email: z.ZodOptional<z.ZodString>;
|
|
63
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
email?: string | undefined;
|
|
68
|
+
zpuid?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
email?: string | undefined;
|
|
73
|
+
zpuid?: string | undefined;
|
|
74
|
+
}>, "many">>;
|
|
75
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
77
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
78
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
80
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
82
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
email: z.ZodOptional<z.ZodString>;
|
|
92
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
email?: string | undefined;
|
|
97
|
+
zpuid?: string | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
email?: string | undefined;
|
|
102
|
+
zpuid?: string | undefined;
|
|
103
|
+
}>, "many">>;
|
|
104
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
106
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
107
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
109
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
111
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
113
|
+
export type Team = z.infer<typeof TeamSchema>;
|
|
114
|
+
export declare const TeamListResponseSchema: z.ZodObject<{
|
|
115
|
+
teams: z.ZodArray<z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
email: z.ZodOptional<z.ZodString>;
|
|
124
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
email?: string | undefined;
|
|
129
|
+
zpuid?: string | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
email?: string | undefined;
|
|
134
|
+
zpuid?: string | undefined;
|
|
135
|
+
}>, "many">>;
|
|
136
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
138
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
139
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
141
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
143
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
email: z.ZodOptional<z.ZodString>;
|
|
153
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
email?: string | undefined;
|
|
158
|
+
zpuid?: string | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
email?: string | undefined;
|
|
163
|
+
zpuid?: string | undefined;
|
|
164
|
+
}>, "many">>;
|
|
165
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
167
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
168
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
170
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
172
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
email: z.ZodOptional<z.ZodString>;
|
|
182
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
email?: string | undefined;
|
|
187
|
+
zpuid?: string | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
email?: string | undefined;
|
|
192
|
+
zpuid?: string | undefined;
|
|
193
|
+
}>, "many">>;
|
|
194
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
196
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
197
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
199
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
201
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
203
|
+
page_info: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
page: z.ZodNumber;
|
|
205
|
+
per_page: z.ZodNumber;
|
|
206
|
+
total_count: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
has_more_page: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
page: number;
|
|
210
|
+
per_page: number;
|
|
211
|
+
total_count?: number | undefined;
|
|
212
|
+
has_more_page?: boolean | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
page: number;
|
|
215
|
+
per_page: number;
|
|
216
|
+
total_count?: number | undefined;
|
|
217
|
+
has_more_page?: boolean | undefined;
|
|
218
|
+
}>>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
teams: z.objectOutputType<{
|
|
221
|
+
id: z.ZodString;
|
|
222
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
email: z.ZodOptional<z.ZodString>;
|
|
229
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
id: string;
|
|
232
|
+
name: string;
|
|
233
|
+
email?: string | undefined;
|
|
234
|
+
zpuid?: string | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
email?: string | undefined;
|
|
239
|
+
zpuid?: string | undefined;
|
|
240
|
+
}>, "many">>;
|
|
241
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
243
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
244
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
246
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
248
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
250
|
+
page_info?: {
|
|
251
|
+
page: number;
|
|
252
|
+
per_page: number;
|
|
253
|
+
total_count?: number | undefined;
|
|
254
|
+
has_more_page?: boolean | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
teams: z.objectInputType<{
|
|
258
|
+
id: z.ZodString;
|
|
259
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
260
|
+
name: z.ZodString;
|
|
261
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
email: z.ZodOptional<z.ZodString>;
|
|
266
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
id: string;
|
|
269
|
+
name: string;
|
|
270
|
+
email?: string | undefined;
|
|
271
|
+
zpuid?: string | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
email?: string | undefined;
|
|
276
|
+
zpuid?: string | undefined;
|
|
277
|
+
}>, "many">>;
|
|
278
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
280
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
281
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
283
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
285
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
287
|
+
page_info?: {
|
|
288
|
+
page: number;
|
|
289
|
+
per_page: number;
|
|
290
|
+
total_count?: number | undefined;
|
|
291
|
+
has_more_page?: boolean | undefined;
|
|
292
|
+
} | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
export type TeamListResponse = z.infer<typeof TeamListResponseSchema>;
|
|
295
|
+
export declare const TeamResponseSchema: z.ZodObject<{
|
|
296
|
+
teams: z.ZodArray<z.ZodObject<{
|
|
297
|
+
id: z.ZodString;
|
|
298
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
|
+
id: z.ZodString;
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
email: z.ZodOptional<z.ZodString>;
|
|
305
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
id: string;
|
|
308
|
+
name: string;
|
|
309
|
+
email?: string | undefined;
|
|
310
|
+
zpuid?: string | undefined;
|
|
311
|
+
}, {
|
|
312
|
+
id: string;
|
|
313
|
+
name: string;
|
|
314
|
+
email?: string | undefined;
|
|
315
|
+
zpuid?: string | undefined;
|
|
316
|
+
}>, "many">>;
|
|
317
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
319
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
320
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
322
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
324
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
326
|
+
id: z.ZodString;
|
|
327
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
email: z.ZodOptional<z.ZodString>;
|
|
334
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
id: string;
|
|
337
|
+
name: string;
|
|
338
|
+
email?: string | undefined;
|
|
339
|
+
zpuid?: string | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
id: string;
|
|
342
|
+
name: string;
|
|
343
|
+
email?: string | undefined;
|
|
344
|
+
zpuid?: string | undefined;
|
|
345
|
+
}>, "many">>;
|
|
346
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
348
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
349
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
351
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
353
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
355
|
+
id: z.ZodString;
|
|
356
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
360
|
+
id: z.ZodString;
|
|
361
|
+
name: z.ZodString;
|
|
362
|
+
email: z.ZodOptional<z.ZodString>;
|
|
363
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, "strip", z.ZodTypeAny, {
|
|
365
|
+
id: string;
|
|
366
|
+
name: string;
|
|
367
|
+
email?: string | undefined;
|
|
368
|
+
zpuid?: string | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
email?: string | undefined;
|
|
373
|
+
zpuid?: string | undefined;
|
|
374
|
+
}>, "many">>;
|
|
375
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
377
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
378
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
380
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
382
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
teams: z.objectOutputType<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
388
|
+
name: z.ZodString;
|
|
389
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
390
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
name: z.ZodString;
|
|
393
|
+
email: z.ZodOptional<z.ZodString>;
|
|
394
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
id: string;
|
|
397
|
+
name: string;
|
|
398
|
+
email?: string | undefined;
|
|
399
|
+
zpuid?: string | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
id: string;
|
|
402
|
+
name: string;
|
|
403
|
+
email?: string | undefined;
|
|
404
|
+
zpuid?: string | undefined;
|
|
405
|
+
}>, "many">>;
|
|
406
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
408
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
409
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
411
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
412
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
413
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
415
|
+
}, {
|
|
416
|
+
teams: z.objectInputType<{
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
id_string: z.ZodOptional<z.ZodString>;
|
|
419
|
+
name: z.ZodString;
|
|
420
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
email: z.ZodOptional<z.ZodString>;
|
|
425
|
+
zpuid: z.ZodOptional<z.ZodString>;
|
|
426
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
|
+
id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
email?: string | undefined;
|
|
430
|
+
zpuid?: string | undefined;
|
|
431
|
+
}, {
|
|
432
|
+
id: string;
|
|
433
|
+
name: string;
|
|
434
|
+
email?: string | undefined;
|
|
435
|
+
zpuid?: string | undefined;
|
|
436
|
+
}>, "many">>;
|
|
437
|
+
members_count: z.ZodOptional<z.ZodNumber>;
|
|
438
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
439
|
+
lead_name: z.ZodOptional<z.ZodString>;
|
|
440
|
+
projects_count: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
created_time: z.ZodOptional<z.ZodString>;
|
|
442
|
+
created_time_long: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
last_modified_time: z.ZodOptional<z.ZodString>;
|
|
444
|
+
last_modified_time_long: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
446
|
+
}>;
|
|
447
|
+
export type TeamResponse = z.infer<typeof TeamResponseSchema>;
|
|
448
|
+
/**
|
|
449
|
+
* Input schema for creating a team
|
|
450
|
+
*/
|
|
451
|
+
export declare const CreateTeamInputSchema: z.ZodObject<{
|
|
452
|
+
/** Team name (required) */
|
|
453
|
+
name: z.ZodString;
|
|
454
|
+
/** Team description */
|
|
455
|
+
description: z.ZodOptional<z.ZodString>;
|
|
456
|
+
/** Team lead user ID */
|
|
457
|
+
lead_id: z.ZodOptional<z.ZodString>;
|
|
458
|
+
/** Member user IDs (comma-separated) */
|
|
459
|
+
members: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
name: string;
|
|
462
|
+
description?: string | undefined;
|
|
463
|
+
members?: string | undefined;
|
|
464
|
+
lead_id?: string | undefined;
|
|
465
|
+
}, {
|
|
466
|
+
name: string;
|
|
467
|
+
description?: string | undefined;
|
|
468
|
+
members?: string | undefined;
|
|
469
|
+
lead_id?: string | undefined;
|
|
470
|
+
}>;
|
|
471
|
+
export type CreateTeamInput = z.infer<typeof CreateTeamInputSchema>;
|
|
472
|
+
/**
|
|
473
|
+
* Input schema for updating a team
|
|
474
|
+
*/
|
|
475
|
+
export declare const UpdateTeamInputSchema: z.ZodObject<{
|
|
476
|
+
name: z.ZodOptional<z.ZodString>;
|
|
477
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
478
|
+
lead_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
479
|
+
members: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
name?: string | undefined;
|
|
482
|
+
description?: string | undefined;
|
|
483
|
+
members?: string | undefined;
|
|
484
|
+
lead_id?: string | undefined;
|
|
485
|
+
}, {
|
|
486
|
+
name?: string | undefined;
|
|
487
|
+
description?: string | undefined;
|
|
488
|
+
members?: string | undefined;
|
|
489
|
+
lead_id?: string | undefined;
|
|
490
|
+
}>;
|
|
491
|
+
export type UpdateTeamInput = z.infer<typeof UpdateTeamInputSchema>;
|
|
492
|
+
/**
|
|
493
|
+
* Input schema for adding members to a team
|
|
494
|
+
*/
|
|
495
|
+
export declare const AddTeamMembersInputSchema: z.ZodObject<{
|
|
496
|
+
/** Member user IDs (comma-separated) */
|
|
497
|
+
members: z.ZodString;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
members: string;
|
|
500
|
+
}, {
|
|
501
|
+
members: string;
|
|
502
|
+
}>;
|
|
503
|
+
export type AddTeamMembersInput = z.infer<typeof AddTeamMembersInputSchema>;
|
|
504
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/types/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuBP,CAAC;AAEjB,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAM9C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAM9D;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAChC,2BAA2B;;IAE3B,uBAAuB;;IAEvB,wBAAwB;;IAExB,wCAAwC;;;;;;;;;;;;EAExC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAAkC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,yBAAyB;IACpC,wCAAwC;;;;;;EAExC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ZohoPageInfoSchema } from "./common.js";
|
|
3
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4
|
+
// TEAM SCHEMA
|
|
5
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
6
|
+
/**
|
|
7
|
+
* Team member reference
|
|
8
|
+
*/
|
|
9
|
+
export const TeamMemberSchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
name: z.string(),
|
|
12
|
+
email: z.string().optional(),
|
|
13
|
+
zpuid: z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Team from Zoho Projects API
|
|
17
|
+
*/
|
|
18
|
+
export const TeamSchema = z.object({
|
|
19
|
+
// Identification
|
|
20
|
+
id: z.string(),
|
|
21
|
+
id_string: z.string().optional(),
|
|
22
|
+
name: z.string(),
|
|
23
|
+
description: z.string().nullable().optional(),
|
|
24
|
+
// Members
|
|
25
|
+
members: z.array(TeamMemberSchema).optional(),
|
|
26
|
+
members_count: z.number().optional(),
|
|
27
|
+
// Lead
|
|
28
|
+
lead_id: z.string().optional(),
|
|
29
|
+
lead_name: z.string().optional(),
|
|
30
|
+
// Associated projects
|
|
31
|
+
projects_count: z.number().optional(),
|
|
32
|
+
// Timestamps
|
|
33
|
+
created_time: z.string().optional(),
|
|
34
|
+
created_time_long: z.number().optional(),
|
|
35
|
+
last_modified_time: z.string().optional(),
|
|
36
|
+
last_modified_time_long: z.number().optional(),
|
|
37
|
+
}).passthrough();
|
|
38
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
39
|
+
// RESPONSE SCHEMAS
|
|
40
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
41
|
+
export const TeamListResponseSchema = z.object({
|
|
42
|
+
teams: z.array(TeamSchema),
|
|
43
|
+
page_info: ZohoPageInfoSchema.optional(),
|
|
44
|
+
});
|
|
45
|
+
export const TeamResponseSchema = z.object({
|
|
46
|
+
teams: z.array(TeamSchema),
|
|
47
|
+
});
|
|
48
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
49
|
+
// INPUT SCHEMAS (CREATE/UPDATE)
|
|
50
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
51
|
+
/**
|
|
52
|
+
* Input schema for creating a team
|
|
53
|
+
*/
|
|
54
|
+
export const CreateTeamInputSchema = z.object({
|
|
55
|
+
/** Team name (required) */
|
|
56
|
+
name: z.string().min(1),
|
|
57
|
+
/** Team description */
|
|
58
|
+
description: z.string().optional(),
|
|
59
|
+
/** Team lead user ID */
|
|
60
|
+
lead_id: z.string().optional(),
|
|
61
|
+
/** Member user IDs (comma-separated) */
|
|
62
|
+
members: z.string().optional(),
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Input schema for updating a team
|
|
66
|
+
*/
|
|
67
|
+
export const UpdateTeamInputSchema = CreateTeamInputSchema.partial();
|
|
68
|
+
/**
|
|
69
|
+
* Input schema for adding members to a team
|
|
70
|
+
*/
|
|
71
|
+
export const AddTeamMembersInputSchema = z.object({
|
|
72
|
+
/** Member user IDs (comma-separated) */
|
|
73
|
+
members: z.string(),
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../../src/types/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,iBAAiB;IACjB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAE7C,UAAU;IACV,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEpC,OAAO;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,sBAAsB;IACtB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAErC,aAAa;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,WAAW,EAAE,CAAC;AAIjB,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAC1B,SAAS,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;CAC3B,CAAC,CAAC;AAIH,gFAAgF;AAChF,gCAAgC;AAChC,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,2BAA2B;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,uBAAuB;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,wBAAwB;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,wCAAwC;IACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,OAAO,EAAE,CAAC;AAIrE;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,wCAAwC;IACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC"}
|