@panoptic-it-solutions/zoho-projects-client 0.1.4 → 0.2.1
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/clients.d.ts +4 -0
- package/dist/__tests__/fixtures/clients.d.ts.map +1 -0
- package/dist/__tests__/fixtures/clients.js +38 -0
- package/dist/__tests__/fixtures/clients.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/contacts.d.ts +4 -0
- package/dist/__tests__/fixtures/contacts.d.ts.map +1 -0
- package/dist/__tests__/fixtures/contacts.js +40 -0
- package/dist/__tests__/fixtures/contacts.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/dashboards.d.ts +4 -0
- package/dist/__tests__/fixtures/dashboards.d.ts.map +1 -0
- package/dist/__tests__/fixtures/dashboards.js +42 -0
- package/dist/__tests__/fixtures/dashboards.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/followers.d.ts +4 -0
- package/dist/__tests__/fixtures/followers.d.ts.map +1 -0
- package/dist/__tests__/fixtures/followers.js +33 -0
- package/dist/__tests__/fixtures/followers.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 +34 -0
- package/dist/__tests__/fixtures/index.d.ts.map +1 -0
- package/dist/__tests__/fixtures/index.js +34 -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/leaves.d.ts +4 -0
- package/dist/__tests__/fixtures/leaves.d.ts.map +1 -0
- package/dist/__tests__/fixtures/leaves.js +45 -0
- package/dist/__tests__/fixtures/leaves.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/profiles.d.ts +4 -0
- package/dist/__tests__/fixtures/profiles.d.ts.map +1 -0
- package/dist/__tests__/fixtures/profiles.js +35 -0
- package/dist/__tests__/fixtures/profiles.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/reports.d.ts +5 -0
- package/dist/__tests__/fixtures/reports.d.ts.map +1 -0
- package/dist/__tests__/fixtures/reports.js +70 -0
- package/dist/__tests__/fixtures/reports.js.map +1 -0
- package/dist/__tests__/fixtures/roles.d.ts +4 -0
- package/dist/__tests__/fixtures/roles.d.ts.map +1 -0
- package/dist/__tests__/fixtures/roles.js +38 -0
- package/dist/__tests__/fixtures/roles.js.map +1 -0
- package/dist/__tests__/fixtures/search.d.ts +5 -0
- package/dist/__tests__/fixtures/search.d.ts.map +1 -0
- package/dist/__tests__/fixtures/search.js +61 -0
- package/dist/__tests__/fixtures/search.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/teams.d.ts +5 -0
- package/dist/__tests__/fixtures/teams.d.ts.map +1 -0
- package/dist/__tests__/fixtures/teams.js +40 -0
- package/dist/__tests__/fixtures/teams.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/trash.d.ts +5 -0
- package/dist/__tests__/fixtures/trash.d.ts.map +1 -0
- package/dist/__tests__/fixtures/trash.js +62 -0
- package/dist/__tests__/fixtures/trash.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__/fixtures/widgets.d.ts +4 -0
- package/dist/__tests__/fixtures/widgets.d.ts.map +1 -0
- package/dist/__tests__/fixtures/widgets.js +51 -0
- package/dist/__tests__/fixtures/widgets.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/clients.test.d.ts +2 -0
- package/dist/__tests__/unit/client/clients.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/clients.test.js +87 -0
- package/dist/__tests__/unit/client/clients.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/contacts.test.d.ts +2 -0
- package/dist/__tests__/unit/client/contacts.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/contacts.test.js +89 -0
- package/dist/__tests__/unit/client/contacts.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/dashboards.test.d.ts +2 -0
- package/dist/__tests__/unit/client/dashboards.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/dashboards.test.js +87 -0
- package/dist/__tests__/unit/client/dashboards.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/followers.test.d.ts +2 -0
- package/dist/__tests__/unit/client/followers.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/followers.test.js +109 -0
- package/dist/__tests__/unit/client/followers.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/leaves.test.d.ts +2 -0
- package/dist/__tests__/unit/client/leaves.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/leaves.test.js +91 -0
- package/dist/__tests__/unit/client/leaves.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/profiles.test.d.ts +2 -0
- package/dist/__tests__/unit/client/profiles.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/profiles.test.js +86 -0
- package/dist/__tests__/unit/client/profiles.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/reports.test.d.ts +2 -0
- package/dist/__tests__/unit/client/reports.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/reports.test.js +86 -0
- package/dist/__tests__/unit/client/reports.test.js.map +1 -0
- package/dist/__tests__/unit/client/roles.test.d.ts +2 -0
- package/dist/__tests__/unit/client/roles.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/roles.test.js +86 -0
- package/dist/__tests__/unit/client/roles.test.js.map +1 -0
- package/dist/__tests__/unit/client/search.test.d.ts +2 -0
- package/dist/__tests__/unit/client/search.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/search.test.js +106 -0
- package/dist/__tests__/unit/client/search.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/teams.test.d.ts +2 -0
- package/dist/__tests__/unit/client/teams.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/teams.test.js +115 -0
- package/dist/__tests__/unit/client/teams.test.js.map +1 -0
- package/dist/__tests__/unit/client/timelogs.test.d.ts +2 -0
- package/dist/__tests__/unit/client/timelogs.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/timelogs.test.js +112 -0
- package/dist/__tests__/unit/client/timelogs.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/trash.test.d.ts +2 -0
- package/dist/__tests__/unit/client/trash.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/trash.test.js +103 -0
- package/dist/__tests__/unit/client/trash.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/__tests__/unit/client/widgets.test.d.ts +2 -0
- package/dist/__tests__/unit/client/widgets.test.d.ts.map +1 -0
- package/dist/__tests__/unit/client/widgets.test.js +91 -0
- package/dist/__tests__/unit/client/widgets.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,40 @@
|
|
|
1
|
+
export const mockContact = {
|
|
2
|
+
id: "contact_001",
|
|
3
|
+
id_string: "contact_001",
|
|
4
|
+
first_name: "Jane",
|
|
5
|
+
last_name: "Smith",
|
|
6
|
+
name: "Jane Smith",
|
|
7
|
+
email: "jane.smith@acme.com",
|
|
8
|
+
phone: "+1-555-123-4567",
|
|
9
|
+
mobile: "+1-555-987-6543",
|
|
10
|
+
designation: "Project Director",
|
|
11
|
+
department: "Engineering",
|
|
12
|
+
client_id: "client_001",
|
|
13
|
+
client_name: "Acme Corporation",
|
|
14
|
+
address: "123 Main Street",
|
|
15
|
+
city: "San Francisco",
|
|
16
|
+
state: "California",
|
|
17
|
+
country: "United States",
|
|
18
|
+
zip_code: "94105",
|
|
19
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
20
|
+
created_time_long: 1704067200000,
|
|
21
|
+
last_modified_time: "2024-01-15T12:00:00Z",
|
|
22
|
+
last_modified_time_long: 1705320000000,
|
|
23
|
+
};
|
|
24
|
+
export const mockContacts = [
|
|
25
|
+
mockContact,
|
|
26
|
+
{
|
|
27
|
+
id: "contact_002",
|
|
28
|
+
id_string: "contact_002",
|
|
29
|
+
first_name: "John",
|
|
30
|
+
last_name: "Doe",
|
|
31
|
+
name: "John Doe",
|
|
32
|
+
email: "john.doe@techstart.io",
|
|
33
|
+
phone: "+1-555-222-3333",
|
|
34
|
+
designation: "CTO",
|
|
35
|
+
department: "Technology",
|
|
36
|
+
client_id: "client_002",
|
|
37
|
+
client_name: "TechStart Inc",
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=contacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/contacts.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAY;IAClC,EAAE,EAAE,aAAa;IACjB,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,iBAAiB;IACzB,WAAW,EAAE,kBAAkB;IAC/B,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,kBAAkB;IAC/B,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,sBAAsB;IACpC,iBAAiB,EAAE,aAAa;IAChC,kBAAkB,EAAE,sBAAsB;IAC1C,uBAAuB,EAAE,aAAa;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAc;IACrC,WAAW;IACX;QACE,EAAE,EAAE,aAAa;QACjB,SAAS,EAAE,aAAa;QACxB,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,uBAAuB;QAC9B,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,YAAY;QACxB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,eAAe;KAC7B;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customviews.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/customviews.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,UAuC5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAY5B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,EAAqC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export const mockCustomView = {
|
|
2
|
+
id: "cv_001",
|
|
3
|
+
id_string: "cv_001",
|
|
4
|
+
name: "My Active Tasks",
|
|
5
|
+
description: "All active tasks assigned to me",
|
|
6
|
+
module_id: "1001",
|
|
7
|
+
module_name: "Tasks",
|
|
8
|
+
access_type: "private",
|
|
9
|
+
accessed_by: ["user_001"],
|
|
10
|
+
project_accessibility_type: "all",
|
|
11
|
+
view_type: "list",
|
|
12
|
+
is_mytasks_view_enabled: true,
|
|
13
|
+
is_customised_column_view_enabled: true,
|
|
14
|
+
customised_columns: [
|
|
15
|
+
{ id: "1", name: "Name", sequence: 1 },
|
|
16
|
+
{ id: "2", name: "Status", sequence: 2 },
|
|
17
|
+
{ id: "3", name: "Due Date", sequence: 3 },
|
|
18
|
+
],
|
|
19
|
+
criteria: [
|
|
20
|
+
{
|
|
21
|
+
api_name: "status",
|
|
22
|
+
field_name: "Status",
|
|
23
|
+
criteria_condition: "equals",
|
|
24
|
+
value: "In Progress",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
api_name: "owner",
|
|
28
|
+
field_name: "Owner",
|
|
29
|
+
criteria_condition: "is",
|
|
30
|
+
value: "${CURRENT_USER}",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
criteria_pattern: "(1 AND 2)",
|
|
34
|
+
is_default: false,
|
|
35
|
+
is_system_view: false,
|
|
36
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
37
|
+
created_time_long: 1704067200000,
|
|
38
|
+
last_modified_time: "2024-01-15T12:00:00Z",
|
|
39
|
+
last_modified_time_long: 1705320000000,
|
|
40
|
+
};
|
|
41
|
+
export const mockSystemView = {
|
|
42
|
+
id: "cv_system_001",
|
|
43
|
+
id_string: "cv_system_001",
|
|
44
|
+
name: "All Tasks",
|
|
45
|
+
description: "System view showing all tasks",
|
|
46
|
+
module_id: "1001",
|
|
47
|
+
module_name: "Tasks",
|
|
48
|
+
access_type: "all",
|
|
49
|
+
project_accessibility_type: "all",
|
|
50
|
+
view_type: "list",
|
|
51
|
+
is_default: true,
|
|
52
|
+
is_system_view: true,
|
|
53
|
+
};
|
|
54
|
+
export const mockCustomViews = [mockCustomView, mockSystemView];
|
|
55
|
+
//# sourceMappingURL=customviews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customviews.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/customviews.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,EAAE,EAAE,QAAQ;IACZ,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iCAAiC;IAC9C,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE,CAAC,UAAU,CAAC;IACzB,0BAA0B,EAAE,KAAK;IACjC,SAAS,EAAE,MAAM;IACjB,uBAAuB,EAAE,IAAI;IAC7B,iCAAiC,EAAE,IAAI;IACvC,kBAAkB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AAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,eAAO,MAAM,aAAa,EAAE,SA0B3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,EAarC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const mockDashboard = {
|
|
2
|
+
id: 1001,
|
|
3
|
+
id_string: "1001",
|
|
4
|
+
name: "Project Overview",
|
|
5
|
+
description: "Main project dashboard",
|
|
6
|
+
type: "project",
|
|
7
|
+
is_default: true,
|
|
8
|
+
owner: { id: "user_001", name: "John Doe" },
|
|
9
|
+
created_by: { id: "user_001", name: "John Doe" },
|
|
10
|
+
is_shared: true,
|
|
11
|
+
shared_with: [{ id: "user_002", name: "Jane Smith" }],
|
|
12
|
+
project: {
|
|
13
|
+
id: 12345,
|
|
14
|
+
id_string: "12345",
|
|
15
|
+
name: "Test Project",
|
|
16
|
+
},
|
|
17
|
+
widget_count: 5,
|
|
18
|
+
layout: "grid",
|
|
19
|
+
link: {
|
|
20
|
+
self: { url: "https://projects.zoho.com/dashboard/1001" },
|
|
21
|
+
widgets: { url: "https://projects.zoho.com/dashboard/1001/widgets" },
|
|
22
|
+
},
|
|
23
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
24
|
+
created_time_long: 1704067200000,
|
|
25
|
+
last_modified_time: "2024-01-15T12:00:00Z",
|
|
26
|
+
last_modified_time_long: 1705320000000,
|
|
27
|
+
};
|
|
28
|
+
export const mockDashboards = [
|
|
29
|
+
mockDashboard,
|
|
30
|
+
{
|
|
31
|
+
id: 1002,
|
|
32
|
+
id_string: "1002",
|
|
33
|
+
name: "Personal Dashboard",
|
|
34
|
+
description: "My tasks and assignments",
|
|
35
|
+
type: "personal",
|
|
36
|
+
is_default: false,
|
|
37
|
+
owner: { id: "user_001", name: "John Doe" },
|
|
38
|
+
is_shared: false,
|
|
39
|
+
widget_count: 3,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=dashboards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboards.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/dashboards.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,EAAE,EAAE,IAAI;IACR,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3C,UAAU,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;IAChD,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IACrD,OAAO,EAAE;QACP,EAAE,EAAE,KAAK;QACT,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,cAAc;KACrB;IACD,YAAY,EAAE,CAAC;IACf,MAAM,EAAE,MAAM;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,EAAE,GAAG,EAAE,0CAA0C,EAAE;QACzD,OAAO,EAAE,EAAE,GAAG,EAAE,kDAAkD,EAAE;KACrE;IACD,YAAY,EAAE,sBAAsB;IACpC,iBAAiB,EAAE,aAAa;IAChC,kBAAkB,EAAE,sBAAsB;IAC1C,uBAAuB,EAAE,aAAa;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAgB;IACzC,aAAa;IACb;QACE,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;QAC3C,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,CAAC;KAChB;CACF,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { Event } from "../../types/index.js";
|
|
2
|
+
export declare function createEventFixture(overrides?: Partial<Event>): Event;
|
|
3
|
+
export declare function createEventListFixture(count?: number): Event[];
|
|
4
|
+
export declare function createEventListResponse(events: Event[], hasMore?: boolean): {
|
|
5
|
+
events: import("zod").objectOutputType<{
|
|
6
|
+
id: import("zod").ZodNumber;
|
|
7
|
+
id_string: import("zod").ZodString;
|
|
8
|
+
title: import("zod").ZodString;
|
|
9
|
+
description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
start_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
start_date_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
+
end_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
end_date_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
start_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
end_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
is_all_day: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
location: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
18
|
+
scheduled_by: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
19
|
+
id: import("zod").ZodString;
|
|
20
|
+
name: import("zod").ZodString;
|
|
21
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
22
|
+
zpuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
email?: string | undefined;
|
|
27
|
+
zpuid?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
email?: string | undefined;
|
|
32
|
+
zpuid?: string | undefined;
|
|
33
|
+
}>>;
|
|
34
|
+
scheduler_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
participants: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
36
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
37
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
name: import("zod").ZodString;
|
|
39
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["accepted", "declined", "tentative", "pending"]>>;
|
|
41
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
42
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
43
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
name: import("zod").ZodString;
|
|
45
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["accepted", "declined", "tentative", "pending"]>>;
|
|
47
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
48
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
49
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
name: import("zod").ZodString;
|
|
51
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["accepted", "declined", "tentative", "pending"]>>;
|
|
53
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
54
|
+
is_recurring: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
55
|
+
recurrence: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
56
|
+
frequency: import("zod").ZodOptional<import("zod").ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
57
|
+
interval: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
58
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
59
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
61
|
+
frequency: import("zod").ZodOptional<import("zod").ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
62
|
+
interval: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
63
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
64
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
66
|
+
frequency: import("zod").ZodOptional<import("zod").ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
|
|
67
|
+
interval: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
68
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
69
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
71
|
+
reminder: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
72
|
+
time: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
73
|
+
unit: import("zod").ZodOptional<import("zod").ZodEnum<["minutes", "hours", "days"]>>;
|
|
74
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
75
|
+
time?: number | undefined;
|
|
76
|
+
unit?: "days" | "hours" | "minutes" | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
time?: number | undefined;
|
|
79
|
+
unit?: "days" | "hours" | "minutes" | undefined;
|
|
80
|
+
}>>;
|
|
81
|
+
status: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
flag: import("zod").ZodOptional<import("zod").ZodEnum<["internal", "external"]>>;
|
|
83
|
+
project: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
84
|
+
id: import("zod").ZodNumber;
|
|
85
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
name: import("zod").ZodString;
|
|
87
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
88
|
+
id: number;
|
|
89
|
+
name: string;
|
|
90
|
+
id_string?: string | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
id: number;
|
|
93
|
+
name: string;
|
|
94
|
+
id_string?: string | undefined;
|
|
95
|
+
}>>;
|
|
96
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
97
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
98
|
+
url: import("zod").ZodString;
|
|
99
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
100
|
+
url: string;
|
|
101
|
+
}, {
|
|
102
|
+
url: string;
|
|
103
|
+
}>>;
|
|
104
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
105
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
106
|
+
url: import("zod").ZodString;
|
|
107
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
108
|
+
url: string;
|
|
109
|
+
}, {
|
|
110
|
+
url: string;
|
|
111
|
+
}>>;
|
|
112
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
113
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
114
|
+
url: import("zod").ZodString;
|
|
115
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
116
|
+
url: string;
|
|
117
|
+
}, {
|
|
118
|
+
url: string;
|
|
119
|
+
}>>;
|
|
120
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
121
|
+
created_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
122
|
+
created_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
123
|
+
last_updated_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
124
|
+
last_updated_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
125
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
126
|
+
page_info: {
|
|
127
|
+
page: number;
|
|
128
|
+
per_page: number;
|
|
129
|
+
has_more_page: boolean;
|
|
130
|
+
total_count: number;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/events.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,SAAS,GAAE,OAAO,CAAC,KAAK,CAAM,GAAG,KAAK,CAuDxE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,MAAU,GAAG,KAAK,EAAE,CAEjE;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,GAAE,OAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhF"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event fixtures for testing
|
|
3
|
+
*/
|
|
4
|
+
import { faker } from "@faker-js/faker";
|
|
5
|
+
export function createEventFixture(overrides = {}) {
|
|
6
|
+
const id = faker.number.int({ min: 100000, max: 999999 });
|
|
7
|
+
return {
|
|
8
|
+
id,
|
|
9
|
+
id_string: id.toString(),
|
|
10
|
+
title: faker.lorem.sentence(4),
|
|
11
|
+
description: faker.lorem.paragraph(),
|
|
12
|
+
start_date: faker.date.future().toLocaleDateString("en-US", {
|
|
13
|
+
month: "2-digit",
|
|
14
|
+
day: "2-digit",
|
|
15
|
+
year: "numeric",
|
|
16
|
+
}),
|
|
17
|
+
start_date_long: faker.date.future().getTime(),
|
|
18
|
+
end_date: faker.date.future().toLocaleDateString("en-US", {
|
|
19
|
+
month: "2-digit",
|
|
20
|
+
day: "2-digit",
|
|
21
|
+
year: "numeric",
|
|
22
|
+
}),
|
|
23
|
+
end_date_long: faker.date.future().getTime(),
|
|
24
|
+
start_time: faker.helpers.arrayElement(["09:00", "10:00", "14:00", "15:00"]),
|
|
25
|
+
end_time: faker.helpers.arrayElement(["10:00", "11:00", "15:00", "16:00"]),
|
|
26
|
+
is_all_day: faker.datatype.boolean(),
|
|
27
|
+
location: faker.location.streetAddress(),
|
|
28
|
+
scheduled_by: {
|
|
29
|
+
id: faker.string.numeric(10),
|
|
30
|
+
name: faker.person.fullName(),
|
|
31
|
+
},
|
|
32
|
+
scheduler_name: faker.person.fullName(),
|
|
33
|
+
participants: [
|
|
34
|
+
{
|
|
35
|
+
id: faker.number.int({ min: 100000, max: 999999 }),
|
|
36
|
+
id_string: faker.string.numeric(10),
|
|
37
|
+
name: faker.person.fullName(),
|
|
38
|
+
email: faker.internet.email(),
|
|
39
|
+
status: faker.helpers.arrayElement(["accepted", "declined", "tentative", "pending"]),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
is_recurring: faker.datatype.boolean(),
|
|
43
|
+
reminder: {
|
|
44
|
+
time: faker.number.int({ min: 5, max: 60 }),
|
|
45
|
+
unit: faker.helpers.arrayElement(["minutes", "hours", "days"]),
|
|
46
|
+
},
|
|
47
|
+
status: faker.helpers.arrayElement(["scheduled", "completed", "cancelled"]),
|
|
48
|
+
flag: faker.helpers.arrayElement(["internal", "external"]),
|
|
49
|
+
project: {
|
|
50
|
+
id: faker.number.int({ min: 100000, max: 999999 }),
|
|
51
|
+
id_string: faker.string.numeric(10),
|
|
52
|
+
name: faker.company.name() + " Project",
|
|
53
|
+
},
|
|
54
|
+
created_time: faker.date.past().toISOString(),
|
|
55
|
+
created_time_long: faker.date.past().getTime(),
|
|
56
|
+
last_updated_time: faker.date.recent().toISOString(),
|
|
57
|
+
last_updated_time_long: faker.date.recent().getTime(),
|
|
58
|
+
...overrides,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function createEventListFixture(count = 5) {
|
|
62
|
+
return Array.from({ length: count }, () => createEventFixture());
|
|
63
|
+
}
|
|
64
|
+
export function createEventListResponse(events, hasMore = false) {
|
|
65
|
+
return {
|
|
66
|
+
events,
|
|
67
|
+
page_info: {
|
|
68
|
+
page: 1,
|
|
69
|
+
per_page: 100,
|
|
70
|
+
has_more_page: hasMore,
|
|
71
|
+
total_count: events.length,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,UAAU,kBAAkB,CAAC,YAA4B,EAAE;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1D,OAAO;QACL,EAAE;QACF,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE;QACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC9B,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE;QACpC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE;YAC1D,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,SAAS;YACd,IAAI,EAAE,SAAS;SAChB,CAAC;QACF,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC9C,QAAQ,EAAE,KAAK,CAAC,IAAI,CAA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AC;AAED,MAAM,UAAU,uBAAuB,CAAC,MAAe,EAAE,UAAmB,KAAK;IAC/E,OAAO;QACL,MAAM;QACN,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,GAAG;YACb,aAAa,EAAE,OAAO;YACtB,WAAW,EAAE,MAAM,CAAC,MAAM;SAC3B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followers.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/followers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,EAoBnC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const mockFollower = {
|
|
2
|
+
id: "user_001",
|
|
3
|
+
id_string: "user_001",
|
|
4
|
+
name: "John Doe",
|
|
5
|
+
email: "john@example.com",
|
|
6
|
+
zpuid: "zpuid_001",
|
|
7
|
+
profile_photo: "https://contacts.zoho.com/photo/user_001",
|
|
8
|
+
profile_url: "https://contacts.zoho.com/user_001",
|
|
9
|
+
followed_time: "2024-01-05T10:00:00Z",
|
|
10
|
+
followed_time_long: 1704448800000,
|
|
11
|
+
};
|
|
12
|
+
export const mockFollowers = [
|
|
13
|
+
mockFollower,
|
|
14
|
+
{
|
|
15
|
+
id: "user_002",
|
|
16
|
+
id_string: "user_002",
|
|
17
|
+
name: "Jane Smith",
|
|
18
|
+
email: "jane@example.com",
|
|
19
|
+
zpuid: "zpuid_002",
|
|
20
|
+
followed_time: "2024-01-06T11:00:00Z",
|
|
21
|
+
followed_time_long: 1704538800000,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "user_003",
|
|
25
|
+
id_string: "user_003",
|
|
26
|
+
name: "Bob Wilson",
|
|
27
|
+
email: "bob@example.com",
|
|
28
|
+
zpuid: "zpuid_003",
|
|
29
|
+
followed_time: "2024-01-07T12:00:00Z",
|
|
30
|
+
followed_time_long: 1704628800000,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=followers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"followers.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/followers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAa;IACpC,EAAE,EAAE,UAAU;IACd,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,WAAW;IAClB,aAAa,EAAE,0CAA0C;IACzD,WAAW,EAAE,oCAAoC;IACjD,aAAa,EAAE,sBAAsB;IACrC,kBAAkB,EAAE,aAAa;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC,YAAY;IACZ;QACE,EAAE,EAAE,UAAU;QACd,SAAS,EAAE,UAAU;QACrB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,kBAAkB;QACzB,KAAK,EAAE,WAAW;QAClB,aAAa,EAAE,sBAAsB;QACrC,kBAAkB,EAAE,aAAa;KAClC;IACD;QACE,EAAE,EAAE,UAAU;QACd,SAAS,EAAE,UAAU;QACrB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,WAAW;QAClB,aAAa,EAAE,sBAAsB;QACrC,kBAAkB,EAAE,aAAa;KAClC;CACF,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Forum } from "../../types/index.js";
|
|
2
|
+
export declare function createForumFixture(overrides?: Partial<Forum>): Forum;
|
|
3
|
+
export declare function createForumListFixture(count?: number): Forum[];
|
|
4
|
+
export declare function createForumListResponse(forums: Forum[], hasMore?: boolean): {
|
|
5
|
+
forums: import("zod").objectOutputType<{
|
|
6
|
+
id: import("zod").ZodNumber;
|
|
7
|
+
id_string: import("zod").ZodString;
|
|
8
|
+
name: import("zod").ZodString;
|
|
9
|
+
content: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
10
|
+
category: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
11
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
12
|
+
name: import("zod").ZodString;
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
14
|
+
id: string | number;
|
|
15
|
+
name: string;
|
|
16
|
+
}, {
|
|
17
|
+
id: string | number;
|
|
18
|
+
name: string;
|
|
19
|
+
}>>;
|
|
20
|
+
is_sticky: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
21
|
+
is_announcement: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
22
|
+
is_closed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
23
|
+
flag: import("zod").ZodOptional<import("zod").ZodEnum<["internal", "external"]>>;
|
|
24
|
+
posted_by: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
name: import("zod").ZodString;
|
|
27
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
zpuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
email?: string | undefined;
|
|
33
|
+
zpuid?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
email?: string | undefined;
|
|
38
|
+
zpuid?: string | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
posted_person: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
comment_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
42
|
+
view_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
43
|
+
project: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
44
|
+
id: import("zod").ZodNumber;
|
|
45
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
name: import("zod").ZodString;
|
|
47
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
48
|
+
id: number;
|
|
49
|
+
name: string;
|
|
50
|
+
id_string?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
id: number;
|
|
53
|
+
name: string;
|
|
54
|
+
id_string?: string | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
57
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
58
|
+
url: import("zod").ZodString;
|
|
59
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
60
|
+
url: string;
|
|
61
|
+
}, {
|
|
62
|
+
url: string;
|
|
63
|
+
}>>;
|
|
64
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
65
|
+
url: import("zod").ZodString;
|
|
66
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
67
|
+
url: string;
|
|
68
|
+
}, {
|
|
69
|
+
url: string;
|
|
70
|
+
}>>;
|
|
71
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
72
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
73
|
+
url: import("zod").ZodString;
|
|
74
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
75
|
+
url: string;
|
|
76
|
+
}, {
|
|
77
|
+
url: string;
|
|
78
|
+
}>>;
|
|
79
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
80
|
+
url: import("zod").ZodString;
|
|
81
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
82
|
+
url: string;
|
|
83
|
+
}, {
|
|
84
|
+
url: string;
|
|
85
|
+
}>>;
|
|
86
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
87
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
88
|
+
url: import("zod").ZodString;
|
|
89
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
90
|
+
url: string;
|
|
91
|
+
}, {
|
|
92
|
+
url: string;
|
|
93
|
+
}>>;
|
|
94
|
+
comment: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
95
|
+
url: import("zod").ZodString;
|
|
96
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
97
|
+
url: string;
|
|
98
|
+
}, {
|
|
99
|
+
url: string;
|
|
100
|
+
}>>;
|
|
101
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
102
|
+
posted_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
posted_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
104
|
+
last_updated_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
105
|
+
last_updated_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
106
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
107
|
+
page_info: {
|
|
108
|
+
page: number;
|
|
109
|
+
per_page: number;
|
|
110
|
+
has_more_page: boolean;
|
|
111
|
+
total_count: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=forums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forums.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/forums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,SAAS,GAAE,OAAO,CAAC,KAAK,CAAM,GAAG,KAAK,CAiCxE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,GAAE,MAAU,GAAG,KAAK,EAAE,CAEjE;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,GAAE,OAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forum fixtures for testing
|
|
3
|
+
*/
|
|
4
|
+
import { faker } from "@faker-js/faker";
|
|
5
|
+
export function createForumFixture(overrides = {}) {
|
|
6
|
+
const id = faker.number.int({ min: 100000, max: 999999 });
|
|
7
|
+
return {
|
|
8
|
+
id,
|
|
9
|
+
id_string: id.toString(),
|
|
10
|
+
name: faker.lorem.sentence(4),
|
|
11
|
+
content: faker.lorem.paragraphs(2),
|
|
12
|
+
category: {
|
|
13
|
+
id: faker.number.int({ min: 1, max: 10 }),
|
|
14
|
+
name: faker.helpers.arrayElement(["General", "Ideas", "Questions", "Announcements"]),
|
|
15
|
+
},
|
|
16
|
+
is_sticky: faker.datatype.boolean(),
|
|
17
|
+
is_announcement: faker.datatype.boolean(),
|
|
18
|
+
is_closed: faker.datatype.boolean(),
|
|
19
|
+
flag: faker.helpers.arrayElement(["internal", "external"]),
|
|
20
|
+
posted_by: {
|
|
21
|
+
id: faker.string.numeric(10),
|
|
22
|
+
name: faker.person.fullName(),
|
|
23
|
+
},
|
|
24
|
+
posted_person: faker.person.fullName(),
|
|
25
|
+
comment_count: faker.number.int({ min: 0, max: 50 }),
|
|
26
|
+
view_count: faker.number.int({ min: 0, max: 500 }),
|
|
27
|
+
project: {
|
|
28
|
+
id: faker.number.int({ min: 100000, max: 999999 }),
|
|
29
|
+
id_string: faker.string.numeric(10),
|
|
30
|
+
name: faker.company.name() + " Project",
|
|
31
|
+
},
|
|
32
|
+
posted_time: faker.date.past().toISOString(),
|
|
33
|
+
posted_time_long: faker.date.past().getTime(),
|
|
34
|
+
last_updated_time: faker.date.recent().toISOString(),
|
|
35
|
+
last_updated_time_long: faker.date.recent().getTime(),
|
|
36
|
+
...overrides,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function createForumListFixture(count = 5) {
|
|
40
|
+
return Array.from({ length: count }, () => createForumFixture());
|
|
41
|
+
}
|
|
42
|
+
export function createForumListResponse(forums, hasMore = false) {
|
|
43
|
+
return {
|
|
44
|
+
forums,
|
|
45
|
+
page_info: {
|
|
46
|
+
page: 1,
|
|
47
|
+
per_page: 100,
|
|
48
|
+
has_more_page: hasMore,
|
|
49
|
+
total_count: forums.length,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=forums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forums.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/forums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,UAAU,kBAAkB,CAAC,YAA4B,EAAE;IAC/D,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1D,OAAO;QACL,EAAE;QACF,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE;QACxB,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC7B,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QAClC,QAAQ,EAAE;YACR,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;YACzC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;SACrF;QACD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE;QACnC,eAAe,EAAE,KAAK,CAAC,QAAQ,C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