@silexpert/core 1.1.343 → 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 (80) hide show
  1. package/dist/cjs/api/resources/Loan.d.ts +9 -11
  2. package/dist/cjs/api/resources/Loan.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Loan.js +23 -17
  4. package/dist/cjs/api/resources/Loan.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts +1 -0
  6. package/dist/cjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
  7. package/dist/cjs/types/Interface/api/bankAccount/Query.js +7 -0
  8. package/dist/cjs/types/Interface/api/bankAccount/Query.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts +7 -0
  10. package/dist/cjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -0
  11. package/dist/cjs/types/Interface/api/exercice/ReadExercice.js +3 -0
  12. package/dist/cjs/types/Interface/api/exercice/ReadExercice.js.map +1 -0
  13. package/dist/cjs/types/Interface/api/loan/CreateLoan.d.ts +13 -2
  14. package/dist/cjs/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/loan/CreateLoan.js +53 -3
  16. package/dist/cjs/types/Interface/api/loan/CreateLoan.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/loan/ReadLoan.d.ts +10 -0
  18. package/dist/cjs/types/Interface/api/loan/ReadLoan.d.ts.map +1 -0
  19. package/dist/cjs/types/Interface/api/loan/ReadLoan.js +3 -0
  20. package/dist/cjs/types/Interface/api/loan/ReadLoan.js.map +1 -0
  21. package/dist/cjs/types/Interface/api/loan/UpdateLoan.d.ts +0 -6
  22. package/dist/cjs/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/loan/UpdateLoan.js +2 -36
  24. package/dist/cjs/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/ILoan.d.ts +7 -0
  26. package/dist/cjs/types/Interface/models/ILoan.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/ILoan.js.map +1 -1
  28. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.d.ts +12 -0
  29. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.d.ts.map +1 -0
  30. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.js +3 -0
  31. package/dist/cjs/types/Interface/models/ILoanEarlyRepayment.js.map +1 -0
  32. package/dist/cjs/types/index.d.ts +3 -0
  33. package/dist/cjs/types/index.d.ts.map +1 -1
  34. package/dist/cjs/types/index.js +3 -0
  35. package/dist/cjs/types/index.js.map +1 -1
  36. package/dist/mjs/api/resources/Loan.d.ts +9 -11
  37. package/dist/mjs/api/resources/Loan.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Loan.js +23 -17
  39. package/dist/mjs/api/resources/Loan.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts +1 -0
  41. package/dist/mjs/types/Interface/api/bankAccount/Query.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/bankAccount/Query.js +8 -0
  43. package/dist/mjs/types/Interface/api/bankAccount/Query.js.map +1 -1
  44. package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts +7 -0
  45. package/dist/mjs/types/Interface/api/exercice/ReadExercice.d.ts.map +1 -0
  46. package/dist/mjs/types/Interface/api/exercice/ReadExercice.js +2 -0
  47. package/dist/mjs/types/Interface/api/exercice/ReadExercice.js.map +1 -0
  48. package/dist/mjs/types/Interface/api/loan/CreateLoan.d.ts +13 -2
  49. package/dist/mjs/types/Interface/api/loan/CreateLoan.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/loan/CreateLoan.js +61 -3
  51. package/dist/mjs/types/Interface/api/loan/CreateLoan.js.map +1 -1
  52. package/dist/mjs/types/Interface/api/loan/ReadLoan.d.ts +10 -0
  53. package/dist/mjs/types/Interface/api/loan/ReadLoan.d.ts.map +1 -0
  54. package/dist/mjs/types/Interface/api/loan/ReadLoan.js +2 -0
  55. package/dist/mjs/types/Interface/api/loan/ReadLoan.js.map +1 -0
  56. package/dist/mjs/types/Interface/api/loan/UpdateLoan.d.ts +0 -6
  57. package/dist/mjs/types/Interface/api/loan/UpdateLoan.d.ts.map +1 -1
  58. package/dist/mjs/types/Interface/api/loan/UpdateLoan.js +3 -43
  59. package/dist/mjs/types/Interface/api/loan/UpdateLoan.js.map +1 -1
  60. package/dist/mjs/types/Interface/models/ILoan.d.ts +7 -0
  61. package/dist/mjs/types/Interface/models/ILoan.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/models/ILoan.js.map +1 -1
  63. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.d.ts +12 -0
  64. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.d.ts.map +1 -0
  65. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.js +2 -0
  66. package/dist/mjs/types/Interface/models/ILoanEarlyRepayment.js.map +1 -0
  67. package/dist/mjs/types/index.d.ts +3 -0
  68. package/dist/mjs/types/index.d.ts.map +1 -1
  69. package/dist/mjs/types/index.js +3 -0
  70. package/dist/mjs/types/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/api/resources/Loan.ts +28 -21
  73. package/ts/types/Interface/api/bankAccount/Query.ts +6 -0
  74. package/ts/types/Interface/api/exercice/ReadExercice.ts +6 -0
  75. package/ts/types/Interface/api/loan/CreateLoan.ts +45 -5
  76. package/ts/types/Interface/api/loan/ReadLoan.ts +9 -0
  77. package/ts/types/Interface/api/loan/UpdateLoan.ts +3 -31
  78. package/ts/types/Interface/models/ILoan.ts +7 -0
  79. package/ts/types/Interface/models/ILoanEarlyRepayment.ts +13 -0
  80. package/ts/types/index.ts +3 -0
