@silexpert/core 2.0.44 → 2.0.45

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.
Files changed (77) hide show
  1. package/dist/api/resources/KycMandate.d.ts +7 -0
  2. package/dist/api/resources/KycMandate.d.ts.map +1 -0
  3. package/dist/api/resources/KycMandate.js +10 -0
  4. package/dist/api/resources/KycMandate.js.map +1 -0
  5. package/dist/api/resources/Vialink.d.ts +7 -0
  6. package/dist/api/resources/Vialink.d.ts.map +1 -0
  7. package/dist/api/resources/Vialink.js +10 -0
  8. package/dist/api/resources/Vialink.js.map +1 -0
  9. package/dist/api/resources.d.ts +4 -0
  10. package/dist/api/resources.d.ts.map +1 -1
  11. package/dist/api/resources.js +4 -0
  12. package/dist/api/resources.js.map +1 -1
  13. package/dist/types/Enum/Country.d.ts +1 -0
  14. package/dist/types/Enum/Country.d.ts.map +1 -1
  15. package/dist/types/Enum/Country.js +516 -230
  16. package/dist/types/Enum/Country.js.map +1 -1
  17. package/dist/types/Enum/InpiType.d.ts +290 -0
  18. package/dist/types/Enum/InpiType.d.ts.map +1 -1
  19. package/dist/types/Enum/InpiType.js +290 -0
  20. package/dist/types/Enum/InpiType.js.map +1 -1
  21. package/dist/types/Enum/LegalForm.d.ts +0 -1
  22. package/dist/types/Enum/LegalForm.d.ts.map +1 -1
  23. package/dist/types/Enum/LegalForm.js +104 -33
  24. package/dist/types/Enum/LegalForm.js.map +1 -1
  25. package/dist/types/Interface/api/config/ConfigType.d.ts +13 -0
  26. package/dist/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  27. package/dist/types/Interface/api/config/ConfigType.js.map +1 -1
  28. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts +41 -0
  29. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts.map +1 -0
  30. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js +2 -0
  31. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js.map +1 -0
  32. package/dist/types/Interface/api/docoon/Read.d.ts +59 -0
  33. package/dist/types/Interface/api/docoon/Read.d.ts.map +1 -1
  34. package/dist/types/Interface/api/docoon/Read.js.map +1 -1
  35. package/dist/types/Interface/api/inpi/inpi.d.ts +1 -0
  36. package/dist/types/Interface/api/inpi/inpi.d.ts.map +1 -1
  37. package/dist/types/Interface/api/inpi/inpi.js.map +1 -1
  38. package/dist/types/Interface/api/kyc/Create.d.ts +87 -0
  39. package/dist/types/Interface/api/kyc/Create.d.ts.map +1 -0
  40. package/dist/types/Interface/api/kyc/Create.js +105 -0
  41. package/dist/types/Interface/api/kyc/Create.js.map +1 -0
  42. package/dist/types/Interface/api/kyc/Read.d.ts +830 -0
  43. package/dist/types/Interface/api/kyc/Read.d.ts.map +1 -0
  44. package/dist/types/Interface/api/kyc/Read.js +2 -0
  45. package/dist/types/Interface/api/kyc/Read.js.map +1 -0
  46. package/dist/types/Interface/api/kyc/kyc.d.ts +157 -0
  47. package/dist/types/Interface/api/kyc/kyc.d.ts.map +1 -0
  48. package/dist/types/Interface/api/kyc/kyc.js +6 -0
  49. package/dist/types/Interface/api/kyc/kyc.js.map +1 -0
  50. package/dist/types/Interface/api/user/RegisterProspect.d.ts +5 -1
  51. package/dist/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  52. package/dist/types/Interface/api/user/RegisterProspect.js.map +1 -1
  53. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +23 -0
  54. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -0
  55. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +22 -0
  56. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -0
  57. package/dist/types/index.d.ts +4 -0
  58. package/dist/types/index.d.ts.map +1 -1
  59. package/dist/types/index.js +4 -0
  60. package/dist/types/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/KycMandate.ts +12 -0
  63. package/ts/api/resources/Vialink.ts +12 -0
  64. package/ts/api/resources.ts +4 -0
  65. package/ts/types/Enum/Country.ts +517 -230
  66. package/ts/types/Enum/InpiType.ts +291 -0
  67. package/ts/types/Enum/LegalForm.ts +104 -34
  68. package/ts/types/Interface/api/config/ConfigType.ts +14 -0
  69. package/ts/types/Interface/api/docoon/DocoonLegalEntity.ts +79 -0
  70. package/ts/types/Interface/api/docoon/Read.ts +60 -0
  71. package/ts/types/Interface/api/inpi/inpi.ts +1 -0
  72. package/ts/types/Interface/api/kyc/Create.ts +136 -0
  73. package/ts/types/Interface/api/kyc/Read.ts +842 -0
  74. package/ts/types/Interface/api/kyc/kyc.ts +190 -0
  75. package/ts/types/Interface/api/user/RegisterProspect.ts +5 -1
  76. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +25 -0
  77. package/ts/types/index.ts +4 -0
