@silexpert/core 0.4.257 → 0.4.259
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/Loan.d.ts +1 -1
- package/es/api/resources/Loan.d.ts.map +1 -1
- package/es/api/resources/Loan.js +13 -2
- package/es/api/resources/Loan.js.map +1 -1
- package/es/types/Enum/FolderFile.d.ts +6 -0
- package/es/types/Enum/FolderFile.d.ts.map +1 -0
- package/es/types/Enum/FolderFile.js +7 -0
- package/es/types/Enum/FolderFile.js.map +1 -0
- package/es/types/Enum/Ged.d.ts +2 -1
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +2 -2
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js +4 -0
- package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/es/types/Interface/api/loan/CreateLoan.d.ts +3 -0
- package/es/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
- package/es/types/Interface/api/loan/CreateLoan.js +23 -1
- package/es/types/Interface/api/loan/CreateLoan.js.map +1 -1
- package/es/types/Interface/api/loan/UpdateLoan.d.ts +2 -0
- package/es/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
- package/es/types/Interface/api/loan/UpdateLoan.js +25 -0
- package/es/types/Interface/api/loan/UpdateLoan.js.map +1 -1
- package/es/types/Interface/models/ILoan.d.ts +4 -0
- package/es/types/Interface/models/ILoan.d.ts.map +1 -1
- package/es/types/Interface/models/ILoan.js.map +1 -1
- package/es/types/Interface/models/ILoanFile.d.ts +12 -0
- package/es/types/Interface/models/ILoanFile.d.ts.map +1 -0
- package/es/types/Interface/models/ILoanFile.js +2 -0
- package/es/types/Interface/models/ILoanFile.js.map +1 -0
- package/es/types/Interface/models/ILog.d.ts +2 -0
- package/es/types/Interface/models/ILog.d.ts.map +1 -1
- package/es/types/Interface/models/ILog.js.map +1 -1
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Loan.js +19 -2
- package/js/api/resources/Loan.js.map +1 -1
- package/js/types/Enum/FolderFile.js +13 -0
- package/js/types/Enum/FolderFile.js.map +1 -0
- package/js/types/Enum/Ged.js +2 -2
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js +2 -0
- package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/js/types/Interface/api/loan/CreateLoan.js +13 -5
- package/js/types/Interface/api/loan/CreateLoan.js.map +1 -1
- package/js/types/Interface/api/loan/UpdateLoan.js +12 -6
- package/js/types/Interface/api/loan/UpdateLoan.js.map +1 -1
- package/js/types/Interface/models/ILoanFile.js +6 -0
- package/js/types/Interface/models/ILoanFile.js.map +1 -0
- package/js/types/index.js +24 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Loan.ts +14 -2
- package/ts/types/Enum/FolderFile.ts +5 -0
- package/ts/types/Enum/Ged.ts +3 -3
- package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +3 -0
- package/ts/types/Interface/api/loan/CreateLoan.ts +20 -1
- package/ts/types/Interface/api/loan/UpdateLoan.ts +23 -0
- package/ts/types/Interface/models/ILoan.ts +4 -0
- package/ts/types/Interface/models/ILoanFile.ts +14 -0
- package/ts/types/Interface/models/ILog.ts +2 -0
- package/ts/types/index.ts +2 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
3
|
|
|
3
4
|
export class CreateLoanForm {
|
|
4
5
|
@ApiProperty({ description: 'Désignation' })
|
|
@@ -8,17 +9,35 @@ export class CreateLoanForm {
|
|
|
8
9
|
lenderDesignation: string;
|
|
9
10
|
|
|
10
11
|
@ApiProperty()
|
|
12
|
+
@IsNumber()
|
|
11
13
|
number: number;
|
|
12
14
|
|
|
13
15
|
@ApiProperty()
|
|
16
|
+
@IsNumber()
|
|
14
17
|
amount: number;
|
|
15
18
|
|
|
16
19
|
@ApiProperty()
|
|
20
|
+
@IsNumber()
|
|
17
21
|
assetBeforeExercice: number;
|
|
18
22
|
|
|
19
23
|
@ApiProperty()
|
|
24
|
+
@IsNumber()
|
|
20
25
|
assetAfterExercice: number;
|
|
21
26
|
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsNumber()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
monthDuration?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsNumber()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
rate?: number;
|
|
36
|
+
|
|
22
37
|
@ApiProperty()
|
|
38
|
+
@IsNumber()
|
|
23
39
|
idExercice: number;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
files?: File[];
|
|
24
43
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
3
|
|
|
3
4
|
export class UpdateLoanForm {
|
|
@@ -5,20 +6,42 @@ export class UpdateLoanForm {
|
|
|
5
6
|
name?: string;
|
|
6
7
|
|
|
7
8
|
@ApiPropertyOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsOptional()
|
|
8
11
|
lenderDesignation?: string;
|
|
9
12
|
|
|
10
13
|
@ApiPropertyOptional()
|
|
14
|
+
@IsNumber()
|
|
15
|
+
@IsOptional()
|
|
11
16
|
number?: number;
|
|
12
17
|
|
|
13
18
|
@ApiPropertyOptional()
|
|
19
|
+
@IsNumber()
|
|
20
|
+
@IsOptional()
|
|
14
21
|
amount?: number;
|
|
15
22
|
|
|
16
23
|
@ApiPropertyOptional()
|
|
24
|
+
@IsNumber()
|
|
25
|
+
@IsOptional()
|
|
17
26
|
assetBeforeExercice?: number;
|
|
18
27
|
|
|
19
28
|
@ApiPropertyOptional()
|
|
29
|
+
@IsNumber()
|
|
30
|
+
@IsOptional()
|
|
20
31
|
assetAfterExercice?: number;
|
|
21
32
|
|
|
22
33
|
@ApiPropertyOptional()
|
|
34
|
+
@IsNumber()
|
|
35
|
+
@IsOptional()
|
|
23
36
|
idExercice?: number;
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsNumber()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
monthDuration?: number;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsNumber()
|
|
45
|
+
@IsOptional()
|
|
46
|
+
rate?: number;
|
|
24
47
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ISociety } from './ISociety';
|
|
2
2
|
import { IExercice } from './IExercice';
|
|
3
3
|
import { IAccount } from './IAccount';
|
|
4
|
+
import { ILoanFile } from './ILoanFile';
|
|
4
5
|
|
|
5
6
|
export interface ILoan {
|
|
6
7
|
id?: number;
|
|
@@ -11,6 +12,8 @@ export interface ILoan {
|
|
|
11
12
|
amount: number;
|
|
12
13
|
assetBeforeExercice: number;
|
|
13
14
|
assetAfterExercice: number;
|
|
15
|
+
monthDuration?: number;
|
|
16
|
+
rate?: number;
|
|
14
17
|
idExercice: number;
|
|
15
18
|
idSociety: number;
|
|
16
19
|
idAccountRefund: number;
|
|
@@ -27,4 +30,5 @@ export interface ILoan {
|
|
|
27
30
|
accountBenefit?: IAccount;
|
|
28
31
|
accountInsurance?: IAccount;
|
|
29
32
|
accountCommission?: IAccount;
|
|
33
|
+
loanFiles?: ILoanFile[];
|
|
30
34
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IFile } from './IFile';
|
|
2
|
+
import { ILoan } from './ILoan';
|
|
3
|
+
|
|
4
|
+
export interface ILoanFile {
|
|
5
|
+
id: number;
|
|
6
|
+
idFile: number;
|
|
7
|
+
idLoan: number;
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
|
|
11
|
+
// Associations
|
|
12
|
+
loan: ILoan;
|
|
13
|
+
file: IFile;
|
|
14
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -310,6 +310,7 @@ export * from './Interface/models/ITask';
|
|
|
310
310
|
export * from './Interface/models/IMobileNotificationLog';
|
|
311
311
|
export * from './Interface/models/IMobileNotificationSetting';
|
|
312
312
|
export * from './Interface/models/ITimeRecorder';
|
|
313
|
+
export * from './Interface/models/ILoanFile';
|
|
313
314
|
|
|
314
315
|
// Forms
|
|
315
316
|
export * from './Form/FormAuthenticate';
|
|
@@ -429,6 +430,7 @@ export * from './Enum/InternalService';
|
|
|
429
430
|
export * from './Enum/SocietyTypeEvent';
|
|
430
431
|
export * from './Enum/Call';
|
|
431
432
|
export * from './Enum/ConnectionError';
|
|
433
|
+
export * from './Enum/FolderFile';
|
|
432
434
|
|
|
433
435
|
// Interfaces API
|
|
434
436
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|