@@ -1,17 +1,15 @@
1
+ /// <reference types="node" />
1
2
  import { Resource } from '../Resource';
2
- import { CreateLoanForm, IAccount, ILoan, UpdateLoanForm } from '../../types';
3
+ import { CreateEarlyRepayment, CreateLoanForm, IAccount, ILoan, ILoanEarlyRepayment, UpdateLoanForm } from '../../types';
3
4
  export declare class Loan extends Resource {
4
- /** @deprecated use getAll() */
5
- getLoans(): Promise<ILoan[]>;
6
5
  getAll(idSociety: number): Promise<ILoan[]>;
7
- getLoan(params: {
8
- idLoan: number;
9
- }): Promise<ILoan>;
10
- createLoan(params: CreateLoanForm): Promise<ILoan>;
11
- updateLoan(idLoan: number, payload: UpdateLoanForm): Promise<ILoan>;
12
- deleteLoan(idLoan: number): Promise<true>;
13
- /** @deprecated use getAllAccounts() */
14
- accounts(): Promise<IAccount[]>;
6
+ get(id: number): Promise<ILoan>;
7
+ create(idSociety: number, params: CreateLoanForm): Promise<ILoan>;
8
+ update(id: number, payload: UpdateLoanForm): Promise<ILoan>;
9
+ delete(id: number): Promise<true>;
15
10
  getAllAccounts(idSociety: number): Promise<IAccount[]>;
11
+ createEarlyRepayment(idLoan: number, payload: CreateEarlyRepayment): Promise<ILoanEarlyRepayment>;
12
+ deleteEarlyRepayment(idLoan: number, idEarlyRepayment: number): Promise<true>;
13
+ getDepreciationFile(idLoan: number): Promise<Buffer>;
16
14
  }
17
15
  //# sourceMappingURL=Loan.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Loan.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Loan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,cAAc,EAChD,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC,+BAA+B;IAC/B,QAAQ,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IAI5B,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAI3C,OAAO,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;K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AAC,mBAAmB,CAAC;IAIjG,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7E,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQrD"}
@@ -3,42 +3,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Loan = void 0;
4
4
  const Resource_1 = require("../Resource");
