@silexpert/core 0.4.257 → 0.4.258

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 (58) 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/loan/CreateLoan.d.ts +3 -0
  14. package/es/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  15. package/es/types/Interface/api/loan/CreateLoan.js +23 -1
  16. package/es/types/Interface/api/loan/CreateLoan.js.map +1 -1
  17. package/es/types/Interface/api/loan/UpdateLoan.d.ts +2 -0
  18. package/es/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  19. package/es/types/Interface/api/loan/UpdateLoan.js +25 -0
  20. package/es/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  21. package/es/types/Interface/models/ILoan.d.ts +4 -0
  22. package/es/types/Interface/models/ILoan.d.ts.map +1 -1
  23. package/es/types/Interface/models/ILoan.js.map +1 -1
  24. package/es/types/Interface/models/ILoanFile.d.ts +12 -0
  25. package/es/types/Interface/models/ILoanFile.d.ts.map +1 -0
  26. package/es/types/Interface/models/ILoanFile.js +2 -0
  27. package/es/types/Interface/models/ILoanFile.js.map +1 -0
  28. package/es/types/Interface/models/ILog.d.ts +2 -0
  29. package/es/types/Interface/models/ILog.d.ts.map +1 -1
  30. package/es/types/Interface/models/ILog.js.map +1 -1
  31. package/es/types/index.d.ts +2 -0
  32. package/es/types/index.d.ts.map +1 -1
  33. package/es/types/index.js +2 -0
  34. package/es/types/index.js.map +1 -1
  35. package/js/api/resources/Loan.js +19 -2
  36. package/js/api/resources/Loan.js.map +1 -1
  37. package/js/types/Enum/FolderFile.js +13 -0
  38. package/js/types/Enum/FolderFile.js.map +1 -0
  39. package/js/types/Enum/Ged.js +2 -2
  40. package/js/types/Enum/Ged.js.map +1 -1
  41. package/js/types/Interface/api/loan/CreateLoan.js +13 -5
  42. package/js/types/Interface/api/loan/CreateLoan.js.map +1 -1
  43. package/js/types/Interface/api/loan/UpdateLoan.js +12 -6
  44. package/js/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  45. package/js/types/Interface/models/ILoanFile.js +6 -0
  46. package/js/types/Interface/models/ILoanFile.js.map +1 -0
  47. package/js/types/index.js +24 -0
  48. package/js/types/index.js.map +1 -1
  49. package/package.json +1 -1
  50. package/ts/api/resources/Loan.ts +14 -2
  51. package/ts/types/Enum/FolderFile.ts +5 -0
  52. package/ts/types/Enum/Ged.ts +3 -3
  53. package/ts/types/Interface/api/loan/CreateLoan.ts +20 -1
  54. package/ts/types/Interface/api/loan/UpdateLoan.ts +23 -0
  55. package/ts/types/Interface/models/ILoan.ts +4 -0
  56. package/ts/types/Interface/models/ILoanFile.ts +14 -0
  57. package/ts/types/Interface/models/ILog.ts +2 -0
  58. package/ts/types/index.ts +2 -0
@@ -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';