@abyss-project/tools 1.0.5 → 1.2.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 -33
- package/.prettierrc +5 -5
- package/README.md +32 -32
- package/dist/api/beam.api.d.ts +48 -0
- package/dist/api/beam.api.js +104 -0
- package/dist/api/beam.api.js.map +1 -0
- package/dist/api/extraction-plan-preset.api.d.ts +9 -0
- package/dist/api/extraction-plan-preset.api.js +23 -0
- package/dist/api/extraction-plan-preset.api.js.map +1 -0
- package/dist/api/extraction-plan-preset.api.test.d.ts +1 -0
- package/dist/api/extraction-plan-preset.api.test.js +41 -0
- package/dist/api/extraction-plan-preset.api.test.js.map +1 -0
- package/dist/api/extraction-settings.api.d.ts +4 -0
- package/dist/api/extraction-settings.api.js +22 -0
- package/dist/api/extraction-settings.api.js.map +1 -0
- package/dist/api/extraction.api.d.ts +74 -0
- package/dist/api/extraction.api.js +416 -0
- package/dist/api/extraction.api.js.map +1 -0
- package/dist/api/index.d.ts +4 -1
- package/dist/api/index.js +4 -1
- package/dist/api/index.js.map +1 -1
- package/dist/constants/beam.constants.d.ts +1 -0
- package/dist/constants/beam.constants.js +5 -0
- package/dist/constants/beam.constants.js.map +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/index.d.ts +108 -59
- package/dist/index.js +106 -59
- package/dist/index.js.map +1 -1
- package/dist/types/enum/beam.enum.d.ts +12 -0
- package/dist/types/enum/beam.enum.js +18 -0
- package/dist/types/enum/beam.enum.js.map +1 -0
- package/dist/types/enum/combine-strategy.enum.d.ts +5 -0
- package/dist/types/enum/combine-strategy.enum.js +10 -0
- package/dist/types/enum/combine-strategy.enum.js.map +1 -0
- package/dist/types/enum/content-share.enum.d.ts +3 -1
- package/dist/types/enum/content-share.enum.js +2 -0
- package/dist/types/enum/content-share.enum.js.map +1 -1
- package/dist/types/enum/document-type.enum.d.ts +9 -0
- package/dist/types/enum/document-type.enum.js +14 -0
- package/dist/types/enum/document-type.enum.js.map +1 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.d.ts +8 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.js +13 -0
- package/dist/types/enum/extraction-feedback-issue-type.enum.js.map +1 -0
- package/dist/types/enum/extraction-warning.enum.d.ts +7 -0
- package/dist/types/enum/extraction-warning.enum.js +12 -0
- package/dist/types/enum/extraction-warning.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +7 -0
- package/dist/types/enum/index.js +7 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/interpreter-kind.enum.d.ts +5 -0
- package/dist/types/enum/interpreter-kind.enum.js +10 -0
- package/dist/types/enum/interpreter-kind.enum.js.map +1 -0
- package/dist/types/enum/provider-kind.enum.d.ts +10 -0
- package/dist/types/enum/provider-kind.enum.js +16 -0
- package/dist/types/enum/provider-kind.enum.js.map +1 -0
- package/dist/types/interface/api/requests/beam.request.d.ts +122 -0
- package/dist/types/interface/api/{responses/pdf.response.js → requests/beam.request.js} +1 -1
- package/dist/types/interface/api/requests/beam.request.js.map +1 -0
- package/dist/types/interface/api/requests/{rcb.request.d.ts → extraction.request.d.ts} +81 -52
- package/dist/types/interface/api/requests/{pdf.public.request.js → extraction.request.js} +1 -1
- package/dist/types/interface/api/requests/extraction.request.js.map +1 -0
- package/dist/types/interface/api/requests/index.d.ts +2 -1
- package/dist/types/interface/api/requests/index.js +2 -1
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/responses/beam.response.d.ts +92 -0
- package/dist/types/interface/api/responses/{rcb.response.js → beam.response.js} +1 -1
- package/dist/types/interface/api/responses/beam.response.js.map +1 -0
- package/dist/types/interface/api/responses/extraction.response.d.ts +403 -0
- package/dist/types/interface/api/{requests/user-tag.request.js → responses/extraction.response.js} +1 -1
- package/dist/types/interface/api/responses/extraction.response.js.map +1 -0
- package/dist/types/interface/api/responses/index.d.ts +2 -1
- package/dist/types/interface/api/responses/index.js +2 -1
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/models/beam.dto.d.ts +58 -0
- package/dist/types/interface/{api/requests/pdf.request.js → models/beam.dto.js} +1 -1
- package/dist/types/interface/models/beam.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js +159 -0
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js.map +1 -0
- package/dist/types/interface/models/extraction-plan.dto.d.ts +163 -0
- package/dist/types/interface/models/extraction-plan.dto.js +11 -0
- package/dist/types/interface/models/extraction-plan.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-plan.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-plan.dto.test.js +35 -0
- package/dist/types/interface/models/extraction-plan.dto.test.js.map +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.d.ts +37 -0
- package/dist/types/interface/{api/requests/rcb.request.js → models/extraction-spatial-template.dto.js} +1 -1
- package/dist/types/interface/models/extraction-spatial-template.dto.js.map +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.d.ts +1 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js +15 -0
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js.map +1 -0
- package/dist/types/interface/models/{rcb.dto.d.ts → extraction.dto.d.ts} +64 -48
- package/dist/types/interface/models/extraction.dto.js +28 -0
- package/dist/types/interface/models/extraction.dto.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +4 -1
- package/dist/types/interface/models/index.js +4 -1
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/organization.dto.d.ts +2 -0
- package/dist/utils/{rcb-webhook.utils.d.ts → extraction-webhook.utils.d.ts} +2 -2
- package/dist/utils/{rcb-webhook.utils.js → extraction-webhook.utils.js} +4 -4
- package/dist/utils/extraction-webhook.utils.js.map +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/shape.utils.js +18 -18
- package/package.json +14 -9
- package/src/api/abyss.admin.api.ts +54 -54
- 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 -103
- package/src/api/atlas.public.api.ts +42 -42
- package/src/api/beam.api.ts +300 -0
- 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 -122
- package/src/api/draw.api.ts +97 -97
- package/src/api/draw.public.api.ts +48 -48
- package/src/api/extraction-plan-preset.api.test.ts +24 -0
- package/src/api/extraction-plan-preset.api.ts +51 -0
- package/src/api/extraction-settings.api.ts +59 -0
- package/src/api/extraction.api.ts +899 -0
- package/src/api/index.ts +56 -51
- package/src/api/memo.api.ts +97 -97
- package/src/api/metrics.api.ts +27 -27
- package/src/api/monitor.api.ts +6 -6
- package/src/api/organization.api.ts +14 -14
- 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 -124
- 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 -125
- package/src/api/short-link.public.api.ts +60 -60
- package/src/api/tag.api.ts +72 -72
- package/src/api/tests/beam.api.spec.ts +42 -0
- package/src/constants/atlas.constants.ts +2 -2
- package/src/constants/beam.constants.ts +4 -0
- package/src/constants/board.constants.ts +7 -7
- package/src/constants/index.ts +6 -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 -3
- package/src/index.ts +840 -747
- 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/beam.enum.ts +24 -0
- 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/combine-strategy.enum.ts +7 -0
- package/src/types/enum/content-share.enum.ts +38 -36
- package/src/types/enum/document-type.enum.ts +10 -0
- package/src/types/enum/extraction-feedback-issue-type.enum.ts +10 -0
- package/src/types/enum/extraction-warning.enum.ts +21 -0
- package/src/types/enum/index.ts +13 -6
- package/src/types/enum/interpreter-kind.enum.ts +7 -0
- package/src/types/enum/pdf-operation.enum.ts +98 -98
- package/src/types/enum/provider-kind.enum.ts +13 -0
- package/src/types/enum/rcb-bank.enum.ts +137 -137
- 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 -20
- 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 -52
- package/src/types/interface/api/requests/beam.request.ts +152 -0
- 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 -61
- package/src/types/interface/api/requests/draw.public.request.ts +20 -20
- package/src/types/interface/api/requests/draw.request.ts +49 -49
- package/src/types/interface/api/requests/extraction.request.ts +366 -0
- package/src/types/interface/api/requests/index.ts +29 -28
- package/src/types/interface/api/requests/memo.request.ts +49 -49
- package/src/types/interface/api/requests/metrics.request.ts +7 -7
- 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 -59
- 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 -71
- package/src/types/interface/api/requests/tag.request.ts +54 -54
- package/src/types/interface/api/requests/transfer.request.ts +3 -3
- package/src/types/interface/api/responses/abyss.admin.response.ts +28 -28
- 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 -32
- package/src/types/interface/api/responses/beam.response.ts +122 -0
- 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 -81
- package/src/types/interface/api/responses/count.response.ts +9 -9
- package/src/types/interface/api/responses/draw.public.response.ts +22 -22
- package/src/types/interface/api/responses/draw.response.ts +32 -32
- package/src/types/interface/api/responses/enriched-paginate.response.ts +11 -11
- package/src/types/interface/api/responses/extraction.response.ts +454 -0
- package/src/types/interface/api/responses/index.ts +33 -32
- package/src/types/interface/api/responses/memo.response.ts +32 -32
- package/src/types/interface/api/responses/metrics.response.ts +22 -22
- package/src/types/interface/api/responses/monitor.response.ts +8 -8
- package/src/types/interface/api/responses/recent.response.ts +18 -18
- 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 -32
- 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 -38
- package/src/types/interface/api/responses/tag.response.ts +38 -38
- package/src/types/interface/api/responses/transfer.response.ts +14 -14
- 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/beam.dto.ts +67 -0
- 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 -33
- package/src/types/interface/models/content-share.dto.ts +16 -16
- package/src/types/interface/models/draw.dto.ts +30 -30
- package/src/types/interface/models/extraction-fetched-provenance.dto.test.ts +193 -0
- package/src/types/interface/models/extraction-plan.dto.test.ts +47 -0
- package/src/types/interface/models/extraction-plan.dto.ts +241 -0
- package/src/types/interface/models/extraction-spatial-template.dto.test.ts +27 -0
- package/src/types/interface/models/extraction-spatial-template.dto.ts +48 -0
- package/src/types/interface/models/{rcb.dto.ts → extraction.dto.ts} +317 -267
- package/src/types/interface/models/index.ts +34 -31
- package/src/types/interface/models/memo.dto.ts +23 -23
- package/src/types/interface/models/organization.dto.ts +21 -12
- package/src/types/interface/models/project.dto.ts +25 -25
- 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 -49
- package/src/types/interface/models/tag.dto.ts +26 -26
- package/src/types/interface/models/team.dto.ts +12 -12
- package/src/types/interface/models/user.dto.ts +26 -26
- package/src/types/tests/beam-management-types.spec.ts +38 -0
- package/src/types/tests/beam-share-enums.spec.ts +11 -0
- package/src/types/tests/beam.dto.spec.ts +61 -0
- package/src/types/tests/beam.request-response.spec.ts +43 -0
- package/src/utils/board.utils.ts +57 -57
- package/src/utils/enum.utils.ts +5 -5
- package/src/utils/error.utils.ts +30 -30
- package/src/utils/{rcb-webhook.utils.ts → extraction-webhook.utils.ts} +30 -30
- package/src/utils/icons.utils.ts +96 -96
- package/src/utils/index.ts +6 -6
- package/src/utils/shape.utils.ts +292 -292
- package/tsconfig.json +36 -35
- package/dist/api/atlas-page-content.api.d.ts +0 -0
- package/dist/api/atlas-page-content.api.js +0 -2
- package/dist/api/atlas-page-content.api.js.map +0 -1
- package/dist/api/pdf.api.d.ts +0 -15
- package/dist/api/pdf.api.js +0 -61
- package/dist/api/pdf.api.js.map +0 -1
- package/dist/api/pdf.public.api.d.ts +0 -8
- package/dist/api/pdf.public.api.js +0 -33
- package/dist/api/pdf.public.api.js.map +0 -1
- package/dist/api/rcb.api.d.ts +0 -72
- package/dist/api/rcb.api.js +0 -400
- package/dist/api/rcb.api.js.map +0 -1
- package/dist/api/user-tag.api.d.ts +0 -9
- package/dist/api/user-tag.api.js +0 -37
- package/dist/api/user-tag.api.js.map +0 -1
- package/dist/constants/user-tag.constants.d.ts +0 -3
- package/dist/constants/user-tag.constants.js +0 -7
- package/dist/constants/user-tag.constants.js.map +0 -1
- package/dist/types/enum/pdf-session.enum.d.ts +0 -10
- package/dist/types/enum/pdf-session.enum.js +0 -16
- package/dist/types/enum/pdf-session.enum.js.map +0 -1
- package/dist/types/interface/api/requests/pdf.public.request.d.ts +0 -19
- package/dist/types/interface/api/requests/pdf.public.request.js.map +0 -1
- package/dist/types/interface/api/requests/pdf.request.d.ts +0 -50
- package/dist/types/interface/api/requests/pdf.request.js.map +0 -1
- package/dist/types/interface/api/requests/rcb.request.js.map +0 -1
- package/dist/types/interface/api/requests/user-tag.request.d.ts +0 -44
- package/dist/types/interface/api/requests/user-tag.request.js.map +0 -1
- package/dist/types/interface/api/responses/pdf.public.response.d.ts +0 -33
- package/dist/types/interface/api/responses/pdf.public.response.js +0 -3
- package/dist/types/interface/api/responses/pdf.public.response.js.map +0 -1
- package/dist/types/interface/api/responses/pdf.response.d.ts +0 -35
- package/dist/types/interface/api/responses/pdf.response.js.map +0 -1
- package/dist/types/interface/api/responses/rcb.response.d.ts +0 -376
- package/dist/types/interface/api/responses/rcb.response.js.map +0 -1
- package/dist/types/interface/api/responses/user-tag.response.d.ts +0 -32
- package/dist/types/interface/api/responses/user-tag.response.js +0 -3
- package/dist/types/interface/api/responses/user-tag.response.js.map +0 -1
- package/dist/types/interface/models/pdf-session.dto.d.ts +0 -28
- package/dist/types/interface/models/pdf-session.dto.js +0 -3
- package/dist/types/interface/models/pdf-session.dto.js.map +0 -1
- package/dist/types/interface/models/rcb.dto.js +0 -26
- package/dist/types/interface/models/rcb.dto.js.map +0 -1
- package/dist/types/interface/models/user-tag.dto.d.ts +0 -22
- package/dist/types/interface/models/user-tag.dto.js +0 -3
- package/dist/types/interface/models/user-tag.dto.js.map +0 -1
- package/dist/utils/rcb-webhook.utils.js.map +0 -1
- package/src/api/rcb.api.ts +0 -829
- package/src/types/interface/api/requests/rcb.request.ts +0 -267
- package/src/types/interface/api/responses/rcb.response.ts +0 -399
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import type {
|
|
3
|
+
IGetBeamParams,
|
|
4
|
+
IGetBeamResponse,
|
|
5
|
+
IGetBeamBySlugParams,
|
|
6
|
+
IGetBeamPublicResponse,
|
|
7
|
+
IUnlockBeamPublicParams,
|
|
8
|
+
IUnlockBeamPublicBody,
|
|
9
|
+
IUnlockBeamPublicResponse,
|
|
10
|
+
IPaginateBeamQuery,
|
|
11
|
+
IPaginateBeamResponse,
|
|
12
|
+
IPaginateProjectBeamParams,
|
|
13
|
+
IPaginateOrganizationBeamParams,
|
|
14
|
+
ICreateBeamBody,
|
|
15
|
+
ICreateBeamResponse,
|
|
16
|
+
ICreateForOrganizationBeamParams,
|
|
17
|
+
IUpdateBeamParams,
|
|
18
|
+
IUpdateBeamBody,
|
|
19
|
+
IUpdateBeamResponse,
|
|
20
|
+
IDeleteBeamParams,
|
|
21
|
+
IDeleteBeamResponse,
|
|
22
|
+
ICreateBeamPublicBody,
|
|
23
|
+
IAddBeamFilesParams,
|
|
24
|
+
IAddBeamFilesBody,
|
|
25
|
+
IAddBeamFilesResponse,
|
|
26
|
+
IImportCloudBeamFilesParams,
|
|
27
|
+
IImportCloudBeamFilesBody,
|
|
28
|
+
IFinalizeBeamParams,
|
|
29
|
+
IFinalizeBeamBody,
|
|
30
|
+
IFinalizeBeamResponse,
|
|
31
|
+
IRenewBeamParams,
|
|
32
|
+
IRenewBeamResponse,
|
|
33
|
+
IReactivateBeamParams,
|
|
34
|
+
IReactivateBeamResponse,
|
|
35
|
+
ICreateBeamShareParams,
|
|
36
|
+
ICreateBeamShareBody,
|
|
37
|
+
ICreateBeamShareResponse,
|
|
38
|
+
IListBeamSharesParams,
|
|
39
|
+
IListBeamSharesResponse,
|
|
40
|
+
IRevokeBeamShareParams,
|
|
41
|
+
IRevokeBeamShareResponse,
|
|
42
|
+
IAddRecipientsBeamBody,
|
|
43
|
+
IAddRecipientsBeamResponse,
|
|
44
|
+
IListRecipientsBeamResponse,
|
|
45
|
+
} from '../types';
|
|
46
|
+
import { BEAM_MANAGE_TOKEN_HEADER } from '../constants/beam.constants';
|
|
47
|
+
|
|
48
|
+
// Anonymous management requests carry the plaintext manage token as a header the
|
|
49
|
+
// API (BeamMiddleware) compares to beam_transfers.manageTokenHash. Owner requests
|
|
50
|
+
// omit it and authorize via the session JWT instead.
|
|
51
|
+
const manageTokenHeader = (manageToken?: string): { headers?: Record<string, string> } =>
|
|
52
|
+
manageToken ? { headers: { [BEAM_MANAGE_TOKEN_HEADER]: manageToken } } : {};
|
|
53
|
+
|
|
54
|
+
export const beamApi = {
|
|
55
|
+
get: async (params: IGetBeamParams): Promise<IGetBeamResponse> => {
|
|
56
|
+
const response = await AbyssToolsCore.axios.get<IGetBeamResponse>(`/beam/${params.beamId}`);
|
|
57
|
+
return response.data;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
getBySlug: async (params: IGetBeamBySlugParams): Promise<IGetBeamPublicResponse> => {
|
|
61
|
+
const response = await AbyssToolsCore.axios.get<IGetBeamPublicResponse>(`/b/${params.slug}`);
|
|
62
|
+
return response.data;
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
unlock: async (
|
|
66
|
+
params: IUnlockBeamPublicParams,
|
|
67
|
+
body: IUnlockBeamPublicBody,
|
|
68
|
+
): Promise<IUnlockBeamPublicResponse> => {
|
|
69
|
+
const response = await AbyssToolsCore.axios.post<IUnlockBeamPublicResponse>(
|
|
70
|
+
`/b/${params.slug}/unlock`,
|
|
71
|
+
body,
|
|
72
|
+
);
|
|
73
|
+
return response.data;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
paginate: async (query: IPaginateBeamQuery): Promise<IPaginateBeamResponse> => {
|
|
77
|
+
const response = await AbyssToolsCore.axios.get<IPaginateBeamResponse>('/beam/paginate', {
|
|
78
|
+
params: query,
|
|
79
|
+
});
|
|
80
|
+
return response.data;
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
paginateProject: async (
|
|
84
|
+
params: IPaginateProjectBeamParams,
|
|
85
|
+
query: IPaginateBeamQuery,
|
|
86
|
+
): Promise<IPaginateBeamResponse> => {
|
|
87
|
+
const response = await AbyssToolsCore.axios.get<IPaginateBeamResponse>(
|
|
88
|
+
`/beam/project/${params.projectId}/paginate`,
|
|
89
|
+
{ params: query },
|
|
90
|
+
);
|
|
91
|
+
return response.data;
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
paginateOrganization: async (
|
|
95
|
+
params: IPaginateOrganizationBeamParams,
|
|
96
|
+
query: IPaginateBeamQuery,
|
|
97
|
+
): Promise<IPaginateBeamResponse> => {
|
|
98
|
+
const response = await AbyssToolsCore.axios.get<IPaginateBeamResponse>(
|
|
99
|
+
`/beam/organization/${params.organizationId}/paginate`,
|
|
100
|
+
{ params: query },
|
|
101
|
+
);
|
|
102
|
+
return response.data;
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
create: async (body: ICreateBeamBody): Promise<ICreateBeamResponse> => {
|
|
106
|
+
const response = await AbyssToolsCore.axios.post<ICreateBeamResponse>('/beam', body);
|
|
107
|
+
return response.data;
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
createForOrganization: async (
|
|
111
|
+
params: ICreateForOrganizationBeamParams,
|
|
112
|
+
body: ICreateBeamBody,
|
|
113
|
+
): Promise<ICreateBeamResponse> => {
|
|
114
|
+
const response = await AbyssToolsCore.axios.post<ICreateBeamResponse>(
|
|
115
|
+
`/beam/organization/${params.organizationId}`,
|
|
116
|
+
body,
|
|
117
|
+
);
|
|
118
|
+
return response.data;
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
update: async (
|
|
122
|
+
params: IUpdateBeamParams,
|
|
123
|
+
body: IUpdateBeamBody,
|
|
124
|
+
): Promise<IUpdateBeamResponse> => {
|
|
125
|
+
const response = await AbyssToolsCore.axios.put<IUpdateBeamResponse>(
|
|
126
|
+
`/beam/${params.beamId}`,
|
|
127
|
+
body,
|
|
128
|
+
);
|
|
129
|
+
return response.data;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
delete: async (params: IDeleteBeamParams): Promise<IDeleteBeamResponse> => {
|
|
133
|
+
const response = await AbyssToolsCore.axios.delete<IDeleteBeamResponse>(
|
|
134
|
+
`/beam/${params.beamId}`,
|
|
135
|
+
);
|
|
136
|
+
return response.data;
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
renew: async (params: IRenewBeamParams): Promise<IRenewBeamResponse> => {
|
|
140
|
+
return (
|
|
141
|
+
await AbyssToolsCore.axios.post<IRenewBeamResponse>(`/beam/${params.beamId}/renew`)
|
|
142
|
+
).data;
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
reactivate: async (params: IReactivateBeamParams): Promise<IReactivateBeamResponse> => {
|
|
146
|
+
return (
|
|
147
|
+
await AbyssToolsCore.axios.post<IReactivateBeamResponse>(`/beam/${params.beamId}/reactivate`)
|
|
148
|
+
).data;
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
share: {
|
|
152
|
+
create: async (
|
|
153
|
+
params: ICreateBeamShareParams,
|
|
154
|
+
body: ICreateBeamShareBody,
|
|
155
|
+
): Promise<ICreateBeamShareResponse> => {
|
|
156
|
+
return (
|
|
157
|
+
await AbyssToolsCore.axios.post<ICreateBeamShareResponse>(
|
|
158
|
+
`/beam/${params.beamId}/share`,
|
|
159
|
+
body,
|
|
160
|
+
)
|
|
161
|
+
).data;
|
|
162
|
+
},
|
|
163
|
+
list: async (params: IListBeamSharesParams): Promise<IListBeamSharesResponse> => {
|
|
164
|
+
return (
|
|
165
|
+
await AbyssToolsCore.axios.get<IListBeamSharesResponse>(`/beam/${params.beamId}/share`)
|
|
166
|
+
).data;
|
|
167
|
+
},
|
|
168
|
+
revoke: async (params: IRevokeBeamShareParams): Promise<IRevokeBeamShareResponse> => {
|
|
169
|
+
return (
|
|
170
|
+
await AbyssToolsCore.axios.delete<IRevokeBeamShareResponse>(
|
|
171
|
+
`/beam/${params.beamId}/share/${params.shareId}`,
|
|
172
|
+
)
|
|
173
|
+
).data;
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
recipients: {
|
|
178
|
+
add: async (
|
|
179
|
+
params: { beamId: string },
|
|
180
|
+
body: IAddRecipientsBeamBody,
|
|
181
|
+
): Promise<IAddRecipientsBeamResponse> =>
|
|
182
|
+
(
|
|
183
|
+
await AbyssToolsCore.axios.post<IAddRecipientsBeamResponse>(
|
|
184
|
+
`beam/${params.beamId}/recipients`,
|
|
185
|
+
body,
|
|
186
|
+
)
|
|
187
|
+
).data,
|
|
188
|
+
list: async (params: { beamId: string }): Promise<IListRecipientsBeamResponse> =>
|
|
189
|
+
(
|
|
190
|
+
await AbyssToolsCore.axios.get<IListRecipientsBeamResponse>(
|
|
191
|
+
`beam/${params.beamId}/recipients`,
|
|
192
|
+
)
|
|
193
|
+
).data,
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
addFiles: async (
|
|
197
|
+
params: IAddBeamFilesParams,
|
|
198
|
+
body: IAddBeamFilesBody,
|
|
199
|
+
): Promise<IAddBeamFilesResponse> => {
|
|
200
|
+
return (
|
|
201
|
+
await AbyssToolsCore.axios.post<IAddBeamFilesResponse>(`/beam/${params.beamId}/files`, body)
|
|
202
|
+
).data;
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
importCloudFiles: async (
|
|
206
|
+
params: IImportCloudBeamFilesParams,
|
|
207
|
+
body: IImportCloudBeamFilesBody,
|
|
208
|
+
): Promise<IAddBeamFilesResponse> => {
|
|
209
|
+
return (
|
|
210
|
+
await AbyssToolsCore.axios.post<IAddBeamFilesResponse>(
|
|
211
|
+
`/beam/${params.beamId}/files/import-cloud`,
|
|
212
|
+
body,
|
|
213
|
+
)
|
|
214
|
+
).data;
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
finalize: async (
|
|
218
|
+
params: IFinalizeBeamParams,
|
|
219
|
+
body?: IFinalizeBeamBody,
|
|
220
|
+
): Promise<IFinalizeBeamResponse> => {
|
|
221
|
+
return (
|
|
222
|
+
await AbyssToolsCore.axios.post<IFinalizeBeamResponse>(
|
|
223
|
+
`/beam/${params.beamId}/finalize`,
|
|
224
|
+
body ?? {},
|
|
225
|
+
)
|
|
226
|
+
).data;
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
public: {
|
|
230
|
+
create: async (body: ICreateBeamPublicBody): Promise<ICreateBeamResponse> => {
|
|
231
|
+
return (await AbyssToolsCore.axios.post<ICreateBeamResponse>(`/beam/public`, body)).data;
|
|
232
|
+
},
|
|
233
|
+
addFiles: async (
|
|
234
|
+
params: IAddBeamFilesParams,
|
|
235
|
+
body: IAddBeamFilesBody,
|
|
236
|
+
): Promise<IAddBeamFilesResponse> => {
|
|
237
|
+
return (
|
|
238
|
+
await AbyssToolsCore.axios.post<IAddBeamFilesResponse>(
|
|
239
|
+
`/beam/public/${params.beamId}/files`,
|
|
240
|
+
body,
|
|
241
|
+
)
|
|
242
|
+
).data;
|
|
243
|
+
},
|
|
244
|
+
finalize: async (
|
|
245
|
+
params: IFinalizeBeamParams,
|
|
246
|
+
body?: IFinalizeBeamBody,
|
|
247
|
+
): Promise<IFinalizeBeamResponse> => {
|
|
248
|
+
return (
|
|
249
|
+
await AbyssToolsCore.axios.post<IFinalizeBeamResponse>(
|
|
250
|
+
`/beam/public/${params.beamId}/finalize`,
|
|
251
|
+
body ?? {},
|
|
252
|
+
)
|
|
253
|
+
).data;
|
|
254
|
+
},
|
|
255
|
+
renew: async (
|
|
256
|
+
params: IRenewBeamParams & { manageToken?: string },
|
|
257
|
+
): Promise<IRenewBeamResponse> => {
|
|
258
|
+
return (
|
|
259
|
+
await AbyssToolsCore.axios.post<IRenewBeamResponse>(
|
|
260
|
+
`/beam/${params.beamId}/renew`,
|
|
261
|
+
undefined,
|
|
262
|
+
manageTokenHeader(params.manageToken),
|
|
263
|
+
)
|
|
264
|
+
).data;
|
|
265
|
+
},
|
|
266
|
+
reactivate: async (
|
|
267
|
+
params: IReactivateBeamParams & { manageToken?: string },
|
|
268
|
+
): Promise<IReactivateBeamResponse> => {
|
|
269
|
+
return (
|
|
270
|
+
await AbyssToolsCore.axios.post<IReactivateBeamResponse>(
|
|
271
|
+
`/beam/${params.beamId}/reactivate`,
|
|
272
|
+
undefined,
|
|
273
|
+
manageTokenHeader(params.manageToken),
|
|
274
|
+
)
|
|
275
|
+
).data;
|
|
276
|
+
},
|
|
277
|
+
update: async (
|
|
278
|
+
params: IUpdateBeamParams & { manageToken?: string },
|
|
279
|
+
body: IUpdateBeamBody,
|
|
280
|
+
): Promise<IUpdateBeamResponse> => {
|
|
281
|
+
return (
|
|
282
|
+
await AbyssToolsCore.axios.put<IUpdateBeamResponse>(
|
|
283
|
+
`/beam/${params.beamId}`,
|
|
284
|
+
body,
|
|
285
|
+
manageTokenHeader(params.manageToken),
|
|
286
|
+
)
|
|
287
|
+
).data;
|
|
288
|
+
},
|
|
289
|
+
delete: async (
|
|
290
|
+
params: IDeleteBeamParams & { manageToken?: string },
|
|
291
|
+
): Promise<IDeleteBeamResponse> => {
|
|
292
|
+
return (
|
|
293
|
+
await AbyssToolsCore.axios.delete<IDeleteBeamResponse>(
|
|
294
|
+
`/beam/${params.beamId}`,
|
|
295
|
+
manageTokenHeader(params.manageToken),
|
|
296
|
+
)
|
|
297
|
+
).data;
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
};
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
IAddRowBoardCardChecklistBody,
|
|
4
|
-
IAddRowBoardCardChecklistParams,
|
|
5
|
-
IAddRowBoardCardChecklistResponse,
|
|
6
|
-
ICreateBoardCardChecklistBody,
|
|
7
|
-
ICreateBoardCardChecklistParams,
|
|
8
|
-
ICreateBoardCardChecklistResponse,
|
|
9
|
-
IDeleteBoardCardChecklistParams,
|
|
10
|
-
IDeleteBoardCardChecklistResponse,
|
|
11
|
-
IGetBoardCardChecklistParams,
|
|
12
|
-
IGetBoardCardChecklistResponse,
|
|
13
|
-
IRemoveRowBoardCardChecklistParams,
|
|
14
|
-
IRemoveRowBoardCardChecklistResponse,
|
|
15
|
-
IUpdateBoardCardChecklistBody,
|
|
16
|
-
IUpdateBoardCardChecklistParams,
|
|
17
|
-
IUpdateBoardCardChecklistResponse,
|
|
18
|
-
IUpdateRowBoardCardChecklistBody,
|
|
19
|
-
IUpdateRowBoardCardChecklistParams,
|
|
20
|
-
IUpdateRowBoardCardChecklistResponse,
|
|
21
|
-
} from '../types';
|
|
22
|
-
|
|
23
|
-
export const getBoardCardChecklist = async (
|
|
24
|
-
params: IGetBoardCardChecklistParams,
|
|
25
|
-
): Promise<IGetBoardCardChecklistResponse> => {
|
|
26
|
-
return (
|
|
27
|
-
await AbyssToolsCore.axios.get<IGetBoardCardChecklistResponse>(
|
|
28
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
29
|
-
)
|
|
30
|
-
).data;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const deleteBoardCardChecklist = async (
|
|
34
|
-
params: IDeleteBoardCardChecklistParams,
|
|
35
|
-
): Promise<IDeleteBoardCardChecklistResponse> => {
|
|
36
|
-
return (
|
|
37
|
-
await AbyssToolsCore.axios.delete<IDeleteBoardCardChecklistResponse>(
|
|
38
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
39
|
-
)
|
|
40
|
-
).data;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const updateBoardCardChecklist = async (
|
|
44
|
-
params: IUpdateBoardCardChecklistParams,
|
|
45
|
-
body: IUpdateBoardCardChecklistBody,
|
|
46
|
-
): Promise<IUpdateBoardCardChecklistResponse> => {
|
|
47
|
-
return (
|
|
48
|
-
await AbyssToolsCore.axios.put<IUpdateBoardCardChecklistResponse>(
|
|
49
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
50
|
-
body,
|
|
51
|
-
)
|
|
52
|
-
).data;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const createBoardCardChecklist = async (
|
|
56
|
-
params: ICreateBoardCardChecklistParams,
|
|
57
|
-
body: ICreateBoardCardChecklistBody,
|
|
58
|
-
): Promise<ICreateBoardCardChecklistResponse> => {
|
|
59
|
-
return (
|
|
60
|
-
await AbyssToolsCore.axios.post<ICreateBoardCardChecklistResponse>(
|
|
61
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist`,
|
|
62
|
-
body,
|
|
63
|
-
)
|
|
64
|
-
).data;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export const addRowBoardCardChecklist = async (
|
|
68
|
-
params: IAddRowBoardCardChecklistParams,
|
|
69
|
-
body: IAddRowBoardCardChecklistBody,
|
|
70
|
-
): Promise<IAddRowBoardCardChecklistResponse> => {
|
|
71
|
-
return (
|
|
72
|
-
await AbyssToolsCore.axios.post<IAddRowBoardCardChecklistResponse>(
|
|
73
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row`,
|
|
74
|
-
body,
|
|
75
|
-
)
|
|
76
|
-
).data;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export const removeRowBoardCardChecklist = async (
|
|
80
|
-
params: IRemoveRowBoardCardChecklistParams,
|
|
81
|
-
): Promise<IRemoveRowBoardCardChecklistResponse> => {
|
|
82
|
-
return (
|
|
83
|
-
await AbyssToolsCore.axios.delete<IRemoveRowBoardCardChecklistResponse>(
|
|
84
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row/${params.boardCardChecklistRowId}`,
|
|
85
|
-
)
|
|
86
|
-
).data;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export const updateRowBoardCardChecklist = async (
|
|
90
|
-
params: IUpdateRowBoardCardChecklistParams,
|
|
91
|
-
body: IUpdateRowBoardCardChecklistBody,
|
|
92
|
-
): Promise<IUpdateRowBoardCardChecklistResponse> => {
|
|
93
|
-
return (
|
|
94
|
-
await AbyssToolsCore.axios.put<IUpdateRowBoardCardChecklistResponse>(
|
|
95
|
-
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row/${params.boardCardChecklistRowId}`,
|
|
96
|
-
body,
|
|
97
|
-
)
|
|
98
|
-
).data;
|
|
99
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
IAddRowBoardCardChecklistBody,
|
|
4
|
+
IAddRowBoardCardChecklistParams,
|
|
5
|
+
IAddRowBoardCardChecklistResponse,
|
|
6
|
+
ICreateBoardCardChecklistBody,
|
|
7
|
+
ICreateBoardCardChecklistParams,
|
|
8
|
+
ICreateBoardCardChecklistResponse,
|
|
9
|
+
IDeleteBoardCardChecklistParams,
|
|
10
|
+
IDeleteBoardCardChecklistResponse,
|
|
11
|
+
IGetBoardCardChecklistParams,
|
|
12
|
+
IGetBoardCardChecklistResponse,
|
|
13
|
+
IRemoveRowBoardCardChecklistParams,
|
|
14
|
+
IRemoveRowBoardCardChecklistResponse,
|
|
15
|
+
IUpdateBoardCardChecklistBody,
|
|
16
|
+
IUpdateBoardCardChecklistParams,
|
|
17
|
+
IUpdateBoardCardChecklistResponse,
|
|
18
|
+
IUpdateRowBoardCardChecklistBody,
|
|
19
|
+
IUpdateRowBoardCardChecklistParams,
|
|
20
|
+
IUpdateRowBoardCardChecklistResponse,
|
|
21
|
+
} from '../types';
|
|
22
|
+
|
|
23
|
+
export const getBoardCardChecklist = async (
|
|
24
|
+
params: IGetBoardCardChecklistParams,
|
|
25
|
+
): Promise<IGetBoardCardChecklistResponse> => {
|
|
26
|
+
return (
|
|
27
|
+
await AbyssToolsCore.axios.get<IGetBoardCardChecklistResponse>(
|
|
28
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
29
|
+
)
|
|
30
|
+
).data;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const deleteBoardCardChecklist = async (
|
|
34
|
+
params: IDeleteBoardCardChecklistParams,
|
|
35
|
+
): Promise<IDeleteBoardCardChecklistResponse> => {
|
|
36
|
+
return (
|
|
37
|
+
await AbyssToolsCore.axios.delete<IDeleteBoardCardChecklistResponse>(
|
|
38
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
39
|
+
)
|
|
40
|
+
).data;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const updateBoardCardChecklist = async (
|
|
44
|
+
params: IUpdateBoardCardChecklistParams,
|
|
45
|
+
body: IUpdateBoardCardChecklistBody,
|
|
46
|
+
): Promise<IUpdateBoardCardChecklistResponse> => {
|
|
47
|
+
return (
|
|
48
|
+
await AbyssToolsCore.axios.put<IUpdateBoardCardChecklistResponse>(
|
|
49
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}`,
|
|
50
|
+
body,
|
|
51
|
+
)
|
|
52
|
+
).data;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const createBoardCardChecklist = async (
|
|
56
|
+
params: ICreateBoardCardChecklistParams,
|
|
57
|
+
body: ICreateBoardCardChecklistBody,
|
|
58
|
+
): Promise<ICreateBoardCardChecklistResponse> => {
|
|
59
|
+
return (
|
|
60
|
+
await AbyssToolsCore.axios.post<ICreateBoardCardChecklistResponse>(
|
|
61
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist`,
|
|
62
|
+
body,
|
|
63
|
+
)
|
|
64
|
+
).data;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const addRowBoardCardChecklist = async (
|
|
68
|
+
params: IAddRowBoardCardChecklistParams,
|
|
69
|
+
body: IAddRowBoardCardChecklistBody,
|
|
70
|
+
): Promise<IAddRowBoardCardChecklistResponse> => {
|
|
71
|
+
return (
|
|
72
|
+
await AbyssToolsCore.axios.post<IAddRowBoardCardChecklistResponse>(
|
|
73
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row`,
|
|
74
|
+
body,
|
|
75
|
+
)
|
|
76
|
+
).data;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const removeRowBoardCardChecklist = async (
|
|
80
|
+
params: IRemoveRowBoardCardChecklistParams,
|
|
81
|
+
): Promise<IRemoveRowBoardCardChecklistResponse> => {
|
|
82
|
+
return (
|
|
83
|
+
await AbyssToolsCore.axios.delete<IRemoveRowBoardCardChecklistResponse>(
|
|
84
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row/${params.boardCardChecklistRowId}`,
|
|
85
|
+
)
|
|
86
|
+
).data;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const updateRowBoardCardChecklist = async (
|
|
90
|
+
params: IUpdateRowBoardCardChecklistParams,
|
|
91
|
+
body: IUpdateRowBoardCardChecklistBody,
|
|
92
|
+
): Promise<IUpdateRowBoardCardChecklistResponse> => {
|
|
93
|
+
return (
|
|
94
|
+
await AbyssToolsCore.axios.put<IUpdateRowBoardCardChecklistResponse>(
|
|
95
|
+
`board/${params.boardId}/card/${params.boardCardId}/checklist/${params.boardCardChecklistId}/row/${params.boardCardChecklistRowId}`,
|
|
96
|
+
body,
|
|
97
|
+
)
|
|
98
|
+
).data;
|
|
99
|
+
};
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
ICreateBoardCardCommentBody,
|
|
4
|
-
ICreateBoardCardCommentParams,
|
|
5
|
-
ICreateBoardCardCommentResponse,
|
|
6
|
-
IDeleteBoardCardCommentParams,
|
|
7
|
-
IDeleteBoardCardCommentResponse,
|
|
8
|
-
IGetBoardCardCommentParams,
|
|
9
|
-
IGetBoardCardCommentResponse,
|
|
10
|
-
IUpdateBoardCardCommentBody,
|
|
11
|
-
IUpdateBoardCardCommentParams,
|
|
12
|
-
IUpdateBoardCardCommentResponse,
|
|
13
|
-
} from '../types';
|
|
14
|
-
|
|
15
|
-
export const getBoardCardComment = async (
|
|
16
|
-
params: IGetBoardCardCommentParams,
|
|
17
|
-
): Promise<IGetBoardCardCommentResponse> => {
|
|
18
|
-
return (
|
|
19
|
-
await AbyssToolsCore.axios.get<IGetBoardCardCommentResponse>(
|
|
20
|
-
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
21
|
-
)
|
|
22
|
-
).data;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const deleteBoardCardComment = async (
|
|
26
|
-
params: IDeleteBoardCardCommentParams,
|
|
27
|
-
): Promise<IDeleteBoardCardCommentResponse> => {
|
|
28
|
-
return (
|
|
29
|
-
await AbyssToolsCore.axios.delete<IDeleteBoardCardCommentResponse>(
|
|
30
|
-
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
31
|
-
)
|
|
32
|
-
).data;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const updateBoardCardComment = async (
|
|
36
|
-
params: IUpdateBoardCardCommentParams,
|
|
37
|
-
body: IUpdateBoardCardCommentBody,
|
|
38
|
-
): Promise<IUpdateBoardCardCommentResponse> => {
|
|
39
|
-
return (
|
|
40
|
-
await AbyssToolsCore.axios.put<IUpdateBoardCardCommentResponse>(
|
|
41
|
-
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
42
|
-
body,
|
|
43
|
-
)
|
|
44
|
-
).data;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const createBoardCardComment = async (
|
|
48
|
-
params: ICreateBoardCardCommentParams,
|
|
49
|
-
body: ICreateBoardCardCommentBody,
|
|
50
|
-
): Promise<ICreateBoardCardCommentResponse> => {
|
|
51
|
-
return (
|
|
52
|
-
await AbyssToolsCore.axios.post<ICreateBoardCardCommentResponse>(
|
|
53
|
-
`board/${params.boardId}/card/${params.boardCardId}/comment`,
|
|
54
|
-
body,
|
|
55
|
-
)
|
|
56
|
-
).data;
|
|
57
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateBoardCardCommentBody,
|
|
4
|
+
ICreateBoardCardCommentParams,
|
|
5
|
+
ICreateBoardCardCommentResponse,
|
|
6
|
+
IDeleteBoardCardCommentParams,
|
|
7
|
+
IDeleteBoardCardCommentResponse,
|
|
8
|
+
IGetBoardCardCommentParams,
|
|
9
|
+
IGetBoardCardCommentResponse,
|
|
10
|
+
IUpdateBoardCardCommentBody,
|
|
11
|
+
IUpdateBoardCardCommentParams,
|
|
12
|
+
IUpdateBoardCardCommentResponse,
|
|
13
|
+
} from '../types';
|
|
14
|
+
|
|
15
|
+
export const getBoardCardComment = async (
|
|
16
|
+
params: IGetBoardCardCommentParams,
|
|
17
|
+
): Promise<IGetBoardCardCommentResponse> => {
|
|
18
|
+
return (
|
|
19
|
+
await AbyssToolsCore.axios.get<IGetBoardCardCommentResponse>(
|
|
20
|
+
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
21
|
+
)
|
|
22
|
+
).data;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const deleteBoardCardComment = async (
|
|
26
|
+
params: IDeleteBoardCardCommentParams,
|
|
27
|
+
): Promise<IDeleteBoardCardCommentResponse> => {
|
|
28
|
+
return (
|
|
29
|
+
await AbyssToolsCore.axios.delete<IDeleteBoardCardCommentResponse>(
|
|
30
|
+
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
31
|
+
)
|
|
32
|
+
).data;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const updateBoardCardComment = async (
|
|
36
|
+
params: IUpdateBoardCardCommentParams,
|
|
37
|
+
body: IUpdateBoardCardCommentBody,
|
|
38
|
+
): Promise<IUpdateBoardCardCommentResponse> => {
|
|
39
|
+
return (
|
|
40
|
+
await AbyssToolsCore.axios.put<IUpdateBoardCardCommentResponse>(
|
|
41
|
+
`board/${params.boardId}/card/${params.boardCardId}/comment/${params.boardCardCommentId}`,
|
|
42
|
+
body,
|
|
43
|
+
)
|
|
44
|
+
).data;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const createBoardCardComment = async (
|
|
48
|
+
params: ICreateBoardCardCommentParams,
|
|
49
|
+
body: ICreateBoardCardCommentBody,
|
|
50
|
+
): Promise<ICreateBoardCardCommentResponse> => {
|
|
51
|
+
return (
|
|
52
|
+
await AbyssToolsCore.axios.post<ICreateBoardCardCommentResponse>(
|
|
53
|
+
`board/${params.boardId}/card/${params.boardCardId}/comment`,
|
|
54
|
+
body,
|
|
55
|
+
)
|
|
56
|
+
).data;
|
|
57
|
+
};
|