5
5
  class Loan extends Resource_1.Resource {
6
- /** @deprecated use getAll() */
7
- getLoans() {
8
- return this.axios.$get('/loans');
9
- }
10
6
  getAll(idSociety) {
11
7
  return this.axios.$get(`/societies/${idSociety}/loans`);
12
8
  }
13
- getLoan(params) {
14
- return this.axios.$get(`/loan/${params.idLoan}`);
9
+ get(id) {
10
+ return this.axios.$get(`/loan/${id}`);
15
11
  }
16
- createLoan(params) {
12
+ create(idSociety, params) {
17
13
  var _a;
18
14
  const formData = new FormData();
19
15
  Object.entries(params).forEach(([key, value]) => {
20
- if (value || value === 0) {
16
+ if (value !== undefined && value !== null) {
21
17
  formData.append(key, `${value}`);
22
18
  }
23
19
  });
24
20
  (_a = params.files) === null || _a === void 0 ? void 0 : _a.forEach((file) => {
25
21
  formData.append('files', file);
26
22
  });
27
- return this.axios.$post('/loan', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
28
- }
29
- updateLoan(idLoan, payload) {
30
- return this.axios.$put(`/loan/${idLoan}`, payload);
23
+ return this.axios.$post(`/societies/${idSociety}/loans`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });
31
24
  }
32
- deleteLoan(idLoan) {
33
- return this.axios.$delete(`/loan/${idLoan}`);
25
+ update(id, payload) {
26
+ return this.axios.$put(`/loan/${id}`, payload);
34
27
  }
35
- /** @deprecated use getAllAccounts() */
36
- accounts() {
37
- return this.axios.$get('/loans/accounts');
28
+ delete(id) {
29
+ return this.axios.$delete(`/loan/${id}`);
38
30
  }
39
31
  getAllAccounts(idSociety) {
40
32
  return this.axios.$get(`/societies/${idSociety}/loans/accounts`);
41
33
  }
34
+ createEarlyRepayment(idLoan, payload) {
35
+ return this.axios.$post(`/loans/${idLoan}/early-repayments`, payload);
36
+ }
37
+ deleteEarlyRepayment(idLoan, idEarlyRepayment) {
38
+ return this.axios.$delete(`/loans/${idLoan}/early-repayments/${idEarlyRepayment}`);
39
+ }
40
+ getDepreciationFile(idLoan) {
41
+ return this.axios.$get(`/loans/${idLoan}/depreciation-files`, {
42
+ responseType: 'arraybuffer',
43
+ headers: {
44
+ Accept: 'application/pdf',
45
+ },
46
+ });
47
+ }
42
48
  }
43
49
  exports.Loan = Loan;
44
50
  //# sourceMappingURL=Loan.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Loan.js","sourceRoot":"","sources":["../../../../ts/api/resources/Loan.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAKvC,MAAa,IAAK,SAAQ,mBAAQ;IAChC,+BAA+B;IAC/B,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,SAAiB;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,CAAC,MAA0B;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;IAGD,UAAU,CAAC,MAAsB;;QAC/B,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC9C,IAAI,KAAK,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBACzB,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YACnC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,OAAuB;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,UAAU,CAAC,MAAc;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,uCAAuC;IACvC,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC5C,CAAC;IAED,cAAc,CAAC,SAAiB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,iBAAiB,CAAC,CAAC;IACnE,CAAC;CACF;AA/CD,oBA+CC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateLoanForm, IAccount, ILoan, UpdateLoanForm,\n} from '../../types';\n\nexport class Loan extends Resource {\n /** @deprecated use getAll() */\n getLoans(): Promise<ILoan[]> {\n return this.axios.$get('/loans');\n }\n\n getAll(idSociety: number): Promise<ILoan[]> {\n return this.axios.$get(`/societies/${idSociety}/loans`);\n }\n\n getLoan(params: { idLoan: number }): Promise<ILoan> {\n return this.axios.$get(`/loan/${params.idLoan}`);\n }\n\n\n createLoan(params: CreateLoanForm): Promise<ILoan> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === 0) {\n formData.append(key, `${value}`);\n }\n });\n \n params.files?.forEach((file) => {\n formData.append('files', file);\n });\n\n return this.axios.$post('/loan', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n updateLoan(idLoan: number, payload: UpdateLoanForm): Promise<ILoan> {\n return this.axios.$put(`/loan/${idLoan}`, payload);\n }\n\n deleteLoan(idLoan: number): Promise<true> {\n return this.axios.$delete(`/loan/${idLoan}`);\n }\n\n /** @deprecated use getAllAccounts() */\n accounts(): Promise<IAccount[]> {\n return this.axios.$get('/loans/accounts');\n }\n\n getAllAccounts(idSociety: number): Promise<IAccount[]> {\n return this.axios.$get(`/societies/${idSociety}/loans/accounts`);\n }\n}\n"]}
1
+ {"version":3,"file":"Loan.js","sourceRoot":"","sources":["../../../../ts/api/resources/Loan.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAMvC,MAAa,IAAK,SAAQ,mBAAQ;IAChC,MAAM,CAAC,SAAiB;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,MAAsB;;QAC9C,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC9C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBAC1C,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YACnC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,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IAccount, ILoan, ILoanEarlyRepayment, UpdateLoanForm,\n} from '../../types';\n\nexport class Loan extends Resource {\n getAll(idSociety: number): Promise<ILoan[]> {\n return this.axios.$get(`/societies/${idSociety}/loans`);\n }\n\n get(id: number): Promise<ILoan> {\n return this.axios.$get(`/loan/${id}`);\n }\n\n create(idSociety: number, params: CreateLoanForm): Promise<ILoan> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value !== undefined && value !== null) {\n formData.append(key, `${value}`);\n }\n });\n \n params.files?.forEach((file) => {\n formData.append('files', file);\n });\n\n return this.axios.$post(`/societies/${idSociety}/loans`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n update(id: number, payload: UpdateLoanForm): Promise<ILoan> {\n return this.axios.$put(`/loan/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/loan/${id}`);\n }\n\n getAllAccounts(idSociety: number): Promise<IAccount[]> {\n return this.axios.$get(`/societies/${idSociety}/loans/accounts`);\n }\n\n createEarlyRepayment(idLoan: number, payload: CreateEarlyRepayment): Promise<ILoanEarlyRepayment> {\n return this.axios.$post(`/loans/${idLoan}/early-repayments`, payload);\n }\n\n deleteEarlyRepayment(idLoan: number, idEarlyRepayment: number): Promise<true> {\n return this.axios.$delete(`/loans/${idLoan}/early-repayments/${idEarlyRepayment}`);\n }\n\n getDepreciationFile(idLoan: number): Promise<Buffer> {\n return this.axios.$get(`/loans/${idLoan}/depreciation-files`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}\n"]}
@@ -18,5 +18,6 @@ export declare class QueryBankAccount {
18
18
  isActivated?: boolean;
19
19
  idBankAccountType?: number;
20
20
  idPartnerType?: PartnerTransactionType;
21
+ withCheckBalance?: boolean;
21
22
  }
22
23
  //# sourceMappingURL=Query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankAccount/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AE,MAAM,CAAC;IAKhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,UAAU,CAAC,EAAE,OAAO,CAAC;IAIrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,gBAAgB;IAKzB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAM3B,aAAa,CAAC,EAAE,sBAAsB,CAAC;IAMvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -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;IAC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AE;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}"]}
@@ -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}"]}
@@ -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,S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C,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILoanEarlyRepayment.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ILoanEarlyRepayment.ts"],"names":[],"mappings":"","sourcesContent":["import { ILoan } from './ILoan';\n\nexport interface ILoanEarlyRepayment {\n id?: number;\n amount: number;\n date: Date;\n annuity: number;\n idLoan: number;\n createdAt?: Date;\n updatedAt?: Date;\n\n loan?: ILoan;\n}"]}
@@ -332,6 +332,7 @@ export * from './Interface/models/IExpertAnnuary';
332
332
  export * from './Interface/models/IUserTimeSlot';
333
333
  export * from './Interface/models/ICompanyCreationForm';
334
334
  export * from './Interface/models/IAnnotation';
335
+ export * from './Interface/models/ILoanEarlyRepayment';
335
336
  export * from './Interface/schemas/IRegistrationDetail';
336
337
  export * from './Interface/schemas/ITransactionHistory';
337
338
  export * from './Form/FormAuthenticate';
@@ -534,6 +535,7 @@ export * from './Enum/StateSynchro';
534
535
  export * from './Enum/RefundReason';
535
536
  export * from './Enum/Contest';
536
537
  export * from './Enum/LetterResponseType';
538
+ export * from './Interface/api/exercice/ReadExercice';
537
539
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
538
540
  export * from './Interface/api/cashAndExpense/Query';
539
541
  export * from './Interface/api/cerfa/das2';
@@ -801,6 +803,7 @@ export * from './Interface/api/promoCode/UpdatePromoCode';
801
803
  export * from './Interface/api/promoCode/CreatePromoCode';
802
804
  export * from './Interface/api/balanceBankAccount/CreateBudgetBalanceBankAccount';
803
805
  export * from './Interface/api/loan/CreateLoan';
806
+ export * from './Interface/api/loan/ReadLoan';
804
807
  export * from './Interface/api/stock/StocksType';
805
808
  export * from './Interface/api/lettering/QueryRegroupLettering';
806
809
  export * from './Interface/api/societyPromoCode/CreateSocietyPromoCode';