@silexpert/core 1.1.342 → 1.1.344

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 (155) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +2 -1
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +3 -0
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/Loan.d.ts +9 -11
  6. package/dist/cjs/api/resources/Loan.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Loan.js +23 -17
  8. package/dist/cjs/api/resources/Loan.js.map +1 -1
  9. package/dist/cjs/api/resources/Log.d.ts +2 -1
  10. package/dist/cjs/api/resources/Log.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Log.js +3 -0
  12. package/dist/cjs/api/resources/Log.js.map +1 -1
  13. package/dist/cjs/api/resources/Subscription.d.ts +2 -2
  14. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/Subscription.js +2 -2
  16. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheet.js +5 -3
  19. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  20. package/dist/cjs/types/Enum/Log.d.ts +229 -1
  21. package/dist/cjs/types/Enum/Log.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/Log.js +228 -0
  23. package/dist/cjs/types/Enum/Log.js.map +1 -1
  24. package/dist/cjs/types/Enum/TimeSlot.js +3 -3
  25. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts +1 -0
  27. package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/bankAccount/Query.js +7 -0
  29. package/dist/cjs/types/Interface/api/bankAccount/Query.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +8 -0
  31. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +40 -1
  33. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts +7 -0
  35. package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -0
  36. package/dist/cjs/types/Interface/api/exercice/ReadExercice.js +3 -0
  37. package/dist/cjs/types/Interface/api/exercice/ReadExercice.js.map +1 -0
  38. package/dist/cjs/types/Interface/api/loan/CreateLoan.d.ts +13 -2
  39. package/dist/cjs/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/loan/CreateLoan.js +53 -3
  41. package/dist/cjs/types/Interface/api/loan/CreateLoan.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/loan/ReadLoan.d.ts +10 -0
  43. package/dist/cjs/types/Interface/api/loan/ReadLoan.d.ts.map +1 -0
  44. package/dist/cjs/types/Interface/api/loan/ReadLoan.js +3 -0
  45. package/dist/cjs/types/Interface/api/loan/ReadLoan.js.map +1 -0
  46. package/dist/cjs/types/Interface/api/loan/UpdateLoan.d.ts +0 -6
  47. package/dist/cjs/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  48. package/dist/cjs/types/Interface/api/loan/UpdateLoan.js +2 -36
  49. package/dist/cjs/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  50. package/dist/cjs/types/Interface/api/log/QueryLogPagination.d.ts +9 -0
  51. package/dist/cjs/types/Interface/api/log/QueryLogPagination.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/api/log/QueryLogPagination.js +56 -6
  53. package/dist/cjs/types/Interface/api/log/QueryLogPagination.js.map +1 -1
  54. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +3 -0
  55. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  56. package/dist/cjs/types/Interface/api/stripe/Create.js +10 -1
  57. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  58. package/dist/cjs/types/Interface/models/ILoan.d.ts +7 -0
  59. package/dist/cjs/types/Interface/models/ILoan.d.ts.map +1 -1
  60. package/dist/cjs/types/Interface/models/ILoan.js.map +1 -1
  61. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.d.ts +12 -0
  62. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.d.ts.map +1 -0
  63. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.js +3 -0
  64. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.js.map +1 -0
  65. package/dist/cjs/types/index.d.ts +3 -0
  66. package/dist/cjs/types/index.d.ts.map +1 -1
  67. package/dist/cjs/types/index.js +3 -0
  68. package/dist/cjs/types/index.js.map +1 -1
  69. package/dist/mjs/api/resources/Card.d.ts +2 -1
  70. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  71. package/dist/mjs/api/resources/Card.js +6 -0
  72. package/dist/mjs/api/resources/Card.js.map +1 -1
  73. package/dist/mjs/api/resources/Loan.d.ts +9 -11
  74. package/dist/mjs/api/resources/Loan.d.ts.map +1 -1
  75. package/dist/mjs/api/resources/Loan.js +23 -17
  76. package/dist/mjs/api/resources/Loan.js.map +1 -1
  77. package/dist/mjs/api/resources/Log.d.ts +2 -1
  78. package/dist/mjs/api/resources/Log.d.ts.map +1 -1
  79. package/dist/mjs/api/resources/Log.js +3 -0
  80. package/dist/mjs/api/resources/Log.js.map +1 -1
  81. package/dist/mjs/api/resources/Subscription.d.ts +2 -2
  82. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  83. package/dist/mjs/api/resources/Subscription.js +2 -2
  84. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  85. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  86. package/dist/mjs/types/Enum/BalanceSheet.js +5 -3
  87. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  88. package/dist/mjs/types/Enum/Log.d.ts +229 -1
  89. package/dist/mjs/types/Enum/Log.d.ts.map +1 -1
  90. package/dist/mjs/types/Enum/Log.js +228 -0
  91. package/dist/mjs/types/Enum/Log.js.map +1 -1
  92. package/dist/mjs/types/Enum/TimeSlot.js +3 -3
  93. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  94. package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts +1 -0
  95. package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
  96. package/dist/mjs/types/Interface/api/bankAccount/Query.js +8 -0
  97. package/dist/mjs/types/Interface/api/bankAccount/Query.js.map +1 -1
  98. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +8 -0
  99. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  100. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +38 -0
  101. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  102. package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts +7 -0
  103. package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -0
  104. package/dist/mjs/types/Interface/api/exercice/ReadExercice.js +2 -0
  105. package/dist/mjs/types/Interface/api/exercice/ReadExercice.js.map +1 -0
  106. package/dist/mjs/types/Interface/api/loan/CreateLoan.d.ts +13 -2
  107. package/dist/mjs/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  108. package/dist/mjs/types/Interface/api/loan/CreateLoan.js +61 -3
  109. package/dist/mjs/types/Interface/api/loan/CreateLoan.js.map +1 -1
  110. package/dist/mjs/types/Interface/api/loan/ReadLoan.d.ts +10 -0
  111. package/dist/mjs/types/Interface/api/loan/ReadLoan.d.ts.map +1 -0
  112. package/dist/mjs/types/Interface/api/loan/ReadLoan.js +2 -0
  113. package/dist/mjs/types/Interface/api/loan/ReadLoan.js.map +1 -0
  114. package/dist/mjs/types/Interface/api/loan/UpdateLoan.d.ts +0 -6
  115. package/dist/mjs/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  116. package/dist/mjs/types/Interface/api/loan/UpdateLoan.js +3 -43
  117. package/dist/mjs/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  118. package/dist/mjs/types/Interface/api/log/QueryLogPagination.d.ts +9 -0
  119. package/dist/mjs/types/Interface/api/log/QueryLogPagination.d.ts.map +1 -1
  120. package/dist/mjs/types/Interface/api/log/QueryLogPagination.js +57 -5
  121. package/dist/mjs/types/Interface/api/log/QueryLogPagination.js.map +1 -1
  122. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +3 -0
  123. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  124. package/dist/mjs/types/Interface/api/stripe/Create.js +11 -2
  125. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  126. package/dist/mjs/types/Interface/models/ILoan.d.ts +7 -0
  127. package/dist/mjs/types/Interface/models/ILoan.d.ts.map +1 -1
  128. package/dist/mjs/types/Interface/models/ILoan.js.map +1 -1
  129. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.d.ts +12 -0
  130. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.d.ts.map +1 -0
  131. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.js +2 -0
  132. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.js.map +1 -0
  133. package/dist/mjs/types/index.d.ts +3 -0
  134. package/dist/mjs/types/index.d.ts.map +1 -1
  135. package/dist/mjs/types/index.js +3 -0
  136. package/dist/mjs/types/index.js.map +1 -1
  137. package/package.json +1 -1
  138. package/ts/api/resources/Card.ts +8 -1
  139. package/ts/api/resources/Loan.ts +28 -21
  140. package/ts/api/resources/Log.ts +5 -0
  141. package/ts/api/resources/Subscription.ts +3 -3
  142. package/ts/types/Enum/BalanceSheet.ts +5 -3
  143. package/ts/types/Enum/Log.ts +228 -0
  144. package/ts/types/Enum/TimeSlot.ts +3 -3
  145. package/ts/types/Interface/api/bankAccount/Query.ts +6 -0
  146. package/ts/types/Interface/api/card/QueryUserCards.ts +31 -0
  147. package/ts/types/Interface/api/exercice/ReadExercice.ts +6 -0
  148. package/ts/types/Interface/api/loan/CreateLoan.ts +45 -5
  149. package/ts/types/Interface/api/loan/ReadLoan.ts +9 -0
  150. package/ts/types/Interface/api/loan/UpdateLoan.ts +3 -31
  151. package/ts/types/Interface/api/log/QueryLogPagination.ts +40 -1
  152. package/ts/types/Interface/api/stripe/Create.ts +10 -2
  153. package/ts/types/Interface/models/ILoan.ts +7 -0
  154. package/ts/types/Interface/models/ILoanEarlyRepayment.ts +13 -0
  155. package/ts/types/index.ts +3 -0
