@silexpert/core 0.4.265 → 0.4.267
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/es/api/resources/Mail.js +2 -2
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Qonto.d.ts +6 -1
- package/es/api/resources/Qonto.d.ts.map +1 -1
- package/es/api/resources/Qonto.js +16 -1
- package/es/api/resources/Qonto.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +2 -2
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/Rules.d.ts +2 -0
- package/es/types/Enum/Rules.d.ts.map +1 -0
- package/es/types/Enum/Rules.js +19 -0
- package/es/types/Enum/Rules.js.map +1 -0
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +11 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
- package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/CreateImportation.js +26 -0
- package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts +5 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.js +24 -0
- package/es/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts +4 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.js +19 -0
- package/es/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts +5 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.js +24 -0
- package/es/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
- package/es/types/Interface/api/qonto/Query.d.ts +77 -0
- package/es/types/Interface/api/qonto/Query.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/Query.js +2 -0
- package/es/types/Interface/api/qonto/Query.js.map +1 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts +6 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.js +2 -0
- package/es/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts +4 -0
- package/es/types/Interface/api/qonto/UpdateConnection.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/UpdateConnection.js +19 -0
- package/es/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +1 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IPrestationHistory.d.ts +13 -0
- package/es/types/Interface/models/IPrestationHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IPrestationHistory.js +2 -0
- package/es/types/Interface/models/IPrestationHistory.js.map +1 -0
- package/es/types/index.d.ts +9 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +9 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Mail.js +2 -2
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Qonto.js +23 -1
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +2 -2
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/Rules.js +7 -0
- package/js/types/Enum/Rules.js.map +1 -0
- package/js/types/Enum/TaskResponseType.js +10 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/qonto/CreateImportation.js +31 -0
- package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/js/types/Interface/api/qonto/CreateQontoConnection.js +31 -0
- package/js/types/Interface/api/qonto/CreateQontoConnection.js.map +1 -0
- package/js/types/Interface/api/qonto/GetConnectionInformation.js +29 -0
- package/js/types/Interface/api/qonto/GetConnectionInformation.js.map +1 -0
- package/js/types/Interface/api/qonto/ProcessBankAccount.js +31 -0
- package/js/types/Interface/api/qonto/ProcessBankAccount.js.map +1 -0
- package/js/types/Interface/api/qonto/Query.js +6 -0
- package/js/types/Interface/api/qonto/Query.js.map +1 -0
- package/js/types/Interface/api/qonto/ReadCreateConnection.js +6 -0
- package/js/types/Interface/api/qonto/ReadCreateConnection.js.map +1 -0
- package/js/types/Interface/api/qonto/UpdateConnection.js +29 -0
- package/js/types/Interface/api/qonto/UpdateConnection.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +3 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IPrestationHistory.js +6 -0
- package/js/types/Interface/models/IPrestationHistory.js.map +1 -0
- package/js/types/index.js +108 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Mail.ts +2 -2
- package/ts/api/resources/Qonto.ts +27 -5
- package/ts/types/Enum/BrandPourcentage.ts +2 -2
- package/ts/types/Enum/Rules.ts +18 -0
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
- package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
- package/ts/types/Interface/api/qonto/CreateQontoConnection.ts +12 -0
- package/ts/types/Interface/api/qonto/GetConnectionInformation.ts +8 -0
- package/ts/types/Interface/api/qonto/ProcessBankAccount.ts +12 -0
- package/ts/types/Interface/api/qonto/Query.ts +80 -0
- package/ts/types/Interface/api/qonto/ReadCreateConnection.ts +6 -0
- package/ts/types/Interface/api/qonto/UpdateConnection.ts +8 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/Interface/models/IPrestationHistory.ts +16 -0
- package/ts/types/index.ts +9 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsDateString, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateImportation {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsDateString()
|
|
8
|
+
minDate?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsDateString()
|
|
13
|
+
maxDate?: string ;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IsArray } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class ProcessBankAccount {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsArray()
|
|
7
|
+
idsSlugToAdd: Array<string>;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsArray()
|
|
11
|
+
idsSlugToRemove: Array<string>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export type QontoOrganisationBankAccount = {
|
|
2
|
+
slug: string;
|
|
3
|
+
iban: string;
|
|
4
|
+
bic: string | null;
|
|
5
|
+
currency: string;
|
|
6
|
+
balance: number;
|
|
7
|
+
balance_cents: number;
|
|
8
|
+
authorized_balance: number;
|
|
9
|
+
authorized_balance_cents: number;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
status: 'active' | 'closed';
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type GetQontoOrganization = {
|
|
15
|
+
organization: {
|
|
16
|
+
slug: string;
|
|
17
|
+
legal_name: string | null;
|
|
18
|
+
bank_accounts: QontoOrganisationBankAccount[];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type GetQontoTransactionsResponse = {
|
|
23
|
+
transactions: QontoTransaction[];
|
|
24
|
+
meta: {
|
|
25
|
+
current_page: number;
|
|
26
|
+
next_page: number | null;
|
|
27
|
+
prev_page: number | null;
|
|
28
|
+
total_pages: number;
|
|
29
|
+
total_count: number;
|
|
30
|
+
per_page: number;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type QontoTransaction = {
|
|
35
|
+
transaction_id: string;
|
|
36
|
+
amount: number;
|
|
37
|
+
amount_cents: number;
|
|
38
|
+
settled_balance: number;
|
|
39
|
+
settled_balance_cents: number;
|
|
40
|
+
attachment_ids: string[],
|
|
41
|
+
local_amount: number;
|
|
42
|
+
local_amount_cents: number;
|
|
43
|
+
side: string;
|
|
44
|
+
operation_type: string;
|
|
45
|
+
currency: string;
|
|
46
|
+
local_currency: string;
|
|
47
|
+
label: string;
|
|
48
|
+
settled_at: string;
|
|
49
|
+
emitted_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
status: string;
|
|
52
|
+
note: string;
|
|
53
|
+
reference: string | null;
|
|
54
|
+
vat_amount: number | null;
|
|
55
|
+
vat_amount_cents: number | null;
|
|
56
|
+
vat_rate: number | null;
|
|
57
|
+
initiator_id: string | null;
|
|
58
|
+
label_ids: string[];
|
|
59
|
+
attachment_lost: boolean,
|
|
60
|
+
attachment_required: boolean,
|
|
61
|
+
card_last_digits: string | null,
|
|
62
|
+
category: string | null,
|
|
63
|
+
id: string | null
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type GetQontoAttachment = {
|
|
67
|
+
id: string;
|
|
68
|
+
created_at: string;
|
|
69
|
+
file_name: string;
|
|
70
|
+
file_size: string;
|
|
71
|
+
file_content_type: string;
|
|
72
|
+
url: string;
|
|
73
|
+
probative_attachment: {
|
|
74
|
+
status: string;
|
|
75
|
+
file_name: string;
|
|
76
|
+
file_content_type: string;
|
|
77
|
+
file_size:string;
|
|
78
|
+
url: string | null;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
@@ -142,6 +142,9 @@ export enum Code {
|
|
|
142
142
|
bankAccountDesactivationFailed = 'bank_account_desactivation_failed',
|
|
143
143
|
udpateTokenFailed = 'update_token_failed',
|
|
144
144
|
|
|
145
|
+
// qonto
|
|
146
|
+
CONNECTION_ALREADY_EXISTS = 'CONNECTION_ALREADY_EXISTS',
|
|
147
|
+
|
|
145
148
|
// Accounts
|
|
146
149
|
GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',
|
|
147
150
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPrestation } from './IPrestation';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
|
|
4
|
+
// prestationHistory
|
|
5
|
+
export interface IPrestationHistory {
|
|
6
|
+
id?: number;
|
|
7
|
+
idState: number;
|
|
8
|
+
idPrestation: number | null;
|
|
9
|
+
idUser: number | null;
|
|
10
|
+
createdAt?: Date | null;
|
|
11
|
+
updatedAt?: Date | null;
|
|
12
|
+
|
|
13
|
+
// Associations
|
|
14
|
+
prestation: IPrestation;
|
|
15
|
+
user: IUser;
|
|
16
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -142,6 +142,7 @@ export * from './Interface/models/IPermission';
|
|
|
142
142
|
export * from './Interface/models/IPhoneNumber';
|
|
143
143
|
export * from './Interface/models/IPhonePrefix';
|
|
144
144
|
export * from './Interface/models/IPhonePrefixChild';
|
|
145
|
+
export * from './Interface/models/IPrestationHistory';
|
|
145
146
|
export * from './Interface/models/IPrestation';
|
|
146
147
|
export * from './Interface/models/IPrestationComplementary';
|
|
147
148
|
export * from './Interface/models/IPrestationList';
|
|
@@ -432,6 +433,7 @@ export * from './Enum/SocietyTypeEvent';
|
|
|
432
433
|
export * from './Enum/Call';
|
|
433
434
|
export * from './Enum/ConnectionError';
|
|
434
435
|
export * from './Enum/FolderFile';
|
|
436
|
+
export * from './Enum/Rules';
|
|
435
437
|
|
|
436
438
|
// Interfaces API
|
|
437
439
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
@@ -764,6 +766,13 @@ export * from './Interface/api/customerActivity/CreateCustomerActivityReport';
|
|
|
764
766
|
export * from './Interface/api/alert/CreateAlert';
|
|
765
767
|
export * from './Interface/api/connection/QueryConnectionState';
|
|
766
768
|
export * from './Interface/api/connection/ReadConnectionState';
|
|
769
|
+
export * from './Interface/api/qonto/Query';
|
|
770
|
+
export * from './Interface/api/qonto/CreateImportation';
|
|
771
|
+
export * from './Interface/api/qonto/UpdateConnection';
|
|
772
|
+
export * from './Interface/api/qonto/CreateQontoConnection';
|
|
773
|
+
export * from './Interface/api/qonto/GetConnectionInformation';
|
|
774
|
+
export * from './Interface/api/qonto/ProcessBankAccount';
|
|
775
|
+
export * from './Interface/api/qonto/ReadCreateConnection';
|
|
767
776
|
|
|
768
777
|
// Enums types
|
|
769
778
|
export * from './Interface/enum/Util';
|