@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,26 @@
|
|
|
1
|
+
import { Id, Point, DrawSize, DrawStyle, DrawShapeToJsonResult } from '../types/draw.type';
|
|
2
|
+
export type Endpoint = {
|
|
3
|
+
style: DrawArrowEndpointStyle;
|
|
4
|
+
} & ({
|
|
5
|
+
kind: 'free';
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'anchor';
|
|
10
|
+
shapeId: Id;
|
|
11
|
+
relativeX: number;
|
|
12
|
+
relativeY: number;
|
|
13
|
+
});
|
|
14
|
+
export type DrawArrowEndpointStyle = 'arrow' | 'circle' | 'square' | 'diamond' | 'none';
|
|
15
|
+
export type CurvePoint = Point & {
|
|
16
|
+
type: 'straight' | 'curved';
|
|
17
|
+
};
|
|
18
|
+
export declare const rectangleToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
|
|
19
|
+
export declare const diamondToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
|
|
20
|
+
export declare const ellipseToSvg: (position: Point, size: DrawSize, style: DrawStyle) => string;
|
|
21
|
+
export declare const textToSvg: (position: Point, style: DrawStyle, text: string) => string;
|
|
22
|
+
export declare const iconToSvg: (position: Point, size: DrawSize, style: DrawStyle, iconSymbol: string) => string;
|
|
23
|
+
export declare const imageToSvg: (position: Point, size: DrawSize, style: DrawStyle, src: string) => string;
|
|
24
|
+
export declare const commentToSvg: (position: Point, size: DrawSize, style: DrawStyle, id: string) => string;
|
|
25
|
+
export declare const arrowToSvg: (style: DrawStyle, startEndpoint: Endpoint, endEndpoint: Endpoint, fromPos: Point, toPos: Point) => string;
|
|
26
|
+
export declare const sceneToSVG: (shapes: DrawShapeToJsonResult[], width: number, height: number) => string;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sceneToSVG = exports.arrowToSvg = exports.commentToSvg = exports.imageToSvg = exports.iconToSvg = exports.textToSvg = exports.ellipseToSvg = exports.diamondToSvg = exports.rectangleToSvg = void 0;
|
|
4
|
+
const icons_utils_1 = require("./icons.utils");
|
|
5
|
+
const draw_type_1 = require("../types/draw.type");
|
|
6
|
+
const rectangleToSvg = (position, size, style) => {
|
|
7
|
+
const x = position.x - size.width / 2;
|
|
8
|
+
const y = position.y - size.height / 2;
|
|
9
|
+
const width = size.width;
|
|
10
|
+
const height = size.height;
|
|
11
|
+
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
12
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
13
|
+
const centerX = position.x;
|
|
14
|
+
const centerY = position.y;
|
|
15
|
+
return `<rect x="${x}" y="${y}" width="${width}" height="${height}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" rx="${style.cornerRadius}" ry="${style.cornerRadius}" stroke-dasharray="${style.lineDash || 'none'}" transform="rotate(${style.rotation} ${centerX} ${centerY})" />`;
|
|
16
|
+
};
|
|
17
|
+
exports.rectangleToSvg = rectangleToSvg;
|
|
18
|
+
const diamondToSvg = (position, size, style) => {
|
|
19
|
+
const cx = position.x;
|
|
20
|
+
const cy = position.y;
|
|
21
|
+
const halfWidth = size.width / 2;
|
|
22
|
+
const halfHeight = size.height / 2;
|
|
23
|
+
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
24
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
25
|
+
const points = [
|
|
26
|
+
`${cx},${cy - halfHeight}`,
|
|
27
|
+
`${cx + halfWidth},${cy}`,
|
|
28
|
+
`${cx},${cy + halfHeight}`,
|
|
29
|
+
`${cx - halfWidth},${cy}`,
|
|
30
|
+
].join(' ');
|
|
31
|
+
return `<polygon points="${points}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" stroke-dasharray="${style.lineDash || 'none'}" opacity="${style.opacity}" transform="rotate(${style.rotation} ${cx} ${cy})" />`;
|
|
32
|
+
};
|
|
33
|
+
exports.diamondToSvg = diamondToSvg;
|
|
34
|
+
const ellipseToSvg = (position, size, style) => {
|
|
35
|
+
const cx = position.x;
|
|
36
|
+
const cy = position.y;
|
|
37
|
+
const radiusX = size.width / 2;
|
|
38
|
+
const radiusY = size.height / 2;
|
|
39
|
+
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
40
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
41
|
+
return `<ellipse cx="${cx}" cy="${cy}" rx="${radiusX}" ry="${radiusY}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" stroke-dasharray="${style.lineDash || 'none'}" transform="rotate(${style.rotation} ${cx} ${cy})" />`;
|
|
42
|
+
};
|
|
43
|
+
exports.ellipseToSvg = ellipseToSvg;
|
|
44
|
+
const textToSvg = (position, style, text) => {
|
|
45
|
+
const x = position.x;
|
|
46
|
+
const y = position.y;
|
|
47
|
+
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
48
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
49
|
+
return `<text x="${x}" y="${y}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" font-size="${style.fontSize}" font-family="${style.fontFamily}"
|
|
50
|
+
stroke-dasharray="${style.lineDash || 'none'}" text-anchor="middle" dominant-baseline="middle" transform="rotate(${style.rotation} ${x} ${y})">${text}</text>`;
|
|
51
|
+
};
|
|
52
|
+
exports.textToSvg = textToSvg;
|
|
53
|
+
const iconToSvg = (position, size, style, iconSymbol) => {
|
|
54
|
+
const x = position.x;
|
|
55
|
+
const y = position.y;
|
|
56
|
+
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
57
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
58
|
+
const fontSize = Math.min(size.width, size.height) * 0.8;
|
|
59
|
+
return `<text x="${x}" y="${y}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" font-size="${fontSize}" font-family="Arial" text-anchor="middle" dominant-baseline="middle" transform="rotate(${style.rotation} ${x} ${y})">${iconSymbol}</text>`;
|
|
60
|
+
};
|
|
61
|
+
exports.iconToSvg = iconToSvg;
|
|
62
|
+
const imageToSvg = (position, size, style, src) => {
|
|
63
|
+
const x = position.x - size.width / 2;
|
|
64
|
+
const y = position.y - size.height / 2;
|
|
65
|
+
const width = size.width;
|
|
66
|
+
const height = size.height;
|
|
67
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
68
|
+
const centerX = position.x;
|
|
69
|
+
const centerY = position.y;
|
|
70
|
+
return `<image x="${x}" y="${y}" width="${width}" height="${height}" href="${src}" opacity="${style.opacity}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" rx="${style.cornerRadius}" ry="${style.cornerRadius}" transform="rotate(${style.rotation} ${centerX} ${centerY})" />`;
|
|
71
|
+
};
|
|
72
|
+
exports.imageToSvg = imageToSvg;
|
|
73
|
+
const commentToSvg = (position, size, style, id) => {
|
|
74
|
+
const cx = position.x;
|
|
75
|
+
const cy = position.y;
|
|
76
|
+
const radius = size.width / 2;
|
|
77
|
+
const fillColor = style.fillColor === 'none' ? 'transparent' : style.fillColor;
|
|
78
|
+
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
79
|
+
const fontSize = size.width * 0.6;
|
|
80
|
+
const textX = cx;
|
|
81
|
+
const textY = cy + fontSize * 0.35;
|
|
82
|
+
return `
|
|
83
|
+
<g opacity="${style.opacity}" transform="rotate(${style.rotation} ${cx} ${cy})">
|
|
84
|
+
<defs>
|
|
85
|
+
<filter id="comment-shadow-${id}" x="-50%" y="-50%" width="200%" height="200%">
|
|
86
|
+
<feDropShadow dx="2" dy="2" stdDeviation="5" flood-color="black" flood-opacity="0.3"/>
|
|
87
|
+
</filter>
|
|
88
|
+
</defs>
|
|
89
|
+
<circle cx="${cx}" cy="${cy}" r="${radius}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" filter="url(#comment-shadow-${id})" />
|
|
90
|
+
<text x="${textX}" y="${textY}" fill="white" font-size="${fontSize}" font-family="Arial" text-anchor="middle" dominant-baseline="middle" font-weight="bold">!</text>
|
|
91
|
+
</g>`;
|
|
92
|
+
};
|
|
93
|
+
exports.commentToSvg = commentToSvg;
|
|
94
|
+
const renderEndpointStyleSvg = (x, y, style, angle, strokeColor, fillColor, strokeWidth) => {
|
|
95
|
+
switch (style) {
|
|
96
|
+
case 'circle':
|
|
97
|
+
return `<circle cx="${x}" cy="${y}" r="6" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${strokeWidth}" />`;
|
|
98
|
+
case 'square':
|
|
99
|
+
const squareX = x - 6;
|
|
100
|
+
const squareY = y - 6;
|
|
101
|
+
return `<rect x="${squareX}" y="${squareY}" width="12" height="12" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${strokeWidth}" transform="rotate(${angle * (180 / Math.PI)} ${x} ${y})" />`;
|
|
102
|
+
case 'diamond':
|
|
103
|
+
return `<polygon points="${x},${y - 6} ${x + 6},${y} ${x},${y + 6} ${x - 6},${y}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${strokeWidth}" transform="rotate(${angle * (180 / Math.PI)} ${x} ${y})" />`;
|
|
104
|
+
case 'arrow':
|
|
105
|
+
const arrowSize = 8;
|
|
106
|
+
const x1 = x - arrowSize * Math.cos(angle - Math.PI / 6);
|
|
107
|
+
const y1 = y - arrowSize * Math.sin(angle - Math.PI / 6);
|
|
108
|
+
const x2 = x - arrowSize * Math.cos(angle + Math.PI / 6);
|
|
109
|
+
const y2 = y - arrowSize * Math.sin(angle + Math.PI / 6);
|
|
110
|
+
return `<polygon points="${x},${y} ${x1},${y1} ${x2},${y2}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${strokeWidth}" />`;
|
|
111
|
+
case 'none':
|
|
112
|
+
default:
|
|
113
|
+
return '';
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const arrowToSvg = (style, startEndpoint, endEndpoint, fromPos, toPos) => {
|
|
117
|
+
const angle = Math.atan2(toPos.y - fromPos.y, toPos.x - fromPos.x);
|
|
118
|
+
let svg = `<g opacity="${style.opacity}">`;
|
|
119
|
+
svg += `<line x1="${fromPos.x}" y1="${fromPos.y}" x2="${toPos.x}" y2="${toPos.y}" stroke="${style.strokeColor}" stroke-width="${style.strokeWidth}" />`;
|
|
120
|
+
svg += renderEndpointStyleSvg(fromPos.x, fromPos.y, startEndpoint.style, angle + Math.PI, style.strokeColor, style.fillColor, style.strokeWidth);
|
|
121
|
+
svg += renderEndpointStyleSvg(toPos.x, toPos.y, endEndpoint.style, angle, style.strokeColor, style.fillColor, style.strokeWidth);
|
|
122
|
+
svg += '</g>';
|
|
123
|
+
return svg;
|
|
124
|
+
};
|
|
125
|
+
exports.arrowToSvg = arrowToSvg;
|
|
126
|
+
const sceneToSVG = (shapes, width, height) => {
|
|
127
|
+
const shapeEls = shapes
|
|
128
|
+
.sort((a, b) => (a.zIndex || 0) - (b.zIndex || 0))
|
|
129
|
+
.map((s) => {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
switch (s.type) {
|
|
132
|
+
case draw_type_1.DrawShapeType.RECTANGLE:
|
|
133
|
+
return (0, exports.rectangleToSvg)(s.position, s.size, s.style);
|
|
134
|
+
case draw_type_1.DrawShapeType.DIAMOND:
|
|
135
|
+
return (0, exports.diamondToSvg)(s.position, s.size, s.style);
|
|
136
|
+
case draw_type_1.DrawShapeType.ELLIPSE:
|
|
137
|
+
return (0, exports.ellipseToSvg)(s.position, s.size, s.style);
|
|
138
|
+
case draw_type_1.DrawShapeType.TEXT:
|
|
139
|
+
return (0, exports.textToSvg)(s.position, s.style, s.text || '');
|
|
140
|
+
case draw_type_1.DrawShapeType.ICON:
|
|
141
|
+
const iconSymbol = icons_utils_1.ICON_LIBRARY[s.iconType] || '';
|
|
142
|
+
return (0, exports.iconToSvg)(s.position, s.size, s.style, iconSymbol);
|
|
143
|
+
case draw_type_1.DrawShapeType.IMAGE:
|
|
144
|
+
return (0, exports.imageToSvg)(s.position, s.size, s.style, s.src);
|
|
145
|
+
case draw_type_1.DrawShapeType.COMMENT:
|
|
146
|
+
return (0, exports.commentToSvg)(s.position, s.size, s.style, s.id);
|
|
147
|
+
case draw_type_1.DrawShapeType.ARROW:
|
|
148
|
+
if (s.startEndpoint && s.endEndpoint) {
|
|
149
|
+
const fromPos = s.startEndpoint.kind === 'anchor'
|
|
150
|
+
? (_a = shapes.find((shape) => { var _a; return shape.id === ((_a = s.startEndpoint) === null || _a === void 0 ? void 0 : _a.shapeId); })) === null || _a === void 0 ? void 0 : _a.position
|
|
151
|
+
: {
|
|
152
|
+
x: s.startEndpoint.x,
|
|
153
|
+
y: s.startEndpoint.y,
|
|
154
|
+
};
|
|
155
|
+
const toPos = s.endEndpoint.kind === 'anchor'
|
|
156
|
+
? (_b = shapes.find((shape) => { var _a; return shape.id === ((_a = s.endEndpoint) === null || _a === void 0 ? void 0 : _a.shapeId); })) === null || _b === void 0 ? void 0 : _b.position
|
|
157
|
+
: {
|
|
158
|
+
x: s.endEndpoint.x,
|
|
159
|
+
y: s.endEndpoint.y,
|
|
160
|
+
};
|
|
161
|
+
if (!fromPos || !toPos)
|
|
162
|
+
return '';
|
|
163
|
+
return (0, exports.arrowToSvg)(s.style, s.startEndpoint, s.endEndpoint, fromPos, toPos);
|
|
164
|
+
}
|
|
165
|
+
return '';
|
|
166
|
+
default:
|
|
167
|
+
return '';
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
const defs = `
|
|
171
|
+
<defs>
|
|
172
|
+
<marker id="arrow" markerWidth="10" markerHeight="10" refX="10" refY="5" orient="auto-start-reverse">
|
|
173
|
+
<path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
|
|
174
|
+
</marker>
|
|
175
|
+
</defs>`;
|
|
176
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">
|
|
177
|
+
${defs}
|
|
178
|
+
${shapeEls.join('\n')}
|
|
179
|
+
</svg>`;
|
|
180
|
+
};
|
|
181
|
+
exports.sceneToSVG = sceneToSVG;
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@abyss-project/tools",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Core package to interact with Abyss-Project Tools",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://gitlab.com/abyss-group"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "scylla",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"axios": "^1.2.2",
|
|
16
|
+
"axios-retry": "^3.5.0",
|
|
17
|
+
"date-fns": "^2.30.0",
|
|
18
|
+
"dayjs": "^1.10.7",
|
|
19
|
+
"jsonwebtoken": "^8.5.1",
|
|
20
|
+
"reflect-metadata": "^0.1.13",
|
|
21
|
+
"ts-node": "^10.4.0",
|
|
22
|
+
"ts-node-dev": "^1.1.1",
|
|
23
|
+
"uuid": "^8.3.2"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/express-serve-static-core": "^4.17.31",
|
|
27
|
+
"@types/jsonwebtoken": "^8.5.0",
|
|
28
|
+
"@types/node": "^20.11.0",
|
|
29
|
+
"@types/uuid": "^8.3.0",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
31
|
+
"@typescript-eslint/parser": "7.3.1",
|
|
32
|
+
"eslint": "^7.28.0",
|
|
33
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
34
|
+
"eslint-config-prettier": "^8.3.0",
|
|
35
|
+
"eslint-config-standard": "^16.0.3",
|
|
36
|
+
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
37
|
+
"eslint-plugin-import": "^2.23.4",
|
|
38
|
+
"eslint-plugin-node": "^11.1.0",
|
|
39
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
40
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
41
|
+
"prettier": "2.3.1",
|
|
42
|
+
"typescript": "5.4.2",
|
|
43
|
+
"tsc-watch": "^4.6.2"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
47
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
48
|
+
"tsc": "tsc",
|
|
49
|
+
"build": "tsc",
|
|
50
|
+
"prepublish": "tsc",
|
|
51
|
+
"dev": "tsc --watch"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AbyssToolsCore,
|
|
3
|
+
IActivateUserServiceAbyssAdminBody,
|
|
4
|
+
IActivateUserServiceAbyssAdminResponse,
|
|
5
|
+
ISyncOrganizationAbyssAdminBody,
|
|
6
|
+
ISyncOrganizationAbyssAdminResponse,
|
|
7
|
+
ISyncProjectAbyssAdminBody,
|
|
8
|
+
ISyncProjectAbyssAdminResponse,
|
|
9
|
+
} from '..';
|
|
10
|
+
|
|
11
|
+
export const deleteUserAbyssAdmin = async (
|
|
12
|
+
userId: string,
|
|
13
|
+
): Promise<void> => {
|
|
14
|
+
await AbyssToolsCore.axios.delete(`abyss/admin/user/${userId}`);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const activateUserServiceAbyssAdmin = async (
|
|
18
|
+
body: IActivateUserServiceAbyssAdminBody,
|
|
19
|
+
): Promise<IActivateUserServiceAbyssAdminResponse> => {
|
|
20
|
+
return (
|
|
21
|
+
await AbyssToolsCore.axios.post<IActivateUserServiceAbyssAdminResponse>(
|
|
22
|
+
`abyss/admin/user/activate-service`,
|
|
23
|
+
body,
|
|
24
|
+
)
|
|
25
|
+
).data;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const syncOrganizationAbyssAdmin = async (
|
|
29
|
+
body: ISyncOrganizationAbyssAdminBody,
|
|
30
|
+
): Promise<ISyncOrganizationAbyssAdminResponse> => {
|
|
31
|
+
return (
|
|
32
|
+
await AbyssToolsCore.axios.post<ISyncOrganizationAbyssAdminResponse>(
|
|
33
|
+
`abyss/admin/organization/sync`,
|
|
34
|
+
body,
|
|
35
|
+
)
|
|
36
|
+
).data;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const deleteOrganizationAbyssAdmin = async (
|
|
40
|
+
organizationId: string,
|
|
41
|
+
): Promise<void> => {
|
|
42
|
+
await AbyssToolsCore.axios.delete(`abyss/admin/organization/${organizationId}`);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const syncProjectAbyssAdmin = async (
|
|
46
|
+
body: ISyncProjectAbyssAdminBody,
|
|
47
|
+
): Promise<ISyncProjectAbyssAdminResponse> => {
|
|
48
|
+
return (
|
|
49
|
+
await AbyssToolsCore.axios.post<ISyncProjectAbyssAdminResponse>(
|
|
50
|
+
`abyss/admin/project/sync`,
|
|
51
|
+
body,
|
|
52
|
+
)
|
|
53
|
+
).data;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const deleteProjectAbyssAdmin = async (
|
|
57
|
+
projectId: string,
|
|
58
|
+
): Promise<void> => {
|
|
59
|
+
await AbyssToolsCore.axios.delete(`abyss/admin/project/${projectId}`);
|
|
60
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
IDeleteAtlasDocumentParams,
|
|
4
|
+
IDeleteAtlasDocumentResponse,
|
|
5
|
+
IGetAtlasDocumentParams,
|
|
6
|
+
IGetAtlasDocumentResponse,
|
|
7
|
+
IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
8
|
+
IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
9
|
+
IGetUploadPreSignedUrlAtlasDocumentResponse,
|
|
10
|
+
IPaginateAtlasDocumentParams,
|
|
11
|
+
IPaginateAtlasDocumentQuery,
|
|
12
|
+
IPaginateAtlasDocumentResponse,
|
|
13
|
+
IListAtlasDocumentParams,
|
|
14
|
+
IListAtlasDocumentResponse,
|
|
15
|
+
} from '../types';
|
|
16
|
+
|
|
17
|
+
export const getAtlasDocument = async (
|
|
18
|
+
params: IGetAtlasDocumentParams,
|
|
19
|
+
): Promise<IGetAtlasDocumentResponse> => {
|
|
20
|
+
return (
|
|
21
|
+
await AbyssToolsCore.axios.get<IGetAtlasDocumentResponse>(
|
|
22
|
+
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
23
|
+
)
|
|
24
|
+
).data;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const deleteAtlasDocument = async (
|
|
28
|
+
params: IDeleteAtlasDocumentParams,
|
|
29
|
+
): Promise<IDeleteAtlasDocumentResponse> => {
|
|
30
|
+
return (
|
|
31
|
+
await AbyssToolsCore.axios.delete<IDeleteAtlasDocumentResponse>(
|
|
32
|
+
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
33
|
+
)
|
|
34
|
+
).data;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const getUploadPreSignedUrlAtlasDocument = async (
|
|
38
|
+
params: IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
39
|
+
body: IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
40
|
+
): Promise<IGetUploadPreSignedUrlAtlasDocumentResponse> => {
|
|
41
|
+
return (
|
|
42
|
+
await AbyssToolsCore.axios.post<IGetUploadPreSignedUrlAtlasDocumentResponse>(
|
|
43
|
+
`atlas/${params.atlasId}/document/${params.atlasPageId}`,
|
|
44
|
+
body,
|
|
45
|
+
)
|
|
46
|
+
).data;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const paginateAtlasDocument = async (
|
|
50
|
+
params: IPaginateAtlasDocumentParams,
|
|
51
|
+
query?: IPaginateAtlasDocumentQuery,
|
|
52
|
+
): Promise<IPaginateAtlasDocumentResponse> => {
|
|
53
|
+
return (
|
|
54
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasDocumentResponse>(`atlas/${params.atlasId}/document`, {
|
|
55
|
+
params: query,
|
|
56
|
+
})
|
|
57
|
+
).data;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const listAtlasDocument = async (
|
|
61
|
+
params: IListAtlasDocumentParams,
|
|
62
|
+
): Promise<IListAtlasDocumentResponse> => {
|
|
63
|
+
return (
|
|
64
|
+
await AbyssToolsCore.axios.get<IListAtlasDocumentResponse>(
|
|
65
|
+
`atlas/${params.atlasId}/document/page/${params.atlasPageId}`,
|
|
66
|
+
)
|
|
67
|
+
).data;
|
|
68
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateAtlasGroupBody,
|
|
4
|
+
ICreateAtlasGroupParams,
|
|
5
|
+
ICreateAtlasGroupResponse,
|
|
6
|
+
IDeleteAtlasGroupParams,
|
|
7
|
+
IDeleteAtlasGroupResponse,
|
|
8
|
+
IGetAtlasGroupParams,
|
|
9
|
+
IGetAtlasGroupResponse,
|
|
10
|
+
IPaginateAtlasGroupParams,
|
|
11
|
+
IPaginateAtlasGroupQuery,
|
|
12
|
+
IPaginateAtlasGroupResponse,
|
|
13
|
+
IUpdateAtlasGroupBody,
|
|
14
|
+
IUpdateAtlasGroupParams,
|
|
15
|
+
IUpdateAtlasGroupResponse,
|
|
16
|
+
} from '../types';
|
|
17
|
+
|
|
18
|
+
export const paginateAtlasGroup = async (
|
|
19
|
+
params: IPaginateAtlasGroupParams,
|
|
20
|
+
query: IPaginateAtlasGroupQuery,
|
|
21
|
+
): Promise<IPaginateAtlasGroupResponse> => {
|
|
22
|
+
return (
|
|
23
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasGroupResponse>(
|
|
24
|
+
`atlas/${params.atlasId}/group/paginate`,
|
|
25
|
+
{ params: query },
|
|
26
|
+
)
|
|
27
|
+
).data;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const getAtlasGroup = async (
|
|
31
|
+
params: IGetAtlasGroupParams,
|
|
32
|
+
): Promise<IGetAtlasGroupResponse> => {
|
|
33
|
+
return (
|
|
34
|
+
await AbyssToolsCore.axios.get<IGetAtlasGroupResponse>(
|
|
35
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
36
|
+
)
|
|
37
|
+
).data;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const deleteAtlasGroup = async (
|
|
41
|
+
params: IDeleteAtlasGroupParams,
|
|
42
|
+
): Promise<IDeleteAtlasGroupResponse> => {
|
|
43
|
+
return (
|
|
44
|
+
await AbyssToolsCore.axios.delete<IDeleteAtlasGroupResponse>(
|
|
45
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
46
|
+
)
|
|
47
|
+
).data;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const updateAtlasGroup = async (
|
|
51
|
+
params: IUpdateAtlasGroupParams,
|
|
52
|
+
body: IUpdateAtlasGroupBody,
|
|
53
|
+
): Promise<IUpdateAtlasGroupResponse> => {
|
|
54
|
+
return (
|
|
55
|
+
await AbyssToolsCore.axios.put<IUpdateAtlasGroupResponse>(
|
|
56
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
57
|
+
body,
|
|
58
|
+
)
|
|
59
|
+
).data;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const createAtlasGroup = async (
|
|
63
|
+
params: ICreateAtlasGroupParams,
|
|
64
|
+
body: ICreateAtlasGroupBody,
|
|
65
|
+
): Promise<ICreateAtlasGroupResponse> => {
|
|
66
|
+
return (
|
|
67
|
+
await AbyssToolsCore.axios.post<ICreateAtlasGroupResponse>(`atlas/${params.atlasId}/group`, body)
|
|
68
|
+
).data;
|
|
69
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateAtlasPageBody,
|
|
4
|
+
ICreateAtlasPageParams,
|
|
5
|
+
ICreateAtlasPageResponse,
|
|
6
|
+
IDeleteAtlasPageParams,
|
|
7
|
+
IDeleteAtlasPageResponse,
|
|
8
|
+
IGetAtlasPageParams,
|
|
9
|
+
IGetAtlasPageResponse,
|
|
10
|
+
IPaginateAtlasPageParams,
|
|
11
|
+
IPaginateAtlasPageQuery,
|
|
12
|
+
IPaginateAtlasPageResponse,
|
|
13
|
+
IUpdateAtlasPageBody,
|
|
14
|
+
IUpdateAtlasPageParams,
|
|
15
|
+
IUpdateAtlasPageResponse,
|
|
16
|
+
IUpdateAtlasPageContentParams,
|
|
17
|
+
IUpdateAtlasPageContentBody,
|
|
18
|
+
IUpdateAtlasPageContentResponse,
|
|
19
|
+
ISearchAtlasContentParams,
|
|
20
|
+
ISearchAtlasContentQuery,
|
|
21
|
+
ISearchAtlasContentResponse,
|
|
22
|
+
IGetAtlasPageContentHistoryParams,
|
|
23
|
+
IGetAtlasPageContentHistoryQuery,
|
|
24
|
+
IGetAtlasPageContentHistoryResponse,
|
|
25
|
+
IRestoreAtlasPageContentParams,
|
|
26
|
+
IRestoreAtlasPageContentResponse,
|
|
27
|
+
} from '../types';
|
|
28
|
+
|
|
29
|
+
export const paginateAtlasPage = async (
|
|
30
|
+
params: IPaginateAtlasPageParams,
|
|
31
|
+
query: IPaginateAtlasPageQuery,
|
|
32
|
+
): Promise<IPaginateAtlasPageResponse> => {
|
|
33
|
+
return (
|
|
34
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasPageResponse>(`atlas/${params.atlasId}/page/paginate`, {
|
|
35
|
+
params: query,
|
|
36
|
+
})
|
|
37
|
+
).data;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const getAtlasPage = async (params: IGetAtlasPageParams): Promise<IGetAtlasPageResponse> => {
|
|
41
|
+
return (
|
|
42
|
+
await AbyssToolsCore.axios.get<IGetAtlasPageResponse>(
|
|
43
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}`,
|
|
44
|
+
)
|
|
45
|
+
).data;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const deleteAtlasPage = async (
|
|
49
|
+
params: IDeleteAtlasPageParams,
|
|
50
|
+
): Promise<IDeleteAtlasPageResponse> => {
|
|
51
|
+
return (
|
|
52
|
+
await AbyssToolsCore.axios.delete<IDeleteAtlasPageResponse>(
|
|
53
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}`,
|
|
54
|
+
)
|
|
55
|
+
).data;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const updateAtlasPage = async (
|
|
59
|
+
params: IUpdateAtlasPageParams,
|
|
60
|
+
body: IUpdateAtlasPageBody,
|
|
61
|
+
): Promise<IUpdateAtlasPageResponse> => {
|
|
62
|
+
return (
|
|
63
|
+
await AbyssToolsCore.axios.put<IUpdateAtlasPageResponse>(
|
|
64
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}`,
|
|
65
|
+
body,
|
|
66
|
+
)
|
|
67
|
+
).data;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const createAtlasPage = async (
|
|
71
|
+
params: ICreateAtlasPageParams,
|
|
72
|
+
body: ICreateAtlasPageBody,
|
|
73
|
+
): Promise<ICreateAtlasPageResponse> => {
|
|
74
|
+
return (
|
|
75
|
+
await AbyssToolsCore.axios.post<ICreateAtlasPageResponse>(`atlas/${params.atlasId}/page`, body)
|
|
76
|
+
).data;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const updateAtlasPageContent = async (
|
|
80
|
+
params: IUpdateAtlasPageContentParams,
|
|
81
|
+
body: IUpdateAtlasPageContentBody,
|
|
82
|
+
): Promise<IUpdateAtlasPageContentResponse> => {
|
|
83
|
+
return (
|
|
84
|
+
await AbyssToolsCore.axios.put<IUpdateAtlasPageContentResponse>(
|
|
85
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}/content`,
|
|
86
|
+
body,
|
|
87
|
+
)
|
|
88
|
+
).data;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const searchAtlasContent = async (
|
|
92
|
+
params: ISearchAtlasContentParams,
|
|
93
|
+
query: ISearchAtlasContentQuery,
|
|
94
|
+
): Promise<ISearchAtlasContentResponse> => {
|
|
95
|
+
return (
|
|
96
|
+
await AbyssToolsCore.axios.get<ISearchAtlasContentResponse>(`atlas/${params.atlasId}/page/search`, {
|
|
97
|
+
params: query,
|
|
98
|
+
})
|
|
99
|
+
).data;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const getAtlasPageContentHistory = async (
|
|
103
|
+
params: IGetAtlasPageContentHistoryParams,
|
|
104
|
+
query: IGetAtlasPageContentHistoryQuery,
|
|
105
|
+
): Promise<IGetAtlasPageContentHistoryResponse> => {
|
|
106
|
+
return (
|
|
107
|
+
await AbyssToolsCore.axios.get<IGetAtlasPageContentHistoryResponse>(
|
|
108
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}/content/history`,
|
|
109
|
+
{
|
|
110
|
+
params: query,
|
|
111
|
+
},
|
|
112
|
+
)
|
|
113
|
+
).data;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const restoreAtlasPageContent = async (
|
|
117
|
+
params: IRestoreAtlasPageContentParams,
|
|
118
|
+
): Promise<IRestoreAtlasPageContentResponse> => {
|
|
119
|
+
return (
|
|
120
|
+
await AbyssToolsCore.axios.put<IRestoreAtlasPageContentResponse>(
|
|
121
|
+
`atlas/${params.atlasId}/page/${params.atlasPageId}/content/restore/${params.version}`,
|
|
122
|
+
)
|
|
123
|
+
).data;
|
|
124
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateAtlasBody,
|
|
4
|
+
ICreateAtlasResponse,
|
|
5
|
+
ICreateForProjectAtlasParams,
|
|
6
|
+
IDeleteAtlasParams,
|
|
7
|
+
IDeleteAtlasResponse,
|
|
8
|
+
IGetAtlasParams,
|
|
9
|
+
IGetAtlasResponse,
|
|
10
|
+
IPaginateAtlasQuery,
|
|
11
|
+
IPaginateAtlasResponse,
|
|
12
|
+
IPaginateProjectAtlasParams,
|
|
13
|
+
IUpdateAtlasBody,
|
|
14
|
+
IUpdateAtlasParams,
|
|
15
|
+
IUpdateAtlasResponse,
|
|
16
|
+
} from '../types';
|
|
17
|
+
|
|
18
|
+
export const paginateAtlas = async (
|
|
19
|
+
query: IPaginateAtlasQuery,
|
|
20
|
+
): Promise<IPaginateAtlasResponse> => {
|
|
21
|
+
return (await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(`atlas/paginate`, { params: query }))
|
|
22
|
+
.data;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const paginateProjectAtlas = async (
|
|
26
|
+
params: IPaginateProjectAtlasParams,
|
|
27
|
+
query: IPaginateAtlasQuery,
|
|
28
|
+
): Promise<IPaginateAtlasResponse> => {
|
|
29
|
+
return (
|
|
30
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(
|
|
31
|
+
`project/${params.projectId}/atlas/paginate`,
|
|
32
|
+
{
|
|
33
|
+
params: query,
|
|
34
|
+
},
|
|
35
|
+
)
|
|
36
|
+
).data;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const getAtlas = async (params: IGetAtlasParams): Promise<IGetAtlasResponse> => {
|
|
40
|
+
return (await AbyssToolsCore.axios.get<IGetAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const deleteAtlas = async (params: IDeleteAtlasParams): Promise<IDeleteAtlasResponse> => {
|
|
44
|
+
return (await AbyssToolsCore.axios.delete<IDeleteAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const updateAtlas = async (
|
|
48
|
+
params: IUpdateAtlasParams,
|
|
49
|
+
body: IUpdateAtlasBody,
|
|
50
|
+
): Promise<IUpdateAtlasResponse> => {
|
|
51
|
+
return (await AbyssToolsCore.axios.put<IUpdateAtlasResponse>(`atlas/${params.atlasId}`, body)).data;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const createAtlas = async (body: ICreateAtlasBody): Promise<ICreateAtlasResponse> => {
|
|
55
|
+
return (await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas`, body)).data;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const createForProjectAtlas = async (
|
|
59
|
+
params: ICreateForProjectAtlasParams,
|
|
60
|
+
body: ICreateAtlasBody,
|
|
61
|
+
): Promise<ICreateAtlasResponse> => {
|
|
62
|
+
return (
|
|
63
|
+
await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas/project/${params.projectId}`, body)
|
|
64
|
+
).data;
|
|
65
|
+
};
|