@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
package/dist/utils/index.js
CHANGED
|
@@ -19,5 +19,5 @@ __exportStar(require("./board.utils"), exports);
|
|
|
19
19
|
__exportStar(require("./shape.utils"), exports);
|
|
20
20
|
__exportStar(require("./icons.utils"), exports);
|
|
21
21
|
__exportStar(require("./enum.utils"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./extraction-webhook.utils"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,6DAA2C"}
|
|
@@ -46,7 +46,7 @@ const textToSvg = (position, style, text) => {
|
|
|
46
46
|
const y = position.y;
|
|
47
47
|
const fillColor = style.fillColor === 'none' ? 'none' : style.fillColor;
|
|
48
48
|
const strokeColor = style.strokeColor === 'none' ? 'none' : style.strokeColor;
|
|
49
|
-
return `<text x="${x}" y="${y}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" font-size="${style.fontSize}" font-family="${style.fontFamily}"
|
|
49
|
+
return `<text x="${x}" y="${y}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" opacity="${style.opacity}" font-size="${style.fontSize}" font-family="${style.fontFamily}"
|
|
50
50
|
stroke-dasharray="${style.lineDash || 'none'}" text-anchor="middle" dominant-baseline="middle" transform="rotate(${style.rotation} ${x} ${y})">${text}</text>`;
|
|
51
51
|
};
|
|
52
52
|
exports.textToSvg = textToSvg;
|
|
@@ -79,15 +79,15 @@ const commentToSvg = (position, size, style, id) => {
|
|
|
79
79
|
const fontSize = size.width * 0.6;
|
|
80
80
|
const textX = cx;
|
|
81
81
|
const textY = cy + fontSize * 0.35;
|
|
82
|
-
return `
|
|
83
|
-
<g opacity="${style.opacity}" transform="rotate(${style.rotation} ${cx} ${cy})">
|
|
84
|
-
<defs>
|
|
85
|
-
<filter id="comment-shadow-${id}" x="-50%" y="-50%" width="200%" height="200%">
|
|
86
|
-
<feDropShadow dx="2" dy="2" stdDeviation="5" flood-color="black" flood-opacity="0.3"/>
|
|
87
|
-
</filter>
|
|
88
|
-
</defs>
|
|
89
|
-
<circle cx="${cx}" cy="${cy}" r="${radius}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" filter="url(#comment-shadow-${id})" />
|
|
90
|
-
<text x="${textX}" y="${textY}" fill="white" font-size="${fontSize}" font-family="Arial" text-anchor="middle" dominant-baseline="middle" font-weight="bold">!</text>
|
|
82
|
+
return `
|
|
83
|
+
<g opacity="${style.opacity}" transform="rotate(${style.rotation} ${cx} ${cy})">
|
|
84
|
+
<defs>
|
|
85
|
+
<filter id="comment-shadow-${id}" x="-50%" y="-50%" width="200%" height="200%">
|
|
86
|
+
<feDropShadow dx="2" dy="2" stdDeviation="5" flood-color="black" flood-opacity="0.3"/>
|
|
87
|
+
</filter>
|
|
88
|
+
</defs>
|
|
89
|
+
<circle cx="${cx}" cy="${cy}" r="${radius}" fill="${fillColor}" stroke="${strokeColor}" stroke-width="${style.strokeWidth}" filter="url(#comment-shadow-${id})" />
|
|
90
|
+
<text x="${textX}" y="${textY}" fill="white" font-size="${fontSize}" font-family="Arial" text-anchor="middle" dominant-baseline="middle" font-weight="bold">!</text>
|
|
91
91
|
</g>`;
|
|
92
92
|
};
|
|
93
93
|
exports.commentToSvg = commentToSvg;
|
|
@@ -162,15 +162,15 @@ const sceneToSVG = (shapes, width, height) => {
|
|
|
162
162
|
return '';
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
|
-
const defs = `
|
|
166
|
-
<defs>
|
|
167
|
-
<marker id="arrow" markerWidth="10" markerHeight="10" refX="10" refY="5" orient="auto-start-reverse">
|
|
168
|
-
<path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
|
|
169
|
-
</marker>
|
|
165
|
+
const defs = `
|
|
166
|
+
<defs>
|
|
167
|
+
<marker id="arrow" markerWidth="10" markerHeight="10" refX="10" refY="5" orient="auto-start-reverse">
|
|
168
|
+
<path d="M0,0 L10,5 L0,10 z" fill="currentColor"/>
|
|
169
|
+
</marker>
|
|
170
170
|
</defs>`;
|
|
171
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">
|
|
172
|
-
${defs}
|
|
173
|
-
${shapeEls.join('\n')}
|
|
171
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">
|
|
172
|
+
${defs}
|
|
173
|
+
${shapeEls.join('\n')}
|
|
174
174
|
</svg>`;
|
|
175
175
|
};
|
|
176
176
|
exports.sceneToSVG = sceneToSVG;
|
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/tools",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Core package to interact with Abyss-Project Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"prepublishOnly": "tsc",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
7
19
|
"repository": {
|
|
8
20
|
"type": "git",
|
|
9
21
|
"url": "https://gitlab.com/abyss-group"
|
|
@@ -41,12 +53,5 @@
|
|
|
41
53
|
"prettier": "2.3.1",
|
|
42
54
|
"tsc-watch": "^4.6.2",
|
|
43
55
|
"typescript": "5.4.2"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
47
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
48
|
-
"tsc": "tsc",
|
|
49
|
-
"build": "tsc",
|
|
50
|
-
"dev": "tsc --watch"
|
|
51
56
|
}
|
|
52
|
-
}
|
|
57
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AbyssToolsCore,
|
|
3
|
-
IActivateUserServiceAbyssAdminBody,
|
|
4
|
-
IActivateUserServiceAbyssAdminResponse,
|
|
5
|
-
ISyncOrganizationAbyssAdminBody,
|
|
6
|
-
ISyncOrganizationAbyssAdminResponse,
|
|
7
|
-
ISyncProjectAbyssAdminBody,
|
|
8
|
-
ISyncProjectAbyssAdminResponse,
|
|
9
|
-
IGetProjectContentSummaryAdminParams,
|
|
10
|
-
IGetProjectContentSummaryAdminResponse,
|
|
11
|
-
} from '..';
|
|
12
|
-
|
|
13
|
-
export const activateUserServiceAbyssAdmin = async (
|
|
14
|
-
body: IActivateUserServiceAbyssAdminBody,
|
|
15
|
-
): Promise<IActivateUserServiceAbyssAdminResponse> => {
|
|
16
|
-
return (
|
|
17
|
-
await AbyssToolsCore.axios.post<IActivateUserServiceAbyssAdminResponse>(
|
|
18
|
-
`abyss/admin/user/activate-service`,
|
|
19
|
-
body,
|
|
20
|
-
)
|
|
21
|
-
).data;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const syncOrganizationAbyssAdmin = async (
|
|
25
|
-
body: ISyncOrganizationAbyssAdminBody,
|
|
26
|
-
): Promise<ISyncOrganizationAbyssAdminResponse> => {
|
|
27
|
-
return (
|
|
28
|
-
await AbyssToolsCore.axios.post<ISyncOrganizationAbyssAdminResponse>(
|
|
29
|
-
`abyss/admin/organization/sync`,
|
|
30
|
-
body,
|
|
31
|
-
)
|
|
32
|
-
).data;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const syncProjectAbyssAdmin = async (
|
|
36
|
-
body: ISyncProjectAbyssAdminBody,
|
|
37
|
-
): Promise<ISyncProjectAbyssAdminResponse> => {
|
|
38
|
-
return (
|
|
39
|
-
await AbyssToolsCore.axios.post<ISyncProjectAbyssAdminResponse>(
|
|
40
|
-
`abyss/admin/project/sync`,
|
|
41
|
-
body,
|
|
42
|
-
)
|
|
43
|
-
).data;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const getProjectContentSummary = async (
|
|
47
|
-
params: IGetProjectContentSummaryAdminParams,
|
|
48
|
-
): Promise<IGetProjectContentSummaryAdminResponse> => {
|
|
49
|
-
return (
|
|
50
|
-
await AbyssToolsCore.axios.get<IGetProjectContentSummaryAdminResponse>(
|
|
51
|
-
`abyss/admin/project/${params.projectId}/content-summary`,
|
|
52
|
-
)
|
|
53
|
-
).data;
|
|
54
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
AbyssToolsCore,
|
|
3
|
+
IActivateUserServiceAbyssAdminBody,
|
|
4
|
+
IActivateUserServiceAbyssAdminResponse,
|
|
5
|
+
ISyncOrganizationAbyssAdminBody,
|
|
6
|
+
ISyncOrganizationAbyssAdminResponse,
|
|
7
|
+
ISyncProjectAbyssAdminBody,
|
|
8
|
+
ISyncProjectAbyssAdminResponse,
|
|
9
|
+
IGetProjectContentSummaryAdminParams,
|
|
10
|
+
IGetProjectContentSummaryAdminResponse,
|
|
11
|
+
} from '..';
|
|
12
|
+
|
|
13
|
+
export const activateUserServiceAbyssAdmin = async (
|
|
14
|
+
body: IActivateUserServiceAbyssAdminBody,
|
|
15
|
+
): Promise<IActivateUserServiceAbyssAdminResponse> => {
|
|
16
|
+
return (
|
|
17
|
+
await AbyssToolsCore.axios.post<IActivateUserServiceAbyssAdminResponse>(
|
|
18
|
+
`abyss/admin/user/activate-service`,
|
|
19
|
+
body,
|
|
20
|
+
)
|
|
21
|
+
).data;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const syncOrganizationAbyssAdmin = async (
|
|
25
|
+
body: ISyncOrganizationAbyssAdminBody,
|
|
26
|
+
): Promise<ISyncOrganizationAbyssAdminResponse> => {
|
|
27
|
+
return (
|
|
28
|
+
await AbyssToolsCore.axios.post<ISyncOrganizationAbyssAdminResponse>(
|
|
29
|
+
`abyss/admin/organization/sync`,
|
|
30
|
+
body,
|
|
31
|
+
)
|
|
32
|
+
).data;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const syncProjectAbyssAdmin = async (
|
|
36
|
+
body: ISyncProjectAbyssAdminBody,
|
|
37
|
+
): Promise<ISyncProjectAbyssAdminResponse> => {
|
|
38
|
+
return (
|
|
39
|
+
await AbyssToolsCore.axios.post<ISyncProjectAbyssAdminResponse>(
|
|
40
|
+
`abyss/admin/project/sync`,
|
|
41
|
+
body,
|
|
42
|
+
)
|
|
43
|
+
).data;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const getProjectContentSummary = async (
|
|
47
|
+
params: IGetProjectContentSummaryAdminParams,
|
|
48
|
+
): Promise<IGetProjectContentSummaryAdminResponse> => {
|
|
49
|
+
return (
|
|
50
|
+
await AbyssToolsCore.axios.get<IGetProjectContentSummaryAdminResponse>(
|
|
51
|
+
`abyss/admin/project/${params.projectId}/content-summary`,
|
|
52
|
+
)
|
|
53
|
+
).data;
|
|
54
|
+
};
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
IDeleteAtlasDocumentParams,
|
|
4
|
-
IDeleteAtlasDocumentResponse,
|
|
5
|
-
IGetAtlasDocumentParams,
|
|
6
|
-
IGetAtlasDocumentResponse,
|
|
7
|
-
IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
8
|
-
IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
9
|
-
IGetUploadPreSignedUrlAtlasDocumentResponse,
|
|
10
|
-
IPaginateAtlasDocumentParams,
|
|
11
|
-
IPaginateAtlasDocumentQuery,
|
|
12
|
-
IPaginateAtlasDocumentResponse,
|
|
13
|
-
IListAtlasDocumentParams,
|
|
14
|
-
IListAtlasDocumentResponse,
|
|
15
|
-
} from '../types';
|
|
16
|
-
|
|
17
|
-
export const getAtlasDocument = async (
|
|
18
|
-
params: IGetAtlasDocumentParams,
|
|
19
|
-
): Promise<IGetAtlasDocumentResponse> => {
|
|
20
|
-
return (
|
|
21
|
-
await AbyssToolsCore.axios.get<IGetAtlasDocumentResponse>(
|
|
22
|
-
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
23
|
-
)
|
|
24
|
-
).data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const deleteAtlasDocument = async (
|
|
28
|
-
params: IDeleteAtlasDocumentParams,
|
|
29
|
-
): Promise<IDeleteAtlasDocumentResponse> => {
|
|
30
|
-
return (
|
|
31
|
-
await AbyssToolsCore.axios.delete<IDeleteAtlasDocumentResponse>(
|
|
32
|
-
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
33
|
-
)
|
|
34
|
-
).data;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const getUploadPreSignedUrlAtlasDocument = async (
|
|
38
|
-
params: IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
39
|
-
body: IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
40
|
-
): Promise<IGetUploadPreSignedUrlAtlasDocumentResponse> => {
|
|
41
|
-
return (
|
|
42
|
-
await AbyssToolsCore.axios.post<IGetUploadPreSignedUrlAtlasDocumentResponse>(
|
|
43
|
-
`atlas/${params.atlasId}/document/${params.atlasPageId}`,
|
|
44
|
-
body,
|
|
45
|
-
)
|
|
46
|
-
).data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const paginateAtlasDocument = async (
|
|
50
|
-
params: IPaginateAtlasDocumentParams,
|
|
51
|
-
query?: IPaginateAtlasDocumentQuery,
|
|
52
|
-
): Promise<IPaginateAtlasDocumentResponse> => {
|
|
53
|
-
return (
|
|
54
|
-
await AbyssToolsCore.axios.get<IPaginateAtlasDocumentResponse>(`atlas/${params.atlasId}/document`, {
|
|
55
|
-
params: query,
|
|
56
|
-
})
|
|
57
|
-
).data;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const listAtlasDocument = async (
|
|
61
|
-
params: IListAtlasDocumentParams,
|
|
62
|
-
): Promise<IListAtlasDocumentResponse> => {
|
|
63
|
-
return (
|
|
64
|
-
await AbyssToolsCore.axios.get<IListAtlasDocumentResponse>(
|
|
65
|
-
`atlas/${params.atlasId}/document/page/${params.atlasPageId}`,
|
|
66
|
-
)
|
|
67
|
-
).data;
|
|
68
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
IDeleteAtlasDocumentParams,
|
|
4
|
+
IDeleteAtlasDocumentResponse,
|
|
5
|
+
IGetAtlasDocumentParams,
|
|
6
|
+
IGetAtlasDocumentResponse,
|
|
7
|
+
IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
8
|
+
IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
9
|
+
IGetUploadPreSignedUrlAtlasDocumentResponse,
|
|
10
|
+
IPaginateAtlasDocumentParams,
|
|
11
|
+
IPaginateAtlasDocumentQuery,
|
|
12
|
+
IPaginateAtlasDocumentResponse,
|
|
13
|
+
IListAtlasDocumentParams,
|
|
14
|
+
IListAtlasDocumentResponse,
|
|
15
|
+
} from '../types';
|
|
16
|
+
|
|
17
|
+
export const getAtlasDocument = async (
|
|
18
|
+
params: IGetAtlasDocumentParams,
|
|
19
|
+
): Promise<IGetAtlasDocumentResponse> => {
|
|
20
|
+
return (
|
|
21
|
+
await AbyssToolsCore.axios.get<IGetAtlasDocumentResponse>(
|
|
22
|
+
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
23
|
+
)
|
|
24
|
+
).data;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const deleteAtlasDocument = async (
|
|
28
|
+
params: IDeleteAtlasDocumentParams,
|
|
29
|
+
): Promise<IDeleteAtlasDocumentResponse> => {
|
|
30
|
+
return (
|
|
31
|
+
await AbyssToolsCore.axios.delete<IDeleteAtlasDocumentResponse>(
|
|
32
|
+
`atlas/${params.atlasId}/document/${params.atlasDocumentId}`,
|
|
33
|
+
)
|
|
34
|
+
).data;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const getUploadPreSignedUrlAtlasDocument = async (
|
|
38
|
+
params: IGetUploadPreSignedUrlAtlasDocumentParams,
|
|
39
|
+
body: IGetUploadPreSignedUrlAtlasDocumentBody,
|
|
40
|
+
): Promise<IGetUploadPreSignedUrlAtlasDocumentResponse> => {
|
|
41
|
+
return (
|
|
42
|
+
await AbyssToolsCore.axios.post<IGetUploadPreSignedUrlAtlasDocumentResponse>(
|
|
43
|
+
`atlas/${params.atlasId}/document/${params.atlasPageId}`,
|
|
44
|
+
body,
|
|
45
|
+
)
|
|
46
|
+
).data;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const paginateAtlasDocument = async (
|
|
50
|
+
params: IPaginateAtlasDocumentParams,
|
|
51
|
+
query?: IPaginateAtlasDocumentQuery,
|
|
52
|
+
): Promise<IPaginateAtlasDocumentResponse> => {
|
|
53
|
+
return (
|
|
54
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasDocumentResponse>(`atlas/${params.atlasId}/document`, {
|
|
55
|
+
params: query,
|
|
56
|
+
})
|
|
57
|
+
).data;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const listAtlasDocument = async (
|
|
61
|
+
params: IListAtlasDocumentParams,
|
|
62
|
+
): Promise<IListAtlasDocumentResponse> => {
|
|
63
|
+
return (
|
|
64
|
+
await AbyssToolsCore.axios.get<IListAtlasDocumentResponse>(
|
|
65
|
+
`atlas/${params.atlasId}/document/page/${params.atlasPageId}`,
|
|
66
|
+
)
|
|
67
|
+
).data;
|
|
68
|
+
};
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
ICreateAtlasGroupBody,
|
|
4
|
-
ICreateAtlasGroupParams,
|
|
5
|
-
ICreateAtlasGroupResponse,
|
|
6
|
-
IDeleteAtlasGroupParams,
|
|
7
|
-
IDeleteAtlasGroupResponse,
|
|
8
|
-
IGetAtlasGroupParams,
|
|
9
|
-
IGetAtlasGroupResponse,
|
|
10
|
-
IPaginateAtlasGroupParams,
|
|
11
|
-
IPaginateAtlasGroupQuery,
|
|
12
|
-
IPaginateAtlasGroupResponse,
|
|
13
|
-
IUpdateAtlasGroupBody,
|
|
14
|
-
IUpdateAtlasGroupParams,
|
|
15
|
-
IUpdateAtlasGroupResponse,
|
|
16
|
-
} from '../types';
|
|
17
|
-
|
|
18
|
-
export const paginateAtlasGroup = async (
|
|
19
|
-
params: IPaginateAtlasGroupParams,
|
|
20
|
-
query: IPaginateAtlasGroupQuery,
|
|
21
|
-
): Promise<IPaginateAtlasGroupResponse> => {
|
|
22
|
-
return (
|
|
23
|
-
await AbyssToolsCore.axios.get<IPaginateAtlasGroupResponse>(
|
|
24
|
-
`atlas/${params.atlasId}/group/paginate`,
|
|
25
|
-
{ params: query },
|
|
26
|
-
)
|
|
27
|
-
).data;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const getAtlasGroup = async (
|
|
31
|
-
params: IGetAtlasGroupParams,
|
|
32
|
-
): Promise<IGetAtlasGroupResponse> => {
|
|
33
|
-
return (
|
|
34
|
-
await AbyssToolsCore.axios.get<IGetAtlasGroupResponse>(
|
|
35
|
-
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
36
|
-
)
|
|
37
|
-
).data;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const deleteAtlasGroup = async (
|
|
41
|
-
params: IDeleteAtlasGroupParams,
|
|
42
|
-
): Promise<IDeleteAtlasGroupResponse> => {
|
|
43
|
-
return (
|
|
44
|
-
await AbyssToolsCore.axios.delete<IDeleteAtlasGroupResponse>(
|
|
45
|
-
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
46
|
-
)
|
|
47
|
-
).data;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const updateAtlasGroup = async (
|
|
51
|
-
params: IUpdateAtlasGroupParams,
|
|
52
|
-
body: IUpdateAtlasGroupBody,
|
|
53
|
-
): Promise<IUpdateAtlasGroupResponse> => {
|
|
54
|
-
return (
|
|
55
|
-
await AbyssToolsCore.axios.put<IUpdateAtlasGroupResponse>(
|
|
56
|
-
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
57
|
-
body,
|
|
58
|
-
)
|
|
59
|
-
).data;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const createAtlasGroup = async (
|
|
63
|
-
params: ICreateAtlasGroupParams,
|
|
64
|
-
body: ICreateAtlasGroupBody,
|
|
65
|
-
): Promise<ICreateAtlasGroupResponse> => {
|
|
66
|
-
return (
|
|
67
|
-
await AbyssToolsCore.axios.post<ICreateAtlasGroupResponse>(`atlas/${params.atlasId}/group`, body)
|
|
68
|
-
).data;
|
|
69
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateAtlasGroupBody,
|
|
4
|
+
ICreateAtlasGroupParams,
|
|
5
|
+
ICreateAtlasGroupResponse,
|
|
6
|
+
IDeleteAtlasGroupParams,
|
|
7
|
+
IDeleteAtlasGroupResponse,
|
|
8
|
+
IGetAtlasGroupParams,
|
|
9
|
+
IGetAtlasGroupResponse,
|
|
10
|
+
IPaginateAtlasGroupParams,
|
|
11
|
+
IPaginateAtlasGroupQuery,
|
|
12
|
+
IPaginateAtlasGroupResponse,
|
|
13
|
+
IUpdateAtlasGroupBody,
|
|
14
|
+
IUpdateAtlasGroupParams,
|
|
15
|
+
IUpdateAtlasGroupResponse,
|
|
16
|
+
} from '../types';
|
|
17
|
+
|
|
18
|
+
export const paginateAtlasGroup = async (
|
|
19
|
+
params: IPaginateAtlasGroupParams,
|
|
20
|
+
query: IPaginateAtlasGroupQuery,
|
|
21
|
+
): Promise<IPaginateAtlasGroupResponse> => {
|
|
22
|
+
return (
|
|
23
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasGroupResponse>(
|
|
24
|
+
`atlas/${params.atlasId}/group/paginate`,
|
|
25
|
+
{ params: query },
|
|
26
|
+
)
|
|
27
|
+
).data;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const getAtlasGroup = async (
|
|
31
|
+
params: IGetAtlasGroupParams,
|
|
32
|
+
): Promise<IGetAtlasGroupResponse> => {
|
|
33
|
+
return (
|
|
34
|
+
await AbyssToolsCore.axios.get<IGetAtlasGroupResponse>(
|
|
35
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
36
|
+
)
|
|
37
|
+
).data;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const deleteAtlasGroup = async (
|
|
41
|
+
params: IDeleteAtlasGroupParams,
|
|
42
|
+
): Promise<IDeleteAtlasGroupResponse> => {
|
|
43
|
+
return (
|
|
44
|
+
await AbyssToolsCore.axios.delete<IDeleteAtlasGroupResponse>(
|
|
45
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
46
|
+
)
|
|
47
|
+
).data;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const updateAtlasGroup = async (
|
|
51
|
+
params: IUpdateAtlasGroupParams,
|
|
52
|
+
body: IUpdateAtlasGroupBody,
|
|
53
|
+
): Promise<IUpdateAtlasGroupResponse> => {
|
|
54
|
+
return (
|
|
55
|
+
await AbyssToolsCore.axios.put<IUpdateAtlasGroupResponse>(
|
|
56
|
+
`atlas/${params.atlasId}/group/${params.atlasGroupId}`,
|
|
57
|
+
body,
|
|
58
|
+
)
|
|
59
|
+
).data;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const createAtlasGroup = async (
|
|
63
|
+
params: ICreateAtlasGroupParams,
|
|
64
|
+
body: ICreateAtlasGroupBody,
|
|
65
|
+
): Promise<ICreateAtlasGroupResponse> => {
|
|
66
|
+
return (
|
|
67
|
+
await AbyssToolsCore.axios.post<ICreateAtlasGroupResponse>(`atlas/${params.atlasId}/group`, body)
|
|
68
|
+
).data;
|
|
69
|
+
};
|