@silexpert/core 1.3.97 → 1.3.99-1
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 +1 -11
- package/dist/cjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/cjs/api/resources/Qonto.js +0 -29
- package/dist/cjs/api/resources/Qonto.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +18 -11
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +28 -10
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Form/FormConnector.d.ts +1 -0
- package/dist/cjs/types/Form/FormConnector.d.ts.map +1 -1
- package/dist/cjs/types/Form/FormConnector.js +85 -0
- package/dist/cjs/types/Form/FormConnector.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.d.ts +8 -0
- package/dist/cjs/types/Interface/api/card/Cron.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/Cron.js +39 -0
- package/dist/cjs/types/Interface/api/card/Cron.js.map +1 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +4 -17
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +12 -0
- package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{companeo/CompaneoReturn.js → connector/OAuthTokenRequest.js} +1 -1
- package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts +0 -34
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Create.js +1 -155
- package/dist/cjs/types/Interface/api/qonto/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts +0 -44
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Query.js +1 -4
- package/dist/cjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +3 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Qonto.d.ts +1 -11
- package/dist/mjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/mjs/api/resources/Qonto.js +0 -29
- package/dist/mjs/api/resources/Qonto.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +18 -11
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +28 -10
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Form/FormConnector.d.ts +1 -0
- package/dist/mjs/types/Form/FormConnector.d.ts.map +1 -1
- package/dist/mjs/types/Form/FormConnector.js +86 -11
- package/dist/mjs/types/Form/FormConnector.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.d.ts +8 -0
- package/dist/mjs/types/Interface/api/card/Cron.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/Cron.js +37 -0
- package/dist/mjs/types/Interface/api/card/Cron.js.map +1 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +4 -17
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +12 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js +2 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts +0 -34
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Create.js +1 -178
- package/dist/mjs/types/Interface/api/qonto/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts +0 -44
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Query.js +0 -9
- package/dist/mjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +2 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
- package/dist/mjs/types/index.d.ts +1 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Qonto.ts +0 -43
- package/ts/types/Enum/Card.ts +29 -11
- package/ts/types/Form/FormConnector.ts +41 -11
- package/ts/types/Interface/api/card/Cron.ts +21 -0
- package/ts/types/Interface/api/config/ConfigType.ts +2 -19
- package/ts/types/Interface/api/connector/OAuthTokenRequest.ts +12 -0
- package/ts/types/Interface/api/qonto/Create.ts +1 -128
- package/ts/types/Interface/api/qonto/Query.ts +0 -64
- package/ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts +10 -0
- package/ts/types/index.ts +1 -1
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.d.ts +0 -46
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.d.ts +0 -46
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.js +0 -2
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/ts/types/Interface/api/companeo/CompaneoReturn.ts +0 -47
|
@@ -5,15 +5,8 @@ import {
|
|
|
5
5
|
GetConnectionInformation,
|
|
6
6
|
GetQontoOrganization,
|
|
7
7
|
IBankAccount,
|
|
8
|
-
IBankConnection,
|
|
9
8
|
ReadCreateConnection,
|
|
10
|
-
UpdateConnection,
|
|
11
9
|
CreateImportationResult,
|
|
12
|
-
CreateQontoRegistration,
|
|
13
|
-
ReadQontoRegistration,
|
|
14
|
-
CreateRegistrationFile,
|
|
15
|
-
CreateWebhookConfig,
|
|
16
|
-
ReadQontoWebhookConfig,
|
|
17
10
|
} from '../../types';
|
|
18
11
|
import { Resource } from '../Resource';
|
|
19
12
|
|
|
@@ -37,40 +30,4 @@ export class Qonto extends Resource {
|
|
|
37
30
|
create(payload: CreateQontoConnection): Promise<ReadCreateConnection> {
|
|
38
31
|
return this.axios.$post('connectors/qonto/connections', payload);
|
|
39
32
|
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated use create
|
|
43
|
-
*/
|
|
44
|
-
updateConnection(idBankConnection: number, payload: UpdateConnection): Promise<IBankConnection> {
|
|
45
|
-
return this.axios.$put(`connectors/qonto/connections/${idBankConnection}`, payload);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
createRegistration(params: CreateQontoRegistration): Promise<ReadQontoRegistration> {
|
|
49
|
-
return this.axios.$post('connectors/qonto/registrations', params);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
getRegistration(idRegistration: string): Promise<ReadQontoRegistration> {
|
|
53
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}`);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
createRegistrationFile(idRegistration: string, params: CreateRegistrationFile): Promise<ReadQontoRegistration> {
|
|
57
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/files`, params, {
|
|
58
|
-
responseType: 'arraybuffer',
|
|
59
|
-
headers: {
|
|
60
|
-
Accept: 'application/pdf',
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
getRegistrationFileBuffer(idRegistration: string, idFile: string): Promise<Buffer> {
|
|
66
|
-
return this.axios.$get(`connectors/qonto/registrations/${idRegistration}/files/${idFile}/download`);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
createWebhookConfig(params: CreateWebhookConfig): Promise<ReadQontoWebhookConfig> {
|
|
70
|
-
return this.axios.$post('connectors/qonto/registrations/webhooks-configs', params);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
triggerNewMailForRegistrationLink(idRegistration: string): Promise<void> {
|
|
74
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/email`);
|
|
75
|
-
}
|
|
76
33
|
}
|
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -17,9 +17,9 @@ export enum CardType {
|
|
|
17
17
|
CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage
|
|
18
18
|
SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1
|
|
19
19
|
VAT_REFUSED_SIE = 15, // TVA Refus SIE
|
|
20
|
-
|
|
20
|
+
ADVANCE_IS_PREPARATION = 16, // Acompte IS préparation
|
|
21
21
|
VAT_EXPRESS = 17, // TVA EXPRESS
|
|
22
|
-
ADVANCE_IS_REFUSED_SIE = 18, // Acompte Refus SIE
|
|
22
|
+
ADVANCE_IS_REFUSED_SIE = 18, // Acompte IS Refus SIE
|
|
23
23
|
CLR = 19, // CLR
|
|
24
24
|
CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)
|
|
25
25
|
CUT_OFF = 21, // Cut Off
|
|
@@ -32,6 +32,7 @@ export enum CardType {
|
|
|
32
32
|
ADVANCE_SIMPLIFIED_VAT_PREPARATION = 28, // Acompte de TVA préparation
|
|
33
33
|
ADVANCE_SIMPLIFIED_VAT_SEND_SIE = 29, // Acompte de TVA envoi SIE
|
|
34
34
|
VAT_SEND_SIE = 30, // TVA envoi SIE
|
|
35
|
+
ADVANCE_IS_SEND_SIE = 31, // Acompte IS envoi SIE
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export enum CardState {
|
|
@@ -51,6 +52,7 @@ export enum CardGroupEnum {
|
|
|
51
52
|
ANNOTATION = 7,
|
|
52
53
|
CLR = 8,
|
|
53
54
|
CUT_OFF = 9,
|
|
55
|
+
ADVANCE_IS_GROUP = 10,
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
export interface CardGroupType {
|
|
@@ -87,13 +89,23 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
87
89
|
CardType.VAT_EXPRESS,
|
|
88
90
|
CardType.ADVANCE_SIMPLIFIED_VAT_PREPARATION,
|
|
89
91
|
CardType.ADVANCE_SIMPLIFIED_VAT_SEND_SIE,
|
|
90
|
-
|
|
92
|
+
],
|
|
93
|
+
roles: [Role.ACCOUNTANT],
|
|
94
|
+
teamType: TeamType.VAT,
|
|
95
|
+
maxByDay: 6,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
99
|
+
label: 'Acomptes IS',
|
|
100
|
+
types: [
|
|
101
|
+
CardType.ADVANCE_IS_PREPARATION,
|
|
102
|
+
CardType.ADVANCE_IS_SEND_SIE,
|
|
91
103
|
CardType.ADVANCE_IS_REFUSED_SIE,
|
|
92
104
|
CardType.ADVANCE_IS_REFUSED_BY_CLIENT,
|
|
93
105
|
],
|
|
94
106
|
roles: [Role.ACCOUNTANT],
|
|
95
107
|
teamType: TeamType.VAT,
|
|
96
|
-
maxByDay:
|
|
108
|
+
maxByDay: 4,
|
|
97
109
|
},
|
|
98
110
|
{
|
|
99
111
|
id: CardGroupEnum.CARRY_FORWARD,
|
|
@@ -223,22 +235,28 @@ export const CardTypeLabel = [
|
|
|
223
235
|
groupId: CardGroupEnum.VAT_GROUP,
|
|
224
236
|
},
|
|
225
237
|
{
|
|
226
|
-
id: CardType.
|
|
227
|
-
label: 'Acompte IS',
|
|
238
|
+
id: CardType.ADVANCE_IS_PREPARATION,
|
|
239
|
+
label: 'Acompte IS préparation',
|
|
228
240
|
refLabel: 'AIS',
|
|
229
|
-
groupId: CardGroupEnum.
|
|
241
|
+
groupId: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
id: CardType.ADVANCE_IS_SEND_SIE,
|
|
245
|
+
label: 'Acompte IS envoi SIE',
|
|
246
|
+
refLabel: 'AIS-SIE',
|
|
247
|
+
groupId: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
230
248
|
},
|
|
231
249
|
{
|
|
232
250
|
id: CardType.ADVANCE_IS_REFUSED_SIE,
|
|
233
|
-
label: 'Acompte Refus SIE',
|
|
251
|
+
label: 'Acompte IS Refus SIE',
|
|
234
252
|
refLabel: 'ARS',
|
|
235
|
-
groupId: CardGroupEnum.
|
|
253
|
+
groupId: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
236
254
|
},
|
|
237
255
|
{
|
|
238
256
|
id: CardType.ADVANCE_IS_REFUSED_BY_CLIENT,
|
|
239
|
-
label: 'Acompte Refus Client',
|
|
257
|
+
label: 'Acompte IS Refus Client',
|
|
240
258
|
refLabel: 'ARC',
|
|
241
|
-
groupId: CardGroupEnum.
|
|
259
|
+
groupId: CardGroupEnum.ADVANCE_IS_GROUP,
|
|
242
260
|
},
|
|
243
261
|
{
|
|
244
262
|
id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
|
|
@@ -1,36 +1,66 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
+
import { IsString, IsOptional, IsNumber, IsDate, IsEnum } from 'class-validator';
|
|
3
|
+
import { Type } from 'class-transformer';
|
|
1
4
|
import { ConnectorType } from '../Enum/ConnectorType';
|
|
2
5
|
|
|
3
6
|
export class FormConnector {
|
|
4
|
-
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsNumber()
|
|
5
10
|
id?: number;
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsString()
|
|
8
15
|
username?: string;
|
|
9
16
|
|
|
10
|
-
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsString()
|
|
11
20
|
pass?: string;
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsString()
|
|
14
25
|
url?: string;
|
|
15
26
|
|
|
16
|
-
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsString()
|
|
17
30
|
token?: string;
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsString()
|
|
20
35
|
token2?: string;
|
|
21
36
|
|
|
22
|
-
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsString()
|
|
23
40
|
token3?: string;
|
|
24
41
|
|
|
25
|
-
|
|
42
|
+
@ApiPropertyOptional()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsString()
|
|
26
45
|
token4?: string;
|
|
27
46
|
|
|
28
|
-
|
|
47
|
+
@ApiPropertyOptional({ type: String, format: 'date-time' })
|
|
48
|
+
@IsOptional()
|
|
49
|
+
@IsDate()
|
|
50
|
+
@Type(() => Date)
|
|
29
51
|
date?: Date;
|
|
30
52
|
|
|
31
|
-
|
|
53
|
+
@ApiProperty({ enum: ConnectorType })
|
|
54
|
+
@IsEnum(ConnectorType)
|
|
32
55
|
idTypeConnector: ConnectorType;
|
|
33
56
|
|
|
34
|
-
|
|
57
|
+
@ApiPropertyOptional()
|
|
58
|
+
@IsOptional()
|
|
59
|
+
@IsNumber()
|
|
35
60
|
idSociety?: number;
|
|
61
|
+
|
|
62
|
+
@ApiPropertyOptional()
|
|
63
|
+
@IsOptional()
|
|
64
|
+
@IsNumber()
|
|
65
|
+
expiresIn?: number;
|
|
36
66
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class GenerateVatCard {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsInt()
|
|
8
|
+
idSociety?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class GenerateAdvanceISCard {
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
idSociety?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
month?: number;
|
|
21
|
+
}
|
|
@@ -17,11 +17,9 @@ export interface ConfigType {
|
|
|
17
17
|
brand: ConfigBrand;
|
|
18
18
|
ocr: Ocr;
|
|
19
19
|
jeDeclare: JeDeclare;
|
|
20
|
-
notification: Notification;
|
|
21
20
|
pdfizer: Pdfizer;
|
|
22
21
|
iDocus: IDocus;
|
|
23
|
-
imageMagick:
|
|
24
|
-
companeo: Companeo;
|
|
22
|
+
imageMagick: { url: string };
|
|
25
23
|
inpi: Inpi;
|
|
26
24
|
brevo: Brevo;
|
|
27
25
|
tinyurl: LambdaInfos;
|
|
@@ -32,7 +30,7 @@ export interface ConfigType {
|
|
|
32
30
|
pdftkizer: LambdaInfos;
|
|
33
31
|
sharper: LambdaInfos;
|
|
34
32
|
chartizer: LambdaInfos;
|
|
35
|
-
authentication
|
|
33
|
+
authentication?: Authentication;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
interface Authentication {
|
|
@@ -41,7 +39,6 @@ interface Authentication {
|
|
|
41
39
|
|
|
42
40
|
interface LambdaInfos {
|
|
43
41
|
url: string;
|
|
44
|
-
key: string;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
interface Mongodb {
|
|
@@ -157,7 +154,6 @@ interface DefaultPermissions {
|
|
|
157
154
|
|
|
158
155
|
interface Crisp {
|
|
159
156
|
identifier: string;
|
|
160
|
-
key: string;
|
|
161
157
|
}
|
|
162
158
|
|
|
163
159
|
interface ConfigBrand {
|
|
@@ -205,29 +201,17 @@ interface Wsdl2 {
|
|
|
205
201
|
url: string;
|
|
206
202
|
}
|
|
207
203
|
|
|
208
|
-
export interface Notification {
|
|
209
|
-
hookToken: string;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
204
|
interface Pdfizer {
|
|
213
205
|
url: string;
|
|
214
|
-
key: string;
|
|
215
206
|
}
|
|
216
207
|
|
|
217
208
|
interface IDocus {
|
|
218
209
|
baseUrl: string;
|
|
219
210
|
callbackurl: string;
|
|
220
|
-
authorizationKey: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
interface Companeo {
|
|
224
|
-
username: string;
|
|
225
|
-
pass: string;
|
|
226
211
|
}
|
|
227
212
|
|
|
228
213
|
interface Inpi {
|
|
229
214
|
username: string;
|
|
230
|
-
password: string;
|
|
231
215
|
}
|
|
232
216
|
|
|
233
217
|
interface Brevo {
|
|
@@ -242,5 +226,4 @@ interface Brevo {
|
|
|
242
226
|
interface Echo {
|
|
243
227
|
url: string;
|
|
244
228
|
accountid: string;
|
|
245
|
-
apikey: string;
|
|
246
229
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { IsDateString, IsOptional, IsString, IsArray
|
|
1
|
+
import { IsDateString, IsOptional, IsString, IsArray } from 'class-validator';
|
|
2
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
3
|
|
|
7
4
|
export class CreateImportation {
|
|
8
5
|
@ApiPropertyOptional()
|
|
@@ -35,127 +32,3 @@ export class ProcessBankAccount {
|
|
|
35
32
|
@IsArray()
|
|
36
33
|
idsSlugToRemove: Array<string>;
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
export class CreateQontoRegistration {
|
|
40
|
-
@ApiProperty()
|
|
41
|
-
@IsString()
|
|
42
|
-
legalFlow: 'company_creation' | 'existing_company';
|
|
43
|
-
|
|
44
|
-
@ApiProperty()
|
|
45
|
-
@IsString()
|
|
46
|
-
locale: 'en' | 'fr' | 'it' | 'es' | 'de';
|
|
47
|
-
|
|
48
|
-
@ApiPropertyOptional()
|
|
49
|
-
@IsString()
|
|
50
|
-
@IsOptional()
|
|
51
|
-
firstName?: string | null;
|
|
52
|
-
|
|
53
|
-
@ApiPropertyOptional()
|
|
54
|
-
@IsString()
|
|
55
|
-
@IsOptional()
|
|
56
|
-
lastName?: string | null;
|
|
57
|
-
|
|
58
|
-
@ApiPropertyOptional()
|
|
59
|
-
@IsString()
|
|
60
|
-
@IsOptional()
|
|
61
|
-
email?: string | null;
|
|
62
|
-
|
|
63
|
-
@ApiProperty()
|
|
64
|
-
@IsString()
|
|
65
|
-
entityType: 'freelancer' | 'company';
|
|
66
|
-
|
|
67
|
-
@ApiPropertyOptional()
|
|
68
|
-
@IsString()
|
|
69
|
-
@IsOptional()
|
|
70
|
-
legalName?: string | null;
|
|
71
|
-
|
|
72
|
-
@ApiPropertyOptional()
|
|
73
|
-
@IsString()
|
|
74
|
-
@IsOptional()
|
|
75
|
-
legalForm?: string | null;
|
|
76
|
-
|
|
77
|
-
@ApiPropertyOptional()
|
|
78
|
-
@IsString()
|
|
79
|
-
@IsOptional()
|
|
80
|
-
number?: string | null;
|
|
81
|
-
|
|
82
|
-
@ApiPropertyOptional()
|
|
83
|
-
@IsString()
|
|
84
|
-
@IsOptional()
|
|
85
|
-
sector?: string | null;
|
|
86
|
-
|
|
87
|
-
@ApiPropertyOptional()
|
|
88
|
-
@IsString()
|
|
89
|
-
@IsOptional()
|
|
90
|
-
registrationDate?: string | null;
|
|
91
|
-
|
|
92
|
-
@ApiPropertyOptional()
|
|
93
|
-
@IsString()
|
|
94
|
-
@IsOptional()
|
|
95
|
-
vatNumber?: string | null;
|
|
96
|
-
|
|
97
|
-
@ApiPropertyOptional()
|
|
98
|
-
@IsString()
|
|
99
|
-
@IsOptional()
|
|
100
|
-
addressStreet?: string | null;
|
|
101
|
-
|
|
102
|
-
@ApiPropertyOptional()
|
|
103
|
-
@IsString()
|
|
104
|
-
@IsOptional()
|
|
105
|
-
addressStreet2?: string | null;
|
|
106
|
-
|
|
107
|
-
@ApiPropertyOptional()
|
|
108
|
-
@IsString()
|
|
109
|
-
@IsOptional()
|
|
110
|
-
postalCode?: string | null;
|
|
111
|
-
|
|
112
|
-
@ApiPropertyOptional()
|
|
113
|
-
@IsString()
|
|
114
|
-
@IsOptional()
|
|
115
|
-
city?: string | null;
|
|
116
|
-
|
|
117
|
-
@ApiPropertyOptional()
|
|
118
|
-
@IsString()
|
|
119
|
-
@IsOptional()
|
|
120
|
-
country?: string | null;
|
|
121
|
-
|
|
122
|
-
@ApiProperty()
|
|
123
|
-
@IsString()
|
|
124
|
-
totalCapitalAmount: string;
|
|
125
|
-
|
|
126
|
-
@ApiProperty()
|
|
127
|
-
stakeHolders: ReadStakeHolders;
|
|
128
|
-
|
|
129
|
-
@ApiProperty()
|
|
130
|
-
@IsNumber()
|
|
131
|
-
idSociety: number;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export class CreateRegistrationFile {
|
|
135
|
-
@ApiProperty()
|
|
136
|
-
file: TFile;
|
|
137
|
-
|
|
138
|
-
@ApiProperty()
|
|
139
|
-
fileType: RegistrationFileType;
|
|
140
|
-
|
|
141
|
-
@ApiPropertyOptional()
|
|
142
|
-
@IsString()
|
|
143
|
-
@IsOptional()
|
|
144
|
-
stakeholderId?: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export class CreateWebhookConfig {
|
|
148
|
-
@ApiProperty()
|
|
149
|
-
@IsString()
|
|
150
|
-
callbackUrl: string;
|
|
151
|
-
|
|
152
|
-
@ApiProperty()
|
|
153
|
-
@IsString()
|
|
154
|
-
secret: string;
|
|
155
|
-
|
|
156
|
-
@ApiPropertyOptional()
|
|
157
|
-
@IsBoolean()
|
|
158
|
-
@ToBoolean()
|
|
159
|
-
@IsOptional()
|
|
160
|
-
enabled: boolean;
|
|
161
|
-
}
|
|
@@ -79,43 +79,6 @@ export type GetQontoAttachment = {
|
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export type ReadQontoRegistration = {
|
|
83
|
-
id: string;
|
|
84
|
-
legal_flow: string; // Registration type => company_creation (Company in creation), existing_company (Company already exists)
|
|
85
|
-
flow: {
|
|
86
|
-
type: 'manual' | 'seamless'; // which type of flow the user will be redirected
|
|
87
|
-
breakdown: {
|
|
88
|
-
code: string;
|
|
89
|
-
detail: string;
|
|
90
|
-
source: {
|
|
91
|
-
pointer: string;
|
|
92
|
-
};
|
|
93
|
-
} | null;
|
|
94
|
-
};
|
|
95
|
-
status:
|
|
96
|
-
| 'created'
|
|
97
|
-
| 'pending'
|
|
98
|
-
| 'user_started'
|
|
99
|
-
| 'price_plan_selected'
|
|
100
|
-
| 'contract_signed'
|
|
101
|
-
| 'submitted'
|
|
102
|
-
| 'capital_deposit_activated'
|
|
103
|
-
| 'capital_deposit_request_signed'
|
|
104
|
-
| 'capital_deposit_certificate_signed'
|
|
105
|
-
| 'completed';
|
|
106
|
-
redirection_link: string; // link where the user is redirected
|
|
107
|
-
created_at: string;
|
|
108
|
-
updated_at: string;
|
|
109
|
-
locale: string;
|
|
110
|
-
partner_user: {
|
|
111
|
-
first_name: string | null;
|
|
112
|
-
last_name: string | null;
|
|
113
|
-
email: string | null;
|
|
114
|
-
};
|
|
115
|
-
organization: ReadOrganization;
|
|
116
|
-
stakeholders: ReadStakeHolder[];
|
|
117
|
-
};
|
|
118
|
-
|
|
119
82
|
export type ReadOrganization = {
|
|
120
83
|
id?: string;
|
|
121
84
|
entity_type: 'freelancer' | 'company';
|
|
@@ -167,30 +130,3 @@ export class ReadStakeHolder {
|
|
|
167
130
|
}
|
|
168
131
|
|
|
169
132
|
export type ReadStakeHolders = ReadStakeHolder[];
|
|
170
|
-
|
|
171
|
-
export class ReadQontoRegistrationFile {
|
|
172
|
-
id: string;
|
|
173
|
-
filename: string;
|
|
174
|
-
filesize_bytes: number;
|
|
175
|
-
url: string; // TTL of 2 hours
|
|
176
|
-
created_at: string;
|
|
177
|
-
file_type: string;
|
|
178
|
-
stakeholder_id: string | null;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export type ReadQontoWebhookConfig = {
|
|
182
|
-
id: string;
|
|
183
|
-
created_at: string;
|
|
184
|
-
updated_at: string;
|
|
185
|
-
callback_url: string;
|
|
186
|
-
enabled: boolean;
|
|
187
|
-
secret: string;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
export type RegistrationFileType =
|
|
191
|
-
| 'organization-deposit-certificate'
|
|
192
|
-
| 'organization-proof-of-address'
|
|
193
|
-
| 'organization-by-laws'
|
|
194
|
-
| 'organization-kbis'
|
|
195
|
-
| 'stakeholder-proof-of-identity'
|
|
196
|
-
| 'stakeholder-residence-permit';
|
package/ts/types/index.ts
CHANGED
|
@@ -765,7 +765,6 @@ export * from './Interface/api/textMessage/Create';
|
|
|
765
765
|
export * from './Interface/api/textMessage/Update';
|
|
766
766
|
export * from './Interface/api/textMessage/Query';
|
|
767
767
|
export * from './Interface/api/textMessage/Read';
|
|
768
|
-
export * from './Interface/api/companeo/CompaneoReturn';
|
|
769
768
|
export * from './Interface/api/inpi/inpi';
|
|
770
769
|
export * from './Interface/api/team/QueryCreate';
|
|
771
770
|
export * from './Interface/api/team/QueryGetAllWithIncludes';
|
|
@@ -1122,6 +1121,7 @@ export * from './Interface/api/config/ConfigType';
|
|
|
1122
1121
|
export * from './Interface/api/card/ModifyBalanceSheet';
|
|
1123
1122
|
export * from './Interface/api/card/ModifyAcceptation';
|
|
1124
1123
|
export * from './Interface/api/card/ModifyCustomerVat';
|
|
1124
|
+
export * from './Interface/api/card/Cron';
|
|
1125
1125
|
export * from './Interface/api/user/RegisterProspect';
|
|
1126
1126
|
export * from './Interface/api/stateBankAccount/Query';
|
|
1127
1127
|
export * from './Interface/api/absenceRequest/QueryAbsenceRequest';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export interface CompaneoQuestionType {
|
|
2
|
-
$: {
|
|
3
|
-
question_id: number;
|
|
4
|
-
};
|
|
5
|
-
value: string;
|
|
6
|
-
reponse: {
|
|
7
|
-
_?: string;
|
|
8
|
-
$: {
|
|
9
|
-
answer_id: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface CompaneoBasicData {
|
|
14
|
-
_?: string;
|
|
15
|
-
$?: {
|
|
16
|
-
code: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface CompaneoReturn {
|
|
20
|
-
id: number;
|
|
21
|
-
lead_id: number;
|
|
22
|
-
dem_num: string;
|
|
23
|
-
lead_date: Date;
|
|
24
|
-
raison_sociale: string;
|
|
25
|
-
civilite: string;
|
|
26
|
-
nom: string;
|
|
27
|
-
prenom: string;
|
|
28
|
-
activite: CompaneoBasicData;
|
|
29
|
-
poste: CompaneoBasicData;
|
|
30
|
-
fonction: CompaneoBasicData;
|
|
31
|
-
code_postal: string;
|
|
32
|
-
ville: string;
|
|
33
|
-
adresse: string;
|
|
34
|
-
adresse2?: string;
|
|
35
|
-
adresse3?: string;
|
|
36
|
-
email: string;
|
|
37
|
-
telephone: string;
|
|
38
|
-
fax: string;
|
|
39
|
-
mobile: string;
|
|
40
|
-
segment: string;
|
|
41
|
-
date_creation: string;
|
|
42
|
-
commentaire: string;
|
|
43
|
-
comment_companeo: string;
|
|
44
|
-
questionnaire: string;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=CompaneoReturn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompaneoReturn.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/companeo/CompaneoReturn.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACP,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,EAAE;YACD,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompaneoReturn.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/companeo/CompaneoReturn.ts"],"names":[],"mappings":"","sourcesContent":["export interface CompaneoQuestionType {\n $: {\n question_id: number;\n };\n value: string;\n reponse: {\n _?: string;\n $: {\n answer_id: number;\n };\n };\n}\n\nexport interface CompaneoBasicData {\n _?: string;\n $?: {\n code: string;\n };\n}\n\nexport interface CompaneoReturn {\n id: number;\n lead_id: number;\n dem_num: string;\n lead_date: Date;\n raison_sociale: string;\n civilite: string;\n nom: string;\n prenom: string;\n activite: CompaneoBasicData;\n poste: CompaneoBasicData;\n fonction: CompaneoBasicData;\n code_postal: string;\n ville: string;\n adresse: string;\n adresse2?: string;\n adresse3?: string;\n email: string;\n telephone: string;\n fax: string;\n mobile: string;\n segment: string;\n date_creation: string;\n commentaire: string;\n comment_companeo: string;\n questionnaire: string;\n}\n"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export interface CompaneoQuestionType {
|
|
2
|
-
$: {
|
|
3
|
-
question_id: number;
|
|
4
|
-
};
|
|
5
|
-
value: string;
|
|
6
|
-
reponse: {
|
|
7
|
-
_?: string;
|
|
8
|
-
$: {
|
|
9
|
-
answer_id: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface CompaneoBasicData {
|
|
14
|
-
_?: string;
|
|
15
|
-
$?: {
|
|
16
|
-
code: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface CompaneoReturn {
|
|
20
|
-
id: number;
|
|
21
|
-
lead_id: number;
|
|
22
|
-
dem_num: string;
|
|
23
|
-
lead_date: Date;
|
|
24
|
-
raison_sociale: string;
|
|
25
|
-
civilite: string;
|
|
26
|
-
nom: string;
|
|
27
|
-
prenom: string;
|
|
28
|
-
activite: CompaneoBasicData;
|
|
29
|
-
poste: CompaneoBasicData;
|
|
30
|
-
fonction: CompaneoBasicData;
|
|
31
|
-
code_postal: string;
|
|
32
|
-
ville: string;
|
|
33
|
-
adresse: string;
|
|
34
|
-
adresse2?: string;
|
|
35
|
-
adresse3?: string;
|
|
36
|
-
email: string;
|
|
37
|
-
telephone: string;
|
|
38
|
-
fax: string;
|
|
39
|
-
mobile: string;
|
|
40
|
-
segment: string;
|
|
41
|
-
date_creation: string;
|
|
42
|
-
commentaire: string;
|
|
43
|
-
comment_companeo: string;
|
|
44
|
-
questionnaire: string;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=CompaneoReturn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompaneoReturn.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/companeo/CompaneoReturn.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE;QACD,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACP,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,EAAE;YACD,SAAS,EAAE,MAAM,CAAC;SACnB,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,KAAK,EAAE,iBAAiB,CAAC;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompaneoReturn.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/companeo/CompaneoReturn.ts"],"names":[],"mappings":"","sourcesContent":["export interface CompaneoQuestionType {\n $: {\n question_id: number;\n };\n value: string;\n reponse: {\n _?: string;\n $: {\n answer_id: number;\n };\n };\n}\n\nexport interface CompaneoBasicData {\n _?: string;\n $?: {\n code: string;\n };\n}\n\nexport interface CompaneoReturn {\n id: number;\n lead_id: number;\n dem_num: string;\n lead_date: Date;\n raison_sociale: string;\n civilite: string;\n nom: string;\n prenom: string;\n activite: CompaneoBasicData;\n poste: CompaneoBasicData;\n fonction: CompaneoBasicData;\n code_postal: string;\n ville: string;\n adresse: string;\n adresse2?: string;\n adresse3?: string;\n email: string;\n telephone: string;\n fax: string;\n mobile: string;\n segment: string;\n date_creation: string;\n commentaire: string;\n comment_companeo: string;\n questionnaire: string;\n}\n"]}
|