@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
@@ -0,0 +1,190 @@
1
+ // import { DocumentType } from './Create.js';
2
+
3
+ // CONTROL SCHEMA
4
+
5
+ export interface KycFolder {
6
+ id: string;
7
+ title: string;
8
+ status: KycFolderStatus;
9
+ expiresOn?: string;
10
+ metadata: object; // <= 5 items to add metadata to folders (idSociety, idUser maybe ??)
11
+ createdAt: string;
12
+ updatedAt: string;
13
+ _links: object; // list of links relation types
14
+ _embedded: object;
15
+ }
16
+
17
+ export type KycFolderStatus =
18
+ | 'DRAFT'
19
+ | 'IN_PROGESS'
20
+ | 'COMPLETED'
21
+ | 'REJECTED'
22
+ | 'ACTION_NEEDED'
23
+ | 'CANCELLED'
24
+ | 'EXPIRED';
25
+
26
+ export interface KycControl {
27
+ id: string;
28
+ spaceId: string;
29
+ spaceName: string;
30
+ controleProfileId: string;
31
+ controleProfileName: string;
32
+ subscriberId: string;
33
+ subscriber: Subscriber;
34
+ createdAt: string;
35
+ lastModified: string;
36
+ completeness: CompleteNess;
37
+ score: number;
38
+ status: 'CREATED' | 'DONE';
39
+ result: ControlResult;
40
+ }
41
+
42
+ interface Subscriber {
43
+ id: string;
44
+ spaceId: string;
45
+ address: {
46
+ address: string;
47
+ city: string;
48
+ province: string;
49
+ zipCode: string;
50
+ } | null;
51
+ complementaryData: ComplementaryData[];
52
+ additionalData: AdditionalData[]; // need more info for this type
53
+ contact: string;
54
+ siren: string;
55
+ legalName: string | null;
56
+ legalForm: string | null;
57
+ registrationDate: string | null;
58
+ }
59
+
60
+ interface ComplementaryData {
61
+ id: number;
62
+ origin: string;
63
+ type: 'VALUE' | 'JSON';
64
+ key: string;
65
+ jsonableType: 'LIST';
66
+ data: string | ComplementaryDataDataObject;
67
+ }
68
+
69
+ interface ComplementaryDataDataObject {
70
+ objectType: 'LIST';
71
+ items: ComplementaryDataDataObjectItems[];
72
+ }
73
+
74
+ interface ComplementaryDataDataObjectItems {
75
+ objectType: string;
76
+ profession: string;
77
+ type: 'PP' | 'PM'; // Personne Physique | Personne Morale
78
+ legalEntityName?: string;
79
+ legalEntitySiren?: string;
80
+ lastName?: string;
81
+ firstName?: string;
82
+ birthDate?: string;
83
+ }
84
+
85
+ interface AdditionalData {
86
+ valueType: string;
87
+ }
88
+
89
+ interface CompleteNess {
90
+ type: string;
91
+ number: number;
92
+ side: 'FRONT' | 'BACK' | null;
93
+ available: boolean;
94
+ status: 'CHECKED' | null;
95
+ }
96
+
97
+ interface ControlResult {
98
+ status: 'OK' | null;
99
+ score: number;
100
+ checkResults: ControlCheckResult[];
101
+ nbPerformedChecks: number;
102
+ nbConfigurationChecks: number;
103
+ // the keys below are to be perfected after the tests will be done.
104
+ // each props equals for a different document. could be only 1 document so one prop. i think 3 is max
105
+ scores: {
106
+ additionalProp1: number;
107
+ additionalProp2: number;
108
+ additionalProp3: number;
109
+ };
110
+ scoresPerDocument: {
111
+ additionalProp1: {
112
+ additionalProp1: number;
113
+ additionalProp2: number;
114
+ additionalProp3: number;
115
+ };
116
+ additionalProp2: {
117
+ additionalProp1: number;
118
+ additionalProp2: number;
119
+ additionalProp3: number;
120
+ };
121
+ additionalProp3: {
122
+ additionalProp1: number;
123
+ additionalProp2: number;
124
+ additionalProp3: number;
125
+ };
126
+ };
127
+ }
128
+
129
+ export interface ControlCheckResult {
130
+ id: number;
131
+ type: string;
132
+ name: string;
133
+ value: string;
134
+ weight: number;
135
+ critical: boolean;
136
+ sources: ControlCheckResultSource[];
137
+ parameters: ControlCheckResultParameter[];
138
+ public: boolean;
139
+ }
140
+
141
+ interface ControlCheckResultSource {
142
+ type: string; // 'DOCUMENT'
143
+ documentId: number;
144
+ documentType: string;
145
+ number: number;
146
+ value: string;
147
+ label: string;
148
+ }
149
+
150
+ interface ControlCheckResultParameter {
151
+ name: string;
152
+ value: string;
153
+ }
154
+
155
+ // DOCUMENT SCHEMA
156
+
157
+ export interface KycDocumentWithClassification {
158
+ id: number;
159
+ type: DocumentType;
160
+ subType: string;
161
+ number: number;
162
+ status: 'QUEUING' | 'CHECKED';
163
+ sheets: DocumentWithClassificationSheet[];
164
+ score: number;
165
+ // documentValues: {};
166
+ // dataSourceValues: {}[];
167
+ images: {
168
+ id: number;
169
+ name: string; // FRONT;
170
+ number: number;
171
+ }[];
172
+ origin: string; // REQUESTER
173
+ createdAt: string;
174
+ language: 'fr';
175
+ }
176
+
177
+ interface DocumentWithClassificationSheet {
178
+ id: number;
179
+ side: string;
180
+ filename: string;
181
+ hash: string;
182
+ mimetype: string;
183
+ size: number;
184
+ subTypes: string[];
185
+ indentifier: string; // https://app.vialink.fr/drive/api/v1/files/ae6c8745-4c38-4035-a44f-88f7ed43d2ad
186
+ }
187
+
188
+ // export type KycControlSubTypes = {
189
+ // [key in DocumentType]: string[];
190
+ // };
@@ -17,7 +17,7 @@ import { IAnalyticsUtm } from '../../models/IAnalyticsUtm.js';
17
17
  import { LegalFormTypeEnum } from '../../../Enum/LegalForm.js';