@@ -106,4 +106,11 @@ __decorate([
106
106
  (0, class_validator_1.IsEnum)(PartnerTransactionType_1.PartnerTransactionType),
107
107
  __metadata("design:type", Number)
108
108
  ], QueryBankAccount.prototype, "idPartnerType", void 0);
109
+ __decorate([
110
+ (0, utils_1.ApiPropertyOptional)(),
111
+ (0, class_validator_1.IsOptional)(),
112
+ (0, class_validator_1.IsBoolean)(),
113
+ (0, boolean_transform_1.ToBoolean)(),
114
+ __metadata("design:type", Boolean)
115
+ ], QueryBankAccount.prototype, "withCheckBalance", void 0);
109
116
  //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2F;AAC3F,6CAAqE;AACrE,iFAA8E;AAC9E,sFAA2E;AAC3E,iDAA8C;AAC9C,mEAAgE;AAIhE,MAAa,uCAAuC;CAoDnD;AApDD,0FAoDC;AAjDG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0EACS;AAIlB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0EACS;AAIlB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wEACO;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACI;AAKf;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACG;AAKd;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACK;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACI;AAMf;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;2EACW;AAIrB;IAFD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;6EACW;AAKtB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACY;AAKvB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACY;AAG3B,MAAa,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAbG;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;qDACY;AAMtB;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,iCAAe,CAAC;;2DACK;AAM3B;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,+CAAsB,CAAC;;uDACU","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { Nature } from '../../../Enum/Nature';\nimport { BankAccountType } from '../../../Enum/BankAccountType';\n\nexport type FilterByType = 'debit' | 'credit' | null;\n\nexport class QueryTransactionsForComparisonPaginated {\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n startDate: string;\n \n @ApiProperty()\n @IsString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n page?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n order?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n filterByType?: Nature;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n}\n\nexport class QueryBankAccount {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isActivated?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(BankAccountType)\n idBankAccountType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(PartnerTransactionType)\n idPartnerType?: PartnerTransactionType;\n}"]}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2F;AAC3F,6CAAqE;AACrE,iFAA8E;AAC9E,sFAA2E;AAC3E,iDAA8C;AAC9C,mEAAgE;AAIhE,MAAa,uCAAuC;CAoDnD;AApDD,0FAoDC;AAjDG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0EACS;AAIlB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0EACS;AAIlB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wEACO;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACI;AAKf;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACG;AAKd;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACK;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sEACI;AAMf;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;2EACW;AAIrB;IAFD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;6EACW;AAKtB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACY;AAKvB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACY;AAG3B,MAAa,gBAAgB;CAwB5B;AAxBD,4CAwBC;AAnBG;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;qDACY;AAMtB;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,iCAAe,CAAC;;2DACK;AAM3B;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,+CAAsB,CAAC;;uDACU;AAMvC;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;0DACiB","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString, IsInt, IsEnum } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { PartnerTransactionType } from '../../../Enum/PartnerTransactionType';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { Nature } from '../../../Enum/Nature';\nimport { BankAccountType } from '../../../Enum/BankAccountType';\n\nexport type FilterByType = 'debit' | 'credit' | null;\n\nexport class QueryTransactionsForComparisonPaginated {\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n startDate: string;\n \n @ApiProperty()\n @IsString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n page?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n order?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n filterByType?: Nature;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n minimumAmount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n maximumAmount?: number;\n}\n\nexport class QueryBankAccount {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isActivated?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(BankAccountType)\n idBankAccountType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(PartnerTransactionType)\n idPartnerType?: PartnerTransactionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withCheckBalance?: boolean;\n}"]}
