@abyss-project/tools 1.1.1 → 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/extraction-plan-preset.api.js +1 -1
- package/dist/api/extraction-plan-preset.api.js.map +1 -1
- package/dist/api/extraction-settings.api.js +1 -1
- package/dist/api/extraction-settings.api.js.map +1 -1
- package/dist/api/extraction.api.js +1 -1
- package/dist/api/extraction.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/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/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.ts +1 -1
- package/src/api/extraction-settings.api.ts +1 -1
- package/src/api/extraction.api.ts +1 -1
- 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/constants/atlas.constants.ts +2 -2
- package/src/constants/board.constants.ts +7 -7
- 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 +1 -1
- 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/pdf-operation.enum.ts +98 -98
- 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/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/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/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/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/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/memo.dto.ts +23 -23
- 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/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/icons.utils.ts +96 -96
- package/src/utils/shape.utils.ts +292 -292
package/src/api/atlas.api.ts
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
ICreateAtlasBody,
|
|
4
|
-
ICreateAtlasResponse,
|
|
5
|
-
ICreateForOrganizationAtlasParams,
|
|
6
|
-
IDeleteAtlasParams,
|
|
7
|
-
IDeleteAtlasResponse,
|
|
8
|
-
IGetAtlasParams,
|
|
9
|
-
IGetAtlasResponse,
|
|
10
|
-
IPaginateAtlasQuery,
|
|
11
|
-
IPaginateAtlasResponse,
|
|
12
|
-
IPaginateProjectAtlasParams,
|
|
13
|
-
IUpdateAtlasBody,
|
|
14
|
-
IUpdateAtlasParams,
|
|
15
|
-
IUpdateAtlasResponse,
|
|
16
|
-
IPaginateOrganizationAtlasParams,
|
|
17
|
-
ITransferContentBody,
|
|
18
|
-
ITransferAtlasResponse,
|
|
19
|
-
ICountOrganizationResponse,
|
|
20
|
-
} from '../types';
|
|
21
|
-
|
|
22
|
-
export const paginateAtlas = async (
|
|
23
|
-
query: IPaginateAtlasQuery,
|
|
24
|
-
): Promise<IPaginateAtlasResponse> => {
|
|
25
|
-
return (await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(`atlas/paginate`, { params: query }))
|
|
26
|
-
.data;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const paginateProjectAtlas = async (
|
|
30
|
-
params: IPaginateProjectAtlasParams,
|
|
31
|
-
query: IPaginateAtlasQuery,
|
|
32
|
-
): Promise<IPaginateAtlasResponse> => {
|
|
33
|
-
return (
|
|
34
|
-
await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(
|
|
35
|
-
`project/${params.projectId}/atlas/paginate`,
|
|
36
|
-
{
|
|
37
|
-
params: query,
|
|
38
|
-
},
|
|
39
|
-
)
|
|
40
|
-
).data;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const getAtlas = async (params: IGetAtlasParams): Promise<IGetAtlasResponse> => {
|
|
44
|
-
return (await AbyssToolsCore.axios.get<IGetAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const deleteAtlas = async (params: IDeleteAtlasParams): Promise<IDeleteAtlasResponse> => {
|
|
48
|
-
return (await AbyssToolsCore.axios.delete<IDeleteAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const updateAtlas = async (
|
|
52
|
-
params: IUpdateAtlasParams,
|
|
53
|
-
body: IUpdateAtlasBody,
|
|
54
|
-
): Promise<IUpdateAtlasResponse> => {
|
|
55
|
-
return (await AbyssToolsCore.axios.put<IUpdateAtlasResponse>(`atlas/${params.atlasId}`, body)).data;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const createAtlas = async (body: ICreateAtlasBody): Promise<ICreateAtlasResponse> => {
|
|
59
|
-
return (await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas`, body)).data;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const createForOrganizationAtlas = async (
|
|
63
|
-
params: ICreateForOrganizationAtlasParams,
|
|
64
|
-
body: ICreateAtlasBody,
|
|
65
|
-
): Promise<ICreateAtlasResponse> => {
|
|
66
|
-
return (
|
|
67
|
-
await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas/organization/${params.organizationId}`, body)
|
|
68
|
-
).data;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export const paginateOrganizationAtlas = async (
|
|
72
|
-
params: IPaginateOrganizationAtlasParams,
|
|
73
|
-
query: IPaginateAtlasQuery,
|
|
74
|
-
): Promise<IPaginateAtlasResponse> => {
|
|
75
|
-
return (
|
|
76
|
-
await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(
|
|
77
|
-
`organization/${params.organizationId}/atlas/paginate`,
|
|
78
|
-
{ params: query },
|
|
79
|
-
)
|
|
80
|
-
).data;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export const transferAtlas = async (
|
|
84
|
-
params: { atlasId: string },
|
|
85
|
-
body: ITransferContentBody,
|
|
86
|
-
): Promise<ITransferAtlasResponse> => {
|
|
87
|
-
return (
|
|
88
|
-
await AbyssToolsCore.axios.post<ITransferAtlasResponse>(
|
|
89
|
-
`atlas/${params.atlasId}/transfer`,
|
|
90
|
-
body,
|
|
91
|
-
)
|
|
92
|
-
).data;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export const countOrganizationAtlas = async (
|
|
96
|
-
params: { organizationId: string },
|
|
97
|
-
): Promise<ICountOrganizationResponse> => {
|
|
98
|
-
return (
|
|
99
|
-
await AbyssToolsCore.axios.get<ICountOrganizationResponse>(
|
|
100
|
-
`atlas/organization/${params.organizationId}/count`,
|
|
101
|
-
)
|
|
102
|
-
).data;
|
|
103
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateAtlasBody,
|
|
4
|
+
ICreateAtlasResponse,
|
|
5
|
+
ICreateForOrganizationAtlasParams,
|
|
6
|
+
IDeleteAtlasParams,
|
|
7
|
+
IDeleteAtlasResponse,
|
|
8
|
+
IGetAtlasParams,
|
|
9
|
+
IGetAtlasResponse,
|
|
10
|
+
IPaginateAtlasQuery,
|
|
11
|
+
IPaginateAtlasResponse,
|
|
12
|
+
IPaginateProjectAtlasParams,
|
|
13
|
+
IUpdateAtlasBody,
|
|
14
|
+
IUpdateAtlasParams,
|
|
15
|
+
IUpdateAtlasResponse,
|
|
16
|
+
IPaginateOrganizationAtlasParams,
|
|
17
|
+
ITransferContentBody,
|
|
18
|
+
ITransferAtlasResponse,
|
|
19
|
+
ICountOrganizationResponse,
|
|
20
|
+
} from '../types';
|
|
21
|
+
|
|
22
|
+
export const paginateAtlas = async (
|
|
23
|
+
query: IPaginateAtlasQuery,
|
|
24
|
+
): Promise<IPaginateAtlasResponse> => {
|
|
25
|
+
return (await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(`atlas/paginate`, { params: query }))
|
|
26
|
+
.data;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const paginateProjectAtlas = async (
|
|
30
|
+
params: IPaginateProjectAtlasParams,
|
|
31
|
+
query: IPaginateAtlasQuery,
|
|
32
|
+
): Promise<IPaginateAtlasResponse> => {
|
|
33
|
+
return (
|
|
34
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(
|
|
35
|
+
`project/${params.projectId}/atlas/paginate`,
|
|
36
|
+
{
|
|
37
|
+
params: query,
|
|
38
|
+
},
|
|
39
|
+
)
|
|
40
|
+
).data;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const getAtlas = async (params: IGetAtlasParams): Promise<IGetAtlasResponse> => {
|
|
44
|
+
return (await AbyssToolsCore.axios.get<IGetAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const deleteAtlas = async (params: IDeleteAtlasParams): Promise<IDeleteAtlasResponse> => {
|
|
48
|
+
return (await AbyssToolsCore.axios.delete<IDeleteAtlasResponse>(`atlas/${params.atlasId}`)).data;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const updateAtlas = async (
|
|
52
|
+
params: IUpdateAtlasParams,
|
|
53
|
+
body: IUpdateAtlasBody,
|
|
54
|
+
): Promise<IUpdateAtlasResponse> => {
|
|
55
|
+
return (await AbyssToolsCore.axios.put<IUpdateAtlasResponse>(`atlas/${params.atlasId}`, body)).data;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const createAtlas = async (body: ICreateAtlasBody): Promise<ICreateAtlasResponse> => {
|
|
59
|
+
return (await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas`, body)).data;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const createForOrganizationAtlas = async (
|
|
63
|
+
params: ICreateForOrganizationAtlasParams,
|
|
64
|
+
body: ICreateAtlasBody,
|
|
65
|
+
): Promise<ICreateAtlasResponse> => {
|
|
66
|
+
return (
|
|
67
|
+
await AbyssToolsCore.axios.post<ICreateAtlasResponse>(`atlas/organization/${params.organizationId}`, body)
|
|
68
|
+
).data;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const paginateOrganizationAtlas = async (
|
|
72
|
+
params: IPaginateOrganizationAtlasParams,
|
|
73
|
+
query: IPaginateAtlasQuery,
|
|
74
|
+
): Promise<IPaginateAtlasResponse> => {
|
|
75
|
+
return (
|
|
76
|
+
await AbyssToolsCore.axios.get<IPaginateAtlasResponse>(
|
|
77
|
+
`organization/${params.organizationId}/atlas/paginate`,
|
|
78
|
+
{ params: query },
|
|
79
|
+
)
|
|
80
|
+
).data;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const transferAtlas = async (
|
|
84
|
+
params: { atlasId: string },
|
|
85
|
+
body: ITransferContentBody,
|
|
86
|
+
): Promise<ITransferAtlasResponse> => {
|
|
87
|
+
return (
|
|
88
|
+
await AbyssToolsCore.axios.post<ITransferAtlasResponse>(
|
|
89
|
+
`atlas/${params.atlasId}/transfer`,
|
|
90
|
+
body,
|
|
91
|
+
)
|
|
92
|
+
).data;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const countOrganizationAtlas = async (
|
|
96
|
+
params: { organizationId: string },
|
|
97
|
+
): Promise<ICountOrganizationResponse> => {
|
|
98
|
+
return (
|
|
99
|
+
await AbyssToolsCore.axios.get<ICountOrganizationResponse>(
|
|
100
|
+
`atlas/organization/${params.organizationId}/count`,
|
|
101
|
+
)
|
|
102
|
+
).data;
|
|
103
|
+
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
IGetAtlasPublicParams,
|
|
4
|
-
IGetAtlasPublicResponse,
|
|
5
|
-
IGetPageAtlasPublicParams,
|
|
6
|
-
IGetPageAtlasPublicResponse,
|
|
7
|
-
ISearchContentAtlasPublicParams,
|
|
8
|
-
ISearchContentAtlasPublicQuery,
|
|
9
|
-
ISearchContentAtlasPublicResponse,
|
|
10
|
-
} from '../types';
|
|
11
|
-
|
|
12
|
-
export const getAtlasPublic = async (
|
|
13
|
-
params: IGetAtlasPublicParams,
|
|
14
|
-
): Promise<IGetAtlasPublicResponse> => {
|
|
15
|
-
return (
|
|
16
|
-
await AbyssToolsCore.axios.get<IGetAtlasPublicResponse>(`atlas/public/${params.publicAccessToken}`)
|
|
17
|
-
).data;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const getPageAtlasPublic = async (
|
|
21
|
-
params: IGetPageAtlasPublicParams,
|
|
22
|
-
): Promise<IGetPageAtlasPublicResponse> => {
|
|
23
|
-
return (
|
|
24
|
-
await AbyssToolsCore.axios.get<IGetPageAtlasPublicResponse>(
|
|
25
|
-
`atlas/public/${params.publicAccessToken}/page/${params.atlasPageId}`,
|
|
26
|
-
)
|
|
27
|
-
).data;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const searchContentAtlasPublic = async (
|
|
31
|
-
params: ISearchContentAtlasPublicParams,
|
|
32
|
-
query: ISearchContentAtlasPublicQuery,
|
|
33
|
-
): Promise<ISearchContentAtlasPublicResponse> => {
|
|
34
|
-
return (
|
|
35
|
-
await AbyssToolsCore.axios.get<ISearchContentAtlasPublicResponse>(
|
|
36
|
-
`atlas/public/${params.publicAccessToken}/search`,
|
|
37
|
-
{
|
|
38
|
-
params: query,
|
|
39
|
-
},
|
|
40
|
-
)
|
|
41
|
-
).data;
|
|
42
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
IGetAtlasPublicParams,
|
|
4
|
+
IGetAtlasPublicResponse,
|
|
5
|
+
IGetPageAtlasPublicParams,
|
|
6
|
+
IGetPageAtlasPublicResponse,
|
|
7
|
+
ISearchContentAtlasPublicParams,
|
|
8
|
+
ISearchContentAtlasPublicQuery,
|
|
9
|
+
ISearchContentAtlasPublicResponse,
|
|
10
|
+
} from '../types';
|
|
11
|
+
|
|
12
|
+
export const getAtlasPublic = async (
|
|
13
|
+
params: IGetAtlasPublicParams,
|
|
14
|
+
): Promise<IGetAtlasPublicResponse> => {
|
|
15
|
+
return (
|
|
16
|
+
await AbyssToolsCore.axios.get<IGetAtlasPublicResponse>(`atlas/public/${params.publicAccessToken}`)
|
|
17
|
+
).data;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const getPageAtlasPublic = async (
|
|
21
|
+
params: IGetPageAtlasPublicParams,
|
|
22
|
+
): Promise<IGetPageAtlasPublicResponse> => {
|
|
23
|
+
return (
|
|
24
|
+
await AbyssToolsCore.axios.get<IGetPageAtlasPublicResponse>(
|
|
25
|
+
`atlas/public/${params.publicAccessToken}/page/${params.atlasPageId}`,
|
|
26
|
+
)
|
|
27
|
+
).data;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const searchContentAtlasPublic = async (
|
|
31
|
+
params: ISearchContentAtlasPublicParams,
|
|
32
|
+
query: ISearchContentAtlasPublicQuery,
|
|
33
|
+
): Promise<ISearchContentAtlasPublicResponse> => {
|
|
34
|
+
return (
|
|
35
|
+
await AbyssToolsCore.axios.get<ISearchContentAtlasPublicResponse>(
|
|
36
|
+
`atlas/public/${params.publicAccessToken}/search`,
|
|
37
|
+
{
|
|
38
|
+
params: query,
|
|
39
|
+
},
|
|
40
|
+
)
|
|
41
|
+
).data;
|
|
42
|
+
};
|
|
@@ -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
|
+
};
|