@abyss-project/tools 1.0.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/.eslintrc.js +33 -0
- package/.prettierrc +5 -0
- package/dist/api/abyss.admin.api.d.ts +7 -0
- package/dist/api/abyss.admin.api.js +28 -0
- package/dist/api/atlas-document.api.d.ts +6 -0
- package/dist/api/atlas-document.api.js +26 -0
- package/dist/api/atlas-group.api.d.ts +6 -0
- package/dist/api/atlas-group.api.js +24 -0
- package/dist/api/atlas-page-content.api.d.ts +0 -0
- package/dist/api/atlas-page-content.api.js +1 -0
- package/dist/api/atlas-page.api.d.ts +10 -0
- package/dist/api/atlas-page.api.js +46 -0
- package/dist/api/atlas.api.d.ts +8 -0
- package/dist/api/atlas.api.js +35 -0
- package/dist/api/atlas.public.api.d.ts +4 -0
- package/dist/api/atlas.public.api.js +18 -0
- package/dist/api/board-card-checklist.api.d.ts +8 -0
- package/dist/api/board-card-checklist.api.js +32 -0
- package/dist/api/board-card-comment.api.d.ts +5 -0
- package/dist/api/board-card-comment.api.js +20 -0
- package/dist/api/board-card-document.api.d.ts +5 -0
- package/dist/api/board-card-document.api.js +20 -0
- package/dist/api/board-card.api.d.ts +11 -0
- package/dist/api/board-card.api.js +48 -0
- package/dist/api/board-column.api.d.ts +5 -0
- package/dist/api/board-column.api.js +20 -0
- package/dist/api/board-label.api.d.ts +8 -0
- package/dist/api/board-label.api.js +33 -0
- package/dist/api/board.api.d.ts +12 -0
- package/dist/api/board.api.js +41 -0
- package/dist/api/draw.api.d.ts +8 -0
- package/dist/api/draw.api.js +36 -0
- package/dist/api/draw.public.api.d.ts +5 -0
- package/dist/api/draw.public.api.js +20 -0
- package/dist/api/index.d.ts +26 -0
- package/dist/api/index.js +42 -0
- package/dist/api/memo.api.d.ts +8 -0
- package/dist/api/memo.api.js +36 -0
- package/dist/api/metrics.api.d.ts +2 -0
- package/dist/api/metrics.api.js +8 -0
- package/dist/api/retrospective-card.api.d.ts +6 -0
- package/dist/api/retrospective-card.api.js +26 -0
- package/dist/api/retrospective-member.api.d.ts +5 -0
- package/dist/api/retrospective-member.api.js +20 -0
- package/dist/api/retrospective-section.api.d.ts +6 -0
- package/dist/api/retrospective-section.api.js +26 -0
- package/dist/api/retrospective.api.d.ts +8 -0
- package/dist/api/retrospective.api.js +34 -0
- package/dist/api/retrospective.public.api.d.ts +11 -0
- package/dist/api/retrospective.public.api.js +44 -0
- package/dist/api/short-link.admin.api.d.ts +7 -0
- package/dist/api/short-link.admin.api.js +22 -0
- package/dist/api/short-link.api.d.ts +12 -0
- package/dist/api/short-link.api.js +48 -0
- package/dist/api/short-link.public.api.d.ts +8 -0
- package/dist/api/short-link.public.api.js +32 -0
- package/dist/api/user-tag.api.d.ts +9 -0
- package/dist/api/user-tag.api.js +36 -0
- package/dist/constants/atlas.constants.d.ts +2 -0
- package/dist/constants/atlas.constants.js +5 -0
- package/dist/constants/board.constants.d.ts +5 -0
- package/dist/constants/board.constants.js +8 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +21 -0
- package/dist/constants/memo.constants.d.ts +3 -0
- package/dist/constants/memo.constants.js +6 -0
- package/dist/constants/short-link.constants.d.ts +8 -0
- package/dist/constants/short-link.constants.js +11 -0
- package/dist/constants/user-tag.constants.d.ts +3 -0
- package/dist/constants/user-tag.constants.js +6 -0
- package/dist/index.d.ts +262 -0
- package/dist/index.js +341 -0
- package/dist/server-sent-events/index.d.ts +10 -0
- package/dist/server-sent-events/index.js +28 -0
- package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.d.ts +74 -0
- package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.js +21 -0
- package/dist/server-sent-events/protocols/atlas/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/atlas/index.js +17 -0
- package/dist/server-sent-events/protocols/board/board.sse-protocol.d.ts +91 -0
- package/dist/server-sent-events/protocols/board/board.sse-protocol.js +23 -0
- package/dist/server-sent-events/protocols/board/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/board/index.js +17 -0
- package/dist/server-sent-events/protocols/board-card/board-card.sse-protocol.d.ts +18 -0
- package/dist/server-sent-events/protocols/board-card/board-card.sse-protocol.js +11 -0
- package/dist/server-sent-events/protocols/board-card/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/board-card/index.js +17 -0
- package/dist/server-sent-events/protocols/index.d.ts +20 -0
- package/dist/server-sent-events/protocols/index.js +29 -0
- package/dist/server-sent-events/protocols/retrospective/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/retrospective/index.js +17 -0
- package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.d.ts +69 -0
- package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.js +21 -0
- package/dist/server-sent-events/server-sent-events.manager.d.ts +23 -0
- package/dist/server-sent-events/server-sent-events.manager.js +59 -0
- package/dist/types/draw.type.d.ts +132 -0
- package/dist/types/draw.type.js +15 -0
- package/dist/types/enum/api-error.enum.d.ts +21 -0
- package/dist/types/enum/api-error.enum.js +26 -0
- package/dist/types/enum/board-activity.enum.d.ts +170 -0
- package/dist/types/enum/board-activity.enum.js +37 -0
- package/dist/types/enum/board-column-type.enum.d.ts +6 -0
- package/dist/types/enum/board-column-type.enum.js +10 -0
- package/dist/types/enum/index.d.ts +3 -0
- package/dist/types/enum/index.js +19 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +19 -0
- package/dist/types/interface/api/index.d.ts +5 -0
- package/dist/types/interface/api/index.js +21 -0
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +14 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js +2 -0
- package/dist/types/interface/api/requests/atlas-document.request.d.ts +26 -0
- package/dist/types/interface/api/requests/atlas-document.request.js +2 -0
- package/dist/types/interface/api/requests/atlas-group.request.d.ts +40 -0
- package/dist/types/interface/api/requests/atlas-group.request.js +2 -0
- package/dist/types/interface/api/requests/atlas-page.request.d.ts +72 -0
- package/dist/types/interface/api/requests/atlas-page.request.js +2 -0
- package/dist/types/interface/api/requests/atlas.public.request.d.ts +18 -0
- package/dist/types/interface/api/requests/atlas.public.request.js +2 -0
- package/dist/types/interface/api/requests/atlas.request.d.ts +33 -0
- package/dist/types/interface/api/requests/atlas.request.js +2 -0
- package/dist/types/interface/api/requests/board-card-checklist.request.d.ts +55 -0
- package/dist/types/interface/api/requests/board-card-checklist.request.js +2 -0
- package/dist/types/interface/api/requests/board-card-comment.request.d.ts +25 -0
- package/dist/types/interface/api/requests/board-card-comment.request.js +2 -0
- package/dist/types/interface/api/requests/board-card-document.request.d.ts +25 -0
- package/dist/types/interface/api/requests/board-card-document.request.js +2 -0
- package/dist/types/interface/api/requests/board-card.request.d.ts +77 -0
- package/dist/types/interface/api/requests/board-card.request.js +2 -0
- package/dist/types/interface/api/requests/board-column.request.d.ts +26 -0
- package/dist/types/interface/api/requests/board-column.request.js +2 -0
- package/dist/types/interface/api/requests/board-label.request.d.ts +36 -0
- package/dist/types/interface/api/requests/board-label.request.js +2 -0
- package/dist/types/interface/api/requests/board.request.d.ts +25 -0
- package/dist/types/interface/api/requests/board.request.js +2 -0
- package/dist/types/interface/api/requests/draw.public.request.d.ts +17 -0
- package/dist/types/interface/api/requests/draw.public.request.js +2 -0
- package/dist/types/interface/api/requests/draw.request.d.ts +31 -0
- package/dist/types/interface/api/requests/draw.request.js +2 -0
- package/dist/types/interface/api/requests/index.d.ts +26 -0
- package/dist/types/interface/api/requests/index.js +42 -0
- package/dist/types/interface/api/requests/memo.request.d.ts +29 -0
- package/dist/types/interface/api/requests/memo.request.js +2 -0
- package/dist/types/interface/api/requests/metrics.request.d.ts +3 -0
- package/dist/types/interface/api/requests/metrics.request.js +2 -0
- package/dist/types/interface/api/requests/retrospective-card.request.d.ts +32 -0
- package/dist/types/interface/api/requests/retrospective-card.request.js +2 -0
- package/dist/types/interface/api/requests/retrospective-member.request.d.ts +17 -0
- package/dist/types/interface/api/requests/retrospective-member.request.js +2 -0
- package/dist/types/interface/api/requests/retrospective-section.request.d.ts +36 -0
- package/dist/types/interface/api/requests/retrospective-section.request.js +2 -0
- package/dist/types/interface/api/requests/retrospective.public.request.d.ts +71 -0
- package/dist/types/interface/api/requests/retrospective.public.request.js +2 -0
- package/dist/types/interface/api/requests/retrospective.request.d.ts +39 -0
- package/dist/types/interface/api/requests/retrospective.request.js +2 -0
- package/dist/types/interface/api/requests/short-link.admin.request.d.ts +29 -0
- package/dist/types/interface/api/requests/short-link.admin.request.js +2 -0
- package/dist/types/interface/api/requests/short-link.public.request.d.ts +33 -0
- package/dist/types/interface/api/requests/short-link.public.request.js +2 -0
- package/dist/types/interface/api/requests/short-link.request.d.ts +47 -0
- package/dist/types/interface/api/requests/short-link.request.js +2 -0
- package/dist/types/interface/api/requests/user-tag.request.d.ts +37 -0
- package/dist/types/interface/api/requests/user-tag.request.js +2 -0
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +14 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +2 -0
- package/dist/types/interface/api/responses/atlas-document.response.d.ts +19 -0
- package/dist/types/interface/api/responses/atlas-document.response.js +2 -0
- package/dist/types/interface/api/responses/atlas-group.response.d.ts +19 -0
- package/dist/types/interface/api/responses/atlas-group.response.js +2 -0
- package/dist/types/interface/api/responses/atlas-page.response.d.ts +44 -0
- package/dist/types/interface/api/responses/atlas-page.response.js +2 -0
- package/dist/types/interface/api/responses/atlas.public.response.d.ts +18 -0
- package/dist/types/interface/api/responses/atlas.public.response.js +2 -0
- package/dist/types/interface/api/responses/atlas.response.d.ts +19 -0
- package/dist/types/interface/api/responses/atlas.response.js +2 -0
- package/dist/types/interface/api/responses/board-card-checklist.response.d.ts +27 -0
- package/dist/types/interface/api/responses/board-card-checklist.response.js +2 -0
- package/dist/types/interface/api/responses/board-card-comment.response.d.ts +17 -0
- package/dist/types/interface/api/responses/board-card-comment.response.js +2 -0
- package/dist/types/interface/api/responses/board-card-document.response.d.ts +20 -0
- package/dist/types/interface/api/responses/board-card-document.response.js +2 -0
- package/dist/types/interface/api/responses/board-card.response.d.ts +47 -0
- package/dist/types/interface/api/responses/board-card.response.js +2 -0
- package/dist/types/interface/api/responses/board-column.response.d.ts +17 -0
- package/dist/types/interface/api/responses/board-column.response.js +2 -0
- package/dist/types/interface/api/responses/board-label.response.d.ts +30 -0
- package/dist/types/interface/api/responses/board-label.response.js +2 -0
- package/dist/types/interface/api/responses/board.response.d.ts +59 -0
- package/dist/types/interface/api/responses/board.response.js +2 -0
- package/dist/types/interface/api/responses/draw.public.response.d.ts +17 -0
- package/dist/types/interface/api/responses/draw.public.response.js +2 -0
- package/dist/types/interface/api/responses/draw.response.d.ts +19 -0
- package/dist/types/interface/api/responses/draw.response.js +2 -0
- package/dist/types/interface/api/responses/index.d.ts +26 -0
- package/dist/types/interface/api/responses/index.js +42 -0
- package/dist/types/interface/api/responses/memo.response.d.ts +19 -0
- package/dist/types/interface/api/responses/memo.response.js +2 -0
- package/dist/types/interface/api/responses/metrics.response.d.ts +13 -0
- package/dist/types/interface/api/responses/metrics.response.js +2 -0
- package/dist/types/interface/api/responses/retrospective-card.response.d.ts +19 -0
- package/dist/types/interface/api/responses/retrospective-card.response.js +2 -0
- package/dist/types/interface/api/responses/retrospective-member.response.d.ts +18 -0
- package/dist/types/interface/api/responses/retrospective-member.response.js +2 -0
- package/dist/types/interface/api/responses/retrospective-section.response.d.ts +19 -0
- package/dist/types/interface/api/responses/retrospective-section.response.js +2 -0
- package/dist/types/interface/api/responses/retrospective.public.response.d.ts +36 -0
- package/dist/types/interface/api/responses/retrospective.public.response.js +2 -0
- package/dist/types/interface/api/responses/retrospective.response.d.ts +19 -0
- package/dist/types/interface/api/responses/retrospective.response.js +2 -0
- package/dist/types/interface/api/responses/short-link.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/short-link.admin.response.js +2 -0
- package/dist/types/interface/api/responses/short-link.public.response.d.ts +21 -0
- package/dist/types/interface/api/responses/short-link.public.response.js +2 -0
- package/dist/types/interface/api/responses/short-link.response.d.ts +25 -0
- package/dist/types/interface/api/responses/short-link.response.js +2 -0
- package/dist/types/interface/api/responses/user-tag.response.d.ts +32 -0
- package/dist/types/interface/api/responses/user-tag.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +6 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/index.d.ts +2 -0
- package/dist/types/interface/index.js +18 -0
- package/dist/types/interface/models/atlas-document.dto.d.ts +19 -0
- package/dist/types/interface/models/atlas-document.dto.js +2 -0
- package/dist/types/interface/models/atlas-group.dto.d.ts +18 -0
- package/dist/types/interface/models/atlas-group.dto.js +2 -0
- package/dist/types/interface/models/atlas-page-content.dto.d.ts +14 -0
- package/dist/types/interface/models/atlas-page-content.dto.js +2 -0
- package/dist/types/interface/models/atlas-page.dto.d.ts +23 -0
- package/dist/types/interface/models/atlas-page.dto.js +2 -0
- package/dist/types/interface/models/atlas.dto.d.ts +30 -0
- package/dist/types/interface/models/atlas.dto.js +2 -0
- package/dist/types/interface/models/board-activity.dto.d.ts +17 -0
- package/dist/types/interface/models/board-activity.dto.js +2 -0
- package/dist/types/interface/models/board-card-checklist-row.dto.d.ts +11 -0
- package/dist/types/interface/models/board-card-checklist-row.dto.js +2 -0
- package/dist/types/interface/models/board-card-checklist.dto.d.ts +13 -0
- package/dist/types/interface/models/board-card-checklist.dto.js +2 -0
- package/dist/types/interface/models/board-card-comment.dto.d.ts +12 -0
- package/dist/types/interface/models/board-card-comment.dto.js +2 -0
- package/dist/types/interface/models/board-card-document.dto.d.ts +19 -0
- package/dist/types/interface/models/board-card-document.dto.js +2 -0
- package/dist/types/interface/models/board-card-label.dto.d.ts +11 -0
- package/dist/types/interface/models/board-card-label.dto.js +2 -0
- package/dist/types/interface/models/board-card-member.dto.d.ts +11 -0
- package/dist/types/interface/models/board-card-member.dto.js +2 -0
- package/dist/types/interface/models/board-card.dto.d.ts +34 -0
- package/dist/types/interface/models/board-card.dto.js +2 -0
- package/dist/types/interface/models/board-column.dto.d.ts +14 -0
- package/dist/types/interface/models/board-column.dto.js +2 -0
- package/dist/types/interface/models/board-label.dto.d.ts +10 -0
- package/dist/types/interface/models/board-label.dto.js +2 -0
- package/dist/types/interface/models/board.dto.d.ts +29 -0
- package/dist/types/interface/models/board.dto.js +2 -0
- package/dist/types/interface/models/draw.dto.d.ts +25 -0
- package/dist/types/interface/models/draw.dto.js +2 -0
- package/dist/types/interface/models/index.d.ts +28 -0
- package/dist/types/interface/models/index.js +44 -0
- package/dist/types/interface/models/memo.dto.d.ts +19 -0
- package/dist/types/interface/models/memo.dto.js +2 -0
- package/dist/types/interface/models/organization.dto.d.ts +9 -0
- package/dist/types/interface/models/organization.dto.js +2 -0
- package/dist/types/interface/models/project.dto.d.ts +22 -0
- package/dist/types/interface/models/project.dto.js +2 -0
- package/dist/types/interface/models/retrospective-card.dto.d.ts +14 -0
- package/dist/types/interface/models/retrospective-card.dto.js +2 -0
- package/dist/types/interface/models/retrospective-member.dto.d.ts +12 -0
- package/dist/types/interface/models/retrospective-member.dto.js +2 -0
- package/dist/types/interface/models/retrospective-section.dto.d.ts +13 -0
- package/dist/types/interface/models/retrospective-section.dto.js +2 -0
- package/dist/types/interface/models/retrospective.dto.d.ts +29 -0
- package/dist/types/interface/models/retrospective.dto.js +2 -0
- package/dist/types/interface/models/short-link-click.dto.d.ts +30 -0
- package/dist/types/interface/models/short-link-click.dto.js +2 -0
- package/dist/types/interface/models/short-link.dto.d.ts +71 -0
- package/dist/types/interface/models/short-link.dto.js +2 -0
- package/dist/types/interface/models/user-tag.dto.d.ts +22 -0
- package/dist/types/interface/models/user-tag.dto.js +2 -0
- package/dist/types/interface/models/user.dto.d.ts +23 -0
- package/dist/types/interface/models/user.dto.js +2 -0
- package/dist/utils/board.utils.d.ts +5 -0
- package/dist/utils/board.utils.js +39 -0
- package/dist/utils/enum.utils.d.ts +1 -0
- package/dist/utils/enum.utils.js +9 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/icons.utils.d.ts +75 -0
- package/dist/utils/icons.utils.js +86 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +21 -0
- package/dist/utils/shape.utils.d.ts +26 -0
- package/dist/utils/shape.utils.js +181 -0
- package/package.json +53 -0
- package/src/api/abyss.admin.api.ts +60 -0
- package/src/api/atlas-document.api.ts +68 -0
- package/src/api/atlas-group.api.ts +69 -0
- package/src/api/atlas-page-content.api.ts +0 -0
- package/src/api/atlas-page.api.ts +124 -0
- package/src/api/atlas.api.ts +65 -0
- package/src/api/atlas.public.api.ts +42 -0
- package/src/api/board-card-checklist.api.ts +99 -0
- package/src/api/board-card-comment.api.ts +57 -0
- package/src/api/board-card-document.api.ts +57 -0
- package/src/api/board-card.api.ts +137 -0
- package/src/api/board-column.api.ts +54 -0
- package/src/api/board-label.api.ts +87 -0
- package/src/api/board.api.ts +67 -0
- package/src/api/draw.api.ts +58 -0
- package/src/api/draw.public.api.ts +48 -0
- package/src/api/index.ts +43 -0
- package/src/api/memo.api.ts +59 -0
- package/src/api/metrics.api.ts +15 -0
- package/src/api/retrospective-card.api.ts +74 -0
- package/src/api/retrospective-member.api.ts +54 -0
- package/src/api/retrospective-section.api.ts +74 -0
- package/src/api/retrospective.api.ts +86 -0
- package/src/api/retrospective.public.api.ts +147 -0
- package/src/api/short-link.admin.api.ts +39 -0
- package/src/api/short-link.api.ts +90 -0
- package/src/api/short-link.public.api.ts +60 -0
- package/src/api/user-tag.api.ts +70 -0
- package/src/constants/atlas.constants.ts +2 -0
- package/src/constants/board.constants.ts +7 -0
- package/src/constants/index.ts +5 -0
- package/src/constants/memo.constants.ts +3 -0
- package/src/constants/short-link.constants.ts +11 -0
- package/src/constants/user-tag.constants.ts +3 -0
- package/src/index.ts +541 -0
- package/src/server-sent-events/index.ts +13 -0
- package/src/server-sent-events/protocols/atlas/atlas.sse-protocol.ts +90 -0
- package/src/server-sent-events/protocols/atlas/index.ts +1 -0
- package/src/server-sent-events/protocols/board/board.sse-protocol.ts +115 -0
- package/src/server-sent-events/protocols/board/index.ts +1 -0
- package/src/server-sent-events/protocols/board-card/board-card.sse-protocol.ts +26 -0
- package/src/server-sent-events/protocols/board-card/index.ts +1 -0
- package/src/server-sent-events/protocols/index.ts +26 -0
- package/src/server-sent-events/protocols/retrospective/index.ts +1 -0
- package/src/server-sent-events/protocols/retrospective/retrospective.sse-protocol.ts +92 -0
- package/src/server-sent-events/server-sent-events.manager.ts +73 -0
- package/src/types/draw.type.ts +173 -0
- package/src/types/enum/api-error.enum.ts +23 -0
- package/src/types/enum/board-activity.enum.ts +189 -0
- package/src/types/enum/board-column-type.enum.ts +6 -0
- package/src/types/enum/index.ts +3 -0
- package/src/types/index.ts +5 -0
- package/src/types/interface/api/index.ts +5 -0
- package/src/types/interface/api/requests/abyss.admin.request.ts +16 -0
- package/src/types/interface/api/requests/atlas-document.request.ts +32 -0
- package/src/types/interface/api/requests/atlas-group.request.ts +45 -0
- package/src/types/interface/api/requests/atlas-page.request.ts +84 -0
- package/src/types/interface/api/requests/atlas.public.request.ts +21 -0
- package/src/types/interface/api/requests/atlas.request.ts +40 -0
- package/src/types/interface/api/requests/board-card-checklist.request.ts +61 -0
- package/src/types/interface/api/requests/board-card-comment.request.ts +28 -0
- package/src/types/interface/api/requests/board-card-document.request.ts +29 -0
- package/src/types/interface/api/requests/board-card.request.ts +86 -0
- package/src/types/interface/api/requests/board-column.request.ts +30 -0
- package/src/types/interface/api/requests/board-label.request.ts +42 -0
- package/src/types/interface/api/requests/board.request.ts +30 -0
- package/src/types/interface/api/requests/draw.public.request.ts +20 -0
- package/src/types/interface/api/requests/draw.request.ts +37 -0
- package/src/types/interface/api/requests/index.ts +26 -0
- package/src/types/interface/api/requests/memo.request.ts +35 -0
- package/src/types/interface/api/requests/metrics.request.ts +3 -0
- package/src/types/interface/api/requests/retrospective-card.request.ts +38 -0
- package/src/types/interface/api/requests/retrospective-member.request.ts +20 -0
- package/src/types/interface/api/requests/retrospective-section.request.ts +43 -0
- package/src/types/interface/api/requests/retrospective.public.request.ts +84 -0
- package/src/types/interface/api/requests/retrospective.request.ts +46 -0
- package/src/types/interface/api/requests/short-link.admin.request.ts +35 -0
- package/src/types/interface/api/requests/short-link.public.request.ts +40 -0
- package/src/types/interface/api/requests/short-link.request.ts +57 -0
- package/src/types/interface/api/requests/user-tag.request.ts +45 -0
- package/src/types/interface/api/responses/abyss.admin.response.ts +17 -0
- package/src/types/interface/api/responses/atlas-document.response.ts +24 -0
- package/src/types/interface/api/responses/atlas-group.response.ts +23 -0
- package/src/types/interface/api/responses/atlas-page.response.ts +53 -0
- package/src/types/interface/api/responses/atlas.public.response.ts +21 -0
- package/src/types/interface/api/responses/atlas.response.ts +23 -0
- package/src/types/interface/api/responses/board-card-checklist.response.ts +31 -0
- package/src/types/interface/api/responses/board-card-comment.response.ts +20 -0
- package/src/types/interface/api/responses/board-card-document.response.ts +21 -0
- package/src/types/interface/api/responses/board-card.response.ts +55 -0
- package/src/types/interface/api/responses/board-column.response.ts +20 -0
- package/src/types/interface/api/responses/board-label.response.ts +31 -0
- package/src/types/interface/api/responses/board.response.ts +68 -0
- package/src/types/interface/api/responses/draw.public.response.ts +20 -0
- package/src/types/interface/api/responses/draw.response.ts +23 -0
- package/src/types/interface/api/responses/index.ts +26 -0
- package/src/types/interface/api/responses/memo.response.ts +23 -0
- package/src/types/interface/api/responses/metrics.response.ts +16 -0
- package/src/types/interface/api/responses/retrospective-card.response.ts +23 -0
- package/src/types/interface/api/responses/retrospective-member.response.ts +22 -0
- package/src/types/interface/api/responses/retrospective-section.response.ts +23 -0
- package/src/types/interface/api/responses/retrospective.public.response.ts +57 -0
- package/src/types/interface/api/responses/retrospective.response.ts +23 -0
- package/src/types/interface/api/responses/short-link.admin.response.ts +21 -0
- package/src/types/interface/api/responses/short-link.public.response.ts +26 -0
- package/src/types/interface/api/responses/short-link.response.ts +31 -0
- package/src/types/interface/api/responses/user-tag.response.ts +38 -0
- package/src/types/interface/api/type-message/api-error.ts +7 -0
- package/src/types/interface/api/type-message/base-paginate.ts +11 -0
- package/src/types/interface/api/type-message/response.ts +6 -0
- package/src/types/interface/index.ts +2 -0
- package/src/types/interface/models/atlas-document.dto.ts +22 -0
- package/src/types/interface/models/atlas-group.dto.ts +21 -0
- package/src/types/interface/models/atlas-page-content.dto.ts +17 -0
- package/src/types/interface/models/atlas-page.dto.ts +26 -0
- package/src/types/interface/models/atlas.dto.ts +34 -0
- package/src/types/interface/models/board-activity.dto.ts +20 -0
- package/src/types/interface/models/board-card-checklist-row.dto.ts +14 -0
- package/src/types/interface/models/board-card-checklist.dto.ts +16 -0
- package/src/types/interface/models/board-card-comment.dto.ts +15 -0
- package/src/types/interface/models/board-card-document.dto.ts +22 -0
- package/src/types/interface/models/board-card-label.dto.ts +14 -0
- package/src/types/interface/models/board-card-member.dto.ts +14 -0
- package/src/types/interface/models/board-card.dto.ts +37 -0
- package/src/types/interface/models/board-column.dto.ts +17 -0
- package/src/types/interface/models/board-label.dto.ts +13 -0
- package/src/types/interface/models/board.dto.ts +32 -0
- package/src/types/interface/models/draw.dto.ts +28 -0
- package/src/types/interface/models/index.ts +28 -0
- package/src/types/interface/models/memo.dto.ts +22 -0
- package/src/types/interface/models/organization.dto.ts +12 -0
- package/src/types/interface/models/project.dto.ts +25 -0
- package/src/types/interface/models/retrospective-card.dto.ts +17 -0
- package/src/types/interface/models/retrospective-member.dto.ts +15 -0
- package/src/types/interface/models/retrospective-section.dto.ts +16 -0
- package/src/types/interface/models/retrospective.dto.ts +32 -0
- package/src/types/interface/models/short-link-click.dto.ts +33 -0
- package/src/types/interface/models/short-link.dto.ts +48 -0
- package/src/types/interface/models/user-tag.dto.ts +26 -0
- package/src/types/interface/models/user.dto.ts +26 -0
- package/src/utils/board.utils.ts +57 -0
- package/src/utils/enum.utils.ts +6 -0
- package/src/utils/error.utils.ts +30 -0
- package/src/utils/icons.utils.ts +96 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/shape.utils.ts +296 -0
- package/tsconfig.json +24 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceBoardCardSSEEventPayload = exports.BoardCardSSEEvent = void 0;
|
|
4
|
+
var BoardCardSSEEvent;
|
|
5
|
+
(function (BoardCardSSEEvent) {
|
|
6
|
+
BoardCardSSEEvent["BOARD_CARD_UPDATE"] = "BOARD_CARD_UPDATE";
|
|
7
|
+
})(BoardCardSSEEvent || (exports.BoardCardSSEEvent = BoardCardSSEEvent = {}));
|
|
8
|
+
class SourceBoardCardSSEEventPayload {
|
|
9
|
+
}
|
|
10
|
+
exports.SourceBoardCardSSEEventPayload = SourceBoardCardSSEEventPayload;
|
|
11
|
+
BoardCardSSEEvent.BOARD_CARD_UPDATE;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './board-card.sse-protocol';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./board-card.sse-protocol"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValueOf } from '../..';
|
|
2
|
+
export * from './board';
|
|
3
|
+
export * from './board-card';
|
|
4
|
+
export * from './retrospective';
|
|
5
|
+
export * from './atlas';
|
|
6
|
+
export declare enum SYSTEM_PROTOCOL_EVENTS {
|
|
7
|
+
PING = "PING"
|
|
8
|
+
}
|
|
9
|
+
export type SystemSSEMessageContent = ValueOf<{
|
|
10
|
+
[K in SYSTEM_PROTOCOL_EVENTS]: {
|
|
11
|
+
type: K;
|
|
12
|
+
payload: SystemSSEEventPayload[K];
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare class SystemSSEEventPayload implements Record<SYSTEM_PROTOCOL_EVENTS, Record<string, any>> {
|
|
16
|
+
[SYSTEM_PROTOCOL_EVENTS.PING]: {
|
|
17
|
+
openedAt: number;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
exports.SystemSSEEventPayload = exports.SYSTEM_PROTOCOL_EVENTS = void 0;
|
|
18
|
+
__exportStar(require("./board"), exports);
|
|
19
|
+
__exportStar(require("./board-card"), exports);
|
|
20
|
+
__exportStar(require("./retrospective"), exports);
|
|
21
|
+
__exportStar(require("./atlas"), exports);
|
|
22
|
+
var SYSTEM_PROTOCOL_EVENTS;
|
|
23
|
+
(function (SYSTEM_PROTOCOL_EVENTS) {
|
|
24
|
+
SYSTEM_PROTOCOL_EVENTS["PING"] = "PING";
|
|
25
|
+
})(SYSTEM_PROTOCOL_EVENTS || (exports.SYSTEM_PROTOCOL_EVENTS = SYSTEM_PROTOCOL_EVENTS = {}));
|
|
26
|
+
class SystemSSEEventPayload {
|
|
27
|
+
}
|
|
28
|
+
exports.SystemSSEEventPayload = SystemSSEEventPayload;
|
|
29
|
+
SYSTEM_PROTOCOL_EVENTS.PING;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './retrospective.sse-protocol';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./retrospective.sse-protocol"), exports);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SystemSSEMessageContent } from '..';
|
|
2
|
+
import { ValueOf } from '../../../types';
|
|
3
|
+
import { IRetrospective, IRetrospectiveCard, IRetrospectiveSection, IRetrospectiveMember } from '../../../types/interface';
|
|
4
|
+
export declare enum RetrospectiveSSEEvent {
|
|
5
|
+
RETROSPECTIVE_UPDATED = "RETROSPECTIVE_UPDATED",
|
|
6
|
+
RETROSPECTIVE_DELETED = "RETROSPECTIVE_DELETED",
|
|
7
|
+
CARD_CREATED = "CARD_CREATED",
|
|
8
|
+
CARD_UPDATED = "CARD_UPDATED",
|
|
9
|
+
CARD_DELETED = "CARD_DELETED",
|
|
10
|
+
SECTION_CREATED = "SECTION_CREATED",
|
|
11
|
+
SECTION_UPDATED = "SECTION_UPDATED",
|
|
12
|
+
SECTION_DELETED = "SECTION_DELETED",
|
|
13
|
+
MEMBER_JOINED = "MEMBER_JOINED",
|
|
14
|
+
MEMBER_UPDATED = "MEMBER_UPDATED",
|
|
15
|
+
MEMBER_LEFT = "MEMBER_LEFT"
|
|
16
|
+
}
|
|
17
|
+
export type RetrospectiveSSEMessageContent = ValueOf<{
|
|
18
|
+
[K in RetrospectiveSSEEvent]: {
|
|
19
|
+
type: K;
|
|
20
|
+
payload: SourceRetrospectiveSSEEventPayload[K];
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
23
|
+
export declare class SourceRetrospectiveSSEEventPayload implements Record<RetrospectiveSSEEvent, Record<string, any>> {
|
|
24
|
+
[RetrospectiveSSEEvent.RETROSPECTIVE_UPDATED]: {
|
|
25
|
+
retrospectiveId: string;
|
|
26
|
+
retrospective: IRetrospective;
|
|
27
|
+
};
|
|
28
|
+
[RetrospectiveSSEEvent.RETROSPECTIVE_DELETED]: {
|
|
29
|
+
retrospectiveId: string;
|
|
30
|
+
userId?: string;
|
|
31
|
+
};
|
|
32
|
+
[RetrospectiveSSEEvent.CARD_CREATED]: {
|
|
33
|
+
retrospectiveId: string;
|
|
34
|
+
card: IRetrospectiveCard;
|
|
35
|
+
};
|
|
36
|
+
[RetrospectiveSSEEvent.CARD_UPDATED]: {
|
|
37
|
+
retrospectiveId: string;
|
|
38
|
+
card: IRetrospectiveCard;
|
|
39
|
+
};
|
|
40
|
+
[RetrospectiveSSEEvent.CARD_DELETED]: {
|
|
41
|
+
retrospectiveId: string;
|
|
42
|
+
cardId: string;
|
|
43
|
+
};
|
|
44
|
+
[RetrospectiveSSEEvent.SECTION_CREATED]: {
|
|
45
|
+
retrospectiveId: string;
|
|
46
|
+
section: IRetrospectiveSection;
|
|
47
|
+
};
|
|
48
|
+
[RetrospectiveSSEEvent.SECTION_UPDATED]: {
|
|
49
|
+
retrospectiveId: string;
|
|
50
|
+
section: IRetrospectiveSection;
|
|
51
|
+
};
|
|
52
|
+
[RetrospectiveSSEEvent.SECTION_DELETED]: {
|
|
53
|
+
retrospectiveId: string;
|
|
54
|
+
sectionId: string;
|
|
55
|
+
};
|
|
56
|
+
[RetrospectiveSSEEvent.MEMBER_JOINED]: {
|
|
57
|
+
retrospectiveId: string;
|
|
58
|
+
member: IRetrospectiveMember;
|
|
59
|
+
};
|
|
60
|
+
[RetrospectiveSSEEvent.MEMBER_UPDATED]: {
|
|
61
|
+
retrospectiveId: string;
|
|
62
|
+
member: IRetrospectiveMember;
|
|
63
|
+
};
|
|
64
|
+
[RetrospectiveSSEEvent.MEMBER_LEFT]: {
|
|
65
|
+
retrospectiveId: string;
|
|
66
|
+
memberId: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export type RetrospectiveSSEEventContent = RetrospectiveSSEMessageContent | SystemSSEMessageContent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceRetrospectiveSSEEventPayload = exports.RetrospectiveSSEEvent = void 0;
|
|
4
|
+
var RetrospectiveSSEEvent;
|
|
5
|
+
(function (RetrospectiveSSEEvent) {
|
|
6
|
+
RetrospectiveSSEEvent["RETROSPECTIVE_UPDATED"] = "RETROSPECTIVE_UPDATED";
|
|
7
|
+
RetrospectiveSSEEvent["RETROSPECTIVE_DELETED"] = "RETROSPECTIVE_DELETED";
|
|
8
|
+
RetrospectiveSSEEvent["CARD_CREATED"] = "CARD_CREATED";
|
|
9
|
+
RetrospectiveSSEEvent["CARD_UPDATED"] = "CARD_UPDATED";
|
|
10
|
+
RetrospectiveSSEEvent["CARD_DELETED"] = "CARD_DELETED";
|
|
11
|
+
RetrospectiveSSEEvent["SECTION_CREATED"] = "SECTION_CREATED";
|
|
12
|
+
RetrospectiveSSEEvent["SECTION_UPDATED"] = "SECTION_UPDATED";
|
|
13
|
+
RetrospectiveSSEEvent["SECTION_DELETED"] = "SECTION_DELETED";
|
|
14
|
+
RetrospectiveSSEEvent["MEMBER_JOINED"] = "MEMBER_JOINED";
|
|
15
|
+
RetrospectiveSSEEvent["MEMBER_UPDATED"] = "MEMBER_UPDATED";
|
|
16
|
+
RetrospectiveSSEEvent["MEMBER_LEFT"] = "MEMBER_LEFT";
|
|
17
|
+
})(RetrospectiveSSEEvent || (exports.RetrospectiveSSEEvent = RetrospectiveSSEEvent = {}));
|
|
18
|
+
class SourceRetrospectiveSSEEventPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.SourceRetrospectiveSSEEventPayload = SourceRetrospectiveSSEEventPayload;
|
|
21
|
+
RetrospectiveSSEEvent.RETROSPECTIVE_UPDATED, RetrospectiveSSEEvent.RETROSPECTIVE_DELETED, RetrospectiveSSEEvent.CARD_CREATED, RetrospectiveSSEEvent.CARD_UPDATED, RetrospectiveSSEEvent.CARD_DELETED, RetrospectiveSSEEvent.SECTION_CREATED, RetrospectiveSSEEvent.SECTION_UPDATED, RetrospectiveSSEEvent.SECTION_DELETED, RetrospectiveSSEEvent.MEMBER_JOINED, RetrospectiveSSEEvent.MEMBER_UPDATED, RetrospectiveSSEEvent.MEMBER_LEFT;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Request, Response } from 'express-serve-static-core';
|
|
2
|
+
export declare class ServerSentEventBaseContext {
|
|
3
|
+
id: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
req: Request;
|
|
6
|
+
res: Response;
|
|
7
|
+
}
|
|
8
|
+
export type RedisSSEMessage = {
|
|
9
|
+
key: string;
|
|
10
|
+
data: any;
|
|
11
|
+
};
|
|
12
|
+
export declare class ServerSentEventsManager<T extends ServerSentEventBaseContext, P extends {
|
|
13
|
+
type: string;
|
|
14
|
+
payload: any;
|
|
15
|
+
}> {
|
|
16
|
+
private channel;
|
|
17
|
+
private contexts;
|
|
18
|
+
constructor(channelName: string);
|
|
19
|
+
add(key: string, context: T, onClose: () => void): void;
|
|
20
|
+
sendToContext(key: string, data: P, { senderId }?: {
|
|
21
|
+
senderId?: string;
|
|
22
|
+
}): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerSentEventsManager = exports.ServerSentEventBaseContext = void 0;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
const protocols_1 = require("./protocols");
|
|
6
|
+
class ServerSentEventBaseContext {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.id = (0, uuid_1.v4)();
|
|
9
|
+
this.createdAt = new Date();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ServerSentEventBaseContext = ServerSentEventBaseContext;
|
|
13
|
+
class ServerSentEventsManager {
|
|
14
|
+
constructor(channelName) {
|
|
15
|
+
this.channel = channelName;
|
|
16
|
+
this.contexts = new Map();
|
|
17
|
+
}
|
|
18
|
+
add(key, context, onClose) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
context.res.setHeader('Content-Type', 'text/event-stream');
|
|
21
|
+
context.res.setHeader('Cache-Control', 'no-cache');
|
|
22
|
+
context.res.setHeader('Connection', 'keep-alive');
|
|
23
|
+
(_b = (_a = context.res).flushHeaders) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
24
|
+
const row = this.contexts.get(key);
|
|
25
|
+
if (!row) {
|
|
26
|
+
this.contexts.set(key, new Set([context]));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
row.add(context);
|
|
30
|
+
}
|
|
31
|
+
const pingTimeout = setInterval(() => {
|
|
32
|
+
const payload = {
|
|
33
|
+
type: protocols_1.SYSTEM_PROTOCOL_EVENTS.PING,
|
|
34
|
+
payload: {
|
|
35
|
+
openedAt: context.createdAt.getTime(),
|
|
36
|
+
timestamp: Date.now(),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
context.res.write(`data: ${JSON.stringify(payload)}\n\n`);
|
|
40
|
+
}, 10000);
|
|
41
|
+
context.res.on('close', () => {
|
|
42
|
+
clearInterval(pingTimeout);
|
|
43
|
+
onClose();
|
|
44
|
+
const row = this.contexts.get(key);
|
|
45
|
+
row === null || row === void 0 ? void 0 : row.delete(context);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
sendToContext(key, data, { senderId } = {}) {
|
|
49
|
+
const payload = JSON.stringify({ ...data, date: new Date() });
|
|
50
|
+
const clients = this.contexts.get(key);
|
|
51
|
+
clients === null || clients === void 0 ? void 0 : clients.forEach((client) => {
|
|
52
|
+
if (client.id === senderId) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
client.res.write(`data: ${payload}\n\n`);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.ServerSentEventsManager = ServerSentEventsManager;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Endpoint, ICON_LIBRARY, CurvePoint } from '../utils';
|
|
2
|
+
export type DrawData = {
|
|
3
|
+
drawId: string | null;
|
|
4
|
+
shapes: DrawShapeToJsonResult[];
|
|
5
|
+
stagePos: Point;
|
|
6
|
+
stageScale: number;
|
|
7
|
+
showGrid: boolean;
|
|
8
|
+
timestamp: number;
|
|
9
|
+
version: number;
|
|
10
|
+
sections?: Section[];
|
|
11
|
+
activeSections?: string[];
|
|
12
|
+
sectionDisplayMode?: 'hidden' | 'opacity';
|
|
13
|
+
};
|
|
14
|
+
export type Section = {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
export interface Point {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BoundingBox {
|
|
24
|
+
x1: number;
|
|
25
|
+
y1: number;
|
|
26
|
+
x2: number;
|
|
27
|
+
y2: number;
|
|
28
|
+
}
|
|
29
|
+
export interface DrawSize {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
}
|
|
33
|
+
export interface DrawStyle {
|
|
34
|
+
fillColor: string;
|
|
35
|
+
strokeColor: string;
|
|
36
|
+
strokeWidth: number;
|
|
37
|
+
opacity: number;
|
|
38
|
+
lineDash: number[];
|
|
39
|
+
cornerRadius: number;
|
|
40
|
+
fontSize: number;
|
|
41
|
+
fontFamily: string;
|
|
42
|
+
fontWeight?: number;
|
|
43
|
+
preserveAspectRatio: boolean;
|
|
44
|
+
rotation: number;
|
|
45
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
46
|
+
textVerticalPosition?: 'top' | 'center' | 'bottom';
|
|
47
|
+
textHorizontalPosition?: 'left' | 'center' | 'right';
|
|
48
|
+
}
|
|
49
|
+
export interface ShapeProperties {
|
|
50
|
+
id?: string;
|
|
51
|
+
position: Point;
|
|
52
|
+
zIndex?: number;
|
|
53
|
+
size: DrawSize;
|
|
54
|
+
style?: Partial<DrawStyle>;
|
|
55
|
+
}
|
|
56
|
+
export declare enum DrawShapeType {
|
|
57
|
+
RECTANGLE = "RECTANGLE",
|
|
58
|
+
DIAMOND = "DIAMOND",
|
|
59
|
+
ELLIPSE = "ELLIPSE",
|
|
60
|
+
TEXT = "TEXT",
|
|
61
|
+
ICON = "ICON",
|
|
62
|
+
IMAGE = "IMAGE",
|
|
63
|
+
COMMENT = "COMMENT",
|
|
64
|
+
ARROW = "ARROW",
|
|
65
|
+
PENCIL = "PENCIL"
|
|
66
|
+
}
|
|
67
|
+
export type ResizeShape = {
|
|
68
|
+
corner: 'se' | 'sw' | 'ne' | 'nw' | 'e' | 'w' | 'n' | 's';
|
|
69
|
+
startPos: Point;
|
|
70
|
+
originalSize: DrawSize;
|
|
71
|
+
originalPosition: Point;
|
|
72
|
+
};
|
|
73
|
+
export type RotationData = {
|
|
74
|
+
startAngle: number;
|
|
75
|
+
originalRotation: number;
|
|
76
|
+
center: Point;
|
|
77
|
+
};
|
|
78
|
+
export type Id = string;
|
|
79
|
+
export type PortId = 'top' | 'right' | 'bottom' | 'left' | 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
80
|
+
export type TextAnchor = {
|
|
81
|
+
shapeId: string;
|
|
82
|
+
relativeX: number;
|
|
83
|
+
relativeY: number;
|
|
84
|
+
};
|
|
85
|
+
export type DrawShapeToJsonBaseResult = {
|
|
86
|
+
id: string;
|
|
87
|
+
type: DrawShapeType;
|
|
88
|
+
position: Point;
|
|
89
|
+
size: DrawSize;
|
|
90
|
+
style: DrawStyle;
|
|
91
|
+
zIndex: number;
|
|
92
|
+
sectionIds?: string[];
|
|
93
|
+
};
|
|
94
|
+
export type DrawShapeArrowToJsonResult = DrawShapeToJsonBaseResult & {
|
|
95
|
+
type: DrawShapeType.ARROW;
|
|
96
|
+
startEndpoint: Endpoint;
|
|
97
|
+
endEndpoint: Endpoint;
|
|
98
|
+
curvePoints?: CurvePoint[];
|
|
99
|
+
};
|
|
100
|
+
export type DrawShapeIconToJsonResult = DrawShapeToJsonBaseResult & {
|
|
101
|
+
type: DrawShapeType.ICON;
|
|
102
|
+
iconType: keyof typeof ICON_LIBRARY;
|
|
103
|
+
};
|
|
104
|
+
export type DrawShapeTextToJsonResult = DrawShapeToJsonBaseResult & {
|
|
105
|
+
type: DrawShapeType.TEXT;
|
|
106
|
+
text: string;
|
|
107
|
+
anchor?: TextAnchor;
|
|
108
|
+
};
|
|
109
|
+
export type DrawShapeRectangleToJsonResult = {
|
|
110
|
+
type: DrawShapeType.RECTANGLE;
|
|
111
|
+
} & DrawShapeToJsonBaseResult;
|
|
112
|
+
export type DrawShapeDiamondToJsonResult = {
|
|
113
|
+
type: DrawShapeType.DIAMOND;
|
|
114
|
+
} & DrawShapeToJsonBaseResult;
|
|
115
|
+
export type DrawShapeImageToJsonResult = DrawShapeToJsonBaseResult & {
|
|
116
|
+
type: DrawShapeType.IMAGE;
|
|
117
|
+
src: string;
|
|
118
|
+
base64: string;
|
|
119
|
+
};
|
|
120
|
+
export type DrawShapeEllipseToJsonResult = DrawShapeToJsonBaseResult & {
|
|
121
|
+
type: DrawShapeType.ELLIPSE;
|
|
122
|
+
};
|
|
123
|
+
export type DrawShapeCommentToJsonResult = DrawShapeToJsonBaseResult & {
|
|
124
|
+
type: DrawShapeType.COMMENT;
|
|
125
|
+
text: string;
|
|
126
|
+
date: string;
|
|
127
|
+
};
|
|
128
|
+
export type DrawShapePencilToJsonResult = DrawShapeToJsonBaseResult & {
|
|
129
|
+
type: DrawShapeType.PENCIL;
|
|
130
|
+
points: number[];
|
|
131
|
+
};
|
|
132
|
+
export type DrawShapeToJsonResult = DrawShapeArrowToJsonResult | DrawShapeIconToJsonResult | DrawShapeTextToJsonResult | DrawShapeRectangleToJsonResult | DrawShapeDiamondToJsonResult | DrawShapeImageToJsonResult | DrawShapeCommentToJsonResult | DrawShapeEllipseToJsonResult | DrawShapePencilToJsonResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrawShapeType = void 0;
|
|
4
|
+
var DrawShapeType;
|
|
5
|
+
(function (DrawShapeType) {
|
|
6
|
+
DrawShapeType["RECTANGLE"] = "RECTANGLE";
|
|
7
|
+
DrawShapeType["DIAMOND"] = "DIAMOND";
|
|
8
|
+
DrawShapeType["ELLIPSE"] = "ELLIPSE";
|
|
9
|
+
DrawShapeType["TEXT"] = "TEXT";
|
|
10
|
+
DrawShapeType["ICON"] = "ICON";
|
|
11
|
+
DrawShapeType["IMAGE"] = "IMAGE";
|
|
12
|
+
DrawShapeType["COMMENT"] = "COMMENT";
|
|
13
|
+
DrawShapeType["ARROW"] = "ARROW";
|
|
14
|
+
DrawShapeType["PENCIL"] = "PENCIL";
|
|
15
|
+
})(DrawShapeType || (exports.DrawShapeType = DrawShapeType = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum ErrorType {
|
|
2
|
+
apiError = "api_error",
|
|
3
|
+
authError = "authentication_error",
|
|
4
|
+
resourceError = "resource_error"
|
|
5
|
+
}
|
|
6
|
+
export declare enum Code {
|
|
7
|
+
tokenFailure = "token_authentication_failure",
|
|
8
|
+
authenticationFailure = "authentication_credentials_failure",
|
|
9
|
+
accessNotAllowed = "access_not_allowed",
|
|
10
|
+
notFound = "not_found",
|
|
11
|
+
validationError = "resource_validation_error",
|
|
12
|
+
constraintError = "resource_constraint_error",
|
|
13
|
+
internalServerError = "internal_server_error",
|
|
14
|
+
serviceUnavailable = "service_unavailable",
|
|
15
|
+
invalidData = "invalid_data",
|
|
16
|
+
notImplemented = "not_implemented",
|
|
17
|
+
retrospectiveCannotBeModifiedWhenCompleted = "retrospective_cannot_be_modified_when_completed",
|
|
18
|
+
atlasDocumentLimitReached = "atlas_document_limit_reached",
|
|
19
|
+
boardCardDocumentLimitReached = "board_card_document_limit_reached",
|
|
20
|
+
boardCardMoveInvalidDestination = "board_card_move_invalid_destination"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Code = exports.ErrorType = void 0;
|
|
4
|
+
var ErrorType;
|
|
5
|
+
(function (ErrorType) {
|
|
6
|
+
ErrorType["apiError"] = "api_error";
|
|
7
|
+
ErrorType["authError"] = "authentication_error";
|
|
8
|
+
ErrorType["resourceError"] = "resource_error";
|
|
9
|
+
})(ErrorType || (exports.ErrorType = ErrorType = {}));
|
|
10
|
+
var Code;
|
|
11
|
+
(function (Code) {
|
|
12
|
+
Code["tokenFailure"] = "token_authentication_failure";
|
|
13
|
+
Code["authenticationFailure"] = "authentication_credentials_failure";
|
|
14
|
+
Code["accessNotAllowed"] = "access_not_allowed";
|
|
15
|
+
Code["notFound"] = "not_found";
|
|
16
|
+
Code["validationError"] = "resource_validation_error";
|
|
17
|
+
Code["constraintError"] = "resource_constraint_error";
|
|
18
|
+
Code["internalServerError"] = "internal_server_error";
|
|
19
|
+
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
|
+
Code["invalidData"] = "invalid_data";
|
|
21
|
+
Code["notImplemented"] = "not_implemented";
|
|
22
|
+
Code["retrospectiveCannotBeModifiedWhenCompleted"] = "retrospective_cannot_be_modified_when_completed";
|
|
23
|
+
Code["atlasDocumentLimitReached"] = "atlas_document_limit_reached";
|
|
24
|
+
Code["boardCardDocumentLimitReached"] = "board_card_document_limit_reached";
|
|
25
|
+
Code["boardCardMoveInvalidDestination"] = "board_card_move_invalid_destination";
|
|
26
|
+
})(Code || (exports.Code = Code = {}));
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export declare enum BoardActivityType {
|
|
2
|
+
CARD_CREATE = "CARD_CREATE",
|
|
3
|
+
CARD_UPDATE = "CARD_UPDATE",
|
|
4
|
+
CARD_ARCHIVE = "CARD_ARCHIVE",
|
|
5
|
+
CARD_RESTORE = "CARD_RESTORE",
|
|
6
|
+
CARD_MOVE_COLUMN = "CARD_MOVE_COLUMN",
|
|
7
|
+
CARD_MOVE_BOARD = "CARD_MOVE_BOARD",
|
|
8
|
+
COLUMN_CREATE = "COLUMN_CREATE",
|
|
9
|
+
COLUMN_UPDATE = "COLUMN_UPDATE",
|
|
10
|
+
COLUMN_DELETE = "COLUMN_DELETE",
|
|
11
|
+
COMMENT_CREATE = "COMMENT_CREATE",
|
|
12
|
+
COMMENT_UPDATE = "COMMENT_UPDATE",
|
|
13
|
+
COMMENT_DELETE = "COMMENT_DELETE",
|
|
14
|
+
LABEL_CREATE = "LABEL_CREATE",
|
|
15
|
+
LABEL_DELETE = "LABEL_DELETE",
|
|
16
|
+
LABEL_UPDATE = "LABEL_UPDATE",
|
|
17
|
+
LABEL_ADD = "LABEL_ADD",
|
|
18
|
+
LABEL_REMOVE = "LABEL_REMOVE",
|
|
19
|
+
MEMBER_ADD = "MEMBER_ADD",
|
|
20
|
+
MEMBER_REMOVE = "MEMBER_REMOVE",
|
|
21
|
+
CHECKLIST_CREATE = "CHECKLIST_CREATE",
|
|
22
|
+
CHECKLIST_UPDATE = "CHECKLIST_UPDATE",
|
|
23
|
+
CHECKLIST_DELETE = "CHECKLIST_DELETE",
|
|
24
|
+
CHECKLIST_ITEM_ADD = "CHECKLIST_ITEM_ADD",
|
|
25
|
+
CHECKLIST_ITEM_UPDATE = "CHECKLIST_ITEM_UPDATE",
|
|
26
|
+
CHECKLIST_ITEM_DELETE = "CHECKLIST_ITEM_DELETE",
|
|
27
|
+
DOCUMENT_ADD = "DOCUMENT_ADD",
|
|
28
|
+
DOCUMENT_REMOVE = "DOCUMENT_REMOVE"
|
|
29
|
+
}
|
|
30
|
+
type ValueOf<T> = T[keyof T];
|
|
31
|
+
export type BoardActivityDataContent = ValueOf<{
|
|
32
|
+
[K in BoardActivityType]: {
|
|
33
|
+
type: K;
|
|
34
|
+
payload: BoardActivityData[K];
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
export declare class BoardActivityData implements Record<BoardActivityType, Record<string, string | number | Date | boolean>> {
|
|
38
|
+
[BoardActivityType.CARD_CREATE]: {
|
|
39
|
+
boardCardName: string;
|
|
40
|
+
boardCardId: string;
|
|
41
|
+
boardColumnName: string;
|
|
42
|
+
boardColumnId: string;
|
|
43
|
+
};
|
|
44
|
+
[BoardActivityType.CARD_UPDATE]: {
|
|
45
|
+
boardCardName: string;
|
|
46
|
+
boardCardId: string;
|
|
47
|
+
};
|
|
48
|
+
[BoardActivityType.CARD_ARCHIVE]: {
|
|
49
|
+
boardCardId: string;
|
|
50
|
+
};
|
|
51
|
+
[BoardActivityType.CARD_RESTORE]: {
|
|
52
|
+
boardCardId: string;
|
|
53
|
+
};
|
|
54
|
+
[BoardActivityType.CARD_MOVE_COLUMN]: {
|
|
55
|
+
boardCardName: string;
|
|
56
|
+
boardCardId: string;
|
|
57
|
+
toBoardColumnId: string;
|
|
58
|
+
toBoardColumnName: string;
|
|
59
|
+
};
|
|
60
|
+
[BoardActivityType.CARD_MOVE_BOARD]: {
|
|
61
|
+
boardCardName: string;
|
|
62
|
+
boardCardId: string;
|
|
63
|
+
toBoardColumnId: string;
|
|
64
|
+
toBoardColumnName: string;
|
|
65
|
+
toBoardId: string;
|
|
66
|
+
toBoardName: string;
|
|
67
|
+
};
|
|
68
|
+
[BoardActivityType.COLUMN_CREATE]: {
|
|
69
|
+
boardColumnName: string;
|
|
70
|
+
boardColumnId: string;
|
|
71
|
+
};
|
|
72
|
+
[BoardActivityType.COLUMN_UPDATE]: {
|
|
73
|
+
boardColumnName: string;
|
|
74
|
+
boardColumnId: string;
|
|
75
|
+
};
|
|
76
|
+
[BoardActivityType.COLUMN_DELETE]: {
|
|
77
|
+
boardColumnId: string;
|
|
78
|
+
};
|
|
79
|
+
[BoardActivityType.COMMENT_CREATE]: {
|
|
80
|
+
boardCardCommentId: string;
|
|
81
|
+
boardCardId: string;
|
|
82
|
+
};
|
|
83
|
+
[BoardActivityType.COMMENT_UPDATE]: {
|
|
84
|
+
boardCardCommentId: string;
|
|
85
|
+
fromBoardCardCommentContent: string;
|
|
86
|
+
toBoardCardCommentContent: string;
|
|
87
|
+
boardCardId: string;
|
|
88
|
+
};
|
|
89
|
+
[BoardActivityType.COMMENT_DELETE]: {
|
|
90
|
+
boardCardCommentId: string;
|
|
91
|
+
boardCardId: string;
|
|
92
|
+
};
|
|
93
|
+
[BoardActivityType.LABEL_CREATE]: {
|
|
94
|
+
boardLabelId: string;
|
|
95
|
+
boardLabelName: string;
|
|
96
|
+
boardLabelColor: string;
|
|
97
|
+
};
|
|
98
|
+
[BoardActivityType.LABEL_DELETE]: {
|
|
99
|
+
boardLabelId: string;
|
|
100
|
+
};
|
|
101
|
+
[BoardActivityType.LABEL_UPDATE]: {
|
|
102
|
+
boardLabelId: string;
|
|
103
|
+
boardLabelName: string;
|
|
104
|
+
boardLabelColor: string;
|
|
105
|
+
};
|
|
106
|
+
[BoardActivityType.LABEL_ADD]: {
|
|
107
|
+
boardLabelId: string;
|
|
108
|
+
boardCardId: string;
|
|
109
|
+
boardLabelName: string;
|
|
110
|
+
};
|
|
111
|
+
[BoardActivityType.LABEL_REMOVE]: {
|
|
112
|
+
boardLabelId: string;
|
|
113
|
+
boardCardId: string;
|
|
114
|
+
boardLabelName: string;
|
|
115
|
+
};
|
|
116
|
+
[BoardActivityType.MEMBER_ADD]: {
|
|
117
|
+
boardCardId: string;
|
|
118
|
+
userId: string;
|
|
119
|
+
};
|
|
120
|
+
[BoardActivityType.MEMBER_REMOVE]: {
|
|
121
|
+
boardCardId: string;
|
|
122
|
+
userId: string;
|
|
123
|
+
};
|
|
124
|
+
[BoardActivityType.CHECKLIST_CREATE]: {
|
|
125
|
+
boardCardId: string;
|
|
126
|
+
boardCardChecklistId: string;
|
|
127
|
+
boardCardChecklistName: string;
|
|
128
|
+
};
|
|
129
|
+
[BoardActivityType.CHECKLIST_UPDATE]: {
|
|
130
|
+
boardCardId: string;
|
|
131
|
+
boardCardChecklistId: string;
|
|
132
|
+
boardCardChecklistName: string;
|
|
133
|
+
};
|
|
134
|
+
[BoardActivityType.CHECKLIST_DELETE]: {
|
|
135
|
+
boardCardId: string;
|
|
136
|
+
boardCardChecklistId: string;
|
|
137
|
+
boardCardChecklistName: string;
|
|
138
|
+
};
|
|
139
|
+
[BoardActivityType.CHECKLIST_ITEM_ADD]: {
|
|
140
|
+
boardCardId: string;
|
|
141
|
+
boardCardChecklistId: string;
|
|
142
|
+
boardCardChecklistItemId: string;
|
|
143
|
+
boardCardChecklistItemContent: string;
|
|
144
|
+
boardCardChecklistName: string;
|
|
145
|
+
};
|
|
146
|
+
[BoardActivityType.CHECKLIST_ITEM_UPDATE]: {
|
|
147
|
+
boardCardId: string;
|
|
148
|
+
boardCardChecklistId: string;
|
|
149
|
+
boardCardChecklistItemId: string;
|
|
150
|
+
boardCardChecklistName: string;
|
|
151
|
+
};
|
|
152
|
+
[BoardActivityType.CHECKLIST_ITEM_DELETE]: {
|
|
153
|
+
boardCardId: string;
|
|
154
|
+
boardCardChecklistId: string;
|
|
155
|
+
boardCardChecklistItemId: string;
|
|
156
|
+
boardCardChecklistName: string;
|
|
157
|
+
boardCardChecklistItemContent: string;
|
|
158
|
+
};
|
|
159
|
+
[BoardActivityType.DOCUMENT_ADD]: {
|
|
160
|
+
boardCardId: string;
|
|
161
|
+
boardCardDocumentId: string;
|
|
162
|
+
boardCardDocumentName: string;
|
|
163
|
+
};
|
|
164
|
+
[BoardActivityType.DOCUMENT_REMOVE]: {
|
|
165
|
+
boardCardId: string;
|
|
166
|
+
boardCardDocumentId: string;
|
|
167
|
+
boardCardDocumentName: string;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export {};
|