@ever-gauzy/plugin-integration-plane-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/config/constants.d.ts +125 -0
- package/dist/config/constants.js +185 -0
- package/dist/config/constants.js.map +1 -0
- package/dist/config/credentials.d.ts +30 -0
- package/dist/config/credentials.js +50 -0
- package/dist/config/credentials.js.map +1 -0
- package/dist/config/decorators/index.d.ts +1 -0
- package/dist/config/decorators/index.js +18 -0
- package/dist/config/decorators/index.js.map +1 -0
- package/dist/config/decorators/transformers/index.d.ts +1 -0
- package/dist/config/decorators/transformers/index.js +18 -0
- package/dist/config/decorators/transformers/index.js.map +1 -0
- package/dist/config/decorators/transformers/priority.transformer.d.ts +1 -0
- package/dist/config/decorators/transformers/priority.transformer.js +12 -0
- package/dist/config/decorators/transformers/priority.transformer.js.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.js +24 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/serializers/activity/activity.serializer.d.ts +28 -0
- package/dist/config/serializers/activity/activity.serializer.js +288 -0
- package/dist/config/serializers/activity/activity.serializer.js.map +1 -0
- package/dist/config/serializers/activity/assignees-activities.serializer.d.ts +18 -0
- package/dist/config/serializers/activity/assignees-activities.serializer.js +64 -0
- package/dist/config/serializers/activity/assignees-activities.serializer.js.map +1 -0
- package/dist/config/serializers/activity/index.d.ts +7 -0
- package/dist/config/serializers/activity/index.js +24 -0
- package/dist/config/serializers/activity/index.js.map +1 -0
- package/dist/config/serializers/activity/labels-activities.serializer.d.ts +11 -0
- package/dist/config/serializers/activity/labels-activities.serializer.js +30 -0
- package/dist/config/serializers/activity/labels-activities.serializer.js.map +1 -0
- package/dist/config/serializers/activity/many-to-many-field-activity.helper.d.ts +29 -0
- package/dist/config/serializers/activity/many-to-many-field-activity.helper.js +45 -0
- package/dist/config/serializers/activity/many-to-many-field-activity.helper.js.map +1 -0
- package/dist/config/serializers/activity/modules-activities.serializer.d.ts +11 -0
- package/dist/config/serializers/activity/modules-activities.serializer.js +30 -0
- package/dist/config/serializers/activity/modules-activities.serializer.js.map +1 -0
- package/dist/config/serializers/activity/parent-activities.serializer.d.ts +14 -0
- package/dist/config/serializers/activity/parent-activities.serializer.js +47 -0
- package/dist/config/serializers/activity/parent-activities.serializer.js.map +1 -0
- package/dist/config/serializers/activity/status-activities.serializer.d.ts +12 -0
- package/dist/config/serializers/activity/status-activities.serializer.js +30 -0
- package/dist/config/serializers/activity/status-activities.serializer.js.map +1 -0
- package/dist/config/serializers/analytics/analytics.serializer.d.ts +17 -0
- package/dist/config/serializers/analytics/analytics.serializer.js +395 -0
- package/dist/config/serializers/analytics/analytics.serializer.js.map +1 -0
- package/dist/config/serializers/analytics/index.d.ts +1 -0
- package/dist/config/serializers/analytics/index.js +18 -0
- package/dist/config/serializers/analytics/index.js.map +1 -0
- package/dist/config/serializers/auth/auth.serializer.d.ts +2 -0
- package/dist/config/serializers/auth/auth.serializer.js +11 -0
- package/dist/config/serializers/auth/auth.serializer.js.map +1 -0
- package/dist/config/serializers/auth/index.d.ts +1 -0
- package/dist/config/serializers/auth/index.js +18 -0
- package/dist/config/serializers/auth/index.js.map +1 -0
- package/dist/config/serializers/comments/comment.serializer.d.ts +25 -0
- package/dist/config/serializers/comments/comment.serializer.js +94 -0
- package/dist/config/serializers/comments/comment.serializer.js.map +1 -0
- package/dist/config/serializers/comments/index.d.ts +1 -0
- package/dist/config/serializers/comments/index.js +18 -0
- package/dist/config/serializers/comments/index.js.map +1 -0
- package/dist/config/serializers/cycles/cycle.serializer.d.ts +86 -0
- package/dist/config/serializers/cycles/cycle.serializer.js +480 -0
- package/dist/config/serializers/cycles/cycle.serializer.js.map +1 -0
- package/dist/config/serializers/cycles/index.d.ts +1 -0
- package/dist/config/serializers/cycles/index.js +18 -0
- package/dist/config/serializers/cycles/index.js.map +1 -0
- package/dist/config/serializers/dashboard/dashboard.serializer.d.ts +22 -0
- package/dist/config/serializers/dashboard/dashboard.serializer.js +66 -0
- package/dist/config/serializers/dashboard/dashboard.serializer.js.map +1 -0
- package/dist/config/serializers/dashboard/index.d.ts +1 -0
- package/dist/config/serializers/dashboard/index.js +18 -0
- package/dist/config/serializers/dashboard/index.js.map +1 -0
- package/dist/config/serializers/employee-properties/employee-properties.serializer.d.ts +9 -0
- package/dist/config/serializers/employee-properties/employee-properties.serializer.js +57 -0
- package/dist/config/serializers/employee-properties/employee-properties.serializer.js.map +1 -0
- package/dist/config/serializers/employee-properties/index.d.ts +1 -0
- package/dist/config/serializers/employee-properties/index.js +18 -0
- package/dist/config/serializers/employee-properties/index.js.map +1 -0
- package/dist/config/serializers/index.d.ts +24 -0
- package/dist/config/serializers/index.js +41 -0
- package/dist/config/serializers/index.js.map +1 -0
- package/dist/config/serializers/invitation/index.d.ts +1 -0
- package/dist/config/serializers/invitation/index.js +18 -0
- package/dist/config/serializers/invitation/index.js.map +1 -0
- package/dist/config/serializers/invitation/invitation.serializer.d.ts +52 -0
- package/dist/config/serializers/invitation/invitation.serializer.js +140 -0
- package/dist/config/serializers/invitation/invitation.serializer.js.map +1 -0
- package/dist/config/serializers/issue-link/index.d.ts +1 -0
- package/dist/config/serializers/issue-link/index.js +18 -0
- package/dist/config/serializers/issue-link/index.js.map +1 -0
- package/dist/config/serializers/issue-link/issue-link.serializer.d.ts +28 -0
- package/dist/config/serializers/issue-link/issue-link.serializer.js +89 -0
- package/dist/config/serializers/issue-link/issue-link.serializer.js.map +1 -0
- package/dist/config/serializers/mention/index.d.ts +1 -0
- package/dist/config/serializers/mention/index.js +18 -0
- package/dist/config/serializers/mention/index.js.map +1 -0
- package/dist/config/serializers/mention/mention.serializer.d.ts +2 -0
- package/dist/config/serializers/mention/mention.serializer.js +22 -0
- package/dist/config/serializers/mention/mention.serializer.js.map +1 -0
- package/dist/config/serializers/modules/index.d.ts +1 -0
- package/dist/config/serializers/modules/index.js +18 -0
- package/dist/config/serializers/modules/index.js.map +1 -0
- package/dist/config/serializers/modules/module.serializer.d.ts +49 -0
- package/dist/config/serializers/modules/module.serializer.js +215 -0
- package/dist/config/serializers/modules/module.serializer.js.map +1 -0
- package/dist/config/serializers/notification/index.d.ts +1 -0
- package/dist/config/serializers/notification/index.js +18 -0
- package/dist/config/serializers/notification/index.js.map +1 -0
- package/dist/config/serializers/notification/notification.serializer.d.ts +31 -0
- package/dist/config/serializers/notification/notification.serializer.js +135 -0
- package/dist/config/serializers/notification/notification.serializer.js.map +1 -0
- package/dist/config/serializers/pages/index.d.ts +1 -0
- package/dist/config/serializers/pages/index.js +18 -0
- package/dist/config/serializers/pages/index.js.map +1 -0
- package/dist/config/serializers/pages/page.serializer.d.ts +23 -0
- package/dist/config/serializers/pages/page.serializer.js +106 -0
- package/dist/config/serializers/pages/page.serializer.js.map +1 -0
- package/dist/config/serializers/project-deploy-boards/index.d.ts +2 -0
- package/dist/config/serializers/project-deploy-boards/index.js +19 -0
- package/dist/config/serializers/project-deploy-boards/index.js.map +1 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.d.ts +16 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.js +169 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.js.map +1 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.d.ts +14 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.js +35 -0
- package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.js.map +1 -0
- package/dist/config/serializers/projects/index.d.ts +1 -0
- package/dist/config/serializers/projects/index.js +18 -0
- package/dist/config/serializers/projects/index.js.map +1 -0
- package/dist/config/serializers/projects/projects.serializer.d.ts +42 -0
- package/dist/config/serializers/projects/projects.serializer.js +216 -0
- package/dist/config/serializers/projects/projects.serializer.js.map +1 -0
- package/dist/config/serializers/query-params.serializers.d.ts +4 -0
- package/dist/config/serializers/query-params.serializers.js +10 -0
- package/dist/config/serializers/query-params.serializers.js.map +1 -0
- package/dist/config/serializers/reactions/index.d.ts +1 -0
- package/dist/config/serializers/reactions/index.js +18 -0
- package/dist/config/serializers/reactions/index.js.map +1 -0
- package/dist/config/serializers/reactions/reaction.serializer.d.ts +4 -0
- package/dist/config/serializers/reactions/reaction.serializer.js +62 -0
- package/dist/config/serializers/reactions/reaction.serializer.js.map +1 -0
- package/dist/config/serializers/recent-visits/index.d.ts +1 -0
- package/dist/config/serializers/recent-visits/index.js +18 -0
- package/dist/config/serializers/recent-visits/index.js.map +1 -0
- package/dist/config/serializers/recent-visits/recent-visits.serializer.d.ts +32 -0
- package/dist/config/serializers/recent-visits/recent-visits.serializer.js +109 -0
- package/dist/config/serializers/recent-visits/recent-visits.serializer.js.map +1 -0
- package/dist/config/serializers/subscription/index.d.ts +1 -0
- package/dist/config/serializers/subscription/index.js +18 -0
- package/dist/config/serializers/subscription/index.js.map +1 -0
- package/dist/config/serializers/subscription/subscription.serializer.d.ts +23 -0
- package/dist/config/serializers/subscription/subscription.serializer.js +68 -0
- package/dist/config/serializers/subscription/subscription.serializer.js.map +1 -0
- package/dist/config/serializers/tasks/index.d.ts +5 -0
- package/dist/config/serializers/tasks/index.js +22 -0
- package/dist/config/serializers/tasks/index.js.map +1 -0
- package/dist/config/serializers/tasks/intake-issue/index.d.ts +1 -0
- package/dist/config/serializers/tasks/intake-issue/index.js +18 -0
- package/dist/config/serializers/tasks/intake-issue/index.js.map +1 -0
- package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.d.ts +35 -0
- package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.js +123 -0
- package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.js.map +1 -0
- package/dist/config/serializers/tasks/issue-labels/index.d.ts +1 -0
- package/dist/config/serializers/tasks/issue-labels/index.js +18 -0
- package/dist/config/serializers/tasks/issue-labels/index.js.map +1 -0
- package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.d.ts +6 -0
- package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.js +31 -0
- package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.js.map +1 -0
- package/dist/config/serializers/tasks/issue-relations/index.d.ts +1 -0
- package/dist/config/serializers/tasks/issue-relations/index.js +18 -0
- package/dist/config/serializers/tasks/issue-relations/index.js.map +1 -0
- package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.d.ts +8 -0
- package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.js +94 -0
- package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.js.map +1 -0
- package/dist/config/serializers/tasks/statuses/index.d.ts +1 -0
- package/dist/config/serializers/tasks/statuses/index.js +18 -0
- package/dist/config/serializers/tasks/statuses/index.js.map +1 -0
- package/dist/config/serializers/tasks/statuses/statuses.serializer.d.ts +12 -0
- package/dist/config/serializers/tasks/statuses/statuses.serializer.js +100 -0
- package/dist/config/serializers/tasks/statuses/statuses.serializer.js.map +1 -0
- package/dist/config/serializers/tasks/tasks.serializer.d.ts +285 -0
- package/dist/config/serializers/tasks/tasks.serializer.js +1074 -0
- package/dist/config/serializers/tasks/tasks.serializer.js.map +1 -0
- package/dist/config/serializers/user/actor-details.helper.d.ts +10 -0
- package/dist/config/serializers/user/actor-details.helper.js +16 -0
- package/dist/config/serializers/user/actor-details.helper.js.map +1 -0
- package/dist/config/serializers/user/index.d.ts +2 -0
- package/dist/config/serializers/user/index.js +19 -0
- package/dist/config/serializers/user/index.js.map +1 -0
- package/dist/config/serializers/user/user.serializer.d.ts +140 -0
- package/dist/config/serializers/user/user.serializer.js +192 -0
- package/dist/config/serializers/user/user.serializer.js.map +1 -0
- package/dist/config/serializers/user-favorites/index.d.ts +1 -0
- package/dist/config/serializers/user-favorites/index.js +18 -0
- package/dist/config/serializers/user-favorites/index.js.map +1 -0
- package/dist/config/serializers/user-favorites/user-favorite.serializer.d.ts +6 -0
- package/dist/config/serializers/user-favorites/user-favorite.serializer.js +61 -0
- package/dist/config/serializers/user-favorites/user-favorite.serializer.js.map +1 -0
- package/dist/config/serializers/views/date-range.helper.d.ts +1 -0
- package/dist/config/serializers/views/date-range.helper.js +85 -0
- package/dist/config/serializers/views/date-range.helper.js.map +1 -0
- package/dist/config/serializers/views/index.d.ts +3 -0
- package/dist/config/serializers/views/index.js +20 -0
- package/dist/config/serializers/views/index.js.map +1 -0
- package/dist/config/serializers/views/view-id-from-referer.helper.d.ts +14 -0
- package/dist/config/serializers/views/view-id-from-referer.helper.js +27 -0
- package/dist/config/serializers/views/view-id-from-referer.helper.js.map +1 -0
- package/dist/config/serializers/views/view.serializer.d.ts +47 -0
- package/dist/config/serializers/views/view.serializer.js +187 -0
- package/dist/config/serializers/views/view.serializer.js.map +1 -0
- package/dist/config/serializers/workspace-organization/index.d.ts +2 -0
- package/dist/config/serializers/workspace-organization/index.js +19 -0
- package/dist/config/serializers/workspace-organization/index.js.map +1 -0
- package/dist/config/serializers/workspace-organization/organization.serializer.d.ts +92 -0
- package/dist/config/serializers/workspace-organization/organization.serializer.js +270 -0
- package/dist/config/serializers/workspace-organization/organization.serializer.js.map +1 -0
- package/dist/config/serializers/workspace-organization/widgets-filter.helper.d.ts +4 -0
- package/dist/config/serializers/workspace-organization/widgets-filter.helper.js +14 -0
- package/dist/config/serializers/workspace-organization/widgets-filter.helper.js.map +1 -0
- package/dist/config/time-zones.d.ts +8 -0
- package/dist/config/time-zones.js +722 -0
- package/dist/config/time-zones.js.map +1 -0
- package/dist/config/utils/index.d.ts +1 -0
- package/dist/config/utils/index.js +18 -0
- package/dist/config/utils/index.js.map +1 -0
- package/dist/config/utils/shared.utils.d.ts +95 -0
- package/dist/config/utils/shared.utils.js +256 -0
- package/dist/config/utils/shared.utils.js.map +1 -0
- package/dist/config/validators/custom-length.decorator.d.ts +28 -0
- package/dist/config/validators/custom-length.decorator.js +65 -0
- package/dist/config/validators/custom-length.decorator.js.map +1 -0
- package/dist/config/validators/index.d.ts +1 -0
- package/dist/config/validators/index.js +18 -0
- package/dist/config/validators/index.js.map +1 -0
- package/dist/dev.d.ts +1 -0
- package/dist/dev.js +10 -0
- package/dist/dev.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +50 -0
- package/dist/main.js.map +1 -0
- package/dist/modules/activity/activity.module.d.ts +2 -0
- package/dist/modules/activity/activity.module.js +22 -0
- package/dist/modules/activity/activity.module.js.map +1 -0
- package/dist/modules/activity/activity.service.d.ts +12 -0
- package/dist/modules/activity/activity.service.js +45 -0
- package/dist/modules/activity/activity.service.js.map +1 -0
- package/dist/modules/advance-analytics/advance-analytics.controller.d.ts +30 -0
- package/dist/modules/advance-analytics/advance-analytics.controller.js +128 -0
- package/dist/modules/advance-analytics/advance-analytics.controller.js.map +1 -0
- package/dist/modules/advance-analytics/advance-analytics.module.d.ts +15 -0
- package/dist/modules/advance-analytics/advance-analytics.module.js +56 -0
- package/dist/modules/advance-analytics/advance-analytics.module.js.map +1 -0
- package/dist/modules/advance-analytics/advance-analytics.service.d.ts +29 -0
- package/dist/modules/advance-analytics/advance-analytics.service.js +143 -0
- package/dist/modules/advance-analytics/advance-analytics.service.js.map +1 -0
- package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.d.ts +26 -0
- package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.js +93 -0
- package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.js.map +1 -0
- package/dist/modules/advance-analytics/dto/index.d.ts +1 -0
- package/dist/modules/advance-analytics/dto/index.js +18 -0
- package/dist/modules/advance-analytics/dto/index.js.map +1 -0
- package/dist/modules/advance-analytics/index.d.ts +4 -0
- package/dist/modules/advance-analytics/index.js +21 -0
- package/dist/modules/advance-analytics/index.js.map +1 -0
- package/dist/modules/api-fetch/api-fetch.module.d.ts +2 -0
- package/dist/modules/api-fetch/api-fetch.module.js +24 -0
- package/dist/modules/api-fetch/api-fetch.module.js.map +1 -0
- package/dist/modules/api-fetch/api-fetch.service.d.ts +31 -0
- package/dist/modules/api-fetch/api-fetch.service.js +96 -0
- package/dist/modules/api-fetch/api-fetch.service.js.map +1 -0
- package/dist/modules/api-fetch/token.helper.d.ts +22 -0
- package/dist/modules/api-fetch/token.helper.js +58 -0
- package/dist/modules/api-fetch/token.helper.js.map +1 -0
- package/dist/modules/api-fetch/token.middleware.d.ts +8 -0
- package/dist/modules/api-fetch/token.middleware.js +38 -0
- package/dist/modules/api-fetch/token.middleware.js.map +1 -0
- package/dist/modules/app.module.d.ts +7 -0
- package/dist/modules/app.module.js +49 -0
- package/dist/modules/app.module.js.map +1 -0
- package/dist/modules/auth/auth.controller.d.ts +32 -0
- package/dist/modules/auth/auth.controller.js +278 -0
- package/dist/modules/auth/auth.controller.js.map +1 -0
- package/dist/modules/auth/auth.guard.d.ts +9 -0
- package/dist/modules/auth/auth.guard.js +52 -0
- package/dist/modules/auth/auth.guard.js.map +1 -0
- package/dist/modules/auth/auth.module.d.ts +2 -0
- package/dist/modules/auth/auth.module.js +30 -0
- package/dist/modules/auth/auth.module.js.map +1 -0
- package/dist/modules/auth/auth.service.d.ts +133 -0
- package/dist/modules/auth/auth.service.js +362 -0
- package/dist/modules/auth/auth.service.js.map +1 -0
- package/dist/modules/auth/dto/index.d.ts +1 -0
- package/dist/modules/auth/dto/index.js +18 -0
- package/dist/modules/auth/dto/index.js.map +1 -0
- package/dist/modules/auth/dto/two-factor-dto.d.ts +15 -0
- package/dist/modules/auth/dto/two-factor-dto.js +18 -0
- package/dist/modules/auth/dto/two-factor-dto.js.map +1 -0
- package/dist/modules/comments/comments.controller.d.ts +24 -0
- package/dist/modules/comments/comments.controller.js +72 -0
- package/dist/modules/comments/comments.controller.js.map +1 -0
- package/dist/modules/comments/comments.module.d.ts +2 -0
- package/dist/modules/comments/comments.module.js +26 -0
- package/dist/modules/comments/comments.module.js.map +1 -0
- package/dist/modules/comments/comments.service.d.ts +92 -0
- package/dist/modules/comments/comments.service.js +235 -0
- package/dist/modules/comments/comments.service.js.map +1 -0
- package/dist/modules/cycles/cycles.controller.d.ts +106 -0
- package/dist/modules/cycles/cycles.controller.js +270 -0
- package/dist/modules/cycles/cycles.controller.js.map +1 -0
- package/dist/modules/cycles/cycles.module.d.ts +2 -0
- package/dist/modules/cycles/cycles.module.js +31 -0
- package/dist/modules/cycles/cycles.module.js.map +1 -0
- package/dist/modules/cycles/cycles.service.d.ts +169 -0
- package/dist/modules/cycles/cycles.service.js +477 -0
- package/dist/modules/cycles/cycles.service.js.map +1 -0
- package/dist/modules/cycles/dto/create-cycle.dto.d.ts +6 -0
- package/dist/modules/cycles/dto/create-cycle.dto.js +9 -0
- package/dist/modules/cycles/dto/create-cycle.dto.js.map +1 -0
- package/dist/modules/cycles/dto/cycle.dto.d.ts +18 -0
- package/dist/modules/cycles/dto/cycle.dto.js +112 -0
- package/dist/modules/cycles/dto/cycle.dto.js.map +1 -0
- package/dist/modules/cycles/dto/index.d.ts +3 -0
- package/dist/modules/cycles/dto/index.js +20 -0
- package/dist/modules/cycles/dto/index.js.map +1 -0
- package/dist/modules/cycles/dto/update-cycle.dto.d.ts +6 -0
- package/dist/modules/cycles/dto/update-cycle.dto.js +9 -0
- package/dist/modules/cycles/dto/update-cycle.dto.js.map +1 -0
- package/dist/modules/dashboard/dashboard.controller.d.ts +16 -0
- package/dist/modules/dashboard/dashboard.controller.js +59 -0
- package/dist/modules/dashboard/dashboard.controller.js.map +1 -0
- package/dist/modules/dashboard/dashboard.module.d.ts +2 -0
- package/dist/modules/dashboard/dashboard.module.js +30 -0
- package/dist/modules/dashboard/dashboard.module.js.map +1 -0
- package/dist/modules/dashboard/dashboard.service.d.ts +33 -0
- package/dist/modules/dashboard/dashboard.service.js +97 -0
- package/dist/modules/dashboard/dashboard.service.js.map +1 -0
- package/dist/modules/dashboard/widget.service.d.ts +22 -0
- package/dist/modules/dashboard/widget.service.js +68 -0
- package/dist/modules/dashboard/widget.service.js.map +1 -0
- package/dist/modules/employee-properties/employee-properties.module.d.ts +2 -0
- package/dist/modules/employee-properties/employee-properties.module.js +21 -0
- package/dist/modules/employee-properties/employee-properties.module.js.map +1 -0
- package/dist/modules/employee-properties/employee-properties.service.d.ts +30 -0
- package/dist/modules/employee-properties/employee-properties.service.js +95 -0
- package/dist/modules/employee-properties/employee-properties.service.js.map +1 -0
- package/dist/modules/file-assets/file-assets.controller.d.ts +120 -0
- package/dist/modules/file-assets/file-assets.controller.js +192 -0
- package/dist/modules/file-assets/file-assets.controller.js.map +1 -0
- package/dist/modules/file-assets/file-assets.module.d.ts +2 -0
- package/dist/modules/file-assets/file-assets.module.js +23 -0
- package/dist/modules/file-assets/file-assets.module.js.map +1 -0
- package/dist/modules/file-assets/file-assets.service.d.ts +47 -0
- package/dist/modules/file-assets/file-assets.service.js +141 -0
- package/dist/modules/file-assets/file-assets.service.js.map +1 -0
- package/dist/modules/http.module.d.ts +2 -0
- package/dist/modules/http.module.js +22 -0
- package/dist/modules/http.module.js.map +1 -0
- package/dist/modules/instances/instances.controller.d.ts +73 -0
- package/dist/modules/instances/instances.controller.js +39 -0
- package/dist/modules/instances/instances.controller.js.map +1 -0
- package/dist/modules/instances/instances.module.d.ts +2 -0
- package/dist/modules/instances/instances.module.js +28 -0
- package/dist/modules/instances/instances.module.js.map +1 -0
- package/dist/modules/instances/instances.service.d.ts +68 -0
- package/dist/modules/instances/instances.service.js +88 -0
- package/dist/modules/instances/instances.service.js.map +1 -0
- package/dist/modules/invitation/dto/create-invitation.d.ts +8 -0
- package/dist/modules/invitation/dto/create-invitation.js +41 -0
- package/dist/modules/invitation/dto/create-invitation.js.map +1 -0
- package/dist/modules/invitation/dto/index.d.ts +1 -0
- package/dist/modules/invitation/dto/index.js +18 -0
- package/dist/modules/invitation/dto/index.js.map +1 -0
- package/dist/modules/invitation/invitation.controller.d.ts +53 -0
- package/dist/modules/invitation/invitation.controller.js +168 -0
- package/dist/modules/invitation/invitation.controller.js.map +1 -0
- package/dist/modules/invitation/invitation.module.d.ts +2 -0
- package/dist/modules/invitation/invitation.module.js +29 -0
- package/dist/modules/invitation/invitation.module.js.map +1 -0
- package/dist/modules/invitation/invitation.service.d.ts +67 -0
- package/dist/modules/invitation/invitation.service.js +193 -0
- package/dist/modules/invitation/invitation.service.js.map +1 -0
- package/dist/modules/issue-links/issue-links.module.d.ts +2 -0
- package/dist/modules/issue-links/issue-links.module.js +21 -0
- package/dist/modules/issue-links/issue-links.module.js.map +1 -0
- package/dist/modules/issue-links/issue-links.service.d.ts +47 -0
- package/dist/modules/issue-links/issue-links.service.js +143 -0
- package/dist/modules/issue-links/issue-links.service.js.map +1 -0
- package/dist/modules/issue-relations/dto/create-issue-relation.dto.d.ts +5 -0
- package/dist/modules/issue-relations/dto/create-issue-relation.dto.js +31 -0
- package/dist/modules/issue-relations/dto/create-issue-relation.dto.js.map +1 -0
- package/dist/modules/issue-relations/dto/delete-issue-relation.dto.d.ts +7 -0
- package/dist/modules/issue-relations/dto/delete-issue-relation.dto.js +25 -0
- package/dist/modules/issue-relations/dto/delete-issue-relation.dto.js.map +1 -0
- package/dist/modules/issue-relations/dto/index.d.ts +2 -0
- package/dist/modules/issue-relations/dto/index.js +19 -0
- package/dist/modules/issue-relations/dto/index.js.map +1 -0
- package/dist/modules/issue-relations/issue-relations.module.d.ts +2 -0
- package/dist/modules/issue-relations/issue-relations.module.js +23 -0
- package/dist/modules/issue-relations/issue-relations.module.js.map +1 -0
- package/dist/modules/issue-relations/issue-relations.service.d.ts +49 -0
- package/dist/modules/issue-relations/issue-relations.service.js +242 -0
- package/dist/modules/issue-relations/issue-relations.service.js.map +1 -0
- package/dist/modules/issues/draft-issues/draft-issues.module.d.ts +2 -0
- package/dist/modules/issues/draft-issues/draft-issues.module.js +23 -0
- package/dist/modules/issues/draft-issues/draft-issues.module.js.map +1 -0
- package/dist/modules/issues/draft-issues/draft-issues.service.d.ts +34 -0
- package/dist/modules/issues/draft-issues/draft-issues.service.js +94 -0
- package/dist/modules/issues/draft-issues/draft-issues.service.js.map +1 -0
- package/dist/modules/issues/dto/create-issue-comment.dto.d.ts +4 -0
- package/dist/modules/issues/dto/create-issue-comment.dto.js +24 -0
- package/dist/modules/issues/dto/create-issue-comment.dto.js.map +1 -0
- package/dist/modules/issues/dto/create-issue-link.dto.d.ts +5 -0
- package/dist/modules/issues/dto/create-issue-link.dto.js +30 -0
- package/dist/modules/issues/dto/create-issue-link.dto.js.map +1 -0
- package/dist/modules/issues/dto/create-issue-reaction.dto.d.ts +4 -0
- package/dist/modules/issues/dto/create-issue-reaction.dto.js +24 -0
- package/dist/modules/issues/dto/create-issue-reaction.dto.js.map +1 -0
- package/dist/modules/issues/dto/create-issue.dto.d.ts +21 -0
- package/dist/modules/issues/dto/create-issue.dto.js +139 -0
- package/dist/modules/issues/dto/create-issue.dto.js.map +1 -0
- package/dist/modules/issues/dto/index.d.ts +5 -0
- package/dist/modules/issues/dto/index.js +22 -0
- package/dist/modules/issues/dto/index.js.map +1 -0
- package/dist/modules/issues/dto/update-issue.dto.d.ts +5 -0
- package/dist/modules/issues/dto/update-issue.dto.js +25 -0
- package/dist/modules/issues/dto/update-issue.dto.js.map +1 -0
- package/dist/modules/issues/intake-issues/intake-issues.controller.d.ts +31 -0
- package/dist/modules/issues/intake-issues/intake-issues.controller.js +102 -0
- package/dist/modules/issues/intake-issues/intake-issues.controller.js.map +1 -0
- package/dist/modules/issues/intake-issues/intake-issues.module.d.ts +2 -0
- package/dist/modules/issues/intake-issues/intake-issues.module.js +26 -0
- package/dist/modules/issues/intake-issues/intake-issues.module.js.map +1 -0
- package/dist/modules/issues/intake-issues/intake-issues.service.d.ts +54 -0
- package/dist/modules/issues/intake-issues/intake-issues.service.js +182 -0
- package/dist/modules/issues/intake-issues/intake-issues.service.js.map +1 -0
- package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.d.ts +5 -0
- package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.js +30 -0
- package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.js.map +1 -0
- package/dist/modules/issues/issue-labels/dto/index.d.ts +2 -0
- package/dist/modules/issues/issue-labels/dto/index.js +19 -0
- package/dist/modules/issues/issue-labels/dto/index.js.map +1 -0
- package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.d.ts +6 -0
- package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.js +9 -0
- package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.js.map +1 -0
- package/dist/modules/issues/issue-labels/issue-labels.controller.d.ts +38 -0
- package/dist/modules/issues/issue-labels/issue-labels.controller.js +108 -0
- package/dist/modules/issues/issue-labels/issue-labels.controller.js.map +1 -0
- package/dist/modules/issues/issue-labels/issue-labels.module.d.ts +2 -0
- package/dist/modules/issues/issue-labels/issue-labels.module.js +23 -0
- package/dist/modules/issues/issue-labels/issue-labels.module.js.map +1 -0
- package/dist/modules/issues/issue-labels/issue-labels.service.d.ts +36 -0
- package/dist/modules/issues/issue-labels/issue-labels.service.js +107 -0
- package/dist/modules/issues/issue-labels/issue-labels.service.js.map +1 -0
- package/dist/modules/issues/issues.controller.d.ts +200 -0
- package/dist/modules/issues/issues.controller.js +547 -0
- package/dist/modules/issues/issues.controller.js.map +1 -0
- package/dist/modules/issues/issues.module.d.ts +2 -0
- package/dist/modules/issues/issues.module.js +45 -0
- package/dist/modules/issues/issues.module.js.map +1 -0
- package/dist/modules/issues/issues.service.d.ts +327 -0
- package/dist/modules/issues/issues.service.js +1052 -0
- package/dist/modules/issues/issues.service.js.map +1 -0
- package/dist/modules/issues/search-issues/search-issues.controller.d.ts +14 -0
- package/dist/modules/issues/search-issues/search-issues.controller.js +49 -0
- package/dist/modules/issues/search-issues/search-issues.controller.js.map +1 -0
- package/dist/modules/issues/search-issues/search-issues.module.d.ts +2 -0
- package/dist/modules/issues/search-issues/search-issues.module.js +23 -0
- package/dist/modules/issues/search-issues/search-issues.module.js.map +1 -0
- package/dist/modules/issues/search-issues/search-issues.service.d.ts +13 -0
- package/dist/modules/issues/search-issues/search-issues.service.js +97 -0
- package/dist/modules/issues/search-issues/search-issues.service.js.map +1 -0
- package/dist/modules/logger/index.d.ts +2 -0
- package/dist/modules/logger/index.js +19 -0
- package/dist/modules/logger/index.js.map +1 -0
- package/dist/modules/logger/logger.module.d.ts +6 -0
- package/dist/modules/logger/logger.module.js +26 -0
- package/dist/modules/logger/logger.module.js.map +1 -0
- package/dist/modules/logger/logger.service.d.ts +59 -0
- package/dist/modules/logger/logger.service.js +99 -0
- package/dist/modules/logger/logger.service.js.map +1 -0
- package/dist/modules/mention/mention.module.d.ts +2 -0
- package/dist/modules/mention/mention.module.js +21 -0
- package/dist/modules/mention/mention.module.js.map +1 -0
- package/dist/modules/mention/mention.service.d.ts +6 -0
- package/dist/modules/mention/mention.service.js +38 -0
- package/dist/modules/mention/mention.service.js.map +1 -0
- package/dist/modules/notification/notification.module.d.ts +2 -0
- package/dist/modules/notification/notification.module.js +21 -0
- package/dist/modules/notification/notification.module.js.map +1 -0
- package/dist/modules/notification/notification.service.d.ts +37 -0
- package/dist/modules/notification/notification.service.js +113 -0
- package/dist/modules/notification/notification.service.js.map +1 -0
- package/dist/modules/pages/dto/create-page.dto.d.ts +14 -0
- package/dist/modules/pages/dto/create-page.dto.js +68 -0
- package/dist/modules/pages/dto/create-page.dto.js.map +1 -0
- package/dist/modules/pages/dto/index.d.ts +2 -0
- package/dist/modules/pages/dto/index.js +19 -0
- package/dist/modules/pages/dto/index.js.map +1 -0
- package/dist/modules/pages/dto/update-page.dto.d.ts +15 -0
- package/dist/modules/pages/dto/update-page.dto.js +71 -0
- package/dist/modules/pages/dto/update-page.dto.js.map +1 -0
- package/dist/modules/pages/pages.controller.d.ts +109 -0
- package/dist/modules/pages/pages.controller.js +387 -0
- package/dist/modules/pages/pages.controller.js.map +1 -0
- package/dist/modules/pages/pages.module.d.ts +2 -0
- package/dist/modules/pages/pages.module.js +23 -0
- package/dist/modules/pages/pages.module.js.map +1 -0
- package/dist/modules/pages/pages.service.d.ts +112 -0
- package/dist/modules/pages/pages.service.js +481 -0
- package/dist/modules/pages/pages.service.js.map +1 -0
- package/dist/modules/project/dto/create-project.dto.d.ts +15 -0
- package/dist/modules/project/dto/create-project.dto.js +93 -0
- package/dist/modules/project/dto/create-project.dto.js.map +1 -0
- package/dist/modules/project/dto/index.d.ts +2 -0
- package/dist/modules/project/dto/index.js +19 -0
- package/dist/modules/project/dto/index.js.map +1 -0
- package/dist/modules/project/dto/project-member.dto.d.ts +8 -0
- package/dist/modules/project/dto/project-member.dto.js +48 -0
- package/dist/modules/project/dto/project-member.dto.js.map +1 -0
- package/dist/modules/project/dto/update-project.dto.d.ts +6 -0
- package/dist/modules/project/dto/update-project.dto.js +9 -0
- package/dist/modules/project/dto/update-project.dto.js.map +1 -0
- package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.d.ts +33 -0
- package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.js +127 -0
- package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.js.map +1 -0
- package/dist/modules/project/project-identifiers/project-identifiers.controller.d.ts +12 -0
- package/dist/modules/project/project-identifiers/project-identifiers.controller.js +48 -0
- package/dist/modules/project/project-identifiers/project-identifiers.controller.js.map +1 -0
- package/dist/modules/project/project-identifiers/project-identifiers.module.d.ts +2 -0
- package/dist/modules/project/project-identifiers/project-identifiers.module.js +29 -0
- package/dist/modules/project/project-identifiers/project-identifiers.module.js.map +1 -0
- package/dist/modules/project/project-identifiers/project-identifiers.service.d.ts +14 -0
- package/dist/modules/project/project-identifiers/project-identifiers.service.js +60 -0
- package/dist/modules/project/project-identifiers/project-identifiers.service.js.map +1 -0
- package/dist/modules/project/project.controller.d.ts +94 -0
- package/dist/modules/project/project.controller.js +338 -0
- package/dist/modules/project/project.controller.js.map +1 -0
- package/dist/modules/project/project.module.d.ts +2 -0
- package/dist/modules/project/project.module.js +87 -0
- package/dist/modules/project/project.module.js.map +1 -0
- package/dist/modules/project/project.service.d.ts +132 -0
- package/dist/modules/project/project.service.js +491 -0
- package/dist/modules/project/project.service.js.map +1 -0
- package/dist/modules/project-module/dto/create-module.dto.d.ts +12 -0
- package/dist/modules/project-module/dto/create-module.dto.js +76 -0
- package/dist/modules/project-module/dto/create-module.dto.js.map +1 -0
- package/dist/modules/project-module/dto/index.d.ts +2 -0
- package/dist/modules/project-module/dto/index.js +19 -0
- package/dist/modules/project-module/dto/index.js.map +1 -0
- package/dist/modules/project-module/dto/update-module.dto.d.ts +6 -0
- package/dist/modules/project-module/dto/update-module.dto.js +9 -0
- package/dist/modules/project-module/dto/update-module.dto.js.map +1 -0
- package/dist/modules/project-module/project-module.controller.d.ts +52 -0
- package/dist/modules/project-module/project-module.controller.js +167 -0
- package/dist/modules/project-module/project-module.controller.js.map +1 -0
- package/dist/modules/project-module/project-module.module.d.ts +2 -0
- package/dist/modules/project-module/project-module.module.js +26 -0
- package/dist/modules/project-module/project-module.module.js.map +1 -0
- package/dist/modules/project-module/project-module.service.d.ts +66 -0
- package/dist/modules/project-module/project-module.service.js +275 -0
- package/dist/modules/project-module/project-module.service.js.map +1 -0
- package/dist/modules/reactions/reactions.module.d.ts +2 -0
- package/dist/modules/reactions/reactions.module.js +21 -0
- package/dist/modules/reactions/reactions.module.js.map +1 -0
- package/dist/modules/reactions/reactions.service.d.ts +48 -0
- package/dist/modules/reactions/reactions.service.js +121 -0
- package/dist/modules/reactions/reactions.service.js.map +1 -0
- package/dist/modules/recent-visits/recent-visits.controller.d.ts +12 -0
- package/dist/modules/recent-visits/recent-visits.controller.js +50 -0
- package/dist/modules/recent-visits/recent-visits.controller.js.map +1 -0
- package/dist/modules/recent-visits/recent-visits.module.d.ts +2 -0
- package/dist/modules/recent-visits/recent-visits.module.js +23 -0
- package/dist/modules/recent-visits/recent-visits.module.js.map +1 -0
- package/dist/modules/recent-visits/recent-visits.service.d.ts +12 -0
- package/dist/modules/recent-visits/recent-visits.service.js +53 -0
- package/dist/modules/recent-visits/recent-visits.service.js.map +1 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.controller.d.ts +47 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.controller.js +38 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.controller.js.map +1 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.module.d.ts +2 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.module.js +23 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.module.js.map +1 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.service.d.ts +49 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.service.js +27 -0
- package/dist/modules/sidebar-preferences/sidebar-preferences.service.js.map +1 -0
- package/dist/modules/states/dto/create-state.dto.d.ts +7 -0
- package/dist/modules/states/dto/create-state.dto.js +42 -0
- package/dist/modules/states/dto/create-state.dto.js.map +1 -0
- package/dist/modules/states/dto/index.d.ts +1 -0
- package/dist/modules/states/dto/index.js +18 -0
- package/dist/modules/states/dto/index.js.map +1 -0
- package/dist/modules/states/states.controller.d.ts +27 -0
- package/dist/modules/states/states.controller.js +85 -0
- package/dist/modules/states/states.controller.js.map +1 -0
- package/dist/modules/states/states.module.d.ts +2 -0
- package/dist/modules/states/states.module.js +23 -0
- package/dist/modules/states/states.module.js.map +1 -0
- package/dist/modules/states/states.service.d.ts +33 -0
- package/dist/modules/states/states.service.js +99 -0
- package/dist/modules/states/states.service.js.map +1 -0
- package/dist/modules/subscription/subscription.module.d.ts +2 -0
- package/dist/modules/subscription/subscription.module.js +21 -0
- package/dist/modules/subscription/subscription.module.js.map +1 -0
- package/dist/modules/subscription/subscription.service.d.ts +32 -0
- package/dist/modules/subscription/subscription.service.js +98 -0
- package/dist/modules/subscription/subscription.service.js.map +1 -0
- package/dist/modules/timezones/timezones.controller.d.ts +10 -0
- package/dist/modules/timezones/timezones.controller.js +34 -0
- package/dist/modules/timezones/timezones.controller.js.map +1 -0
- package/dist/modules/timezones/timezones.module.d.ts +2 -0
- package/dist/modules/timezones/timezones.module.js +26 -0
- package/dist/modules/timezones/timezones.module.js.map +1 -0
- package/dist/modules/user/dto/check-exist-user.dto.d.ts +10 -0
- package/dist/modules/user/dto/check-exist-user.dto.js +13 -0
- package/dist/modules/user/dto/check-exist-user.dto.js.map +1 -0
- package/dist/modules/user/dto/include-teams.dto.d.ts +3 -0
- package/dist/modules/user/dto/include-teams.dto.js +24 -0
- package/dist/modules/user/dto/include-teams.dto.js.map +1 -0
- package/dist/modules/user/dto/index.d.ts +6 -0
- package/dist/modules/user/dto/index.js +23 -0
- package/dist/modules/user/dto/index.js.map +1 -0
- package/dist/modules/user/dto/user-code.dto.d.ts +7 -0
- package/dist/modules/user/dto/user-code.dto.js +28 -0
- package/dist/modules/user/dto/user-code.dto.js.map +1 -0
- package/dist/modules/user/dto/user-email.dto.d.ts +7 -0
- package/dist/modules/user/dto/user-email.dto.js +27 -0
- package/dist/modules/user/dto/user-email.dto.js.map +1 -0
- package/dist/modules/user/dto/user-password.dto.d.ts +7 -0
- package/dist/modules/user/dto/user-password.dto.js +27 -0
- package/dist/modules/user/dto/user-password.dto.js.map +1 -0
- package/dist/modules/user/dto/user-token.dto.d.ts +7 -0
- package/dist/modules/user/dto/user-token.dto.js +27 -0
- package/dist/modules/user/dto/user-token.dto.js.map +1 -0
- package/dist/modules/user/user.controller.d.ts +79 -0
- package/dist/modules/user/user.controller.js +109 -0
- package/dist/modules/user/user.controller.js.map +1 -0
- package/dist/modules/user/user.module.d.ts +2 -0
- package/dist/modules/user/user.module.js +29 -0
- package/dist/modules/user/user.module.js.map +1 -0
- package/dist/modules/user/user.service.d.ts +118 -0
- package/dist/modules/user/user.service.js +182 -0
- package/dist/modules/user/user.service.js.map +1 -0
- package/dist/modules/user-favorites/dto/create-favorite.dto.d.ts +9 -0
- package/dist/modules/user-favorites/dto/create-favorite.dto.js +55 -0
- package/dist/modules/user-favorites/dto/create-favorite.dto.js.map +1 -0
- package/dist/modules/user-favorites/dto/index.d.ts +1 -0
- package/dist/modules/user-favorites/dto/index.js +18 -0
- package/dist/modules/user-favorites/dto/index.js.map +1 -0
- package/dist/modules/user-favorites/user-favorites.controller.d.ts +27 -0
- package/dist/modules/user-favorites/user-favorites.controller.js +82 -0
- package/dist/modules/user-favorites/user-favorites.controller.js.map +1 -0
- package/dist/modules/user-favorites/user-favorites.module.d.ts +2 -0
- package/dist/modules/user-favorites/user-favorites.module.js +38 -0
- package/dist/modules/user-favorites/user-favorites.module.js.map +1 -0
- package/dist/modules/user-favorites/user-favorites.service.d.ts +36 -0
- package/dist/modules/user-favorites/user-favorites.service.js +174 -0
- package/dist/modules/user-favorites/user-favorites.service.js.map +1 -0
- package/dist/modules/views/dto/create-issue-view.dto.d.ts +9 -0
- package/dist/modules/views/dto/create-issue-view.dto.js +54 -0
- package/dist/modules/views/dto/create-issue-view.dto.js.map +1 -0
- package/dist/modules/views/dto/index.d.ts +2 -0
- package/dist/modules/views/dto/index.js +19 -0
- package/dist/modules/views/dto/index.js.map +1 -0
- package/dist/modules/views/dto/update-issue-view.dto.d.ts +6 -0
- package/dist/modules/views/dto/update-issue-view.dto.js +9 -0
- package/dist/modules/views/dto/update-issue-view.dto.js.map +1 -0
- package/dist/modules/views/view.controller.d.ts +45 -0
- package/dist/modules/views/view.controller.js +128 -0
- package/dist/modules/views/view.controller.js.map +1 -0
- package/dist/modules/views/view.module.d.ts +2 -0
- package/dist/modules/views/view.module.js +23 -0
- package/dist/modules/views/view.module.js.map +1 -0
- package/dist/modules/views/view.service.d.ts +55 -0
- package/dist/modules/views/view.service.js +158 -0
- package/dist/modules/views/view.service.js.map +1 -0
- package/dist/modules/views/workspace-view.controller.d.ts +42 -0
- package/dist/modules/views/workspace-view.controller.js +120 -0
- package/dist/modules/views/workspace-view.controller.js.map +1 -0
- package/dist/modules/views/workspace-view.module.d.ts +2 -0
- package/dist/modules/views/workspace-view.module.js +28 -0
- package/dist/modules/views/workspace-view.module.js.map +1 -0
- package/dist/modules/work-items/work-items.controller.d.ts +6 -0
- package/dist/modules/work-items/work-items.controller.js +42 -0
- package/dist/modules/work-items/work-items.controller.js.map +1 -0
- package/dist/modules/work-items/work-items.module.d.ts +2 -0
- package/dist/modules/work-items/work-items.module.js +23 -0
- package/dist/modules/work-items/work-items.module.js.map +1 -0
- package/dist/modules/work-items/work-items.service.d.ts +11 -0
- package/dist/modules/work-items/work-items.service.js +45 -0
- package/dist/modules/work-items/work-items.service.js.map +1 -0
- package/dist/modules/workspace/dto/create-workspace.dto.d.ts +13 -0
- package/dist/modules/workspace/dto/create-workspace.dto.js +48 -0
- package/dist/modules/workspace/dto/create-workspace.dto.js.map +1 -0
- package/dist/modules/workspace/dto/index.d.ts +0 -0
- package/dist/modules/workspace/dto/index.js +2 -0
- package/dist/modules/workspace/dto/index.js.map +1 -0
- package/dist/modules/workspace/workspace-context.service.d.ts +13 -0
- package/dist/modules/workspace/workspace-context.service.js +35 -0
- package/dist/modules/workspace/workspace-context.service.js.map +1 -0
- package/dist/modules/workspace/workspace.controller.d.ts +292 -0
- package/dist/modules/workspace/workspace.controller.js +758 -0
- package/dist/modules/workspace/workspace.controller.js.map +1 -0
- package/dist/modules/workspace/workspace.middleware.d.ts +5 -0
- package/dist/modules/workspace/workspace.middleware.js +32 -0
- package/dist/modules/workspace/workspace.middleware.js.map +1 -0
- package/dist/modules/workspace/workspace.module.d.ts +2 -0
- package/dist/modules/workspace/workspace.module.js +49 -0
- package/dist/modules/workspace/workspace.module.js.map +1 -0
- package/dist/modules/workspace/workspace.service.d.ts +475 -0
- package/dist/modules/workspace/workspace.service.js +1266 -0
- package/dist/modules/workspace/workspace.service.js.map +1 -0
- package/dist/modules/workspace/workspaces.controller.d.ts +13 -0
- package/dist/modules/workspace/workspaces.controller.js +57 -0
- package/dist/modules/workspace/workspaces.controller.js.map +1 -0
- package/dist/modules/workspace/workspaces.module.d.ts +2 -0
- package/dist/modules/workspace/workspaces.module.js +29 -0
- package/dist/modules/workspace/workspaces.module.js.map +1 -0
- package/dist/modules/workspace/workspaces.service.d.ts +15 -0
- package/dist/modules/workspace/workspaces.service.js +52 -0
- package/dist/modules/workspace/workspaces.service.js.map +1 -0
- package/dist/modules/workspace-slug/workspace-slug.controller.d.ts +6 -0
- package/dist/modules/workspace-slug/workspace-slug.controller.js +37 -0
- package/dist/modules/workspace-slug/workspace-slug.controller.js.map +1 -0
- package/dist/modules/workspace-slug/workspace-slug.module.d.ts +2 -0
- package/dist/modules/workspace-slug/workspace-slug.module.js +26 -0
- package/dist/modules/workspace-slug/workspace-slug.module.js.map +1 -0
- package/dist/mount.d.ts +51 -0
- package/dist/mount.js +194 -0
- package/dist/mount.js.map +1 -0
- package/dist/plane-config.registry.d.ts +31 -0
- package/dist/plane-config.registry.js +91 -0
- package/dist/plane-config.registry.js.map +1 -0
- package/dist/plane-plugin-options.interface.d.ts +70 -0
- package/dist/plane-plugin-options.interface.js +5 -0
- package/dist/plane-plugin-options.interface.js.map +1 -0
- package/dist/plane-proxy.module.d.ts +16 -0
- package/dist/plane-proxy.module.js +176 -0
- package/dist/plane-proxy.module.js.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.parseFilterDate = parseFilterDate;
|
|
7
|
+
const moment_1 = __importDefault(require("moment"));
|
|
8
|
+
// Function to handle relative dates like "1_weeks;after;fromnow" or "2_months;before;fromnow"
|
|
9
|
+
function parseRelativeDate(dateString) {
|
|
10
|
+
const parts = dateString.split(';');
|
|
11
|
+
if (parts.length < 3 || parts.length > 4) {
|
|
12
|
+
throw new Error(`Invalid format for relative date: ${dateString}`);
|
|
13
|
+
}
|
|
14
|
+
const [valueWithUnit, operator, reference] = parts;
|
|
15
|
+
if (reference !== 'fromnow') {
|
|
16
|
+
throw new Error(`Unsupported date reference: ${reference}`);
|
|
17
|
+
}
|
|
18
|
+
const [value, unit] = valueWithUnit.split('_');
|
|
19
|
+
const amount = parseInt(value);
|
|
20
|
+
const validUnits = [
|
|
21
|
+
'days',
|
|
22
|
+
'weeks',
|
|
23
|
+
'months',
|
|
24
|
+
'years'
|
|
25
|
+
];
|
|
26
|
+
if (!validUnits.includes(unit)) {
|
|
27
|
+
throw new Error(`Unsupported time unit: ${unit}`);
|
|
28
|
+
}
|
|
29
|
+
let date = (0, moment_1.default)();
|
|
30
|
+
if (operator === 'after') {
|
|
31
|
+
date = date.add(amount, unit); // Add time
|
|
32
|
+
}
|
|
33
|
+
else if (operator === 'before') {
|
|
34
|
+
date = date.subtract(amount, unit); // Subtract time
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
throw new Error(`Unsupported operator: ${operator}`);
|
|
38
|
+
}
|
|
39
|
+
return date.format('YYYY-MM-DD'); // Return formatted date
|
|
40
|
+
}
|
|
41
|
+
// Function to handle specific date formats like "2024-10-09;after"
|
|
42
|
+
function parseSpecificDate(dateString) {
|
|
43
|
+
const parts = dateString.split(';');
|
|
44
|
+
if (parts.length !== 2) {
|
|
45
|
+
throw new Error(`Invalid format for specific date: ${dateString}`);
|
|
46
|
+
}
|
|
47
|
+
const [datePart, operator] = parts;
|
|
48
|
+
const date = (0, moment_1.default)(datePart, 'YYYY-MM-DD'); // Parse date in YYYY-MM-DD format
|
|
49
|
+
if (!date.isValid()) {
|
|
50
|
+
throw new Error(`Invalid date: ${datePart}`);
|
|
51
|
+
}
|
|
52
|
+
if (operator === 'after') {
|
|
53
|
+
return date.add(1, 'days').format('YYYY-MM-DD'); // Return day after
|
|
54
|
+
}
|
|
55
|
+
else if (operator === 'before') {
|
|
56
|
+
return date.subtract(1, 'days').format('YYYY-MM-DD'); // Return day before
|
|
57
|
+
}
|
|
58
|
+
throw new Error(`Unsupported date operator: ${operator}`);
|
|
59
|
+
}
|
|
60
|
+
// Function to handle custom ranges like "today", "yesterday", "last_7_days", "last_30_days"
|
|
61
|
+
function parseCustomDateRange(dateString) {
|
|
62
|
+
switch (dateString) {
|
|
63
|
+
case 'today;custom;custom':
|
|
64
|
+
return (0, moment_1.default)().format('YYYY-MM-DD');
|
|
65
|
+
case 'yesterday;custom;custom':
|
|
66
|
+
return (0, moment_1.default)().subtract(1, 'days').format('YYYY-MM-DD');
|
|
67
|
+
case 'last_7_days;custom;custom':
|
|
68
|
+
return (0, moment_1.default)().subtract(7, 'days').format('YYYY-MM-DD');
|
|
69
|
+
case 'last_30_days;custom;custom':
|
|
70
|
+
return (0, moment_1.default)().subtract(30, 'days').format('YYYY-MM-DD');
|
|
71
|
+
default:
|
|
72
|
+
throw new Error(`Unsupported custom date range: ${dateString}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
// Main function to handle all formats
|
|
76
|
+
function parseFilterDate(dateString) {
|
|
77
|
+
if (dateString.includes('fromnow')) {
|
|
78
|
+
return parseRelativeDate(dateString); // Handle relative dates
|
|
79
|
+
}
|
|
80
|
+
if (dateString.includes('custom')) {
|
|
81
|
+
return parseCustomDateRange(dateString); // Handle custom date ranges
|
|
82
|
+
}
|
|
83
|
+
return parseSpecificDate(dateString); // Handle specific dates with before/after
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=date-range.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range.helper.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/date-range.helper.ts"],"names":[],"mappings":";;;;;AAsFA,0CAQC;AA9FD,oDAA4B;AAE5B,8FAA8F;AAC9F,SAAS,iBAAiB,CAAC,UAAkB;IAC5C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEpC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,GA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AAE,MAAM,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC3D;YACC,MAAM,IAAI,KAAK,CAAC,kCAAkC,UAAU,EAAE,CAAC,CAAC;IAClE,CAAC;AACF,CAAC;AAED,sCAAsC;AACtC,SAAgB,eAAe,CAAC,UAAkB;IACjD,IAAI,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,wBAAwB;IAC/D,CAAC;IACD,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,4BAA4B;IACtE,CAAC;IACD,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,0CAA0C;AACjF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./view.serializer"), exports);
|
|
18
|
+
__exportStar(require("./date-range.helper"), exports);
|
|
19
|
+
__exportStar(require("./view-id-from-referer.helper"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,gEAA8C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extract the view ID from the views page referer URL.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} referer - The referer URL from the request headers
|
|
5
|
+
* @returns {(string | null)} - Returns the view ID if found, otherwise null
|
|
6
|
+
*/
|
|
7
|
+
export declare function extractViewIdFromReferer(referer: string): string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Extract the view ID from the workspace views page referer URL.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} referer - The referer URL from the request headers
|
|
12
|
+
* @returns {(string | null)} - Returns the view ID if found, otherwise null
|
|
13
|
+
*/
|
|
14
|
+
export declare function extractWorkspaceViewIdFromReferer(referer: string): string | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractViewIdFromReferer = extractViewIdFromReferer;
|
|
4
|
+
exports.extractWorkspaceViewIdFromReferer = extractWorkspaceViewIdFromReferer;
|
|
5
|
+
/**
|
|
6
|
+
* Extract the view ID from the views page referer URL.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} referer - The referer URL from the request headers
|
|
9
|
+
* @returns {(string | null)} - Returns the view ID if found, otherwise null
|
|
10
|
+
*/
|
|
11
|
+
function extractViewIdFromReferer(referer) {
|
|
12
|
+
const regex = /\/views\/([a-f0-9-]{36})(\/|$)/;
|
|
13
|
+
const match = referer === null || referer === void 0 ? void 0 : referer.match(regex);
|
|
14
|
+
return match && match[1] ? match[1] : null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Extract the view ID from the workspace views page referer URL.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} referer - The referer URL from the request headers
|
|
20
|
+
* @returns {(string | null)} - Returns the view ID if found, otherwise null
|
|
21
|
+
*/
|
|
22
|
+
function extractWorkspaceViewIdFromReferer(referer) {
|
|
23
|
+
const regex = /\/workspace-views\/([a-f0-9-]{36})(\/|$)/;
|
|
24
|
+
const match = referer === null || referer === void 0 ? void 0 : referer.match(regex);
|
|
25
|
+
return match && match[1] ? match[1] : null;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=view-id-from-referer.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-id-from-referer.helper.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/view-id-from-referer.helper.ts"],"names":[],"mappings":";;AAMA,4DAIC;AAQD,8EAMC;AAxBD;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,OAAe;IACvD,MAAM,KAAK,GAAG,gCAAgC,CAAC;IAC/C,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,iCAAiC,CAChD,OAAe;IAEf,MAAM,KAAK,GAAG,0CAA0C,CAAC;IACzD,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ICreateViewInput, ID, IGetTasksByViewFilters, ITaskView, ITaskViewCreateInput, ITaskViewUpdateInput, IUpdateViewInput, IView } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
/**
|
|
3
|
+
* @description Transform filters from incoming Body Request To 'queryParams' To be sent to external API
|
|
4
|
+
* @param {ICreateViewInput['filters']} filters - Accepted filters for quering data
|
|
5
|
+
* @returns {IGetTasksByViewFilters} - A transformed object that matched external API naming
|
|
6
|
+
*/
|
|
7
|
+
export declare function filtersToQueryParams(filters: ICreateViewInput['filters'] | ICreateViewInput['rich_filters']): IGetTasksByViewFilters;
|
|
8
|
+
/**
|
|
9
|
+
* @description Transform queryParams from external API Response to 'filters' for internal use
|
|
10
|
+
* @param {IGetTasksByViewFilters} queryParams - The transformed object from external API
|
|
11
|
+
* @returns {ICreateViewInput['filters']} - An object that matches internal API naming
|
|
12
|
+
*/
|
|
13
|
+
export declare function queryParamsToFilters(queryParams: IGetTasksByViewFilters): ICreateViewInput['filters'];
|
|
14
|
+
/**
|
|
15
|
+
* @description Transform create data from incoming body request to accepted naming of external API
|
|
16
|
+
* @param {ICreateViewInput} view - Incoming Body Request
|
|
17
|
+
* @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
|
|
18
|
+
* @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
|
|
19
|
+
* @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
|
|
20
|
+
* @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
|
|
21
|
+
* @returns {ITaskViewCreateInput} A transformed body request
|
|
22
|
+
*/
|
|
23
|
+
export declare function createViewInputTransformer(view: ICreateViewInput, projectId?: ID, organizationId?: ID, moduleId?: ID, sprintId?: ID): ITaskViewCreateInput;
|
|
24
|
+
/**
|
|
25
|
+
* @description Transform update data from incoming body request to accepted naming of external API
|
|
26
|
+
* @param {IUpdateViewInput} view - Incoming Body Request
|
|
27
|
+
* @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
|
|
28
|
+
* @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
|
|
29
|
+
* @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
|
|
30
|
+
* @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
|
|
31
|
+
* @returns {ITaskViewUpdateInput} A transformed body request
|
|
32
|
+
*/
|
|
33
|
+
export declare function updateViewInputTransformer(view: IUpdateViewInput, projectId?: ID, organizationId?: ID, moduleId?: ID, sprintId?: ID): ITaskViewUpdateInput;
|
|
34
|
+
/**
|
|
35
|
+
* @description Transform Task View From external API to issue view for internal use
|
|
36
|
+
* @param {(ITaskView | ITaskView[])} taskViews - External API Task view(s)
|
|
37
|
+
* @param {ID[]} [favoriteIds] - User favorites list
|
|
38
|
+
* @returns {(IView | IView[])} An array of or a single Issue View
|
|
39
|
+
*/
|
|
40
|
+
export declare function issueViewTransformer(taskViews: ITaskView | ITaskView[], favoriteIds?: ID[]): IView | IView[];
|
|
41
|
+
export declare const viewRelations: string[];
|
|
42
|
+
/**
|
|
43
|
+
* @description Query params for getting views
|
|
44
|
+
* @param {ID} [projectId] - Optional Project ID to get views by Project filter
|
|
45
|
+
* @returns {Record<string, string>} A object with queries filters and relations
|
|
46
|
+
*/
|
|
47
|
+
export declare function getViewsQuery(projectId?: ID, relations?: string[]): Record<string, string>;
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.viewRelations = void 0;
|
|
4
|
+
exports.filtersToQueryParams = filtersToQueryParams;
|
|
5
|
+
exports.queryParamsToFilters = queryParamsToFilters;
|
|
6
|
+
exports.createViewInputTransformer = createViewInputTransformer;
|
|
7
|
+
exports.updateViewInputTransformer = updateViewInputTransformer;
|
|
8
|
+
exports.issueViewTransformer = issueViewTransformer;
|
|
9
|
+
exports.getViewsQuery = getViewsQuery;
|
|
10
|
+
const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
|
|
11
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
12
|
+
/**
|
|
13
|
+
* @description Transform filters from incoming Body Request To 'queryParams' To be sent to external API
|
|
14
|
+
* @param {ICreateViewInput['filters']} filters - Accepted filters for quering data
|
|
15
|
+
* @returns {IGetTasksByViewFilters} - A transformed object that matched external API naming
|
|
16
|
+
*/
|
|
17
|
+
function filtersToQueryParams(filters) {
|
|
18
|
+
const { assignees = [], created_by = [], cycle = [], cycle_id__in = [], labels = [], module = [], module_id__in = [], state_id__in = [], state_group__in = [], assignee_id__in = [], priority__in = [], label_id__in = [], start_date__exact = [], target_date__exact = [], priority = [], project = [], start_date = [], state = [], state_group = [],
|
|
19
|
+
// subscriber = [], To be added in external API
|
|
20
|
+
target_date = [] } = filters;
|
|
21
|
+
return {
|
|
22
|
+
projects: project,
|
|
23
|
+
modules: module || module_id__in,
|
|
24
|
+
tags: labels || label_id__in,
|
|
25
|
+
statusIds: state || state_id__in,
|
|
26
|
+
statuses: (state_group || state_group__in),
|
|
27
|
+
priorities: (priority || priority__in),
|
|
28
|
+
sprints: cycle_id__in || cycle,
|
|
29
|
+
members: assignees || assignee_id__in,
|
|
30
|
+
startDates: (start_date || start_date__exact).map((date) => new Date(date)),
|
|
31
|
+
dueDates: (target_date || target_date__exact).map((date) => new Date(date)),
|
|
32
|
+
creators: created_by
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @description Transform queryParams from external API Response to 'filters' for internal use
|
|
37
|
+
* @param {IGetTasksByViewFilters} queryParams - The transformed object from external API
|
|
38
|
+
* @returns {ICreateViewInput['filters']} - An object that matches internal API naming
|
|
39
|
+
*/
|
|
40
|
+
function queryParamsToFilters(queryParams) {
|
|
41
|
+
const { projects = [], modules = [], tags = [], statusIds = [], statuses = [], priorities = [], sprints = [], members = [], startDates = [], dueDates = [], creators = [] } = queryParams;
|
|
42
|
+
return {
|
|
43
|
+
project: projects,
|
|
44
|
+
module: modules,
|
|
45
|
+
module_id__in: modules,
|
|
46
|
+
labels: tags,
|
|
47
|
+
label_id__in: tags,
|
|
48
|
+
state: statusIds,
|
|
49
|
+
state_id__in: statusIds,
|
|
50
|
+
state_in: statusIds,
|
|
51
|
+
state_group: statuses, // assuming statuses are internally handled as strings
|
|
52
|
+
state_group__in: statuses,
|
|
53
|
+
priority: priorities, // assuming priorities are internally handled as strings
|
|
54
|
+
priority__in: priorities,
|
|
55
|
+
cycle: sprints,
|
|
56
|
+
cycle_id__in: sprints,
|
|
57
|
+
assignees: members,
|
|
58
|
+
assignee_id__in: members,
|
|
59
|
+
start_date: startDates,
|
|
60
|
+
start_date__exact: startDates,
|
|
61
|
+
start_date__range: startDates,
|
|
62
|
+
target_date: dueDates,
|
|
63
|
+
target_date__exact: dueDates,
|
|
64
|
+
created_by: creators
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @description Transform create data from incoming body request to accepted naming of external API
|
|
69
|
+
* @param {ICreateViewInput} view - Incoming Body Request
|
|
70
|
+
* @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
|
|
71
|
+
* @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
|
|
72
|
+
* @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
|
|
73
|
+
* @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
|
|
74
|
+
* @returns {ITaskViewCreateInput} A transformed body request
|
|
75
|
+
*/
|
|
76
|
+
function createViewInputTransformer(view, projectId, organizationId, moduleId, sprintId) {
|
|
77
|
+
const { filters, rich_filters, display_filters, display_properties, name, access, description } = view;
|
|
78
|
+
const visibilityLevel = access === 1
|
|
79
|
+
? plugin_integration_plane_models_1.VisibilityLevelEnum.TEAM_AND_PROJECT
|
|
80
|
+
: plugin_integration_plane_models_1.VisibilityLevelEnum.ORGANIZATION;
|
|
81
|
+
const queryParams = filtersToQueryParams(rich_filters || filters);
|
|
82
|
+
return {
|
|
83
|
+
name,
|
|
84
|
+
description,
|
|
85
|
+
visibilityLevel,
|
|
86
|
+
queryParams,
|
|
87
|
+
filterOptions: rich_filters || filters,
|
|
88
|
+
displayOptions: display_filters,
|
|
89
|
+
properties: display_properties,
|
|
90
|
+
organizationId,
|
|
91
|
+
projectId,
|
|
92
|
+
organizationSprintId: sprintId,
|
|
93
|
+
projectModuleId: moduleId
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @description Transform update data from incoming body request to accepted naming of external API
|
|
98
|
+
* @param {IUpdateViewInput} view - Incoming Body Request
|
|
99
|
+
* @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
|
|
100
|
+
* @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
|
|
101
|
+
* @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
|
|
102
|
+
* @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
|
|
103
|
+
* @returns {ITaskViewUpdateInput} A transformed body request
|
|
104
|
+
*/
|
|
105
|
+
function updateViewInputTransformer(view, projectId, organizationId, moduleId, sprintId) {
|
|
106
|
+
// Default values if some properties are missing
|
|
107
|
+
const defaultView = {
|
|
108
|
+
filters: {},
|
|
109
|
+
rich_filters: {},
|
|
110
|
+
display_filters: {},
|
|
111
|
+
display_properties: {},
|
|
112
|
+
name: view.name
|
|
113
|
+
};
|
|
114
|
+
// Merge partial `view` with default values
|
|
115
|
+
const completeView = Object.assign(Object.assign({}, defaultView), view);
|
|
116
|
+
// Reuse of create transform function
|
|
117
|
+
return createViewInputTransformer(completeView, projectId, moduleId, sprintId, organizationId);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @description Transform Task View From external API to issue view for internal use
|
|
121
|
+
* @param {(ITaskView | ITaskView[])} taskViews - External API Task view(s)
|
|
122
|
+
* @param {ID[]} [favoriteIds] - User favorites list
|
|
123
|
+
* @returns {(IView | IView[])} An array of or a single Issue View
|
|
124
|
+
*/
|
|
125
|
+
function issueViewTransformer(taskViews, favoriteIds) {
|
|
126
|
+
const transformIssueView = (taskView) => {
|
|
127
|
+
const isFavorite = favoriteIds === null || favoriteIds === void 0 ? void 0 : favoriteIds.includes(taskView.id);
|
|
128
|
+
return {
|
|
129
|
+
id: taskView.id,
|
|
130
|
+
created_at: taskView.createdAt,
|
|
131
|
+
updated_at: taskView.updatedAt,
|
|
132
|
+
deleted_at: taskView.deletedAt,
|
|
133
|
+
is_favorite: isFavorite,
|
|
134
|
+
name: taskView.name,
|
|
135
|
+
description: taskView.description,
|
|
136
|
+
query: queryParamsToFilters(taskView.queryParams),
|
|
137
|
+
filters: taskView.filterOptions,
|
|
138
|
+
rich_filters: taskView.filterOptions,
|
|
139
|
+
display_filters: taskView.displayOptions,
|
|
140
|
+
display_properties: taskView.properties,
|
|
141
|
+
access: taskView.visibilityLevel, // TODO : Use some transforms here
|
|
142
|
+
sort_order: 9, // TODO : Search for usescase and use right value
|
|
143
|
+
logo_props: {},
|
|
144
|
+
is_locked: taskView.isLocked,
|
|
145
|
+
created_by: '', // TODO : Make sure we have this working
|
|
146
|
+
updated_by: '', // TODO : Make sure we have this working
|
|
147
|
+
workspace: taskView.organizationId,
|
|
148
|
+
project: taskView.projectId,
|
|
149
|
+
owned_by: '' // TODO : Make sure we have this working
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
if (Array.isArray(taskViews)) {
|
|
153
|
+
return taskViews.map(transformIssueView);
|
|
154
|
+
}
|
|
155
|
+
return transformIssueView(taskViews);
|
|
156
|
+
}
|
|
157
|
+
exports.viewRelations = [
|
|
158
|
+
'project',
|
|
159
|
+
'organizationTeam',
|
|
160
|
+
'projectModule',
|
|
161
|
+
'organizationSprint'
|
|
162
|
+
];
|
|
163
|
+
/**
|
|
164
|
+
* @description Query params for getting views
|
|
165
|
+
* @param {ID} [projectId] - Optional Project ID to get views by Project filter
|
|
166
|
+
* @returns {Record<string, string>} A object with queries filters and relations
|
|
167
|
+
*/
|
|
168
|
+
function getViewsQuery(projectId, relations) {
|
|
169
|
+
// Tenant and Organization based Query
|
|
170
|
+
const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
|
|
171
|
+
if (projectId) {
|
|
172
|
+
query['where[projectId]'] = projectId;
|
|
173
|
+
}
|
|
174
|
+
// Add relations
|
|
175
|
+
if (relations) {
|
|
176
|
+
relations.forEach((relation, i) => {
|
|
177
|
+
query[`relations[${i}]`] = relation;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
exports.viewRelations.forEach((relation, i) => {
|
|
182
|
+
query[`relations[${i}]`] = relation;
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
return query;
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=view.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/view.serializer.ts"],"names":[],"mappings":";;;AAsBA,oDA4CC;AAOD,oDAyCC;AAWD,gEAqCC;AAWD,gEA2BC;AAQD,oDAwCC;AAcD,sCAyBC;AA/RD,iGAcqD;AACrD,0EAAqE;AAErE;;;;GAIG;AACH,SAAgB,oBAAoB,CACnC,OAAuE;IAEvE,MAAM,EACL,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,EAAE,EACf,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,EAAE,EACjB,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,EAAE,EACX,aAAa,GAAG,EAAE,EAClB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,EAAE,EACpB,eAAe,GAAG,EAAE,EACpB,YAAY,GAAG,EAAE,EACjB,YAAY,GAAG,EAAE,EACjB,iBAAiB,GAAG,EAAE,EACtB,kBAAkB,GAAG,EAAE,EACvB,QAAQ,GAAG,EAAE,EACb,OAAO,GAAG,EAAE,EACZ,UAAU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function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./organization.serializer"), exports);
|
|
18
|
+
__exportStar(require("./widgets-filter.helper"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/workspace-organization/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { IRole, ITask, IWorkspaceUserInfo, RolesEnum, IUserPriorityDistribution, ID, IOrganizationProject, IUserProjectsDataResponse, IEmployee, IOrganization, ICreateWorkSpace, IOrganizationCreateInput, IWorkspaceInfo } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
export declare const getOrganizationQuery: Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a role into a numeric role value based on predefined role hierarchy.
|
|
5
|
+
*
|
|
6
|
+
* @param {IRole} role - The role object containing the role name.
|
|
7
|
+
* @returns {number} The corresponding role value. Returns 0 if the role is not recognized.
|
|
8
|
+
*/
|
|
9
|
+
export declare function roleTransformer(role: IRole): number;
|
|
10
|
+
/**
|
|
11
|
+
* Maps a numeric role priority to its corresponding role name.
|
|
12
|
+
*
|
|
13
|
+
* @param {number} roleNumber - The numeric representation of a role's priority.
|
|
14
|
+
* @returns {RolesEnum} The corresponding role name from the RolesEnum.
|
|
15
|
+
* Defaults to RolesEnum.VIEWER if not matched.
|
|
16
|
+
*/
|
|
17
|
+
export declare function roleNameMap(roleNumber: number): RolesEnum;
|
|
18
|
+
/**
|
|
19
|
+
* Transforms an IOrganization object into a simplified workspace object.
|
|
20
|
+
*
|
|
21
|
+
* This is typically used to expose minimal workspace details in APIs or UI components.
|
|
22
|
+
*
|
|
23
|
+
* @param organization - The organization to transform.
|
|
24
|
+
* @returns An object representing the workspace with id, name, and slug.
|
|
25
|
+
*/
|
|
26
|
+
export declare function workspaceTransformer(organization: IOrganization): IWorkspaceInfo;
|
|
27
|
+
/**
|
|
28
|
+
* Transforms an organization with its employees into a list of workspace user info objects.
|
|
29
|
+
*
|
|
30
|
+
* This includes view preferences, roles, and status of each member in the workspace.
|
|
31
|
+
* It reads task view settings from each employee and formats them for frontend consumption.
|
|
32
|
+
*
|
|
33
|
+
* @param organization - The organization entity containing employee data.
|
|
34
|
+
* @returns An array of workspace user info objects.
|
|
35
|
+
*/
|
|
36
|
+
export declare function organizationMembersTransformer(organization: IOrganization): IWorkspaceUserInfo[];
|
|
37
|
+
/**
|
|
38
|
+
* Helper function to build query for the /employee/members endpoint.
|
|
39
|
+
* Returns query params with organizationId and tenantId.
|
|
40
|
+
*/
|
|
41
|
+
export declare function getEmployeeMembersQuery(organizationId: string, tenantId: string): Record<string, string>;
|
|
42
|
+
/**
|
|
43
|
+
* Transforms an array of employees (from GET /employee/members) into workspace user info objects.
|
|
44
|
+
*
|
|
45
|
+
* This is the alternative to organizationMembersTransformer that works with the
|
|
46
|
+
* /employee/members endpoint, which doesn't require ORG_EMPLOYEES_VIEW or ORG_USERS_VIEW
|
|
47
|
+
* permissions (only ORG_MEMBERS_VIEW, available to EMPLOYEE role).
|
|
48
|
+
*
|
|
49
|
+
* Trade-offs vs organizationMembersTransformer:
|
|
50
|
+
* - user.role is not available → defaults to MEMBER (15)
|
|
51
|
+
* - employee.settings are not available → returns empty view_props/default_props
|
|
52
|
+
*
|
|
53
|
+
* @param employees - Array of employees from the /employee/members response.
|
|
54
|
+
* @param organizationId - The organization ID for workspace info.
|
|
55
|
+
* @param organizationName - Optional organization name for workspace info.
|
|
56
|
+
* @returns An array of workspace user info objects.
|
|
57
|
+
*/
|
|
58
|
+
export declare function employeeMembersTransformer(employees: IEmployee[], organizationId: string, organizationName?: string): IWorkspaceUserInfo[];
|
|
59
|
+
/**
|
|
60
|
+
* Categorizes a list of tasks by priority and calculates the count of tasks
|
|
61
|
+
* for each priority level.
|
|
62
|
+
*
|
|
63
|
+
* @param {ITask[]} tasks - An array of tasks to be categorized by priority.
|
|
64
|
+
* @returns {IUserPriorityDistribution[]} An array of priority distributions,
|
|
65
|
+
* where each object contains the priority, the count of tasks with that priority,
|
|
66
|
+
* and the priority's order.
|
|
67
|
+
|
|
68
|
+
*/
|
|
69
|
+
export declare function userIssuesByPriority(tasks: ITask[]): IUserPriorityDistribution[];
|
|
70
|
+
/**
|
|
71
|
+
* Transforms organization project data into a user-specific structure.
|
|
72
|
+
* This function maps project details, tasks, and user profile information into a format
|
|
73
|
+
* tailored for displaying user-related project data and statistics.
|
|
74
|
+
*
|
|
75
|
+
* @param {IOrganizationProject[]} projects - An array of organization projects to transform.
|
|
76
|
+
* @param {ID} employeeId - The ID of the employee whose data is being processed.
|
|
77
|
+
* @param {ID} userId - The ID of the user whose task information is needed.
|
|
78
|
+
*
|
|
79
|
+
* @returns {IUserProjectsDataResponse} The transformed user projects data, including project statistics and user profile information.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export declare function userWorkProjectsTransformer(projects: IOrganizationProject[], employeeId: ID, userId: ID): IUserProjectsDataResponse;
|
|
83
|
+
/**
|
|
84
|
+
* Transforms a workspace creation input into an organization creation input.
|
|
85
|
+
*
|
|
86
|
+
* This function extracts member IDs from the provided input and ensures
|
|
87
|
+
* at least one employee ID is included (defaulting to the current employee if none are given).
|
|
88
|
+
*
|
|
89
|
+
* @param {ICreateWorkSpace} input - The input object representing a workspace creation request.
|
|
90
|
+
* @returns {IOrganizationCreateInput} - The transformed input suitable for organization creation.
|
|
91
|
+
*/
|
|
92
|
+
export declare function createOrganizationInputTransformer(input: ICreateWorkSpace): IOrganizationCreateInput;
|