@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
@@ -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
+ }