@@ -7,4 +7,12 @@ export declare class QueryUserCards {
7
7
  types?: CardType[];
8
8
  state?: CardState;
9
9
  }
10
+ export declare class QueryUserCardsAdmin {
11
+ idUser?: number;
12
+ startDate?: Date;
13
+ endDate?: Date;
14
+ search?: string;
15
+ types?: CardType[];
16
+ state?: CardState;
17
+ }
10
18
  //# sourceMappingURL=QueryUserCards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryUserCards.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBAAa,cAAc;IAGjB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B"}
1
+ {"version":3,"file":"QueryUserCards.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBAAa,cAAc;IAGjB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B;AACD,qBAAa,mBAAmB;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IAKnB,KAAK,CAAC,EAAE,SAAS,CAAC;CAC3B"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryUserCards = void 0;
12
+ exports.QueryUserCardsAdmin = exports.QueryUserCards = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const Card_1 = require("../../../Enum/Card");
@@ -49,4 +49,43 @@ __decorate([
49
49
  (0, class_validator_1.IsEnum)(Card_1.CardState),
50
50
  __metadata("design:type", Number)
51
51
  ], QueryUserCards.prototype, "state", void 0);
52
+ class QueryUserCardsAdmin {
53
+ }
54
+ exports.QueryUserCardsAdmin = QueryUserCardsAdmin;
55
+ __decorate([
56
+ (0, utils_1.ApiPropertyOptional)(),
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsInt)(),
59
+ __metadata("design:type", Number)
60
+ ], QueryUserCardsAdmin.prototype, "idUser", void 0);
61
+ __decorate([
62
+ (0, utils_1.ApiPropertyOptional)(),
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsDate)(),
65
+ __metadata("design:type", Date)
66
+ ], QueryUserCardsAdmin.prototype, "startDate", void 0);
67
+ __decorate([
68
+ (0, utils_1.ApiPropertyOptional)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsDate)(),
71
+ __metadata("design:type", Date)
72
+ ], QueryUserCardsAdmin.prototype, "endDate", void 0);
73
+ __decorate([
74
+ (0, utils_1.ApiPropertyOptional)(),
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.IsString)(),
77
+ __metadata("design:type", String)
78
+ ], QueryUserCardsAdmin.prototype, "search", void 0);
79
+ __decorate([
80
+ (0, utils_1.ApiPropertyOptional)(),
81
+ (0, class_validator_1.IsOptional)(),
82
+ (0, class_validator_1.IsArray)(),
83
+ __metadata("design:type", Array)
84
+ ], QueryUserCardsAdmin.prototype, "types", void 0);
85
+ __decorate([
86
+ (0, utils_1.ApiPropertyOptional)(),
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.IsEnum)(Card_1.CardState),
89
+ __metadata("design:type", Number)
90
+ ], QueryUserCardsAdmin.prototype, "state", void 0);
52
91
  //# sourceMappingURL=QueryUserCards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryUserCards.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,6CAAqE;AACrE,6CAAyD;AAEzD,MAAa,cAAc;CA2B1B;AA3BD,wCA2BC;AAxBS;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACe;AAIf;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,CAAC;;6CACQ","sourcesContent":["import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CardType, CardState } from '../../../Enum/Card';\n\nexport class QueryUserCards {\n @ApiProperty()\n @IsInt()\n declare idUser: number;\n\n @ApiProperty()\n @IsDate()\n declare startDate: Date;\n\n @ApiProperty()\n @IsDate()\n declare endDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}"]}
