@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,126 @@
|
|
|
1
|
+
import type { Attachment } from "../../types/index.js";
|
|
2
|
+
export declare function createAttachmentFixture(overrides?: Partial<Attachment>): Attachment;
|
|
3
|
+
export declare function createAttachmentListFixture(count?: number): Attachment[];
|
|
4
|
+
export declare function createAttachmentListResponse(attachments: Attachment[], hasMore?: boolean): {
|
|
5
|
+
attachments: import("zod").objectOutputType<{
|
|
6
|
+
id: import("zod").ZodNumber;
|
|
7
|
+
id_string: import("zod").ZodString;
|
|
8
|
+
name: import("zod").ZodString;
|
|
9
|
+
filename: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
file_size: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
11
|
+
file_size_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
content_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
mime_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
extension: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
download_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
17
|
+
preview_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
thumbnail_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
owner: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
20
|
+
id: import("zod").ZodString;
|
|
21
|
+
name: import("zod").ZodString;
|
|
22
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
23
|
+
zpuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
email?: string | undefined;
|
|
28
|
+
zpuid?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
email?: string | undefined;
|
|
33
|
+
zpuid?: string | undefined;
|
|
34
|
+
}>>;
|
|
35
|
+
uploaded_by: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
36
|
+
id: import("zod").ZodString;
|
|
37
|
+
name: import("zod").ZodString;
|
|
38
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
+
zpuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
email?: string | undefined;
|
|
44
|
+
zpuid?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
email?: string | undefined;
|
|
49
|
+
zpuid?: string | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
uploader_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
entity_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
entity_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
entity_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
project: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
56
|
+
id: import("zod").ZodNumber;
|
|
57
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
name: import("zod").ZodString;
|
|
59
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
60
|
+
id: number;
|
|
61
|
+
name: string;
|
|
62
|
+
id_string?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
id: number;
|
|
65
|
+
name: string;
|
|
66
|
+
id_string?: string | undefined;
|
|
67
|
+
}>>;
|
|
68
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
69
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
70
|
+
url: import("zod").ZodString;
|
|
71
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
72
|
+
url: string;
|
|
73
|
+
}, {
|
|
74
|
+
url: string;
|
|
75
|
+
}>>;
|
|
76
|
+
download: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
77
|
+
url: import("zod").ZodString;
|
|
78
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
79
|
+
url: string;
|
|
80
|
+
}, {
|
|
81
|
+
url: string;
|
|
82
|
+
}>>;
|
|
83
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
84
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
85
|
+
url: import("zod").ZodString;
|
|
86
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
87
|
+
url: string;
|
|
88
|
+
}, {
|
|
89
|
+
url: string;
|
|
90
|
+
}>>;
|
|
91
|
+
download: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
92
|
+
url: import("zod").ZodString;
|
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
94
|
+
url: string;
|
|
95
|
+
}, {
|
|
96
|
+
url: string;
|
|
97
|
+
}>>;
|
|
98
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
99
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
100
|
+
url: import("zod").ZodString;
|
|
101
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
102
|
+
url: string;
|
|
103
|
+
}, {
|
|
104
|
+
url: string;
|
|
105
|
+
}>>;
|
|
106
|
+
download: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
107
|
+
url: import("zod").ZodString;
|
|
108
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
109
|
+
url: string;
|
|
110
|
+
}, {
|
|
111
|
+
url: string;
|
|
112
|
+
}>>;
|
|
113
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
114
|
+
created_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
115
|
+
created_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
116
|
+
last_modified_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
117
|
+
last_modified_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
118
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
119
|
+
page_info: {
|
|
120
|
+
page: number;
|
|
121
|
+
per_page: number;
|
|
122
|
+
has_more_page: boolean;
|
|
123
|
+
total_count: number;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=attachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/attachments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,wBAAgB,uBAAuB,CAAC,SAAS,GAAE,OAAO,CAAC,UAAU,CAAM,GAAG,UAAU,CAwCvF;AAED,wBAAgB,2BAA2B,CAAC,KAAK,GAAE,MAAU,GAAG,UAAU,EAAE,CAE3E;AAED,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,GAAE,OAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU/F"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attachment fixtures for testing
|
|
3
|
+
*/
|
|
4
|
+
import { faker } from "@faker-js/faker";
|
|
5
|
+
export function createAttachmentFixture(overrides = {}) {
|
|
6
|
+
const id = faker.number.int({ min: 100000, max: 999999 });
|
|
7
|
+
const fileName = faker.system.fileName();
|
|
8
|
+
return {
|
|
9
|
+
id,
|
|
10
|
+
id_string: id.toString(),
|
|
11
|
+
name: fileName,
|
|
12
|
+
filename: fileName,
|
|
13
|
+
file_size: faker.number.int({ min: 1024, max: 10485760 }),
|
|
14
|
+
file_size_string: faker.helpers.arrayElement(["1 KB", "500 KB", "1 MB", "5 MB"]),
|
|
15
|
+
content_type: faker.system.mimeType(),
|
|
16
|
+
mime_type: faker.system.mimeType(),
|
|
17
|
+
extension: faker.system.fileExt(),
|
|
18
|
+
url: faker.internet.url(),
|
|
19
|
+
download_url: faker.internet.url(),
|
|
20
|
+
preview_url: faker.internet.url(),
|
|
21
|
+
thumbnail_url: faker.internet.url(),
|
|
22
|
+
owner: {
|
|
23
|
+
id: faker.string.numeric(10),
|
|
24
|
+
name: faker.person.fullName(),
|
|
25
|
+
},
|
|
26
|
+
uploaded_by: {
|
|
27
|
+
id: faker.string.numeric(10),
|
|
28
|
+
name: faker.person.fullName(),
|
|
29
|
+
},
|
|
30
|
+
uploader_name: faker.person.fullName(),
|
|
31
|
+
entity_type: faker.helpers.arrayElement(["task", "bug", "forum", "project"]),
|
|
32
|
+
entity_id: faker.string.numeric(10),
|
|
33
|
+
entity_name: faker.lorem.words(3),
|
|
34
|
+
project: {
|
|
35
|
+
id: faker.number.int({ min: 100000, max: 999999 }),
|
|
36
|
+
id_string: faker.string.numeric(10),
|
|
37
|
+
name: faker.company.name() + " Project",
|
|
38
|
+
},
|
|
39
|
+
created_time: faker.date.past().toISOString(),
|
|
40
|
+
created_time_long: faker.date.past().getTime(),
|
|
41
|
+
last_modified_time: faker.date.recent().toISOString(),
|
|
42
|
+
last_modified_time_long: faker.date.recent().getTime(),
|
|
43
|
+
...overrides,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function createAttachmentListFixture(count = 5) {
|
|
47
|
+
return Array.from({ length: count }, () => createAttachmentFixture());
|
|
48
|
+
}
|
|
49
|
+
export function createAttachmentListResponse(attachments, hasMore = false) {
|
|
50
|
+
return {
|
|
51
|
+
attachments,
|
|
52
|
+
page_info: {
|
|
53
|
+
page: 1,
|
|
54
|
+
per_page: 100,
|
|
55
|
+
has_more_page: hasMore,
|
|
56
|
+
total_count: attachments.length,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=attachments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachments.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/attachments.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,UAAU,uBAAuB,CAAC,YAAiC,EAAE;IACzE,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,OAAO;QACL,EAAE;QACF,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE;QACxB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;QACzD,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAChF,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QACrC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QAClC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE;QACjC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;QACzB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;QAClC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;QACjC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;QACnC,KAAK,EAAE;YACL,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC9B;QACD,WAAW,EAAE;YACX,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC9B;QACD,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QACtC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QAC5E,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACjC,OAAO,EAAE;YACP,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;YAClD,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YACnC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,UAAU;SACxC;QACD,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;QAC7C,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;QAC9C,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;QACrD,uBAAuB,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QACtD,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,QAAgB,CAAC;IAC3D,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,uBAAuB,EAAE,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,WAAyB,EAAE,UAAmB,KAAK;IAC9F,OAAO;QACL,WAAW;QACX,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,GAAG;YACb,aAAa,EAAE,OAAO;YACtB,WAAW,EAAE,WAAW,CAAC,MAAM;SAChC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Blueprint, BlueprintTransition, BlueprintTransitionAction } from "../../types/index.js";
|
|
2
|
+
export declare const mockBlueprintAction: BlueprintTransitionAction;
|
|
3
|
+
export declare const mockBlueprintTransition: BlueprintTransition;
|
|
4
|
+
export declare const mockBlueprint: Blueprint;
|
|
5
|
+
export declare const mockBlueprints: Blueprint[];
|
|
6
|
+
export declare const mockNextTransitionsResponse: {
|
|
7
|
+
transitions: import("zod").objectOutputType<{
|
|
8
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
9
|
+
name: import("zod").ZodString;
|
|
10
|
+
source_status: 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
|
+
target_status: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
21
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
22
|
+
name: import("zod").ZodString;
|
|
23
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
24
|
+
id: string | number;
|
|
25
|
+
name: string;
|
|
26
|
+
}, {
|
|
27
|
+
id: string | number;
|
|
28
|
+
name: string;
|
|
29
|
+
}>>;
|
|
30
|
+
before_actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
31
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
32
|
+
name: import("zod").ZodString;
|
|
33
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
38
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
39
|
+
name: import("zod").ZodString;
|
|
40
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
42
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
45
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
46
|
+
name: import("zod").ZodString;
|
|
47
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
49
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
52
|
+
during_actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
53
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
54
|
+
name: import("zod").ZodString;
|
|
55
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
57
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
60
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
61
|
+
name: import("zod").ZodString;
|
|
62
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
64
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
67
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
68
|
+
name: import("zod").ZodString;
|
|
69
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
71
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
73
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
74
|
+
after_actions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
75
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
76
|
+
name: import("zod").ZodString;
|
|
77
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
79
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
82
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
83
|
+
name: import("zod").ZodString;
|
|
84
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
86
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
89
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
90
|
+
name: import("zod").ZodString;
|
|
91
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
93
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
96
|
+
execution_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
executor_users: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
98
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
99
|
+
blueprint: {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
export declare const mockDuringActionsResponse: {
|
|
105
|
+
actions: import("zod").objectOutputType<{
|
|
106
|
+
id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodString]>;
|
|
107
|
+
name: import("zod").ZodString;
|
|
108
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
|
+
is_mandatory: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
110
|
+
field_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
|
+
field_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=blueprints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprints.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/blueprints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,EAAE,yBAOjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,mBAgBrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAsC3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,EA0BrC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;CAErC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export const mockBlueprintAction = {
|
|
2
|
+
id: "action_001",
|
|
3
|
+
name: "Add Comment",
|
|
4
|
+
type: "field",
|
|
5
|
+
is_mandatory: true,
|
|
6
|
+
field_id: "comment",
|
|
7
|
+
field_type: "textarea",
|
|
8
|
+
};
|
|
9
|
+
export const mockBlueprintTransition = {
|
|
10
|
+
id: "trans_001",
|
|
11
|
+
name: "Move to In Progress",
|
|
12
|
+
source_status: {
|
|
13
|
+
id: "status_open",
|
|
14
|
+
name: "Open",
|
|
15
|
+
},
|
|
16
|
+
target_status: {
|
|
17
|
+
id: "status_in_progress",
|
|
18
|
+
name: "In Progress",
|
|
19
|
+
},
|
|
20
|
+
before_actions: [],
|
|
21
|
+
during_actions: [mockBlueprintAction],
|
|
22
|
+
after_actions: [],
|
|
23
|
+
execution_type: "manual",
|
|
24
|
+
executor_users: ["user_001", "user_002"],
|
|
25
|
+
};
|
|
26
|
+
export const mockBlueprint = {
|
|
27
|
+
id: "bp_001",
|
|
28
|
+
id_string: "bp_001",
|
|
29
|
+
name: "Task Workflow",
|
|
30
|
+
description: "Standard task workflow with status transitions",
|
|
31
|
+
module_id: "1001",
|
|
32
|
+
module_name: "Tasks",
|
|
33
|
+
is_active: true,
|
|
34
|
+
transitions: [
|
|
35
|
+
mockBlueprintTransition,
|
|
36
|
+
{
|
|
37
|
+
id: "trans_002",
|
|
38
|
+
name: "Complete Task",
|
|
39
|
+
source_status: {
|
|
40
|
+
id: "status_in_progress",
|
|
41
|
+
name: "In Progress",
|
|
42
|
+
},
|
|
43
|
+
target_status: {
|
|
44
|
+
id: "status_completed",
|
|
45
|
+
name: "Completed",
|
|
46
|
+
},
|
|
47
|
+
during_actions: [
|
|
48
|
+
{
|
|
49
|
+
id: "action_002",
|
|
50
|
+
name: "Add Resolution",
|
|
51
|
+
type: "field",
|
|
52
|
+
is_mandatory: false,
|
|
53
|
+
field_id: "resolution",
|
|
54
|
+
field_type: "text",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
execution_type: "manual",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
61
|
+
created_time_long: 1704067200000,
|
|
62
|
+
last_modified_time: "2024-01-15T12:00:00Z",
|
|
63
|
+
last_modified_time_long: 1705320000000,
|
|
64
|
+
};
|
|
65
|
+
export const mockBlueprints = [
|
|
66
|
+
mockBlueprint,
|
|
67
|
+
{
|
|
68
|
+
id: "bp_002",
|
|
69
|
+
id_string: "bp_002",
|
|
70
|
+
name: "Bug Resolution Workflow",
|
|
71
|
+
description: "Workflow for bug tracking and resolution",
|
|
72
|
+
module_id: "1002",
|
|
73
|
+
module_name: "Bugs",
|
|
74
|
+
is_active: true,
|
|
75
|
+
transitions: [
|
|
76
|
+
{
|
|
77
|
+
id: "trans_003",
|
|
78
|
+
name: "Start Investigation",
|
|
79
|
+
source_status: {
|
|
80
|
+
id: "status_new",
|
|
81
|
+
name: "New",
|
|
82
|
+
},
|
|
83
|
+
target_status: {
|
|
84
|
+
id: "status_investigating",
|
|
85
|
+
name: "Investigating",
|
|
86
|
+
},
|
|
87
|
+
execution_type: "manual",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
export const mockNextTransitionsResponse = {
|
|
93
|
+
transitions: [mockBlueprintTransition],
|
|
94
|
+
blueprint: {
|
|
95
|
+
id: "bp_001",
|
|
96
|
+
name: "Task Workflow",
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
export const mockDuringActionsResponse = {
|
|
100
|
+
actions: [mockBlueprintAction],
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=blueprints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprints.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/blueprints.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,mBAAmB,GAA8B;IAC5D,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,OAAO;IACb,YAAY,EAAE,IAAI;IAClB,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAwB;IAC1D,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,qBAAqB;IAC3B,aAAa,EAAE;QACb,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,MAAM;KACb;IACD,aAAa,EAAE;QACb,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,aAAa;KACpB;IACD,cAAc,EAAE,EAAE;IAClB,cAAc,EAAE,CAAC,mBAAmB,CAAC;IACrC,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,EAAE,EAAE,QAAQ;IACZ,SAAS,EAAE,QAAQ;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,gDAAgD;IAC7D,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,OAAO;IACpB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE;QACX,uBAAuB;QACvB;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,eAAe;YACrB,aAAa,EAAE;gBACb,EAAE,EAAE,oBAAoB;gBACxB,IAAI,EAAE,aAAa;aACpB;YACD,aAAa,EAAE;gBACb,EAAE,EAAE,kBAAkB;gBACtB,IAAI,EAAE,WAAW;aAClB;YACD,cAAc,EAAE;gBACd;oBACE,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,OAAO;oBACb,YAAY,EAAE,KAAK;oBACnB,QAAQ,EAAE,YAAY;oBACtB,UAAU,EAAE,MAAM;iBACnB;aACF;YACD,cAAc,EAAE,QAAQ;SACzB;KACF;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,QAAQ;QACZ,SAAS,EAAE,QAAQ;QACnB,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,0CAA0C;QACvD,SAAS,EAAE,MAAM;QACjB,WAAW,EAAE,MAAM;QACnB,SAAS,EAAE,IAAI;QACf,WAAW,EAAE;YACX;gBACE,EAAE,EAAE,WAAW;gBACf,IAAI,EAAE,qBAAqB;gBAC3B,aAAa,EAAE;oBACb,EAAE,EAAE,YAAY;oBAChB,IAAI,EAAE,KAAK;iBACZ;gBACD,aAAa,EAAE;oBACb,EAAE,EAAE,sBAAsB;oBAC1B,IAAI,EAAE,eAAe;iBACtB;gBACD,cAAc,EAAE,QAAQ;aACzB;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,WAAW,EAAE,CAAC,uBAAuB,CAAC;IACtC,SAAS,EAAE;QACT,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,eAAe;KACtB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,CAAC,mBAAmB,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,eAAO,MAAM,UAAU,EAAE,MAmBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,EAgB/B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const mockClient = {
|
|
2
|
+
id: "client_001",
|
|
3
|
+
id_string: "client_001",
|
|
4
|
+
name: "Acme Corporation",
|
|
5
|
+
email: "contact@acme.com",
|
|
6
|
+
phone: "+1-555-123-4567",
|
|
7
|
+
website: "https://acme.com",
|
|
8
|
+
address: "123 Main Street",
|
|
9
|
+
city: "San Francisco",
|
|
10
|
+
state: "California",
|
|
11
|
+
country: "United States",
|
|
12
|
+
zip_code: "94105",
|
|
13
|
+
currency_code: "USD",
|
|
14
|
+
projects_count: 5,
|
|
15
|
+
contacts_count: 3,
|
|
16
|
+
created_time: "2024-01-01T00:00:00Z",
|
|
17
|
+
created_time_long: 1704067200000,
|
|
18
|
+
last_modified_time: "2024-01-15T12:00:00Z",
|
|
19
|
+
last_modified_time_long: 1705320000000,
|
|
20
|
+
};
|
|
21
|
+
export const mockClients = [
|
|
22
|
+
mockClient,
|
|
23
|
+
{
|
|
24
|
+
id: "client_002",
|
|
25
|
+
id_string: "client_002",
|
|
26
|
+
name: "TechStart Inc",
|
|
27
|
+
email: "hello@techstart.io",
|
|
28
|
+
phone: "+1-555-987-6543",
|
|
29
|
+
website: "https://techstart.io",
|
|
30
|
+
city: "New York",
|
|
31
|
+
state: "New York",
|
|
32
|
+
country: "United States",
|
|
33
|
+
currency_code: "USD",
|
|
34
|
+
projects_count: 2,
|
|
35
|
+
contacts_count: 1,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
//# sourceMappingURL=clients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/clients.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAW;IAChC,EAAE,EAAE,YAAY;IAChB,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,iBAAiB;IACxB,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,OAAO;IACjB,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,CAAC;IACjB,cAAc,EAAE,CAAC;IACjB,YAAY,EAAE,sBAAsB;IACpC,iBAAiB,EAAE,aAAa;IAChC,kBAAkB,EAAE,sBAAsB;IAC1C,uBAAuB,EAAE,aAAa;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,UAAU;IACV;QACE,EAAE,EAAE,YAAY;QAChB,SAAS,EAAE,YAAY;QACvB,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,oBAAoB;QAC3B,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,sBAAsB;QAC/B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,eAAe;QACxB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,CAAC;QACjB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { Comment } from "../../types/index.js";
|
|
2
|
+
export declare function createCommentFixture(overrides?: Partial<Comment>): Comment;
|
|
3
|
+
export declare function createCommentListFixture(count?: number): Comment[];
|
|
4
|
+
export declare function createCommentListResponse(comments: Comment[], hasMore?: boolean): {
|
|
5
|
+
comments: import("zod").objectOutputType<{
|
|
6
|
+
id: import("zod").ZodNumber;
|
|
7
|
+
id_string: import("zod").ZodString;
|
|
8
|
+
content: import("zod").ZodString;
|
|
9
|
+
posted_by: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10
|
+
id: import("zod").ZodString;
|
|
11
|
+
name: import("zod").ZodString;
|
|
12
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
zpuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
zpuid?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
email?: string | undefined;
|
|
23
|
+
zpuid?: string | undefined;
|
|
24
|
+
}>>;
|
|
25
|
+
posted_person: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
author_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
entity_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
entity_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
attachments: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
30
|
+
id: import("zod").ZodNumber;
|
|
31
|
+
id_string: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
name: import("zod").ZodString;
|
|
33
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
url?: string | undefined;
|
|
38
|
+
id_string?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
url?: string | undefined;
|
|
43
|
+
id_string?: string | undefined;
|
|
44
|
+
}>, "many">>;
|
|
45
|
+
mentions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
46
|
+
id: import("zod").ZodString;
|
|
47
|
+
name: import("zod").ZodString;
|
|
48
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}, {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
}>, "many">>;
|
|
55
|
+
link: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
56
|
+
self: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
57
|
+
url: import("zod").ZodString;
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
|
+
url: string;
|
|
60
|
+
}, {
|
|
61
|
+
url: string;
|
|
62
|
+
}>>;
|
|
63
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
64
|
+
self: 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
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
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
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
80
|
+
posted_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
posted_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
82
|
+
last_modified_time: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
+
last_modified_time_long: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
84
|
+
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
85
|
+
page_info: {
|
|
86
|
+
page: number;
|
|
87
|
+
per_page: number;
|
|
88
|
+
has_more_page: boolean;
|
|
89
|
+
total_count: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/comments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,wBAAgB,oBAAoB,CAAC,SAAS,GAAE,OAAO,CAAC,OAAO,CAAM,GAAG,OAAO,CAsB9E;AAED,wBAAgB,wBAAwB,CAAC,KAAK,GAAE,MAAU,GAAG,OAAO,EAAE,CAErE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,GAAE,OAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment fixtures for testing
|
|
3
|
+
*/
|
|
4
|
+
import { faker } from "@faker-js/faker";
|
|
5
|
+
export function createCommentFixture(overrides = {}) {
|
|
6
|
+
const id = faker.number.int({ min: 100000, max: 999999 });
|
|
7
|
+
return {
|
|
8
|
+
id,
|
|
9
|
+
id_string: id.toString(),
|
|
10
|
+
content: faker.lorem.paragraph(),
|
|
11
|
+
posted_by: {
|
|
12
|
+
id: faker.string.numeric(10),
|
|
13
|
+
name: faker.person.fullName(),
|
|
14
|
+
},
|
|
15
|
+
posted_person: faker.person.fullName(),
|
|
16
|
+
author_name: faker.person.fullName(),
|
|
17
|
+
entity_type: faker.helpers.arrayElement(["task", "bug", "forum", "milestone", "event"]),
|
|
18
|
+
entity_id: faker.string.numeric(10),
|
|
19
|
+
attachments: [],
|
|
20
|
+
mentions: [],
|
|
21
|
+
posted_time: faker.date.past().toISOString(),
|
|
22
|
+
posted_time_long: faker.date.past().getTime(),
|
|
23
|
+
last_modified_time: faker.date.recent().toISOString(),
|
|
24
|
+
last_modified_time_long: faker.date.recent().getTime(),
|
|
25
|
+
...overrides,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function createCommentListFixture(count = 5) {
|
|
29
|
+
return Array.from({ length: count }, () => createCommentFixture());
|
|
30
|
+
}
|
|
31
|
+
export function createCommentListResponse(comments, hasMore = false) {
|
|
32
|
+
return {
|
|
33
|
+
comments,
|
|
34
|
+
page_info: {
|
|
35
|
+
page: 1,
|
|
36
|
+
per_page: 100,
|
|
37
|
+
has_more_page: hasMore,
|
|
38
|
+
total_count: comments.length,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=comments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comments.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/comments.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,MAAM,UAAU,oBAAoB,CAAC,YAA8B,EAAE;IACnE,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,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE;QAChC,SAAS,EAAE;YACT,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;SAC9B;QACD,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QACtC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACvF,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACnC,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,EAAE;QACZ,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;QAC5C,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;QAC7C,kBAAkB,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;QACrD,uBAAuB,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QACtD,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,QAAgB,CAAC;IACxD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,oBAAoB,EAAE,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,QAAmB,EAAE,UAAmB,KAAK;IACrF,OAAO;QACL,QAAQ;QACR,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,GAAG;YACb,aAAa,EAAE,OAAO;YACtB,WAAW,EAAE,QAAQ,CAAC,MAAM;SAC7B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/contacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,WAAW,EAAE,OAsBzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,EAejC,CAAC"}
|