@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
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import type {
|
|
3
|
-
ICreateAnonymousShortLinkPublicBody,
|
|
4
|
-
ICreateShortLinkPublicResponse,
|
|
5
|
-
IGetStatsShortLinkPublicParams,
|
|
6
|
-
IGetStatsShortLinkPublicQuery,
|
|
7
|
-
IGetStatsShortLinkPublicResponse,
|
|
8
|
-
IGetClicksShortLinkPublicParams,
|
|
9
|
-
IGetClicksShortLinkPublicQuery,
|
|
10
|
-
IGetClicksShortLinkPublicResponse,
|
|
11
|
-
IRenewShortLinkPublicParams,
|
|
12
|
-
IRenewShortLinkPublicResponse,
|
|
13
|
-
IRedirectShortLinkPublicParams,
|
|
14
|
-
IRedirectShortLinkPublicQuery,
|
|
15
|
-
IRedirectShortLinkPublicResponse,
|
|
16
|
-
} from '../types';
|
|
17
|
-
|
|
18
|
-
export const shortLinkPublicApi = {
|
|
19
|
-
createAnonymous: async (
|
|
20
|
-
body: ICreateAnonymousShortLinkPublicBody,
|
|
21
|
-
): Promise<ICreateShortLinkPublicResponse> => {
|
|
22
|
-
const response = await AbyssToolsCore.axios.post<ICreateShortLinkPublicResponse>('/short-link/public', body);
|
|
23
|
-
return response.data;
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
redirect: async (
|
|
27
|
-
params: IRedirectShortLinkPublicParams,
|
|
28
|
-
query?: IRedirectShortLinkPublicQuery,
|
|
29
|
-
): Promise<IRedirectShortLinkPublicResponse> => {
|
|
30
|
-
const response = await AbyssToolsCore.axios.get<IRedirectShortLinkPublicResponse>(`/short-link/public/redirect/${params.slug}`, {
|
|
31
|
-
params: query,
|
|
32
|
-
});
|
|
33
|
-
return response.data;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
getStats: async (
|
|
37
|
-
params: IGetStatsShortLinkPublicParams,
|
|
38
|
-
query?: IGetStatsShortLinkPublicQuery,
|
|
39
|
-
): Promise<IGetStatsShortLinkPublicResponse> => {
|
|
40
|
-
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/stats`, {
|
|
41
|
-
params: query,
|
|
42
|
-
});
|
|
43
|
-
return response.data;
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
getClicks: async (
|
|
47
|
-
params: IGetClicksShortLinkPublicParams,
|
|
48
|
-
query?: IGetClicksShortLinkPublicQuery,
|
|
49
|
-
): Promise<IGetClicksShortLinkPublicResponse> => {
|
|
50
|
-
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/clicks`, {
|
|
51
|
-
params: query,
|
|
52
|
-
});
|
|
53
|
-
return response.data;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
renew: async (params: IRenewShortLinkPublicParams): Promise<IRenewShortLinkPublicResponse> => {
|
|
57
|
-
const response = await AbyssToolsCore.axios.post<IRenewShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/renew`);
|
|
58
|
-
return response.data;
|
|
59
|
-
},
|
|
60
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import type {
|
|
3
|
+
ICreateAnonymousShortLinkPublicBody,
|
|
4
|
+
ICreateShortLinkPublicResponse,
|
|
5
|
+
IGetStatsShortLinkPublicParams,
|
|
6
|
+
IGetStatsShortLinkPublicQuery,
|
|
7
|
+
IGetStatsShortLinkPublicResponse,
|
|
8
|
+
IGetClicksShortLinkPublicParams,
|
|
9
|
+
IGetClicksShortLinkPublicQuery,
|
|
10
|
+
IGetClicksShortLinkPublicResponse,
|
|
11
|
+
IRenewShortLinkPublicParams,
|
|
12
|
+
IRenewShortLinkPublicResponse,
|
|
13
|
+
IRedirectShortLinkPublicParams,
|
|
14
|
+
IRedirectShortLinkPublicQuery,
|
|
15
|
+
IRedirectShortLinkPublicResponse,
|
|
16
|
+
} from '../types';
|
|
17
|
+
|
|
18
|
+
export const shortLinkPublicApi = {
|
|
19
|
+
createAnonymous: async (
|
|
20
|
+
body: ICreateAnonymousShortLinkPublicBody,
|
|
21
|
+
): Promise<ICreateShortLinkPublicResponse> => {
|
|
22
|
+
const response = await AbyssToolsCore.axios.post<ICreateShortLinkPublicResponse>('/short-link/public', body);
|
|
23
|
+
return response.data;
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
redirect: async (
|
|
27
|
+
params: IRedirectShortLinkPublicParams,
|
|
28
|
+
query?: IRedirectShortLinkPublicQuery,
|
|
29
|
+
): Promise<IRedirectShortLinkPublicResponse> => {
|
|
30
|
+
const response = await AbyssToolsCore.axios.get<IRedirectShortLinkPublicResponse>(`/short-link/public/redirect/${params.slug}`, {
|
|
31
|
+
params: query,
|
|
32
|
+
});
|
|
33
|
+
return response.data;
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
getStats: async (
|
|
37
|
+
params: IGetStatsShortLinkPublicParams,
|
|
38
|
+
query?: IGetStatsShortLinkPublicQuery,
|
|
39
|
+
): Promise<IGetStatsShortLinkPublicResponse> => {
|
|
40
|
+
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/stats`, {
|
|
41
|
+
params: query,
|
|
42
|
+
});
|
|
43
|
+
return response.data;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
getClicks: async (
|
|
47
|
+
params: IGetClicksShortLinkPublicParams,
|
|
48
|
+
query?: IGetClicksShortLinkPublicQuery,
|
|
49
|
+
): Promise<IGetClicksShortLinkPublicResponse> => {
|
|
50
|
+
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/clicks`, {
|
|
51
|
+
params: query,
|
|
52
|
+
});
|
|
53
|
+
return response.data;
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
renew: async (params: IRenewShortLinkPublicParams): Promise<IRenewShortLinkPublicResponse> => {
|
|
57
|
+
const response = await AbyssToolsCore.axios.post<IRenewShortLinkPublicResponse>(`/short-link/public/${params.shortLinkId}/renew`);
|
|
58
|
+
return response.data;
|
|
59
|
+
},
|
|
60
|
+
};
|
package/src/api/tag.api.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { AbyssToolsCore } from '..';
|
|
2
|
-
import {
|
|
3
|
-
ICreateTagBody,
|
|
4
|
-
ICreateTagResponse,
|
|
5
|
-
IUpdateTagParams,
|
|
6
|
-
IUpdateTagBody,
|
|
7
|
-
IUpdateTagResponse,
|
|
8
|
-
IDeleteTagParams,
|
|
9
|
-
IDeleteTagResponse,
|
|
10
|
-
IListTagQuery,
|
|
11
|
-
IListTagResponse,
|
|
12
|
-
IAssignTagParams,
|
|
13
|
-
IAssignTagBody,
|
|
14
|
-
IAssignTagResponse,
|
|
15
|
-
IUnassignTagParams,
|
|
16
|
-
IUnassignTagResponse,
|
|
17
|
-
ITagStatsQuery,
|
|
18
|
-
ITagStatsResponse,
|
|
19
|
-
IGetEntityTagsParams,
|
|
20
|
-
IGetEntityTagsResponse,
|
|
21
|
-
} from '../types';
|
|
22
|
-
|
|
23
|
-
export const listTag = async (query?: IListTagQuery): Promise<IListTagResponse> => {
|
|
24
|
-
return (await AbyssToolsCore.axios.get<IListTagResponse>(`tag`, { params: query })).data;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const createTag = async (body: ICreateTagBody): Promise<ICreateTagResponse> => {
|
|
28
|
-
return (await AbyssToolsCore.axios.post<ICreateTagResponse>(`tag`, body)).data;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const updateTag = async (
|
|
32
|
-
params: IUpdateTagParams,
|
|
33
|
-
body: IUpdateTagBody,
|
|
34
|
-
): Promise<IUpdateTagResponse> => {
|
|
35
|
-
return (await AbyssToolsCore.axios.put<IUpdateTagResponse>(`tag/${params.tagId}`, body)).data;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const deleteTag = async (params: IDeleteTagParams): Promise<IDeleteTagResponse> => {
|
|
39
|
-
return (await AbyssToolsCore.axios.delete<IDeleteTagResponse>(`tag/${params.tagId}`)).data;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const assignTag = async (
|
|
43
|
-
params: IAssignTagParams,
|
|
44
|
-
body: IAssignTagBody,
|
|
45
|
-
): Promise<IAssignTagResponse> => {
|
|
46
|
-
return (
|
|
47
|
-
await AbyssToolsCore.axios.post<IAssignTagResponse>(
|
|
48
|
-
`${params.entityType}/${params.entityId}/tags`,
|
|
49
|
-
body,
|
|
50
|
-
)
|
|
51
|
-
).data;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const unassignTag = async (params: IUnassignTagParams): Promise<IUnassignTagResponse> => {
|
|
55
|
-
return (
|
|
56
|
-
await AbyssToolsCore.axios.delete<IUnassignTagResponse>(
|
|
57
|
-
`${params.entityType}/${params.entityId}/tags/${params.tagId}`,
|
|
58
|
-
)
|
|
59
|
-
).data;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const getTagStats = async (query?: ITagStatsQuery): Promise<ITagStatsResponse> => {
|
|
63
|
-
return (await AbyssToolsCore.axios.get<ITagStatsResponse>('tag/stats', { params: query })).data;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const getEntityTags = async (params: IGetEntityTagsParams): Promise<IGetEntityTagsResponse> => {
|
|
67
|
-
return (
|
|
68
|
-
await AbyssToolsCore.axios.get<IGetEntityTagsResponse>(
|
|
69
|
-
`${params.entityType}/${params.entityId}/tags`,
|
|
70
|
-
)
|
|
71
|
-
).data;
|
|
72
|
-
};
|
|
1
|
+
import { AbyssToolsCore } from '..';
|
|
2
|
+
import {
|
|
3
|
+
ICreateTagBody,
|
|
4
|
+
ICreateTagResponse,
|
|
5
|
+
IUpdateTagParams,
|
|
6
|
+
IUpdateTagBody,
|
|
7
|
+
IUpdateTagResponse,
|
|
8
|
+
IDeleteTagParams,
|
|
9
|
+
IDeleteTagResponse,
|
|
10
|
+
IListTagQuery,
|
|
11
|
+
IListTagResponse,
|
|
12
|
+
IAssignTagParams,
|
|
13
|
+
IAssignTagBody,
|
|
14
|
+
IAssignTagResponse,
|
|
15
|
+
IUnassignTagParams,
|
|
16
|
+
IUnassignTagResponse,
|
|
17
|
+
ITagStatsQuery,
|
|
18
|
+
ITagStatsResponse,
|
|
19
|
+
IGetEntityTagsParams,
|
|
20
|
+
IGetEntityTagsResponse,
|
|
21
|
+
} from '../types';
|
|
22
|
+
|
|
23
|
+
export const listTag = async (query?: IListTagQuery): Promise<IListTagResponse> => {
|
|
24
|
+
return (await AbyssToolsCore.axios.get<IListTagResponse>(`tag`, { params: query })).data;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const createTag = async (body: ICreateTagBody): Promise<ICreateTagResponse> => {
|
|
28
|
+
return (await AbyssToolsCore.axios.post<ICreateTagResponse>(`tag`, body)).data;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const updateTag = async (
|
|
32
|
+
params: IUpdateTagParams,
|
|
33
|
+
body: IUpdateTagBody,
|
|
34
|
+
): Promise<IUpdateTagResponse> => {
|
|
35
|
+
return (await AbyssToolsCore.axios.put<IUpdateTagResponse>(`tag/${params.tagId}`, body)).data;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const deleteTag = async (params: IDeleteTagParams): Promise<IDeleteTagResponse> => {
|
|
39
|
+
return (await AbyssToolsCore.axios.delete<IDeleteTagResponse>(`tag/${params.tagId}`)).data;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const assignTag = async (
|
|
43
|
+
params: IAssignTagParams,
|
|
44
|
+
body: IAssignTagBody,
|
|
45
|
+
): Promise<IAssignTagResponse> => {
|
|
46
|
+
return (
|
|
47
|
+
await AbyssToolsCore.axios.post<IAssignTagResponse>(
|
|
48
|
+
`${params.entityType}/${params.entityId}/tags`,
|
|
49
|
+
body,
|
|
50
|
+
)
|
|
51
|
+
).data;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const unassignTag = async (params: IUnassignTagParams): Promise<IUnassignTagResponse> => {
|
|
55
|
+
return (
|
|
56
|
+
await AbyssToolsCore.axios.delete<IUnassignTagResponse>(
|
|
57
|
+
`${params.entityType}/${params.entityId}/tags/${params.tagId}`,
|
|
58
|
+
)
|
|
59
|
+
).data;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const getTagStats = async (query?: ITagStatsQuery): Promise<ITagStatsResponse> => {
|
|
63
|
+
return (await AbyssToolsCore.axios.get<ITagStatsResponse>('tag/stats', { params: query })).data;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export const getEntityTags = async (params: IGetEntityTagsParams): Promise<IGetEntityTagsResponse> => {
|
|
67
|
+
return (
|
|
68
|
+
await AbyssToolsCore.axios.get<IGetEntityTagsResponse>(
|
|
69
|
+
`${params.entityType}/${params.entityId}/tags`,
|
|
70
|
+
)
|
|
71
|
+
).data;
|
|
72
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
|
|
2
|
-
export const MAX_ATLAS_DOCUMENT_SIZE_OCTET = 20 * 1024 * 1024; // 20 MB
|
|
1
|
+
export const MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
|
|
2
|
+
export const MAX_ATLAS_DOCUMENT_SIZE_OCTET = 20 * 1024 * 1024; // 20 MB
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BoardColumnType } from '../types';
|
|
2
|
-
|
|
3
|
-
export const MAX_BOARD_LABEL_LENGTH = 50;
|
|
4
|
-
|
|
5
|
-
export const PENDING_OR_DOING_BOARD_COLUMN_TYPES = [BoardColumnType.BACKLOG, BoardColumnType.DOING];
|
|
6
|
-
export const MAX_DOCUMENTS_PER_BOARD_CARD = 10;
|
|
7
|
-
export const MAX_BOARD_DOCUMENT_SIZE_OCTET = 100 * 1024 * 1024; // 100 Mo
|
|
1
|
+
import { BoardColumnType } from '../types';
|
|
2
|
+
|
|
3
|
+
export const MAX_BOARD_LABEL_LENGTH = 50;
|
|
4
|
+
|
|
5
|
+
export const PENDING_OR_DOING_BOARD_COLUMN_TYPES = [BoardColumnType.BACKLOG, BoardColumnType.DOING];
|
|
6
|
+
export const MAX_DOCUMENTS_PER_BOARD_CARD = 10;
|
|
7
|
+
export const MAX_BOARD_DOCUMENT_SIZE_OCTET = 100 * 1024 * 1024; // 100 Mo
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const MIN_MEMO_TITLE_LENGTH = 3;
|
|
2
|
-
export const MAX_MEMO_TITLE_LENGTH = 100;
|
|
3
|
-
export const MAX_MEMO_CONTENT_LENGTH = 10000;
|
|
1
|
+
export const MIN_MEMO_TITLE_LENGTH = 3;
|
|
2
|
+
export const MAX_MEMO_TITLE_LENGTH = 100;
|
|
3
|
+
export const MAX_MEMO_CONTENT_LENGTH = 10000;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export const MIN_SHORT_LINK_PAGE = 1;
|
|
2
|
-
export const MIN_SHORT_LINK_LIMIT = 1;
|
|
3
|
-
export const MAX_SHORT_LINK_LIMIT = 500;
|
|
4
|
-
|
|
5
|
-
export const MAX_SHORT_LINK_TITLE_LENGTH = 255;
|
|
6
|
-
export const MAX_SHORT_LINK_DESCRIPTION_LENGTH = 1000;
|
|
7
|
-
|
|
8
|
-
export const MIN_SHORT_LINK_MAX_CLICKS = 1;
|
|
9
|
-
|
|
10
|
-
export const MIN_SHORT_LINK_SLUG_LENGTH = 3;
|
|
11
|
-
export const MAX_SHORT_LINK_SLUG_LENGTH = 50;
|
|
1
|
+
export const MIN_SHORT_LINK_PAGE = 1;
|
|
2
|
+
export const MIN_SHORT_LINK_LIMIT = 1;
|
|
3
|
+
export const MAX_SHORT_LINK_LIMIT = 500;
|
|
4
|
+
|
|
5
|
+
export const MAX_SHORT_LINK_TITLE_LENGTH = 255;
|
|
6
|
+
export const MAX_SHORT_LINK_DESCRIPTION_LENGTH = 1000;
|
|
7
|
+
|
|
8
|
+
export const MIN_SHORT_LINK_MAX_CLICKS = 1;
|
|
9
|
+
|
|
10
|
+
export const MIN_SHORT_LINK_SLUG_LENGTH = 3;
|
|
11
|
+
export const MAX_SHORT_LINK_SLUG_LENGTH = 50;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const MIN_TAG_NAME_LENGTH = 1;
|
|
2
|
-
export const MAX_TAG_NAME_LENGTH = 50;
|
|
3
|
-
export const MAX_TAG_COLOR_LENGTH = 7;
|
|
1
|
+
export const MIN_TAG_NAME_LENGTH = 1;
|
|
2
|
+
export const MAX_TAG_NAME_LENGTH = 50;
|
|
3
|
+
export const MAX_TAG_COLOR_LENGTH = 7;
|
package/src/index.ts
CHANGED
|
@@ -41,7 +41,7 @@ export * from './server-sent-events';
|
|
|
41
41
|
|
|
42
42
|
const DEFAULT_BASE_URL = 'https://tools-api.abyss-project.fr/api/';
|
|
43
43
|
|
|
44
|
-
export const API_KEY_HEADER = 'abyss-
|
|
44
|
+
export const API_KEY_HEADER = 'abyss-api-key';
|
|
45
45
|
export const ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
46
46
|
|
|
47
47
|
const NUMBER_RETRY_API = 10;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './server-sent-events.manager';
|
|
2
|
-
export * from './protocols';
|
|
3
|
-
|
|
4
|
-
export enum SSEChannels {
|
|
5
|
-
BOARD = 'sse:board',
|
|
6
|
-
BOARD_CARD = 'sse:board-card',
|
|
7
|
-
USER_NOTIFICATION = 'sse:user-notification',
|
|
8
|
-
RETROSPECTIVE = 'sse:retrospective',
|
|
9
|
-
ATLAS = 'sse:atlas',
|
|
10
|
-
|
|
11
|
-
// AbyssCloud
|
|
12
|
-
CLOUD = 'sse:cloud',
|
|
13
|
-
}
|
|
1
|
+
export * from './server-sent-events.manager';
|
|
2
|
+
export * from './protocols';
|
|
3
|
+
|
|
4
|
+
export enum SSEChannels {
|
|
5
|
+
BOARD = 'sse:board',
|
|
6
|
+
BOARD_CARD = 'sse:board-card',
|
|
7
|
+
USER_NOTIFICATION = 'sse:user-notification',
|
|
8
|
+
RETROSPECTIVE = 'sse:retrospective',
|
|
9
|
+
ATLAS = 'sse:atlas',
|
|
10
|
+
|
|
11
|
+
// AbyssCloud
|
|
12
|
+
CLOUD = 'sse:cloud',
|
|
13
|
+
}
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { SystemSSEMessageContent } from '..';
|
|
2
|
-
import { ValueOf } from '../../../types';
|
|
3
|
-
import { IAtlas, IAtlasGroup, IAtlasPage, IAtlasDocument } from '../../../types/interface';
|
|
4
|
-
|
|
5
|
-
export enum AtlasSSEEvent {
|
|
6
|
-
ATLAS_UPDATED = 'ATLAS_UPDATED',
|
|
7
|
-
ATLAS_DELETED = 'ATLAS_DELETED',
|
|
8
|
-
GROUP_CREATED = 'GROUP_CREATED',
|
|
9
|
-
GROUP_UPDATED = 'GROUP_UPDATED',
|
|
10
|
-
GROUP_DELETED = 'GROUP_DELETED',
|
|
11
|
-
PAGE_CREATED = 'PAGE_CREATED',
|
|
12
|
-
PAGE_UPDATED = 'PAGE_UPDATED',
|
|
13
|
-
PAGE_DELETED = 'PAGE_DELETED',
|
|
14
|
-
PAGE_CONTENT_DIFF_UPDATED = 'PAGE_CONTENT_DIFF_UPDATED',
|
|
15
|
-
ATLAS_DOCUMENT_CREATE = 'ATLAS_DOCUMENT_CREATE',
|
|
16
|
-
ATLAS_DOCUMENT_DELETE = 'ATLAS_DOCUMENT_DELETE',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type AtlasSSEMessageContent = ValueOf<
|
|
20
|
-
{
|
|
21
|
-
[K in AtlasSSEEvent]: {
|
|
22
|
-
type: K;
|
|
23
|
-
payload: SourceAtlasSSEEventPayload[K];
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
>;
|
|
27
|
-
|
|
28
|
-
export class SourceAtlasSSEEventPayload implements Record<AtlasSSEEvent, Record<string, any>> {
|
|
29
|
-
[AtlasSSEEvent.ATLAS_UPDATED]!: {
|
|
30
|
-
atlasId: string;
|
|
31
|
-
atlas: IAtlas;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
[AtlasSSEEvent.ATLAS_DELETED]!: {
|
|
35
|
-
atlasId: string;
|
|
36
|
-
userId?: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
[AtlasSSEEvent.GROUP_CREATED]!: {
|
|
40
|
-
atlasId: string;
|
|
41
|
-
group: IAtlasGroup;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
[AtlasSSEEvent.GROUP_UPDATED]!: {
|
|
45
|
-
atlasId: string;
|
|
46
|
-
group: IAtlasGroup;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
[AtlasSSEEvent.GROUP_DELETED]!: {
|
|
50
|
-
atlasId: string;
|
|
51
|
-
groupId: string;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
[AtlasSSEEvent.PAGE_CREATED]!: {
|
|
55
|
-
atlasId: string;
|
|
56
|
-
page: IAtlasPage;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
[AtlasSSEEvent.PAGE_UPDATED]!: {
|
|
60
|
-
atlasId: string;
|
|
61
|
-
page: IAtlasPage;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
[AtlasSSEEvent.PAGE_DELETED]!: {
|
|
65
|
-
atlasId: string;
|
|
66
|
-
pageId: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
[AtlasSSEEvent.PAGE_CONTENT_DIFF_UPDATED]!: {
|
|
70
|
-
atlasId: string;
|
|
71
|
-
pageId: string;
|
|
72
|
-
diff: string | null;
|
|
73
|
-
version: number;
|
|
74
|
-
lastModifiedByUserId?: string;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
[AtlasSSEEvent.ATLAS_DOCUMENT_CREATE]!: {
|
|
78
|
-
atlasId: string;
|
|
79
|
-
atlasPageId: string;
|
|
80
|
-
atlasDocument: IAtlasDocument;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
[AtlasSSEEvent.ATLAS_DOCUMENT_DELETE]!: {
|
|
84
|
-
atlasId: string;
|
|
85
|
-
atlasPageId: string;
|
|
86
|
-
atlasDocumentId: string;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export type AtlasSSEEventContent = AtlasSSEMessageContent | SystemSSEMessageContent;
|
|
1
|
+
import { SystemSSEMessageContent } from '..';
|
|
2
|
+
import { ValueOf } from '../../../types';
|
|
3
|
+
import { IAtlas, IAtlasGroup, IAtlasPage, IAtlasDocument } from '../../../types/interface';
|
|
4
|
+
|
|
5
|
+
export enum AtlasSSEEvent {
|
|
6
|
+
ATLAS_UPDATED = 'ATLAS_UPDATED',
|
|
7
|
+
ATLAS_DELETED = 'ATLAS_DELETED',
|
|
8
|
+
GROUP_CREATED = 'GROUP_CREATED',
|
|
9
|
+
GROUP_UPDATED = 'GROUP_UPDATED',
|
|
10
|
+
GROUP_DELETED = 'GROUP_DELETED',
|
|
11
|
+
PAGE_CREATED = 'PAGE_CREATED',
|
|
12
|
+
PAGE_UPDATED = 'PAGE_UPDATED',
|
|
13
|
+
PAGE_DELETED = 'PAGE_DELETED',
|
|
14
|
+
PAGE_CONTENT_DIFF_UPDATED = 'PAGE_CONTENT_DIFF_UPDATED',
|
|
15
|
+
ATLAS_DOCUMENT_CREATE = 'ATLAS_DOCUMENT_CREATE',
|
|
16
|
+
ATLAS_DOCUMENT_DELETE = 'ATLAS_DOCUMENT_DELETE',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type AtlasSSEMessageContent = ValueOf<
|
|
20
|
+
{
|
|
21
|
+
[K in AtlasSSEEvent]: {
|
|
22
|
+
type: K;
|
|
23
|
+
payload: SourceAtlasSSEEventPayload[K];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export class SourceAtlasSSEEventPayload implements Record<AtlasSSEEvent, Record<string, any>> {
|
|
29
|
+
[AtlasSSEEvent.ATLAS_UPDATED]!: {
|
|
30
|
+
atlasId: string;
|
|
31
|
+
atlas: IAtlas;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
[AtlasSSEEvent.ATLAS_DELETED]!: {
|
|
35
|
+
atlasId: string;
|
|
36
|
+
userId?: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
[AtlasSSEEvent.GROUP_CREATED]!: {
|
|
40
|
+
atlasId: string;
|
|
41
|
+
group: IAtlasGroup;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
[AtlasSSEEvent.GROUP_UPDATED]!: {
|
|
45
|
+
atlasId: string;
|
|
46
|
+
group: IAtlasGroup;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
[AtlasSSEEvent.GROUP_DELETED]!: {
|
|
50
|
+
atlasId: string;
|
|
51
|
+
groupId: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
[AtlasSSEEvent.PAGE_CREATED]!: {
|
|
55
|
+
atlasId: string;
|
|
56
|
+
page: IAtlasPage;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
[AtlasSSEEvent.PAGE_UPDATED]!: {
|
|
60
|
+
atlasId: string;
|
|
61
|
+
page: IAtlasPage;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
[AtlasSSEEvent.PAGE_DELETED]!: {
|
|
65
|
+
atlasId: string;
|
|
66
|
+
pageId: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
[AtlasSSEEvent.PAGE_CONTENT_DIFF_UPDATED]!: {
|
|
70
|
+
atlasId: string;
|
|
71
|
+
pageId: string;
|
|
72
|
+
diff: string | null;
|
|
73
|
+
version: number;
|
|
74
|
+
lastModifiedByUserId?: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
[AtlasSSEEvent.ATLAS_DOCUMENT_CREATE]!: {
|
|
78
|
+
atlasId: string;
|
|
79
|
+
atlasPageId: string;
|
|
80
|
+
atlasDocument: IAtlasDocument;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
[AtlasSSEEvent.ATLAS_DOCUMENT_DELETE]!: {
|
|
84
|
+
atlasId: string;
|
|
85
|
+
atlasPageId: string;
|
|
86
|
+
atlasDocumentId: string;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type AtlasSSEEventContent = AtlasSSEMessageContent | SystemSSEMessageContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './atlas.sse-protocol';
|
|
1
|
+
export * from './atlas.sse-protocol';
|