1
+ {"version":3,"file":"QueryUserCards.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/QueryUserCards.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,6CAAqE;AACrE,6CAAyD;AAEzD,MAAa,cAAc;CA2B1B;AA3BD,wCA2BC;AAxBS;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACe;AAIf;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACU,IAAI;iDAAC;AAIhB;IAFP,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACQ,IAAI;+CAAC;AAKd;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,CAAC;;6CACQ;AAE5B,MAAa,mBAAmB;CA8B/B;AA9BD,kDA8BC;AA1BS;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mDACgB;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACW,IAAI;sDAAC;AAKjB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACS,IAAI;oDAAC;AAKf;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACa;AAKhB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;kDACiB;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAS,CAAC;;kDACQ","sourcesContent":["import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { CardType, CardState } from '../../../Enum/Card';\n\nexport class QueryUserCards {\n @ApiProperty()\n @IsInt()\n declare idUser: number;\n\n @ApiProperty()\n @IsDate()\n declare startDate: Date;\n\n @ApiProperty()\n @IsDate()\n declare endDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}\nexport class QueryUserCardsAdmin {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n declare idUser?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n declare startDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n declare endDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n declare search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n declare types?: CardType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(CardState)\n declare state?: CardState;\n}"]}
@@ -0,0 +1,7 @@
1
+ export interface ReadExercice {
2
+ name: string;
3
+ id: number | null;
4
+ startDate: string;
5
+ endDate: string;
6
+ }
7
+ //# sourceMappingURL=ReadExercice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/ReadExercice.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ReadExercice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/ReadExercice.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadExercice {\n name: string;\n id: number | null;\n startDate: string;\n endDate: string;\n}"]}
@@ -5,9 +5,20 @@ export declare class CreateLoanForm {
5
5
  amount: number;
6
6
  assetBeforeExercice: number;
7
7
  assetAfterExercice: number;
8
- monthDuration?: number;
9
- rate?: number;
8
+ monthDuration: number;
9
+ rate: number;
10
10
  idExercice: number;
11
+ annuity: number;
12
+ unlockDate: string;
13
+ firstDueDate: string;
14
+ commission: number;
15
+ insurance: number;
16
+ shouldProrate: boolean;
11
17
  files?: File[];
12
18
  }
19
+ export declare class CreateEarlyRepayment {
20
+ amount: number;
21
+ date: Date;
22
+ annuity: number;
23
+ }
13
24
  //# sourceMappingURL=CreateLoan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateLoan.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/CreateLoan.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IAEvB,IAAI,EAAE,MAAM,CAAC;IAGb,iBAAiB,EAAE,MAAM,CAAC;IAI1B,MAAM,EAAE,MAAM,CAAC;IAIf,MAAM,EAAE,MAAM,CAAC;IAIf,mBAAmB,EAAE,MAAM,CAAC;IAI5B,kBAAkB,EAAE,MAAM,CAAC;IAK3B,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAClB"}
1
+ {"version":3,"file":"CreateLoan.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/CreateLoan.ts"],"names":[],"mappings":"AAIA,qBAAa,cAAc;IAGvB,IAAI,EAAE,MAAM,CAAC;IAIb,iBAAiB,EAAE,MAAM,CAAC;IAI1B,MAAM,EAAE,MAAM,CAAC;IAIf,MAAM,EAAE,MAAM,CAAC;IAIf,mBAAmB,EAAE,MAAM,CAAC;IAI5B,kBAAkB,EAAE,MAAM,CAAC;IAI3B,aAAa,EAAE,MAAM,CAAC;IAItB,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,OAAO,EAAE,MAAM,CAAC;IAIhB,UAAU,EAAE,MAAM,CAAC;IAInB,YAAY,EAAE,MAAM,CAAC;IAIrB,UAAU,EAAE,MAAM,CAAC;IAInB,SAAS,EAAE,MAAM,CAAC;IAKlB,aAAa,EAAE,OAAO,CAAC;IAGvB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAClB;AAED,qBAAa,oBAAoB;IAG7B,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,EAAE,IAAI,CAAC;IAIX,OAAO,EAAE,MAAM,CAAC;CACnB"}
@@ -9,18 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateLoanForm = void 0;
12
+ exports.CreateEarlyRepayment = exports.CreateLoanForm = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
+ const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
15
16
  class CreateLoanForm {
16
17
  }
17
18
  exports.CreateLoanForm = CreateLoanForm;
18
19
  __decorate([
19
20
  (0, utils_1.ApiProperty)({ description: 'Désignation' }),
21
+ (0, class_validator_1.IsString)(),
20
22
  __metadata("design:type", String)
21
23
  ], CreateLoanForm.prototype, "name", void 0);
22
24
  __decorate([
23
25
  (0, utils_1.ApiProperty)({ description: 'Désignation de l\'organisme' }),
26
+ (0, class_validator_1.IsString)(),
24
27
  __metadata("design:type", String)
25
28
  ], CreateLoanForm.prototype, "lenderDesignation", void 0);
