@silexpert/core 1.3.160 → 1.3.163

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 (158) hide show
  1. package/dist/cjs/api/resources/BalanceSheet.d.ts +2 -4
  2. package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BalanceSheet.js +3 -2
  4. package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
  5. package/dist/cjs/api/resources/Card.d.ts +2 -4
  6. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Card.js +0 -1
  8. package/dist/cjs/api/resources/Card.js.map +1 -1
  9. package/dist/cjs/api/resources/GeneralLedger.d.ts +2 -1
  10. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/GeneralLedger.js +9 -0
  12. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  13. package/dist/cjs/types/Enum/BalanceSheet.d.ts +7 -0
  14. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BalanceSheet.js +61 -0
  16. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  17. package/dist/cjs/types/Enum/Card.d.ts +10 -0
  18. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/Card.js +14 -1
  20. package/dist/cjs/types/Enum/Card.js.map +1 -1
  21. package/dist/cjs/types/Enum/IncomeStatement.d.ts +7 -0
  22. package/dist/cjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/IncomeStatement.js +39 -0
  24. package/dist/cjs/types/Enum/IncomeStatement.js.map +1 -1
  25. package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts +7 -0
  26. package/dist/cjs/types/Enum/TransactionRangeFilter.d.ts.map +1 -0
  27. package/dist/cjs/types/Enum/TransactionRangeFilter.js +11 -0
  28. package/dist/cjs/types/Enum/TransactionRangeFilter.js.map +1 -0
  29. package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts +3 -0
  30. package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/balanceSheet/Query.js +11 -1
  32. package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -0
  34. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
  37. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
  39. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/card/UpdateCard.js +6 -0
  41. package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  43. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  46. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  48. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  49. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
  51. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  52. package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +1 -0
  53. package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +9 -0
  55. package/dist/cjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
  56. package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
  57. package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  58. package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
  59. package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
  60. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  61. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  62. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +4 -13
  63. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  64. package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
  65. package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  66. package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
  67. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  68. package/dist/cjs/utils/prestation.js +9 -4
  69. package/dist/cjs/utils/prestation.js.map +1 -1
  70. package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -4
  71. package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/BalanceSheet.js +3 -2
  73. package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
  74. package/dist/mjs/api/resources/Card.d.ts +2 -4
  75. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  76. package/dist/mjs/api/resources/Card.js +0 -1
  77. package/dist/mjs/api/resources/Card.js.map +1 -1
  78. package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
  79. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  80. package/dist/mjs/api/resources/GeneralLedger.js +9 -0
  81. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  82. package/dist/mjs/types/Enum/BalanceSheet.d.ts +7 -0
  83. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  84. package/dist/mjs/types/Enum/BalanceSheet.js +61 -0
  85. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  86. package/dist/mjs/types/Enum/Card.d.ts +10 -0
  87. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  88. package/dist/mjs/types/Enum/Card.js +13 -0
  89. package/dist/mjs/types/Enum/Card.js.map +1 -1
  90. package/dist/mjs/types/Enum/IncomeStatement.d.ts +7 -0
  91. package/dist/mjs/types/Enum/IncomeStatement.d.ts.map +1 -1
  92. package/dist/mjs/types/Enum/IncomeStatement.js +39 -0
  93. package/dist/mjs/types/Enum/IncomeStatement.js.map +1 -1
  94. package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts +7 -0
  95. package/dist/mjs/types/Enum/TransactionRangeFilter.d.ts.map +1 -0
  96. package/dist/mjs/types/Enum/TransactionRangeFilter.js +8 -0
  97. package/dist/mjs/types/Enum/TransactionRangeFilter.js.map +1 -0
  98. package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts +3 -0
  99. package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  100. package/dist/mjs/types/Interface/api/balanceSheet/Query.js +10 -0
  101. package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  102. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +2 -0
  103. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -1
  104. package/dist/mjs/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
  106. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  107. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
  108. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  109. package/dist/mjs/types/Interface/api/card/UpdateCard.js +8 -1
  110. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  111. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  112. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  114. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  115. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  116. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  117. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  118. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  119. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
  120. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  121. package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts +1 -0
  122. package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.d.ts.map +1 -1
  123. package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js +11 -1
  124. package/dist/mjs/types/Interface/api/incomeStatement/QueryIncomeStatement.js.map +1 -1
  125. package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
  126. package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  127. package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
  128. package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
  129. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  130. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  131. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -16
  132. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  133. package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
  134. package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  135. package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
  136. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  137. package/dist/mjs/utils/prestation.js +3 -1
  138. package/dist/mjs/utils/prestation.js.map +1 -1
  139. package/package.json +1 -1
  140. package/ts/api/resources/BalanceSheet.ts +4 -2
  141. package/ts/api/resources/Card.ts +2 -3
  142. package/ts/api/resources/GeneralLedger.ts +11 -0
  143. package/ts/types/Enum/BalanceSheet.ts +69 -0
  144. package/ts/types/Enum/Card.ts +14 -0
  145. package/ts/types/Enum/IncomeStatement.ts +47 -0
  146. package/ts/types/Enum/TransactionRangeFilter.ts +6 -0
  147. package/ts/types/Interface/api/balanceSheet/Query.ts +8 -0
  148. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +3 -0
  149. package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
  150. package/ts/types/Interface/api/card/UpdateCard.ts +6 -1
  151. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
  152. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
  153. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
  154. package/ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts +9 -1
  155. package/ts/types/Interface/api/revenueMovement.ts +153 -9
  156. package/ts/types/Interface/api/revenueSnapshotGenerate.ts +13 -13
  157. package/ts/types/Interface/models/IImmobilization.ts +1 -0
  158. package/ts/utils/prestation.ts +3 -1
