@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,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var AuthController_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthController = void 0;
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
|
|
20
|
+
const auth_service_1 = require("./auth.service");
|
|
21
|
+
const config_1 = require("../../config");
|
|
22
|
+
const auth_guard_1 = require("./auth.guard");
|
|
23
|
+
const dto_1 = require("../user/dto");
|
|
24
|
+
let AuthController = AuthController_1 = class AuthController {
|
|
25
|
+
constructor(_authService) {
|
|
26
|
+
this._authService = _authService;
|
|
27
|
+
this.logger = new common_1.Logger(AuthController_1.name);
|
|
28
|
+
}
|
|
29
|
+
async checkExistingUser(input) {
|
|
30
|
+
return await this._authService.checkExistingUser(input);
|
|
31
|
+
}
|
|
32
|
+
async checkExistingUserSpaces(input) {
|
|
33
|
+
return await this._authService.checkExistingUser(input);
|
|
34
|
+
}
|
|
35
|
+
async getCsrfToken() {
|
|
36
|
+
return await this._authService.getCsrfToken();
|
|
37
|
+
}
|
|
38
|
+
async signIn(req, res, data, queryNextPath) {
|
|
39
|
+
return await this._authService.handleSignIn(req, res, data, queryNextPath);
|
|
40
|
+
}
|
|
41
|
+
async spacesSignIn(req, res, data, queryNextPath) {
|
|
42
|
+
return await this._authService.handleSignIn(req, res, data, queryNextPath, 'spaces');
|
|
43
|
+
}
|
|
44
|
+
async magicSignin(req, res, data, queryNextPath) {
|
|
45
|
+
return await this._authService.handleMagicSignIn(req, res, data, queryNextPath);
|
|
46
|
+
}
|
|
47
|
+
async spacesMagicSignin(req, res, data, queryNextPath) {
|
|
48
|
+
return await this._authService.handleMagicSignIn(req, res, data, queryNextPath, 'spaces');
|
|
49
|
+
}
|
|
50
|
+
async signout(res, req) {
|
|
51
|
+
(0, config_1.clearTokenChuncks)(req, res);
|
|
52
|
+
return res.redirect(req.headers.referer);
|
|
53
|
+
}
|
|
54
|
+
async spacesSignout(res, req) {
|
|
55
|
+
(0, config_1.clearTokenChuncks)(req, res);
|
|
56
|
+
return res.redirect(`${req.headers.referer}spaces`);
|
|
57
|
+
}
|
|
58
|
+
async signUp(req, res, data) {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
try {
|
|
61
|
+
// 1. Attempt to register the new user
|
|
62
|
+
const user = await this._authService.signUp(data);
|
|
63
|
+
if (user) {
|
|
64
|
+
// 2. If registration is successful, sign in the user for onboarding process
|
|
65
|
+
const result = await this._authService.signIn({
|
|
66
|
+
email: user.email,
|
|
67
|
+
password: data.password
|
|
68
|
+
});
|
|
69
|
+
if (result.user) {
|
|
70
|
+
// 3. Onboard the tenant using the user's email as the tenant name
|
|
71
|
+
let tenant;
|
|
72
|
+
try {
|
|
73
|
+
tenant = await this._authService.onboardTenant({
|
|
74
|
+
name: data.email.split('@')[0]
|
|
75
|
+
}, result.token);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
this.logger.error('Error when creating new Tenant', error instanceof Error ? error.stack : String(error));
|
|
79
|
+
}
|
|
80
|
+
// 4. Re-login to get fresh tokens with new tenant/role context
|
|
81
|
+
// (the original refresh_token JWT is now stale after onboardTenant changed user's tenantId/roleId)
|
|
82
|
+
let freshLogin = await this._authService.signIn({
|
|
83
|
+
email: user.email,
|
|
84
|
+
password: data.password
|
|
85
|
+
});
|
|
86
|
+
// 5. Create an organization for the tenant
|
|
87
|
+
let organization;
|
|
88
|
+
try {
|
|
89
|
+
organization =
|
|
90
|
+
await this._authService.signUpCreateOrganization({
|
|
91
|
+
name: data.email.split('@')[0],
|
|
92
|
+
currency: plugin_integration_plane_models_1.CurrenciesEnum.USD,
|
|
93
|
+
tenantId: tenant.id
|
|
94
|
+
}, freshLogin.token, tenant.id);
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
this.logger.error('Error when creating new default Organization', error);
|
|
98
|
+
}
|
|
99
|
+
// 6. Create an employee record for the user within the created organization
|
|
100
|
+
try {
|
|
101
|
+
await this._authService.signUpCreateEmployee({
|
|
102
|
+
userId: user.id,
|
|
103
|
+
organizationId: organization.id,
|
|
104
|
+
tenantId: tenant.id
|
|
105
|
+
}, freshLogin.token, tenant.id);
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
this.logger.error('Error when creating Employee', error instanceof Error ? error.stack : String(error));
|
|
109
|
+
}
|
|
110
|
+
// 7. Re-login again to get tokens that include the new employee context
|
|
111
|
+
freshLogin = await this._authService.signIn({
|
|
112
|
+
email: user.email,
|
|
113
|
+
password: data.password
|
|
114
|
+
});
|
|
115
|
+
// 8. Split the token into chunks and set cookies for the user
|
|
116
|
+
(0, config_1.clearTokenChuncks)(req, res);
|
|
117
|
+
(0, config_1.sendTokenChunks)(freshLogin.token, res);
|
|
118
|
+
// 9. Redirect the user to the onboarding page
|
|
119
|
+
return res.redirect(`${req.headers.referer}onboarding`);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// 10. Redirect to error page if user registration fails
|
|
123
|
+
return res.redirect(`${req.headers.referer}?error_code=INVALID_EMAIL_SIGN_UP&error_message=INVALID_EMAIL_SIGN_UP`);
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
// Log any errors that occur during the sign-up process
|
|
127
|
+
this.logger.error(`Sign-up error: ${((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || error.message}`, error.stack);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
async magicGenerate(input) {
|
|
131
|
+
return await this._authService.magicGenerate(input);
|
|
132
|
+
}
|
|
133
|
+
async spacesMagicGenerate(input) {
|
|
134
|
+
return await this._authService.magicGenerate(input);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.AuthController = AuthController;
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
140
|
+
(0, swagger_1.ApiOperation)({ summary: 'Check email' }),
|
|
141
|
+
(0, common_1.Post)('email-check'),
|
|
142
|
+
(0, auth_guard_1.Public)(),
|
|
143
|
+
__param(0, (0, common_1.Body)()),
|
|
144
|
+
__metadata("design:type", Function),
|
|
145
|
+
__metadata("design:paramtypes", [dto_1.CheckExistUserDTO]),
|
|
146
|
+
__metadata("design:returntype", Promise)
|
|
147
|
+
], AuthController.prototype, "checkExistingUser", null);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
150
|
+
(0, swagger_1.ApiOperation)({ summary: 'Check email' }),
|
|
151
|
+
(0, common_1.Post)('spaces/email-check'),
|
|
152
|
+
(0, auth_guard_1.Public)(),
|
|
153
|
+
__param(0, (0, common_1.Body)()),
|
|
154
|
+
__metadata("design:type", Function),
|
|
155
|
+
__metadata("design:paramtypes", [dto_1.CheckExistUserDTO]),
|
|
156
|
+
__metadata("design:returntype", Promise)
|
|
157
|
+
], AuthController.prototype, "checkExistingUserSpaces", null);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
160
|
+
(0, swagger_1.ApiOperation)({ summary: 'Get csrf_token' }),
|
|
161
|
+
(0, common_1.Get)('get-csrf-token'),
|
|
162
|
+
(0, auth_guard_1.Public)(),
|
|
163
|
+
__metadata("design:type", Function),
|
|
164
|
+
__metadata("design:paramtypes", []),
|
|
165
|
+
__metadata("design:returntype", Promise)
|
|
166
|
+
], AuthController.prototype, "getCsrfToken", null);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
169
|
+
(0, swagger_1.ApiOperation)({ summary: 'Sign in' }),
|
|
170
|
+
(0, common_1.Post)('sign-in'),
|
|
171
|
+
(0, auth_guard_1.Public)(),
|
|
172
|
+
__param(0, (0, common_1.Req)()),
|
|
173
|
+
__param(1, (0, common_1.Res)()),
|
|
174
|
+
__param(2, (0, common_1.Body)()),
|
|
175
|
+
__param(3, (0, common_1.Query)('next_path')),
|
|
176
|
+
__metadata("design:type", Function),
|
|
177
|
+
__metadata("design:paramtypes", [Object, Object, Object, String]),
|
|
178
|
+
__metadata("design:returntype", Promise)
|
|
179
|
+
], AuthController.prototype, "signIn", null);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
182
|
+
(0, swagger_1.ApiOperation)({ summary: 'Sign in' }),
|
|
183
|
+
(0, common_1.Post)('spaces/sign-in'),
|
|
184
|
+
(0, auth_guard_1.Public)(),
|
|
185
|
+
__param(0, (0, common_1.Req)()),
|
|
186
|
+
__param(1, (0, common_1.Res)()),
|
|
187
|
+
__param(2, (0, common_1.Body)()),
|
|
188
|
+
__param(3, (0, common_1.Query)('next_path')),
|
|
189
|
+
__metadata("design:type", Function),
|
|
190
|
+
__metadata("design:paramtypes", [Object, Object, Object, String]),
|
|
191
|
+
__metadata("design:returntype", Promise)
|
|
192
|
+
], AuthController.prototype, "spacesSignIn", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
195
|
+
(0, swagger_1.ApiOperation)({ summary: 'Magic signin' }),
|
|
196
|
+
(0, common_1.Post)('magic-sign-in'),
|
|
197
|
+
(0, auth_guard_1.Public)(),
|
|
198
|
+
__param(0, (0, common_1.Req)()),
|
|
199
|
+
__param(1, (0, common_1.Res)()),
|
|
200
|
+
__param(2, (0, common_1.Body)()),
|
|
201
|
+
__param(3, (0, common_1.Query)('next_path')),
|
|
202
|
+
__metadata("design:type", Function),
|
|
203
|
+
__metadata("design:paramtypes", [Object, Object, Object, String]),
|
|
204
|
+
__metadata("design:returntype", Promise)
|
|
205
|
+
], AuthController.prototype, "magicSignin", null);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
208
|
+
(0, swagger_1.ApiOperation)({ summary: 'Magic signin' }),
|
|
209
|
+
(0, common_1.Post)('spaces/magic-sign-in'),
|
|
210
|
+
(0, auth_guard_1.Public)(),
|
|
211
|
+
__param(0, (0, common_1.Req)()),
|
|
212
|
+
__param(1, (0, common_1.Res)()),
|
|
213
|
+
__param(2, (0, common_1.Body)()),
|
|
214
|
+
__param(3, (0, common_1.Query)('next_path')),
|
|
215
|
+
__metadata("design:type", Function),
|
|
216
|
+
__metadata("design:paramtypes", [Object, Object, Object, String]),
|
|
217
|
+
__metadata("design:returntype", Promise)
|
|
218
|
+
], AuthController.prototype, "spacesMagicSignin", null);
|
|
219
|
+
__decorate([
|
|
220
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
221
|
+
(0, swagger_1.ApiOperation)({ summary: 'Sign out' }),
|
|
222
|
+
(0, common_1.Post)('sign-out'),
|
|
223
|
+
(0, auth_guard_1.Public)(),
|
|
224
|
+
__param(0, (0, common_1.Res)()),
|
|
225
|
+
__param(1, (0, common_1.Req)()),
|
|
226
|
+
__metadata("design:type", Function),
|
|
227
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
228
|
+
__metadata("design:returntype", Promise)
|
|
229
|
+
], AuthController.prototype, "signout", null);
|
|
230
|
+
__decorate([
|
|
231
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
232
|
+
(0, swagger_1.ApiOperation)({ summary: 'Spaces sign out' }),
|
|
233
|
+
(0, common_1.Post)('spaces/sign-out'),
|
|
234
|
+
(0, auth_guard_1.Public)(),
|
|
235
|
+
__param(0, (0, common_1.Res)()),
|
|
236
|
+
__param(1, (0, common_1.Req)()),
|
|
237
|
+
__metadata("design:type", Function),
|
|
238
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
239
|
+
__metadata("design:returntype", Promise)
|
|
240
|
+
], AuthController.prototype, "spacesSignout", null);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
243
|
+
(0, swagger_1.ApiOperation)({ summary: 'Sign up' }),
|
|
244
|
+
(0, common_1.Post)('sign-up'),
|
|
245
|
+
(0, auth_guard_1.Public)(),
|
|
246
|
+
__param(0, (0, common_1.Req)()),
|
|
247
|
+
__param(1, (0, common_1.Res)()),
|
|
248
|
+
__param(2, (0, common_1.Body)()),
|
|
249
|
+
__metadata("design:type", Function),
|
|
250
|
+
__metadata("design:paramtypes", [Object, Object, Object]),
|
|
251
|
+
__metadata("design:returntype", Promise)
|
|
252
|
+
], AuthController.prototype, "signUp", null);
|
|
253
|
+
__decorate([
|
|
254
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
255
|
+
(0, swagger_1.ApiOperation)({ summary: 'Magic generate' }),
|
|
256
|
+
(0, common_1.Post)('magic-generate'),
|
|
257
|
+
(0, auth_guard_1.Public)(),
|
|
258
|
+
__param(0, (0, common_1.Body)()),
|
|
259
|
+
__metadata("design:type", Function),
|
|
260
|
+
__metadata("design:paramtypes", [dto_1.UserEmailDTO]),
|
|
261
|
+
__metadata("design:returntype", Promise)
|
|
262
|
+
], AuthController.prototype, "magicGenerate", null);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
265
|
+
(0, swagger_1.ApiOperation)({ summary: 'Spaces magic generate' }),
|
|
266
|
+
(0, common_1.Post)('spaces/magic-generate'),
|
|
267
|
+
(0, auth_guard_1.Public)(),
|
|
268
|
+
__param(0, (0, common_1.Body)()),
|
|
269
|
+
__metadata("design:type", Function),
|
|
270
|
+
__metadata("design:paramtypes", [dto_1.UserEmailDTO]),
|
|
271
|
+
__metadata("design:returntype", Promise)
|
|
272
|
+
], AuthController.prototype, "spacesMagicGenerate", null);
|
|
273
|
+
exports.AuthController = AuthController = AuthController_1 = __decorate([
|
|
274
|
+
(0, swagger_1.ApiTags)('Authentication routes'),
|
|
275
|
+
(0, common_1.Controller)(),
|
|
276
|
+
__metadata("design:paramtypes", [auth_service_1.AuthService])
|
|
277
|
+
], AuthController);
|
|
278
|
+
//# sourceMappingURL=auth.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,6CAAwD;AAExD,iGAMqD;AACrD,iDAA6C;AAC7C,yCAAkE;AAClE,6CAAsC;AACtC,qCAA8D;AAKvD,IAAM,cAAc,sBAApB,MAAM,cAAc;IAG1B,YAA6B,YAAyB;QAAzB,iBAAY,GAAZ,YAAY,CAAa;QAFrC,WAAM,GAAG,IAAI,eAAM,CAAC,gBAAc,CAAC,IAAI,CAAC,CAAC;IAED,CAAC;IAMpD,AAAN,KAAK,CAAC,iBAAiB,CAAS,KAAwB;QACvD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAMK,AAAN,KAAK,CAAC,uBAAuB,CAAS,KAAwB;QAC7D,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAMK,AAAN,KAAK,CAAC,YAAY;QACjB,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IAC/C,CAAC;IAMK,AAAN,KAAK,CAAC,MAAM,CACJ,GAAY,EACZ,GAAa,EACZ,IAA8C,EAClC,aAAsB;QAE1C,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAC1C,GAAG,EACH,GAAG,EACH,IAAI,EACJ,aAAa,CACb,CAAC;IACH,CAAC;IAMK,AAAN,KAAK,CAAC,YAAY,CACV,GAAY,EACZ,GAAa,EACZ,IAA8C,EAClC,aAAsB;QAE1C,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAC1C,GAAG,EACH,GAAG,EACH,IAAI,EACJ,aAAa,EACb,QAAQ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,IAAA,mBAAM,GAAE;IACkB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAQ,kBAAY;;yDAEpD;yBArPW,cAAc;IAF1B,IAAA,iBAAO,EAAC,uBAAuB,CAAC;IAChC,IAAA,mBAAU,GAAE;qCAI+B,0BAAW;GAH1C,cAAc,CAsP1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { Reflector } from '@nestjs/core';
|
|
3
|
+
export declare const IS_PUBLIC_KEY = "isPublic";
|
|
4
|
+
export declare const Public: () => import("@nestjs/common").CustomDecorator<string>;
|
|
5
|
+
export declare class AuthGuard implements CanActivate {
|
|
6
|
+
private reflector;
|
|
7
|
+
constructor(reflector: Reflector);
|
|
8
|
+
canActivate(context: ExecutionContext): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AuthGuard = exports.Public = exports.IS_PUBLIC_KEY = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
15
|
+
exports.IS_PUBLIC_KEY = 'isPublic';
|
|
16
|
+
const Public = () => (0, common_1.SetMetadata)(exports.IS_PUBLIC_KEY, true);
|
|
17
|
+
exports.Public = Public;
|
|
18
|
+
let AuthGuard = class AuthGuard {
|
|
19
|
+
constructor(reflector) {
|
|
20
|
+
this.reflector = reflector;
|
|
21
|
+
}
|
|
22
|
+
canActivate(context) {
|
|
23
|
+
// Check if route is marked as public
|
|
24
|
+
const isPublic = this.reflector.getAllAndOverride(exports.IS_PUBLIC_KEY, [
|
|
25
|
+
context.getHandler(),
|
|
26
|
+
context.getClass(),
|
|
27
|
+
]);
|
|
28
|
+
if (isPublic) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
const request = context.switchToHttp().getRequest();
|
|
32
|
+
const response = context.switchToHttp().getResponse();
|
|
33
|
+
const tokenChunks = [];
|
|
34
|
+
let index = 0;
|
|
35
|
+
while (request.cookies[`auth-proxy-plane-token-${index}`]) {
|
|
36
|
+
tokenChunks.push(request.cookies[`auth-proxy-plane-token-${index}`]);
|
|
37
|
+
index++;
|
|
38
|
+
}
|
|
39
|
+
const token = tokenChunks.join('');
|
|
40
|
+
if (!token) {
|
|
41
|
+
response.redirect(request.headers.referer);
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.AuthGuard = AuthGuard;
|
|
48
|
+
exports.AuthGuard = AuthGuard = __decorate([
|
|
49
|
+
(0, common_1.Injectable)(),
|
|
50
|
+
__metadata("design:paramtypes", [core_1.Reflector])
|
|
51
|
+
], AuthGuard);
|
|
52
|
+
//# sourceMappingURL=auth.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAKwB;AACxB,uCAAyC;AAG5B,QA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,GAAE;qCAEmB,gBAAS;GAD5B,SAAS,CAoCrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AuthModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const core_1 = require("@nestjs/core");
|
|
12
|
+
const auth_service_1 = require("./auth.service");
|
|
13
|
+
const auth_controller_1 = require("./auth.controller");
|
|
14
|
+
const user_module_1 = require("../user/user.module");
|
|
15
|
+
const employee_properties_module_1 = require("../employee-properties/employee-properties.module");
|
|
16
|
+
let AuthModule = class AuthModule {
|
|
17
|
+
};
|
|
18
|
+
exports.AuthModule = AuthModule;
|
|
19
|
+
exports.AuthModule = AuthModule = __decorate([
|
|
20
|
+
(0, common_1.Module)({
|
|
21
|
+
imports: [
|
|
22
|
+
core_1.RouterModule.register([{ path: '/auth', module: AuthModule }]),
|
|
23
|
+
user_module_1.UserModule,
|
|
24
|
+
employee_properties_module_1.EmployeePropertiesModule
|
|
25
|
+
],
|
|
26
|
+
providers: [auth_service_1.AuthService],
|
|
27
|
+
controllers: [auth_controller_1.AuthController]
|
|
28
|
+
})
|
|
29
|
+
], AuthModule);
|
|
30
|
+
//# sourceMappingURL=auth.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uCAA4C;AAC5C,iDAA6C;AAC7C,uDAAmD;AACnD,qDAAiD;AACjD,kGAA6F;AAWtF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IATtB,IAAA,eAAM,EAAC;QACP,OAAO,EAAE;YACR,mBAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;YAC9D,wBAAU;YACV,qDAAwB;SACxB;QACD,SAAS,EAAE,CAAC,0BAAW,CAAC;QACxB,WAAW,EAAE,CAAC,gCAAc,CAAC;KAC7B,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Request, Response } from 'express';
|
|
2
|
+
import { IAuthResponse, ICheckUserExist, ID, IEmailInput, IEmployee, IEmployeeCreateInput, IMagicGenerateResponse, IOrganization, IOrganizationCreateInput, IPasswordInput, ITenant, ITenantCreateInput, IUser, IUserCodeInput, IUserEmailInput, IUserLoginInput, IUserRegisterInput } from '@ever-gauzy/plugin-integration-plane-models';
|
|
3
|
+
import { ApiFetchService } from '../api-fetch/api-fetch.service';
|
|
4
|
+
import { UserService } from '../user/user.service';
|
|
5
|
+
import { EmployeePropertiesService } from '../employee-properties/employee-properties.service';
|
|
6
|
+
export declare class AuthService extends ApiFetchService {
|
|
7
|
+
private readonly _userService;
|
|
8
|
+
private readonly _employeePropertiesService;
|
|
9
|
+
private readonly _serverFetchService;
|
|
10
|
+
constructor(_userService: UserService, _employeePropertiesService: EmployeePropertiesService, _serverFetchService: ApiFetchService);
|
|
11
|
+
private path;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if a user exists based on their email. It sends a request to the email-check endpoint
|
|
14
|
+
* and determines the user's existence and the authentication method required.
|
|
15
|
+
*
|
|
16
|
+
* @param {IEmailInput & Partial<IPasswordInput>} input - The input containing the user's email and optionally their password.
|
|
17
|
+
* @returns {Promise<ICheckUserExist>} A promise resolving to an object indicating whether the user exists and the authentication status.
|
|
18
|
+
*
|
|
19
|
+
* @throws {Error} Logs the error and returns a default response if the API request fails.
|
|
20
|
+
*/
|
|
21
|
+
checkExistingUser(input: IEmailInput & Partial<IPasswordInput>): Promise<ICheckUserExist>;
|
|
22
|
+
/**
|
|
23
|
+
* Authenticates a user by sending their login credentials to the server.
|
|
24
|
+
*
|
|
25
|
+
* @async
|
|
26
|
+
* @param {IUserLoginInput} credentials - The user's login credentials, including email and password.
|
|
27
|
+
* @returns {Promise<IAuthResponse | null>} A promise that resolves to the authentication response or `null` in case of an error.
|
|
28
|
+
*
|
|
29
|
+
* @throws {any} Returns the caught error if the API request fails.
|
|
30
|
+
*/
|
|
31
|
+
signIn(credentials: IUserLoginInput): Promise<IAuthResponse | null>;
|
|
32
|
+
/**
|
|
33
|
+
* Handles the sign-in process including token management and redirection.
|
|
34
|
+
*
|
|
35
|
+
* @param {Request} req - The Express request object.
|
|
36
|
+
* @param {Response} res - The Express response object.
|
|
37
|
+
* @param {IUserLoginInput & { next_path?: string }} data - The login input data with optional next_path.
|
|
38
|
+
* @param {string} [queryNextPath] - Optional next path from query parameters.
|
|
39
|
+
* @returns {Promise<void>}
|
|
40
|
+
*/
|
|
41
|
+
handleSignIn(req: Request, res: Response, data: IUserLoginInput & {
|
|
42
|
+
next_path?: string;
|
|
43
|
+
}, queryNextPath?: string, customRedirectPath?: string): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Registers a new user by sending their details to the server.
|
|
46
|
+
*
|
|
47
|
+
* @param {IUserRegisterInput} input - The input containing the user's details.
|
|
48
|
+
* @returns {Promise<IUser>} A promise resolving to the created user object.
|
|
49
|
+
*
|
|
50
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
51
|
+
*/
|
|
52
|
+
signUp(input: IUserRegisterInput): Promise<IUser>;
|
|
53
|
+
/**
|
|
54
|
+
* Generates a magic key for a user by sending their email to the server.
|
|
55
|
+
*
|
|
56
|
+
* @param {IUserEmailInput} input - The input containing the user's email.
|
|
57
|
+
* @returns {Promise<IMagicGenerateResponse>} A promise resolving to the magic key.
|
|
58
|
+
*
|
|
59
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
60
|
+
*/
|
|
61
|
+
magicGenerate(input: IUserEmailInput): Promise<IMagicGenerateResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Confirms a magic signin by sending the user's email and code to the server.
|
|
64
|
+
*
|
|
65
|
+
* @param {IUserEmailInput & IUserCodeInput} input - The input containing the user's email and code.
|
|
66
|
+
* @returns {Promise<IUserSigninWorkspaceResponse>} A promise resolving to the user's signin workspace response.
|
|
67
|
+
*
|
|
68
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
69
|
+
*/
|
|
70
|
+
magicSignin(input: IUserEmailInput & IUserCodeInput): Promise<IAuthResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Handles the magic sign-in process including token management and redirection.
|
|
73
|
+
*
|
|
74
|
+
* @param {Request} req - The Express request object.
|
|
75
|
+
* @param {Response} res - The Express response object.
|
|
76
|
+
* @param {IUserEmailInput & IUserCodeInput & { next_path?: string }} data - The magic sign-in input data with optional next_path.
|
|
77
|
+
* @param {string} [queryNextPath] - Optional next path from query parameters.
|
|
78
|
+
* @param {string} [customRedirectPath] - Optional custom redirect path.
|
|
79
|
+
* @returns {Promise<void>}
|
|
80
|
+
*/
|
|
81
|
+
handleMagicSignIn(req: Request, res: Response, data: IUserEmailInput & IUserCodeInput & {
|
|
82
|
+
next_path?: string;
|
|
83
|
+
}, queryNextPath?: string, customRedirectPath?: string): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Initiates the onboarding process for a new tenant by sending its details to the server.
|
|
86
|
+
*
|
|
87
|
+
* @param {ITenantCreateInput} input - The input containing the tenant's details.
|
|
88
|
+
* @param {string} token - The bearer token for authentication.
|
|
89
|
+
* @returns {Promise<ITenant>} A promise resolving to the created tenant object.
|
|
90
|
+
*
|
|
91
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
92
|
+
*/
|
|
93
|
+
onboardTenant(input: ITenantCreateInput, token: string): Promise<ITenant>;
|
|
94
|
+
/**
|
|
95
|
+
* Refreshes the user's authentication token using a provided refresh token.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} refreshToken - The refresh token to be used for obtaining a new token.
|
|
98
|
+
* @param {string} token - The bearer token for authentication.
|
|
99
|
+
* @returns {Promise<{ token: string } | null>} A promise resolving to an object containing the new token or `null` if the request fails.
|
|
100
|
+
*
|
|
101
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
102
|
+
*/
|
|
103
|
+
refreshToken(refreshToken: string, token: string): Promise<{
|
|
104
|
+
token: string;
|
|
105
|
+
} | null>;
|
|
106
|
+
/**
|
|
107
|
+
* Creates a new organization by sending its details to the server.
|
|
108
|
+
*
|
|
109
|
+
* @param {IOrganizationCreateInput} input - The input containing the organization's details.
|
|
110
|
+
* @param {string} token - The bearer token for authentication.
|
|
111
|
+
* @returns {Promise<IOrganization>} A promise resolving to the created organization object.
|
|
112
|
+
*
|
|
113
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
114
|
+
*/
|
|
115
|
+
signUpCreateOrganization(input: IOrganizationCreateInput, token: string, tenantId?: ID): Promise<IOrganization>;
|
|
116
|
+
/**
|
|
117
|
+
* Creates a new employee by sending their details to the server.
|
|
118
|
+
*
|
|
119
|
+
* @param {IEmployeeCreateInput} input - The input containing the employee's details.
|
|
120
|
+
* @param {string} token - The bearer token for authentication.
|
|
121
|
+
* @returns {Promise<IEmployee>} A promise resolving to the created employee object.
|
|
122
|
+
*
|
|
123
|
+
* @throws {BadRequestException} Throws an exception if the API request fails.
|
|
124
|
+
*/
|
|
125
|
+
signUpCreateEmployee(input: IEmployeeCreateInput, token: string, tenantId?: ID): Promise<IEmployee>;
|
|
126
|
+
/**
|
|
127
|
+
* @description Get the CSRF token
|
|
128
|
+
* @returns {Promise<{ csrf_token: string }>} The CSRF token
|
|
129
|
+
*/
|
|
130
|
+
getCsrfToken(): Promise<{
|
|
131
|
+
csrf_token: string;
|
|
132
|
+
}>;
|
|
133
|
+
}
|