@@ -47,3 +47,294 @@ export const InpiPaymentType = {
47
47
  label: 'Stripe (ECB)',
48
48
  },
49
49
  };
50
+
51
+ export const InpiRoleEntrepriseType = {
52
+ MEMBRE: {
53
+ id: 11,
54
+ label: 'MEMBRE',
55
+ },
56
+ CONTROLEUR_GESTION: {
57
+ id: 13,
58
+ label: 'CONTRÔLEUR DE GESTION',
59
+ },
60
+ CONTROLEUR_COMPTES: {
61
+ id: 14,
62
+ label: 'CONTRÔLEUR DES COMPTES',
63
+ },
64
+ AUTRE_ASSOCIE: {
65
+ id: 23,
66
+ label: 'AUTRE ASSOCIÉ MAJORITAIRE',
67
+ },
68
+ GERANT_ASSO_SOLIDAIRE: {
69
+ id: 28,
70
+ label: 'GÉRANT ET ASSOCIÉ INDÉFINIMENT ET SOLIDAIREMENT RESPONSABLE',
71
+ },
72
+ GERANT_ASSO_: {
73
+ id: 29,
74
+ label: 'GÉRANT ET ASSOCIÉ INDÉFINIMENT RESPONSABLE',
75
+ },
76
+ GERANT: {
77
+ id: 30,
78
+ label: 'GERANT',
79
+ },
80
+ LIQUIDATEUR: {
81
+ id: 40,
82
+ label: 'LIQUIDATEUR',
83
+ },
84
+ ASSOCIE_UNIQUE: {
85
+ id: 41,
86
+ label: 'ASSOCIÉ UNIQUE',
87
+ },
88
+ PRESIDENT_CONSEIL_ADMIN: {
89
+ id: 51,
90
+ label: "PRÉSIDENT DU CONSEIL D'ADMINISTRATION",
91
+ },
92
+ PRESIDENT_DIRECTOIR: {
93
+ id: 52,
94
+ label: 'PRÉSIDENT DU DIRECTOIR',
95
+ },
96
+ DIRECTEUR_GENERAL: {
97
+ id: 53,
98
+ label: 'DIRECTEUR GÉNÉRAL',
99
+ },
100
+ DIRIGEANT_ETRANGER_PERSONNE_MORALE: {
101
+ id: 55,
102
+ label: "DIRIGEANT À L'ÉTRANGER D'UNE PERSONNE MORALE ÉTRANGÈRE",
103
+ },
104
+ DIRIGEANT_FRANCE_PERSONNE_MORALE: {
105
+ id: 56,
106
+ label: "DIRIGEANT EN FRANCE D'UNE PERSONNE MORALE ÉTRANGÈRE",
107
+ },
108
+ PRESIDENT_CONSEIL_ADMIN_ET_DIRECTEUR_GENERAL: {
109
+ id: 60,
110
+ label: "PRESIDENT DU CONSEIL D'ADMINISTRATION ET DIRECTEUR GÉNÉRAL",
111
+ },
112
+ PRESIDENT_CONSEIL_SURVEILLANCE: {
113
+ id: 61,
114
+ label: 'PRESIDENT DU CONSEIL DE SURVEILLANCE',
115
+ },
116
+ MEMBRE_DIRECTOIRE: {
117
+ id: 63,
118
+ label: 'MEMBRE DU DIRECTOIRE',
119
+ },
120
+ MEMBRE_CONSEIL_SURVEILLANCE: {
121
+ id: 64,
122
+ label: 'MEMBRE DU CONSEIL DE SURVEILLANCE',
123
+ },
124
+ ADMIN: {
125
+ id: 65,
126
+ label: 'ADMINISTRATEUR',
127
+ },
128
+ PERSONNE_AYANT_POUVOIR_TITRE_HABITUEL: {
129
+ id: 66,
130
+ label: "PERSONNE AYANT LE POUVOIR D'ENGAGER À TITRE HABITUEL LA SOCIÉTÉ",
131
+ },
132
+ PERSONNE_AYANT_POUVOIR_ETABLISSEMENT: {
133
+ id: 67,
134
+ label: "PERSONNE AYANT LE POUVOIR D'ENGAGER L'ÉTABLISSEMENT",
135
+ },
136
+ DIRECTEUR_GENERAL_UNIQUE_SA_DIRECTOIRE: {
137
+ id: 69,
138
+ label: 'DIRECTEUR GÉNÉRAL UNIQUE DE SA À DIRECTOIRE',
139
+ },
140
+ DIRECTEUR_GENERAL_DELEGUE: {
141
+ id: 70,
142
+ label: 'DIRECTEUR GÉNÉRAL DÉLÉGUÉ',
143
+ },
144
+ COMMISAIRE_TITULAIRE: {
145
+ id: 71,
146
+ label: 'COMMISSAIRE AUX COMPTE TITULAIRE',
147
+ },
148
+ COMMISSAIRE_SUPPLEANT: {
149
+ id: 72,
150
+ label: 'COMMISSAIRE AUX COMPTES SUPPLEANT',
151
+ },
152
+ PRESIDENT_SAS: {
153
+ id: 73,
154
+ label: 'PRÉSIDENT DE SAS',
155
+ },
156
+ ASSOCIE_SOLIDAIRE_RESPONSABLE: {
157
+ id: 74,
158
+ label: 'ASSOCIÉ INDÉFINIMENT ET SOLIDAIREMENT RESPONSABLE',
159
+ },
160
+ ASSOCIE_RESPONSABLE: {
161
+ id: 75,
162
+ label: 'ASSOCIÉ INDÉFINIMENT RESPONSABLE',
163
+ },
164
+ REPRESENTANT_SOCIAL_ENTREPRISE_PERSONE_ETRANGERE_SANS_ETABLISSEMENT_FRANCE: {
165
+ id: 76,
166
+ label: "REPRÉSENTANT SOCIAL D'UNE ENTREPRISE PERSONNE ÉTRANGÈRE SANS ÉTABLISSEMENT EN FRANCE",
167
+ },
168
+ REPRESENTANT_FISCAL_ENTREPRISE_PERSONE_ETRANGERE_SANS_ETABLISSEMENT_FRANCE: {
169
+ id: 77,
170
+ label: "REPRÉSENTANT FISCAL D'UNE ENTREPRISE PERSONNE ÉTRANGÈRE SANS ÉTABLISSEMENT EN FRANCE",
171
+ },
172
+ INDIVISAIRE: {
173
+ id: 82,
174
+ label: 'INDIVISAIRE',
175
+ },
176
+ EXPLOITANT_COMPTE_INDIVISION: {
177
+ id: 86,
178
+ label: "EXPLOITANT POUR LE COMPTE DE L'INDIVISION",
179
+ },
180
+ PERSONNE_PHYSIQUE_EXPLOITANT: {
181
+ id: 90,
182
+ label: 'PERSONNE PHYSIQUE EXPLOITANT EN COMMUN',
183
+ },
184
+ MEMBRE_NON_SALARIE_TRAVAUX: {
185
+ id: 94,
186
+ label: 'MEMBRE NON SALARIÉ PARTICIPANT AUX TRAVAUX',
187
+ },
188
+ ASSOCIE_GESTIO: {
189
+ id: 95,
190
+ label: 'ASSOCIÉ QUI PARTICIPE À LA GESTION',
191
+ },
192
+ ASSOCIE_NON_SALARIE: {
193
+ id: 96,
194
+ label: 'ASSOCIE NON SALARIÉ',
195
+ },
196
+ MANDATAIRE_AD_HOC: {
197
+ id: 97,
198
+ label: 'MANDATAIRE AD HOC',
199
+ },
200
+ ADMIN_PROVISOIR: {
201
+ id: 98,
202
+ label: 'ADMINISTRATEUR PROVISOIR',
203
+ },
204
+ AUTRE: {
205
+ id: 99,
206
+ label: 'AUTRE',
207
+ },
208
+ REPRENENEUR: {
209
+ id: 100,
210
+ label: 'REPRENENEUR',
211
+ },
212
+ ENTREPRENEUR: {
213
+ id: 101,
214
+ label: 'ENTREPRENEUR',
215
+ },
216
+ SUPPLEANT: {
217
+ id: 103,
218
+ label: 'SUPPLÉANT',
219
+ },
220
+ PERSONNE_CHARGE_CONTROLE: {
221
+ id: 104,
222
+ label: 'PERSONNE CHARGÉ DU CONTRÔLE',
223
+ },
224
+ PERSONNE_DECISIONNAIRE_DESIGNEE: {
225
+ id: 105,
226
+ label: 'PERSONNE DÉCISIONNAIRE DÉSIGNÉE',
227
+ },
228
+ COMPTABLE: {
229
+ id: 106,
230
+ label: 'COMPTABLE',
231
+ },
232
+ HERITIER_INDIVISAIRE: {
233
+ id: 107,
234
+ label: 'HÉRITIER INDIVISAIRE',
235
+ },
236
+ LOUEUR: {
237
+ id: 108,
238
+ label: 'LOUEUR',
239
+ },
240
+ MANDATAIRE_FISCAL: {
241
+ id: 109,
242
+ label: 'MANDATAIRE FISCAL',
243
+ },
244
+ VICE_PRESIDENT: {
245
+ id: 110,
246
+ label: 'VICE PRÉSIDENT',
247
+ },
248
+ VICE_PRESIDENT_DIRECTOIRE: {
249
+ id: 111,
250
+ label: 'VICE PRÉSIDENT DU DIRECTOIRE',
251
+ },
252
+ VICE_PRESIDENT_CONSEIL_ORIENTATION_SURVEILLANCE: {
253
+ id: 120,
254
+ label: "VICE PRÉSIDENT DU CONSEIL D'ORIENTATION ET DE SURVEILLANCE",
255
+ },
256
+ PRESIDENT_CONSEIL_ORIENTATION_SURVEILLANCE: {
257
+ id: 121,
258
+ label: "PRÉSIDENT DU CONSEIL D'ORIENTATION ET DE SURVEILLANCE",
259
+ },
260
+ MEMBRE_CONSEIL_ORIENTATION_SURVEILLANCE: {
261
+ id: 122,
262
+ label: "MEMBRE DU CONSEIL D'ORIENTATION ET DE SURVEILLANCE",
263
+ },
264
+ ASSOCIE_UNIQUE_PATRIMOINE: {
265
+ id: 130,
266
+ label: 'ASSOCIÉ UNIQUE QUI RÉCUPÈRE LE PATRIMOINE',
267
+ },
268
+ ASSOCIE_COMMANDITE: {
269
+ id: 131,
270
+ label: 'ASSOCIÉ COMMANDITÉ',
271
+ },
272
+ ASSOCIE_COMMANDITAIRE: {
273
+ id: 132,
274
+ label: 'ASSOCIE_COMMANDITAIRE',
275
+ },
276
+ ADMIN_REPRESENTANT_SALARIES: {
277
+ id: 135,
278
+ label: 'ADMINISTRATEURS REPRÉSENTANT LES SALARIÉS',
279
+ },
280
+ PRESIDENT_EPIC: {
281
+ id: 140,
282
+ label: "PRÉSIDENT DE L'EPIC",
283
+ },
284
+ AVOCAT: {
285
+ id: 150,
286
+ label: 'AVOCAT',
287
+ },
288
+ FICUDIAIRE: {
289
+ id: 200,
290
+ label: 'FICUDIAIRE',
291
+ },
292
+ DIRIGEANT: {
293
+ id: 201,
294
+ label: 'DIRIGEANT',
295
+ },
296
+ REPRESENTANT_ASSUJETI_UNIQUE: {
297
+ id: 202,
298
+ label: "REPRÉSENTANT DE L'ASSUJETI UNIQUE",
299
+ },
300
+ MEMBRE_MANDAT_GENERAL_ADMIN: {
301
+ id: 203,
302
+ label: "MEMBRE BÉNÉFICIANT D'UN MANDATE GÉNÉRAL D'ADMINISTRATION",
303
+ },
304
+ PERSONNE_CAPABLE_ENGAGER_ENTITE: {
305
+ id: 204,
306
+ label: "PERSONNE CAPABLE D'ENGAGER L'ENTITÉ",
307
+ },
308
+ PRESIDENT: {
309
+ id: 205,
310
+ label: 'PRÉSIDENT',
311
+ },
312
+ DIRECTEUR: {
313
+ id: 206,
314
+ label: 'DIRECTEUR',
315
+ },
316
+ TRESORIER: {
317
+ id: 207,
318
+ label: 'TRÉSORIER',
319
+ },
320
+ SECRETAIRE: {
321
+ id: 208,
322
+ label: 'SECRÉTAIRE',
323
+ },
324
+ SECRETAIRE_GENERAL: {
325
+ id: 209,
326
+ label: 'SECRÉTAIRE GÉNÉRAL',
327
+ },
328
+ MEMBRE_CONSEIL_SYNDICAL: {
329
+ id: 210,
330
+ label: 'MEMBRE DU CONSEIL SYNDICAL',
331
+ },
332
+ PRESIDENT_CONSEIL_SYNDICAL: {
333
+ id: 211,
334
+ label: 'PRÉSIDENT DU CONSEIL SYNDICAL',
335
+ },
336
+ PERSONNE_DESIGNEE_STATUTS: {
337
+ id: 212,
338
+ label: 'PERSONNE DÉSIGNÉE PAR LES STATUTS',
339
+ },
340
+ };
@@ -29,7 +29,6 @@ export type LegalFormTypeContent = {
29
29
  id: LegalFormTypeEnum;
30
30
  name: string;
31
31
  alias: string;
32
- diaCode: number | null;
33
32
  hideVat: boolean;
34
33
  individual: boolean;
35
34
  pappersLabel?: string;
@@ -45,17 +44,15 @@ export const LegalForm: LegalFormType = {
45
44
  id: LegalFormTypeEnum.EI,
46
45
  name: 'EI',
47
46
  alias: 'ei',
48
- diaCode: 11,
49
47
  hideVat: false,
50
48
  individual: true,
51
49
  pappersLabel: 'Entrepreneur individuel',
52
- inseeCodes: ['10'],
50
+ inseeCodes: ['1000'],
53
51
  },
54
52
  EIRL: {
55
53
  id: LegalFormTypeEnum.EIRL,
56
54
  name: 'EIRL',
57
55
  alias: 'eirl',
58
- diaCode: 11,
59
56
  hideVat: false,
60
57
  individual: true,
61
58
  pappersLabel: 'Indivision entre personnes physiques',
@@ -65,7 +62,6 @@ export const LegalForm: LegalFormType = {
65
62
  id: LegalFormTypeEnum.EURL,
66
63
  name: 'EURL',
67
64
  alias: 'eurl',
68
- diaCode: 12212,
69
65
  hideVat: false,
70
66
  individual: true,
71
67
  pappersLabel: 'EURL, entreprise unipersonnelle à responsabilité limitée',
@@ -74,17 +70,35 @@ export const LegalForm: LegalFormType = {
74
70
  id: LegalFormTypeEnum.SARL,
75
71
  name: 'SARL',
76
72
  alias: 'sarl',
77
- diaCode: 12211,
78
73
  hideVat: false,
79
74
  individual: false,
80
75
  pappersLabel: 'SARL, société à responsabilité limitée',
81
- inseeCodes: ['54'],
76
+ inseeCodes: [
77
+ '5410',
78
+ '5415',
79
+ '5422',
80
+ '5426',
81
+ '5430',
82
+ '5431',
83
+ '5432',
84
+ '5442',
85
+ '5443',
86
+ '5451',
87
+ '5453',
88
+ '5454',
89
+ '5455',
90
+ '5458',
91
+ '5459',
92
+ '5460',
93
+ '5470',
94
+ '5485',
95
+ '5499',
96
+ ],
82
97
  },
83
98
  SASU: {
84
99
  id: LegalFormTypeEnum.SASU,
85
100
  name: 'SASU',
86
101
  alias: 'sasu',
87
- diaCode: 12223,
88
102
  hideVat: false,
89
103
  individual: false,
90
104
  pappersLabel: 'SASU, société par actions simplifiée unipersonnelle',
@@ -93,17 +107,15 @@ export const LegalForm: LegalFormType = {
93
107
  id: LegalFormTypeEnum.SAS,
94
108
  name: 'SAS',
95
109
  alias: 'sas',
96
- diaCode: 12223,
97
110
  hideVat: false,
98
111
  individual: false,
99
112
  pappersLabel: 'SAS, société par actions simplifiée',
100
- inseeCodes: ['57'],
113
+ inseeCodes: ['5710', '5770', '5785'],
101
114
  },
102
115
  SCI: {
103
116
  id: LegalFormTypeEnum.SCI,
104
117
  name: 'SCI',
105
118
  alias: 'sci',
106
- diaCode: 12131,
107
119
  hideVat: false,
108
120
  individual: false,
109
121
  pappersLabel: 'SCI, société civile immobilière',
@@ -113,17 +125,15 @@ export const LegalForm: LegalFormType = {
113
125
  id: LegalFormTypeEnum.GIE,
114
126
  name: 'GIE',
115
127
  alias: 'gie',
116
- diaCode: 13,
117
128
  hideVat: false,
118
129
  individual: false,
119
130
  pappersLabel: "GIE, groupement d'intérêt économique",
120
- inseeCodes: ['62'],
131
+ inseeCodes: ['6210', '6220'],
121
132
  },
122
133
  SELARL: {
123
134
  id: LegalFormTypeEnum.SELARL,
124
135
  name: 'SELARL',
125
136
  alias: 'selarl',
126
- diaCode: 12213,
127
137
  hideVat: false,
128
138
  individual: false,
129
139
  pappersLabel: "SERL, société d'exercice libéral à responsabilité limitée",
@@ -133,16 +143,15 @@ export const LegalForm: LegalFormType = {
133
143
  id: LegalFormTypeEnum.ASSOCIATION,
134
144
  name: 'Association',
135
145
  alias: 'association',
136
- diaCode: 2,
137
146
  hideVat: true,
138
147
  individual: false,
139
148
  pappersLabel: 'Association déclarée',
149
+ inseeCodes: ['9210', '9220', '9221', '9222', '9223', '9224', '9230', '9240', '9260'],
140
150
  },
141
151
  AUTO_ENTREPRENEUR: {
142
152
  id: LegalFormTypeEnum.AUTO_ENTREPRENEUR,
143
153
  name: 'Micro-entreprise',
144
154
  alias: 'micro-entreprise',
145
- diaCode: null,
146
155
  hideVat: true,
147
156
  individual: true,
148
157
  pappersLabel: 'Entrepreneur individuel',
@@ -151,27 +160,75 @@ export const LegalForm: LegalFormType = {
151
160
  id: LegalFormTypeEnum.SA,
152
161
  name: 'SA',
153
162
  alias: 'sa',
154
- diaCode: 12221,
155
163
  hideVat: false,
156
164
  individual: false,
157
165
  pappersLabel: "SA à conseil d'administration (s.a.i.)",
158
- inseeCodes: ['54', '56'],
166
+ inseeCodes: [
167
+ '5505',
168
+ '5510',
169
+ '5515',
170
+ '5520',
171
+ '5522',
172
+ '5525',
173
+ '5530',
174
+ '5531',
175
+ '5532',
176
+ '5542',
177
+ '5543',
178
+ '5546',
179
+ '5547',
180
+ '5548',
181
+ '5551',
182
+ '5552',
183
+ '5553',
184
+ '5554',
185
+ '5555',
186
+ '5558',
187
+ '5559',
188
+ '5560',
189
+ '5570',
190
+ '5585',
191
+ '5599',
192
+ '5605',
193
+ '5610',
194
+ '5615',
195
+ '5620',
196
+ '5622',
197
+ '5625',
198
+ '5630',
199
+ '5631',
200
+ '5632',
201
+ '5642',
202
+ '5643',
203
+ '5646',
204
+ '5647',
205
+ '5648',
206
+ '5651',
207
+ '5652',
208
+ '5653',
209
+ '5654',
210
+ '5655',
211
+ '5658',
212
+ '5659',
213
+ '5660',
214
+ '5670',
215
+ '5685',
216
+ '5699',
217
+ ],
159
218
  },
160
219
  SNC: {
161
220
  id: LegalFormTypeEnum.SNC,
162
221
  name: 'SNC',
163
222
  alias: 'snc',
164
- diaCode: 1212,
165
223
  hideVat: false,
166
224
  individual: false,
167
225
  pappersLabel: 'Société en nom collectif',
168
- inseeCodes: ['52'],
226
+ inseeCodes: ['5202', '5203'],
169
227
  },
170
228
  OTHER: {
171
229
  id: LegalFormTypeEnum.OTHER,
172
230
  name: 'Autre',
173
231
  alias: 'autre',
174
- diaCode: null,
175
232
  hideVat: false,
176
233
  individual: false,
177
234
  },
@@ -179,7 +236,6 @@ export const LegalForm: LegalFormType = {
179
236
  id: LegalFormTypeEnum.SUCCURSALE,
180
237
  name: 'Succursale',
181
238
  alias: 'succursale',
182
- diaCode: null,
183
239
  hideVat: false,
184
240
  individual: false,
185
241
  },
@@ -187,26 +243,23 @@ export const LegalForm: LegalFormType = {
187
243
  id: LegalFormTypeEnum.SCOP,
188
244
  name: 'SCOP',
189
245
  alias: 'scop',
190
- diaCode: null,
191
246
  hideVat: false,
192
247
  individual: false,
193
248
  pappersLabel: 'SCOP, SARL coopérative ouvrière de production',
194
- inseeCodes: ['5458'],
249
+ inseeCodes: ['5458', '5558', '5658'],
195
250
  },
196
251
  SCE_DROIT_ETRANGER: {
197
252
  id: LegalFormTypeEnum.SCE_DROIT_ETRANGER,
198
253
  name: 'Sce Droit Etranger',
199
254
  alias: 'sce droit etranger',
200
- diaCode: 12131,
201
255
  hideVat: false,
202
256
  individual: false,
203
- inseeCodes: ['31', '32'],
257
+ inseeCodes: ['3110', '3120', '3205', '3210', '3220', '3290'],
204
258
  },
205
259
  EARL: {
206
260
  id: LegalFormTypeEnum.EARL,
207
261
  name: 'EARL',
208
262
  alias: 'earl',
209
- diaCode: 12137,
210
263
  hideVat: false,
211
264
  individual: false,
212
265
  pappersLabel: 'SCOP, SARL coopérative ouvrière de production',
@@ -216,7 +269,6 @@ export const LegalForm: LegalFormType = {
216
269
  id: LegalFormTypeEnum.SCP,
217
270
  name: 'SCP',
218
271
  alias: 'scp',
219
- diaCode: null,
220
272
  hideVat: false,
221
273
  individual: false,
222
274
  pappersLabel: "SCP d'avocats",
@@ -245,17 +297,38 @@ export const LegalForm: LegalFormType = {
245
297
  id: LegalFormTypeEnum.SOCIETE_CIVILE,
246
298
  name: 'Société Civile',
247
299
  alias: 'SOC',
248
- diaCode: null,
249
300
  hideVat: false,
250
301
  individual: false,
251
302
  pappersLabel: 'Autre société civile',
252
- inseeCodes: ['6539', '6542', '6543', '6544', '6551', '6554', '6558', '6560', '6589', '6599'],
303
+ inseeCodes: [
304
+ '6511',
305
+ '6521',
306
+ '6532',
307
+ '6533',
308
+ '6534',
309
+ '6535',
310
+ '6536',
311
+ '6537',
312
+ '6538',
313
+ '6539',
314
+ '6542',
315
+ '6543',
316
+ '6544',
317
+ '6551',
318
+ '6554',
319
+ '6558',
320
+ '6560',
321
+ '6589',
322
+ '6595',
323
+ '6596',
324
+ '6597',
325
+ '6599',
326
+ ],
253
327
  },
254
328
  SELASU: {
255
329
  id: LegalFormTypeEnum.SELASU,
256
330
  name: 'SELAS(U)',
257
331
  alias: 'Selas(u)',
258
- diaCode: null,
259
332
  hideVat: false,
260
333
  individual: true,
261
334
  pappersLabel: 'Selas unipersonnelle',
@@ -265,7 +338,6 @@ export const LegalForm: LegalFormType = {
265
338
  id: LegalFormTypeEnum.SELARLU,
266
339
  name: 'SELARLU',
267
340
  alias: 'Selarlu',
268
- diaCode: null,
269
341
  hideVat: false,
270
342
  individual: true,
271
343
  pappersLabel: 'Selarl unipersonnelle',
@@ -274,7 +346,6 @@ export const LegalForm: LegalFormType = {
274
346
  id: LegalFormTypeEnum.LMNP,
275
347
  name: 'LMNP',
276
348
  alias: 'Lmnp',
277
- diaCode: null,
278
349
  hideVat: false,
279
350
  individual: true,
280
351
  pappersLabel: 'Loueur en meublé non professionnel',
@@ -283,7 +354,6 @@ export const LegalForm: LegalFormType = {
283
354
  id: LegalFormTypeEnum.SCCV,
284
355
  name: 'SCCV',
285
356
  alias: 'Sccv',
286
- diaCode: null,
287
357
  hideVat: false,
288
358
  individual: true,
289
359
  pappersLabel: 'Société civile construction vente',
@@ -37,6 +37,7 @@ export interface ConfigType {
37
37
  troisCx: {
38
38
  urlApi3cx: string;
39
39
  };
40
+ viaLink: ViaLink;
40
41
  }
41
42
 
42
43
  interface Authentication {
@@ -240,5 +241,18 @@ interface Echo {
240
241
  }
241
242
 
242
243
  interface Docoon {
244
+ baseUrlRestApi: string;
245
+ businessApiBaseUrl: string;
246
+ }
247
+
248
+ interface ViaLink {
243
249
  baseUrl: string;
250
+ contactApiUrl: string;
251
+ horizonApiUrl: string;
252
+ bobApiUrl: string;
253
+ requesterApiUrl: string;
254
+ smileApiUrl: string;
255
+ driveApiUrl: string;
256
+ xzibitApiUrl: string;
257
+ zorroApiUrl: string;
244
258
  }
@@ -0,0 +1,79 @@
1
+ export type DocoonStructure = {
2
+ code: string; // identification code of your structure, that must be unique character chain for a tenant
3
+ name: string; // allows you to give the structure legal name
4
+ legalId: string; // SIRET for the structure.
5
+ legalIdSchemeId: string; // 0002 pour SIREN and 0009 for SIRET
6
+ isEnabled: boolean; // boolean which precise the activation state of the structure
7
+ countryCode: string; // represents the country code where the structure is registered, according to ISO 3166
8
+ startDate: string; // indicates the date of structure creation
9
+ endDate: string; // indicates the date of structure closure
10
+ address: {
11
+ // should be filled with the structure postal address
12
+ name: string;
13
+ street: string;
14
+ city: string;
15
+ zipcode: string;
16
+ postBox: string;
17
+ additionalInfo: string;
18
+ country: string;
19
+ };
20
+ mainActivity: {
21
+ code: string; // official code used to classify structures according to their declared main activity. In France, you should fill with APE code
22
+ name: string; // description of the structure main activity
23
+ };
24
+ };
25
+
26
+ export type DocoonPersonType =
27
+ | 'PRIVATE_PERSON' // a private physical person
28
+ | 'MORAL_PERSON_PRIVATE' // a private company
29
+ | 'MORAL_PERSON_PUBLIC'; // a public / governmental company
30
+
31
+ export type DocoonLegalForm =
32
+ | 'EI'
33
+ | 'Micro-entreprise'
34
+ | 'EIRL'
35
+ | 'SARL'
36
+ | 'EURL'
37
+ | 'SA'
38
+ | 'SAS'
39
+ | 'SASU'
40
+ | 'SNC'
41
+ | 'SCS'
42
+ | 'SCA'
43
+ | 'SCI'
44
+ | 'SCM'
45
+ | 'SCP'
46
+ | 'SC'
47
+ | 'SELARL'
48
+ | 'SELAS'
49
+ | 'SELAFA'
50
+ | 'SELCA'
51
+ | 'EARL'
52
+ | 'GAEC'
53
+ | 'SCEA'
54
+ | 'GFA'
55
+ | 'Association loi 1901'
56
+ | 'Association loi 1908'
57
+ | 'Fondation'
58
+ | 'SCOP'
59
+ | 'SCIC'
60
+ | 'Coopérative agricole'
61
+ | 'GIE'
62
+ | 'GEIE'
63
+ | 'EPIC';
64
+
65
+ export type DocoonLegalEntityItem = {
66
+ code: string; // identification code of your legal entity, that must be unique character chain for a tenant
67
+ name: string; // allows you to give the organization legal name
68
+ legalId: string; // SIREN for the legal entity,.
69
+ legalIdSchemeId: string; // 0002 pour SIREN and 0009 for SIRET
70
+ isEnabled: boolean; // boolean which precise the activation state of the legal entity
71
+ parentStructureId?: string; // identifier of a parent legal entity, this optional field is useful in case of M&A so as to facilitate parameters reconciliation and declarations of the two entities
72
+ personType: DocoonPersonType; // allows you to precise the kind of thirdparty
73
+ legalForm: DocoonLegalForm; // allows you to precise the kind of legal form for french entities
74
+ isTaxable: boolean; // boolean which precise if the legal entity is a taxpayer
75
+ taxCountryCode: string; // represents the country code where the legal entity declare taxes, according to ISO 3166
76
+ taxId: string; // represents the unique tax identifier of the company, which start by the counrty code
77
+ capital: string; // the company's share capital
78
+ structures: DocoonStructure[];
79
+ };