@abyss-project/tools 1.1.1 → 1.3.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/dist/api/beam.api.d.ts +2 -1
- package/dist/api/beam.api.js +10 -4
- package/dist/api/beam.api.js.map +1 -1
- 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.d.ts +5 -5
- package/dist/api/extraction.api.js +22 -5
- package/dist/api/extraction.api.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/beam.enum.d.ts +4 -0
- package/dist/types/enum/beam.enum.js +6 -1
- package/dist/types/enum/beam.enum.js.map +1 -1
- package/dist/types/interface/api/requests/beam.request.d.ts +16 -0
- package/dist/types/interface/api/requests/extraction.request.d.ts +8 -0
- package/dist/types/interface/api/responses/beam.response.d.ts +23 -1
- package/dist/types/interface/api/responses/extraction.response.d.ts +6 -0
- package/dist/types/interface/models/beam.dto.d.ts +13 -1
- package/dist/types/interface/models/extraction.dto.d.ts +8 -1
- package/dist/types/interface/models/extraction.dto.js.map +1 -1
- package/dist/utils/shape.utils.js +18 -18
- package/package.json +14 -9
- package/src/api/abyss.admin.api.ts +54 -54
- package/src/api/atlas-document.api.ts +68 -68
- package/src/api/atlas-group.api.ts +69 -69
- package/src/api/atlas-page.api.ts +124 -124
- package/src/api/atlas.api.ts +103 -103
- package/src/api/atlas.public.api.ts +42 -42
- package/src/api/beam.api.ts +29 -4
- 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 +58 -18
- package/src/api/memo.api.ts +97 -97
- package/src/api/metrics.api.ts +27 -27
- package/src/api/monitor.api.ts +6 -6
- package/src/api/organization.api.ts +14 -14
- package/src/api/retrospective-card.api.ts +74 -74
- package/src/api/retrospective-member.api.ts +54 -54
- package/src/api/retrospective-section.api.ts +74 -74
- package/src/api/retrospective.api.ts +124 -124
- package/src/api/retrospective.public.api.ts +147 -147
- package/src/api/short-link.admin.api.ts +39 -39
- package/src/api/short-link.api.ts +125 -125
- package/src/api/short-link.public.api.ts +60 -60
- package/src/api/tag.api.ts +72 -72
- package/src/api/tests/beam.api.spec.ts +64 -0
- 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 +10 -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/beam.enum.ts +8 -0
- package/src/types/enum/board-activity.enum.ts +189 -189
- package/src/types/enum/board-column-type.enum.ts +6 -6
- package/src/types/enum/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/beam.request.ts +27 -2
- package/src/types/interface/api/requests/board-card-checklist.request.ts +61 -61
- package/src/types/interface/api/requests/board-card-comment.request.ts +28 -28
- package/src/types/interface/api/requests/board-card-document.request.ts +29 -29
- package/src/types/interface/api/requests/board-card.request.ts +86 -86
- package/src/types/interface/api/requests/board-column.request.ts +30 -30
- package/src/types/interface/api/requests/board-label.request.ts +42 -42
- package/src/types/interface/api/requests/board.request.ts +61 -61
- package/src/types/interface/api/requests/draw.public.request.ts +20 -20
- package/src/types/interface/api/requests/draw.request.ts +49 -49
- package/src/types/interface/api/requests/extraction.request.ts +22 -0
- package/src/types/interface/api/requests/memo.request.ts +49 -49
- package/src/types/interface/api/requests/metrics.request.ts +7 -7
- package/src/types/interface/api/requests/retrospective-card.request.ts +38 -38
- package/src/types/interface/api/requests/retrospective-member.request.ts +20 -20
- package/src/types/interface/api/requests/retrospective-section.request.ts +43 -43
- package/src/types/interface/api/requests/retrospective.public.request.ts +84 -84
- package/src/types/interface/api/requests/retrospective.request.ts +59 -59
- package/src/types/interface/api/requests/short-link.admin.request.ts +35 -35
- package/src/types/interface/api/requests/short-link.public.request.ts +40 -40
- package/src/types/interface/api/requests/short-link.request.ts +71 -71
- package/src/types/interface/api/requests/tag.request.ts +54 -54
- package/src/types/interface/api/requests/transfer.request.ts +3 -3
- package/src/types/interface/api/responses/abyss.admin.response.ts +28 -28
- package/src/types/interface/api/responses/atlas-document.response.ts +24 -24
- package/src/types/interface/api/responses/atlas-group.response.ts +23 -23
- package/src/types/interface/api/responses/atlas-page.response.ts +53 -53
- package/src/types/interface/api/responses/atlas.public.response.ts +21 -21
- package/src/types/interface/api/responses/atlas.response.ts +32 -32
- package/src/types/interface/api/responses/beam.response.ts +30 -1
- package/src/types/interface/api/responses/board-card-checklist.response.ts +31 -31
- package/src/types/interface/api/responses/board-card-comment.response.ts +20 -20
- package/src/types/interface/api/responses/board-card-document.response.ts +21 -21
- package/src/types/interface/api/responses/board-card.response.ts +55 -55
- package/src/types/interface/api/responses/board-column.response.ts +20 -20
- package/src/types/interface/api/responses/board-label.response.ts +31 -31
- package/src/types/interface/api/responses/board.response.ts +81 -81
- package/src/types/interface/api/responses/count.response.ts +9 -9
- package/src/types/interface/api/responses/draw.public.response.ts +22 -22
- package/src/types/interface/api/responses/draw.response.ts +32 -32
- package/src/types/interface/api/responses/enriched-paginate.response.ts +11 -11
- package/src/types/interface/api/responses/extraction.response.ts +19 -2
- package/src/types/interface/api/responses/memo.response.ts +32 -32
- package/src/types/interface/api/responses/metrics.response.ts +22 -22
- package/src/types/interface/api/responses/monitor.response.ts +8 -8
- package/src/types/interface/api/responses/recent.response.ts +18 -18
- package/src/types/interface/api/responses/retrospective-card.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective-member.response.ts +22 -22
- package/src/types/interface/api/responses/retrospective-section.response.ts +23 -23
- package/src/types/interface/api/responses/retrospective.public.response.ts +57 -57
- package/src/types/interface/api/responses/retrospective.response.ts +32 -32
- package/src/types/interface/api/responses/short-link.admin.response.ts +21 -21
- package/src/types/interface/api/responses/short-link.public.response.ts +26 -26
- package/src/types/interface/api/responses/short-link.response.ts +38 -38
- package/src/types/interface/api/responses/tag.response.ts +38 -38
- package/src/types/interface/api/responses/transfer.response.ts +14 -14
- package/src/types/interface/api/type-message/api-error.ts +7 -7
- package/src/types/interface/api/type-message/base-paginate.ts +11 -11
- package/src/types/interface/api/type-message/response.ts +6 -6
- package/src/types/interface/index.ts +2 -2
- package/src/types/interface/models/atlas-document.dto.ts +22 -22
- package/src/types/interface/models/atlas-group.dto.ts +21 -21
- package/src/types/interface/models/atlas-page-content.dto.ts +17 -17
- package/src/types/interface/models/atlas-page.dto.ts +26 -26
- package/src/types/interface/models/atlas.dto.ts +34 -34
- package/src/types/interface/models/beam.dto.ts +20 -1
- package/src/types/interface/models/board-activity.dto.ts +20 -20
- package/src/types/interface/models/board-card-checklist-row.dto.ts +14 -14
- package/src/types/interface/models/board-card-checklist.dto.ts +16 -16
- package/src/types/interface/models/board-card-comment.dto.ts +15 -15
- package/src/types/interface/models/board-card-document.dto.ts +22 -22
- package/src/types/interface/models/board-card-label.dto.ts +14 -14
- package/src/types/interface/models/board-card-member.dto.ts +14 -14
- package/src/types/interface/models/board-card.dto.ts +37 -37
- package/src/types/interface/models/board-column.dto.ts +17 -17
- package/src/types/interface/models/board-label.dto.ts +13 -13
- package/src/types/interface/models/board.dto.ts +33 -33
- package/src/types/interface/models/content-share.dto.ts +16 -16
- package/src/types/interface/models/draw.dto.ts +30 -30
- package/src/types/interface/models/extraction.dto.ts +24 -6
- 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,137 +1,137 @@
|
|
|
1
|
-
// ──────────────────────────────────────────────
|
|
2
|
-
// RCB — Formal catalogue of supported banks and versions.
|
|
3
|
-
//
|
|
4
|
-
// Mirrors the server-side registry (BANK_VERSIONS in abyss-tools/apps/api).
|
|
5
|
-
// Use these enums whenever you reference a bank or version in hint mode,
|
|
6
|
-
// UI dropdowns, or per-bank metrics. Adding a bank?
|
|
7
|
-
// 1. Add the entry to BANK_VERSIONS in apps/api.
|
|
8
|
-
// 2. Add the matching id here. CI will catch any mismatch.
|
|
9
|
-
// ──────────────────────────────────────────────
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Stable id of a bank+version profile. The wire-format string used in
|
|
13
|
-
* `hint.bank` (POST /rcb/extract mode=hint) and returned in
|
|
14
|
-
* extraction.strategy_used.
|
|
15
|
-
*/
|
|
16
|
-
export enum RcbBankVersionId {
|
|
17
|
-
BNP_CONNEXIS_DEFAULT = 'bnp-connexis-default',
|
|
18
|
-
BNP_PARIBAS_DEFAULT = 'bnp-paribas-default',
|
|
19
|
-
SOCIETE_GENERALE_DEFAULT = 'societe-generale-default',
|
|
20
|
-
CREDIT_AGRICOLE_DEFAULT = 'credit-agricole-default',
|
|
21
|
-
LCL_DEFAULT = 'lcl-default',
|
|
22
|
-
BOURSORAMA_DEFAULT = 'boursorama-default',
|
|
23
|
-
SPENDESK_DEFAULT = 'spendesk-default',
|
|
24
|
-
LA_BANQUE_POSTALE_DEFAULT = 'la-banque-postale-default',
|
|
25
|
-
CAISSE_EPARGNE_DEFAULT = 'caisse-epargne-default',
|
|
26
|
-
THEMIS_DEFAULT = 'themis-default',
|
|
27
|
-
CIC_EBICS_DEFAULT = 'cic-ebics-default',
|
|
28
|
-
CIC_DEFAULT = 'cic-default',
|
|
29
|
-
CREDIT_MUTUEL_DEFAULT = 'credit-mutuel-default',
|
|
30
|
-
N26_DEFAULT = 'n26-default',
|
|
31
|
-
REVOLUT_DEFAULT = 'revolut-default',
|
|
32
|
-
HSBC_DEFAULT = 'hsbc-default',
|
|
33
|
-
HSBC_UK_DEFAULT = 'hsbc-uk-default',
|
|
34
|
-
WISE_DEFAULT = 'wise-default',
|
|
35
|
-
CREDIT_DU_NORD_DEFAULT = 'cdn-default',
|
|
36
|
-
BRED_DEFAULT = 'bred-default',
|
|
37
|
-
QONTO_DEFAULT = 'qonto-default',
|
|
38
|
-
SHINE_DEFAULT = 'shine-default',
|
|
39
|
-
SWAN_DEFAULT = 'swan-default',
|
|
40
|
-
ROTHSCHILD_DEFAULT = 'rothschild-default',
|
|
41
|
-
FINOM_DEFAULT = 'finom-default',
|
|
42
|
-
TIIME_DEFAULT = 'tiime-default',
|
|
43
|
-
UBS_DEFAULT = 'ubs-default',
|
|
44
|
-
CAIXA_DEFAULT = 'caixa-default',
|
|
45
|
-
CDE_NET_DEFAULT = 'cde-net-default',
|
|
46
|
-
DELUBAC_DEFAULT = 'delubac-default',
|
|
47
|
-
AIRWALLEX_DEFAULT = 'airwallex-default',
|
|
48
|
-
PAYPAL_DEFAULT = 'paypal-default',
|
|
49
|
-
VIVA_WALLET_DEFAULT = 'viva-wallet-default',
|
|
50
|
-
PALATINE_DEFAULT = 'palatine-default',
|
|
51
|
-
NATIXIS_DEFAULT = 'natixis-default',
|
|
52
|
-
JPMORGAN_DEFAULT = 'jpmorgan-default',
|
|
53
|
-
LA_NEF_V1 = 'la-nef-v1',
|
|
54
|
-
LA_NEF_V2 = 'la-nef-v2',
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Display catalogue — one entry per supported (bank, version) pair.
|
|
59
|
-
* Drives dropdowns, "supported banks" pages, and customer docs.
|
|
60
|
-
*/
|
|
61
|
-
export interface RcbBankCatalogueEntry {
|
|
62
|
-
id: RcbBankVersionId;
|
|
63
|
-
bank: string;
|
|
64
|
-
version: string;
|
|
65
|
-
country: 'FR' | 'UK' | 'CH' | 'US' | 'PT' | 'EU' | 'INTL';
|
|
66
|
-
type: 'retail' | 'business' | 'neobank' | 'fintech' | 'corporate';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export const RCB_BANK_CATALOGUE: ReadonlyArray<RcbBankCatalogueEntry> = [
|
|
70
|
-
// ─── French retail / business ─────────────
|
|
71
|
-
{ id: RcbBankVersionId.BNP_CONNEXIS_DEFAULT, bank: 'BNP Connexis', version: 'default', country: 'FR', type: 'business' },
|
|
72
|
-
{ id: RcbBankVersionId.BNP_PARIBAS_DEFAULT, bank: 'BNP Paribas', version: 'default', country: 'FR', type: 'retail' },
|
|
73
|
-
{ id: RcbBankVersionId.SOCIETE_GENERALE_DEFAULT, bank: 'Société Générale', version: 'default', country: 'FR', type: 'retail' },
|
|
74
|
-
{ id: RcbBankVersionId.CREDIT_AGRICOLE_DEFAULT, bank: 'Crédit Agricole', version: 'default', country: 'FR', type: 'retail' },
|
|
75
|
-
{ id: RcbBankVersionId.LCL_DEFAULT, bank: 'LCL', version: 'default', country: 'FR', type: 'retail' },
|
|
76
|
-
{ id: RcbBankVersionId.BOURSORAMA_DEFAULT, bank: 'Boursorama', version: 'default', country: 'FR', type: 'retail' },
|
|
77
|
-
{ id: RcbBankVersionId.LA_BANQUE_POSTALE_DEFAULT, bank: 'La Banque Postale', version: 'default', country: 'FR', type: 'retail' },
|
|
78
|
-
{ id: RcbBankVersionId.CAISSE_EPARGNE_DEFAULT, bank: "Caisse d'Épargne", version: 'default', country: 'FR', type: 'retail' },
|
|
79
|
-
{ id: RcbBankVersionId.CIC_EBICS_DEFAULT, bank: 'CIC', version: 'ebics', country: 'FR', type: 'business' },
|
|
80
|
-
{ id: RcbBankVersionId.CIC_DEFAULT, bank: 'CIC', version: 'default', country: 'FR', type: 'retail' },
|
|
81
|
-
{ id: RcbBankVersionId.CREDIT_MUTUEL_DEFAULT, bank: 'Crédit Mutuel', version: 'default', country: 'FR', type: 'retail' },
|
|
82
|
-
{ id: RcbBankVersionId.BRED_DEFAULT, bank: 'BRED', version: 'default', country: 'FR', type: 'retail' },
|
|
83
|
-
{ id: RcbBankVersionId.CREDIT_DU_NORD_DEFAULT, bank: 'Crédit du Nord', version: 'default', country: 'FR', type: 'retail' },
|
|
84
|
-
{ id: RcbBankVersionId.CDE_NET_DEFAULT, bank: 'CDE Net', version: 'default', country: 'FR', type: 'business' },
|
|
85
|
-
{ id: RcbBankVersionId.DELUBAC_DEFAULT, bank: 'Delubac', version: 'default', country: 'FR', type: 'business' },
|
|
86
|
-
{ id: RcbBankVersionId.PALATINE_DEFAULT, bank: 'Palatine', version: 'default', country: 'FR', type: 'business' },
|
|
87
|
-
{ id: RcbBankVersionId.NATIXIS_DEFAULT, bank: 'Natixis', version: 'default', country: 'FR', type: 'corporate' },
|
|
88
|
-
{ id: RcbBankVersionId.THEMIS_DEFAULT, bank: 'Themis Banque', version: 'default', country: 'FR', type: 'business' },
|
|
89
|
-
{ id: RcbBankVersionId.ROTHSCHILD_DEFAULT, bank: 'Rothschild Martin Maurel', version: 'default', country: 'FR', type: 'corporate' },
|
|
90
|
-
{ id: RcbBankVersionId.LA_NEF_V1, bank: 'La Nef', version: 'v1', country: 'FR', type: 'retail' },
|
|
91
|
-
{ id: RcbBankVersionId.LA_NEF_V2, bank: 'La Nef', version: 'v2', country: 'FR', type: 'retail' },
|
|
92
|
-
|
|
93
|
-
// ─── Neobanks / fintech ───────────────────
|
|
94
|
-
{ id: RcbBankVersionId.QONTO_DEFAULT, bank: 'Qonto', version: 'default', country: 'FR', type: 'neobank' },
|
|
95
|
-
{ id: RcbBankVersionId.SHINE_DEFAULT, bank: 'Shine', version: 'default', country: 'FR', type: 'neobank' },
|
|
96
|
-
{ id: RcbBankVersionId.FINOM_DEFAULT, bank: 'Finom', version: 'default', country: 'EU', type: 'neobank' },
|
|
97
|
-
{ id: RcbBankVersionId.TIIME_DEFAULT, bank: 'Tiime', version: 'default', country: 'FR', type: 'neobank' },
|
|
98
|
-
{ id: RcbBankVersionId.SPENDESK_DEFAULT, bank: 'Spendesk', version: 'default', country: 'FR', type: 'fintech' },
|
|
99
|
-
{ id: RcbBankVersionId.SWAN_DEFAULT, bank: 'Swan', version: 'default', country: 'FR', type: 'fintech' },
|
|
100
|
-
{ id: RcbBankVersionId.N26_DEFAULT, bank: 'N26', version: 'default', country: 'EU', type: 'neobank' },
|
|
101
|
-
{ id: RcbBankVersionId.REVOLUT_DEFAULT, bank: 'Revolut', version: 'default', country: 'EU', type: 'neobank' },
|
|
102
|
-
{ id: RcbBankVersionId.WISE_DEFAULT, bank: 'Wise', version: 'default', country: 'INTL', type: 'fintech' },
|
|
103
|
-
{ id: RcbBankVersionId.PAYPAL_DEFAULT, bank: 'PayPal', version: 'default', country: 'INTL', type: 'fintech' },
|
|
104
|
-
{ id: RcbBankVersionId.AIRWALLEX_DEFAULT, bank: 'Airwallex', version: 'default', country: 'INTL', type: 'fintech' },
|
|
105
|
-
{ id: RcbBankVersionId.VIVA_WALLET_DEFAULT, bank: 'Viva Wallet', version: 'default', country: 'EU', type: 'fintech' },
|
|
106
|
-
|
|
107
|
-
// ─── International retail / corporate ─────
|
|
108
|
-
{ id: RcbBankVersionId.HSBC_DEFAULT, bank: 'HSBC', version: 'default', country: 'FR', type: 'retail' },
|
|
109
|
-
{ id: RcbBankVersionId.HSBC_UK_DEFAULT, bank: 'HSBC UK', version: 'default', country: 'UK', type: 'retail' },
|
|
110
|
-
{ id: RcbBankVersionId.UBS_DEFAULT, bank: 'UBS', version: 'default', country: 'CH', type: 'corporate' },
|
|
111
|
-
{ id: RcbBankVersionId.CAIXA_DEFAULT, bank: 'Caixa', version: 'default', country: 'PT', type: 'retail' },
|
|
112
|
-
{ id: RcbBankVersionId.JPMORGAN_DEFAULT, bank: 'JPMorgan', version: 'default', country: 'US', type: 'corporate' },
|
|
113
|
-
];
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Lookup by id (typed). Returns undefined for unknown ids — callers should
|
|
117
|
-
* treat that as "use auto mode" rather than crash.
|
|
118
|
-
*/
|
|
119
|
-
export function getRcbBankCatalogueEntry(
|
|
120
|
-
id: string,
|
|
121
|
-
): RcbBankCatalogueEntry | undefined {
|
|
122
|
-
return RCB_BANK_CATALOGUE.find((e) => e.id === id);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Group catalogue entries by the bank display name. Useful for UIs that
|
|
127
|
-
* show "BNP Paribas" once with a sub-menu listing all supported versions.
|
|
128
|
-
*/
|
|
129
|
-
export function groupRcbCatalogueByBank(): Map<string, RcbBankCatalogueEntry[]> {
|
|
130
|
-
const out = new Map<string, RcbBankCatalogueEntry[]>();
|
|
131
|
-
for (const entry of RCB_BANK_CATALOGUE) {
|
|
132
|
-
const list = out.get(entry.bank) ?? [];
|
|
133
|
-
list.push(entry);
|
|
134
|
-
out.set(entry.bank, list);
|
|
135
|
-
}
|
|
136
|
-
return out;
|
|
137
|
-
}
|
|
1
|
+
// ──────────────────────────────────────────────
|
|
2
|
+
// RCB — Formal catalogue of supported banks and versions.
|
|
3
|
+
//
|
|
4
|
+
// Mirrors the server-side registry (BANK_VERSIONS in abyss-tools/apps/api).
|
|
5
|
+
// Use these enums whenever you reference a bank or version in hint mode,
|
|
6
|
+
// UI dropdowns, or per-bank metrics. Adding a bank?
|
|
7
|
+
// 1. Add the entry to BANK_VERSIONS in apps/api.
|
|
8
|
+
// 2. Add the matching id here. CI will catch any mismatch.
|
|
9
|
+
// ──────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Stable id of a bank+version profile. The wire-format string used in
|
|
13
|
+
* `hint.bank` (POST /rcb/extract mode=hint) and returned in
|
|
14
|
+
* extraction.strategy_used.
|
|
15
|
+
*/
|
|
16
|
+
export enum RcbBankVersionId {
|
|
17
|
+
BNP_CONNEXIS_DEFAULT = 'bnp-connexis-default',
|
|
18
|
+
BNP_PARIBAS_DEFAULT = 'bnp-paribas-default',
|
|
19
|
+
SOCIETE_GENERALE_DEFAULT = 'societe-generale-default',
|
|
20
|
+
CREDIT_AGRICOLE_DEFAULT = 'credit-agricole-default',
|
|
21
|
+
LCL_DEFAULT = 'lcl-default',
|
|
22
|
+
BOURSORAMA_DEFAULT = 'boursorama-default',
|
|
23
|
+
SPENDESK_DEFAULT = 'spendesk-default',
|
|
24
|
+
LA_BANQUE_POSTALE_DEFAULT = 'la-banque-postale-default',
|
|
25
|
+
CAISSE_EPARGNE_DEFAULT = 'caisse-epargne-default',
|
|
26
|
+
THEMIS_DEFAULT = 'themis-default',
|
|
27
|
+
CIC_EBICS_DEFAULT = 'cic-ebics-default',
|
|
28
|
+
CIC_DEFAULT = 'cic-default',
|
|
29
|
+
CREDIT_MUTUEL_DEFAULT = 'credit-mutuel-default',
|
|
30
|
+
N26_DEFAULT = 'n26-default',
|
|
31
|
+
REVOLUT_DEFAULT = 'revolut-default',
|
|
32
|
+
HSBC_DEFAULT = 'hsbc-default',
|
|
33
|
+
HSBC_UK_DEFAULT = 'hsbc-uk-default',
|
|
34
|
+
WISE_DEFAULT = 'wise-default',
|
|
35
|
+
CREDIT_DU_NORD_DEFAULT = 'cdn-default',
|
|
36
|
+
BRED_DEFAULT = 'bred-default',
|
|
37
|
+
QONTO_DEFAULT = 'qonto-default',
|
|
38
|
+
SHINE_DEFAULT = 'shine-default',
|
|
39
|
+
SWAN_DEFAULT = 'swan-default',
|
|
40
|
+
ROTHSCHILD_DEFAULT = 'rothschild-default',
|
|
41
|
+
FINOM_DEFAULT = 'finom-default',
|
|
42
|
+
TIIME_DEFAULT = 'tiime-default',
|
|
43
|
+
UBS_DEFAULT = 'ubs-default',
|
|
44
|
+
CAIXA_DEFAULT = 'caixa-default',
|
|
45
|
+
CDE_NET_DEFAULT = 'cde-net-default',
|
|
46
|
+
DELUBAC_DEFAULT = 'delubac-default',
|
|
47
|
+
AIRWALLEX_DEFAULT = 'airwallex-default',
|
|
48
|
+
PAYPAL_DEFAULT = 'paypal-default',
|
|
49
|
+
VIVA_WALLET_DEFAULT = 'viva-wallet-default',
|
|
50
|
+
PALATINE_DEFAULT = 'palatine-default',
|
|
51
|
+
NATIXIS_DEFAULT = 'natixis-default',
|
|
52
|
+
JPMORGAN_DEFAULT = 'jpmorgan-default',
|
|
53
|
+
LA_NEF_V1 = 'la-nef-v1',
|
|
54
|
+
LA_NEF_V2 = 'la-nef-v2',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Display catalogue — one entry per supported (bank, version) pair.
|
|
59
|
+
* Drives dropdowns, "supported banks" pages, and customer docs.
|
|
60
|
+
*/
|
|
61
|
+
export interface RcbBankCatalogueEntry {
|
|
62
|
+
id: RcbBankVersionId;
|
|
63
|
+
bank: string;
|
|
64
|
+
version: string;
|
|
65
|
+
country: 'FR' | 'UK' | 'CH' | 'US' | 'PT' | 'EU' | 'INTL';
|
|
66
|
+
type: 'retail' | 'business' | 'neobank' | 'fintech' | 'corporate';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export const RCB_BANK_CATALOGUE: ReadonlyArray<RcbBankCatalogueEntry> = [
|
|
70
|
+
// ─── French retail / business ─────────────
|
|
71
|
+
{ id: RcbBankVersionId.BNP_CONNEXIS_DEFAULT, bank: 'BNP Connexis', version: 'default', country: 'FR', type: 'business' },
|
|
72
|
+
{ id: RcbBankVersionId.BNP_PARIBAS_DEFAULT, bank: 'BNP Paribas', version: 'default', country: 'FR', type: 'retail' },
|
|
73
|
+
{ id: RcbBankVersionId.SOCIETE_GENERALE_DEFAULT, bank: 'Société Générale', version: 'default', country: 'FR', type: 'retail' },
|
|
74
|
+
{ id: RcbBankVersionId.CREDIT_AGRICOLE_DEFAULT, bank: 'Crédit Agricole', version: 'default', country: 'FR', type: 'retail' },
|
|
75
|
+
{ id: RcbBankVersionId.LCL_DEFAULT, bank: 'LCL', version: 'default', country: 'FR', type: 'retail' },
|
|
76
|
+
{ id: RcbBankVersionId.BOURSORAMA_DEFAULT, bank: 'Boursorama', version: 'default', country: 'FR', type: 'retail' },
|
|
77
|
+
{ id: RcbBankVersionId.LA_BANQUE_POSTALE_DEFAULT, bank: 'La Banque Postale', version: 'default', country: 'FR', type: 'retail' },
|
|
78
|
+
{ id: RcbBankVersionId.CAISSE_EPARGNE_DEFAULT, bank: "Caisse d'Épargne", version: 'default', country: 'FR', type: 'retail' },
|
|
79
|
+
{ id: RcbBankVersionId.CIC_EBICS_DEFAULT, bank: 'CIC', version: 'ebics', country: 'FR', type: 'business' },
|
|
80
|
+
{ id: RcbBankVersionId.CIC_DEFAULT, bank: 'CIC', version: 'default', country: 'FR', type: 'retail' },
|
|
81
|
+
{ id: RcbBankVersionId.CREDIT_MUTUEL_DEFAULT, bank: 'Crédit Mutuel', version: 'default', country: 'FR', type: 'retail' },
|
|
82
|
+
{ id: RcbBankVersionId.BRED_DEFAULT, bank: 'BRED', version: 'default', country: 'FR', type: 'retail' },
|
|
83
|
+
{ id: RcbBankVersionId.CREDIT_DU_NORD_DEFAULT, bank: 'Crédit du Nord', version: 'default', country: 'FR', type: 'retail' },
|
|
84
|
+
{ id: RcbBankVersionId.CDE_NET_DEFAULT, bank: 'CDE Net', version: 'default', country: 'FR', type: 'business' },
|
|
85
|
+
{ id: RcbBankVersionId.DELUBAC_DEFAULT, bank: 'Delubac', version: 'default', country: 'FR', type: 'business' },
|
|
86
|
+
{ id: RcbBankVersionId.PALATINE_DEFAULT, bank: 'Palatine', version: 'default', country: 'FR', type: 'business' },
|
|
87
|
+
{ id: RcbBankVersionId.NATIXIS_DEFAULT, bank: 'Natixis', version: 'default', country: 'FR', type: 'corporate' },
|
|
88
|
+
{ id: RcbBankVersionId.THEMIS_DEFAULT, bank: 'Themis Banque', version: 'default', country: 'FR', type: 'business' },
|
|
89
|
+
{ id: RcbBankVersionId.ROTHSCHILD_DEFAULT, bank: 'Rothschild Martin Maurel', version: 'default', country: 'FR', type: 'corporate' },
|
|
90
|
+
{ id: RcbBankVersionId.LA_NEF_V1, bank: 'La Nef', version: 'v1', country: 'FR', type: 'retail' },
|
|
91
|
+
{ id: RcbBankVersionId.LA_NEF_V2, bank: 'La Nef', version: 'v2', country: 'FR', type: 'retail' },
|
|
92
|
+
|
|
93
|
+
// ─── Neobanks / fintech ───────────────────
|
|
94
|
+
{ id: RcbBankVersionId.QONTO_DEFAULT, bank: 'Qonto', version: 'default', country: 'FR', type: 'neobank' },
|
|
95
|
+
{ id: RcbBankVersionId.SHINE_DEFAULT, bank: 'Shine', version: 'default', country: 'FR', type: 'neobank' },
|
|
96
|
+
{ id: RcbBankVersionId.FINOM_DEFAULT, bank: 'Finom', version: 'default', country: 'EU', type: 'neobank' },
|
|
97
|
+
{ id: RcbBankVersionId.TIIME_DEFAULT, bank: 'Tiime', version: 'default', country: 'FR', type: 'neobank' },
|
|
98
|
+
{ id: RcbBankVersionId.SPENDESK_DEFAULT, bank: 'Spendesk', version: 'default', country: 'FR', type: 'fintech' },
|
|
99
|
+
{ id: RcbBankVersionId.SWAN_DEFAULT, bank: 'Swan', version: 'default', country: 'FR', type: 'fintech' },
|
|
100
|
+
{ id: RcbBankVersionId.N26_DEFAULT, bank: 'N26', version: 'default', country: 'EU', type: 'neobank' },
|
|
101
|
+
{ id: RcbBankVersionId.REVOLUT_DEFAULT, bank: 'Revolut', version: 'default', country: 'EU', type: 'neobank' },
|
|
102
|
+
{ id: RcbBankVersionId.WISE_DEFAULT, bank: 'Wise', version: 'default', country: 'INTL', type: 'fintech' },
|
|
103
|
+
{ id: RcbBankVersionId.PAYPAL_DEFAULT, bank: 'PayPal', version: 'default', country: 'INTL', type: 'fintech' },
|
|
104
|
+
{ id: RcbBankVersionId.AIRWALLEX_DEFAULT, bank: 'Airwallex', version: 'default', country: 'INTL', type: 'fintech' },
|
|
105
|
+
{ id: RcbBankVersionId.VIVA_WALLET_DEFAULT, bank: 'Viva Wallet', version: 'default', country: 'EU', type: 'fintech' },
|
|
106
|
+
|
|
107
|
+
// ─── International retail / corporate ─────
|
|
108
|
+
{ id: RcbBankVersionId.HSBC_DEFAULT, bank: 'HSBC', version: 'default', country: 'FR', type: 'retail' },
|
|
109
|
+
{ id: RcbBankVersionId.HSBC_UK_DEFAULT, bank: 'HSBC UK', version: 'default', country: 'UK', type: 'retail' },
|
|
110
|
+
{ id: RcbBankVersionId.UBS_DEFAULT, bank: 'UBS', version: 'default', country: 'CH', type: 'corporate' },
|
|
111
|
+
{ id: RcbBankVersionId.CAIXA_DEFAULT, bank: 'Caixa', version: 'default', country: 'PT', type: 'retail' },
|
|
112
|
+
{ id: RcbBankVersionId.JPMORGAN_DEFAULT, bank: 'JPMorgan', version: 'default', country: 'US', type: 'corporate' },
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Lookup by id (typed). Returns undefined for unknown ids — callers should
|
|
117
|
+
* treat that as "use auto mode" rather than crash.
|
|
118
|
+
*/
|
|
119
|
+
export function getRcbBankCatalogueEntry(
|
|
120
|
+
id: string,
|
|
121
|
+
): RcbBankCatalogueEntry | undefined {
|
|
122
|
+
return RCB_BANK_CATALOGUE.find((e) => e.id === id);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Group catalogue entries by the bank display name. Useful for UIs that
|
|
127
|
+
* show "BNP Paribas" once with a sub-menu listing all supported versions.
|
|
128
|
+
*/
|
|
129
|
+
export function groupRcbCatalogueByBank(): Map<string, RcbBankCatalogueEntry[]> {
|
|
130
|
+
const out = new Map<string, RcbBankCatalogueEntry[]>();
|
|
131
|
+
for (const entry of RCB_BANK_CATALOGUE) {
|
|
132
|
+
const list = out.get(entry.bank) ?? [];
|
|
133
|
+
list.push(entry);
|
|
134
|
+
out.set(entry.bank, list);
|
|
135
|
+
}
|
|
136
|
+
return out;
|
|
137
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './interface';
|
|
2
|
-
export * from './enum';
|
|
3
|
-
export * from './draw.type';
|
|
4
|
-
|
|
5
|
-
export type ValueOf<T> = T[keyof T];
|
|
1
|
+
export * from './interface';
|
|
2
|
+
export * from './enum';
|
|
3
|
+
export * from './draw.type';
|
|
4
|
+
|
|
5
|
+
export type ValueOf<T> = T[keyof T];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './requests';
|
|
2
|
-
export * from './responses';
|
|
3
|
-
export * from './type-message/response';
|
|
4
|
-
export * from './type-message/api-error';
|
|
5
|
-
export * from './type-message/base-paginate';
|
|
1
|
+
export * from './requests';
|
|
2
|
+
export * from './responses';
|
|
3
|
+
export * from './type-message/response';
|
|
4
|
+
export * from './type-message/api-error';
|
|
5
|
+
export * from './type-message/base-paginate';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface IActivateUserServiceAbyssAdminBody {
|
|
2
|
-
userId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ISyncOrganizationAbyssAdminBody {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
slug: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ISyncProjectAbyssAdminBody {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
createdByUserId: string;
|
|
15
|
-
organizationId: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type IGetProjectContentSummaryAdminParams = {
|
|
19
|
-
projectId: string;
|
|
20
|
-
};
|
|
1
|
+
export interface IActivateUserServiceAbyssAdminBody {
|
|
2
|
+
userId: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface ISyncOrganizationAbyssAdminBody {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ISyncProjectAbyssAdminBody {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
createdByUserId: string;
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type IGetProjectContentSummaryAdminParams = {
|
|
19
|
+
projectId: string;
|
|
20
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
|
|
3
|
-
export type IGetUploadPreSignedUrlAtlasDocumentParams = {
|
|
4
|
-
atlasId: string;
|
|
5
|
-
atlasPageId: string;
|
|
6
|
-
};
|
|
7
|
-
export type IGetUploadPreSignedUrlAtlasDocumentBody = {
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type IGetAtlasDocumentParams = {
|
|
12
|
-
atlasId: string;
|
|
13
|
-
atlasDocumentId: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type IDeleteAtlasDocumentParams = {
|
|
17
|
-
atlasId: string;
|
|
18
|
-
atlasDocumentId: string;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type IPaginateAtlasDocumentParams = {
|
|
22
|
-
atlasId: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type IPaginateAtlasDocumentQuery = QueryPaginate & {
|
|
26
|
-
atlasPageId?: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export type IListAtlasDocumentParams = {
|
|
30
|
-
atlasId: string;
|
|
31
|
-
atlasPageId: string;
|
|
32
|
-
};
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
|
|
3
|
+
export type IGetUploadPreSignedUrlAtlasDocumentParams = {
|
|
4
|
+
atlasId: string;
|
|
5
|
+
atlasPageId: string;
|
|
6
|
+
};
|
|
7
|
+
export type IGetUploadPreSignedUrlAtlasDocumentBody = {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type IGetAtlasDocumentParams = {
|
|
12
|
+
atlasId: string;
|
|
13
|
+
atlasDocumentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type IDeleteAtlasDocumentParams = {
|
|
17
|
+
atlasId: string;
|
|
18
|
+
atlasDocumentId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type IPaginateAtlasDocumentParams = {
|
|
22
|
+
atlasId: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type IPaginateAtlasDocumentQuery = QueryPaginate & {
|
|
26
|
+
atlasPageId?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type IListAtlasDocumentParams = {
|
|
30
|
+
atlasId: string;
|
|
31
|
+
atlasPageId: string;
|
|
32
|
+
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface IGetAtlasGroupParams {
|
|
2
|
-
atlasId: string;
|
|
3
|
-
atlasGroupId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface IPaginateAtlasGroupParams {
|
|
7
|
-
atlasId: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IPaginateAtlasGroupQuery {
|
|
11
|
-
name?: string;
|
|
12
|
-
parentAtlasGroupId?: string;
|
|
13
|
-
page?: number;
|
|
14
|
-
limit?: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ICreateAtlasGroupParams {
|
|
18
|
-
atlasId: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ICreateAtlasGroupBody {
|
|
21
|
-
name: string;
|
|
22
|
-
description?: string | null;
|
|
23
|
-
icon?: string | null;
|
|
24
|
-
color?: string | null;
|
|
25
|
-
parentAtlasGroupId?: string | null;
|
|
26
|
-
position?: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface IUpdateAtlasGroupParams {
|
|
30
|
-
atlasId: string;
|
|
31
|
-
atlasGroupId: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IUpdateAtlasGroupBody {
|
|
34
|
-
name?: string;
|
|
35
|
-
description?: string | null;
|
|
36
|
-
icon?: string | null;
|
|
37
|
-
color?: string | null;
|
|
38
|
-
parentAtlasGroupId?: string | null;
|
|
39
|
-
position?: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface IDeleteAtlasGroupParams {
|
|
43
|
-
atlasId: string;
|
|
44
|
-
atlasGroupId: string;
|
|
45
|
-
}
|
|
1
|
+
export interface IGetAtlasGroupParams {
|
|
2
|
+
atlasId: string;
|
|
3
|
+
atlasGroupId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface IPaginateAtlasGroupParams {
|
|
7
|
+
atlasId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IPaginateAtlasGroupQuery {
|
|
11
|
+
name?: string;
|
|
12
|
+
parentAtlasGroupId?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
limit?: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ICreateAtlasGroupParams {
|
|
18
|
+
atlasId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ICreateAtlasGroupBody {
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
icon?: string | null;
|
|
24
|
+
color?: string | null;
|
|
25
|
+
parentAtlasGroupId?: string | null;
|
|
26
|
+
position?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface IUpdateAtlasGroupParams {
|
|
30
|
+
atlasId: string;
|
|
31
|
+
atlasGroupId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IUpdateAtlasGroupBody {
|
|
34
|
+
name?: string;
|
|
35
|
+
description?: string | null;
|
|
36
|
+
icon?: string | null;
|
|
37
|
+
color?: string | null;
|
|
38
|
+
parentAtlasGroupId?: string | null;
|
|
39
|
+
position?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IDeleteAtlasGroupParams {
|
|
43
|
+
atlasId: string;
|
|
44
|
+
atlasGroupId: string;
|
|
45
|
+
}
|