@@ -1,3 +1,4 @@
1
+ import { ThirdPartyType } from '../../../Enum/ThirdPartyType';
1
2
  export declare class QueryGeneralLedgerAuxiliary {
2
3
  dateStart: string;
3
4
  dateEnd: string;
@@ -9,4 +10,12 @@ export declare class QueryGeneralLedgerAuxiliary {
9
10
  search?: string;
10
11
  idThirdParty?: number;
11
12
  }
13
+ export type LetteringState = 'all' | 'only' | 'none';
14
+ export declare class QueryGeneralLedgerAuxiliaryPdf {
15
+ startDate: string;
16
+ endDate: string;
17
+ idThirdPartyType?: ThirdPartyType;
18
+ idThirdParty?: number[];
19
+ lettering?: LetteringState;
20
+ }
12
21
  //# sourceMappingURL=QueryGeneralLedgerAuxiliary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryGeneralLedgerAuxiliary.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":"AAMA,qBAAa,2BAA2B;IAGtC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAMb,aAAa,CAAC,EAAE,OAAO,CAAC;IAMxB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"QueryGeneralLedgerAuxiliary.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,qBAAa,2BAA2B;IAGtC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAMb,aAAa,CAAC,EAAE,OAAO,CAAC;IAMxB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,qBAAa,8BAA8B;IAGzC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAIlC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B"}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber } from 'class-validator';
10
+ import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber, IsDateString } from 'class-validator';
11
11
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
12
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
13
  import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
@@ -76,4 +76,37 @@ __decorate([
76
76
  IsOptional(),
77
77
  __metadata("design:type", Number)
78
78
  ], QueryGeneralLedgerAuxiliary.prototype, "idThirdParty", void 0);
