@silexpert/core 2.0.44 → 2.0.46

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 (85) 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/Enum/RegistrationSource.d.ts +2 -1
  26. package/dist/types/Enum/RegistrationSource.d.ts.map +1 -1
  27. package/dist/types/Enum/RegistrationSource.js +1 -0
  28. package/dist/types/Enum/RegistrationSource.js.map +1 -1
  29. package/dist/types/Enum/VehicleType.js +1 -1
  30. package/dist/types/Enum/VehicleType.js.map +1 -1
  31. package/dist/types/Interface/api/config/ConfigType.d.ts +14 -0
  32. package/dist/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  33. package/dist/types/Interface/api/config/ConfigType.js.map +1 -1
  34. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts +41 -0
  35. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts.map +1 -0
  36. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js +2 -0
  37. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js.map +1 -0
  38. package/dist/types/Interface/api/docoon/Read.d.ts +59 -0
  39. package/dist/types/Interface/api/docoon/Read.d.ts.map +1 -1
  40. package/dist/types/Interface/api/docoon/Read.js.map +1 -1
  41. package/dist/types/Interface/api/inpi/inpi.d.ts +1 -0
  42. package/dist/types/Interface/api/inpi/inpi.d.ts.map +1 -1
  43. package/dist/types/Interface/api/inpi/inpi.js.map +1 -1
  44. package/dist/types/Interface/api/kyc/Create.d.ts +87 -0
  45. package/dist/types/Interface/api/kyc/Create.d.ts.map +1 -0
  46. package/dist/types/Interface/api/kyc/Create.js +105 -0
  47. package/dist/types/Interface/api/kyc/Create.js.map +1 -0
  48. package/dist/types/Interface/api/kyc/Read.d.ts +830 -0
  49. package/dist/types/Interface/api/kyc/Read.d.ts.map +1 -0
  50. package/dist/types/Interface/api/kyc/Read.js +2 -0
  51. package/dist/types/Interface/api/kyc/Read.js.map +1 -0
  52. package/dist/types/Interface/api/kyc/kyc.d.ts +157 -0
  53. package/dist/types/Interface/api/kyc/kyc.d.ts.map +1 -0
  54. package/dist/types/Interface/api/kyc/kyc.js +6 -0
  55. package/dist/types/Interface/api/kyc/kyc.js.map +1 -0
  56. package/dist/types/Interface/api/user/RegisterProspect.d.ts +5 -1
  57. package/dist/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  58. package/dist/types/Interface/api/user/RegisterProspect.js.map +1 -1
  59. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +24 -0
  60. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -0
  61. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +23 -0
  62. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -0
  63. package/dist/types/index.d.ts +4 -0
  64. package/dist/types/index.d.ts.map +1 -1
  65. package/dist/types/index.js +4 -0
  66. package/dist/types/index.js.map +1 -1
  67. package/package.json +1 -1
  68. package/ts/api/resources/KycMandate.ts +12 -0
  69. package/ts/api/resources/Vialink.ts +12 -0
  70. package/ts/api/resources.ts +4 -0
  71. package/ts/types/Enum/Country.ts +517 -230
  72. package/ts/types/Enum/InpiType.ts +291 -0
  73. package/ts/types/Enum/LegalForm.ts +104 -34
  74. package/ts/types/Enum/RegistrationSource.ts +1 -0
  75. package/ts/types/Enum/VehicleType.ts +1 -1
  76. package/ts/types/Interface/api/config/ConfigType.ts +15 -0
  77. package/ts/types/Interface/api/docoon/DocoonLegalEntity.ts +79 -0
  78. package/ts/types/Interface/api/docoon/Read.ts +60 -0
  79. package/ts/types/Interface/api/inpi/inpi.ts +1 -0
  80. package/ts/types/Interface/api/kyc/Create.ts +136 -0
  81. package/ts/types/Interface/api/kyc/Read.ts +842 -0
  82. package/ts/types/Interface/api/kyc/kyc.ts +190 -0
  83. package/ts/types/Interface/api/user/RegisterProspect.ts +5 -1
  84. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +26 -0
  85. package/ts/types/index.ts +4 -0
@@ -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
+ };
@@ -92,3 +92,63 @@ export interface ReadDirectoryLine {
92
92
  results: ReadDirectoryLineResult[];
93
93
  identite_etablissement?: string;
94
94
  }
