@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ICompletionChart, ICreateModuleInput, ID, IModule, IOrganizationProjectModule, IOrganizationProjectModuleCreateInput, ITask } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
export declare function getTaskCounts(tasks: ITask[]): {
|
|
3
|
+
completedIssues: number;
|
|
4
|
+
startedIssues: number;
|
|
5
|
+
unstartedIssues: number;
|
|
6
|
+
backlogIssues: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function modulesTransformer(modules: IOrganizationProjectModule[] | IOrganizationProjectModule, favoriteIds?: ID[]): IModule[] | IModule;
|
|
9
|
+
export declare function moduleDetailsAdapter(module: IOrganizationProjectModule): {
|
|
10
|
+
estimate_distribution: {
|
|
11
|
+
assignees: {
|
|
12
|
+
first_name: string | undefined;
|
|
13
|
+
last_name: string | undefined;
|
|
14
|
+
assignee_id: string | undefined;
|
|
15
|
+
display_name: string | undefined;
|
|
16
|
+
avatar: string | undefined;
|
|
17
|
+
total_issues: number;
|
|
18
|
+
completed_issues: number;
|
|
19
|
+
pending_issues: number;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
labels: never[];
|
|
22
|
+
completion_chart: {};
|
|
23
|
+
};
|
|
24
|
+
distribution: {
|
|
25
|
+
assignees: {
|
|
26
|
+
first_name: string | undefined;
|
|
27
|
+
last_name: string | undefined;
|
|
28
|
+
assignee_id: string | undefined;
|
|
29
|
+
display_name: string | undefined;
|
|
30
|
+
avatar: string | undefined;
|
|
31
|
+
total_issues: number;
|
|
32
|
+
completed_issues: number;
|
|
33
|
+
pending_issues: number;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
labels: any[];
|
|
36
|
+
completion_chart: {
|
|
37
|
+
[x: string]: number | null;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare function createModuleInputTransformer(module: ICreateModuleInput | Partial<ICreateModuleInput>, managerId?: ID): IOrganizationProjectModuleCreateInput;
|
|
42
|
+
export declare const moduleRelations: string[];
|
|
43
|
+
export declare const getModulesQuery: (projectId?: ID, relations?: string[]) => Record<string, any>;
|
|
44
|
+
/**
|
|
45
|
+
* @description Generate an object completion_chart with dates between start_date and target_date.
|
|
46
|
+
* @param {IOrganizationProjectModule} module A project module for build chart
|
|
47
|
+
* @returns An object { "YYYY-MM-DD": 0 | null } representing the completion_chart
|
|
48
|
+
*/
|
|
49
|
+
export declare function completionChartMapping(module: IOrganizationProjectModule): ICompletionChart;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getModulesQuery = exports.moduleRelations = void 0;
|
|
4
|
+
exports.getTaskCounts = getTaskCounts;
|
|
5
|
+
exports.modulesTransformer = modulesTransformer;
|
|
6
|
+
exports.moduleDetailsAdapter = moduleDetailsAdapter;
|
|
7
|
+
exports.createModuleInputTransformer = createModuleInputTransformer;
|
|
8
|
+
exports.completionChartMapping = completionChartMapping;
|
|
9
|
+
const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
|
|
10
|
+
const credentials_1 = require("../../credentials");
|
|
11
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
12
|
+
const utils_1 = require("../../utils");
|
|
13
|
+
function getTaskCounts(tasks) {
|
|
14
|
+
const completedIssues = tasks === null || tasks === void 0 ? void 0 : tasks.filter((task) => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
return ((_a = task === null || task === void 0 ? void 0 : task.status) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) ===
|
|
17
|
+
plugin_integration_plane_models_1.TaskStatusEnum.DONE.toLocaleLowerCase() ||
|
|
18
|
+
((_b = task === null || task === void 0 ? void 0 : task.status) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase()) ===
|
|
19
|
+
plugin_integration_plane_models_1.TaskStatusEnum.COMPLETED.toLocaleLowerCase();
|
|
20
|
+
}).length;
|
|
21
|
+
const startedIssues = tasks === null || tasks === void 0 ? void 0 : tasks.filter((task) => (task === null || task === void 0 ? void 0 : task.status) ===
|
|
22
|
+
(0, utils_1.deslugify)(plugin_integration_plane_models_1.TaskStatusEnum.IN_PROGRESS.toLocaleLowerCase()) ||
|
|
23
|
+
(task === null || task === void 0 ? void 0 : task.status) ===
|
|
24
|
+
(0, utils_1.deslugify)(plugin_integration_plane_models_1.TaskStatusEnum.READY_FOR_REVIEW.toLocaleLowerCase()) ||
|
|
25
|
+
(task === null || task === void 0 ? void 0 : task.status) ===
|
|
26
|
+
(0, utils_1.deslugify)(plugin_integration_plane_models_1.TaskStatusEnum.IN_REVIEW.toLocaleLowerCase()) ||
|
|
27
|
+
(task === null || task === void 0 ? void 0 : task.status) === plugin_integration_plane_models_1.TaskStatusEnum.BLOCKED.toLocaleLowerCase()).length;
|
|
28
|
+
const unstartedIssues = tasks === null || tasks === void 0 ? void 0 : tasks.filter((task) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = task === null || task === void 0 ? void 0 : task.status) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) ===
|
|
31
|
+
plugin_integration_plane_models_1.TaskStatusEnum.OPEN.toLocaleLowerCase();
|
|
32
|
+
}).length;
|
|
33
|
+
const backlogIssues = tasks === null || tasks === void 0 ? void 0 : tasks.filter((task) => {
|
|
34
|
+
var _a;
|
|
35
|
+
return ((_a = task === null || task === void 0 ? void 0 : task.status) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) ===
|
|
36
|
+
plugin_integration_plane_models_1.TaskStatusEnum.BACKLOG.toLocaleLowerCase();
|
|
37
|
+
}).length;
|
|
38
|
+
return {
|
|
39
|
+
completedIssues,
|
|
40
|
+
startedIssues,
|
|
41
|
+
unstartedIssues,
|
|
42
|
+
backlogIssues
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function modulesTransformer(modules, favoriteIds) {
|
|
46
|
+
const transformModule = (projectModule) => {
|
|
47
|
+
var _a, _b, _c, _d;
|
|
48
|
+
const { completedIssues, startedIssues, unstartedIssues, backlogIssues } = getTaskCounts(projectModule === null || projectModule === void 0 ? void 0 : projectModule.tasks);
|
|
49
|
+
const isFavorite = favoriteIds === null || favoriteIds === void 0 ? void 0 : favoriteIds.includes(projectModule === null || projectModule === void 0 ? void 0 : projectModule.id);
|
|
50
|
+
const leadId = (_b = (_a = projectModule === null || projectModule === void 0 ? void 0 : projectModule.members) === null || _a === void 0 ? void 0 : _a.filter((member) => member.isManager && member.roleId)[0]) === null || _b === void 0 ? void 0 : _b.employeeId;
|
|
51
|
+
return Object.assign({ id: projectModule === null || projectModule === void 0 ? void 0 : projectModule.id, name: projectModule === null || projectModule === void 0 ? void 0 : projectModule.name, status: projectModule === null || projectModule === void 0 ? void 0 : projectModule.status, description: projectModule === null || projectModule === void 0 ? void 0 : projectModule.description, description_html: projectModule === null || projectModule === void 0 ? void 0 : projectModule.description, description_text: projectModule === null || projectModule === void 0 ? void 0 : projectModule.description, start_date: projectModule === null || projectModule === void 0 ? void 0 : projectModule.startDate, target_date: projectModule === null || projectModule === void 0 ? void 0 : projectModule.endDate, project_id: projectModule === null || projectModule === void 0 ? void 0 : projectModule.projectId, lead_id: leadId, view_props: {}, sort_order: 0, external_id: null, external_source: null, logo_props: {}, created_at: projectModule === null || projectModule === void 0 ? void 0 : projectModule.createdAt, updated_at: projectModule === null || projectModule === void 0 ? void 0 : projectModule.updatedAt, is_favorite: isFavorite, completed_issues: completedIssues, started_issues: startedIssues, unstarted_issues: unstartedIssues, backlog_issues: backlogIssues, cancelled_issues: 0, total_issues: (_c = projectModule === null || projectModule === void 0 ? void 0 : projectModule.tasks) === null || _c === void 0 ? void 0 : _c.length, completed_estimate_points: 0, total_estimate_points: 0, member_ids: (_d = projectModule === null || projectModule === void 0 ? void 0 : projectModule.members) === null || _d === void 0 ? void 0 : _d.map((member) => member.employeeId), workspace_id: projectModule === null || projectModule === void 0 ? void 0 : projectModule.organizationId }, (projectModule ? moduleDetailsAdapter(projectModule) : {}));
|
|
52
|
+
};
|
|
53
|
+
if (Array.isArray(modules)) {
|
|
54
|
+
return modules.map(transformModule);
|
|
55
|
+
}
|
|
56
|
+
return transformModule(modules);
|
|
57
|
+
}
|
|
58
|
+
function moduleDetailsAdapter(module) {
|
|
59
|
+
var _a;
|
|
60
|
+
const tasks = module === null || module === void 0 ? void 0 : module.tasks;
|
|
61
|
+
const labelMap = new Map();
|
|
62
|
+
tasks === null || tasks === void 0 ? void 0 : tasks.forEach((task) => {
|
|
63
|
+
task.tags.forEach((label) => {
|
|
64
|
+
if (!labelMap.has(label.id)) {
|
|
65
|
+
labelMap.set(label.id, {
|
|
66
|
+
label_name: label.name,
|
|
67
|
+
color: label.color,
|
|
68
|
+
label_id: label.id,
|
|
69
|
+
total_issues: 0,
|
|
70
|
+
completed_issues: 0,
|
|
71
|
+
pending_issues: 0
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
const labelData = labelMap.get(label.id);
|
|
75
|
+
labelData.total_issues += 1;
|
|
76
|
+
if (task.status.toLocaleLowerCase() === 'completed' ||
|
|
77
|
+
task.status.toLocaleLowerCase() === 'done') {
|
|
78
|
+
labelData.completed_issues += 1;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
labelData.pending_issues += 1;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
const labels = Array.from(labelMap.values());
|
|
86
|
+
// Module members
|
|
87
|
+
const assignees = (_a = module === null || module === void 0 ? void 0 : module.members) === null || _a === void 0 ? void 0 : _a.map((member) => {
|
|
88
|
+
var _a, _b;
|
|
89
|
+
const user = (_a = member === null || member === void 0 ? void 0 : member.employee) === null || _a === void 0 ? void 0 : _a.user;
|
|
90
|
+
let totalIssues = 0;
|
|
91
|
+
let completedIssues = 0;
|
|
92
|
+
let pendingIssues = 0;
|
|
93
|
+
(tasks !== null && tasks !== void 0 ? tasks : []).forEach((task) => {
|
|
94
|
+
if (task.members.some((assignee) => assignee.id === member.id)) {
|
|
95
|
+
// Increment the total issues number
|
|
96
|
+
totalIssues++;
|
|
97
|
+
// Check if the task is completed or still pending
|
|
98
|
+
if (task.status.toLocaleLowerCase() === 'completed' ||
|
|
99
|
+
task.status.toLocaleLowerCase() === 'done') {
|
|
100
|
+
completedIssues++;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
pendingIssues++;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
return {
|
|
108
|
+
first_name: user === null || user === void 0 ? void 0 : user.firstName,
|
|
109
|
+
last_name: user === null || user === void 0 ? void 0 : user.lastName,
|
|
110
|
+
assignee_id: member === null || member === void 0 ? void 0 : member.id,
|
|
111
|
+
display_name: (_b = member === null || member === void 0 ? void 0 : member.employee) === null || _b === void 0 ? void 0 : _b.fullName,
|
|
112
|
+
avatar: user === null || user === void 0 ? void 0 : user.imageUrl,
|
|
113
|
+
total_issues: totalIssues,
|
|
114
|
+
completed_issues: completedIssues,
|
|
115
|
+
pending_issues: pendingIssues
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
return {
|
|
119
|
+
estimate_distribution: {
|
|
120
|
+
assignees,
|
|
121
|
+
labels: [],
|
|
122
|
+
completion_chart: {}
|
|
123
|
+
},
|
|
124
|
+
distribution: {
|
|
125
|
+
assignees,
|
|
126
|
+
labels,
|
|
127
|
+
completion_chart: Object.assign({}, (module ? completionChartMapping(module) : {}))
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function createModuleInputTransformer(module, managerId) {
|
|
132
|
+
var _a, _b;
|
|
133
|
+
return {
|
|
134
|
+
name: module.name,
|
|
135
|
+
description: module.description,
|
|
136
|
+
status: module.status,
|
|
137
|
+
startDate: module.start_date,
|
|
138
|
+
endDate: module.target_date,
|
|
139
|
+
memberIds: ((_a = module.member_ids) !== null && _a !== void 0 ? _a : []).map((id) => id),
|
|
140
|
+
managerIds: managerId ? [managerId] : [],
|
|
141
|
+
projectId: module.project_id,
|
|
142
|
+
tasks: ((_b = module.issues) !== null && _b !== void 0 ? _b : []).map((id) => ({ id })),
|
|
143
|
+
tenantId: (0, credentials_1.currentTenantId)(),
|
|
144
|
+
organizationId: (0, credentials_1.getCurrentOrganizationSlug)()
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
exports.moduleRelations = [
|
|
148
|
+
'parent',
|
|
149
|
+
'project',
|
|
150
|
+
'creator',
|
|
151
|
+
'members.employee.user',
|
|
152
|
+
'children',
|
|
153
|
+
'tasks',
|
|
154
|
+
'tasks.tags',
|
|
155
|
+
'tasks.members.user'
|
|
156
|
+
];
|
|
157
|
+
const getModulesQuery = (projectId, relations) => {
|
|
158
|
+
// Base queries
|
|
159
|
+
const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
|
|
160
|
+
if (projectId) {
|
|
161
|
+
query['where[projectId]'] = projectId;
|
|
162
|
+
}
|
|
163
|
+
// Add relations
|
|
164
|
+
if (relations) {
|
|
165
|
+
relations.forEach((relation, i) => {
|
|
166
|
+
query[`relations[${i}]`] = relation;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
exports.moduleRelations.forEach((relation, i) => {
|
|
171
|
+
query[`relations[${i}]`] = relation;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return query;
|
|
175
|
+
};
|
|
176
|
+
exports.getModulesQuery = getModulesQuery;
|
|
177
|
+
/**
|
|
178
|
+
* @description Generate an object completion_chart with dates between start_date and target_date.
|
|
179
|
+
* @param {IOrganizationProjectModule} module A project module for build chart
|
|
180
|
+
* @returns An object { "YYYY-MM-DD": 0 | null } representing the completion_chart
|
|
181
|
+
*/
|
|
182
|
+
function completionChartMapping(module) {
|
|
183
|
+
var _a;
|
|
184
|
+
// Format startDate and targetDate to YYYY-MM-DD
|
|
185
|
+
const startDate = module.startDate
|
|
186
|
+
.toString()
|
|
187
|
+
.split('T')[0];
|
|
188
|
+
const targetDate = module.endDate
|
|
189
|
+
.toString()
|
|
190
|
+
.split('T')[0];
|
|
191
|
+
const chart = {};
|
|
192
|
+
// Check if both startDate and endDate exist
|
|
193
|
+
if (!startDate || !targetDate)
|
|
194
|
+
return chart;
|
|
195
|
+
// Initialize date range between startDate and targetDate
|
|
196
|
+
const start = new Date(startDate);
|
|
197
|
+
const end = new Date(targetDate);
|
|
198
|
+
const currentDate = new Date(start);
|
|
199
|
+
// Iterate all dates between start and end, and add each date to chart object
|
|
200
|
+
while (currentDate <= end) {
|
|
201
|
+
const formattedDate = currentDate.toISOString().split('T')[0]; // Format YYYY-MM-DD
|
|
202
|
+
chart[formattedDate] = 0; // Initialize each date with 0
|
|
203
|
+
currentDate.setDate(currentDate.getDate() + 1); // Move to next date
|
|
204
|
+
}
|
|
205
|
+
// Safely iterate over tasks if they exist and are an array
|
|
206
|
+
((_a = module.tasks) !== null && _a !== void 0 ? _a : []).forEach((task) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const completedAt = (_a = task.resolvedAt) === null || _a === void 0 ? void 0 : _a.toString().split('T')[0];
|
|
209
|
+
if (completedAt && chart.hasOwnProperty(completedAt)) {
|
|
210
|
+
chart[completedAt] += 1; // Increment the value for the corresponding date
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
return chart;
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=module.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/modules/module.serializer.ts"],"names":[],"mappings":";;;AAgBA,sCAwCC;AAED,gDAyDC;AAED,oDAqFC;AAED,oEAiBC;AA4CD,wDAqCC;AA9SD,iGAWqD;AACrD,mDAAgF;AAChF,0EAAqE;AACrE,uCAAwC;AAExC,SAAgB,aAAa,CAAC,KAAc;IAC3C,MAAM,eAAe,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CACpC,CAAC,IAAI,EAAE,EAAE;;QACR,OAAA,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,iBAAiB,EAAE;YAChC,gDAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE;YACxC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,iBAAiB,EAAE;gBAChC,gDAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAA;KAAA,EAC7C,MAAM,CAAC;IAET,MAAM,aAAa,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAClC,CAAC,IAAI,EAAE,EAAE,CACR,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM;QACX,IAAA,iBAAS,EAAC,gDAAc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CAAC,IAAI,EAAE,EAAE;;QACrC,MAAM,WAAW,GAAuB,MAAA,IAAI,CAAC,UAAU,0CACpD,QAAQ,GACT,KAAK,CAAC,GAAG,EAAE,CAAC,CAAE,CAAC;QACjB,IAAI,WAAW,IAAI,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,WAAW,CAAE,IAAI,CAAC,CAAC,CAAC,iDAAiD;QAC5E,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './notification.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("./notification.serializer"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { INotification, ITask, IUnreadNotificationResponse, IEmployeeNotification } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
/**
|
|
3
|
+
* Transforms a user notification into a notification object.
|
|
4
|
+
*
|
|
5
|
+
* @param {IEmployeeNotification} employeeNotifications - The user notification to transform.
|
|
6
|
+
* @param {IIssue} issue - The issue associated with the notification.
|
|
7
|
+
* @returns {INotification} The transformed notification object.
|
|
8
|
+
*/
|
|
9
|
+
export declare function notificationTranformer(employeeNotifications: IEmployeeNotification[] | IEmployeeNotification, issue: ITask): INotification | INotification[];
|
|
10
|
+
/**
|
|
11
|
+
* Calculates the unread notification data from a list of notifications.
|
|
12
|
+
*
|
|
13
|
+
* @param {IEmployeeNotification[]} notifications - The list of notifications.
|
|
14
|
+
* @returns {IUnreadNotificationResponse} An object containing the total unread notification count and the mention unread notification count.
|
|
15
|
+
*/
|
|
16
|
+
export declare function unreadNotificationData(notifications?: IEmployeeNotification[]): IUnreadNotificationResponse;
|
|
17
|
+
/**
|
|
18
|
+
* Builds a query object for fetching employee notifications with optional filters and predefined relations.
|
|
19
|
+
*
|
|
20
|
+
* This function generates a query object formatted for APIs that accept filtering via
|
|
21
|
+
* nested query parameters like `where[field]=value` and `relations[index]=relation`.
|
|
22
|
+
*
|
|
23
|
+
* @param {Partial<IEmployeeNotification>} options - Optional filters for the notifications query.
|
|
24
|
+
* - `receiverId`: Filters by the receiver employee's ID.
|
|
25
|
+
* - `isRead`: Filters by read status.
|
|
26
|
+
* - `entityId`: Filters by the related entity ID.
|
|
27
|
+
* - `entity`: Filters by the related entity type.
|
|
28
|
+
*
|
|
29
|
+
* @returns {Record<string, any>} A query object that can be used in an HTTP request (e.g., for RESTful endpoints).
|
|
30
|
+
*/
|
|
31
|
+
export declare function getEmployeeNotificationsQuery(options: Partial<IEmployeeNotification>): Record<string, any>;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationTranformer = notificationTranformer;
|
|
4
|
+
exports.unreadNotificationData = unreadNotificationData;
|
|
5
|
+
exports.getEmployeeNotificationsQuery = getEmployeeNotificationsQuery;
|
|
6
|
+
const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
|
|
7
|
+
const user_1 = require("../user");
|
|
8
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
9
|
+
const tasks_1 = require("../tasks");
|
|
10
|
+
/**
|
|
11
|
+
* Transforms a user notification into a notification object.
|
|
12
|
+
*
|
|
13
|
+
* @param {IEmployeeNotification} employeeNotifications - The user notification to transform.
|
|
14
|
+
* @param {IIssue} issue - The issue associated with the notification.
|
|
15
|
+
* @returns {INotification} The transformed notification object.
|
|
16
|
+
*/
|
|
17
|
+
function notificationTranformer(employeeNotifications, issue) {
|
|
18
|
+
const tranformemployeeNotification = (employeeNotification) => {
|
|
19
|
+
const notificationTitle = employeeNotification.type ===
|
|
20
|
+
plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.ASSIGNMENT
|
|
21
|
+
? 'added assignee '
|
|
22
|
+
: '';
|
|
23
|
+
const isComment = employeeNotification.type ===
|
|
24
|
+
plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.MENTION ||
|
|
25
|
+
employeeNotification.type === plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.COMMENT;
|
|
26
|
+
const isAssignement = employeeNotification.type ===
|
|
27
|
+
plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.ASSIGNMENT;
|
|
28
|
+
return {
|
|
29
|
+
id: employeeNotification.id,
|
|
30
|
+
triggered_by_details: (0, user_1.actorDetailsTransformer)(employeeNotification.sentBy),
|
|
31
|
+
is_inbox_issue: true,
|
|
32
|
+
is_intake_issue: true,
|
|
33
|
+
is_mentioned_notification: employeeNotification.type ===
|
|
34
|
+
plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.MENTION,
|
|
35
|
+
created_at: employeeNotification.createdAt,
|
|
36
|
+
updated_at: employeeNotification.updatedAt,
|
|
37
|
+
deleted_at: employeeNotification.deletedAt,
|
|
38
|
+
data: {
|
|
39
|
+
issue: (0, tasks_1.issueTransformer)(issue),
|
|
40
|
+
issue_activity: {
|
|
41
|
+
verb: isComment ? 'created' : 'updated',
|
|
42
|
+
actor: 'None',
|
|
43
|
+
field: isComment
|
|
44
|
+
? 'comment'
|
|
45
|
+
: isAssignement
|
|
46
|
+
? 'assignees'
|
|
47
|
+
: 'None',
|
|
48
|
+
new_value: isAssignement
|
|
49
|
+
? `${employeeNotification.receiver.fullName}`
|
|
50
|
+
: 'In Progress',
|
|
51
|
+
old_value: 'None',
|
|
52
|
+
new_identifier: '72ba61b5-a1aa-4c19-9b61-b13278c637e3',
|
|
53
|
+
old_identifier: '0bfe1e3d-69c3-433f-9cbf-60c84c135e84'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
entity_identifier: employeeNotification.entityId,
|
|
57
|
+
entity_name: employeeNotification.entity === plugin_integration_plane_models_1.BaseEntityEnum.Task
|
|
58
|
+
? 'issue'
|
|
59
|
+
: '',
|
|
60
|
+
title: notificationTitle,
|
|
61
|
+
message: `${employeeNotification.sentBy.fullName} ${employeeNotification.title}`,
|
|
62
|
+
message_stripped: employeeNotification.message,
|
|
63
|
+
message_html: employeeNotification.message,
|
|
64
|
+
sender: '',
|
|
65
|
+
read_at: employeeNotification.readAt,
|
|
66
|
+
snoozed_till: employeeNotification.onHoldUntil,
|
|
67
|
+
archived_at: employeeNotification.archivedAt,
|
|
68
|
+
created_by: employeeNotification.sentById,
|
|
69
|
+
workspace: employeeNotification.organizationId,
|
|
70
|
+
project: issue.projectId,
|
|
71
|
+
triggered_by: employeeNotification.sentById,
|
|
72
|
+
receiver: employeeNotification.receiverId
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
if (Array.isArray(employeeNotifications)) {
|
|
76
|
+
return employeeNotifications.map(tranformemployeeNotification);
|
|
77
|
+
}
|
|
78
|
+
return tranformemployeeNotification(employeeNotifications);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Calculates the unread notification data from a list of notifications.
|
|
82
|
+
*
|
|
83
|
+
* @param {IEmployeeNotification[]} notifications - The list of notifications.
|
|
84
|
+
* @returns {IUnreadNotificationResponse} An object containing the total unread notification count and the mention unread notification count.
|
|
85
|
+
*/
|
|
86
|
+
function unreadNotificationData(notifications) {
|
|
87
|
+
if (Array.isArray(notifications) && notifications.length > 0) {
|
|
88
|
+
const unreadNotifications = notifications.filter((notification) => !notification.isRead).length;
|
|
89
|
+
return {
|
|
90
|
+
total_unread_notifications_count: unreadNotifications,
|
|
91
|
+
mention_unread_notifications_count: notifications.filter((notification) => notification.type ===
|
|
92
|
+
plugin_integration_plane_models_1.EmployeeNotificationTypeEnum.MENTION &&
|
|
93
|
+
!notification.isRead).length
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
total_unread_notifications_count: 0,
|
|
98
|
+
mention_unread_notifications_count: 0
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Builds a query object for fetching employee notifications with optional filters and predefined relations.
|
|
103
|
+
*
|
|
104
|
+
* This function generates a query object formatted for APIs that accept filtering via
|
|
105
|
+
* nested query parameters like `where[field]=value` and `relations[index]=relation`.
|
|
106
|
+
*
|
|
107
|
+
* @param {Partial<IEmployeeNotification>} options - Optional filters for the notifications query.
|
|
108
|
+
* - `receiverId`: Filters by the receiver employee's ID.
|
|
109
|
+
* - `isRead`: Filters by read status.
|
|
110
|
+
* - `entityId`: Filters by the related entity ID.
|
|
111
|
+
* - `entity`: Filters by the related entity type.
|
|
112
|
+
*
|
|
113
|
+
* @returns {Record<string, any>} A query object that can be used in an HTTP request (e.g., for RESTful endpoints).
|
|
114
|
+
*/
|
|
115
|
+
function getEmployeeNotificationsQuery(options) {
|
|
116
|
+
const relations = ['sentByEmployee.user', 'receiverEmployee.user'];
|
|
117
|
+
const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
|
|
118
|
+
if (options === null || options === void 0 ? void 0 : options.receiverId) {
|
|
119
|
+
query['where[receiverEmployeeId]'] = options === null || options === void 0 ? void 0 : options.receiverId;
|
|
120
|
+
}
|
|
121
|
+
if (options === null || options === void 0 ? void 0 : options.isRead) {
|
|
122
|
+
query['where[isRead]'] = options === null || options === void 0 ? void 0 : options.isRead;
|
|
123
|
+
}
|
|
124
|
+
if (options === null || options === void 0 ? void 0 : options.entityId) {
|
|
125
|
+
query['where[entityId]'] = options === null || options === void 0 ? void 0 : options.entityId;
|
|
126
|
+
}
|
|
127
|
+
if (options === null || options === void 0 ? void 0 : options.entity) {
|
|
128
|
+
query['where[entity]'] = options === null || options === void 0 ? void 0 : options.entity;
|
|
129
|
+
}
|
|
130
|
+
relations.forEach((relation, i) => {
|
|
131
|
+
query[`relations[${i}]`] = relation;
|
|
132
|
+
});
|
|
133
|
+
return query;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=notification.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/notification/notification.serializer.ts"],"names":[],"mappings":";;AAmBA,wDA+EC;AAQD,wDAuBC;AAgBD,sEA8BC;AA/KD,iGAOqD;AACrD,kCAAkD;AAClD,0EAAqE;AACrE,oCAA4C;AAE5C;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACrC,qBAAsE,EACtE,KAAY;IAEZ,MAAM,4BAA4B,GAAG,CACpC,oBAA2C,EAC3B,EAAE;QAClB,MAAM,iBAAiB,GACtB,oBAAoB,CAAC,IAAI;YACzB,8DAA4B,CAAC,UAAU;YACtC,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,EAAE,CAAC;QAEP,MAAM,SAAS,GACd,oBAAoB,CAAC,IAAI;YACxB,8DAA4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|| (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("./page.serializer"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/pages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ICreatePageInput, ID, IPage, IUpdatePageInput } from '@ever-gauzy/plugin-integration-plane-models';
|
|
2
|
+
/**
|
|
3
|
+
* Transform a Plane create page input into a Gauzy article create body
|
|
4
|
+
* (plain object sent as JSON via HTTP).
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPageInputTransformer(input: ICreatePageInput, categoryId?: string, projectId?: string): Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* Transform a Plane update page input into a Gauzy article update body.
|
|
9
|
+
* Only includes defined fields (partial update).
|
|
10
|
+
*/
|
|
11
|
+
export declare function updatePageInputTransformer(input: IUpdatePageInput): Record<string, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Transform a single Gauzy HelpCenterArticle (plain JSON) into a Plane IPage.
|
|
14
|
+
*/
|
|
15
|
+
export declare function articleToPage(article: Record<string, any>): IPage;
|
|
16
|
+
/**
|
|
17
|
+
* Transform Gauzy articles to Plane pages (single or array).
|
|
18
|
+
*/
|
|
19
|
+
export declare function articlesToPages(articles: Record<string, any> | Record<string, any>[]): IPage | IPage[];
|
|
20
|
+
/**
|
|
21
|
+
* Build query params for GET /help-center-article requests.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPagesQuery(projectId?: ID, extraWhere?: Record<string, string>): Record<string, string>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPageInputTransformer = createPageInputTransformer;
|
|
4
|
+
exports.updatePageInputTransformer = updatePageInputTransformer;
|
|
5
|
+
exports.articleToPage = articleToPage;
|
|
6
|
+
exports.articlesToPages = articlesToPages;
|
|
7
|
+
exports.getPagesQuery = getPagesQuery;
|
|
8
|
+
const query_params_serializers_1 = require("../query-params.serializers");
|
|
9
|
+
const credentials_1 = require("../../credentials");
|
|
10
|
+
// ─── Input Transformers (Plane → Gauzy body) ─────────────────────────────────
|
|
11
|
+
/**
|
|
12
|
+
* Transform a Plane create page input into a Gauzy article create body
|
|
13
|
+
* (plain object sent as JSON via HTTP).
|
|
14
|
+
*/
|
|
15
|
+
function createPageInputTransformer(input, categoryId, projectId) {
|
|
16
|
+
var _a, _b, _c, _d, _e;
|
|
17
|
+
return Object.assign(Object.assign({ name: input.name || 'Untitled Page', description: (_a = input.description) !== null && _a !== void 0 ? _a : '', descriptionHtml: (_b = input.description_html) !== null && _b !== void 0 ? _b : '<p></p>', descriptionJson: input.description_json, privacy: input.access === 1, color: (_c = input.color) !== null && _c !== void 0 ? _c : null, parentId: (_d = input.parent) !== null && _d !== void 0 ? _d : null, index: (_e = input.sort_order) !== null && _e !== void 0 ? _e : 0, organizationId: (0, credentials_1.getCurrentOrganizationSlug)() }, (categoryId ? { categoryId } : {})), (projectId ? { projects: [{ id: projectId }] } : {}));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Transform a Plane update page input into a Gauzy article update body.
|
|
21
|
+
* Only includes defined fields (partial update).
|
|
22
|
+
*/
|
|
23
|
+
function updatePageInputTransformer(input) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const result = {};
|
|
26
|
+
if (input.name !== undefined)
|
|
27
|
+
result['name'] = input.name;
|
|
28
|
+
if (input.description !== undefined)
|
|
29
|
+
result['description'] = input.description;
|
|
30
|
+
if (input.description_html !== undefined)
|
|
31
|
+
result['descriptionHtml'] = input.description_html;
|
|
32
|
+
if (input.description_json !== undefined)
|
|
33
|
+
result['descriptionJson'] = input.description_json;
|
|
34
|
+
if (input.description_binary !== undefined)
|
|
35
|
+
result['descriptionBinary'] = input.description_binary;
|
|
36
|
+
if (input.access !== undefined)
|
|
37
|
+
result['privacy'] = input.access === 1;
|
|
38
|
+
if (input.color !== undefined)
|
|
39
|
+
result['color'] = input.color;
|
|
40
|
+
if (input.parent !== undefined)
|
|
41
|
+
result['parentId'] = (_a = input.parent) !== null && _a !== void 0 ? _a : null;
|
|
42
|
+
if (input.sort_order !== undefined)
|
|
43
|
+
result['index'] = input.sort_order;
|
|
44
|
+
if (input.is_locked !== undefined)
|
|
45
|
+
result['isLocked'] = input.is_locked;
|
|
46
|
+
if (input.archived_at !== undefined) {
|
|
47
|
+
result['archivedAt'] = (_b = input.archived_at) !== null && _b !== void 0 ? _b : null;
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
// ─── Output Transformers (Gauzy response → Plane IPage) ──────────────────────
|
|
52
|
+
/**
|
|
53
|
+
* Transform a single Gauzy HelpCenterArticle (plain JSON) into a Plane IPage.
|
|
54
|
+
*/
|
|
55
|
+
function articleToPage(article) {
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
57
|
+
return {
|
|
58
|
+
id: article['id'],
|
|
59
|
+
name: article['name'],
|
|
60
|
+
description: article['description'],
|
|
61
|
+
description_html: article['descriptionHtml'],
|
|
62
|
+
description_json: article['descriptionJson'],
|
|
63
|
+
access: article['privacy'] ? 1 : 0,
|
|
64
|
+
is_locked: (_a = article['isLocked']) !== null && _a !== void 0 ? _a : false,
|
|
65
|
+
is_favorite: false,
|
|
66
|
+
archived_at: (_b = article['archivedAt']) !== null && _b !== void 0 ? _b : null,
|
|
67
|
+
color: article['color'],
|
|
68
|
+
parent: (_c = article['parentId']) !== null && _c !== void 0 ? _c : null,
|
|
69
|
+
owned_by: article['ownedById'],
|
|
70
|
+
workspace: article['organizationId'],
|
|
71
|
+
project_ids: ((_d = article['projects']) !== null && _d !== void 0 ? _d : []).map((p) => typeof p === 'string' ? p : p === null || p === void 0 ? void 0 : p.id),
|
|
72
|
+
label_ids: ((_e = article['tags']) !== null && _e !== void 0 ? _e : []).map((t) => typeof t === 'string' ? t : t === null || t === void 0 ? void 0 : t.id),
|
|
73
|
+
logo_props: undefined,
|
|
74
|
+
sort_order: article['index'],
|
|
75
|
+
external_id: (_f = article['externalId']) !== null && _f !== void 0 ? _f : null,
|
|
76
|
+
created_at: article['createdAt'],
|
|
77
|
+
updated_at: article['updatedAt'],
|
|
78
|
+
created_by: article['ownedById'],
|
|
79
|
+
updated_by: article['ownedById'],
|
|
80
|
+
deleted_at: (_g = article['deletedAt']) !== null && _g !== void 0 ? _g : null
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Transform Gauzy articles to Plane pages (single or array).
|
|
85
|
+
*/
|
|
86
|
+
function articlesToPages(articles) {
|
|
87
|
+
if (Array.isArray(articles)) {
|
|
88
|
+
return articles.map(articleToPage);
|
|
89
|
+
}
|
|
90
|
+
return articleToPage(articles);
|
|
91
|
+
}
|
|
92
|
+
// ─── Query Builders ───────────────────────────────────────────────────────────
|
|
93
|
+
/**
|
|
94
|
+
* Build query params for GET /help-center-article requests.
|
|
95
|
+
*/
|
|
96
|
+
function getPagesQuery(projectId, extraWhere) {
|
|
97
|
+
const query = Object.assign(Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)()), extraWhere);
|
|
98
|
+
if (projectId) {
|
|
99
|
+
query['where[projectId]'] = projectId;
|
|
100
|
+
}
|
|
101
|
+
// Load projects and tags relations to have them in the response
|
|
102
|
+
query['relations[0]'] = 'projects';
|
|
103
|
+
query['relations[1]'] = 'tags';
|
|
104
|
+
return query;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=page.serializer.js.map
|