@abyss-project/tools 1.0.0 → 1.0.1
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 -33
- package/.prettierrc +5 -5
- package/README.md +32 -0
- package/dist/api/abyss.admin.api.d.ts +2 -1
- package/dist/api/abyss.admin.api.js +6 -1
- package/dist/api/abyss.admin.api.js.map +1 -0
- package/dist/api/atlas-document.api.js +1 -0
- package/dist/api/atlas-document.api.js.map +1 -0
- package/dist/api/atlas-group.api.js +1 -0
- package/dist/api/atlas-group.api.js.map +1 -0
- package/dist/api/atlas-page-content.api.js +1 -0
- package/dist/api/atlas-page-content.api.js.map +1 -0
- package/dist/api/atlas-page.api.js +1 -0
- package/dist/api/atlas-page.api.js.map +1 -0
- package/dist/api/atlas.api.d.ts +9 -2
- package/dist/api/atlas.api.js +17 -4
- package/dist/api/atlas.api.js.map +1 -0
- package/dist/api/atlas.public.api.js +1 -0
- package/dist/api/atlas.public.api.js.map +1 -0
- package/dist/api/board-card-checklist.api.js +1 -0
- package/dist/api/board-card-checklist.api.js.map +1 -0
- package/dist/api/board-card-comment.api.js +1 -0
- package/dist/api/board-card-comment.api.js.map +1 -0
- package/dist/api/board-card-document.api.js +1 -0
- package/dist/api/board-card-document.api.js.map +1 -0
- package/dist/api/board-card.api.js +1 -0
- package/dist/api/board-card.api.js.map +1 -0
- package/dist/api/board-column.api.js +1 -0
- package/dist/api/board-column.api.js.map +1 -0
- package/dist/api/board-label.api.js +1 -0
- package/dist/api/board-label.api.js.map +1 -0
- package/dist/api/board.api.d.ts +13 -3
- package/dist/api/board.api.js +23 -6
- package/dist/api/board.api.js.map +1 -0
- package/dist/api/draw.api.d.ts +9 -2
- package/dist/api/draw.api.js +17 -4
- package/dist/api/draw.api.js.map +1 -0
- package/dist/api/draw.public.api.js +1 -0
- package/dist/api/draw.public.api.js.map +1 -0
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.js +4 -1
- package/dist/api/index.js.map +1 -0
- package/dist/api/memo.api.d.ts +9 -2
- package/dist/api/memo.api.js +17 -4
- package/dist/api/memo.api.js.map +1 -0
- package/dist/api/metrics.api.d.ts +2 -1
- package/dist/api/metrics.api.js +6 -1
- package/dist/api/metrics.api.js.map +1 -0
- package/dist/api/organization.api.d.ts +6 -0
- package/dist/api/organization.api.js +9 -0
- package/dist/api/organization.api.js.map +1 -0
- package/dist/api/pdf.api.d.ts +15 -0
- package/dist/api/pdf.api.js +61 -0
- package/dist/api/pdf.api.js.map +1 -0
- package/dist/api/pdf.public.api.d.ts +8 -0
- package/dist/api/pdf.public.api.js +33 -0
- package/dist/api/pdf.public.api.js.map +1 -0
- package/dist/api/rcb.api.d.ts +72 -0
- package/dist/api/rcb.api.js +400 -0
- package/dist/api/rcb.api.js.map +1 -0
- package/dist/api/retrospective-card.api.js +1 -0
- package/dist/api/retrospective-card.api.js.map +1 -0
- package/dist/api/retrospective-member.api.js +1 -0
- package/dist/api/retrospective-member.api.js.map +1 -0
- package/dist/api/retrospective-section.api.js +1 -0
- package/dist/api/retrospective-section.api.js.map +1 -0
- package/dist/api/retrospective.api.d.ts +9 -2
- package/dist/api/retrospective.api.js +18 -5
- package/dist/api/retrospective.api.js.map +1 -0
- package/dist/api/retrospective.public.api.js +1 -0
- package/dist/api/retrospective.public.api.js.map +1 -0
- package/dist/api/short-link.admin.api.js +1 -0
- package/dist/api/short-link.admin.api.js.map +1 -0
- package/dist/api/short-link.api.d.ts +9 -2
- package/dist/api/short-link.api.js +15 -2
- package/dist/api/short-link.api.js.map +1 -0
- package/dist/api/short-link.public.api.js +1 -0
- package/dist/api/short-link.public.api.js.map +1 -0
- package/dist/api/tag.api.d.ts +9 -0
- package/dist/api/tag.api.js +37 -0
- package/dist/api/tag.api.js.map +1 -0
- package/dist/api/user-tag.api.d.ts +3 -3
- package/dist/api/user-tag.api.js +5 -4
- package/dist/api/user-tag.api.js.map +1 -0
- package/dist/constants/atlas.constants.js +1 -0
- package/dist/constants/atlas.constants.js.map +1 -0
- package/dist/constants/board.constants.js +1 -0
- package/dist/constants/board.constants.js.map +1 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/memo.constants.js +1 -0
- package/dist/constants/memo.constants.js.map +1 -0
- package/dist/constants/short-link.constants.js +1 -0
- package/dist/constants/short-link.constants.js.map +1 -0
- package/dist/constants/tag.constants.d.ts +3 -0
- package/dist/constants/tag.constants.js +7 -0
- package/dist/constants/tag.constants.js.map +1 -0
- package/dist/constants/user-tag.constants.js +1 -0
- package/dist/constants/user-tag.constants.js.map +1 -0
- package/dist/index.d.ts +239 -135
- package/dist/index.js +240 -140
- package/dist/index.js.map +1 -0
- package/dist/server-sent-events/index.js +1 -0
- package/dist/server-sent-events/index.js.map +1 -0
- package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.js +1 -0
- package/dist/server-sent-events/protocols/atlas/atlas.sse-protocol.js.map +1 -0
- package/dist/server-sent-events/protocols/atlas/index.js +1 -0
- package/dist/server-sent-events/protocols/atlas/index.js.map +1 -0
- package/dist/server-sent-events/protocols/board/board.sse-protocol.js +1 -0
- package/dist/server-sent-events/protocols/board/board.sse-protocol.js.map +1 -0
- package/dist/server-sent-events/protocols/board/index.js +1 -0
- package/dist/server-sent-events/protocols/board/index.js.map +1 -0
- package/dist/server-sent-events/protocols/board-card/board-card.sse-protocol.js +1 -0
- package/dist/server-sent-events/protocols/board-card/board-card.sse-protocol.js.map +1 -0
- package/dist/server-sent-events/protocols/board-card/index.js +1 -0
- package/dist/server-sent-events/protocols/board-card/index.js.map +1 -0
- package/dist/server-sent-events/protocols/index.js +1 -0
- package/dist/server-sent-events/protocols/index.js.map +1 -0
- package/dist/server-sent-events/protocols/retrospective/index.js +1 -0
- package/dist/server-sent-events/protocols/retrospective/index.js.map +1 -0
- package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.js +1 -0
- package/dist/server-sent-events/protocols/retrospective/retrospective.sse-protocol.js.map +1 -0
- package/dist/server-sent-events/server-sent-events.manager.d.ts +2 -2
- package/dist/server-sent-events/server-sent-events.manager.js +5 -5
- package/dist/server-sent-events/server-sent-events.manager.js.map +1 -0
- package/dist/types/draw.type.js +1 -0
- package/dist/types/draw.type.js.map +1 -0
- package/dist/types/enum/api-error.enum.js +1 -0
- package/dist/types/enum/api-error.enum.js.map +1 -0
- package/dist/types/enum/board-activity.enum.js +1 -0
- package/dist/types/enum/board-activity.enum.js.map +1 -0
- package/dist/types/enum/board-column-type.enum.js +1 -0
- package/dist/types/enum/board-column-type.enum.js.map +1 -0
- package/dist/types/enum/content-share.enum.d.ts +33 -0
- package/dist/types/enum/content-share.enum.js +41 -0
- package/dist/types/enum/content-share.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +3 -0
- package/dist/types/enum/index.js +4 -0
- package/dist/types/enum/index.js.map +1 -0
- package/dist/types/enum/pdf-operation.enum.d.ts +80 -0
- package/dist/types/enum/pdf-operation.enum.js +16 -0
- package/dist/types/enum/pdf-operation.enum.js.map +1 -0
- package/dist/types/enum/pdf-session.enum.d.ts +10 -0
- package/dist/types/enum/pdf-session.enum.js +16 -0
- package/dist/types/enum/pdf-session.enum.js.map +1 -0
- package/dist/types/enum/rcb-bank.enum.d.ts +50 -0
- package/dist/types/enum/rcb-bank.enum.js +99 -0
- package/dist/types/enum/rcb-bank.enum.js.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interface/api/index.js +1 -0
- package/dist/types/interface/api/index.js.map +1 -0
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +4 -1
- package/dist/types/interface/api/requests/abyss.admin.request.js +1 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/atlas-document.request.js +1 -0
- package/dist/types/interface/api/requests/atlas-document.request.js.map +1 -0
- package/dist/types/interface/api/requests/atlas-group.request.js +1 -0
- package/dist/types/interface/api/requests/atlas-group.request.js.map +1 -0
- package/dist/types/interface/api/requests/atlas-page.request.js +1 -0
- package/dist/types/interface/api/requests/atlas-page.request.js.map +1 -0
- package/dist/types/interface/api/requests/atlas.public.request.js +1 -0
- package/dist/types/interface/api/requests/atlas.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/atlas.request.d.ts +17 -8
- package/dist/types/interface/api/requests/atlas.request.js +1 -0
- package/dist/types/interface/api/requests/atlas.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-card-checklist.request.js +1 -0
- package/dist/types/interface/api/requests/board-card-checklist.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-card-comment.request.js +1 -0
- package/dist/types/interface/api/requests/board-card-comment.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-card-document.request.js +1 -0
- package/dist/types/interface/api/requests/board-card-document.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-card.request.js +1 -0
- package/dist/types/interface/api/requests/board-card.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-column.request.js +1 -0
- package/dist/types/interface/api/requests/board-column.request.js.map +1 -0
- package/dist/types/interface/api/requests/board-label.request.js +1 -0
- package/dist/types/interface/api/requests/board-label.request.js.map +1 -0
- package/dist/types/interface/api/requests/board.request.d.ts +27 -2
- package/dist/types/interface/api/requests/board.request.js +1 -0
- package/dist/types/interface/api/requests/board.request.js.map +1 -0
- package/dist/types/interface/api/requests/draw.public.request.js +1 -0
- package/dist/types/interface/api/requests/draw.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/draw.request.d.ts +14 -4
- package/dist/types/interface/api/requests/draw.request.js +1 -0
- package/dist/types/interface/api/requests/draw.request.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +3 -1
- package/dist/types/interface/api/requests/index.js +4 -1
- package/dist/types/interface/api/requests/index.js.map +1 -0
- package/dist/types/interface/api/requests/memo.request.d.ts +14 -2
- package/dist/types/interface/api/requests/memo.request.js +1 -0
- package/dist/types/interface/api/requests/memo.request.js.map +1 -0
- package/dist/types/interface/api/requests/metrics.request.d.ts +3 -0
- package/dist/types/interface/api/requests/metrics.request.js +1 -0
- package/dist/types/interface/api/requests/metrics.request.js.map +1 -0
- package/dist/types/interface/api/requests/pdf.public.request.d.ts +19 -0
- package/dist/types/interface/api/requests/pdf.public.request.js +3 -0
- package/dist/types/interface/api/requests/pdf.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/pdf.request.d.ts +50 -0
- package/dist/types/interface/api/requests/pdf.request.js +3 -0
- package/dist/types/interface/api/requests/pdf.request.js.map +1 -0
- package/dist/types/interface/api/requests/rcb.request.d.ts +204 -0
- package/dist/types/interface/api/requests/rcb.request.js +3 -0
- package/dist/types/interface/api/requests/rcb.request.js.map +1 -0
- package/dist/types/interface/api/requests/retrospective-card.request.js +1 -0
- package/dist/types/interface/api/requests/retrospective-card.request.js.map +1 -0
- package/dist/types/interface/api/requests/retrospective-member.request.js +1 -0
- package/dist/types/interface/api/requests/retrospective-member.request.js.map +1 -0
- package/dist/types/interface/api/requests/retrospective-section.request.js +1 -0
- package/dist/types/interface/api/requests/retrospective-section.request.js.map +1 -0
- package/dist/types/interface/api/requests/retrospective.public.request.js +1 -0
- package/dist/types/interface/api/requests/retrospective.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/retrospective.request.d.ts +17 -7
- package/dist/types/interface/api/requests/retrospective.request.js +1 -0
- package/dist/types/interface/api/requests/retrospective.request.js.map +1 -0
- package/dist/types/interface/api/requests/short-link.admin.request.js +1 -0
- package/dist/types/interface/api/requests/short-link.admin.request.js.map +1 -0
- package/dist/types/interface/api/requests/short-link.public.request.js +1 -0
- package/dist/types/interface/api/requests/short-link.public.request.js.map +1 -0
- package/dist/types/interface/api/requests/short-link.request.d.ts +14 -2
- package/dist/types/interface/api/requests/short-link.request.js +1 -0
- package/dist/types/interface/api/requests/short-link.request.js.map +1 -0
- package/dist/types/interface/api/requests/tag.request.d.ts +44 -0
- package/dist/types/interface/api/requests/tag.request.js +3 -0
- package/dist/types/interface/api/requests/tag.request.js.map +1 -0
- package/dist/types/interface/api/requests/transfer.request.d.ts +3 -0
- package/dist/types/interface/api/requests/transfer.request.js +3 -0
- package/dist/types/interface/api/requests/transfer.request.js.map +1 -0
- package/dist/types/interface/api/requests/user-tag.request.d.ts +7 -0
- package/dist/types/interface/api/requests/user-tag.request.js +1 -0
- package/dist/types/interface/api/requests/user-tag.request.js.map +1 -0
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +9 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +1 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/atlas-document.response.js +1 -0
- package/dist/types/interface/api/responses/atlas-document.response.js.map +1 -0
- package/dist/types/interface/api/responses/atlas-group.response.js +1 -0
- package/dist/types/interface/api/responses/atlas-group.response.js.map +1 -0
- package/dist/types/interface/api/responses/atlas-page.response.js +1 -0
- package/dist/types/interface/api/responses/atlas-page.response.js.map +1 -0
- package/dist/types/interface/api/responses/atlas.public.response.js +1 -0
- package/dist/types/interface/api/responses/atlas.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/atlas.response.d.ts +8 -0
- package/dist/types/interface/api/responses/atlas.response.js +1 -0
- package/dist/types/interface/api/responses/atlas.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-card-checklist.response.js +1 -0
- package/dist/types/interface/api/responses/board-card-checklist.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-card-comment.response.js +1 -0
- package/dist/types/interface/api/responses/board-card-comment.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-card-document.response.js +1 -0
- package/dist/types/interface/api/responses/board-card-document.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-card.response.js +1 -0
- package/dist/types/interface/api/responses/board-card.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-column.response.js +1 -0
- package/dist/types/interface/api/responses/board-column.response.js.map +1 -0
- package/dist/types/interface/api/responses/board-label.response.js +1 -0
- package/dist/types/interface/api/responses/board-label.response.js.map +1 -0
- package/dist/types/interface/api/responses/board.response.d.ts +11 -0
- package/dist/types/interface/api/responses/board.response.js +1 -0
- package/dist/types/interface/api/responses/board.response.js.map +1 -0
- package/dist/types/interface/api/responses/count.response.d.ts +7 -0
- package/dist/types/interface/api/responses/count.response.js +3 -0
- package/dist/types/interface/api/responses/count.response.js.map +1 -0
- package/dist/types/interface/api/responses/draw.public.response.d.ts +2 -0
- package/dist/types/interface/api/responses/draw.public.response.js +1 -0
- package/dist/types/interface/api/responses/draw.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/draw.response.d.ts +8 -0
- package/dist/types/interface/api/responses/draw.response.js +1 -0
- package/dist/types/interface/api/responses/draw.response.js.map +1 -0
- package/dist/types/interface/api/responses/enriched-paginate.response.d.ts +9 -0
- package/dist/types/interface/api/responses/enriched-paginate.response.js +3 -0
- package/dist/types/interface/api/responses/enriched-paginate.response.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +6 -1
- package/dist/types/interface/api/responses/index.js +7 -1
- package/dist/types/interface/api/responses/index.js.map +1 -0
- package/dist/types/interface/api/responses/memo.response.d.ts +8 -0
- package/dist/types/interface/api/responses/memo.response.js +1 -0
- package/dist/types/interface/api/responses/memo.response.js.map +1 -0
- package/dist/types/interface/api/responses/metrics.response.d.ts +4 -0
- package/dist/types/interface/api/responses/metrics.response.js +1 -0
- package/dist/types/interface/api/responses/metrics.response.js.map +1 -0
- package/dist/types/interface/api/responses/pdf.public.response.d.ts +33 -0
- package/dist/types/interface/api/responses/pdf.public.response.js +3 -0
- package/dist/types/interface/api/responses/pdf.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/pdf.response.d.ts +35 -0
- package/dist/types/interface/api/responses/pdf.response.js +3 -0
- package/dist/types/interface/api/responses/pdf.response.js.map +1 -0
- package/dist/types/interface/api/responses/rcb.response.d.ts +376 -0
- package/dist/types/interface/api/responses/rcb.response.js +3 -0
- package/dist/types/interface/api/responses/rcb.response.js.map +1 -0
- package/dist/types/interface/api/responses/recent.response.d.ts +13 -0
- package/dist/types/interface/api/responses/recent.response.js +3 -0
- package/dist/types/interface/api/responses/recent.response.js.map +1 -0
- package/dist/types/interface/api/responses/retrospective-card.response.js +1 -0
- package/dist/types/interface/api/responses/retrospective-card.response.js.map +1 -0
- package/dist/types/interface/api/responses/retrospective-member.response.js +1 -0
- package/dist/types/interface/api/responses/retrospective-member.response.js.map +1 -0
- package/dist/types/interface/api/responses/retrospective-section.response.js +1 -0
- package/dist/types/interface/api/responses/retrospective-section.response.js.map +1 -0
- package/dist/types/interface/api/responses/retrospective.public.response.js +1 -0
- package/dist/types/interface/api/responses/retrospective.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/retrospective.response.d.ts +8 -0
- package/dist/types/interface/api/responses/retrospective.response.js +1 -0
- package/dist/types/interface/api/responses/retrospective.response.js.map +1 -0
- package/dist/types/interface/api/responses/short-link.admin.response.js +1 -0
- package/dist/types/interface/api/responses/short-link.admin.response.js.map +1 -0
- package/dist/types/interface/api/responses/short-link.public.response.js +1 -0
- package/dist/types/interface/api/responses/short-link.public.response.js.map +1 -0
- package/dist/types/interface/api/responses/short-link.response.d.ts +6 -0
- package/dist/types/interface/api/responses/short-link.response.js +1 -0
- package/dist/types/interface/api/responses/short-link.response.js.map +1 -0
- package/dist/types/interface/api/responses/tag.response.d.ts +32 -0
- package/dist/types/interface/api/responses/tag.response.js +3 -0
- package/dist/types/interface/api/responses/tag.response.js.map +1 -0
- package/dist/types/interface/api/responses/transfer.response.d.ts +25 -0
- package/dist/types/interface/api/responses/transfer.response.js +3 -0
- package/dist/types/interface/api/responses/transfer.response.js.map +1 -0
- package/dist/types/interface/api/responses/user-tag.response.js +1 -0
- package/dist/types/interface/api/responses/user-tag.response.js.map +1 -0
- package/dist/types/interface/api/type-message/api-error.js +1 -0
- package/dist/types/interface/api/type-message/api-error.js.map +1 -0
- package/dist/types/interface/api/type-message/base-paginate.js +1 -0
- package/dist/types/interface/api/type-message/base-paginate.js.map +1 -0
- package/dist/types/interface/api/type-message/response.js +1 -0
- package/dist/types/interface/api/type-message/response.js.map +1 -0
- package/dist/types/interface/index.js +1 -0
- package/dist/types/interface/index.js.map +1 -0
- package/dist/types/interface/models/atlas-document.dto.js +1 -0
- package/dist/types/interface/models/atlas-document.dto.js.map +1 -0
- package/dist/types/interface/models/atlas-group.dto.js +1 -0
- package/dist/types/interface/models/atlas-group.dto.js.map +1 -0
- package/dist/types/interface/models/atlas-page-content.dto.js +1 -0
- package/dist/types/interface/models/atlas-page-content.dto.js.map +1 -0
- package/dist/types/interface/models/atlas-page.dto.js +1 -0
- package/dist/types/interface/models/atlas-page.dto.js.map +1 -0
- package/dist/types/interface/models/atlas.dto.d.ts +3 -3
- package/dist/types/interface/models/atlas.dto.js +1 -0
- package/dist/types/interface/models/atlas.dto.js.map +1 -0
- package/dist/types/interface/models/board-activity.dto.js +1 -0
- package/dist/types/interface/models/board-activity.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-checklist-row.dto.js +1 -0
- package/dist/types/interface/models/board-card-checklist-row.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-checklist.dto.js +1 -0
- package/dist/types/interface/models/board-card-checklist.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-comment.dto.js +1 -0
- package/dist/types/interface/models/board-card-comment.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-document.dto.js +1 -0
- package/dist/types/interface/models/board-card-document.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-label.dto.js +1 -0
- package/dist/types/interface/models/board-card-label.dto.js.map +1 -0
- package/dist/types/interface/models/board-card-member.dto.js +1 -0
- package/dist/types/interface/models/board-card-member.dto.js.map +1 -0
- package/dist/types/interface/models/board-card.dto.js +1 -0
- package/dist/types/interface/models/board-card.dto.js.map +1 -0
- package/dist/types/interface/models/board-column.dto.js +1 -0
- package/dist/types/interface/models/board-column.dto.js.map +1 -0
- package/dist/types/interface/models/board-label.dto.js +1 -0
- package/dist/types/interface/models/board-label.dto.js.map +1 -0
- package/dist/types/interface/models/board.dto.d.ts +3 -2
- package/dist/types/interface/models/board.dto.js +1 -0
- package/dist/types/interface/models/board.dto.js.map +1 -0
- package/dist/types/interface/models/content-share.dto.d.ts +15 -0
- package/dist/types/interface/models/content-share.dto.js +3 -0
- package/dist/types/interface/models/content-share.dto.js.map +1 -0
- package/dist/types/interface/models/draw.dto.d.ts +6 -4
- package/dist/types/interface/models/draw.dto.js +1 -0
- package/dist/types/interface/models/draw.dto.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +4 -1
- package/dist/types/interface/models/index.js +5 -1
- package/dist/types/interface/models/index.js.map +1 -0
- package/dist/types/interface/models/memo.dto.d.ts +3 -2
- package/dist/types/interface/models/memo.dto.js +1 -0
- package/dist/types/interface/models/memo.dto.js.map +1 -0
- package/dist/types/interface/models/organization.dto.js +1 -0
- package/dist/types/interface/models/organization.dto.js.map +1 -0
- package/dist/types/interface/models/pdf-session.dto.d.ts +28 -0
- package/dist/types/interface/models/pdf-session.dto.js +3 -0
- package/dist/types/interface/models/pdf-session.dto.js.map +1 -0
- package/dist/types/interface/models/project.dto.d.ts +1 -1
- package/dist/types/interface/models/project.dto.js +1 -0
- package/dist/types/interface/models/project.dto.js.map +1 -0
- package/dist/types/interface/models/rcb.dto.d.ts +214 -0
- package/dist/types/interface/models/rcb.dto.js +26 -0
- package/dist/types/interface/models/rcb.dto.js.map +1 -0
- package/dist/types/interface/models/retrospective-card.dto.js +1 -0
- package/dist/types/interface/models/retrospective-card.dto.js.map +1 -0
- package/dist/types/interface/models/retrospective-member.dto.js +1 -0
- package/dist/types/interface/models/retrospective-member.dto.js.map +1 -0
- package/dist/types/interface/models/retrospective-section.dto.js +1 -0
- package/dist/types/interface/models/retrospective-section.dto.js.map +1 -0
- package/dist/types/interface/models/retrospective.dto.d.ts +3 -3
- package/dist/types/interface/models/retrospective.dto.js +1 -0
- package/dist/types/interface/models/retrospective.dto.js.map +1 -0
- package/dist/types/interface/models/short-link-click.dto.js +1 -0
- package/dist/types/interface/models/short-link-click.dto.js.map +1 -0
- package/dist/types/interface/models/short-link.dto.d.ts +3 -2
- package/dist/types/interface/models/short-link.dto.js +1 -0
- package/dist/types/interface/models/short-link.dto.js.map +1 -0
- package/dist/types/interface/models/tag.dto.d.ts +22 -0
- package/dist/types/interface/models/tag.dto.js +3 -0
- package/dist/types/interface/models/tag.dto.js.map +1 -0
- package/dist/types/interface/models/team.dto.d.ts +9 -0
- package/dist/types/interface/models/team.dto.js +3 -0
- package/dist/types/interface/models/team.dto.js.map +1 -0
- package/dist/types/interface/models/user-tag.dto.js +1 -0
- package/dist/types/interface/models/user-tag.dto.js.map +1 -0
- package/dist/types/interface/models/user.dto.js +1 -0
- package/dist/types/interface/models/user.dto.js.map +1 -0
- package/dist/utils/board.utils.js +1 -0
- package/dist/utils/board.utils.js.map +1 -0
- package/dist/utils/enum.utils.d.ts +1 -1
- package/dist/utils/enum.utils.js +1 -0
- package/dist/utils/enum.utils.js.map +1 -0
- package/dist/utils/error.utils.js +1 -0
- package/dist/utils/error.utils.js.map +1 -0
- package/dist/utils/icons.utils.js +1 -0
- package/dist/utils/icons.utils.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/rcb-webhook.utils.d.ts +8 -0
- package/dist/utils/rcb-webhook.utils.js +18 -0
- package/dist/utils/rcb-webhook.utils.js.map +1 -0
- package/dist/utils/shape.utils.js +27 -31
- package/dist/utils/shape.utils.js.map +1 -0
- package/package.json +57 -53
- package/src/api/abyss.admin.api.ts +72 -60
- package/src/api/atlas-document.api.ts +68 -68
- package/src/api/atlas-group.api.ts +69 -69
- package/src/api/atlas-page.api.ts +124 -124
- package/src/api/atlas.api.ts +103 -65
- package/src/api/atlas.public.api.ts +42 -42
- package/src/api/board-card-checklist.api.ts +99 -99
- package/src/api/board-card-comment.api.ts +57 -57
- package/src/api/board-card-document.api.ts +57 -57
- package/src/api/board-card.api.ts +137 -137
- package/src/api/board-column.api.ts +54 -54
- package/src/api/board-label.api.ts +87 -87
- package/src/api/board.api.ts +122 -67
- package/src/api/draw.api.ts +97 -58
- package/src/api/draw.public.api.ts +48 -48
- package/src/api/index.ts +49 -43
- package/src/api/memo.api.ts +97 -59
- package/src/api/metrics.api.ts +27 -15
- package/src/api/organization.api.ts +14 -0
- package/src/api/rcb.api.ts +829 -0
- package/src/api/retrospective-card.api.ts +74 -74
- package/src/api/retrospective-member.api.ts +54 -54
- package/src/api/retrospective-section.api.ts +74 -74
- package/src/api/retrospective.api.ts +124 -86
- package/src/api/retrospective.public.api.ts +147 -147
- package/src/api/short-link.admin.api.ts +39 -39
- package/src/api/short-link.api.ts +125 -90
- package/src/api/short-link.public.api.ts +60 -60
- package/src/api/tag.api.ts +72 -0
- package/src/constants/atlas.constants.ts +2 -2
- package/src/constants/board.constants.ts +7 -7
- package/src/constants/index.ts +5 -5
- package/src/constants/memo.constants.ts +3 -3
- package/src/constants/short-link.constants.ts +11 -11
- package/src/constants/tag.constants.ts +3 -0
- package/src/index.ts +746 -541
- package/src/server-sent-events/index.ts +13 -13
- package/src/server-sent-events/protocols/atlas/atlas.sse-protocol.ts +90 -90
- package/src/server-sent-events/protocols/atlas/index.ts +1 -1
- package/src/server-sent-events/protocols/board/board.sse-protocol.ts +115 -115
- package/src/server-sent-events/protocols/board/index.ts +1 -1
- package/src/server-sent-events/protocols/board-card/board-card.sse-protocol.ts +26 -26
- package/src/server-sent-events/protocols/board-card/index.ts +1 -1
- package/src/server-sent-events/protocols/index.ts +26 -26
- package/src/server-sent-events/protocols/retrospective/index.ts +1 -1
- package/src/server-sent-events/protocols/retrospective/retrospective.sse-protocol.ts +92 -92
- package/src/server-sent-events/server-sent-events.manager.ts +73 -73
- package/src/types/draw.type.ts +173 -173
- package/src/types/enum/api-error.enum.ts +23 -23
- package/src/types/enum/board-activity.enum.ts +189 -189
- package/src/types/enum/board-column-type.enum.ts +6 -6
- package/src/types/enum/content-share.enum.ts +36 -0
- package/src/types/enum/index.ts +6 -3
- package/src/types/enum/pdf-operation.enum.ts +98 -0
- package/src/types/enum/rcb-bank.enum.ts +137 -0
- package/src/types/index.ts +5 -5
- package/src/types/interface/api/index.ts +5 -5
- package/src/types/interface/api/requests/abyss.admin.request.ts +20 -16
- package/src/types/interface/api/requests/atlas-document.request.ts +32 -32
- package/src/types/interface/api/requests/atlas-group.request.ts +45 -45
- package/src/types/interface/api/requests/atlas-page.request.ts +84 -84
- package/src/types/interface/api/requests/atlas.public.request.ts +21 -21
- package/src/types/interface/api/requests/atlas.request.ts +52 -40
- package/src/types/interface/api/requests/board-card-checklist.request.ts +61 -61
- package/src/types/interface/api/requests/board-card-comment.request.ts +28 -28
- package/src/types/interface/api/requests/board-card-document.request.ts +29 -29
- package/src/types/interface/api/requests/board-card.request.ts +86 -86
- package/src/types/interface/api/requests/board-column.request.ts +30 -30
- package/src/types/interface/api/requests/board-label.request.ts +42 -42
- package/src/types/interface/api/requests/board.request.ts +61 -30
- package/src/types/interface/api/requests/draw.public.request.ts +20 -20
- package/src/types/interface/api/requests/draw.request.ts +49 -37
- package/src/types/interface/api/requests/index.ts +28 -26
- package/src/types/interface/api/requests/memo.request.ts +49 -35
- package/src/types/interface/api/requests/metrics.request.ts +7 -3
- package/src/types/interface/api/requests/rcb.request.ts +267 -0
- package/src/types/interface/api/requests/retrospective-card.request.ts +38 -38
- package/src/types/interface/api/requests/retrospective-member.request.ts +20 -20
- package/src/types/interface/api/requests/retrospective-section.request.ts +43 -43
- package/src/types/interface/api/requests/retrospective.public.request.ts +84 -84
- package/src/types/interface/api/requests/retrospective.request.ts +59 -46
- package/src/types/interface/api/requests/short-link.admin.request.ts +35 -35
- package/src/types/interface/api/requests/short-link.public.request.ts +40 -40
- package/src/types/interface/api/requests/short-link.request.ts +71 -57
- package/src/types/interface/api/requests/tag.request.ts +54 -0
- package/src/types/interface/api/requests/transfer.request.ts +3 -0
- package/src/types/interface/api/responses/abyss.admin.response.ts +28 -17
- package/src/types/interface/api/responses/atlas-document.response.ts +24 -24
- package/src/types/interface/api/responses/atlas-group.response.ts +23 -23
- package/src/types/interface/api/responses/atlas-page.response.ts +53 -53
- package/src/types/interface/api/responses/atlas.public.response.ts +21 -21
- package/src/types/interface/api/responses/atlas.response.ts +32 -23
- package/src/types/interface/api/responses/board-card-checklist.response.ts +31 -31
- package/src/types/interface/api/responses/board-card-comment.response.ts +20 -20
- package/src/types/interface/api/responses/board-card-document.response.ts +21 -21
- package/src/types/interface/api/responses/board-card.response.ts +55 -55
- package/src/types/interface/api/responses/board-column.response.ts +20 -20
- package/src/types/interface/api/responses/board-label.response.ts +31 -31
- package/src/types/interface/api/responses/board.response.ts +81 -68
- package/src/types/interface/api/responses/count.response.ts +9 -0
- package/src/types/interface/api/responses/draw.public.response.ts +22 -20
- package/src/types/interface/api/responses/draw.response.ts +32 -23
- package/src/types/interface/api/responses/enriched-paginate.response.ts +11 -0
- package/src/types/interface/api/responses/index.ts +31 -26
- package/src/types/interface/api/responses/memo.response.ts +32 -23
- package/src/types/interface/api/responses/metrics.response.ts +22 -16
- package/src/types/interface/api/responses/rcb.response.ts +399 -0
- package/src/types/interface/api/responses/recent.response.ts +16 -0
- package/src/types/interface/api/responses/retrospective-card.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective-member.response.ts +22 -22
- package/src/types/interface/api/responses/retrospective-section.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective.public.response.ts +57 -57
- package/src/types/interface/api/responses/retrospective.response.ts +32 -23
- package/src/types/interface/api/responses/short-link.admin.response.ts +21 -21
- package/src/types/interface/api/responses/short-link.public.response.ts +26 -26
- package/src/types/interface/api/responses/short-link.response.ts +38 -31
- package/src/types/interface/api/responses/tag.response.ts +38 -0
- package/src/types/interface/api/responses/transfer.response.ts +14 -0
- package/src/types/interface/api/type-message/api-error.ts +7 -7
- package/src/types/interface/api/type-message/base-paginate.ts +11 -11
- package/src/types/interface/api/type-message/response.ts +6 -6
- package/src/types/interface/index.ts +2 -2
- package/src/types/interface/models/atlas-document.dto.ts +22 -22
- package/src/types/interface/models/atlas-group.dto.ts +21 -21
- package/src/types/interface/models/atlas-page-content.dto.ts +17 -17
- package/src/types/interface/models/atlas-page.dto.ts +26 -26
- package/src/types/interface/models/atlas.dto.ts +34 -34
- package/src/types/interface/models/board-activity.dto.ts +20 -20
- package/src/types/interface/models/board-card-checklist-row.dto.ts +14 -14
- package/src/types/interface/models/board-card-checklist.dto.ts +16 -16
- package/src/types/interface/models/board-card-comment.dto.ts +15 -15
- package/src/types/interface/models/board-card-document.dto.ts +22 -22
- package/src/types/interface/models/board-card-label.dto.ts +14 -14
- package/src/types/interface/models/board-card-member.dto.ts +14 -14
- package/src/types/interface/models/board-card.dto.ts +37 -37
- package/src/types/interface/models/board-column.dto.ts +17 -17
- package/src/types/interface/models/board-label.dto.ts +13 -13
- package/src/types/interface/models/board.dto.ts +33 -32
- package/src/types/interface/models/content-share.dto.ts +16 -0
- package/src/types/interface/models/draw.dto.ts +30 -28
- package/src/types/interface/models/index.ts +31 -28
- package/src/types/interface/models/memo.dto.ts +23 -22
- package/src/types/interface/models/organization.dto.ts +12 -12
- package/src/types/interface/models/project.dto.ts +25 -25
- package/src/types/interface/models/rcb.dto.ts +267 -0
- package/src/types/interface/models/retrospective-card.dto.ts +17 -17
- package/src/types/interface/models/retrospective-member.dto.ts +15 -15
- package/src/types/interface/models/retrospective-section.dto.ts +16 -16
- package/src/types/interface/models/retrospective.dto.ts +32 -32
- package/src/types/interface/models/short-link-click.dto.ts +33 -33
- package/src/types/interface/models/short-link.dto.ts +49 -48
- package/src/types/interface/models/{user-tag.dto.ts → tag.dto.ts} +26 -26
- package/src/types/interface/models/team.dto.ts +12 -0
- package/src/types/interface/models/user.dto.ts +26 -26
- package/src/utils/board.utils.ts +57 -57
- package/src/utils/enum.utils.ts +5 -6
- package/src/utils/error.utils.ts +30 -30
- package/src/utils/icons.utils.ts +96 -96
- package/src/utils/index.ts +6 -5
- package/src/utils/rcb-webhook.utils.ts +30 -0
- package/src/utils/shape.utils.ts +292 -296
- package/tsconfig.json +35 -24
- package/src/api/user-tag.api.ts +0 -70
- package/src/constants/user-tag.constants.ts +0 -3
- package/src/types/interface/api/requests/user-tag.request.ts +0 -45
- package/src/types/interface/api/responses/user-tag.response.ts +0 -38
package/src/index.ts
CHANGED
|
@@ -1,541 +1,746 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
import axiosRetry, { IAxiosRetryConfig, isNetworkOrIdempotentRequestError } from 'axios-retry';
|
|
3
|
-
import * as abyssAdminApi from './api/abyss.admin.api';
|
|
4
|
-
import * as boardApi from './api/board.api';
|
|
5
|
-
import * as boardColumnApi from './api/board-column.api';
|
|
6
|
-
import * as boardCardApi from './api/board-card.api';
|
|
7
|
-
import * as boardLabelApi from './api/board-label.api';
|
|
8
|
-
import * as boardCardCommentApi from './api/board-card-comment.api';
|
|
9
|
-
import * as boardCardChecklistApi from './api/board-card-checklist.api';
|
|
10
|
-
import * as boardCardDocumentApi from './api/board-card-document.api';
|
|
11
|
-
import * as drawApi from './api/draw.api';
|
|
12
|
-
import * as drawPublicApi from './api/draw.public.api';
|
|
13
|
-
import * as retrospectiveApi from './api/retrospective.api';
|
|
14
|
-
import * as retrospectiveCardApi from './api/retrospective-card.api';
|
|
15
|
-
import * as retrospectiveMemberApi from './api/retrospective-member.api';
|
|
16
|
-
import * as retrospectiveSectionApi from './api/retrospective-section.api';
|
|
17
|
-
import * as retrospectivePublicApi from './api/retrospective.public.api';
|
|
18
|
-
import * as atlasApi from './api/atlas.api';
|
|
19
|
-
import * as atlasGroupApi from './api/atlas-group.api';
|
|
20
|
-
import * as atlasPageApi from './api/atlas-page.api';
|
|
21
|
-
import * as atlasDocumentApi from './api/atlas-document.api';
|
|
22
|
-
import * as atlasPublicApi from './api/atlas.public.api';
|
|
23
|
-
import * as memoApi from './api/memo.api';
|
|
24
|
-
import * as shortLinkApiModule from './api/short-link.api';
|
|
25
|
-
import * as shortLinkAdminApiModule from './api/short-link.admin.api';
|
|
26
|
-
import * as shortLinkPublicApiModule from './api/short-link.public.api';
|
|
27
|
-
import * as metricsApi from './api/metrics.api';
|
|
28
|
-
import * as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
get: typeof
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import axiosRetry, { IAxiosRetryConfig, isNetworkOrIdempotentRequestError } from 'axios-retry';
|
|
3
|
+
import * as abyssAdminApi from './api/abyss.admin.api';
|
|
4
|
+
import * as boardApi from './api/board.api';
|
|
5
|
+
import * as boardColumnApi from './api/board-column.api';
|
|
6
|
+
import * as boardCardApi from './api/board-card.api';
|
|
7
|
+
import * as boardLabelApi from './api/board-label.api';
|
|
8
|
+
import * as boardCardCommentApi from './api/board-card-comment.api';
|
|
9
|
+
import * as boardCardChecklistApi from './api/board-card-checklist.api';
|
|
10
|
+
import * as boardCardDocumentApi from './api/board-card-document.api';
|
|
11
|
+
import * as drawApi from './api/draw.api';
|
|
12
|
+
import * as drawPublicApi from './api/draw.public.api';
|
|
13
|
+
import * as retrospectiveApi from './api/retrospective.api';
|
|
14
|
+
import * as retrospectiveCardApi from './api/retrospective-card.api';
|
|
15
|
+
import * as retrospectiveMemberApi from './api/retrospective-member.api';
|
|
16
|
+
import * as retrospectiveSectionApi from './api/retrospective-section.api';
|
|
17
|
+
import * as retrospectivePublicApi from './api/retrospective.public.api';
|
|
18
|
+
import * as atlasApi from './api/atlas.api';
|
|
19
|
+
import * as atlasGroupApi from './api/atlas-group.api';
|
|
20
|
+
import * as atlasPageApi from './api/atlas-page.api';
|
|
21
|
+
import * as atlasDocumentApi from './api/atlas-document.api';
|
|
22
|
+
import * as atlasPublicApi from './api/atlas.public.api';
|
|
23
|
+
import * as memoApi from './api/memo.api';
|
|
24
|
+
import * as shortLinkApiModule from './api/short-link.api';
|
|
25
|
+
import * as shortLinkAdminApiModule from './api/short-link.admin.api';
|
|
26
|
+
import * as shortLinkPublicApiModule from './api/short-link.public.api';
|
|
27
|
+
import * as metricsApi from './api/metrics.api';
|
|
28
|
+
import * as organizationApi from './api/organization.api';
|
|
29
|
+
import * as tagApi from './api/tag.api';
|
|
30
|
+
import * as rcbApi from './api/rcb.api';
|
|
31
|
+
|
|
32
|
+
export * from './api';
|
|
33
|
+
export * from './types';
|
|
34
|
+
export * from './utils';
|
|
35
|
+
export * from './constants';
|
|
36
|
+
export * from './server-sent-events';
|
|
37
|
+
|
|
38
|
+
const DEFAULT_BASE_URL = 'https://tools-api.abyss-project.fr/api/';
|
|
39
|
+
|
|
40
|
+
export const API_KEY_HEADER = 'abyss-tools-api-key';
|
|
41
|
+
export const ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
42
|
+
|
|
43
|
+
const NUMBER_RETRY_API = 10;
|
|
44
|
+
const BASE_DELAY_BETWEEN_RETRY = 5000;
|
|
45
|
+
const RETRY_CODES = [
|
|
46
|
+
502, // Bad Gateway
|
|
47
|
+
503, // Service Unavailable
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
type CoreConfig = {
|
|
51
|
+
token?: string;
|
|
52
|
+
apiKey?: string;
|
|
53
|
+
adminToken?: string;
|
|
54
|
+
baseURL?: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
type AbyssToolsCoreSDK = {
|
|
58
|
+
abyss: {
|
|
59
|
+
admin: {
|
|
60
|
+
activateUserService: typeof abyssAdminApi.activateUserServiceAbyssAdmin;
|
|
61
|
+
deleteUser: typeof abyssAdminApi.deleteUserAbyssAdmin;
|
|
62
|
+
syncOrganization: typeof abyssAdminApi.syncOrganizationAbyssAdmin;
|
|
63
|
+
deleteOrganization: typeof abyssAdminApi.deleteOrganizationAbyssAdmin;
|
|
64
|
+
syncProject: typeof abyssAdminApi.syncProjectAbyssAdmin;
|
|
65
|
+
deleteProject: typeof abyssAdminApi.deleteProjectAbyssAdmin;
|
|
66
|
+
getProjectContentSummary: typeof abyssAdminApi.getProjectContentSummary;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
board: {
|
|
70
|
+
get: typeof boardApi.getBoard;
|
|
71
|
+
getBySlug: typeof boardApi.getBySlugBoard;
|
|
72
|
+
list: typeof boardApi.listBoard;
|
|
73
|
+
listProject: typeof boardApi.listBoardProject;
|
|
74
|
+
listOrganization: typeof boardApi.listBoardOrganization;
|
|
75
|
+
paginateOrganization: typeof boardApi.paginateOrganizationBoard;
|
|
76
|
+
delete: typeof boardApi.deleteBoard;
|
|
77
|
+
update: typeof boardApi.updateBoard;
|
|
78
|
+
create: typeof boardApi.createBoard;
|
|
79
|
+
createForOrganization: typeof boardApi.createForOrganizationBoard;
|
|
80
|
+
getNextCardPreview: typeof boardApi.getNextCardPreviewBoard;
|
|
81
|
+
transfer: typeof boardApi.transferBoard;
|
|
82
|
+
countOrganization: typeof boardApi.countOrganizationBoard;
|
|
83
|
+
};
|
|
84
|
+
boardColumn: {
|
|
85
|
+
get: typeof boardColumnApi.getBoardColumn;
|
|
86
|
+
delete: typeof boardColumnApi.deleteBoardColumn;
|
|
87
|
+
update: typeof boardColumnApi.updateBoardColumn;
|
|
88
|
+
create: typeof boardColumnApi.createBoardColumn;
|
|
89
|
+
};
|
|
90
|
+
boardCard: {
|
|
91
|
+
get: typeof boardCardApi.getBoardCard;
|
|
92
|
+
getAll: typeof boardCardApi.getAllBoardCard;
|
|
93
|
+
delete: typeof boardCardApi.deleteBoardCard;
|
|
94
|
+
update: typeof boardCardApi.updateBoardCard;
|
|
95
|
+
restore: typeof boardCardApi.restoreBoardCard;
|
|
96
|
+
create: typeof boardCardApi.createBoardCard;
|
|
97
|
+
addMember: typeof boardCardApi.addMemberBoardCard;
|
|
98
|
+
removeMember: typeof boardCardApi.removeMemberBoardCard;
|
|
99
|
+
moveToBoard: typeof boardCardApi.moveToBoardBoardCard;
|
|
100
|
+
search: typeof boardCardApi.searchBoardCard;
|
|
101
|
+
};
|
|
102
|
+
boardLabel: {
|
|
103
|
+
get: typeof boardLabelApi.getBoardLabel;
|
|
104
|
+
delete: typeof boardLabelApi.deleteBoardLabel;
|
|
105
|
+
update: typeof boardLabelApi.updateBoardLabel;
|
|
106
|
+
create: typeof boardLabelApi.createBoardLabel;
|
|
107
|
+
add: typeof boardLabelApi.addBoardLabel;
|
|
108
|
+
remove: typeof boardLabelApi.removeBoardLabel;
|
|
109
|
+
list: typeof boardLabelApi.listBoardLabels;
|
|
110
|
+
};
|
|
111
|
+
boardCardComment: {
|
|
112
|
+
get: typeof boardCardCommentApi.getBoardCardComment;
|
|
113
|
+
delete: typeof boardCardCommentApi.deleteBoardCardComment;
|
|
114
|
+
update: typeof boardCardCommentApi.updateBoardCardComment;
|
|
115
|
+
create: typeof boardCardCommentApi.createBoardCardComment;
|
|
116
|
+
};
|
|
117
|
+
boardCardChecklist: {
|
|
118
|
+
get: typeof boardCardChecklistApi.getBoardCardChecklist;
|
|
119
|
+
delete: typeof boardCardChecklistApi.deleteBoardCardChecklist;
|
|
120
|
+
update: typeof boardCardChecklistApi.updateBoardCardChecklist;
|
|
121
|
+
create: typeof boardCardChecklistApi.createBoardCardChecklist;
|
|
122
|
+
addRow: typeof boardCardChecklistApi.addRowBoardCardChecklist;
|
|
123
|
+
removeRow: typeof boardCardChecklistApi.removeRowBoardCardChecklist;
|
|
124
|
+
updateRow: typeof boardCardChecklistApi.updateRowBoardCardChecklist;
|
|
125
|
+
};
|
|
126
|
+
boardCardDocument: {
|
|
127
|
+
get: typeof boardCardDocumentApi.getBoardCardDocument;
|
|
128
|
+
delete: typeof boardCardDocumentApi.deleteBoardCardDocument;
|
|
129
|
+
getUploadPreSignedUrl: typeof boardCardDocumentApi.getUploadPreSignedUrlBoardCardDocument;
|
|
130
|
+
cloudImport: typeof boardCardDocumentApi.cloudImportBoardCardDocument;
|
|
131
|
+
};
|
|
132
|
+
draw: {
|
|
133
|
+
paginate: typeof drawApi.paginateDraw;
|
|
134
|
+
paginateProject: typeof drawApi.paginateProjectDraw;
|
|
135
|
+
paginateOrganization: typeof drawApi.paginateOrganizationDraw;
|
|
136
|
+
get: typeof drawApi.getDraw;
|
|
137
|
+
delete: typeof drawApi.deleteDraw;
|
|
138
|
+
update: typeof drawApi.updateDraw;
|
|
139
|
+
create: typeof drawApi.createDraw;
|
|
140
|
+
createForOrganization: typeof drawApi.createForOrganizationDraw;
|
|
141
|
+
transfer: typeof drawApi.transferDraw;
|
|
142
|
+
countOrganization: typeof drawApi.countOrganizationDraw;
|
|
143
|
+
public: {
|
|
144
|
+
get: typeof drawPublicApi.getDrawPublic;
|
|
145
|
+
delete: typeof drawPublicApi.deleteDrawPublic;
|
|
146
|
+
update: typeof drawPublicApi.updateDrawPublic;
|
|
147
|
+
create: typeof drawPublicApi.createDrawPublic;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
retrospective: {
|
|
151
|
+
get: typeof retrospectiveApi.getRetrospective;
|
|
152
|
+
paginateProject: typeof retrospectiveApi.paginateProjectRetrospective;
|
|
153
|
+
paginateOrganization: typeof retrospectiveApi.paginateOrganizationRetrospective;
|
|
154
|
+
paginate: typeof retrospectiveApi.paginateRetrospective;
|
|
155
|
+
create: typeof retrospectiveApi.createRetrospective;
|
|
156
|
+
createForOrganization: typeof retrospectiveApi.createForOrganizationRetrospective;
|
|
157
|
+
update: typeof retrospectiveApi.updateRetrospective;
|
|
158
|
+
delete: typeof retrospectiveApi.deleteRetrospective;
|
|
159
|
+
transfer: typeof retrospectiveApi.transferRetrospective;
|
|
160
|
+
countOrganization: typeof retrospectiveApi.countOrganizationRetrospective;
|
|
161
|
+
public: {
|
|
162
|
+
get: typeof retrospectivePublicApi.getRetrospectivePublic;
|
|
163
|
+
update: typeof retrospectivePublicApi.updateRetrospectivePublic;
|
|
164
|
+
createSection: typeof retrospectivePublicApi.createSectionRetrospectivePublic;
|
|
165
|
+
updateSection: typeof retrospectivePublicApi.updateSectionRetrospectivePublic;
|
|
166
|
+
deleteSection: typeof retrospectivePublicApi.deleteSectionRetrospectivePublic;
|
|
167
|
+
joinMember: typeof retrospectivePublicApi.joinMemberRetrospectivePublic;
|
|
168
|
+
updateMember: typeof retrospectivePublicApi.updateMemberRetrospectivePublic;
|
|
169
|
+
createCard: typeof retrospectivePublicApi.createCardRetrospectivePublic;
|
|
170
|
+
updateCard: typeof retrospectivePublicApi.updateCardRetrospectivePublic;
|
|
171
|
+
deleteCard: typeof retrospectivePublicApi.deleteCardRetrospectivePublic;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
retrospectiveCard: {
|
|
175
|
+
get: typeof retrospectiveCardApi.getRetrospectiveCard;
|
|
176
|
+
paginate: typeof retrospectiveCardApi.paginateRetrospectiveCard;
|
|
177
|
+
create: typeof retrospectiveCardApi.createRetrospectiveCard;
|
|
178
|
+
update: typeof retrospectiveCardApi.updateRetrospectiveCard;
|
|
179
|
+
delete: typeof retrospectiveCardApi.deleteRetrospectiveCard;
|
|
180
|
+
};
|
|
181
|
+
retrospectiveMember: {
|
|
182
|
+
get: typeof retrospectiveMemberApi.getRetrospectiveMember;
|
|
183
|
+
list: typeof retrospectiveMemberApi.listRetrospectiveMember;
|
|
184
|
+
join: typeof retrospectiveMemberApi.joinRetrospectiveMember;
|
|
185
|
+
update: typeof retrospectiveMemberApi.updateRetrospectiveMember;
|
|
186
|
+
};
|
|
187
|
+
retrospectiveSection: {
|
|
188
|
+
get: typeof retrospectiveSectionApi.getRetrospectiveSection;
|
|
189
|
+
paginate: typeof retrospectiveSectionApi.paginateRetrospectiveSection;
|
|
190
|
+
create: typeof retrospectiveSectionApi.createRetrospectiveSection;
|
|
191
|
+
update: typeof retrospectiveSectionApi.updateRetrospectiveSection;
|
|
192
|
+
delete: typeof retrospectiveSectionApi.deleteRetrospectiveSection;
|
|
193
|
+
};
|
|
194
|
+
atlas: {
|
|
195
|
+
paginate: typeof atlasApi.paginateAtlas;
|
|
196
|
+
paginateProject: typeof atlasApi.paginateProjectAtlas;
|
|
197
|
+
paginateOrganization: typeof atlasApi.paginateOrganizationAtlas;
|
|
198
|
+
get: typeof atlasApi.getAtlas;
|
|
199
|
+
delete: typeof atlasApi.deleteAtlas;
|
|
200
|
+
update: typeof atlasApi.updateAtlas;
|
|
201
|
+
create: typeof atlasApi.createAtlas;
|
|
202
|
+
createForOrganization: typeof atlasApi.createForOrganizationAtlas;
|
|
203
|
+
transfer: typeof atlasApi.transferAtlas;
|
|
204
|
+
countOrganization: typeof atlasApi.countOrganizationAtlas;
|
|
205
|
+
public: {
|
|
206
|
+
get: typeof atlasPublicApi.getAtlasPublic;
|
|
207
|
+
getPage: typeof atlasPublicApi.getPageAtlasPublic;
|
|
208
|
+
searchContent: typeof atlasPublicApi.searchContentAtlasPublic;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
atlasGroup: {
|
|
212
|
+
paginate: typeof atlasGroupApi.paginateAtlasGroup;
|
|
213
|
+
get: typeof atlasGroupApi.getAtlasGroup;
|
|
214
|
+
delete: typeof atlasGroupApi.deleteAtlasGroup;
|
|
215
|
+
update: typeof atlasGroupApi.updateAtlasGroup;
|
|
216
|
+
create: typeof atlasGroupApi.createAtlasGroup;
|
|
217
|
+
};
|
|
218
|
+
atlasPage: {
|
|
219
|
+
paginate: typeof atlasPageApi.paginateAtlasPage;
|
|
220
|
+
get: typeof atlasPageApi.getAtlasPage;
|
|
221
|
+
delete: typeof atlasPageApi.deleteAtlasPage;
|
|
222
|
+
update: typeof atlasPageApi.updateAtlasPage;
|
|
223
|
+
create: typeof atlasPageApi.createAtlasPage;
|
|
224
|
+
updateContent: typeof atlasPageApi.updateAtlasPageContent;
|
|
225
|
+
searchContent: typeof atlasPageApi.searchAtlasContent;
|
|
226
|
+
getContentHistory: typeof atlasPageApi.getAtlasPageContentHistory;
|
|
227
|
+
restoreContent: typeof atlasPageApi.restoreAtlasPageContent;
|
|
228
|
+
};
|
|
229
|
+
atlasDocument: {
|
|
230
|
+
get: typeof atlasDocumentApi.getAtlasDocument;
|
|
231
|
+
delete: typeof atlasDocumentApi.deleteAtlasDocument;
|
|
232
|
+
getUploadPreSignedUrl: typeof atlasDocumentApi.getUploadPreSignedUrlAtlasDocument;
|
|
233
|
+
paginate: typeof atlasDocumentApi.paginateAtlasDocument;
|
|
234
|
+
list: typeof atlasDocumentApi.listAtlasDocument;
|
|
235
|
+
};
|
|
236
|
+
memo: {
|
|
237
|
+
paginate: typeof memoApi.paginateMemo;
|
|
238
|
+
paginateProject: typeof memoApi.paginateProjectMemo;
|
|
239
|
+
paginateOrganization: typeof memoApi.paginateOrganizationMemo;
|
|
240
|
+
get: typeof memoApi.getMemo;
|
|
241
|
+
delete: typeof memoApi.deleteMemo;
|
|
242
|
+
update: typeof memoApi.updateMemo;
|
|
243
|
+
create: typeof memoApi.createMemo;
|
|
244
|
+
createForOrganization: typeof memoApi.createForOrganizationMemo;
|
|
245
|
+
transfer: typeof memoApi.transferMemo;
|
|
246
|
+
countOrganization: typeof memoApi.countOrganizationMemo;
|
|
247
|
+
};
|
|
248
|
+
shortLink: {
|
|
249
|
+
get: typeof shortLinkApiModule.shortLinkApi.get;
|
|
250
|
+
paginate: typeof shortLinkApiModule.shortLinkApi.paginate;
|
|
251
|
+
paginateProject: typeof shortLinkApiModule.shortLinkApi.paginateProject;
|
|
252
|
+
paginateOrganization: typeof shortLinkApiModule.shortLinkApi.paginateOrganization;
|
|
253
|
+
create: typeof shortLinkApiModule.shortLinkApi.create;
|
|
254
|
+
createForOrganization: typeof shortLinkApiModule.shortLinkApi.createForOrganization;
|
|
255
|
+
update: typeof shortLinkApiModule.shortLinkApi.update;
|
|
256
|
+
delete: typeof shortLinkApiModule.shortLinkApi.delete;
|
|
257
|
+
getStats: typeof shortLinkApiModule.shortLinkApi.getStats;
|
|
258
|
+
getClicks: typeof shortLinkApiModule.shortLinkApi.getClicks;
|
|
259
|
+
transfer: typeof shortLinkApiModule.shortLinkApi.transfer;
|
|
260
|
+
countOrganization: typeof shortLinkApiModule.shortLinkApi.countOrganization;
|
|
261
|
+
admin: {
|
|
262
|
+
paginate: typeof shortLinkAdminApiModule.shortLinkAdminApi.paginate;
|
|
263
|
+
get: typeof shortLinkAdminApiModule.shortLinkAdminApi.get;
|
|
264
|
+
update: typeof shortLinkAdminApiModule.shortLinkAdminApi.update;
|
|
265
|
+
delete: typeof shortLinkAdminApiModule.shortLinkAdminApi.delete;
|
|
266
|
+
};
|
|
267
|
+
public: {
|
|
268
|
+
createAnonymous: typeof shortLinkPublicApiModule.shortLinkPublicApi.createAnonymous;
|
|
269
|
+
redirect: typeof shortLinkPublicApiModule.shortLinkPublicApi.redirect;
|
|
270
|
+
getStats: typeof shortLinkPublicApiModule.shortLinkPublicApi.getStats;
|
|
271
|
+
getClicks: typeof shortLinkPublicApiModule.shortLinkPublicApi.getClicks;
|
|
272
|
+
renew: typeof shortLinkPublicApiModule.shortLinkPublicApi.renew;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
metrics: {
|
|
276
|
+
getOrganizationTools: typeof metricsApi.getOrganizationToolsMetrics;
|
|
277
|
+
getProjectTools: typeof metricsApi.getProjectToolsMetrics;
|
|
278
|
+
};
|
|
279
|
+
tag: {
|
|
280
|
+
list: typeof tagApi.listTag;
|
|
281
|
+
create: typeof tagApi.createTag;
|
|
282
|
+
update: typeof tagApi.updateTag;
|
|
283
|
+
delete: typeof tagApi.deleteTag;
|
|
284
|
+
assign: typeof tagApi.assignTag;
|
|
285
|
+
unassign: typeof tagApi.unassignTag;
|
|
286
|
+
getStats: typeof tagApi.getTagStats;
|
|
287
|
+
getEntityTags: typeof tagApi.getEntityTags;
|
|
288
|
+
};
|
|
289
|
+
organization: {
|
|
290
|
+
recent: typeof organizationApi.recentOrganization;
|
|
291
|
+
};
|
|
292
|
+
rcb: {
|
|
293
|
+
health: typeof rcbApi.healthRcb;
|
|
294
|
+
stats: typeof rcbApi.statsRcb;
|
|
295
|
+
changelog: typeof rcbApi.changelogRcb;
|
|
296
|
+
/** Direct aliases kept for back-compat with existing front-v2 code. */
|
|
297
|
+
detect: typeof rcbApi.detectRcb;
|
|
298
|
+
quota: typeof rcbApi.getQuotaRcb;
|
|
299
|
+
extract: {
|
|
300
|
+
sync: typeof rcbApi.extractSyncRcb;
|
|
301
|
+
queue: typeof rcbApi.extractQueueRcb;
|
|
302
|
+
bulk: typeof rcbApi.extractBulkRcb;
|
|
303
|
+
detect: typeof rcbApi.detectRcb;
|
|
304
|
+
detectBulk: typeof rcbApi.detectBulkRcb;
|
|
305
|
+
};
|
|
306
|
+
files: {
|
|
307
|
+
list: typeof rcbApi.listFilesRcb;
|
|
308
|
+
listShared: typeof rcbApi.listSharedFilesRcb;
|
|
309
|
+
get: typeof rcbApi.getFileRcb;
|
|
310
|
+
patch: typeof rcbApi.patchFileRcb;
|
|
311
|
+
listExtractions: typeof rcbApi.listFileExtractionsRcb;
|
|
312
|
+
downloadBundle: typeof rcbApi.downloadFileBundleRcb;
|
|
313
|
+
};
|
|
314
|
+
extractions: {
|
|
315
|
+
get: typeof rcbApi.getExtractionRcb;
|
|
316
|
+
patch: typeof rcbApi.patchExtractionRcb;
|
|
317
|
+
searchRecords: typeof rcbApi.searchExtractionRecordsRcb;
|
|
318
|
+
export: typeof rcbApi.exportExtractionRcb;
|
|
319
|
+
asyncExport: typeof rcbApi.asyncExportExtractionRcb;
|
|
320
|
+
getExportJob: typeof rcbApi.getExportJobRcb;
|
|
321
|
+
diff: typeof rcbApi.diffExtractionsRcb;
|
|
322
|
+
};
|
|
323
|
+
templates: {
|
|
324
|
+
list: typeof rcbApi.listTemplatesRcb;
|
|
325
|
+
get: typeof rcbApi.getTemplateRcb;
|
|
326
|
+
create: typeof rcbApi.createTemplateRcb;
|
|
327
|
+
update: typeof rcbApi.updateTemplateRcb;
|
|
328
|
+
patchMeta: typeof rcbApi.patchTemplateMetaRcb;
|
|
329
|
+
delete: typeof rcbApi.deleteTemplateRcb;
|
|
330
|
+
listVersions: typeof rcbApi.listTemplateVersionsRcb;
|
|
331
|
+
exportCollection: typeof rcbApi.exportTemplateCollectionRcb;
|
|
332
|
+
importCollection: typeof rcbApi.importTemplateCollectionRcb;
|
|
333
|
+
};
|
|
334
|
+
jobs: {
|
|
335
|
+
get: typeof rcbApi.getJobRcb;
|
|
336
|
+
retry: typeof rcbApi.retryJobRcb;
|
|
337
|
+
cancel: typeof rcbApi.cancelJobRcb;
|
|
338
|
+
};
|
|
339
|
+
feedback: {
|
|
340
|
+
submit: typeof rcbApi.submitFeedbackRcb;
|
|
341
|
+
list: typeof rcbApi.listFeedbackRcb;
|
|
342
|
+
get: typeof rcbApi.getFeedbackRcb;
|
|
343
|
+
patch: typeof rcbApi.patchFeedbackRcb;
|
|
344
|
+
};
|
|
345
|
+
usage: {
|
|
346
|
+
list: typeof rcbApi.listUsageRcb;
|
|
347
|
+
summary: typeof rcbApi.summaryUsageRcb;
|
|
348
|
+
quota: typeof rcbApi.getQuotaRcb;
|
|
349
|
+
};
|
|
350
|
+
share: {
|
|
351
|
+
mint: typeof rcbApi.mintShareExtractionRcb;
|
|
352
|
+
revoke: typeof rcbApi.revokeShareExtractionRcb;
|
|
353
|
+
public: { get: typeof rcbApi.getSharedExtractionRcbPublic };
|
|
354
|
+
};
|
|
355
|
+
// Webhook delivery history (existing).
|
|
356
|
+
webhookDeliveries: {
|
|
357
|
+
list: typeof rcbApi.listWebhookDeliveriesRcb;
|
|
358
|
+
get: typeof rcbApi.getWebhookDeliveryRcb;
|
|
359
|
+
replay: typeof rcbApi.replayWebhookDeliveryRcb;
|
|
360
|
+
};
|
|
361
|
+
// Webhook subscriptions (NEW — managed registrations).
|
|
362
|
+
webhook: {
|
|
363
|
+
paginate: typeof rcbApi.paginateRcbWebhook;
|
|
364
|
+
get: typeof rcbApi.getRcbWebhook;
|
|
365
|
+
create: typeof rcbApi.createRcbWebhook;
|
|
366
|
+
update: typeof rcbApi.updateRcbWebhook;
|
|
367
|
+
delete: typeof rcbApi.deleteRcbWebhook;
|
|
368
|
+
resetSecret: typeof rcbApi.resetSecretRcbWebhook;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
export class AbyssToolsCore {
|
|
374
|
+
private static config = {
|
|
375
|
+
token: '',
|
|
376
|
+
apiKey: '',
|
|
377
|
+
adminToken: '',
|
|
378
|
+
baseURL: DEFAULT_BASE_URL,
|
|
379
|
+
};
|
|
380
|
+
static axios = axios.create({
|
|
381
|
+
baseURL: this.config.baseURL,
|
|
382
|
+
withCredentials: true,
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
private static _sdk: AbyssToolsCoreSDK | null = null;
|
|
386
|
+
|
|
387
|
+
public static get sdk(): AbyssToolsCoreSDK {
|
|
388
|
+
if (!AbyssToolsCore._sdk) {
|
|
389
|
+
AbyssToolsCore._sdk = AbyssToolsCore.buildSDK();
|
|
390
|
+
}
|
|
391
|
+
return AbyssToolsCore._sdk;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
private static buildSDK(): AbyssToolsCoreSDK {
|
|
395
|
+
return {
|
|
396
|
+
abyss: {
|
|
397
|
+
admin: {
|
|
398
|
+
activateUserService: abyssAdminApi.activateUserServiceAbyssAdmin,
|
|
399
|
+
deleteUser: abyssAdminApi.deleteUserAbyssAdmin,
|
|
400
|
+
syncOrganization: abyssAdminApi.syncOrganizationAbyssAdmin,
|
|
401
|
+
deleteOrganization: abyssAdminApi.deleteOrganizationAbyssAdmin,
|
|
402
|
+
syncProject: abyssAdminApi.syncProjectAbyssAdmin,
|
|
403
|
+
deleteProject: abyssAdminApi.deleteProjectAbyssAdmin,
|
|
404
|
+
getProjectContentSummary: abyssAdminApi.getProjectContentSummary,
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
board: {
|
|
408
|
+
get: boardApi.getBoard,
|
|
409
|
+
getBySlug: boardApi.getBySlugBoard,
|
|
410
|
+
list: boardApi.listBoard,
|
|
411
|
+
listProject: boardApi.listBoardProject,
|
|
412
|
+
listOrganization: boardApi.listBoardOrganization,
|
|
413
|
+
paginateOrganization: boardApi.paginateOrganizationBoard,
|
|
414
|
+
delete: boardApi.deleteBoard,
|
|
415
|
+
update: boardApi.updateBoard,
|
|
416
|
+
create: boardApi.createBoard,
|
|
417
|
+
createForOrganization: boardApi.createForOrganizationBoard,
|
|
418
|
+
getNextCardPreview: boardApi.getNextCardPreviewBoard,
|
|
419
|
+
transfer: boardApi.transferBoard,
|
|
420
|
+
countOrganization: boardApi.countOrganizationBoard,
|
|
421
|
+
},
|
|
422
|
+
boardColumn: {
|
|
423
|
+
get: boardColumnApi.getBoardColumn,
|
|
424
|
+
delete: boardColumnApi.deleteBoardColumn,
|
|
425
|
+
update: boardColumnApi.updateBoardColumn,
|
|
426
|
+
create: boardColumnApi.createBoardColumn,
|
|
427
|
+
},
|
|
428
|
+
boardCard: {
|
|
429
|
+
get: boardCardApi.getBoardCard,
|
|
430
|
+
getAll: boardCardApi.getAllBoardCard,
|
|
431
|
+
delete: boardCardApi.deleteBoardCard,
|
|
432
|
+
update: boardCardApi.updateBoardCard,
|
|
433
|
+
restore: boardCardApi.restoreBoardCard,
|
|
434
|
+
create: boardCardApi.createBoardCard,
|
|
435
|
+
addMember: boardCardApi.addMemberBoardCard,
|
|
436
|
+
removeMember: boardCardApi.removeMemberBoardCard,
|
|
437
|
+
moveToBoard: boardCardApi.moveToBoardBoardCard,
|
|
438
|
+
search: boardCardApi.searchBoardCard,
|
|
439
|
+
},
|
|
440
|
+
boardLabel: {
|
|
441
|
+
get: boardLabelApi.getBoardLabel,
|
|
442
|
+
delete: boardLabelApi.deleteBoardLabel,
|
|
443
|
+
update: boardLabelApi.updateBoardLabel,
|
|
444
|
+
create: boardLabelApi.createBoardLabel,
|
|
445
|
+
add: boardLabelApi.addBoardLabel,
|
|
446
|
+
remove: boardLabelApi.removeBoardLabel,
|
|
447
|
+
list: boardLabelApi.listBoardLabels,
|
|
448
|
+
},
|
|
449
|
+
boardCardComment: {
|
|
450
|
+
get: boardCardCommentApi.getBoardCardComment,
|
|
451
|
+
delete: boardCardCommentApi.deleteBoardCardComment,
|
|
452
|
+
update: boardCardCommentApi.updateBoardCardComment,
|
|
453
|
+
create: boardCardCommentApi.createBoardCardComment,
|
|
454
|
+
},
|
|
455
|
+
boardCardChecklist: {
|
|
456
|
+
get: boardCardChecklistApi.getBoardCardChecklist,
|
|
457
|
+
delete: boardCardChecklistApi.deleteBoardCardChecklist,
|
|
458
|
+
update: boardCardChecklistApi.updateBoardCardChecklist,
|
|
459
|
+
create: boardCardChecklistApi.createBoardCardChecklist,
|
|
460
|
+
addRow: boardCardChecklistApi.addRowBoardCardChecklist,
|
|
461
|
+
removeRow: boardCardChecklistApi.removeRowBoardCardChecklist,
|
|
462
|
+
updateRow: boardCardChecklistApi.updateRowBoardCardChecklist,
|
|
463
|
+
},
|
|
464
|
+
boardCardDocument: {
|
|
465
|
+
get: boardCardDocumentApi.getBoardCardDocument,
|
|
466
|
+
delete: boardCardDocumentApi.deleteBoardCardDocument,
|
|
467
|
+
getUploadPreSignedUrl:
|
|
468
|
+
boardCardDocumentApi.getUploadPreSignedUrlBoardCardDocument,
|
|
469
|
+
cloudImport: boardCardDocumentApi.cloudImportBoardCardDocument,
|
|
470
|
+
},
|
|
471
|
+
draw: {
|
|
472
|
+
paginate: drawApi.paginateDraw,
|
|
473
|
+
paginateProject: drawApi.paginateProjectDraw,
|
|
474
|
+
paginateOrganization: drawApi.paginateOrganizationDraw,
|
|
475
|
+
get: drawApi.getDraw,
|
|
476
|
+
delete: drawApi.deleteDraw,
|
|
477
|
+
update: drawApi.updateDraw,
|
|
478
|
+
create: drawApi.createDraw,
|
|
479
|
+
createForOrganization: drawApi.createForOrganizationDraw,
|
|
480
|
+
transfer: drawApi.transferDraw,
|
|
481
|
+
countOrganization: drawApi.countOrganizationDraw,
|
|
482
|
+
public: {
|
|
483
|
+
get: drawPublicApi.getDrawPublic,
|
|
484
|
+
delete: drawPublicApi.deleteDrawPublic,
|
|
485
|
+
update: drawPublicApi.updateDrawPublic,
|
|
486
|
+
create: drawPublicApi.createDrawPublic,
|
|
487
|
+
},
|
|
488
|
+
},
|
|
489
|
+
retrospective: {
|
|
490
|
+
get: retrospectiveApi.getRetrospective,
|
|
491
|
+
paginateProject: retrospectiveApi.paginateProjectRetrospective,
|
|
492
|
+
paginateOrganization: retrospectiveApi.paginateOrganizationRetrospective,
|
|
493
|
+
paginate: retrospectiveApi.paginateRetrospective,
|
|
494
|
+
create: retrospectiveApi.createRetrospective,
|
|
495
|
+
createForOrganization: retrospectiveApi.createForOrganizationRetrospective,
|
|
496
|
+
update: retrospectiveApi.updateRetrospective,
|
|
497
|
+
delete: retrospectiveApi.deleteRetrospective,
|
|
498
|
+
transfer: retrospectiveApi.transferRetrospective,
|
|
499
|
+
countOrganization: retrospectiveApi.countOrganizationRetrospective,
|
|
500
|
+
public: {
|
|
501
|
+
get: retrospectivePublicApi.getRetrospectivePublic,
|
|
502
|
+
update: retrospectivePublicApi.updateRetrospectivePublic,
|
|
503
|
+
createSection: retrospectivePublicApi.createSectionRetrospectivePublic,
|
|
504
|
+
updateSection: retrospectivePublicApi.updateSectionRetrospectivePublic,
|
|
505
|
+
deleteSection: retrospectivePublicApi.deleteSectionRetrospectivePublic,
|
|
506
|
+
joinMember: retrospectivePublicApi.joinMemberRetrospectivePublic,
|
|
507
|
+
updateMember: retrospectivePublicApi.updateMemberRetrospectivePublic,
|
|
508
|
+
createCard: retrospectivePublicApi.createCardRetrospectivePublic,
|
|
509
|
+
updateCard: retrospectivePublicApi.updateCardRetrospectivePublic,
|
|
510
|
+
deleteCard: retrospectivePublicApi.deleteCardRetrospectivePublic,
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
retrospectiveCard: {
|
|
514
|
+
get: retrospectiveCardApi.getRetrospectiveCard,
|
|
515
|
+
paginate: retrospectiveCardApi.paginateRetrospectiveCard,
|
|
516
|
+
create: retrospectiveCardApi.createRetrospectiveCard,
|
|
517
|
+
update: retrospectiveCardApi.updateRetrospectiveCard,
|
|
518
|
+
delete: retrospectiveCardApi.deleteRetrospectiveCard,
|
|
519
|
+
},
|
|
520
|
+
retrospectiveMember: {
|
|
521
|
+
get: retrospectiveMemberApi.getRetrospectiveMember,
|
|
522
|
+
list: retrospectiveMemberApi.listRetrospectiveMember,
|
|
523
|
+
join: retrospectiveMemberApi.joinRetrospectiveMember,
|
|
524
|
+
update: retrospectiveMemberApi.updateRetrospectiveMember,
|
|
525
|
+
},
|
|
526
|
+
retrospectiveSection: {
|
|
527
|
+
get: retrospectiveSectionApi.getRetrospectiveSection,
|
|
528
|
+
paginate: retrospectiveSectionApi.paginateRetrospectiveSection,
|
|
529
|
+
create: retrospectiveSectionApi.createRetrospectiveSection,
|
|
530
|
+
update: retrospectiveSectionApi.updateRetrospectiveSection,
|
|
531
|
+
delete: retrospectiveSectionApi.deleteRetrospectiveSection,
|
|
532
|
+
},
|
|
533
|
+
atlas: {
|
|
534
|
+
paginate: atlasApi.paginateAtlas,
|
|
535
|
+
paginateProject: atlasApi.paginateProjectAtlas,
|
|
536
|
+
paginateOrganization: atlasApi.paginateOrganizationAtlas,
|
|
537
|
+
get: atlasApi.getAtlas,
|
|
538
|
+
delete: atlasApi.deleteAtlas,
|
|
539
|
+
update: atlasApi.updateAtlas,
|
|
540
|
+
create: atlasApi.createAtlas,
|
|
541
|
+
createForOrganization: atlasApi.createForOrganizationAtlas,
|
|
542
|
+
transfer: atlasApi.transferAtlas,
|
|
543
|
+
countOrganization: atlasApi.countOrganizationAtlas,
|
|
544
|
+
public: {
|
|
545
|
+
get: atlasPublicApi.getAtlasPublic,
|
|
546
|
+
getPage: atlasPublicApi.getPageAtlasPublic,
|
|
547
|
+
searchContent: atlasPublicApi.searchContentAtlasPublic,
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
atlasGroup: {
|
|
551
|
+
paginate: atlasGroupApi.paginateAtlasGroup,
|
|
552
|
+
get: atlasGroupApi.getAtlasGroup,
|
|
553
|
+
delete: atlasGroupApi.deleteAtlasGroup,
|
|
554
|
+
update: atlasGroupApi.updateAtlasGroup,
|
|
555
|
+
create: atlasGroupApi.createAtlasGroup,
|
|
556
|
+
},
|
|
557
|
+
atlasPage: {
|
|
558
|
+
paginate: atlasPageApi.paginateAtlasPage,
|
|
559
|
+
get: atlasPageApi.getAtlasPage,
|
|
560
|
+
delete: atlasPageApi.deleteAtlasPage,
|
|
561
|
+
update: atlasPageApi.updateAtlasPage,
|
|
562
|
+
create: atlasPageApi.createAtlasPage,
|
|
563
|
+
updateContent: atlasPageApi.updateAtlasPageContent,
|
|
564
|
+
searchContent: atlasPageApi.searchAtlasContent,
|
|
565
|
+
getContentHistory: atlasPageApi.getAtlasPageContentHistory,
|
|
566
|
+
restoreContent: atlasPageApi.restoreAtlasPageContent,
|
|
567
|
+
},
|
|
568
|
+
atlasDocument: {
|
|
569
|
+
get: atlasDocumentApi.getAtlasDocument,
|
|
570
|
+
delete: atlasDocumentApi.deleteAtlasDocument,
|
|
571
|
+
getUploadPreSignedUrl: atlasDocumentApi.getUploadPreSignedUrlAtlasDocument,
|
|
572
|
+
paginate: atlasDocumentApi.paginateAtlasDocument,
|
|
573
|
+
list: atlasDocumentApi.listAtlasDocument,
|
|
574
|
+
},
|
|
575
|
+
memo: {
|
|
576
|
+
paginate: memoApi.paginateMemo,
|
|
577
|
+
paginateProject: memoApi.paginateProjectMemo,
|
|
578
|
+
paginateOrganization: memoApi.paginateOrganizationMemo,
|
|
579
|
+
get: memoApi.getMemo,
|
|
580
|
+
delete: memoApi.deleteMemo,
|
|
581
|
+
update: memoApi.updateMemo,
|
|
582
|
+
create: memoApi.createMemo,
|
|
583
|
+
createForOrganization: memoApi.createForOrganizationMemo,
|
|
584
|
+
transfer: memoApi.transferMemo,
|
|
585
|
+
countOrganization: memoApi.countOrganizationMemo,
|
|
586
|
+
},
|
|
587
|
+
shortLink: {
|
|
588
|
+
get: shortLinkApiModule.shortLinkApi.get,
|
|
589
|
+
paginate: shortLinkApiModule.shortLinkApi.paginate,
|
|
590
|
+
paginateProject: shortLinkApiModule.shortLinkApi.paginateProject,
|
|
591
|
+
paginateOrganization: shortLinkApiModule.shortLinkApi.paginateOrganization,
|
|
592
|
+
create: shortLinkApiModule.shortLinkApi.create,
|
|
593
|
+
createForOrganization: shortLinkApiModule.shortLinkApi.createForOrganization,
|
|
594
|
+
update: shortLinkApiModule.shortLinkApi.update,
|
|
595
|
+
delete: shortLinkApiModule.shortLinkApi.delete,
|
|
596
|
+
getStats: shortLinkApiModule.shortLinkApi.getStats,
|
|
597
|
+
getClicks: shortLinkApiModule.shortLinkApi.getClicks,
|
|
598
|
+
transfer: shortLinkApiModule.shortLinkApi.transfer,
|
|
599
|
+
countOrganization: shortLinkApiModule.shortLinkApi.countOrganization,
|
|
600
|
+
admin: {
|
|
601
|
+
paginate: shortLinkAdminApiModule.shortLinkAdminApi.paginate,
|
|
602
|
+
get: shortLinkAdminApiModule.shortLinkAdminApi.get,
|
|
603
|
+
update: shortLinkAdminApiModule.shortLinkAdminApi.update,
|
|
604
|
+
delete: shortLinkAdminApiModule.shortLinkAdminApi.delete,
|
|
605
|
+
},
|
|
606
|
+
public: {
|
|
607
|
+
createAnonymous: shortLinkPublicApiModule.shortLinkPublicApi.createAnonymous,
|
|
608
|
+
redirect: shortLinkPublicApiModule.shortLinkPublicApi.redirect,
|
|
609
|
+
getStats: shortLinkPublicApiModule.shortLinkPublicApi.getStats,
|
|
610
|
+
getClicks: shortLinkPublicApiModule.shortLinkPublicApi.getClicks,
|
|
611
|
+
renew: shortLinkPublicApiModule.shortLinkPublicApi.renew,
|
|
612
|
+
},
|
|
613
|
+
},
|
|
614
|
+
metrics: {
|
|
615
|
+
getOrganizationTools: metricsApi.getOrganizationToolsMetrics,
|
|
616
|
+
getProjectTools: metricsApi.getProjectToolsMetrics,
|
|
617
|
+
},
|
|
618
|
+
tag: {
|
|
619
|
+
list: tagApi.listTag,
|
|
620
|
+
create: tagApi.createTag,
|
|
621
|
+
update: tagApi.updateTag,
|
|
622
|
+
delete: tagApi.deleteTag,
|
|
623
|
+
assign: tagApi.assignTag,
|
|
624
|
+
unassign: tagApi.unassignTag,
|
|
625
|
+
getStats: tagApi.getTagStats,
|
|
626
|
+
getEntityTags: tagApi.getEntityTags,
|
|
627
|
+
},
|
|
628
|
+
organization: {
|
|
629
|
+
recent: organizationApi.recentOrganization,
|
|
630
|
+
},
|
|
631
|
+
rcb: {
|
|
632
|
+
health: rcbApi.healthRcb,
|
|
633
|
+
stats: rcbApi.statsRcb,
|
|
634
|
+
changelog: rcbApi.changelogRcb,
|
|
635
|
+
detect: rcbApi.detectRcb,
|
|
636
|
+
quota: rcbApi.getQuotaRcb,
|
|
637
|
+
extract: {
|
|
638
|
+
sync: rcbApi.extractSyncRcb,
|
|
639
|
+
queue: rcbApi.extractQueueRcb,
|
|
640
|
+
bulk: rcbApi.extractBulkRcb,
|
|
641
|
+
detect: rcbApi.detectRcb,
|
|
642
|
+
detectBulk: rcbApi.detectBulkRcb,
|
|
643
|
+
},
|
|
644
|
+
files: {
|
|
645
|
+
list: rcbApi.listFilesRcb,
|
|
646
|
+
listShared: rcbApi.listSharedFilesRcb,
|
|
647
|
+
get: rcbApi.getFileRcb,
|
|
648
|
+
patch: rcbApi.patchFileRcb,
|
|
649
|
+
listExtractions: rcbApi.listFileExtractionsRcb,
|
|
650
|
+
downloadBundle: rcbApi.downloadFileBundleRcb,
|
|
651
|
+
},
|
|
652
|
+
extractions: {
|
|
653
|
+
get: rcbApi.getExtractionRcb,
|
|
654
|
+
patch: rcbApi.patchExtractionRcb,
|
|
655
|
+
searchRecords: rcbApi.searchExtractionRecordsRcb,
|
|
656
|
+
export: rcbApi.exportExtractionRcb,
|
|
657
|
+
asyncExport: rcbApi.asyncExportExtractionRcb,
|
|
658
|
+
getExportJob: rcbApi.getExportJobRcb,
|
|
659
|
+
diff: rcbApi.diffExtractionsRcb,
|
|
660
|
+
},
|
|
661
|
+
templates: {
|
|
662
|
+
list: rcbApi.listTemplatesRcb,
|
|
663
|
+
get: rcbApi.getTemplateRcb,
|
|
664
|
+
create: rcbApi.createTemplateRcb,
|
|
665
|
+
update: rcbApi.updateTemplateRcb,
|
|
666
|
+
patchMeta: rcbApi.patchTemplateMetaRcb,
|
|
667
|
+
delete: rcbApi.deleteTemplateRcb,
|
|
668
|
+
listVersions: rcbApi.listTemplateVersionsRcb,
|
|
669
|
+
exportCollection: rcbApi.exportTemplateCollectionRcb,
|
|
670
|
+
importCollection: rcbApi.importTemplateCollectionRcb,
|
|
671
|
+
},
|
|
672
|
+
jobs: {
|
|
673
|
+
get: rcbApi.getJobRcb,
|
|
674
|
+
retry: rcbApi.retryJobRcb,
|
|
675
|
+
cancel: rcbApi.cancelJobRcb,
|
|
676
|
+
},
|
|
677
|
+
feedback: {
|
|
678
|
+
submit: rcbApi.submitFeedbackRcb,
|
|
679
|
+
list: rcbApi.listFeedbackRcb,
|
|
680
|
+
get: rcbApi.getFeedbackRcb,
|
|
681
|
+
patch: rcbApi.patchFeedbackRcb,
|
|
682
|
+
},
|
|
683
|
+
usage: {
|
|
684
|
+
list: rcbApi.listUsageRcb,
|
|
685
|
+
summary: rcbApi.summaryUsageRcb,
|
|
686
|
+
quota: rcbApi.getQuotaRcb,
|
|
687
|
+
},
|
|
688
|
+
share: {
|
|
689
|
+
mint: rcbApi.mintShareExtractionRcb,
|
|
690
|
+
revoke: rcbApi.revokeShareExtractionRcb,
|
|
691
|
+
public: { get: rcbApi.getSharedExtractionRcbPublic },
|
|
692
|
+
},
|
|
693
|
+
webhookDeliveries: {
|
|
694
|
+
list: rcbApi.listWebhookDeliveriesRcb,
|
|
695
|
+
get: rcbApi.getWebhookDeliveryRcb,
|
|
696
|
+
replay: rcbApi.replayWebhookDeliveryRcb,
|
|
697
|
+
},
|
|
698
|
+
webhook: {
|
|
699
|
+
paginate: rcbApi.paginateRcbWebhook,
|
|
700
|
+
get: rcbApi.getRcbWebhook,
|
|
701
|
+
create: rcbApi.createRcbWebhook,
|
|
702
|
+
update: rcbApi.updateRcbWebhook,
|
|
703
|
+
delete: rcbApi.deleteRcbWebhook,
|
|
704
|
+
resetSecret: rcbApi.resetSecretRcbWebhook,
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
public static enableAxiosRetry(axiosRetryConfig?: IAxiosRetryConfig): void {
|
|
711
|
+
axiosRetry(AbyssToolsCore.axios, {
|
|
712
|
+
retries: NUMBER_RETRY_API,
|
|
713
|
+
retryDelay: (retryCount) => retryCount * BASE_DELAY_BETWEEN_RETRY,
|
|
714
|
+
retryCondition: (error) =>
|
|
715
|
+
isNetworkOrIdempotentRequestError(error) ||
|
|
716
|
+
RETRY_CODES.includes(error.response?.status || 502),
|
|
717
|
+
...axiosRetryConfig,
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
public static setConfig(config: CoreConfig): void {
|
|
722
|
+
AbyssToolsCore._sdk = null;
|
|
723
|
+
|
|
724
|
+
AbyssToolsCore.config = { ...AbyssToolsCore.config, ...config };
|
|
725
|
+
|
|
726
|
+
if (config.baseURL) {
|
|
727
|
+
AbyssToolsCore.axios.defaults.baseURL = config.baseURL;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
if (config.token) {
|
|
731
|
+
AbyssToolsCore.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
if (config.apiKey) {
|
|
735
|
+
AbyssToolsCore.axios.defaults.headers.common[API_KEY_HEADER] = `${config.apiKey}`;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (config.adminToken) {
|
|
739
|
+
AbyssToolsCore.axios.defaults.headers.common[ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
public static getConfig(): CoreConfig {
|
|
744
|
+
return AbyssToolsCore.config;
|
|
745
|
+
}
|
|
746
|
+
}
|