18
18
  import { UpdateOrCreateVisualizedInformation } from '../visualizedInformation/Update.js';
19
19
  import { IPermission } from '../../models/IPermission.js';
20
- import { SubscriptionType } from '../../../../index.js';
20
+ import { CountryId, FiscalRegime, ProfitsType, SubscriptionType, TaxSystem } from '../../../../index.js';
21
21
 
22
22
  /**
23
23
  * Response of the register prospect endpoint
@@ -54,6 +54,10 @@ export interface ProspectSocietyInfo {
54
54
  siret?: string;
55
55
  dateInscription?: Date;
56
56
  idNafCode?: number;
57
+ idCountry?: CountryId | null;
58
+ idFiscalRegime?: FiscalRegime | null;
59
+ idTaxSystem?: TaxSystem | null;
60
+ idProfitsType?: ProfitsType | null;
57
61
  }
58
62
 
59
63
  export interface ReferalProgram {
@@ -0,0 +1,25 @@
1
+ import { ISociety } from './ISociety.js';
2
+ import { IFile } from '../../index.js';
3
+
4
+ export class IEInvoicingKycAndMandate {
5
+ id?: number;
6
+ onboardingFolderId: string;
7
+ publicFolderUrl: string;
8
+ eInvoiceAddress: string;
9
+ mandateRef: string;
10
+ mandateStatus?: string | null; // COMPLETED | REJECTED
11
+ onboardingStatus?: string | null; // DRAFT | IN_PROGRESS | COMPLETED | REJECTED | ACTION_NEEDED | EXPIRED | CANCELLED
12
+ sentToDocoon: boolean;
13
+ idSociety: number;
14
+ idMandateFile?: number | null;
15
+ idKycControlReportFile?: number | null;
16
+ idKycCaptureReportFile?: number | null;
17
+ idKycSignatureReportFile?: number | null;
18
+
19
+ // associations
20
+ society?: ISociety;
21
+ mandate?: IFile;
22
+ kycControlReport?: IFile;
23
+ kycCaptureReport?: IFile;
24
+ kycSignatureReport?: IFile;
25
+ }
package/ts/types/index.ts CHANGED
@@ -286,6 +286,7 @@ export * from './Interface/models/IRevenueMovement.js';
286
286
  export * from './Interface/models/IRevenueSnapshot.js';
287
287
  export * from './Interface/models/IEInvoicingEligibilityRequest.js';
288
288
  export * from './Interface/models/IUsersHistory.js';
289
+ export * from './Interface/models/IEInvoicingKycAndMandate.js';
289
290
 
290
291
  // Schemas
291
292
  export * from './Interface/schemas/IRegistrationDetail.js';
@@ -1174,3 +1175,6 @@ export * from './Interface/api/docoon/Read.js';
1174
1175
  export * from './Interface/api/authentification/FinalizeMobileApprovalDto.js';
1175
1176
  export * from './Interface/api/formalism/Create.js';
1176
1177
  export * from './Interface/api/authentification/ProviderAuthDto.js';
1178
+ export * from './Interface/api/kyc/Create.js';
1179
+ export * from './Interface/api/kyc/Read.js';
1180
+ export * from './Interface/api/kyc/kyc.js';