@silexpert/core 1.1.246 → 1.1.248
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/cjs/api/resources/Qonto.d.ts +8 -1
- package/dist/cjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/cjs/api/resources/Qonto.js +23 -0
- package/dist/cjs/api/resources/Qonto.js.map +1 -1
- package/dist/cjs/types/Enum/ConnectionError.js +1 -1
- package/dist/cjs/types/Enum/ConnectionError.js.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.js +4 -4
- package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts +1 -0
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.js +6 -0
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts +47 -0
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/qonto/Create.js +210 -0
- package/dist/cjs/types/Interface/api/qonto/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts +93 -0
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Query.js +7 -0
- package/dist/cjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts +17 -17
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js +17 -17
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyConfig.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -3
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -3
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +1 -1
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/Qonto.d.ts +8 -1
- package/dist/mjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/mjs/api/resources/Qonto.js +23 -0
- package/dist/mjs/api/resources/Qonto.js.map +1 -1
- package/dist/mjs/types/Enum/ConnectionError.js +1 -1
- package/dist/mjs/types/Enum/ConnectionError.js.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.js +4 -4
- package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts +1 -0
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.js +7 -0
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts +47 -0
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/qonto/Create.js +233 -0
- package/dist/mjs/types/Interface/api/qonto/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts +93 -0
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Query.js +24 -1
- package/dist/mjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts +17 -17
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js +17 -17
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyConfig.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -3
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -3
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +1 -1
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Qonto.ts +30 -1
- package/ts/types/Enum/ConnectionError.ts +1 -1
- package/ts/types/Enum/RoleDetail.ts +4 -4
- package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +5 -0
- package/ts/types/Interface/api/qonto/Create.ts +167 -0
- package/ts/types/Interface/api/qonto/Query.ts +103 -1
- package/ts/types/Interface/api/society/UpdateSociety.ts +17 -17
- package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
- package/ts/types/index.ts +1 -3
- package/ts/utils/vat/3517/century23.ts +1 -1
- package/dist/cjs/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
- package/dist/cjs/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/qonto/CreateImportation.js +0 -30
- package/dist/cjs/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/dist/cjs/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
- package/dist/cjs/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/qonto/CreateQontoConnection.js +0 -28
- package/dist/cjs/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/dist/cjs/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
- package/dist/cjs/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/qonto/ProcessBankAccount.js +0 -28
- package/dist/cjs/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/CreateImportation.d.ts +0 -5
- package/dist/mjs/types/Interface/api/qonto/CreateImportation.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/CreateImportation.js +0 -28
- package/dist/mjs/types/Interface/api/qonto/CreateImportation.js.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/CreateQontoConnection.d.ts +0 -5
- package/dist/mjs/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/CreateQontoConnection.js +0 -26
- package/dist/mjs/types/Interface/api/qonto/CreateQontoConnection.js.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/ProcessBankAccount.d.ts +0 -5
- package/dist/mjs/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/qonto/ProcessBankAccount.js +0 -26
- package/dist/mjs/types/Interface/api/qonto/ProcessBankAccount.js.map +0 -1
- package/ts/types/Interface/api/qonto/CreateImportation.ts +0 -14
- package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +0 -12
- package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.248",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProcessBankAccount,
|
|
3
3
|
CreateQontoConnection,
|
|
4
|
-
CreateImportation, GetConnectionInformation, GetQontoOrganization, IBankAccount, IBankConnection, ReadCreateConnection, UpdateConnection, CreateImportationResult,
|
|
4
|
+
CreateImportation, GetConnectionInformation, GetQontoOrganization, IBankAccount, IBankConnection, ReadCreateConnection, UpdateConnection, CreateImportationResult, CreateQontoRegistration, ReadQontoRegistration, CreateRegistrationFile, CreateWebhookConfig, ReadQontoWebhookConfig,
|
|
5
5
|
} from '../../types';
|
|
6
6
|
import { Resource } from '../Resource';
|
|
7
7
|
|
|
@@ -29,4 +29,33 @@ export class Qonto extends Resource {
|
|
|
29
29
|
updateConnection(idBankConnection: number, payload: UpdateConnection): Promise<IBankConnection> {
|
|
30
30
|
return this.axios.$put(`connectors/qonto/connections/${idBankConnection}`, payload);
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
createRegistration(params: CreateQontoRegistration): Promise<ReadQontoRegistration> {
|
|
34
|
+
return this.axios.$post('connectors/qonto/registrations', params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
getRegistration(idRegistration: string): Promise<ReadQontoRegistration> {
|
|
38
|
+
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}`);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
createRegistrationFile(idRegistration: string, params: CreateRegistrationFile): Promise<ReadQontoRegistration> {
|
|
42
|
+
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/files`, params, {
|
|
43
|
+
responseType: 'arraybuffer',
|
|
44
|
+
headers: {
|
|
45
|
+
Accept: 'application/pdf',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
getRegistrationFileBuffer(idRegistration: string, idFile: string): Promise<Buffer> {
|
|
51
|
+
return this.axios.$get(`connectors/qonto/registrations/${idRegistration}/files/${idFile}/download`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
createWebhookConfig(params: CreateWebhookConfig): Promise<ReadQontoWebhookConfig> {
|
|
55
|
+
return this.axios.$post('connectors/qonto/registrations/webhooks-configs', params);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
triggerNewMailForRegistrationLink(idRegistration: string): Promise<void> {
|
|
59
|
+
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/email`);
|
|
60
|
+
}
|
|
32
61
|
}
|
|
@@ -32,7 +32,7 @@ export const connectionErrors: ConnectionError[] = [
|
|
|
32
32
|
key: 'webauthRequired',
|
|
33
33
|
description: {
|
|
34
34
|
title: 'Une authentification est nécéssaire',
|
|
35
|
-
content: 'Votre banque demande une nouvelle authentification. Nous vous invitons
|
|
35
|
+
content: 'Votre banque demande une nouvelle authentification. Nous vous invitons à vous rendre sur la webview de notre partenaire afin de renouveler votre connexion auprès de votre banque.',
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -358,8 +358,8 @@ export const RoleDetail = {
|
|
|
358
358
|
ON_BOARDER: {
|
|
359
359
|
id: 50,
|
|
360
360
|
name: 'On boarder',
|
|
361
|
-
colorPrimary: '#
|
|
362
|
-
colorSecondary: '#
|
|
361
|
+
colorPrimary: '#8765D0',
|
|
362
|
+
colorSecondary: '#DED7F6',
|
|
363
363
|
handledInUserSocietyPermissionTable: false,
|
|
364
364
|
isService: true,
|
|
365
365
|
subRole: false,
|
|
@@ -367,8 +367,8 @@ export const RoleDetail = {
|
|
|
367
367
|
DATA_OFFICER: {
|
|
368
368
|
id: 51,
|
|
369
369
|
name: 'Data Officer',
|
|
370
|
-
colorPrimary: '#
|
|
371
|
-
colorSecondary: '#
|
|
370
|
+
colorPrimary: '#5894EF',
|
|
371
|
+
colorSecondary: '#DAEEFC',
|
|
372
372
|
handledInUserSocietyPermissionTable: false,
|
|
373
373
|
isService: true,
|
|
374
374
|
subRole: false,
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { IsDateString, IsOptional, IsString, IsArray, IsBoolean, IsNumber } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
|
|
3
|
+
import { RegistrationFileType, ReadStakeHolders } from './Query';
|
|
4
|
+
import { TFile } from '../file/TFile';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class CreateImportation {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsDateString()
|
|
11
|
+
minDate?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsDateString()
|
|
16
|
+
maxDate?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export class CreateQontoConnection {
|
|
21
|
+
@ApiProperty()
|
|
22
|
+
@IsString()
|
|
23
|
+
login: string;
|
|
24
|
+
|
|
25
|
+
@ApiProperty()
|
|
26
|
+
@IsString()
|
|
27
|
+
password: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export class ProcessBankAccount {
|
|
32
|
+
@ApiProperty()
|
|
33
|
+
@IsArray()
|
|
34
|
+
idsSlugToAdd: Array<string>;
|
|
35
|
+
|
|
36
|
+
@ApiProperty()
|
|
37
|
+
@IsArray()
|
|
38
|
+
idsSlugToRemove: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export class CreateQontoRegistration {
|
|
45
|
+
@ApiProperty()
|
|
46
|
+
@IsString()
|
|
47
|
+
legalFlow: 'company_creation' | 'existing_company';
|
|
48
|
+
|
|
49
|
+
@ApiProperty()
|
|
50
|
+
@IsString()
|
|
51
|
+
locale: 'en' | 'fr' | 'it' | 'es' | 'de';
|
|
52
|
+
|
|
53
|
+
@ApiPropertyOptional()
|
|
54
|
+
@IsString()
|
|
55
|
+
@IsOptional()
|
|
56
|
+
firstName?: string | null;
|
|
57
|
+
|
|
58
|
+
@ApiPropertyOptional()
|
|
59
|
+
@IsString()
|
|
60
|
+
@IsOptional()
|
|
61
|
+
lastName?: string | null;
|
|
62
|
+
|
|
63
|
+
@ApiPropertyOptional()
|
|
64
|
+
@IsString()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
email?: string | null;
|
|
67
|
+
|
|
68
|
+
@ApiProperty()
|
|
69
|
+
@IsString()
|
|
70
|
+
entityType: 'freelancer' | 'company';
|
|
71
|
+
|
|
72
|
+
@ApiPropertyOptional()
|
|
73
|
+
@IsString()
|
|
74
|
+
@IsOptional()
|
|
75
|
+
legalName?: string | null;
|
|
76
|
+
|
|
77
|
+
@ApiPropertyOptional()
|
|
78
|
+
@IsString()
|
|
79
|
+
@IsOptional()
|
|
80
|
+
legalForm?: string | null;
|
|
81
|
+
|
|
82
|
+
@ApiPropertyOptional()
|
|
83
|
+
@IsString()
|
|
84
|
+
@IsOptional()
|
|
85
|
+
number?: string | null;
|
|
86
|
+
|
|
87
|
+
@ApiPropertyOptional()
|
|
88
|
+
@IsString()
|
|
89
|
+
@IsOptional()
|
|
90
|
+
sector?: string | null;
|
|
91
|
+
|
|
92
|
+
@ApiPropertyOptional()
|
|
93
|
+
@IsString()
|
|
94
|
+
@IsOptional()
|
|
95
|
+
registrationDate?: string | null;
|
|
96
|
+
|
|
97
|
+
@ApiPropertyOptional()
|
|
98
|
+
@IsString()
|
|
99
|
+
@IsOptional()
|
|
100
|
+
vatNumber?: string | null;
|
|
101
|
+
|
|
102
|
+
@ApiPropertyOptional()
|
|
103
|
+
@IsString()
|
|
104
|
+
@IsOptional()
|
|
105
|
+
addressStreet?: string | null;
|
|
106
|
+
|
|
107
|
+
@ApiPropertyOptional()
|
|
108
|
+
@IsString()
|
|
109
|
+
@IsOptional()
|
|
110
|
+
addressStreet2?: string | null;
|
|
111
|
+
|
|
112
|
+
@ApiPropertyOptional()
|
|
113
|
+
@IsString()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
postalCode?: string | null;
|
|
116
|
+
|
|
117
|
+
@ApiPropertyOptional()
|
|
118
|
+
@IsString()
|
|
119
|
+
@IsOptional()
|
|
120
|
+
city?: string | null;
|
|
121
|
+
|
|
122
|
+
@ApiPropertyOptional()
|
|
123
|
+
@IsString()
|
|
124
|
+
@IsOptional()
|
|
125
|
+
country?: string | null;
|
|
126
|
+
|
|
127
|
+
@ApiProperty()
|
|
128
|
+
@IsString()
|
|
129
|
+
totalCapitalAmount: string;
|
|
130
|
+
|
|
131
|
+
@ApiProperty()
|
|
132
|
+
stakeHolders: ReadStakeHolders;
|
|
133
|
+
|
|
134
|
+
@ApiProperty()
|
|
135
|
+
@IsNumber()
|
|
136
|
+
idSociety: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export class CreateRegistrationFile {
|
|
141
|
+
@ApiProperty()
|
|
142
|
+
file: TFile;
|
|
143
|
+
|
|
144
|
+
@ApiProperty()
|
|
145
|
+
fileType: RegistrationFileType;
|
|
146
|
+
|
|
147
|
+
@ApiPropertyOptional()
|
|
148
|
+
@IsString()
|
|
149
|
+
@IsOptional()
|
|
150
|
+
stakeholderId?: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export class CreateWebhookConfig {
|
|
154
|
+
@ApiProperty()
|
|
155
|
+
@IsString()
|
|
156
|
+
callbackUrl: string;
|
|
157
|
+
|
|
158
|
+
@ApiProperty()
|
|
159
|
+
@IsString()
|
|
160
|
+
secret: string;
|
|
161
|
+
|
|
162
|
+
@ApiPropertyOptional()
|
|
163
|
+
@IsBoolean()
|
|
164
|
+
@ToBoolean()
|
|
165
|
+
@IsOptional()
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
}
|
|
@@ -77,4 +77,106 @@ export type GetQontoAttachment = {
|
|
|
77
77
|
file_size:string;
|
|
78
78
|
url: string | null;
|
|
79
79
|
}
|
|
80
|
-
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export type ReadQontoRegistration = {
|
|
84
|
+
id: string;
|
|
85
|
+
legal_flow: string; // Registration type => company_creation (Company in creation), existing_company (Company already exists)
|
|
86
|
+
flow: {
|
|
87
|
+
type: 'manual' | 'seamless', // which type of flow the user will be redirected
|
|
88
|
+
breakdown: {
|
|
89
|
+
code: string;
|
|
90
|
+
detail: string;
|
|
91
|
+
source: {
|
|
92
|
+
pointer: string;
|
|
93
|
+
}
|
|
94
|
+
} | null;
|
|
95
|
+
};
|
|
96
|
+
status: 'created' | 'pending' | 'user_started' | 'price_plan_selected' | 'contract_signed' | 'submitted' | 'capital_deposit_activated' | 'capital_deposit_request_signed' | 'capital_deposit_certificate_signed' | 'completed';
|
|
97
|
+
redirection_link: string; // link where the user is redirected
|
|
98
|
+
created_at: string;
|
|
99
|
+
updated_at: string;
|
|
100
|
+
locale: string;
|
|
101
|
+
partner_user: {
|
|
102
|
+
first_name: string | null;
|
|
103
|
+
last_name: string | null;
|
|
104
|
+
email: string | null;
|
|
105
|
+
};
|
|
106
|
+
organization: ReadOrganization,
|
|
107
|
+
stakeholders: ReadStakeHolder[]
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type ReadOrganization = {
|
|
111
|
+
id?: string;
|
|
112
|
+
entity_type: 'freelancer' | 'company';
|
|
113
|
+
legal_name: string | null;
|
|
114
|
+
legal_form: string | null;
|
|
115
|
+
legal_number?: string | null;
|
|
116
|
+
legal_sector?: string | null;
|
|
117
|
+
legal_registration_date?: string | null;
|
|
118
|
+
legal_vat_number?: string | null;
|
|
119
|
+
address: {
|
|
120
|
+
line_1: string | null;
|
|
121
|
+
line_2?: string | null;
|
|
122
|
+
postal_code: string | null;
|
|
123
|
+
city: string | null;
|
|
124
|
+
country: string | null;
|
|
125
|
+
};
|
|
126
|
+
total_capital_amount: {
|
|
127
|
+
value: string;
|
|
128
|
+
currency: 'EUR'
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export class ReadStakeHolder {
|
|
133
|
+
id?: string;
|
|
134
|
+
capital_amount: {
|
|
135
|
+
value: string;
|
|
136
|
+
currency: 'EUR'
|
|
137
|
+
};
|
|
138
|
+
is_owner: boolean | null;
|
|
139
|
+
first_name: string | null;
|
|
140
|
+
last_name: string | null;
|
|
141
|
+
email: string | null;
|
|
142
|
+
gender: 'male' | 'female' | 'other' | null;
|
|
143
|
+
phone_number: string | null;
|
|
144
|
+
nationality: string | null; // ISO country code
|
|
145
|
+
birth_date: string | null;
|
|
146
|
+
birth_address: {
|
|
147
|
+
postal_code: string | null;
|
|
148
|
+
city: string | null;
|
|
149
|
+
country: string | null;
|
|
150
|
+
};
|
|
151
|
+
residence_address: {
|
|
152
|
+
line_1: string | null;
|
|
153
|
+
postal_code: string | null;
|
|
154
|
+
city: string | null;
|
|
155
|
+
country: string | null;
|
|
156
|
+
};
|
|
157
|
+
shareholding_type: 'physical' | null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type ReadStakeHolders = ReadStakeHolder[];
|
|
161
|
+
|
|
162
|
+
export class ReadQontoRegistrationFile {
|
|
163
|
+
id: string;
|
|
164
|
+
filename: string;
|
|
165
|
+
filesize_bytes: number;
|
|
166
|
+
url: string; // TTL of 2 hours
|
|
167
|
+
created_at: string;
|
|
168
|
+
file_type: string;
|
|
169
|
+
stakeholder_id: string | null;
|
|
170
|
+
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export type ReadQontoWebhookConfig = {
|
|
174
|
+
id: string;
|
|
175
|
+
created_at: string;
|
|
176
|
+
updated_at: string;
|
|
177
|
+
callback_url: string;
|
|
178
|
+
enabled: boolean;
|
|
179
|
+
secret: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export type RegistrationFileType = 'organization-deposit-certificate' | 'organization-proof-of-address' | 'organization-by-laws' | 'organization-kbis' | 'stakeholder-proof-of-identity' | 'stakeholder-residence-permit';
|
|
@@ -8,58 +8,58 @@ export class UpdateSociety {
|
|
|
8
8
|
idTypeCompta?: number;
|
|
9
9
|
|
|
10
10
|
@ApiPropertyOptional()
|
|
11
|
-
idUser?: number;
|
|
11
|
+
idUser?: number | null;
|
|
12
12
|
|
|
13
13
|
@ApiPropertyOptional()
|
|
14
|
-
name?: string;
|
|
14
|
+
name?: string | null;
|
|
15
15
|
|
|
16
16
|
@ApiPropertyOptional()
|
|
17
|
-
address?: string;
|
|
17
|
+
address?: string | null;
|
|
18
18
|
|
|
19
19
|
@ApiPropertyOptional()
|
|
20
|
-
city?: string;
|
|
20
|
+
city?: string | null;
|
|
21
21
|
|
|
22
22
|
@ApiPropertyOptional()
|
|
23
|
-
zipCode?: string;
|
|
23
|
+
zipCode?: string | null;
|
|
24
24
|
|
|
25
25
|
@ApiPropertyOptional()
|
|
26
|
-
idCountry?: number;
|
|
26
|
+
idCountry?: number | null;
|
|
27
27
|
|
|
28
28
|
@ApiPropertyOptional()
|
|
29
|
-
idActivity?: number;
|
|
29
|
+
idActivity?: number | null;
|
|
30
30
|
|
|
31
31
|
@ApiPropertyOptional()
|
|
32
|
-
idVatRegime?: number;
|
|
32
|
+
idVatRegime?: number | null;
|
|
33
33
|
|
|
34
34
|
@ApiPropertyOptional()
|
|
35
|
-
idLegalForm?: number;
|
|
35
|
+
idLegalForm?: number | null;
|
|
36
36
|
|
|
37
37
|
@ApiPropertyOptional()
|
|
38
|
-
idFiscalRegime?: number;
|
|
38
|
+
idFiscalRegime?: number | null;
|
|
39
39
|
|
|
40
40
|
@ApiPropertyOptional()
|
|
41
|
-
profitsType?: number;
|
|
41
|
+
profitsType?: number | null;
|
|
42
42
|
|
|
43
43
|
@ApiPropertyOptional()
|
|
44
|
-
idTaxSystem?: number;
|
|
44
|
+
idTaxSystem?: number | null;
|
|
45
45
|
|
|
46
46
|
@ApiPropertyOptional()
|
|
47
47
|
exercicePeriod?: { start: string, end: string };
|
|
48
48
|
|
|
49
49
|
@ApiPropertyOptional()
|
|
50
|
-
confirmedAt?: string;
|
|
50
|
+
confirmedAt?: string | null;
|
|
51
51
|
|
|
52
52
|
@ApiPropertyOptional()
|
|
53
|
-
socialCapital?: string;
|
|
53
|
+
socialCapital?: string | null;
|
|
54
54
|
|
|
55
55
|
@ApiPropertyOptional()
|
|
56
|
-
siret?: string;
|
|
56
|
+
siret?: string | null;
|
|
57
57
|
|
|
58
58
|
@ApiPropertyOptional()
|
|
59
|
-
oldNafCode?: string;
|
|
59
|
+
oldNafCode?: string | null;
|
|
60
60
|
|
|
61
61
|
@ApiPropertyOptional()
|
|
62
|
-
vatUploadDay?: number;
|
|
62
|
+
vatUploadDay?: number | null;
|
|
63
63
|
|
|
64
64
|
@ApiPropertyOptional()
|
|
65
65
|
startAt?: Date;
|
package/ts/types/index.ts
CHANGED
|
@@ -963,12 +963,10 @@ export * from './Interface/api/connector/QueryConnector';
|
|
|
963
963
|
export * from './Interface/api/connection/QueryConnectionState';
|
|
964
964
|
export * from './Interface/api/connection/ReadConnectionState';
|
|
965
965
|
export * from './Interface/api/qonto/Query';
|
|
966
|
-
export * from './Interface/api/qonto/
|
|
966
|
+
export * from './Interface/api/qonto/Create';
|
|
967
967
|
export * from './Interface/api/stripe/Create';
|
|
968
968
|
export * from './Interface/api/qonto/UpdateConnection';
|
|
969
|
-
export * from './Interface/api/qonto/CreateQontoConnection';
|
|
970
969
|
export * from './Interface/api/qonto/GetConnectionInformation';
|
|
971
|
-
export * from './Interface/api/qonto/ProcessBankAccount';
|
|
972
970
|
export * from './Interface/api/qonto/Read';
|
|
973
971
|
export * from './Interface/api/file/Create';
|
|
974
972
|
export * from './Interface/api/file/Read';
|
|
@@ -38,7 +38,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
38
38
|
const vatReducedRate2Dot1 = setZeroIfIsNegative(getAmountByAccountNumber(vatEntries.filter((ae) => ae.idVat === Vat.TX_2_1.id), taxedOperationsAccounts, 0, true));
|
|
39
39
|
|
|
40
40
|
const prestation2Entries = vatEntries.filter((ae) => intracomVat.includes(ae.idVat));
|
|
41
|
-
const presta2Accounts = ['604', '61', '62'];
|
|
41
|
+
const presta2Accounts = ['604', '61', '62', '607', '651', '601', '602']; // Ajout suite à la demande de Ben x Angelo
|
|
42
42
|
const prestation2Base = setZeroIfIsNegative(getAmountByAccountNumber(prestation2Entries, presta2Accounts, 0, true));
|
|
43
43
|
const prestation2AmountOfVat = setZeroIfIsNegative(getTaxAmountByAccountNumber(prestation2Entries, presta2Accounts));
|
|
44
44
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateImportation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateImportation.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;IAI1B,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAE;CACrB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateImportation = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
class CreateImportation {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
(0, class_validator_1.IsDateString)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], CreateImportation.prototype, "minDate", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.IsDateString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CreateImportation.prototype, "maxDate", void 0);
|
|
29
|
-
exports.CreateImportation = CreateImportation;
|
|
30
|
-
//# sourceMappingURL=CreateImportation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateImportation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateImportation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAC3D,6CAAwD;AAExD,MAAa,iBAAiB;CAU7B;AATC;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;kDACI;AAEnB;IAAC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;kDACK;AATtB,8CAUC","sourcesContent":["import { IsDateString, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateImportation {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string ;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateQontoConnection.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateQontoConnection.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAG9B,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreateQontoConnection = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
class CreateQontoConnection {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, utils_1.ApiProperty)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreateQontoConnection.prototype, "login", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, utils_1.ApiProperty)(),
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CreateQontoConnection.prototype, "password", void 0);
|
|
27
|
-
exports.CreateQontoConnection = CreateQontoConnection;
|
|
28
|
-
//# sourceMappingURL=CreateQontoConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateQontoConnection.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateQontoConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6CAAgD;AAEhD,MAAa,qBAAqB;CAQjC;AAPC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACK;AAEhB;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;uDACQ;AAPrB,sDAQC","sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class CreateQontoConnection {\n @ApiProperty()\n @IsString()\n login: string;\n\n @ApiProperty()\n @IsString()\n password: string;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessBankAccount.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/ProcessBankAccount.ts"],"names":[],"mappings":"AAGA,qBAAa,kBAAkB;IAG3B,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAI5B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ProcessBankAccount = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
class ProcessBankAccount {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, utils_1.ApiProperty)(),
|
|
19
|
-
(0, class_validator_1.IsArray)(),
|
|
20
|
-
__metadata("design:type", Array)
|
|
21
|
-
], ProcessBankAccount.prototype, "idsSlugToAdd", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, utils_1.ApiProperty)(),
|
|
24
|
-
(0, class_validator_1.IsArray)(),
|
|
25
|
-
__metadata("design:type", Array)
|
|
26
|
-
], ProcessBankAccount.prototype, "idsSlugToRemove", void 0);
|
|
27
|
-
exports.ProcessBankAccount = ProcessBankAccount;
|
|
28
|
-
//# sourceMappingURL=ProcessBankAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessBankAccount.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/ProcessBankAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAC1C,6CAAgD;AAEhD,MAAa,kBAAkB;CAQ9B;AAPC;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;8BACM,KAAK;wDAAS;AAE9B;IAAC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;8BACS,KAAK;2DAAS;AAPnC,gDAQC","sourcesContent":["import { IsArray } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class ProcessBankAccount {\n @ApiProperty()\n @IsArray()\n idsSlugToAdd: Array<string>;\n\n @ApiProperty()\n @IsArray()\n idsSlugToRemove: Array<string>;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateImportation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateImportation.ts"],"names":[],"mappings":"AAGA,qBAAa,iBAAiB;IAI1B,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAE;CACrB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsDateString, IsOptional } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
export class CreateImportation {
|
|
13
|
-
minDate;
|
|
14
|
-
maxDate;
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
ApiPropertyOptional(),
|
|
18
|
-
IsOptional(),
|
|
19
|
-
IsDateString(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreateImportation.prototype, "minDate", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
ApiPropertyOptional(),
|
|
24
|
-
IsOptional(),
|
|
25
|
-
IsDateString(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CreateImportation.prototype, "maxDate", void 0);
|
|
28
|
-
//# sourceMappingURL=CreateImportation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateImportation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/CreateImportation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,iBAAiB;IAI1B,OAAO,CAAU;IAKjB,OAAO,CAAW;CACrB;AATC;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;kDACI;AAEnB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;kDACK","sourcesContent":["import { IsDateString, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateImportation {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string ;\n}"]}
|