79
+ export class QueryGeneralLedgerAuxiliaryPdf {
80
+ startDate;
81
+ endDate;
82
+ idThirdPartyType;
83
+ idThirdParty;
84
+ lettering;
85
+ }
86
+ __decorate([
87
+ ApiProperty(),
88
+ IsDateString(),
89
+ __metadata("design:type", String)
90
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "startDate", void 0);
91
+ __decorate([
92
+ ApiProperty(),
93
+ IsDateString(),
94
+ __metadata("design:type", String)
95
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "endDate", void 0);
96
+ __decorate([
97
+ ApiPropertyOptional(),
98
+ IsOptional(),
99
+ __metadata("design:type", Number)
100
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdPartyType", void 0);
101
+ __decorate([
102
+ ApiPropertyOptional(),
103
+ IsOptional(),
104
+ __metadata("design:type", Array)
105
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdParty", void 0);
106
+ __decorate([
107
+ ApiPropertyOptional(),
108
+ IsEnum(['all', 'only', 'none']),
109
+ IsOptional(),
110
+ __metadata("design:type", String)
111
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "lettering", void 0);
79
112
  //# sourceMappingURL=QueryGeneralLedgerAuxiliary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryGeneralLedgerAuxiliary.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,OAAO,2BAA2B;IAGtC,SAAS,CAAS;IAIlB,OAAO,CAAS;IAIhB,gBAAgB,CAAS;IAKzB,KAAK,CAAS;IAKd,IAAI,CAAS;IAMb,aAAa,CAAW;IAMxB,UAAU,CAAW;IAKrB,MAAM,CAAU;IAKhB,YAAY,CAAU;CACvB;AAzCC;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;8DACN;AAIlB;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;4DACR;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;qEACE;AAKzB;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;0DACO;AAKd;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;yDACM;AAMb;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,+DAA+D,EAAE,CAAC;IAClH,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kEACW;AAMxB;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;+DACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACG;AAKhB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACS","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';\nimport { ThirdPartyType } from '../../../Enum/ThirdPartyType';\n\nexport class QueryGeneralLedgerAuxiliary {\n @ApiProperty()\n @IsFormattedDateString()\n dateStart: string;\n\n @ApiProperty()\n @IsFormattedDateString()\n dateEnd: string;\n\n @ApiProperty()\n @IsEnum(ThirdPartyType)\n idThirdPartyType: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional({ default: false, describe: 'If set to true, it will search only entries with no lettering' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n}\n"]}
1
+ {"version":3,"file":"QueryGeneralLedgerAuxiliary.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC9G,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,OAAO,2BAA2B;IAGtC,SAAS,CAAS;IAIlB,OAAO,CAAS;IAIhB,gBAAgB,CAAS;IAKzB,KAAK,CAAS;IAKd,IAAI,CAAS;IAMb,aAAa,CAAW;IAMxB,UAAU,CAAW;IAKrB,MAAM,CAAU;IAKhB,YAAY,CAAU;CACvB;AAzCC;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;8DACN;AAIlB;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;4DACR;AAIhB;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;qEACE;AAKzB;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;0DACO;AAKd;IAHC,WAAW,EAAE;IACb,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;;yDACM;AAMb;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,+DAA+D,EAAE,CAAC;IAClH,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kEACW;AAMxB;IAJC,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;+DACQ;AAKrB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACG;AAKhB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iEACS;AAKxB,MAAM,OAAO,8BAA8B;IAGzC,SAAS,CAAS;IAIlB,OAAO,CAAS;IAIhB,gBAAgB,CAAkB;IAIlC,YAAY,CAAY;IAKxB,SAAS,CAAkB;CAC5B;AAlBC;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;iEACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;+DACC;AAIhB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;wEACqB;AAIlC;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;oEACW;AAKxB;IAHC,mBAAmB,EAAE;IACrB,MAAM,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,UAAU,EAAE;;iEACc","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min, IsNumber, IsDateString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';\nimport { ThirdPartyType } from '../../../Enum/ThirdPartyType';\n\nexport class QueryGeneralLedgerAuxiliary {\n @ApiProperty()\n @IsFormattedDateString()\n dateStart: string;\n\n @ApiProperty()\n @IsFormattedDateString()\n dateEnd: string;\n\n @ApiProperty()\n @IsEnum(ThirdPartyType)\n idThirdPartyType: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n limit: number;\n\n @ApiProperty()\n @IsInt()\n @Min(1)\n page: number;\n\n @ApiPropertyOptional({ default: false, describe: 'If set to true, it will search only entries with no lettering' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n\n @ApiPropertyOptional({ default: true })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n search?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idThirdParty?: number;\n}\n\nexport type LetteringState = 'all' | 'only' | 'none';\n\nexport class QueryGeneralLedgerAuxiliaryPdf {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n idThirdPartyType?: ThirdPartyType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idThirdParty?: number[];\n\n @ApiPropertyOptional()\n @IsEnum(['all', 'only', 'none'])\n @IsOptional()\n lettering?: LetteringState;\n}\n"]}
@@ -5,5 +5,6 @@ export declare class QueryIncomeStatement {
5
5
  export declare class QueryIncomeStatementPdf {
6
6
  startDate: string;
7
7
  endDate: string;
8
+ withDetails?: boolean;
8
9
  }
9
10
  //# sourceMappingURL=QueryIncomeStatement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryIncomeStatement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;IAE/B,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAElC,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"QueryIncomeStatement.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":"AAIA,qBAAa,oBAAoB;IAE/B,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAElC,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAMhB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -7,7 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { ApiProperty } from '../../../../utils';
10
+ import { IsBoolean, IsOptional } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
11
13
  export class QueryIncomeStatement {
12
14
  startDate;
13
15
  endDate;
@@ -23,6 +25,7 @@ __decorate([
23
25
  export class QueryIncomeStatementPdf {
24
26
  startDate;
25
27
  endDate;
28
+ withDetails;
26
29
  }
27
30
  __decorate([
28
31
  ApiProperty(),
@@ -32,4 +35,11 @@ __decorate([
32
35
  ApiProperty(),
33
36
  __metadata("design:type", String)
34
37
  ], QueryIncomeStatementPdf.prototype, "endDate", void 0);
38
+ __decorate([
39
+ ApiPropertyOptional(),
40
+ IsBoolean(),
41
+ ToBoolean(),
42
+ IsOptional(),
43
+ __metadata("design:type", Boolean)
44
+ ], QueryIncomeStatementPdf.prototype, "withDetails", void 0);
35
45
  //# sourceMappingURL=QueryIncomeStatement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryIncomeStatement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,oBAAoB;IAE/B,SAAS,CAAS;IAGlB,OAAO,CAAS;CACjB;AAJC;IADC,WAAW,EAAE;;uDACI;AAGlB;IADC,WAAW,EAAE;;qDACE;AAGlB,MAAM,OAAO,uBAAuB;IAElC,SAAS,CAAS;IAGlB,OAAO,CAAS;CACjB;AAJC;IADC,WAAW,EAAE;;0DACI;AAGlB;IADC,WAAW,EAAE;;wDACE","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryIncomeStatement {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n}\n\nexport class QueryIncomeStatementPdf {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n}\n"]}
1
+ {"version":3,"file":"QueryIncomeStatement.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/incomeStatement/QueryIncomeStatement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;IAE/B,SAAS,CAAS;IAGlB,OAAO,CAAS;CACjB;AAJC;IADC,WAAW,EAAE;;uDACI;AAGlB;IADC,WAAW,EAAE;;qDACE;AAGlB,MAAM,OAAO,uBAAuB;IAElC,SAAS,CAAS;IAGlB,OAAO,CAAS;IAMhB,WAAW,CAAW;CACvB;AAVC;IADC,WAAW,EAAE;;0DACI;AAGlB;IADC,WAAW,EAAE;;wDACE;AAMhB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACS","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryIncomeStatement {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n}\n\nexport class QueryIncomeStatementPdf {\n @ApiProperty()\n startDate: string;\n\n @ApiProperty()\n endDate: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withDetails?: boolean;\n}\n"]}
@@ -2,7 +2,7 @@ import { RevenueMovementType } from '../../Enum/Revenue';
2
2
  /**
3
3
  * DTO pour créer un mouvement de revenu
4
4
  */
5
- export interface ICreateRevenueMovementRequest {
5
+ export declare class ICreateRevenueMovementRequest {
6
6
  type: RevenueMovementType;
7
7
  idSociety: number;
8
8
  idExercice?: number;
@@ -19,7 +19,7 @@ export interface ICreateRevenueMovementRequest {
19
19
  /**
20
20
  * DTO pour mettre à jour un mouvement de revenu
21
21
  */
22
- export interface IUpdateRevenueMovementRequest {
22
+ export declare class IUpdateRevenueMovementRequest {
23
23
  type?: RevenueMovementType;
24
24
  idTerminationList?: number;
25
25
  idChurnMovement?: number;
@@ -33,7 +33,7 @@ export interface IUpdateRevenueMovementRequest {
33
33
  /**
34
34
  * Filtres pour récupérer les mouvements de revenu
35
35
  */
36
- export interface IGetRevenueMovementsRequest {
36
+ export declare class IGetRevenueMovementsRequest {
37
37
  idSociety?: number;
38
38
  idExercice?: number;
39
39
  idPrestation?: number;
@@ -58,7 +58,7 @@ export interface IGetRevenueMovementsResponse {
58
58
  /**
59
59
  * DTO pour générer un snapshot de revenu
60
60
  */
61
- export interface IGenerateSnapshotRequest {
61
+ export declare class IGenerateSnapshotRequest {
62
62
  date?: string;
63
63
  idSociety?: number;
64
64
  idExercice?: number;
@@ -66,24 +66,25 @@ export interface IGenerateSnapshotRequest {
66
66
  /**
67
67
  * DTO pour générer tous les snapshots de revenu
68
68
  */
69
- export interface IGenerateAllSnapshotsRequest {
69
+ export declare class IGenerateAllSnapshotsRequest {
70
70
  date?: string;
71
71
  }
72
72
  /**
73
73
  * DTO pour gérer la rétroactivité des mouvements de revenu
74
74
  */
75
- export interface IManageRetroactivityRequest {
75
+ export declare class IManageRetroactivityRequest {
76
76
  idSociety: number;
77
77
  idExercice?: number;
78
+ date?: Date;
78
79
  }
79
80
  /**
80
81
  * Réponse pour la gestion de la rétroactivité
81
82
  */
82
83
  export interface IManageRetroactivityResponse {
83
84
  idSociety: number;
84
- idExercice: number;
85
- exerciceStartDate: Date;
86
- exerciceEndDate: Date;
85
+ idExercice: number[];
86
+ exerciceStartDate: Date[];
87
+ exerciceEndDate: Date[];
87
88
  movementsCreated: {
88
89
  bookings: number;
89
90
  churns: number;
@@ -1 +1 @@
1
- {"version":3,"file":"revenueMovement.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,mBAA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;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,IAAI,CAAC;IACxB,eAAe,EAAE,IAAI,CAAC;IACtB,gBAAgB,EAAE;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CACL"}
1
+ {"version":3,"file":"revenueMovement.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;GAEG;AACH,qBAAa,6BAA6B;IAGxC,IAAI,EAAE,mBAAmB,CAAC;IAI1B,SAAS,EAAE,MAAM,CAAC;IAKlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAK3B,eAAe,CAAC,EAAE,MAAM,CAAC;IAIzB,MAAM,EAAE,MAAM,CAAC;IAIf,GAAG,EAAE,MAAM,CAAC;IAIZ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AED;;GAEG;AACH,qBAAa,wBAAwB;IAInC,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,qBAAa,4BAA4B;IAIvC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,qBAAa,2BAA2B;IAItC,SAAS,EAAE,MAAM,CAAC;IAKlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,IAAI,EAAE,CAAC;IAC1B,eAAe,EAAE,IAAI,EAAE,CAAC;IACxB,gBAAgB,EAAE;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,EAAE,CAAC;CACL"}
@@ -1,2 +1,304 @@
1
- export {};
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';
11
+ import { RevenueMovementType } from '../../Enum/Revenue';
12
+ import { ApiProperty, ApiPropertyOptional } from '../../../utils';
13
+ /**
14
+ * DTO pour créer un mouvement de revenu
15
+ */
16
+ export class ICreateRevenueMovementRequest {
17
+ type;
18
+ idSociety;
19
+ idExercice;
20
+ idPrestation;
21
+ idTerminationList;
22
+ idChurnMovement;
23
+ amount;
24
+ mrr;
25
+ arr;
26
+ movementDate;
27
+ description;
28
+ metadata;
29
+ }
30
+ __decorate([
31
+ ApiProperty(),
32
+ IsEnum(RevenueMovementType),
33
+ __metadata("design:type", Number)
34
+ ], ICreateRevenueMovementRequest.prototype, "type", void 0);
35
+ __decorate([
36
+ ApiProperty(),
37
+ IsInt(),
38
+ __metadata("design:type", Number)
39
+ ], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
40
+ __decorate([
41
+ ApiPropertyOptional(),
42
+ IsOptional(),
43
+ IsInt(),
44
+ __metadata("design:type", Number)
45
+ ], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
46
+ __decorate([
47
+ ApiPropertyOptional(),
48
+ IsOptional(),
49
+ IsInt(),
50
+ __metadata("design:type", Number)
51
+ ], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
52
+ __decorate([
53
+ ApiPropertyOptional(),
54
+ IsOptional(),
55
+ IsInt(),
56
+ __metadata("design:type", Number)
57
+ ], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
58
+ __decorate([
59
+ ApiPropertyOptional(),
60
+ IsOptional(),
61
+ IsInt(),
62
+ __metadata("design:type", Number)
63
+ ], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
64
+ __decorate([
65
+ ApiProperty(),
66
+ IsInt(),
67
+ __metadata("design:type", Number)
68
+ ], ICreateRevenueMovementRequest.prototype, "amount", void 0);
69
+ __decorate([
70
+ ApiProperty(),
71
+ IsInt(),
72
+ __metadata("design:type", Number)
73
+ ], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
74
+ __decorate([
75
+ ApiProperty(),
76
+ IsInt(),
77
+ __metadata("design:type", Number)
78
+ ], ICreateRevenueMovementRequest.prototype, "arr", void 0);
79
+ __decorate([
80
+ ApiProperty(),
81
+ IsDate(),
82
+ __metadata("design:type", Date)
83
+ ], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
84
+ __decorate([
85
+ ApiPropertyOptional(),
86
+ IsOptional(),
87
+ IsString(),
88
+ __metadata("design:type", String)
89
+ ], ICreateRevenueMovementRequest.prototype, "description", void 0);
90
+ __decorate([
91
+ ApiPropertyOptional(),
92
+ IsOptional(),
93
+ IsObject(),
94
+ __metadata("design:type", Object)
95
+ ], ICreateRevenueMovementRequest.prototype, "metadata", void 0);
96
+ /**
97
+ * DTO pour mettre à jour un mouvement de revenu
98
+ */
99
+ export class IUpdateRevenueMovementRequest {
100
+ type;
101
+ idTerminationList;
102
+ idChurnMovement;
103
+ amount;
104
+ mrr;
105
+ arr;
106
+ movementDate;
107
+ description;
108
+ metadata;
109
+ }
110
+ __decorate([
111
+ ApiPropertyOptional(),
112
+ IsOptional(),
113
+ IsEnum(RevenueMovementType),
114
+ __metadata("design:type", Number)
115
+ ], IUpdateRevenueMovementRequest.prototype, "type", void 0);
116
+ __decorate([
117
+ ApiPropertyOptional(),
118
+ IsOptional(),
119
+ IsInt(),
120
+ __metadata("design:type", Number)
121
+ ], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
122
+ __decorate([
123
+ ApiPropertyOptional(),
124
+ IsOptional(),
125
+ IsInt(),
126
+ __metadata("design:type", Number)
127
+ ], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
128
+ __decorate([
129
+ ApiPropertyOptional(),
130
+ IsOptional(),
131
+ IsNumber(),
132
+ __metadata("design:type", Number)
133
+ ], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
134
+ __decorate([
135
+ ApiPropertyOptional(),
136
+ IsOptional(),
137
+ IsInt(),
138
+ __metadata("design:type", Number)
139
+ ], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
140
+ __decorate([
141
+ ApiPropertyOptional(),
142
+ IsOptional(),
143
+ IsInt(),
144
+ __metadata("design:type", Number)
145
+ ], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
146
+ __decorate([
147
+ ApiPropertyOptional(),
148
+ IsOptional(),
149
+ IsDate(),
150
+ __metadata("design:type", Object)
151
+ ], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
152
+ __decorate([
153
+ ApiPropertyOptional(),
154
+ IsOptional(),
155
+ IsString(),
156
+ __metadata("design:type", String)
157
+ ], IUpdateRevenueMovementRequest.prototype, "description", void 0);
158
+ __decorate([
159
+ ApiPropertyOptional(),
160
+ IsOptional(),
161
+ IsObject(),
162
+ __metadata("design:type", Object)
163
+ ], IUpdateRevenueMovementRequest.prototype, "metadata", void 0);
164
+ /**
165
+ * Filtres pour récupérer les mouvements de revenu
166
+ */
167
+ export class IGetRevenueMovementsRequest {
168
+ idSociety;
169
+ idExercice;
170
+ idPrestation;
171
+ idTerminationList;
172
+ idChurnMovement;
173
+ type;
174
+ startDate;
175
+ endDate;
176
+ page;
177
+ limit;
178
+ }
179
+ __decorate([
180
+ ApiPropertyOptional(),
181
+ IsOptional(),
182
+ IsInt(),
183
+ __metadata("design:type", Number)
184
+ ], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
185
+ __decorate([
186
+ ApiPropertyOptional(),
187
+ IsOptional(),
188
+ IsInt(),
189
+ __metadata("design:type", Number)
190
+ ], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
191
+ __decorate([
192
+ ApiPropertyOptional(),
193
+ IsOptional(),
194
+ IsInt(),
195
+ __metadata("design:type", Number)
196
+ ], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
197
+ __decorate([
198
+ ApiPropertyOptional(),
199
+ IsOptional(),
200
+ IsInt(),
201
+ __metadata("design:type", Number)
202
+ ], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
203
+ __decorate([
204
+ ApiPropertyOptional(),
205
+ IsOptional(),
206
+ IsInt(),
207
+ __metadata("design:type", Number)
208
+ ], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
209
+ __decorate([
210
+ ApiPropertyOptional(),
211
+ IsOptional(),
212
+ IsArray(),
213
+ IsEnum(RevenueMovementType, { each: true }),
214
+ __metadata("design:type", Array)
215
+ ], IGetRevenueMovementsRequest.prototype, "type", void 0);
216
+ __decorate([
217
+ ApiPropertyOptional(),
218
+ IsOptional(),
219
+ IsDate(),
220
+ __metadata("design:type", Object)
221
+ ], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
222
+ __decorate([
223
+ ApiPropertyOptional(),
224
+ IsOptional(),
225
+ IsDate(),
226
+ __metadata("design:type", Object)
227
+ ], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
228
+ __decorate([
229
+ ApiPropertyOptional(),
230
+ IsOptional(),
231
+ IsInt(),
232
+ __metadata("design:type", Number)
233
+ ], IGetRevenueMovementsRequest.prototype, "page", void 0);
234
+ __decorate([
235
+ ApiPropertyOptional(),
236
+ IsOptional(),
237
+ IsInt(),
238
+ __metadata("design:type", Number)
239
+ ], IGetRevenueMovementsRequest.prototype, "limit", void 0);
240
+ /**
241
+ * DTO pour générer un snapshot de revenu
242
+ */
243
+ export class IGenerateSnapshotRequest {
244
+ date;
245
+ idSociety;
246
+ idExercice;
247
+ }
248
+ __decorate([
249
+ ApiPropertyOptional(),
250
+ IsOptional(),
251
+ IsDate(),
252
+ __metadata("design:type", String)
253
+ ], IGenerateSnapshotRequest.prototype, "date", void 0);
254
+ __decorate([
255
+ ApiPropertyOptional(),
256
+ IsOptional(),
257
+ IsInt(),
258
+ __metadata("design:type", Number)
259
+ ], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
260
+ __decorate([
261
+ ApiPropertyOptional(),
262
+ IsOptional(),
263
+ IsInt(),
264
+ __metadata("design:type", Number)
265
+ ], IGenerateSnapshotRequest.prototype, "idExercice", void 0);
266
+ /**
267
+ * DTO pour générer tous les snapshots de revenu
268
+ */
269
+ export class IGenerateAllSnapshotsRequest {
270
+ date;
271
+ }
272
+ __decorate([
273
+ ApiPropertyOptional(),
274
+ IsOptional(),
275
+ IsDate(),
276
+ __metadata("design:type", String)
277
+ ], IGenerateAllSnapshotsRequest.prototype, "date", void 0);
278
+ /**
279
+ * DTO pour gérer la rétroactivité des mouvements de revenu
280
+ */
281
+ export class IManageRetroactivityRequest {
282
+ idSociety;
283
+ idExercice;
284
+ date;
285
+ }
286
+ __decorate([
287
+ ApiPropertyOptional(),
288
+ IsOptional(),
289
+ IsInt(),
290
+ __metadata("design:type", Number)
291
+ ], IManageRetroactivityRequest.prototype, "idSociety", void 0);
292
+ __decorate([
293
+ ApiPropertyOptional(),
294
+ IsOptional(),
295
+ IsInt(),
296
+ __metadata("design:type", Number)
297
+ ], IManageRetroactivityRequest.prototype, "idExercice", void 0);
298
+ __decorate([
299
+ ApiPropertyOptional(),
300
+ IsOptional(),
301
+ IsDate(),
302
+ __metadata("design:type", Date)
303
+ ], IManageRetroactivityRequest.prototype, "date", void 0);
2
304
  //# sourceMappingURL=revenueMovement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"","sourcesContent":["import { RevenueMovementType } from '../../Enum/Revenue';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport interface ICreateRevenueMovementRequest {\n type: RevenueMovementType;\n idSociety: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount: number;\n mrr: number;\n arr: number;\n movementDate: Date;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport interface IUpdateRevenueMovementRequest {\n type?: RevenueMovementType;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount?: number;\n mrr?: number;\n arr?: number;\n movementDate?: Date | string;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport interface IGetRevenueMovementsRequest {\n idSociety?: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n type?: RevenueMovementType[];\n startDate?: Date | string;\n endDate?: Date | string;\n page?: number;\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport interface IGenerateSnapshotRequest {\n date?: string;\n idSociety?: number;\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport interface IGenerateAllSnapshotsRequest {\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport interface IManageRetroactivityRequest {\n idSociety: number;\n idExercice?: number;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number;\n exerciceStartDate: Date;\n exerciceEndDate: Date;\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
1
+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,UAAU,EAAE;IACZ,MAAM,EAAE;;0DACK;AAGhB;;GAEG;AACH,MAAM,OAAO,2BAA2B;IAItC,SAAS,CAAS;IAKlB,UAAU,CAAU;IAKpB,IAAI,CAAQ;CACb;AAXC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;8DACU;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;+DACY;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACF,IAAI;yDAAC","sourcesContent":["import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '../../../utils';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
@@ -7,7 +7,6 @@ export declare class GenerateAllSnapshots {
7
7
  date?: string;
8
8
  }
9
9
  export declare class ManageRetroactivity {
10
- idSociety: number;
11
10
  idExercice?: number;
12
11
  }
13
12
  //# sourceMappingURL=revenueSnapshotGenerate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAO9B,SAAS,EAAE,MAAM,CAAC;IASlB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { ApiProperty } from '../../../utils';
11
- import { IsOptional, IsString, IsNumber } from 'class-validator';
10
+ import { ApiProperty, ApiPropertyOptional } from '../../../utils';
11
+ import { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';
12
12
  export class GenerateSnapshot {
13
13
  date;
14
14
  idSociety;
@@ -37,7 +37,7 @@ __decorate([
37
37
  __decorate([
38
38
  ApiProperty({
39
39
  required: false,
40
- description: "ID de l'exercice",
40
+ description: 'ID de l\'exercice',
41
41
  example: 123456,
42
42
  }),
43
43
  IsOptional(),
@@ -58,26 +58,23 @@ __decorate([
58
58
  __metadata("design:type", String)
59
59
  ], GenerateAllSnapshots.prototype, "date", void 0);
60
60
  export class ManageRetroactivity {
61
- idSociety;
61
+ // @ApiProperty({
62
+ // required: true,
63
+ // description: 'ID de la société',
64
+ // example: 60170,
65
+ // })
66
+ // @IsInt()
67
+ // idSociety: number;
62
68
  idExercice;
63
69
  }
64
70
  __decorate([
65
- ApiProperty({
66
- required: true,
67
- description: 'ID de la société',
68
- example: 60170,
69
- }),
70
- IsNumber(),
71
- __metadata("design:type", Number)
72
- ], ManageRetroactivity.prototype, "idSociety", void 0);
73
- __decorate([
74
- ApiProperty({
71
+ ApiPropertyOptional({
75
72
  required: false,
76
- description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
73
+ description: 'ID de l\'exercice (si non fourni, utilise l\'exercice courant)',
77
74
  example: 123456,
78
75
  }),
79
76
  IsOptional(),
80
- IsNumber(),
77
+ IsInt(),
81
78
  __metadata("design:type", Number)
82
79
  ], ManageRetroactivity.prototype, "idExercice", void 0);
83
80
  //# sourceMappingURL=revenueSnapshotGenerate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEjE,MAAM,OAAO,gBAAgB;IAQ3B,IAAI,CAAU;IASd,SAAS,CAAU;IASnB,UAAU,CAAU;CACrB;AAnBC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACG;AASd;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACQ;AASnB;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACS;AAGtB,MAAM,OAAO,oBAAoB;IAQ/B,IAAI,CAAU;CACf;AADC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACG;AAGhB,MAAM,OAAO,mBAAmB;IAO9B,SAAS,CAAS;IASlB,UAAU,CAAU;CACrB;AAVC;IANC,WAAW,CAAC;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,QAAQ,EAAE;;sDACO;AASlB;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;uDACS","sourcesContent":["import { ApiProperty } from '../../../utils';\nimport { IsOptional, IsString, IsNumber } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n @ApiProperty({\n required: true,\n description: 'ID de la société',\n example: 60170,\n })\n @IsNumber()\n idSociety: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice (si non fourni, utilise l'exercice courant)\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n"]}
1
+ {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,OAAO,gBAAgB;IAQ3B,IAAI,CAAU;IASd,SAAS,CAAU;IASnB,UAAU,CAAU;CACrB;AAnBC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACG;AASd;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACQ;AASnB;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACS;AAGtB,MAAM,OAAO,oBAAoB;IAQ/B,IAAI,CAAU;CACf;AADC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACG;AAGhB,MAAM,OAAO,mBAAmB;IAC9B,iBAAiB;IACjB,oBAAoB;IACpB,qCAAqC;IACrC,oBAAoB;IACpB,KAAK;IACL,WAAW;IACX,qBAAqB;IASrB,UAAU,CAAU;CACrB;AADC;IAPC,mBAAmB,CAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,KAAK,EAAE;;uDACY","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../utils';\nimport { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: 'ID de l\\'exercice',\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n // @ApiProperty({\n // required: true,\n // description: 'ID de la société',\n // example: 60170,\n // })\n // @IsInt()\n // idSociety: number;\n\n @ApiPropertyOptional({\n required: false,\n description: 'ID de l\\'exercice (si non fourni, utilise l\\'exercice courant)',\n example: 123456,\n })\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n"]}
@@ -11,6 +11,7 @@ export interface IImmobilization {
11
11
  quantitySelled?: number;
12
12
  amountOfSellTaxIncluded?: number | null;
13
13
  sellingDate?: Date | null;
14
+ trashingDate?: Date | null;
14
15
  acquisitionDate?: Date;
15
16
  duration: number;
16
17
  provider: string;