@abyss-project/tools 2.10.0 → 2.12.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/dist/api/atlas-group.api.js.map +1 -1
- package/dist/api/atlas-page.api.js.map +1 -1
- package/dist/api/atlas.api.js +3 -3
- package/dist/api/atlas.api.js.map +1 -1
- package/dist/api/atlas.public.api.js.map +1 -1
- package/dist/api/board-card.api.js.map +1 -1
- package/dist/api/board-column.api.js.map +1 -1
- package/dist/api/board-label.api.js +1 -2
- package/dist/api/board-label.api.js.map +1 -1
- package/dist/api/board.api.js +7 -5
- package/dist/api/board.api.js.map +1 -1
- package/dist/api/draw.api.js +1 -2
- package/dist/api/draw.api.js.map +1 -1
- package/dist/api/draw.public.api.js.map +1 -1
- package/dist/api/extraction-plan-preset.api.js +19 -6
- package/dist/api/extraction-plan-preset.api.js.map +1 -1
- package/dist/api/extraction-settings.api.js.map +1 -1
- package/dist/api/extraction.api.d.ts +0 -4
- package/dist/api/extraction.api.js +57 -46
- package/dist/api/extraction.api.js.map +1 -1
- package/dist/api/index.d.ts +0 -1
- package/dist/api/index.js +0 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/probe-scan.api.d.ts +2 -9
- package/dist/api/probe-scan.api.js +16 -26
- package/dist/api/probe-scan.api.js.map +1 -1
- package/dist/api/probe-scan.api.test.js +10 -0
- package/dist/api/probe-scan.api.test.js.map +1 -1
- package/dist/api/probe-scan.application.api.js +2 -2
- package/dist/api/probe-scan.application.api.js.map +1 -1
- package/dist/api/probe-scan.application.api.test.js +4 -0
- package/dist/api/probe-scan.application.api.test.js.map +1 -1
- package/dist/api/retrospective.api.js +2 -1
- package/dist/api/retrospective.api.js.map +1 -1
- package/dist/api/short-link.admin.api.js.map +1 -1
- package/dist/api/short-link.api.js.map +1 -1
- package/dist/api/short-link.public.api.js.map +1 -1
- package/dist/api/tag.api.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/server-sent-events/server-sent-events.manager.d.ts +1 -2
- package/dist/server-sent-events/server-sent-events.manager.js +1 -2
- package/dist/server-sent-events/server-sent-events.manager.js.map +1 -1
- package/dist/types/enum/document-type.enum.d.ts +0 -1
- package/dist/types/enum/document-type.enum.js +0 -1
- package/dist/types/enum/document-type.enum.js.map +1 -1
- package/dist/types/enum/extraction-warning.enum.d.ts +2 -1
- package/dist/types/enum/extraction-warning.enum.js +1 -0
- package/dist/types/enum/extraction-warning.enum.js.map +1 -1
- package/dist/types/enum/rcb-bank.enum.js +252 -36
- package/dist/types/enum/rcb-bank.enum.js.map +1 -1
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js +8 -2
- package/dist/types/interface/models/extraction-fetched-provenance.dto.test.js.map +1 -1
- package/dist/types/interface/models/extraction-plan.dto.test.js +6 -1
- package/dist/types/interface/models/extraction-plan.dto.test.js.map +1 -1
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js +20 -3
- package/dist/types/interface/models/extraction-spatial-template.dto.test.js.map +1 -1
- package/dist/types/interface/models/extraction.dto.d.ts +0 -10
- package/dist/types/interface/models/extraction.dto.js.map +1 -1
- package/package.json +4 -1
- package/src/api/atlas-group.api.ts +4 -1
- package/src/api/atlas-page.api.ts +12 -6
- package/src/api/atlas.api.ts +12 -7
- package/src/api/atlas.public.api.ts +3 -1
- package/src/api/board-card.api.ts +6 -3
- package/src/api/board-column.api.ts +4 -1
- package/src/api/board-label.api.ts +7 -3
- package/src/api/board.api.ts +19 -10
- package/src/api/draw.api.ts +16 -12
- package/src/api/draw.public.api.ts +3 -1
- package/src/api/extraction-plan-preset.api.ts +64 -18
- package/src/api/extraction-settings.api.ts +2 -8
- package/src/api/extraction.api.ts +45 -52
- package/src/api/index.ts +0 -1
- package/src/api/probe-scan.api.test.ts +26 -0
- package/src/api/probe-scan.api.ts +66 -54
- package/src/api/probe-scan.application.api.test.ts +14 -0
- package/src/api/probe-scan.application.api.ts +5 -5
- package/src/api/retrospective.api.ts +8 -5
- package/src/api/short-link.admin.api.ts +14 -4
- package/src/api/short-link.api.ts +39 -17
- package/src/api/short-link.public.api.ts +25 -11
- package/src/api/tag.api.ts +3 -1
- package/src/index.ts +0 -17
- package/src/server-sent-events/server-sent-events.manager.ts +5 -3
- package/src/types/enum/document-type.enum.ts +0 -1
- package/src/types/enum/extraction-warning.enum.ts +16 -0
- package/src/types/enum/rcb-bank.enum.ts +255 -41
- package/src/types/interface/api/requests/probe-scan.request.ts +5 -1
- package/src/types/interface/api/responses/retrospective.response.ts +2 -1
- package/src/types/interface/models/content-share.dto.ts +5 -1
- package/src/types/interface/models/extraction-fetched-provenance.dto.test.ts +20 -9
- package/src/types/interface/models/extraction-plan.dto.test.ts +17 -4
- package/src/types/interface/models/extraction-spatial-template.dto.test.ts +26 -5
- package/src/types/interface/models/extraction.dto.ts +0 -17
- package/src/types/interface/models/probe-webhook.dto.ts +3 -4
- package/tsconfig.check.json +15 -0
- package/dist/api/extraction.application.api.d.ts +0 -4
- package/dist/api/extraction.application.api.js +0 -30
- package/dist/api/extraction.application.api.js.map +0 -1
- package/dist/api/memo.api.d.ts +0 -15
- package/dist/api/memo.api.js +0 -49
- package/dist/api/memo.api.js.map +0 -1
- package/dist/constants/memo.constants.d.ts +0 -3
- package/dist/constants/memo.constants.js +0 -7
- package/dist/constants/memo.constants.js.map +0 -1
- package/dist/types/interface/api/requests/memo.request.d.ts +0 -41
- package/dist/types/interface/api/requests/memo.request.js +0 -3
- package/dist/types/interface/api/requests/memo.request.js.map +0 -1
- package/dist/types/interface/api/responses/memo.response.d.ts +0 -27
- package/dist/types/interface/api/responses/memo.response.js +0 -3
- package/dist/types/interface/api/responses/memo.response.js.map +0 -1
- package/dist/types/interface/models/memo.dto.d.ts +0 -20
- package/dist/types/interface/models/memo.dto.js +0 -3
- package/dist/types/interface/models/memo.dto.js.map +0 -1
- package/src/api/extraction.application.api.ts +0 -74
|
@@ -23,7 +23,9 @@ export const getRetrospective = async (
|
|
|
23
23
|
params: IGetRetrospectiveParams,
|
|
24
24
|
): Promise<IGetRetrospectiveResponse> => {
|
|
25
25
|
return (
|
|
26
|
-
await AbyssToolsCore.axios.get<IGetRetrospectiveResponse>(
|
|
26
|
+
await AbyssToolsCore.axios.get<IGetRetrospectiveResponse>(
|
|
27
|
+
`retrospective/${params.retrospectiveId}`,
|
|
28
|
+
)
|
|
27
29
|
).data;
|
|
28
30
|
};
|
|
29
31
|
|
|
@@ -52,7 +54,8 @@ export const paginateRetrospective = async (
|
|
|
52
54
|
export const createRetrospective = async (
|
|
53
55
|
body: ICreateRetrospectiveBody,
|
|
54
56
|
): Promise<ICreateRetrospectiveResponse> => {
|
|
55
|
-
return (await AbyssToolsCore.axios.post<ICreateRetrospectiveResponse>(`retrospective`, body))
|
|
57
|
+
return (await AbyssToolsCore.axios.post<ICreateRetrospectiveResponse>(`retrospective`, body))
|
|
58
|
+
.data;
|
|
56
59
|
};
|
|
57
60
|
|
|
58
61
|
export const createForOrganizationRetrospective = async (
|
|
@@ -113,9 +116,9 @@ export const transferRetrospective = async (
|
|
|
113
116
|
).data;
|
|
114
117
|
};
|
|
115
118
|
|
|
116
|
-
export const countOrganizationRetrospective = async (
|
|
117
|
-
|
|
118
|
-
): Promise<ICountOrganizationResponse> => {
|
|
119
|
+
export const countOrganizationRetrospective = async (params: {
|
|
120
|
+
organizationId: string;
|
|
121
|
+
}): Promise<ICountOrganizationResponse> => {
|
|
119
122
|
return (
|
|
120
123
|
await AbyssToolsCore.axios.get<ICountOrganizationResponse>(
|
|
121
124
|
`retrospective/organization/${params.organizationId}/count`,
|
|
@@ -15,12 +15,17 @@ export const shortLinkAdminApi = {
|
|
|
15
15
|
paginate: async (
|
|
16
16
|
query: IPaginateShortLinkAdminQuery,
|
|
17
17
|
): Promise<IPaginateShortLinkAdminResponse> => {
|
|
18
|
-
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkAdminResponse>(
|
|
18
|
+
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkAdminResponse>(
|
|
19
|
+
'/admin/short-link/paginate',
|
|
20
|
+
{ params: query },
|
|
21
|
+
);
|
|
19
22
|
return response.data;
|
|
20
23
|
},
|
|
21
24
|
|
|
22
25
|
get: async (params: IGetShortLinkAdminParams): Promise<IGetShortLinkAdminResponse> => {
|
|
23
|
-
const response = await AbyssToolsCore.axios.get<IGetShortLinkAdminResponse>(
|
|
26
|
+
const response = await AbyssToolsCore.axios.get<IGetShortLinkAdminResponse>(
|
|
27
|
+
`/admin/short-link/${params.shortLinkId}`,
|
|
28
|
+
);
|
|
24
29
|
return response.data;
|
|
25
30
|
},
|
|
26
31
|
|
|
@@ -28,12 +33,17 @@ export const shortLinkAdminApi = {
|
|
|
28
33
|
params: IUpdateShortLinkAdminParams,
|
|
29
34
|
body: IUpdateShortLinkAdminBody,
|
|
30
35
|
): Promise<IUpdateShortLinkAdminResponse> => {
|
|
31
|
-
const response = await AbyssToolsCore.axios.put<IUpdateShortLinkAdminResponse>(
|
|
36
|
+
const response = await AbyssToolsCore.axios.put<IUpdateShortLinkAdminResponse>(
|
|
37
|
+
`/admin/short-link/${params.shortLinkId}`,
|
|
38
|
+
body,
|
|
39
|
+
);
|
|
32
40
|
return response.data;
|
|
33
41
|
},
|
|
34
42
|
|
|
35
43
|
delete: async (params: IDeleteShortLinkAdminParams): Promise<IDeleteShortLinkAdminResponse> => {
|
|
36
|
-
const response = await AbyssToolsCore.axios.delete<IDeleteShortLinkAdminResponse>(
|
|
44
|
+
const response = await AbyssToolsCore.axios.delete<IDeleteShortLinkAdminResponse>(
|
|
45
|
+
`/admin/short-link/${params.shortLinkId}`,
|
|
46
|
+
);
|
|
37
47
|
return response.data;
|
|
38
48
|
},
|
|
39
49
|
};
|
|
@@ -27,12 +27,17 @@ import type {
|
|
|
27
27
|
|
|
28
28
|
export const shortLinkApi = {
|
|
29
29
|
get: async (params: IGetShortLinkParams): Promise<IGetShortLinkResponse> => {
|
|
30
|
-
const response = await AbyssToolsCore.axios.get<IGetShortLinkResponse>(
|
|
30
|
+
const response = await AbyssToolsCore.axios.get<IGetShortLinkResponse>(
|
|
31
|
+
`/short-link/${params.shortLinkId}`,
|
|
32
|
+
);
|
|
31
33
|
return response.data;
|
|
32
34
|
},
|
|
33
35
|
|
|
34
36
|
paginate: async (query: IPaginateShortLinkQuery): Promise<IPaginateShortLinkResponse> => {
|
|
35
|
-
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkResponse>(
|
|
37
|
+
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkResponse>(
|
|
38
|
+
'/short-link/paginate',
|
|
39
|
+
{ params: query },
|
|
40
|
+
);
|
|
36
41
|
return response.data;
|
|
37
42
|
},
|
|
38
43
|
|
|
@@ -40,9 +45,12 @@ export const shortLinkApi = {
|
|
|
40
45
|
params: IPaginateProjectShortLinkParams,
|
|
41
46
|
query: IPaginateShortLinkQuery,
|
|
42
47
|
): Promise<IPaginateShortLinkResponse> => {
|
|
43
|
-
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkResponse>(
|
|
44
|
-
params
|
|
45
|
-
|
|
48
|
+
const response = await AbyssToolsCore.axios.get<IPaginateShortLinkResponse>(
|
|
49
|
+
`/short-link/project/${params.projectId}/paginate`,
|
|
50
|
+
{
|
|
51
|
+
params: query,
|
|
52
|
+
},
|
|
53
|
+
);
|
|
46
54
|
return response.data;
|
|
47
55
|
},
|
|
48
56
|
|
|
@@ -55,7 +63,10 @@ export const shortLinkApi = {
|
|
|
55
63
|
params: ICreateForOrganizationShortLinkParams,
|
|
56
64
|
body: ICreateShortLinkBody,
|
|
57
65
|
): Promise<ICreateShortLinkResponse> => {
|
|
58
|
-
const response = await AbyssToolsCore.axios.post<ICreateShortLinkResponse>(
|
|
66
|
+
const response = await AbyssToolsCore.axios.post<ICreateShortLinkResponse>(
|
|
67
|
+
`/short-link/organization/${params.organizationId}`,
|
|
68
|
+
body,
|
|
69
|
+
);
|
|
59
70
|
return response.data;
|
|
60
71
|
},
|
|
61
72
|
|
|
@@ -63,12 +74,17 @@ export const shortLinkApi = {
|
|
|
63
74
|
params: IUpdateShortLinkParams,
|
|
64
75
|
body: IUpdateShortLinkBody,
|
|
65
76
|
): Promise<IUpdateShortLinkResponse> => {
|
|
66
|
-
const response = await AbyssToolsCore.axios.put<IUpdateShortLinkResponse>(
|
|
77
|
+
const response = await AbyssToolsCore.axios.put<IUpdateShortLinkResponse>(
|
|
78
|
+
`/short-link/${params.shortLinkId}`,
|
|
79
|
+
body,
|
|
80
|
+
);
|
|
67
81
|
return response.data;
|
|
68
82
|
},
|
|
69
83
|
|
|
70
84
|
delete: async (params: IDeleteShortLinkParams): Promise<IDeleteShortLinkResponse> => {
|
|
71
|
-
const response = await AbyssToolsCore.axios.delete<IDeleteShortLinkResponse>(
|
|
85
|
+
const response = await AbyssToolsCore.axios.delete<IDeleteShortLinkResponse>(
|
|
86
|
+
`/short-link/${params.shortLinkId}`,
|
|
87
|
+
);
|
|
72
88
|
return response.data;
|
|
73
89
|
},
|
|
74
90
|
|
|
@@ -76,9 +92,12 @@ export const shortLinkApi = {
|
|
|
76
92
|
params: IGetStatsShortLinkParams,
|
|
77
93
|
query?: IGetStatsShortLinkQuery,
|
|
78
94
|
): Promise<IGetStatsShortLinkResponse> => {
|
|
79
|
-
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkResponse>(
|
|
80
|
-
params
|
|
81
|
-
|
|
95
|
+
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkResponse>(
|
|
96
|
+
`/short-link/${params.shortLinkId}/stats`,
|
|
97
|
+
{
|
|
98
|
+
params: query,
|
|
99
|
+
},
|
|
100
|
+
);
|
|
82
101
|
return response.data;
|
|
83
102
|
},
|
|
84
103
|
|
|
@@ -86,9 +105,12 @@ export const shortLinkApi = {
|
|
|
86
105
|
params: IGetClicksShortLinkParams,
|
|
87
106
|
query?: IGetClicksShortLinkQuery,
|
|
88
107
|
): Promise<IGetClicksShortLinkResponse> => {
|
|
89
|
-
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkResponse>(
|
|
90
|
-
params
|
|
91
|
-
|
|
108
|
+
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkResponse>(
|
|
109
|
+
`/short-link/${params.shortLinkId}/clicks`,
|
|
110
|
+
{
|
|
111
|
+
params: query,
|
|
112
|
+
},
|
|
113
|
+
);
|
|
92
114
|
return response.data;
|
|
93
115
|
},
|
|
94
116
|
|
|
@@ -114,9 +136,9 @@ export const shortLinkApi = {
|
|
|
114
136
|
return response.data;
|
|
115
137
|
},
|
|
116
138
|
|
|
117
|
-
countOrganization: async (
|
|
118
|
-
|
|
119
|
-
): Promise<ICountOrganizationResponse> => {
|
|
139
|
+
countOrganization: async (params: {
|
|
140
|
+
organizationId: string;
|
|
141
|
+
}): Promise<ICountOrganizationResponse> => {
|
|
120
142
|
const response = await AbyssToolsCore.axios.get<ICountOrganizationResponse>(
|
|
121
143
|
`/short-link/organization/${params.organizationId}/count`,
|
|
122
144
|
);
|
|
@@ -19,7 +19,10 @@ export const shortLinkPublicApi = {
|
|
|
19
19
|
createAnonymous: async (
|
|
20
20
|
body: ICreateAnonymousShortLinkPublicBody,
|
|
21
21
|
): Promise<ICreateShortLinkPublicResponse> => {
|
|
22
|
-
const response = await AbyssToolsCore.axios.post<ICreateShortLinkPublicResponse>(
|
|
22
|
+
const response = await AbyssToolsCore.axios.post<ICreateShortLinkPublicResponse>(
|
|
23
|
+
'/short-link/public',
|
|
24
|
+
body,
|
|
25
|
+
);
|
|
23
26
|
return response.data;
|
|
24
27
|
},
|
|
25
28
|
|
|
@@ -27,9 +30,12 @@ export const shortLinkPublicApi = {
|
|
|
27
30
|
params: IRedirectShortLinkPublicParams,
|
|
28
31
|
query?: IRedirectShortLinkPublicQuery,
|
|
29
32
|
): Promise<IRedirectShortLinkPublicResponse> => {
|
|
30
|
-
const response = await AbyssToolsCore.axios.get<IRedirectShortLinkPublicResponse>(
|
|
31
|
-
params
|
|
32
|
-
|
|
33
|
+
const response = await AbyssToolsCore.axios.get<IRedirectShortLinkPublicResponse>(
|
|
34
|
+
`/short-link/public/redirect/${params.slug}`,
|
|
35
|
+
{
|
|
36
|
+
params: query,
|
|
37
|
+
},
|
|
38
|
+
);
|
|
33
39
|
return response.data;
|
|
34
40
|
},
|
|
35
41
|
|
|
@@ -37,9 +43,12 @@ export const shortLinkPublicApi = {
|
|
|
37
43
|
params: IGetStatsShortLinkPublicParams,
|
|
38
44
|
query?: IGetStatsShortLinkPublicQuery,
|
|
39
45
|
): Promise<IGetStatsShortLinkPublicResponse> => {
|
|
40
|
-
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkPublicResponse>(
|
|
41
|
-
params
|
|
42
|
-
|
|
46
|
+
const response = await AbyssToolsCore.axios.get<IGetStatsShortLinkPublicResponse>(
|
|
47
|
+
`/short-link/public/${params.shortLinkId}/stats`,
|
|
48
|
+
{
|
|
49
|
+
params: query,
|
|
50
|
+
},
|
|
51
|
+
);
|
|
43
52
|
return response.data;
|
|
44
53
|
},
|
|
45
54
|
|
|
@@ -47,14 +56,19 @@ export const shortLinkPublicApi = {
|
|
|
47
56
|
params: IGetClicksShortLinkPublicParams,
|
|
48
57
|
query?: IGetClicksShortLinkPublicQuery,
|
|
49
58
|
): Promise<IGetClicksShortLinkPublicResponse> => {
|
|
50
|
-
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkPublicResponse>(
|
|
51
|
-
params
|
|
52
|
-
|
|
59
|
+
const response = await AbyssToolsCore.axios.get<IGetClicksShortLinkPublicResponse>(
|
|
60
|
+
`/short-link/public/${params.shortLinkId}/clicks`,
|
|
61
|
+
{
|
|
62
|
+
params: query,
|
|
63
|
+
},
|
|
64
|
+
);
|
|
53
65
|
return response.data;
|
|
54
66
|
},
|
|
55
67
|
|
|
56
68
|
renew: async (params: IRenewShortLinkPublicParams): Promise<IRenewShortLinkPublicResponse> => {
|
|
57
|
-
const response = await AbyssToolsCore.axios.post<IRenewShortLinkPublicResponse>(
|
|
69
|
+
const response = await AbyssToolsCore.axios.post<IRenewShortLinkPublicResponse>(
|
|
70
|
+
`/short-link/public/${params.shortLinkId}/renew`,
|
|
71
|
+
);
|
|
58
72
|
return response.data;
|
|
59
73
|
},
|
|
60
74
|
};
|
package/src/api/tag.api.ts
CHANGED
|
@@ -63,7 +63,9 @@ export const getTagStats = async (query?: ITagStatsQuery): Promise<ITagStatsResp
|
|
|
63
63
|
return (await AbyssToolsCore.axios.get<ITagStatsResponse>('tag/stats', { params: query })).data;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
export const getEntityTags = async (
|
|
66
|
+
export const getEntityTags = async (
|
|
67
|
+
params: IGetEntityTagsParams,
|
|
68
|
+
): Promise<IGetEntityTagsResponse> => {
|
|
67
69
|
return (
|
|
68
70
|
await AbyssToolsCore.axios.get<IGetEntityTagsResponse>(
|
|
69
71
|
`${params.entityType}/${params.entityId}/tags`,
|
package/src/index.ts
CHANGED
|
@@ -28,7 +28,6 @@ import * as metricsApi from './api/metrics.api';
|
|
|
28
28
|
import * as organizationApi from './api/organization.api';
|
|
29
29
|
import * as tagApi from './api/tag.api';
|
|
30
30
|
import * as extractionApi from './api/extraction.api';
|
|
31
|
-
import * as extractionApplicationApi from './api/extraction.application.api';
|
|
32
31
|
import * as extractionSettingsApi from './api/extraction-settings.api';
|
|
33
32
|
import * as extractionPlanPresetApi from './api/extraction-plan-preset.api';
|
|
34
33
|
import * as monitorApi from './api/monitor.api';
|
|
@@ -407,19 +406,6 @@ type AbyssToolsCoreSDK = {
|
|
|
407
406
|
run: typeof extractionApi.extractSync;
|
|
408
407
|
runQueue: typeof extractionApi.extractQueue;
|
|
409
408
|
runBulk: typeof extractionApi.extractBulk;
|
|
410
|
-
/**
|
|
411
|
-
* Application/API-key-auth counterpart — for a backend satellite (e.g.
|
|
412
|
-
* AbyssBanking) triggering a SYNCHRONOUS extraction server-side with its
|
|
413
|
-
* APPLICATION api key: the run is OWNED by the application and BILLED to
|
|
414
|
-
* its resolved owning organization (never an end user). Hits
|
|
415
|
-
* `/extract/application/:applicationId/extract`, authenticated with the
|
|
416
|
-
* `abyss-api-key-application` header ({@link API_KEY_APPLICATION_HEADER})
|
|
417
|
-
* instead of the personal `abyss-api-key`. Does NOT change the personal `run`.
|
|
418
|
-
*/
|
|
419
|
-
application: {
|
|
420
|
-
/** `POST /extract/application/:applicationId/extract` — synchronous; owned + billed to the app's org. */
|
|
421
|
-
run: typeof extractionApplicationApi.runExtractionApplication;
|
|
422
|
-
};
|
|
423
409
|
files: {
|
|
424
410
|
list: typeof extractionApi.listFiles;
|
|
425
411
|
listShared: typeof extractionApi.listSharedFiles;
|
|
@@ -839,9 +825,6 @@ export class AbyssToolsCore {
|
|
|
839
825
|
run: extractionApi.extractSync,
|
|
840
826
|
runQueue: extractionApi.extractQueue,
|
|
841
827
|
runBulk: extractionApi.extractBulk,
|
|
842
|
-
application: {
|
|
843
|
-
run: extractionApplicationApi.runExtractionApplication,
|
|
844
|
-
},
|
|
845
828
|
files: {
|
|
846
829
|
list: extractionApi.listFiles,
|
|
847
830
|
listShared: extractionApi.listSharedFiles,
|
|
@@ -19,11 +19,13 @@ export class ServerSentEventsManager<
|
|
|
19
19
|
T extends ServerSentEventBaseContext,
|
|
20
20
|
P extends { type: string; payload: unknown },
|
|
21
21
|
> {
|
|
22
|
-
private channel: string;
|
|
23
22
|
private contexts: Map<string, Set<T>>;
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
// Le nom du canal est accepte pour ne rien casser chez les appelants, mais il
|
|
25
|
+
// n'est pas conserve : l'aiguillage se fait par la CLE de la table des
|
|
26
|
+
// gestionnaires (`AppConfig.sse[SSEChannels.X]`), jamais par un champ porte par
|
|
27
|
+
// le gestionnaire lui-meme. Le champ qui le stockait n'etait lu nulle part.
|
|
28
|
+
constructor(_channelName: string) {
|
|
27
29
|
this.contexts = new Map();
|
|
28
30
|
}
|
|
29
31
|
|
|
@@ -18,4 +18,20 @@ export enum ExtractionWarningCode {
|
|
|
18
18
|
* enum for each domain-specific rule.
|
|
19
19
|
*/
|
|
20
20
|
ADAPTER_VALIDATION_ERROR = 'adapter_validation_error',
|
|
21
|
+
/**
|
|
22
|
+
* A field was extracted but NOT published, because its calibrated confidence
|
|
23
|
+
* fell below the publish floor for its (documentType, fieldKey).
|
|
24
|
+
*
|
|
25
|
+
* This is deliberately its own code rather than an `ADAPTER_VALIDATION_ERROR`
|
|
26
|
+
* carrying a `data.type`. Suppression is a first-class product behaviour a
|
|
27
|
+
* client must be able to detect reliably — «did the engine find nothing, or
|
|
28
|
+
* did it find something it judged not worth sending?» are two different
|
|
29
|
+
* questions, and a client should not have to parse a free-text field to tell
|
|
30
|
+
* them apart.
|
|
31
|
+
*
|
|
32
|
+
* `data.fieldKey` names the field, `data.confidence` its calibrated value and
|
|
33
|
+
* `data.floor` the threshold it missed. The value itself is never in the
|
|
34
|
+
* warning: it stays in `provenance`, flagged `suppressed`.
|
|
35
|
+
*/
|
|
36
|
+
FIELD_BELOW_PUBLISH_FLOOR = 'field_below_publish_floor',
|
|
21
37
|
}
|
|
@@ -68,57 +68,271 @@ export interface RcbBankCatalogueEntry {
|
|
|
68
68
|
|
|
69
69
|
export const RCB_BANK_CATALOGUE: ReadonlyArray<RcbBankCatalogueEntry> = [
|
|
70
70
|
// ─── French retail / business ─────────────
|
|
71
|
-
{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
71
|
+
{
|
|
72
|
+
id: RcbBankVersionId.BNP_CONNEXIS_DEFAULT,
|
|
73
|
+
bank: 'BNP Connexis',
|
|
74
|
+
version: 'default',
|
|
75
|
+
country: 'FR',
|
|
76
|
+
type: 'business',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: RcbBankVersionId.BNP_PARIBAS_DEFAULT,
|
|
80
|
+
bank: 'BNP Paribas',
|
|
81
|
+
version: 'default',
|
|
82
|
+
country: 'FR',
|
|
83
|
+
type: 'retail',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: RcbBankVersionId.SOCIETE_GENERALE_DEFAULT,
|
|
87
|
+
bank: 'Société Générale',
|
|
88
|
+
version: 'default',
|
|
89
|
+
country: 'FR',
|
|
90
|
+
type: 'retail',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: RcbBankVersionId.CREDIT_AGRICOLE_DEFAULT,
|
|
94
|
+
bank: 'Crédit Agricole',
|
|
95
|
+
version: 'default',
|
|
96
|
+
country: 'FR',
|
|
97
|
+
type: 'retail',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: RcbBankVersionId.LCL_DEFAULT,
|
|
101
|
+
bank: 'LCL',
|
|
102
|
+
version: 'default',
|
|
103
|
+
country: 'FR',
|
|
104
|
+
type: 'retail',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: RcbBankVersionId.BOURSORAMA_DEFAULT,
|
|
108
|
+
bank: 'Boursorama',
|
|
109
|
+
version: 'default',
|
|
110
|
+
country: 'FR',
|
|
111
|
+
type: 'retail',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: RcbBankVersionId.LA_BANQUE_POSTALE_DEFAULT,
|
|
115
|
+
bank: 'La Banque Postale',
|
|
116
|
+
version: 'default',
|
|
117
|
+
country: 'FR',
|
|
118
|
+
type: 'retail',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: RcbBankVersionId.CAISSE_EPARGNE_DEFAULT,
|
|
122
|
+
bank: "Caisse d'Épargne",
|
|
123
|
+
version: 'default',
|
|
124
|
+
country: 'FR',
|
|
125
|
+
type: 'retail',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: RcbBankVersionId.CIC_EBICS_DEFAULT,
|
|
129
|
+
bank: 'CIC',
|
|
130
|
+
version: 'ebics',
|
|
131
|
+
country: 'FR',
|
|
132
|
+
type: 'business',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: RcbBankVersionId.CIC_DEFAULT,
|
|
136
|
+
bank: 'CIC',
|
|
137
|
+
version: 'default',
|
|
138
|
+
country: 'FR',
|
|
139
|
+
type: 'retail',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: RcbBankVersionId.CREDIT_MUTUEL_DEFAULT,
|
|
143
|
+
bank: 'Crédit Mutuel',
|
|
144
|
+
version: 'default',
|
|
145
|
+
country: 'FR',
|
|
146
|
+
type: 'retail',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: RcbBankVersionId.BRED_DEFAULT,
|
|
150
|
+
bank: 'BRED',
|
|
151
|
+
version: 'default',
|
|
152
|
+
country: 'FR',
|
|
153
|
+
type: 'retail',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: RcbBankVersionId.CREDIT_DU_NORD_DEFAULT,
|
|
157
|
+
bank: 'Crédit du Nord',
|
|
158
|
+
version: 'default',
|
|
159
|
+
country: 'FR',
|
|
160
|
+
type: 'retail',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: RcbBankVersionId.CDE_NET_DEFAULT,
|
|
164
|
+
bank: 'CDE Net',
|
|
165
|
+
version: 'default',
|
|
166
|
+
country: 'FR',
|
|
167
|
+
type: 'business',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: RcbBankVersionId.DELUBAC_DEFAULT,
|
|
171
|
+
bank: 'Delubac',
|
|
172
|
+
version: 'default',
|
|
173
|
+
country: 'FR',
|
|
174
|
+
type: 'business',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: RcbBankVersionId.PALATINE_DEFAULT,
|
|
178
|
+
bank: 'Palatine',
|
|
179
|
+
version: 'default',
|
|
180
|
+
country: 'FR',
|
|
181
|
+
type: 'business',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: RcbBankVersionId.NATIXIS_DEFAULT,
|
|
185
|
+
bank: 'Natixis',
|
|
186
|
+
version: 'default',
|
|
187
|
+
country: 'FR',
|
|
188
|
+
type: 'corporate',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: RcbBankVersionId.THEMIS_DEFAULT,
|
|
192
|
+
bank: 'Themis Banque',
|
|
193
|
+
version: 'default',
|
|
194
|
+
country: 'FR',
|
|
195
|
+
type: 'business',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: RcbBankVersionId.ROTHSCHILD_DEFAULT,
|
|
199
|
+
bank: 'Rothschild Martin Maurel',
|
|
200
|
+
version: 'default',
|
|
201
|
+
country: 'FR',
|
|
202
|
+
type: 'corporate',
|
|
203
|
+
},
|
|
204
|
+
{ id: RcbBankVersionId.LA_NEF_V1, bank: 'La Nef', version: 'v1', country: 'FR', type: 'retail' },
|
|
205
|
+
{ id: RcbBankVersionId.LA_NEF_V2, bank: 'La Nef', version: 'v2', country: 'FR', type: 'retail' },
|
|
92
206
|
|
|
93
207
|
// ─── Neobanks / fintech ───────────────────
|
|
94
|
-
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
208
|
+
{
|
|
209
|
+
id: RcbBankVersionId.QONTO_DEFAULT,
|
|
210
|
+
bank: 'Qonto',
|
|
211
|
+
version: 'default',
|
|
212
|
+
country: 'FR',
|
|
213
|
+
type: 'neobank',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: RcbBankVersionId.SHINE_DEFAULT,
|
|
217
|
+
bank: 'Shine',
|
|
218
|
+
version: 'default',
|
|
219
|
+
country: 'FR',
|
|
220
|
+
type: 'neobank',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: RcbBankVersionId.FINOM_DEFAULT,
|
|
224
|
+
bank: 'Finom',
|
|
225
|
+
version: 'default',
|
|
226
|
+
country: 'EU',
|
|
227
|
+
type: 'neobank',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: RcbBankVersionId.TIIME_DEFAULT,
|
|
231
|
+
bank: 'Tiime',
|
|
232
|
+
version: 'default',
|
|
233
|
+
country: 'FR',
|
|
234
|
+
type: 'neobank',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: RcbBankVersionId.SPENDESK_DEFAULT,
|
|
238
|
+
bank: 'Spendesk',
|
|
239
|
+
version: 'default',
|
|
240
|
+
country: 'FR',
|
|
241
|
+
type: 'fintech',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: RcbBankVersionId.SWAN_DEFAULT,
|
|
245
|
+
bank: 'Swan',
|
|
246
|
+
version: 'default',
|
|
247
|
+
country: 'FR',
|
|
248
|
+
type: 'fintech',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: RcbBankVersionId.N26_DEFAULT,
|
|
252
|
+
bank: 'N26',
|
|
253
|
+
version: 'default',
|
|
254
|
+
country: 'EU',
|
|
255
|
+
type: 'neobank',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
id: RcbBankVersionId.REVOLUT_DEFAULT,
|
|
259
|
+
bank: 'Revolut',
|
|
260
|
+
version: 'default',
|
|
261
|
+
country: 'EU',
|
|
262
|
+
type: 'neobank',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: RcbBankVersionId.WISE_DEFAULT,
|
|
266
|
+
bank: 'Wise',
|
|
267
|
+
version: 'default',
|
|
268
|
+
country: 'INTL',
|
|
269
|
+
type: 'fintech',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: RcbBankVersionId.PAYPAL_DEFAULT,
|
|
273
|
+
bank: 'PayPal',
|
|
274
|
+
version: 'default',
|
|
275
|
+
country: 'INTL',
|
|
276
|
+
type: 'fintech',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: RcbBankVersionId.AIRWALLEX_DEFAULT,
|
|
280
|
+
bank: 'Airwallex',
|
|
281
|
+
version: 'default',
|
|
282
|
+
country: 'INTL',
|
|
283
|
+
type: 'fintech',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: RcbBankVersionId.VIVA_WALLET_DEFAULT,
|
|
287
|
+
bank: 'Viva Wallet',
|
|
288
|
+
version: 'default',
|
|
289
|
+
country: 'EU',
|
|
290
|
+
type: 'fintech',
|
|
291
|
+
},
|
|
106
292
|
|
|
107
293
|
// ─── International retail / corporate ─────
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
294
|
+
{
|
|
295
|
+
id: RcbBankVersionId.HSBC_DEFAULT,
|
|
296
|
+
bank: 'HSBC',
|
|
297
|
+
version: 'default',
|
|
298
|
+
country: 'FR',
|
|
299
|
+
type: 'retail',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: RcbBankVersionId.HSBC_UK_DEFAULT,
|
|
303
|
+
bank: 'HSBC UK',
|
|
304
|
+
version: 'default',
|
|
305
|
+
country: 'UK',
|
|
306
|
+
type: 'retail',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: RcbBankVersionId.UBS_DEFAULT,
|
|
310
|
+
bank: 'UBS',
|
|
311
|
+
version: 'default',
|
|
312
|
+
country: 'CH',
|
|
313
|
+
type: 'corporate',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
id: RcbBankVersionId.CAIXA_DEFAULT,
|
|
317
|
+
bank: 'Caixa',
|
|
318
|
+
version: 'default',
|
|
319
|
+
country: 'PT',
|
|
320
|
+
type: 'retail',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
id: RcbBankVersionId.JPMORGAN_DEFAULT,
|
|
324
|
+
bank: 'JPMorgan',
|
|
325
|
+
version: 'default',
|
|
326
|
+
country: 'US',
|
|
327
|
+
type: 'corporate',
|
|
328
|
+
},
|
|
113
329
|
];
|
|
114
330
|
|
|
115
331
|
/**
|
|
116
332
|
* Lookup by id (typed). Returns undefined for unknown ids — callers should
|
|
117
333
|
* treat that as "use auto mode" rather than crash.
|
|
118
334
|
*/
|
|
119
|
-
export function getRcbBankCatalogueEntry(
|
|
120
|
-
id: string,
|
|
121
|
-
): RcbBankCatalogueEntry | undefined {
|
|
335
|
+
export function getRcbBankCatalogueEntry(id: string): RcbBankCatalogueEntry | undefined {
|
|
122
336
|
return RCB_BANK_CATALOGUE.find((e) => e.id === id);
|
|
123
337
|
}
|
|
124
338
|
|