95
+
96
+ export interface ReadDocoonLegalEntity {
97
+ id: string;
98
+ code: string;
99
+ name: string;
100
+ tenantId: string;
101
+ legalId: string;
102
+ legalIdSchemeId: string;
103
+ taxCountryCode: string;
104
+ taxId: string;
105
+ legalForm: string;
106
+ capital: string;
107
+ outsideReform: string;
108
+ isEnabled: boolean;
109
+ primaryStructureId: string;
110
+ parentStructureId: string;
111
+ structures: {
112
+ id: string;
113
+ code: string;
114
+ name: string;
115
+ tenantId: string;
116
+ legalId: string;
117
+ legalIdSchemeId: string;
118
+ isEnabled: string;
119
+ parentStructureId: string;
120
+ countryCode: string;
121
+ startDate: string;
122
+ endDate: string;
123
+ structureType: string;
124
+ address: {
125
+ name: string;
126
+ street: string;
127
+ zipCode: string;
128
+ postBox: string;
129
+ city: string;
130
+ additionalInfo: string;
131
+ country: string;
132
+ };
133
+ mainActivity: {
134
+ name: string;
135
+ code: string;
136
+ };
137
+ };
138
+ pdpProperties: {
139
+ isVerified: string;
140
+ isMandated: string;
141
+ verifiedDate: string;
142
+ pdpDirection: {
143
+ outBound: string;
144
+ inBound: string;
145
+ };
146
+ taxation: {
147
+ isSingleTaxPayer: string;
148
+ singleTaxPayerStructureId: string;
149
+ taxSystem: string;
150
+ taxRegime: string;
151
+ };
152
+ pdpMandates: string;
153
+ };
154
+ }
@@ -283,6 +283,7 @@ interface Pouvoir {
283
283
  entreprise?: Entreprise2;
284
284
  adresseEntreprise?: AdresseEntreprise2;
285
285
  representant?: Representant;
286
+ roleEntreprise?: string;
286
287
  }
287
288
 
288
289
  interface Individu {
@@ -0,0 +1,136 @@
1
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
2
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
3
+ import { IsBoolean, IsNumber, IsObject, IsOptional, IsString } from 'class-validator';
4
+
5
+ export class CreateUserKyc {
6
+ @ApiProperty()
7
+ @IsNumber()
8
+ idSociety: number;
9
+
10
+ @ApiProperty()
11
+ @IsString()
12
+ siren: string;
13
+
14
+ @ApiProperty()
15
+ @IsString()
16
+ participantFirstName: string;
17
+
18
+ @ApiProperty()
19
+ @IsString()
20
+ participantLastName: string;
21
+
22
+ @ApiProperty()
23
+ @IsString()
24
+ participantFonction: string;
25
+
26
+ @ApiProperty()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ isEmittingAndRecepting: boolean;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsString()
33
+ @IsOptional()
34
+ participantPhone?: string;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsString()
38
+ @IsOptional()
39
+ participantEmail?: string;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsString()
43
+ @IsOptional()
44
+ eInvoiceAddress?: string;
45
+ }
46
+
47
+ export class FinishProcess {
48
+ @ApiProperty()
49
+ @IsString()
50
+ id: string;
51
+
52
+ @ApiProperty()
53
+ @IsString()
54
+ spaceId: string;
55
+ @ApiProperty()
56
+ @IsString()
57
+ eventType: string;
58
+
59
+ @ApiProperty()
60
+ @IsString()
61
+ objectId: string;
62
+
63
+ @ApiProperty()
64
+ @IsObject()
65
+ metadata: FinishProcessMetadata;
66
+ }
67
+
68
+ export type FinishProcessMetadata = {
69
+ FOLDER?: string;
70
+ PARTICIPANT?: string;
71
+ STEP?: string;
72
+ STEP_TYPE?: string;
73
+ STEP_STATUS?: string;
74
+ SUBSCRIPTION_ID?: string;
75
+ };
76
+
77
+ export interface CreatePerson {
78
+ // space: string; // uri of space
79
+ firstName?: string;
80
+ lastName?: string;
81
+ email?: string;
82
+ phone?: string;
83
+ locale?: string;
84
+ birthData?: {
85
+ date: string;
86
+ place?: string;
87
+ department?: string;
88
+ };
89
+ }
90
+ export interface CreateFolder {
91
+ space: string; // uri of space
92
+ title: string;
93
+ type: string;
94
+ folderBuilder: string; // uri of folderbuilder
95
+ participants: ContactFolder[];
96
+ documents: DocumentFolder[];
97
+ expiresOn?: string; // format YYYY-MM-DD
98
+ requester?: string; // uri of person
99
+ metadata?: Record<string, string>[]; // key <= 25 char, value <= 50 char
100
+ submit: boolean;
101
+ }
102
+
103
+ export type ContactFolder = {
104
+ label: string;
105
+ contact: string; // uri of contact (person)
106
+ redirection?: {
107
+ target: string;
108
+ type: string; // AUTOMATIC
109
+ };
110
+ };
111
+
112
+ export type DocumentFolder = {
113
+ type: string;
114
+ source: {
115
+ type: string;
116
+ file: string; // uri of template
117
+ signers: DocumentFolderSigner[];
118
+ };
119
+ };
120
+
121
+ export type DocumentFolderSigner = {
122
+ label: string;
123
+ fields: DocumentFolderSignerField[];
124
+ };
125
+
126
+ export type DocumentFolderSignerField = {
127
+ type: string;
128
+ name: string;
129
+ page: number;
130
+ position: { x: number; y: number };
131
+ size: { width: number; height: number };
132
+ };
133
+
134
+ export interface CreateTemplate {
135
+ content: Buffer; // buffer file content
136
+ }