@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,480 @@
|
|
|
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.cycleIssueRelations = exports.cycleRelations = void 0;
|
|
7
|
+
exports.cycleStatusToSprintStatus = cycleStatusToSprintStatus;
|
|
8
|
+
exports.sprintStatusToCycleStatus = sprintStatusToCycleStatus;
|
|
9
|
+
exports.createCycleInputTransformer = createCycleInputTransformer;
|
|
10
|
+
exports.updateCycleInputTransformer = updateCycleInputTransformer;
|
|
11
|
+
exports.cycleTransformer = cycleTransformer;
|
|
12
|
+
exports.getSprintsQuery = getSprintsQuery;
|
|
13
|
+
exports.cycleIssueTransformer = cycleIssueTransformer;
|
|
14
|
+
exports.retrieveCycleTotalTasks = retrieveCycleTotalTasks;
|
|
15
|
+
exports.cycleAnalyticsData = cycleAnalyticsData;
|
|
16
|
+
const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
|
|
17
|
+
const moment_1 = __importDefault(require("moment"));
|
|
18
|
+
const credentials_1 = require("../../credentials");
|
|
19
|
+
const modules_1 = require("../modules");
|
|
20
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
21
|
+
/**
|
|
22
|
+
* Converts a cycle status to the corresponding sprint status.
|
|
23
|
+
*
|
|
24
|
+
* @param {CycleStatusEnum} cycleStatus - The cycle status to convert.
|
|
25
|
+
* @returns {OrganizationSprintStatusEnum} The corresponding sprint status.
|
|
26
|
+
* @throws Will throw an error if the cycle status is not recognized.
|
|
27
|
+
*/
|
|
28
|
+
function cycleStatusToSprintStatus(cycleStatus) {
|
|
29
|
+
const cycleStatusMap = {
|
|
30
|
+
[plugin_integration_plane_models_1.CycleStatusEnum.COMPLETED]: plugin_integration_plane_models_1.OrganizationSprintStatusEnum.COMPLETED,
|
|
31
|
+
[plugin_integration_plane_models_1.CycleStatusEnum.CURRENT]: plugin_integration_plane_models_1.OrganizationSprintStatusEnum.ACTIVE,
|
|
32
|
+
[plugin_integration_plane_models_1.CycleStatusEnum.DRAFT]: plugin_integration_plane_models_1.OrganizationSprintStatusEnum.DRAFT,
|
|
33
|
+
[plugin_integration_plane_models_1.CycleStatusEnum.UPCOMING]: plugin_integration_plane_models_1.OrganizationSprintStatusEnum.UPCOMING
|
|
34
|
+
};
|
|
35
|
+
const sprintStatus = cycleStatusMap[cycleStatus];
|
|
36
|
+
if (!sprintStatus) {
|
|
37
|
+
throw new Error(`Unrecognized cycle status: ${cycleStatus}`);
|
|
38
|
+
}
|
|
39
|
+
return sprintStatus;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Converts a sprint status to the corresponding cycle status.
|
|
43
|
+
*
|
|
44
|
+
* @param {OrganizationSprintStatusEnum} sprintStatus - The sprint status to convert.
|
|
45
|
+
* @returns {CycleStatusEnum} The corresponding cycle status.
|
|
46
|
+
* @throws Will throw an error if the sprint status is not recognized.
|
|
47
|
+
*/
|
|
48
|
+
function sprintStatusToCycleStatus(sprintStatus) {
|
|
49
|
+
const cycleStatusMap = {
|
|
50
|
+
[plugin_integration_plane_models_1.OrganizationSprintStatusEnum.COMPLETED]: plugin_integration_plane_models_1.CycleStatusEnum.COMPLETED,
|
|
51
|
+
[plugin_integration_plane_models_1.OrganizationSprintStatusEnum.ACTIVE]: plugin_integration_plane_models_1.CycleStatusEnum.CURRENT,
|
|
52
|
+
[plugin_integration_plane_models_1.OrganizationSprintStatusEnum.DRAFT]: plugin_integration_plane_models_1.CycleStatusEnum.DRAFT,
|
|
53
|
+
[plugin_integration_plane_models_1.OrganizationSprintStatusEnum.UPCOMING]: plugin_integration_plane_models_1.CycleStatusEnum.UPCOMING
|
|
54
|
+
};
|
|
55
|
+
const cycleStatus = cycleStatusMap[sprintStatus];
|
|
56
|
+
if (!cycleStatus) {
|
|
57
|
+
throw new Error(`Unrecognized sprint status: ${sprintStatus}`);
|
|
58
|
+
}
|
|
59
|
+
return cycleStatus;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Calculates the number of days between two dates, including both start and end dates to return the cycle length.
|
|
63
|
+
*
|
|
64
|
+
* @param {string | Date} startDate - The start date in format YYYY-MM-DD.
|
|
65
|
+
* @param {string | Date} endDate - The end date in format YYYY-MM-DD.
|
|
66
|
+
* @returns {number} The total number of days between the two dates, inclusive.
|
|
67
|
+
*/
|
|
68
|
+
function calculateDaysBetween(startDate, endDate) {
|
|
69
|
+
const start = (0, moment_1.default)(startDate);
|
|
70
|
+
const end = (0, moment_1.default)(endDate);
|
|
71
|
+
// Days difference (non inclusive)
|
|
72
|
+
const diffDays = end.diff(start, 'days');
|
|
73
|
+
// Include start and end dates
|
|
74
|
+
return diffDays + 1;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Determines the cycle status based on the start and end dates.
|
|
78
|
+
*
|
|
79
|
+
* @param {Date} startDate - The start date of the cycle.
|
|
80
|
+
* @param {Date} endDate - The end date of the cycle.
|
|
81
|
+
* @returns {OrganizationSprintStatusEnum} The appropriate cycle status based on the dates.
|
|
82
|
+
*/
|
|
83
|
+
function determineCycleStatus(startDate, endDate) {
|
|
84
|
+
const today = (0, moment_1.default)(); // Current date
|
|
85
|
+
const start = (0, moment_1.default)(startDate);
|
|
86
|
+
const end = (0, moment_1.default)(endDate);
|
|
87
|
+
if (start.isAfter(today)) {
|
|
88
|
+
// If the start date is in the future
|
|
89
|
+
return plugin_integration_plane_models_1.OrganizationSprintStatusEnum.UPCOMING;
|
|
90
|
+
}
|
|
91
|
+
if (start.isSameOrBefore(today) && end.isSameOrAfter(today)) {
|
|
92
|
+
// If the start date is today or in the past and the end date has not passed yet
|
|
93
|
+
return plugin_integration_plane_models_1.OrganizationSprintStatusEnum.ACTIVE;
|
|
94
|
+
}
|
|
95
|
+
if (end.isBefore(today)) {
|
|
96
|
+
// If the end date has already passed
|
|
97
|
+
return plugin_integration_plane_models_1.OrganizationSprintStatusEnum.COMPLETED;
|
|
98
|
+
}
|
|
99
|
+
// Default case (you could also throw an error if no case matches)
|
|
100
|
+
return plugin_integration_plane_models_1.OrganizationSprintStatusEnum.DRAFT;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Transforms a cycle object into an input suitable for creating an organization sprint.
|
|
104
|
+
*
|
|
105
|
+
* @param {ICycle} cycle - The cycle object containing information about the sprint.
|
|
106
|
+
* @returns {IOrganizationSprintCreateInput} - The transformed input for creating the sprint.
|
|
107
|
+
*/
|
|
108
|
+
function createCycleInputTransformer(cycle) {
|
|
109
|
+
const { name, description, project_id, start_date, end_date } = cycle;
|
|
110
|
+
// Calculate the cycle length
|
|
111
|
+
const length = calculateDaysBetween(start_date, end_date);
|
|
112
|
+
// Determine the current status of the cycle
|
|
113
|
+
const status = determineCycleStatus(start_date, end_date);
|
|
114
|
+
return {
|
|
115
|
+
name,
|
|
116
|
+
goal: description,
|
|
117
|
+
startDate: new Date(start_date),
|
|
118
|
+
endDate: new Date(end_date),
|
|
119
|
+
status,
|
|
120
|
+
length,
|
|
121
|
+
projectId: project_id,
|
|
122
|
+
organizationId: (0, credentials_1.getCurrentOrganizationSlug)(),
|
|
123
|
+
managerIds: [(0, credentials_1.currentEmployeeId)()], // TODO : Change this and retrive it from authorization Request Header or Body Request
|
|
124
|
+
memberIds: [(0, credentials_1.currentEmployeeId)()] // TODO : Change this and get it from Request
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Transforms a cycle object into an input suitable for updating an organization sprint.
|
|
129
|
+
*
|
|
130
|
+
* @param {ICycle} cycle - The cycle object containing information about the sprint.
|
|
131
|
+
* @returns {IOrganizationSprintUpdateInput} - The transformed input for updating the sprint.
|
|
132
|
+
*/
|
|
133
|
+
function updateCycleInputTransformer(cycle) {
|
|
134
|
+
const { name, description, project_id, start_date, end_date, status: cycleStatus } = cycle;
|
|
135
|
+
// Calculate the cycle length
|
|
136
|
+
const length = calculateDaysBetween(start_date, end_date);
|
|
137
|
+
// Determine the status of the cycle
|
|
138
|
+
const status = cycleStatusToSprintStatus(cycleStatus);
|
|
139
|
+
return {
|
|
140
|
+
memberIds: cycle.assignee_ids,
|
|
141
|
+
goal: description,
|
|
142
|
+
startDate: start_date,
|
|
143
|
+
endDate: end_date,
|
|
144
|
+
name,
|
|
145
|
+
length,
|
|
146
|
+
managerIds: [cycle.owned_by_id],
|
|
147
|
+
sprintProgress: cycle.progress_snapshot,
|
|
148
|
+
projectId: project_id,
|
|
149
|
+
status
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @description Transform sprints from external API to accpeted data for internal use
|
|
154
|
+
* @param {(IOrganizationSprint | IOrganizationSprint[])} sprints - External Sprints
|
|
155
|
+
* @param {ID[]} [favoriteIds] - User favorites list
|
|
156
|
+
* @returns {(ICycle | ICycle[])} An array of or single Cycle
|
|
157
|
+
*/
|
|
158
|
+
function cycleTransformer(sprints, favoriteIds) {
|
|
159
|
+
const transformCycle = (sprint) => {
|
|
160
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
161
|
+
const isFavorite = favoriteIds === null || favoriteIds === void 0 ? void 0 : favoriteIds.includes(sprint.id);
|
|
162
|
+
const status = sprintStatusToCycleStatus(sprint.status);
|
|
163
|
+
const { completedIssues } = (0, modules_1.getTaskCounts)(retrieveCycleTotalTasks(sprint));
|
|
164
|
+
return {
|
|
165
|
+
id: sprint.id,
|
|
166
|
+
name: sprint.name,
|
|
167
|
+
description: sprint.goal,
|
|
168
|
+
start_date: sprint.startDate,
|
|
169
|
+
end_date: sprint.endDate,
|
|
170
|
+
status,
|
|
171
|
+
version: 1, // TODO : Add for external API if needed,
|
|
172
|
+
sort_order: 0,
|
|
173
|
+
progress_snapshot: sprint.sprintProgress,
|
|
174
|
+
is_favorite: isFavorite,
|
|
175
|
+
total_issues: ((_b = (_a = sprint.toSprintTaskHistories) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0
|
|
176
|
+
? sprint.toSprintTaskHistories.length
|
|
177
|
+
: (_d = (_c = sprint.tasks) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0,
|
|
178
|
+
completed_issues: completedIssues,
|
|
179
|
+
sub_issues: 0, // TODO : Search how it's mapped
|
|
180
|
+
owned_by_id: (_f = (_e = sprint.members) === null || _e === void 0 ? void 0 : _e.find((member) => member.roleId)) === null || _f === void 0 ? void 0 : _f.employeeId,
|
|
181
|
+
created_by: (_g = (0, credentials_1.currentEmployeeId)()) !== null && _g !== void 0 ? _g : undefined, // TODO: Make this consistent and add to external API
|
|
182
|
+
project_id: sprint.projectId,
|
|
183
|
+
workspace_id: sprint.organizationId,
|
|
184
|
+
view_props: {},
|
|
185
|
+
logo_props: {},
|
|
186
|
+
assignee_ids: (_h = sprint.members) === null || _h === void 0 ? void 0 : _h.map((member) => member.employeeId),
|
|
187
|
+
external_id: null,
|
|
188
|
+
external_source: null
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
if (Array.isArray(sprints)) {
|
|
192
|
+
return sprints.map(transformCycle);
|
|
193
|
+
}
|
|
194
|
+
return transformCycle(sprints);
|
|
195
|
+
}
|
|
196
|
+
exports.cycleRelations = [
|
|
197
|
+
'project',
|
|
198
|
+
'toSprintTaskHistories',
|
|
199
|
+
'toSprintTaskHistories.task',
|
|
200
|
+
'fromSprintTaskHistories',
|
|
201
|
+
'fromSprintTaskHistories.task',
|
|
202
|
+
'tasks',
|
|
203
|
+
'taskSprints',
|
|
204
|
+
'taskSprints.task',
|
|
205
|
+
'members',
|
|
206
|
+
'members.employee',
|
|
207
|
+
'members.employee.user'
|
|
208
|
+
];
|
|
209
|
+
/**
|
|
210
|
+
* Cycle relations including task members (assignees) for cycle-issues endpoint.
|
|
211
|
+
* Use these relations when fetching cycle issues to ensure assignee_ids are populated.
|
|
212
|
+
*/
|
|
213
|
+
exports.cycleIssueRelations = [
|
|
214
|
+
...exports.cycleRelations,
|
|
215
|
+
'toSprintTaskHistories.task.members',
|
|
216
|
+
'fromSprintTaskHistories.task.members',
|
|
217
|
+
'tasks.members',
|
|
218
|
+
'taskSprints.task.members'
|
|
219
|
+
];
|
|
220
|
+
/**
|
|
221
|
+
* @description Query params for getting sprints
|
|
222
|
+
* @param {ID} [projectId] - Optional Project ID to get sprints by Project filter
|
|
223
|
+
* @returns {Record<string, string>} A object with queries filters and relations
|
|
224
|
+
*/
|
|
225
|
+
function getSprintsQuery(projectId, relations) {
|
|
226
|
+
// Tenant and Organization based Query
|
|
227
|
+
const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
|
|
228
|
+
if (projectId) {
|
|
229
|
+
query['where[projectId]'] = projectId;
|
|
230
|
+
}
|
|
231
|
+
// Add relations
|
|
232
|
+
if (relations) {
|
|
233
|
+
relations.forEach((relation, i) => {
|
|
234
|
+
query[`relations[${i}]`] = relation;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
exports.cycleRelations.forEach((relation, i) => {
|
|
239
|
+
query[`relations[${i}]`] = relation;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
return query;
|
|
243
|
+
}
|
|
244
|
+
function cycleIssueTransformer(issues) {
|
|
245
|
+
return {
|
|
246
|
+
grouped_by: undefined,
|
|
247
|
+
sub_grouped_by: undefined,
|
|
248
|
+
total_count: issues.length,
|
|
249
|
+
next_cursor: '30:1:0',
|
|
250
|
+
prev_cursor: '30:-1:1',
|
|
251
|
+
next_page_results: false,
|
|
252
|
+
prev_page_results: false,
|
|
253
|
+
count: issues.length,
|
|
254
|
+
total_pages: 1,
|
|
255
|
+
total_results: issues.length,
|
|
256
|
+
extra_stats: null,
|
|
257
|
+
results: issues
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Retrieves the total list of unique tasks associated with a given sprint,
|
|
262
|
+
* including tasks from the current sprint, previous sprint histories, and
|
|
263
|
+
* the sprint's directly associated tasks.
|
|
264
|
+
*
|
|
265
|
+
* @param {IOrganizationSprint} sprint - The sprint object containing task histories and tasks.
|
|
266
|
+
* @returns {ITask[]} - An array of unique tasks associated with the sprint.
|
|
267
|
+
*
|
|
268
|
+
* @remarks
|
|
269
|
+
* - The function extracts tasks from the `toSprintTaskHistories` (current sprint tasks),
|
|
270
|
+
* `fromSprintTaskHistories` (previous sprint tasks), and `tasks` (directly associated tasks).
|
|
271
|
+
* - Tasks are deduplicated based on their `id` property to ensure uniqueness.
|
|
272
|
+
* - If a task exists in multiple sources, the task from `currentTasks` is prioritized
|
|
273
|
+
* over `previousTasks`.
|
|
274
|
+
*/
|
|
275
|
+
function retrieveCycleTotalTasks(sprint) {
|
|
276
|
+
var _a, _b, _c, _d;
|
|
277
|
+
// Get the current sprint tasks from the sprint's toSprintTaskHistories
|
|
278
|
+
const currentTasks = ((_a = sprint.toSprintTaskHistories) !== null && _a !== void 0 ? _a : [])
|
|
279
|
+
.filter((history) => history === null || history === void 0 ? void 0 : history.task)
|
|
280
|
+
.map((history) => history.task);
|
|
281
|
+
// Get the previous sprint tasks from the sprint's fromSprintTaskHistories
|
|
282
|
+
const previousTasks = ((_b = sprint.fromSprintTaskHistories) !== null && _b !== void 0 ? _b : [])
|
|
283
|
+
.filter((history) => history === null || history === void 0 ? void 0 : history.task)
|
|
284
|
+
.map((history) => history.task);
|
|
285
|
+
// Get tasks from direct relation and taskSprints join table
|
|
286
|
+
const directTasks = (_c = sprint.tasks) !== null && _c !== void 0 ? _c : [];
|
|
287
|
+
const taskSprintTasks = ((_d = sprint.taskSprints) !== null && _d !== void 0 ? _d : [])
|
|
288
|
+
.filter((ts) => ts === null || ts === void 0 ? void 0 : ts.task)
|
|
289
|
+
.map((ts) => ts.task);
|
|
290
|
+
// Combine all sources and deduplicate by task ID.
|
|
291
|
+
// Priority: currentTasks > previousTasks > directTasks > taskSprintTasks
|
|
292
|
+
const allTaskIds = Array.from(new Set([
|
|
293
|
+
...currentTasks,
|
|
294
|
+
...previousTasks,
|
|
295
|
+
...directTasks,
|
|
296
|
+
...taskSprintTasks
|
|
297
|
+
].map((task) => task.id)));
|
|
298
|
+
return allTaskIds
|
|
299
|
+
.map((taskId) => {
|
|
300
|
+
return (currentTasks.find((task) => task.id === taskId) ||
|
|
301
|
+
previousTasks.find((task) => task.id === taskId) ||
|
|
302
|
+
directTasks.find((task) => task.id === taskId) ||
|
|
303
|
+
taskSprintTasks.find((task) => task.id === taskId));
|
|
304
|
+
})
|
|
305
|
+
.filter(Boolean);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Transforms sprint/cycle data into analytics format, calculating statistics about tasks, assignees, and labels.
|
|
309
|
+
*
|
|
310
|
+
* This function processes a sprint's tasks and their histories to generate comprehensive analytics including:
|
|
311
|
+
* - Task distribution across assignees (including unassigned tasks)
|
|
312
|
+
* - Task distribution across labels (including unlabeled tasks)
|
|
313
|
+
* - Task completion status over time
|
|
314
|
+
*
|
|
315
|
+
* @param {IOrganizationSprint} sprint - The sprint/cycle to analyze, containing:
|
|
316
|
+
* - tasks: Current tasks in the sprint
|
|
317
|
+
* - toSprintTaskHistories: History of tasks added to the sprint
|
|
318
|
+
* - fromSprintTaskHistories: History of tasks removed from the sprint
|
|
319
|
+
* - members: Sprint team members with their roles
|
|
320
|
+
* @returns {ICycleAnalytics} Analytics data containing:
|
|
321
|
+
* - assignees: Array of assignee statistics including total, completed and pending issues per assignee
|
|
322
|
+
* - labels: Array of label statistics including total, completed and pending issues per label
|
|
323
|
+
* - completion_chart: Daily snapshot of remaining incomplete tasks through sprint duration
|
|
324
|
+
*/
|
|
325
|
+
function cycleAnalyticsData(sprint) {
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
const tasks = retrieveCycleTotalTasks(sprint);
|
|
328
|
+
// Initialize stats for unassigned tasks
|
|
329
|
+
const unassignedStats = {
|
|
330
|
+
display_name: null,
|
|
331
|
+
assignee_id: null,
|
|
332
|
+
avatar_url: null,
|
|
333
|
+
total_issues: 0,
|
|
334
|
+
completed_issues: 0,
|
|
335
|
+
pending_issues: 0
|
|
336
|
+
};
|
|
337
|
+
// Initialize stats for unlabeled tasks
|
|
338
|
+
const unlabeledStats = {
|
|
339
|
+
label_name: null,
|
|
340
|
+
color: null,
|
|
341
|
+
label_id: null,
|
|
342
|
+
total_issues: 0,
|
|
343
|
+
completed_issues: 0,
|
|
344
|
+
pending_issues: 0
|
|
345
|
+
};
|
|
346
|
+
// Build assignee map: sprint.members first, then add task assignees not yet in map
|
|
347
|
+
const assigneeMap = new Map();
|
|
348
|
+
((_a = sprint.members) !== null && _a !== void 0 ? _a : []).forEach((member) => {
|
|
349
|
+
var _a, _b, _c, _d;
|
|
350
|
+
assigneeMap.set(member.employeeId, {
|
|
351
|
+
display_name: ((_a = member.employee) === null || _a === void 0 ? void 0 : _a.fullName) || ((_b = member.employee) === null || _b === void 0 ? void 0 : _b.name),
|
|
352
|
+
assignee_id: member.employeeId,
|
|
353
|
+
avatar_url: ((_d = (_c = member.employee) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.imageUrl) || '',
|
|
354
|
+
total_issues: 0,
|
|
355
|
+
completed_issues: 0,
|
|
356
|
+
pending_issues: 0
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
tasks.forEach((task) => {
|
|
360
|
+
var _a;
|
|
361
|
+
(_a = task === null || task === void 0 ? void 0 : task.members) === null || _a === void 0 ? void 0 : _a.forEach((member) => {
|
|
362
|
+
var _a, _b, _c;
|
|
363
|
+
const id = (_b = (_a = member.id) !== null && _a !== void 0 ? _a : member.employeeId) !== null && _b !== void 0 ? _b : (_c = member.employee) === null || _c === void 0 ? void 0 : _c.id;
|
|
364
|
+
if (id && !assigneeMap.has(id)) {
|
|
365
|
+
const user = member.user;
|
|
366
|
+
const displayName = member.fullName ||
|
|
367
|
+
member.displayName ||
|
|
368
|
+
(user === null || user === void 0 ? void 0 : user.fullName) ||
|
|
369
|
+
((user === null || user === void 0 ? void 0 : user.firstName) || (user === null || user === void 0 ? void 0 : user.lastName)
|
|
370
|
+
? [user === null || user === void 0 ? void 0 : user.firstName, user === null || user === void 0 ? void 0 : user.lastName].filter(Boolean).join(' ')
|
|
371
|
+
: null) ||
|
|
372
|
+
'Unknown';
|
|
373
|
+
assigneeMap.set(id, {
|
|
374
|
+
display_name: displayName,
|
|
375
|
+
assignee_id: id,
|
|
376
|
+
avatar_url: (user === null || user === void 0 ? void 0 : user.imageUrl) || '',
|
|
377
|
+
total_issues: 0,
|
|
378
|
+
completed_issues: 0,
|
|
379
|
+
pending_issues: 0
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
// Process labels
|
|
385
|
+
const labelMap = new Map();
|
|
386
|
+
tasks.forEach((issue) => {
|
|
387
|
+
var _a;
|
|
388
|
+
(_a = issue === null || issue === void 0 ? void 0 : issue.tags) === null || _a === void 0 ? void 0 : _a.forEach((label) => {
|
|
389
|
+
if (!labelMap.has(label.id)) {
|
|
390
|
+
labelMap.set(label.id, {
|
|
391
|
+
label_name: label.name,
|
|
392
|
+
color: label.color,
|
|
393
|
+
label_id: label.id,
|
|
394
|
+
total_issues: 0,
|
|
395
|
+
completed_issues: 0,
|
|
396
|
+
pending_issues: 0
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
// Calculate statistics
|
|
402
|
+
tasks.forEach((task) => {
|
|
403
|
+
var _a, _b, _c, _d;
|
|
404
|
+
const isCompleted = (task === null || task === void 0 ? void 0 : task.taskStatus.value) === plugin_integration_plane_models_1.TaskStatusEnum.COMPLETED ||
|
|
405
|
+
(task === null || task === void 0 ? void 0 : task.taskStatus.value) === plugin_integration_plane_models_1.TaskStatusEnum.DONE;
|
|
406
|
+
// Handle unassigned tasks
|
|
407
|
+
if (!((_a = task === null || task === void 0 ? void 0 : task.members) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
408
|
+
unassignedStats.total_issues++;
|
|
409
|
+
isCompleted
|
|
410
|
+
? unassignedStats.completed_issues++
|
|
411
|
+
: unassignedStats.pending_issues++;
|
|
412
|
+
}
|
|
413
|
+
// Handle tasks without tags
|
|
414
|
+
if (!((_b = task === null || task === void 0 ? void 0 : task.tags) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
415
|
+
unlabeledStats.total_issues++;
|
|
416
|
+
isCompleted
|
|
417
|
+
? unlabeledStats.completed_issues++
|
|
418
|
+
: unlabeledStats.pending_issues++;
|
|
419
|
+
}
|
|
420
|
+
// Update assignee stats
|
|
421
|
+
(_c = task === null || task === void 0 ? void 0 : task.members) === null || _c === void 0 ? void 0 : _c.forEach((member) => {
|
|
422
|
+
var _a, _b, _c;
|
|
423
|
+
const employeeId = (_b = (_a = member.id) !== null && _a !== void 0 ? _a : member.employeeId) !== null && _b !== void 0 ? _b : (_c = member.employee) === null || _c === void 0 ? void 0 : _c.id;
|
|
424
|
+
const assignee = assigneeMap.get(employeeId);
|
|
425
|
+
if (assignee) {
|
|
426
|
+
assignee.total_issues++;
|
|
427
|
+
isCompleted
|
|
428
|
+
? assignee.completed_issues++
|
|
429
|
+
: assignee.pending_issues++;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
// Update label stats
|
|
433
|
+
(_d = task === null || task === void 0 ? void 0 : task.tags) === null || _d === void 0 ? void 0 : _d.forEach((label) => {
|
|
434
|
+
const labelStats = labelMap.get(label.id);
|
|
435
|
+
if (labelStats) {
|
|
436
|
+
labelStats.total_issues++;
|
|
437
|
+
isCompleted
|
|
438
|
+
? labelStats.completed_issues++
|
|
439
|
+
: labelStats.pending_issues++;
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
// Generate completion chart
|
|
444
|
+
const completionChart = {};
|
|
445
|
+
const startDate = (_b = sprint.startDate) !== null && _b !== void 0 ? _b : sprint.start_date;
|
|
446
|
+
const endDate = (_c = sprint.endDate) !== null && _c !== void 0 ? _c : sprint.end_date;
|
|
447
|
+
let chartStart = startDate ? (0, moment_1.default)(startDate) : null;
|
|
448
|
+
let chartEnd = endDate ? (0, moment_1.default)(endDate) : null;
|
|
449
|
+
// Fallback: derive date range from tasks when sprint has no dates
|
|
450
|
+
if ((!chartStart || !chartEnd) && tasks.length > 0) {
|
|
451
|
+
const taskDates = tasks.flatMap((t) => [t.createdAt, t.updatedAt, t.resolvedAt, t.startDate, t.dueDate].filter(Boolean));
|
|
452
|
+
if (taskDates.length > 0) {
|
|
453
|
+
const validDates = taskDates.map((d) => (0, moment_1.default)(d)).filter((m) => m.isValid());
|
|
454
|
+
if (validDates.length > 0) {
|
|
455
|
+
chartStart = chartStart !== null && chartStart !== void 0 ? chartStart : moment_1.default.min(validDates);
|
|
456
|
+
chartEnd = chartEnd !== null && chartEnd !== void 0 ? chartEnd : moment_1.default.max(validDates);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
if (chartStart && chartEnd && chartStart.isSameOrBefore(chartEnd)) {
|
|
461
|
+
const current = chartStart.clone();
|
|
462
|
+
while (current.isSameOrBefore(chartEnd)) {
|
|
463
|
+
const dateStr = current.format('YYYY-MM-DD');
|
|
464
|
+
const remainingTasks = tasks.filter((task) => {
|
|
465
|
+
var _a, _b;
|
|
466
|
+
return (((_a = task === null || task === void 0 ? void 0 : task.taskStatus) === null || _a === void 0 ? void 0 : _a.value) !== plugin_integration_plane_models_1.TaskStatusEnum.COMPLETED &&
|
|
467
|
+
((_b = task === null || task === void 0 ? void 0 : task.taskStatus) === null || _b === void 0 ? void 0 : _b.value) !== plugin_integration_plane_models_1.TaskStatusEnum.DONE) ||
|
|
468
|
+
(task.resolvedAt && (0, moment_1.default)(task.resolvedAt).isAfter(current));
|
|
469
|
+
}).length;
|
|
470
|
+
completionChart[dateStr] = remainingTasks;
|
|
471
|
+
current.add(1, 'day');
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
assignees: [...assigneeMap.values(), unassignedStats],
|
|
476
|
+
labels: [...labelMap.values(), unlabeledStats],
|
|
477
|
+
completion_chart: completionChart
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
//# sourceMappingURL=cycle.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cycle.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/cycles/cycle.serializer.ts"],"names":[],"mappings":";;;;;;AA6BA,8DAkBC;AASD,8DAkBC;AAgED,kEAuBC;AAQD,kEA8BC;AAQD,4CA8CC;AAiCD,0CAyBC;AAED,sDAeC;AAiBD,0DAwCC;AAqBD,gDAsKC;AA5jBD,iGAaqD;AACrD,oDAA4B;AAC5B,mDAG2B;AAC3B,wCAA2C;AAC3C,0EAAqE;AAErE;;;;;;GAMG;AACH,SAAgB,yBAAyB,CACxC,WAA4B;IAE5B,MAAM,cAAc,GAEhB;QACH,CAAC,iDAAe,CAAC,SAA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AJ,IAAI,CAAE,UAAU,0CAAE,KAAK,MAAK,gDAAc,CAAC,IAAI,CAAC;oBACjD,CAAC,IAAI,CAAC,UAAU,IAAI,IAAA,gBAAM,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;aAAA,CAC9D,CAAC,MAAM,CAAC;YACT,eAAe,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC;YAC1C,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;IAED,OAAO;QACN,SAAS,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,eAAe,CAAC;QACrD,MAAM,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC;QAC9C,gBAAgB,EAAE,eAAe;KACjC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cycle.serializer';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./cycle.serializer"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/cycles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IDashboard, IDashboardWidget, IHomeDashboard, IWidget } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
/**
|
|
3
|
+
* Transforms an external Dashboard entity into a Plane Home Dashboard format
|
|
4
|
+
*
|
|
5
|
+
* @param dashboard - The source Dashboard object implementing IDashboard interface
|
|
6
|
+
* @returns {IHomeDashboard} - The transformed dashboard object in Plane format
|
|
7
|
+
*/
|
|
8
|
+
export declare function dashboardTransformer(dashboard: IDashboard): IHomeDashboard;
|
|
9
|
+
/**
|
|
10
|
+
* Transforms dashboard widget(s) from internal format to Plane widget format
|
|
11
|
+
*
|
|
12
|
+
* @param {IDashboardWidget | IDashboardWidget[]} widgets - Single widget or array of widgets to transform
|
|
13
|
+
* @returns {IWidget | IWidget[]} - Transformed widget(s) in Plane format
|
|
14
|
+
*/
|
|
15
|
+
export declare function widgetTransformer(widgets: IDashboardWidget | IDashboardWidget[]): IWidget | IWidget[];
|
|
16
|
+
/**
|
|
17
|
+
* Generates a query object for retrieving dashboards with optional type filtering
|
|
18
|
+
*
|
|
19
|
+
* @param {string} [dashboard_type] - Optional dashboard type identifier to filter by
|
|
20
|
+
* @returns {Record<string, string>} Query parameters as key-value pairs
|
|
21
|
+
*/
|
|
22
|
+
export declare function getDashboardQuery(dashboard_type?: string): Record<string, string>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dashboardTransformer = dashboardTransformer;
|
|
4
|
+
exports.widgetTransformer = widgetTransformer;
|
|
5
|
+
exports.getDashboardQuery = getDashboardQuery;
|
|
6
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
7
|
+
/**
|
|
8
|
+
* Transforms an external Dashboard entity into a Plane Home Dashboard format
|
|
9
|
+
*
|
|
10
|
+
* @param dashboard - The source Dashboard object implementing IDashboard interface
|
|
11
|
+
* @returns {IHomeDashboard} - The transformed dashboard object in Plane format
|
|
12
|
+
*/
|
|
13
|
+
function dashboardTransformer(dashboard) {
|
|
14
|
+
const widgets = widgetTransformer(dashboard.widgets);
|
|
15
|
+
return {
|
|
16
|
+
id: dashboard.id,
|
|
17
|
+
created_at: dashboard.createdAt,
|
|
18
|
+
updated_at: dashboard.updatedAt,
|
|
19
|
+
deleted_at: dashboard.deletedAt,
|
|
20
|
+
name: dashboard.name,
|
|
21
|
+
description_html: dashboard.description,
|
|
22
|
+
identifier: dashboard.identifier,
|
|
23
|
+
type_identifier: dashboard.identifier,
|
|
24
|
+
logo_props: {},
|
|
25
|
+
created_by: dashboard.creatorId,
|
|
26
|
+
updated_by: undefined,
|
|
27
|
+
owned_by: undefined,
|
|
28
|
+
widgets: Array.isArray(widgets) ? widgets : [widgets]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Transforms dashboard widget(s) from internal format to Plane widget format
|
|
33
|
+
*
|
|
34
|
+
* @param {IDashboardWidget | IDashboardWidget[]} widgets - Single widget or array of widgets to transform
|
|
35
|
+
* @returns {IWidget | IWidget[]} - Transformed widget(s) in Plane format
|
|
36
|
+
*/
|
|
37
|
+
function widgetTransformer(widgets) {
|
|
38
|
+
const transformWidget = (widget) => {
|
|
39
|
+
return {
|
|
40
|
+
id: widget.id,
|
|
41
|
+
key: widget.name,
|
|
42
|
+
is_visible: widget.isVisible,
|
|
43
|
+
widget_filters: widget.options
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
if (Array.isArray(widgets)) {
|
|
47
|
+
return widgets.map(transformWidget);
|
|
48
|
+
}
|
|
49
|
+
return transformWidget(widgets);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Generates a query object for retrieving dashboards with optional type filtering
|
|
53
|
+
*
|
|
54
|
+
* @param {string} [dashboard_type] - Optional dashboard type identifier to filter by
|
|
55
|
+
* @returns {Record<string, string>} Query parameters as key-value pairs
|
|
56
|
+
*/
|
|
57
|
+
function getDashboardQuery(dashboard_type) {
|
|
58
|
+
// Tenant and Organization based query
|
|
59
|
+
const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
|
|
60
|
+
if (!dashboard_type) {
|
|
61
|
+
query['where[identifier]'] = dashboard_type;
|
|
62
|
+
}
|
|
63
|
+
query['relations[0]'] = 'widgets';
|
|
64
|
+
return query;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=dashboard.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/dashboard/dashboard.serializer.ts"],"names":[],"mappings":";;AAeA,oDAiBC;AASD,8CAiBC;AASD,8CAeC;AA5ED,0EAAqE;AAErE;;;;;GAKG;AAEH,SAAgB,oBAAoB,CAAC,SAAqB;IACzD,MAAM,OAAO,GAAG,iBAAiB,CAAC,SAAS,CAAC,OAAQ,CAAC,CAAC;IACtD,OAAO;QACN,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,UAAU,EAAE,SAAS,CAAC,SAAS;QAC/B,UAAU,EAAE,SAAS,CAAC,SAAS;QAC/B,UAAU,EAAE,SAAS,CAAC,SAAS;QAC/B,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,gBAAgB,EAAE,SAAS,CAAC,WAAW;QACvC,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,eAAe,EAAE,SAAS,CAAC,UAAU;QACrC,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,SAAS,CAAC,SAAS;QAC/B,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;KACrD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AAEH,SAAgB,iBAAiB,CAChC,OAA8C;IAE9C,MAAM,eAAe,GAAG,CAAC,MAAwB,EAAW,EAAE;QAC7D,OAAO;YACN,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,GAAG,EAAE,MAAM,CAAC,IAAI;YAChB,UAAU,EAAE,MAAM,CAAC,SAAS;YAC5B,cAAc,EAAE,MAAM,CAAC,OAAO;SAC9B,CAAC;IACH,CAAC,CAAC;IAEF,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAED;;;;;GAKG;AAEH,SAAgB,iBAAiB,CAChC,cAAuB;IAEvB,sCAAsC;IACtC,MAAM,KAAK,qBACP,IAAA,iDAAsB,GAAE,CAC3B,CAAC;IAEF,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,KAAK,CAAC,mBAAmB,CAAC,GAAG,cAAe,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAElC,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dashboard.serializer';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./dashboard.serializer"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/dashboard/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
|