26
29
  __decorate([
@@ -46,13 +49,11 @@ __decorate([
46
49
  __decorate([
47
50
  (0, utils_1.ApiPropertyOptional)(),
48
51
  (0, class_validator_1.IsNumber)(),
49
- (0, class_validator_1.IsOptional)(),
50
52
  __metadata("design:type", Number)
51
53
  ], CreateLoanForm.prototype, "monthDuration", void 0);
52
54
  __decorate([
53
55
  (0, utils_1.ApiPropertyOptional)(),
54
56
  (0, class_validator_1.IsNumber)(),
55
- (0, class_validator_1.IsOptional)(),
56
57
  __metadata("design:type", Number)
57
58
  ], CreateLoanForm.prototype, "rate", void 0);
58
59
  __decorate([
@@ -60,8 +61,57 @@ __decorate([
60
61
  (0, class_validator_1.IsNumber)(),
61
62
  __metadata("design:type", Number)
62
63
  ], CreateLoanForm.prototype, "idExercice", void 0);
64
+ __decorate([
65
+ (0, utils_1.ApiProperty)(),
66
+ (0, class_validator_1.IsNumber)(),
67
+ __metadata("design:type", Number)
68
+ ], CreateLoanForm.prototype, "annuity", void 0);
69
+ __decorate([
70
+ (0, utils_1.ApiProperty)(),
71
+ (0, class_validator_1.IsString)(),
72
+ __metadata("design:type", String)
73
+ ], CreateLoanForm.prototype, "unlockDate", void 0);
74
+ __decorate([
75
+ (0, utils_1.ApiProperty)(),
76
+ (0, class_validator_1.IsString)(),
77
+ __metadata("design:type", String)
78
+ ], CreateLoanForm.prototype, "firstDueDate", void 0);
79
+ __decorate([
80
+ (0, utils_1.ApiProperty)(),
81
+ (0, class_validator_1.IsNumber)(),
82
+ __metadata("design:type", Number)
83
+ ], CreateLoanForm.prototype, "commission", void 0);
84
+ __decorate([
85
+ (0, utils_1.ApiProperty)(),
86
+ (0, class_validator_1.IsNumber)(),
87
+ __metadata("design:type", Number)
88
+ ], CreateLoanForm.prototype, "insurance", void 0);
89
+ __decorate([
90
+ (0, utils_1.ApiProperty)(),
91
+ (0, class_validator_1.IsBoolean)(),
92
+ (0, boolean_transform_1.ToBoolean)(),
93
+ __metadata("design:type", Boolean)
94
+ ], CreateLoanForm.prototype, "shouldProrate", void 0);
63
95
  __decorate([
64
96
  (0, utils_1.ApiPropertyOptional)(),
65
97
  __metadata("design:type", Array)
66
98
  ], CreateLoanForm.prototype, "files", void 0);
99
+ class CreateEarlyRepayment {
100
+ }
101
+ exports.CreateEarlyRepayment = CreateEarlyRepayment;
102
+ __decorate([
103
+ (0, utils_1.ApiProperty)(),
104
+ (0, class_validator_1.IsNumber)(),
105
+ __metadata("design:type", Number)
106
+ ], CreateEarlyRepayment.prototype, "amount", void 0);
107
+ __decorate([
108
+ (0, utils_1.ApiProperty)(),
109
+ (0, class_validator_1.IsDate)(),
110
+ __metadata("design:type", Date)
111
+ ], CreateEarlyRepayment.prototype, "date", void 0);
112
+ __decorate([
113
+ (0, utils_1.ApiProperty)(),
114
+ (0, class_validator_1.IsNumber)(),
115
+ __metadata("design:type", Number)
116
+ ], CreateEarlyRepayment.prototype, "annuity", void 0);
67
117
  //# sourceMappingURL=CreateLoan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateLoan.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/CreateLoan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,6CAAqE;AAErE,MAAa,cAAc;CAuC1B;AAvCD,wCAuCC;AArCG;IADD,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;;4CAC7B;AAGb;IADD,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;;yDAChC;AAI1B;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8CACM;AAIf;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8CACM;AAIf;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;2DACmB;AAI5B;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0DACkB;AAK3B;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACY;AAKvB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACG;AAId;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;kDACU;AAGnB;IADD,IAAA,2BAAmB,GAAE;;6CACL","sourcesContent":["import { IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateLoanForm {\n @ApiProperty({ description: 'Désignation' })\n name: string;\n\n @ApiProperty({ description: 'Désignation de l\\'organisme' })\n lenderDesignation: string;\n\n @ApiProperty()\n @IsString()\n number: string;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n\n @ApiProperty()\n @IsNumber()\n assetBeforeExercice: number;\n\n @ApiProperty()\n @IsNumber()\n assetAfterExercice: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n monthDuration?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n rate?: number;\n\n @ApiProperty()\n @IsNumber()\n idExercice: number;\n\n @ApiPropertyOptional()\n files?: File[];\n}"]}
1
+ {"version":3,"file":"CreateLoan.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/CreateLoan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AACxE,6CAAqE;AACrE,sFAA2E;AAE3E,MAAa,cAAc;CAgE1B;AAhED,wCAgEC;AA7DG;IAFD,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IAC3C,IAAA,0BAAQ,GAAE;;4CACI;AAIb;IAFD,IAAA,mBAAW,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC3D,IAAA,0BAAQ,GAAE;;yDACiB;AAI1B;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8CACM;AAIf;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;8CACM;AAIf;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;2DACmB;AAI5B;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;0DACkB;AAI3B;IAFD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;qDACa;AAItB;IAFD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;;4CACI;AAIb;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;kDACU;AAInB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;+CACO;AAIhB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;kDACU;AAInB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACY;AAIrB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;kDACU;AAInB;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iDACS;AAKlB;IAHD,IAAA,mBAAW,GAAE;IACb,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;qDACa;AAGvB;IADD,IAAA,2BAAmB,GAAE;;6CACL;AAGnB,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AATG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACM;AAIf;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACD,IAAI;kDAAC;AAIX;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;qDACO","sourcesContent":["import { IsBoolean, IsDate, IsNumber, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateLoanForm {\n @ApiProperty({ description: 'Désignation' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Désignation de l\\'organisme' })\n @IsString()\n lenderDesignation: string;\n\n @ApiProperty()\n @IsString()\n number: string;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n\n @ApiProperty()\n @IsNumber()\n assetBeforeExercice: number;\n\n @ApiProperty()\n @IsNumber()\n assetAfterExercice: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n monthDuration: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n rate: number;\n\n @ApiProperty()\n @IsNumber()\n idExercice: number;\n\n @ApiProperty()\n @IsNumber()\n annuity: number;\n\n @ApiProperty()\n @IsString()\n unlockDate: string;\n\n @ApiProperty()\n @IsString()\n firstDueDate: string;\n\n @ApiProperty()\n @IsNumber()\n commission: number;\n\n @ApiProperty()\n @IsNumber()\n insurance: number;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldProrate: boolean;\n\n @ApiPropertyOptional()\n files?: File[];\n}\n\nexport class CreateEarlyRepayment {\n @ApiProperty()\n @IsNumber()\n amount: number;\n\n @ApiProperty()\n @IsDate()\n date: Date;\n\n @ApiProperty()\n @IsNumber()\n annuity: number;\n}"]}
@@ -0,0 +1,10 @@
1
+ export type ReadLoanSchedule = {
2
+ date: string;
3
+ annuity: number;
4
+ interest: number;
5
+ insurance: number;
6
+ commission: number;
7
+ capital: number;
8
+ remain: number;
9
+ };
10
+ //# sourceMappingURL=ReadLoan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadLoan.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/ReadLoan.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ReadLoan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadLoan.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/ReadLoan.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadLoanSchedule = {\n date: string;\n annuity: number;\n interest: number;\n insurance: number;\n commission: number;\n capital: number;\n remain: number;\n};"]}
@@ -2,11 +2,5 @@ export declare class UpdateLoanForm {
2
2
  name?: string;
3
3
  lenderDesignation?: string;
4
4
  number?: string;
5
- amount?: number;
6
- assetBeforeExercice?: number;
7
- assetAfterExercice?: number;
8
- idExercice?: number;
9
- monthDuration?: number;
10
- rate?: number;
11
5
  }
12
6
  //# sourceMappingURL=UpdateLoan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateLoan.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/UpdateLoan.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAK3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAK7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"UpdateLoan.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/UpdateLoan.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IAIvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAK3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -17,6 +17,8 @@ class UpdateLoanForm {
17
17
  exports.UpdateLoanForm = UpdateLoanForm;
18
18
  __decorate([
19
19
  (0, utils_1.ApiPropertyOptional)(),
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsOptional)(),
20
22
  __metadata("design:type", String)
21
23
  ], UpdateLoanForm.prototype, "name", void 0);
22
24
  __decorate([
@@ -31,40 +33,4 @@ __decorate([
31
33
  (0, class_validator_1.IsOptional)(),
32
34
  __metadata("design:type", String)
33
35
  ], UpdateLoanForm.prototype, "number", void 0);
34
- __decorate([
35
- (0, utils_1.ApiPropertyOptional)(),
36
- (0, class_validator_1.IsNumber)(),
37
- (0, class_validator_1.IsOptional)(),
38
- __metadata("design:type", Number)
39
- ], UpdateLoanForm.prototype, "amount", void 0);
40
- __decorate([
41
- (0, utils_1.ApiPropertyOptional)(),
42
- (0, class_validator_1.IsNumber)(),
43
- (0, class_validator_1.IsOptional)(),
44
- __metadata("design:type", Number)
45
- ], UpdateLoanForm.prototype, "assetBeforeExercice", void 0);
46
- __decorate([
47
- (0, utils_1.ApiPropertyOptional)(),
48
- (0, class_validator_1.IsNumber)(),
49
- (0, class_validator_1.IsOptional)(),
50
- __metadata("design:type", Number)
51
- ], UpdateLoanForm.prototype, "assetAfterExercice", void 0);
52
- __decorate([
53
- (0, utils_1.ApiPropertyOptional)(),
54
- (0, class_validator_1.IsNumber)(),
55
- (0, class_validator_1.IsOptional)(),
56
- __metadata("design:type", Number)
57
- ], UpdateLoanForm.prototype, "idExercice", void 0);
58
- __decorate([
59
- (0, utils_1.ApiPropertyOptional)(),
60
- (0, class_validator_1.IsNumber)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", Number)
63
- ], UpdateLoanForm.prototype, "monthDuration", void 0);
64
- __decorate([
65
- (0, utils_1.ApiPropertyOptional)(),
66
- (0, class_validator_1.IsNumber)(),
67
- (0, class_validator_1.IsOptional)(),
68
- __metadata("design:type", Number)
69
- ], UpdateLoanForm.prototype, "rate", void 0);
70
36
  //# sourceMappingURL=UpdateLoan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateLoan.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/UpdateLoan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,6CAAwD;AAExD,MAAa,cAAc;CA2C1B;AA3CD,wCA2CC;AAzCG;IADD,IAAA,2BAAmB,GAAE;;4CACN;AAKd;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACgB;AAK3B;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK;AAKhB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACkB;AAK7B;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACiB;AAK5B;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACS;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACY;AAKvB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACG","sourcesContent":["import { IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class UpdateLoanForm {\n @ApiPropertyOptional()\n name?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n lenderDesignation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n number?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n assetBeforeExercice?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n assetAfterExercice?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n monthDuration?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n rate?: number;\n}"]}
1
+ {"version":3,"file":"UpdateLoan.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/loan/UpdateLoan.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6CAAwD;AAExD,MAAa,cAAc;CAe1B;AAfD,wCAeC;AAXG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACG;AAKd;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACgB;AAK3B;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACK","sourcesContent":["import { IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport class UpdateLoanForm {\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n name?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n lenderDesignation?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n number?: string;\n}"]}
@@ -1,4 +1,13 @@
1
1
  export declare class QueryLogPagination {
2
+ limit?: number;
3
+ page?: number;
4
+ dateStart?: Date;
5
+ dateEnd?: Date;
6
+ idTypeLog: number;
7
+ idSociety?: number;
8
+ idUser?: number;
9
+ }
10
+ export declare class QueryLogPaginationByUser {
2
11
  limit?: number;
3
12
  page?: number;
4
13
  idLogType: number;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLogPagination.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":"AAMA,qBAAa,kBAAkB;IAI3B,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAQ;CAC3B"}
1
+ {"version":3,"file":"QueryLogPagination.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":"AAOA,qBAAa,kBAAkB;IAI3B,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAMf,SAAS,EAAE,MAAM,CAAC;IAKlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,wBAAwB;IAIjC,KAAK,CAAC,EAAE,MAAM,CAAM;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAK;IAKlB,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAQ;CAC3B"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryLogPagination = void 0;
12
+ exports.QueryLogPaginationByUser = exports.QueryLogPagination = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const Log_1 = require("../../../Enum/Log");
@@ -17,32 +17,82 @@ class QueryLogPagination {
17
17
  constructor() {
18
18
  this.limit = 25;
19
19
  this.page = 1;
20
- this.orderBy = 'id';
21
20
  }
22
21
  }
23
22
  exports.QueryLogPagination = QueryLogPagination;
24
23
  __decorate([
25
24
  (0, utils_1.ApiPropertyOptional)(),
26
25
  (0, class_validator_1.IsOptional)(),
27
- (0, class_validator_1.IsInt)(),
26
+ (0, class_validator_1.IsNumber)(),
28
27
  __metadata("design:type", Number)
29
28
  ], QueryLogPagination.prototype, "limit", void 0);
30
29
  __decorate([
31
30
  (0, utils_1.ApiPropertyOptional)(),
32
31
  (0, class_validator_1.IsOptional)(),
33
- (0, class_validator_1.IsInt)(),
32
+ (0, class_validator_1.IsNumber)(),
34
33
  __metadata("design:type", Number)
35
34
  ], QueryLogPagination.prototype, "page", void 0);
35
+ __decorate([
36
+ (0, utils_1.ApiPropertyOptional)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsDate)(),
39
+ __metadata("design:type", Date)
40
+ ], QueryLogPagination.prototype, "dateStart", void 0);
41
+ __decorate([
42
+ (0, utils_1.ApiPropertyOptional)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsDate)(),
45
+ __metadata("design:type", Date)
46
+ ], QueryLogPagination.prototype, "dateEnd", void 0);
47
+ __decorate([
48
+ (0, utils_1.ApiPropertyOptional)(),
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsNumber)(),
51
+ (0, class_validator_1.IsEnum)(Log_1.LogType),
52
+ __metadata("design:type", Number)
53
+ ], QueryLogPagination.prototype, "idTypeLog", void 0);
54
+ __decorate([
55
+ (0, utils_1.ApiPropertyOptional)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsNumber)(),
58
+ __metadata("design:type", Number)
59
+ ], QueryLogPagination.prototype, "idSociety", void 0);
60
+ __decorate([
61
+ (0, utils_1.ApiPropertyOptional)(),
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsNumber)(),
64
+ __metadata("design:type", Number)
65
+ ], QueryLogPagination.prototype, "idUser", void 0);
66
+ class QueryLogPaginationByUser {
67
+ constructor() {
68
+ this.limit = 25;
69
+ this.page = 1;
70
+ this.orderBy = 'id';
71
+ }
72
+ }
73
+ exports.QueryLogPaginationByUser = QueryLogPaginationByUser;
74
+ __decorate([
75
+ (0, utils_1.ApiPropertyOptional)(),
76
+ (0, class_validator_1.IsOptional)(),
77
+ (0, class_validator_1.IsInt)(),
78
+ __metadata("design:type", Number)
79
+ ], QueryLogPaginationByUser.prototype, "limit", void 0);
80
+ __decorate([
81
+ (0, utils_1.ApiPropertyOptional)(),
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_validator_1.IsInt)(),
84
+ __metadata("design:type", Number)
85
+ ], QueryLogPaginationByUser.prototype, "page", void 0);
36
86
  __decorate([
37
87
  (0, utils_1.ApiProperty)(),
38
88
  (0, class_validator_1.IsInt)(),
39
89
  (0, class_validator_1.IsEnum)(Log_1.LogType),
40
90
  __metadata("design:type", Number)
41
- ], QueryLogPagination.prototype, "idLogType", void 0);
91
+ ], QueryLogPaginationByUser.prototype, "idLogType", void 0);
42
92
  __decorate([
43
93
  (0, utils_1.ApiPropertyOptional)(),
44
94
  (0, class_validator_1.IsOptional)(),
45
95
  (0, class_validator_1.IsString)(),
46
96
  __metadata("design:type", String)
47
- ], QueryLogPagination.prototype, "orderBy", void 0);
97
+ ], QueryLogPaginationByUser.prototype, "orderBy", void 0);
48
98
  //# sourceMappingURL=QueryLogPagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLogPagination.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6CAAqE;AACrE,2CAA4C;AAE5C,MAAa,kBAAkB;IAA/B;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;QAUlB,YAAO,GAAY,IAAI,CAAC;IAC5B,CAAC;CAAA;AApBD,gDAoBC;AAhBG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACc;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;gDACY;AAKlB;IAHD,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,aAAO,CAAC;;qDACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACe","sourcesContent":["import {\n IsEnum, IsInt, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { LogType } from '../../../Enum/Log';\n\nexport class QueryLogPagination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number = 1;\n\n @ApiProperty()\n @IsInt()\n @IsEnum(LogType)\n idLogType: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string = 'id';\n}\n"]}
