@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.
Files changed (65) hide show
  1. package/es/api/resources/Loan.d.ts +1 -1
  2. package/es/api/resources/Loan.d.ts.map +1 -1
  3. package/es/api/resources/Loan.js +13 -2
  4. package/es/api/resources/Loan.js.map +1 -1
  5. package/es/types/Enum/FolderFile.d.ts +6 -0
  6. package/es/types/Enum/FolderFile.d.ts.map +1 -0
  7. package/es/types/Enum/FolderFile.js +7 -0
  8. package/es/types/Enum/FolderFile.js.map +1 -0
  9. package/es/types/Enum/Ged.d.ts +2 -1
  10. package/es/types/Enum/Ged.d.ts.map +1 -1
  11. package/es/types/Enum/Ged.js +2 -2
  12. package/es/types/Enum/Ged.js.map +1 -1
  13. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
  14. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
  15. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js +4 -0
  16. package/es/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  17. package/es/types/Interface/api/loan/CreateLoan.d.ts +3 -0
  18. package/es/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  19. package/es/types/Interface/api/loan/CreateLoan.js +23 -1
  20. package/es/types/Interface/api/loan/CreateLoan.js.map +1 -1
  21. package/es/types/Interface/api/loan/UpdateLoan.d.ts +2 -0
  22. package/es/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  23. package/es/types/Interface/api/loan/UpdateLoan.js +25 -0
  24. package/es/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  25. package/es/types/Interface/models/ILoan.d.ts +4 -0
  26. package/es/types/Interface/models/ILoan.d.ts.map +1 -1
  27. package/es/types/Interface/models/ILoan.js.map +1 -1
  28. package/es/types/Interface/models/ILoanFile.d.ts +12 -0
  29. package/es/types/Interface/models/ILoanFile.d.ts.map +1 -0
  30. package/es/types/Interface/models/ILoanFile.js +2 -0
  31. package/es/types/Interface/models/ILoanFile.js.map +1 -0
  32. package/es/types/Interface/models/ILog.d.ts +2 -0
  33. package/es/types/Interface/models/ILog.d.ts.map +1 -1
  34. package/es/types/Interface/models/ILog.js.map +1 -1
  35. package/es/types/index.d.ts +2 -0
  36. package/es/types/index.d.ts.map +1 -1
  37. package/es/types/index.js +2 -0
  38. package/es/types/index.js.map +1 -1
  39. package/js/api/resources/Loan.js +19 -2
  40. package/js/api/resources/Loan.js.map +1 -1
  41. package/js/types/Enum/FolderFile.js +13 -0
  42. package/js/types/Enum/FolderFile.js.map +1 -0
  43. package/js/types/Enum/Ged.js +2 -2
  44. package/js/types/Enum/Ged.js.map +1 -1
  45. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js +2 -0
  46. package/js/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
  47. package/js/types/Interface/api/loan/CreateLoan.js +13 -5
  48. package/js/types/Interface/api/loan/CreateLoan.js.map +1 -1
  49. package/js/types/Interface/api/loan/UpdateLoan.js +12 -6
  50. package/js/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  51. package/js/types/Interface/models/ILoanFile.js +6 -0
  52. package/js/types/Interface/models/ILoanFile.js.map +1 -0
  53. package/js/types/index.js +24 -0
  54. package/js/types/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/ts/api/resources/Loan.ts +14 -2
  57. package/ts/types/Enum/FolderFile.ts +5 -0
  58. package/ts/types/Enum/Ged.ts +3 -3
  59. package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +3 -0
  60. package/ts/types/Interface/api/loan/CreateLoan.ts +20 -1
  61. package/ts/types/Interface/api/loan/UpdateLoan.ts +23 -0
  62. package/ts/types/Interface/models/ILoan.ts +4 -0
  63. package/ts/types/Interface/models/ILoanFile.ts +14 -0
  64. package/ts/types/Interface/models/ILog.ts +2 -0
  65. package/ts/types/index.ts +2 -0
@@ -1,4 +1,5 @@
1
- import { ApiProperty } from '../../../../utils';
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
+ }
@@ -9,6 +9,8 @@ export interface ILog {
9
9
  payload: string | null;
10
10
  ip: string | null;
11
11
  idAction: number;
12
+ navigator: string | null
13
+ device: string | null
12
14
  idSource: number;
13
15
  idExercice: number | null;
14
16
  idSociety: number | null;
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';