1
+ {"version":3,"file":"QueryLogPagination.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/log/QueryLogPagination.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAGyB;AACzB,6CAAqE;AACrE,2CAA4C;AAE5C,MAAa,kBAAkB;IAA/B;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;IA2BtB,CAAC;CAAA;AApCD,gDAoCC;AAhCG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACW;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACK,IAAI;qDAAC;AAKjB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACG,IAAI;mDAAC;AAMf;IAJD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,aAAO,CAAC;;qDACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAKnB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACO;AAGpB,MAAa,wBAAwB;IAArC;QAII,UAAK,GAAY,EAAE,CAAC;QAKpB,SAAI,GAAY,CAAC,CAAC;QAUlB,YAAO,GAAY,IAAI,CAAC;IAC5B,CAAC;CAAA;AApBD,4DAoBC;AAhBG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACc;AAKpB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sDACY;AAKlB;IAHD,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,aAAO,CAAC;;2DACI;AAKlB;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACe","sourcesContent":["import {\n IsDate,\n IsEnum, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { LogType } from '../../../Enum/Log';\n\nexport class QueryLogPagination {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n page?: number = 1;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n dateStart?: Date;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n dateEnd?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @IsEnum(LogType)\n idTypeLog: number;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n \n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idUser?: number;\n}\n\nexport class QueryLogPaginationByUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number = 25;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number = 1;\n\n @ApiProperty()\n @IsInt()\n @IsEnum(LogType)\n idLogType: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string = 'id';\n}\n"]}
@@ -1,4 +1,7 @@
1
1
  export declare class CreateStripeConnection {
2
2
  code: string;
3
3
  }
4
+ export declare class CreateStripePortals {
5
+ stripeCustomerId?: string;
6
+ }
4
7
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,IAAI,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAG/B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,mBAAmB;IAI5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAE7B"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateStripeConnection = void 0;
12
+ exports.CreateStripePortals = exports.CreateStripeConnection = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  class CreateStripeConnection {
@@ -20,4 +20,13 @@ __decorate([
20
20
  (0, class_validator_1.IsString)(),
21
21
  __metadata("design:type", String)
22
22
  ], CreateStripeConnection.prototype, "code", void 0);
23
+ class CreateStripePortals {
24
+ }
25
+ exports.CreateStripePortals = CreateStripePortals;
26
+ __decorate([
27
+ (0, utils_1.ApiPropertyOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsOptional)(),
30
+ __metadata("design:type", String)
31
+ ], CreateStripePortals.prototype, "stripeCustomerId", void 0);
23
32
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6CAAgD;AAEhD,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACI","sourcesContent":["import { IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADG;IAFD,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACI;AAGjB,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAFG;IAHD,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACe","sourcesContent":["import { IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n stripeCustomerId?: string;\n\n}"]}
@@ -2,6 +2,7 @@ import { ISociety } from './ISociety';
2
2
  import { IExercice } from './IExercice';
3
3
  import { IAccount } from './IAccount';
4
4
  import { ILoanFile } from './ILoanFile';
5
+ import { ILoanEarlyRepayment } from './ILoanEarlyRepayment';
5
6
  export interface ILoan {
6
7
  id?: number;
7
8
  name: string;
@@ -13,6 +14,11 @@ export interface ILoan {
13
14
  assetAfterExercice: number;
14
15
  monthDuration?: number;
15
16
  rate?: number;
17
+ annuity: number | null;
18
+ unlockDate: Date | null;
19
+ firstDueDate: Date | null;
20
+ commission: number | null;
21
+ insurance: number | null;
16
22
  idExercice: number;
17
23
  idSociety: number;
18
24
  idAccountRefund: number;
@@ -30,5 +36,6 @@ export interface ILoan {
30
36
  accountCommission?: IAccount;
31
37
  accountReleaseLoanCapital?: IAccount;
32
38
  loanFiles?: ILoanFile[];
39
+ earlyRepayments?: ILoanEarlyRepayment[];
33
40
  }
34
41
  //# sourceMappingURL=ILoan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ILoan.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2BAA2B,EAAE,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,yBAAyB,CAAC,EAAE,QAAQ,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;CACzB"}
1
+ {"version":3,"file":"ILoan.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2BAA2B,EAAE,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,gBAAgB,CAAC,EAAE,QAAQ,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,yBAAyB,CAAC,EAAE,QAAQ,CAAC;IACrC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ILoan.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoan.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IAccount } from './IAccount';\nimport { ILoanFile } from './ILoanFile';\n\nexport interface ILoan {\n id?: number;\n name: string;\n lenderDesignation: string;\n number: string;\n accountCount: number;\n amount: number;\n assetBeforeExercice: number;\n assetAfterExercice: number;\n monthDuration?: number;\n rate?: number;\n idExercice: number;\n idSociety: number;\n idAccountRefund: number;\n idAccountBenefit: number;\n idAccountInsurance: number;\n idAccountCommission: number;\n idAccountReleaseLoanCapital: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n exercice?: IExercice;\n accountRefund?: IAccount;\n accountBenefit?: IAccount;\n accountInsurance?: IAccount;\n accountCommission?: IAccount;\n accountReleaseLoanCapital?: IAccount;\n loanFiles?: ILoanFile[];\n}\n"]}
1
+ {"version":3,"file":"ILoan.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoan.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IAccount } from './IAccount';\nimport { ILoanFile } from './ILoanFile';\nimport { ILoanEarlyRepayment } from './ILoanEarlyRepayment';\n\nexport interface ILoan {\n id?: number;\n name: string;\n lenderDesignation: string;\n number: string;\n accountCount: number;\n amount: number;\n assetBeforeExercice: number;\n assetAfterExercice: number;\n monthDuration?: number;\n rate?: number;\n annuity: number | null;\n unlockDate: Date | null;\n firstDueDate: Date | null;\n commission: number | null;\n insurance: number | null;\n idExercice: number;\n idSociety: number;\n idAccountRefund: number;\n idAccountBenefit: number;\n idAccountInsurance: number;\n idAccountCommission: number;\n idAccountReleaseLoanCapital: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n exercice?: IExercice;\n accountRefund?: IAccount;\n accountBenefit?: IAccount;\n accountInsurance?: IAccount;\n accountCommission?: IAccount;\n accountReleaseLoanCapital?: IAccount;\n loanFiles?: ILoanFile[];\n earlyRepayments?: ILoanEarlyRepayment[];\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { ILoan } from './ILoan';
2
+ export interface ILoanEarlyRepayment {
3
+ id?: number;
4
+ amount: number;
5
+ date: Date;
6
+ annuity: number;
7
+ idLoan: number;
8
+ createdAt?: Date;
9
+ updatedAt?: Date;
10
+ loan?: ILoan;
11
+ }
12
+ //# sourceMappingURL=ILoanEarlyRepayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILoanEarlyRepayment.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoanEarlyRepayment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILoanEarlyRepayment.js.map