@silexpert/core 1.3.160 → 1.3.161

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 (70) hide show
  1. package/dist/cjs/api/resources/GeneralLedger.d.ts +2 -1
  2. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/GeneralLedger.js +9 -0
  4. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
  6. package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  7. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  8. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  9. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  10. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  11. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  12. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  14. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
  16. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
  18. package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
  20. package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  22. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +4 -13
  24. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
  26. package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
  28. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  29. package/dist/cjs/utils/prestation.js +9 -4
  30. package/dist/cjs/utils/prestation.js.map +1 -1
  31. package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
  32. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/GeneralLedger.js +9 -0
  34. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  35. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
  36. package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
  37. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  38. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  39. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  41. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  43. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  44. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  45. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
  46. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  47. package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
  48. package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  49. package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
  50. package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  52. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -16
  54. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  55. package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
  56. package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
  58. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  59. package/dist/mjs/utils/prestation.js +3 -1
  60. package/dist/mjs/utils/prestation.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/GeneralLedger.ts +11 -0
  63. package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
  64. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
  65. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
  66. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
  67. package/ts/types/Interface/api/revenueMovement.ts +153 -9
  68. package/ts/types/Interface/api/revenueSnapshotGenerate.ts +13 -13
  69. package/ts/types/Interface/models/IImmobilization.ts +1 -0
  70. package/ts/utils/prestation.ts +3 -1
@@ -1,4 +1,4 @@
1
- import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated } from '../../types';
1
+ import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerAuxiliaryPdf, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated } from '../../types';
2
2
  import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
3
3
  import { Resource } from '../Resource';
4
4
  export declare class GeneralLedger extends Resource {
@@ -15,5 +15,6 @@ export declare class GeneralLedger extends Resource {
15
15
  getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>>;
16
16
  getAuxiliarySummaries(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>>;
17
17
  getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated>;
18
+ getAuxiliaryPdf(params: QueryGeneralLedgerAuxiliaryPdf): Promise<Buffer>;
18
19
  }
19
20
  //# sourceMappingURL=GeneralLedger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,qCAAqC,EACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,M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,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMxG;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUnD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUtE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,YAAY,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7G,qBAAqB,CACnB,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,qCAAqC,CAAC;IAI/G,eAAe,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;CASzE"}
@@ -70,6 +70,15 @@ class GeneralLedger extends Resource_1.Resource {
70
70
  getThirdParty(id, params) {
71
71
  return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
72
72
  }
73
+ getAuxiliaryPdf(params) {
74
+ return this.axios.$get('/general-ledger/auxiliary/pdf', {
75
+ params,
76
+ responseType: 'arraybuffer',
77
+ headers: {
78
+ Accept: 'application/pdf',
79
+ },
80
+ });
81
+ }
73
82
  }
74
83
  exports.GeneralLedger = GeneralLedger;
75
84
  //# sourceMappingURL=GeneralLedger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":";;;AAUA,0CAAuC;AAEvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,YAAY,CAAC,MAA0B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAA0B;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAC/C,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAA0B;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC3C,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAC,SAAiB,EAAE,KAAyB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,sBAAsB,EAAE,IAAI,EAAE;YAC3E,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,MAA0B;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,+BAA+B,EAAE,IAAI,EAAE;YACpF,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,MAA0B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,EAAE;YACnE,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,MAA0B;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,+BAA+B,EAAE,IAAI,EAAE;YACpF,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,MAAmC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,qBAAqB,CACnB,MAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA/ED,sCA+EC","sourcesContent":["import {\n BasePaginateInterface,\n IGeneralLedgerAccount,\n IGeneralLedgerThirdParty,\n QueryGeneralLedgerAuxiliary,\n QueryGeneralLedgerThirdParty,\n ReadGeneralLedgerSummary,\n ReadIGeneralLedgerThirdPartyPaginated,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n /**\n * @deprecated use exportCsv instead\n */\n getCsv(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportCsv(idSociety: number, query: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/csv`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportBalanceCsv(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/csv`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportBalancePdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/pdf`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n\n getAuxiliarySummaries(\n params: QueryGeneralLedgerAuxiliary,\n ): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {\n return this.axios.$get('/general-ledger/auxiliary/summaries', { params });\n }\n\n getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {\n return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });\n }\n}\n"]}
1
+ {"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":";;;AAWA,0CAAuC;AAEvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,YAAY,CAAC,MAA0B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAA0B;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAC/C,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAA0B;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC3C,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAC,SAAiB,EAAE,KAAyB;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,sBAAsB,EAAE,IAAI,EAAE;YAC3E,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,MAA0B;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,+BAA+B,EAAE,IAAI,EAAE;YACpF,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,MAA0B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,qBAAqB,EAAE;YACnE,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,MAA0B;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,+BAA+B,EAAE,IAAI,EAAE;YACpF,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,MAAmC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,qBAAqB,CACnB,MAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,eAAe,CAAC,MAAsC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACtD,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAzFD,sCAyFC","sourcesContent":["import {\n BasePaginateInterface,\n IGeneralLedgerAccount,\n IGeneralLedgerThirdParty,\n QueryGeneralLedgerAuxiliary,\n QueryGeneralLedgerAuxiliaryPdf,\n QueryGeneralLedgerThirdParty,\n ReadGeneralLedgerSummary,\n ReadIGeneralLedgerThirdPartyPaginated,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n /**\n * @deprecated use exportCsv instead\n */\n getCsv(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportCsv(idSociety: number, query: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/csv`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportBalanceCsv(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/csv`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportBalancePdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/pdf`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n\n getAuxiliarySummaries(\n params: QueryGeneralLedgerAuxiliary,\n ): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {\n return this.axios.$get('/general-ledger/auxiliary/summaries', { params });\n }\n\n getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {\n return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });\n }\n\n getAuxiliaryPdf(params: QueryGeneralLedgerAuxiliaryPdf): Promise<Buffer> {\n return this.axios.$get('/general-ledger/auxiliary/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}\n"]}
@@ -10,74 +10,74 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EmailSendOptionsDto = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
13
+ const utils_1 = require("../../../../utils");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class EmailSendOptionsDto {
16
16
  }
17
17
  exports.EmailSendOptionsDto = EmailSendOptionsDto;
18
18
  __decorate([
19
- (0, swagger_1.ApiProperty)({ description: 'Recipient email address' }),
19
+ (0, utils_1.ApiProperty)({ description: 'Recipient email address' }),
20
20
  (0, class_validator_1.IsEmail)(),
21
21
  __metadata("design:type", String)
22
22
  ], EmailSendOptionsDto.prototype, "to", void 0);
23
23
  __decorate([
24
- (0, swagger_1.ApiPropertyOptional)({ description: 'Email subject' }),
24
+ (0, utils_1.ApiPropertyOptional)({ description: 'Email subject' }),
25
25
  (0, class_validator_1.IsString)(),
26
26
  (0, class_validator_1.IsOptional)(),
27
27
  __metadata("design:type", String)
28
28
  ], EmailSendOptionsDto.prototype, "subject", void 0);
29
29
  __decorate([
30
- (0, swagger_1.ApiPropertyOptional)({ description: 'Sender email address' }),
30
+ (0, utils_1.ApiPropertyOptional)({ description: 'Sender email address' }),
31
31
  (0, class_validator_1.IsOptional)(),
32
32
  (0, class_validator_1.IsEmail)(),
33
33
  __metadata("design:type", String)
34
34
  ], EmailSendOptionsDto.prototype, "from", void 0);
35
35
  __decorate([
36
- (0, swagger_1.ApiPropertyOptional)({ description: 'Sender name' }),
36
+ (0, utils_1.ApiPropertyOptional)({ description: 'Sender name' }),
37
37
  (0, class_validator_1.IsOptional)(),
38
38
  (0, class_validator_1.IsString)(),
39
39
  __metadata("design:type", String)
40
40
  ], EmailSendOptionsDto.prototype, "fromName", void 0);
41
41
  __decorate([
42
- (0, swagger_1.ApiPropertyOptional)({ description: 'Reply-to email address' }),
42
+ (0, utils_1.ApiPropertyOptional)({ description: 'Reply-to email address' }),
43
43
  (0, class_validator_1.IsOptional)(),
44
44
  (0, class_validator_1.IsEmail)(),
45
45
  __metadata("design:type", String)
46
46
  ], EmailSendOptionsDto.prototype, "replyTo", void 0);
47
47
  __decorate([
48
- (0, swagger_1.ApiPropertyOptional)({ description: 'CC email address' }),
48
+ (0, utils_1.ApiPropertyOptional)({ description: 'CC email address' }),
49
49
  (0, class_validator_1.IsOptional)(),
50
50
  (0, class_validator_1.IsEmail)(),
51
51
  __metadata("design:type", String)
52
52
  ], EmailSendOptionsDto.prototype, "cc", void 0);
53
53
  __decorate([
54
- (0, swagger_1.ApiPropertyOptional)({ description: 'BCC email address' }),
54
+ (0, utils_1.ApiPropertyOptional)({ description: 'BCC email address' }),
55
55
  (0, class_validator_1.IsOptional)(),
56
56
  (0, class_validator_1.IsEmail)(),
57
57
  __metadata("design:type", String)
58
58
  ], EmailSendOptionsDto.prototype, "bcc", void 0);
59
59
  __decorate([
60
- (0, swagger_1.ApiPropertyOptional)({ description: 'Custom ID for tracking' }),
60
+ (0, utils_1.ApiPropertyOptional)({ description: 'Custom ID for tracking' }),
61
61
  (0, class_validator_1.IsOptional)(),
62
62
  (0, class_validator_1.IsString)(),
63
63
  __metadata("design:type", String)
64
64
  ], EmailSendOptionsDto.prototype, "customId", void 0);
65
65
  __decorate([
66
- (0, swagger_1.ApiPropertyOptional)({ description: 'HTML content for the email' }),
66
+ (0, utils_1.ApiPropertyOptional)({ description: 'HTML content for the email' }),
67
67
  (0, class_validator_1.IsOptional)(),
68
68
  (0, class_validator_1.IsString)(),
69
69
  (0, class_validator_1.ValidateIf)((o) => !o.templateId),
70
70
  __metadata("design:type", String)
71
71
  ], EmailSendOptionsDto.prototype, "htmlContent", void 0);
72
72
  __decorate([
73
- (0, swagger_1.ApiPropertyOptional)({ description: 'Brevo template ID' }),
73
+ (0, utils_1.ApiPropertyOptional)({ description: 'Brevo template ID' }),
74
74
  (0, class_validator_1.IsOptional)(),
75
75
  (0, class_validator_1.IsNumber)(),
76
76
  (0, class_validator_1.ValidateIf)((o) => !o.htmlContent),
77
77
  __metadata("design:type", Number)
78
78
  ], EmailSendOptionsDto.prototype, "templateId", void 0);
79
79
  __decorate([
80
- (0, swagger_1.ApiPropertyOptional)({ description: 'Template variables' }),
80
+ (0, utils_1.ApiPropertyOptional)({ description: 'Template variables' }),
81
81
  (0, class_validator_1.IsOptional)(),
82
82
  (0, class_validator_1.IsObject)(),
83
83
  (0, class_validator_1.ValidateIf)((o) => !!o.templateId),
@@ -1 +1 @@
1
- {"version":3,"file":"EmailSendOptions.dto.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/EmailSendOptions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAgG;AAEhG,MAAa,mBAAmB;CAyD/B;AAzDD,kDAyDC;AAtDC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACvD,IAAA,yBAAO,GAAE;;+CACC;AAKX;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IACrD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAKjB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;I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GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;;sDACF","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';\n\nexport class EmailSendOptionsDto {\n @ApiProperty({ description: 'Recipient email address' })\n @IsEmail()\n to: string;\n\n @ApiPropertyOptional({ description: 'Email subject' })\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional({ description: 'Sender email address' })\n @IsOptional()\n @IsEmail()\n from?: string;\n\n @ApiPropertyOptional({ description: 'Sender name' })\n @IsOptional()\n @IsString()\n fromName?: string;\n\n @ApiPropertyOptional({ description: 'Reply-to email address' })\n @IsOptional()\n @IsEmail()\n replyTo?: string;\n\n @ApiPropertyOptional({ description: 'CC email address' })\n @IsOptional()\n @IsEmail()\n cc?: string;\n\n @ApiPropertyOptional({ description: 'BCC email address' })\n @IsOptional()\n @IsEmail()\n bcc?: string;\n\n @ApiPropertyOptional({ description: 'Custom ID for tracking' })\n @IsOptional()\n @IsString()\n customId?: string;\n\n @ApiPropertyOptional({ description: 'HTML content for the email' })\n @IsOptional()\n @IsString()\n @ValidateIf((o) => !o.templateId)\n htmlContent?: string;\n\n @ApiPropertyOptional({ description: 'Brevo template ID' })\n @IsOptional()\n @IsNumber()\n @ValidateIf((o) => !o.htmlContent)\n templateId?: number;\n\n @ApiPropertyOptional({ description: 'Template variables' })\n @IsOptional()\n @IsObject()\n @ValidateIf((o) => !!o.templateId)\n variables?: Record<string, any>;\n}\n"]}
1
+ {"version":3,"file":"EmailSendOptions.dto.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/brevo/EmailSendOptions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAqE;AACrE,qDAAgG;AAEhG,MAAa,mBAAmB;CAyD/B;AAzDD,kDAyDC;AAtDC;IAFC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A,2BAAmB,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACzD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;;uDACd;AAMpB;IAJC,IAAA,2BAAmB,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;IAC1D,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;;sDACF","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';\n\nexport class EmailSendOptionsDto {\n @ApiProperty({ description: 'Recipient email address' })\n @IsEmail()\n to: string;\n\n @ApiPropertyOptional({ description: 'Email subject' })\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional({ description: 'Sender email address' })\n @IsOptional()\n @IsEmail()\n from?: string;\n\n @ApiPropertyOptional({ description: 'Sender name' })\n @IsOptional()\n @IsString()\n fromName?: string;\n\n @ApiPropertyOptional({ description: 'Reply-to email address' })\n @IsOptional()\n @IsEmail()\n replyTo?: string;\n\n @ApiPropertyOptional({ description: 'CC email address' })\n @IsOptional()\n @IsEmail()\n cc?: string;\n\n @ApiPropertyOptional({ description: 'BCC email address' })\n @IsOptional()\n @IsEmail()\n bcc?: string;\n\n @ApiPropertyOptional({ description: 'Custom ID for tracking' })\n @IsOptional()\n @IsString()\n customId?: string;\n\n @ApiPropertyOptional({ description: 'HTML content for the email' })\n @IsOptional()\n @IsString()\n @ValidateIf((o) => !o.templateId)\n htmlContent?: string;\n\n @ApiPropertyOptional({ description: 'Brevo template ID' })\n @IsOptional()\n @IsNumber()\n @ValidateIf((o) => !o.htmlContent)\n templateId?: number;\n\n @ApiPropertyOptional({ description: 'Template variables' })\n @IsOptional()\n @IsObject()\n @ValidateIf((o) => !!o.templateId)\n variables?: Record<string, any>;\n}\n"]}
@@ -13,5 +13,6 @@ export interface IGeneralLedgerAccountingEntry {
13
13
  exported?: Date;
14
14
  idAccountingTransaction: number;
15
15
  idBankAccount?: number;
16
+ letter?: string | null;
16
17
  }
17
18
  //# sourceMappingURL=IGeneralLedgerAccountingEntry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n}\n"]}
1
+ {"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n letter?: string | null;\n}\n"]}
@@ -27,6 +27,7 @@ export interface ReadGeneralLedgerSummary {
27
27
  debit: number;
28
28
  balance: number;
29
29
  identifier: string;
30
+ initialBalance: number;
30
31
  entries?: IGeneralLedgerAccountingEntry[];
31
32
  }
32
33
  export declare class QueryGeneralLedgerThirdParty {
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qCAAqC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC,6BAA6B,CAAC,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC3C;AAED,qBAAa,4BAA4B;IAGvC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAKlB,IAAI,EAAE,MAAM,CAAK;IAKjB,KAAK,EAAE,MAAM,CAAO;IAMpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
1
+ {"version":3,"file":"IGeneralLedgerThirdParty.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qCAAqC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC,6BAA6B,CAAC,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAC3C;AAED,qBAAa,4BAA4B;IAGvC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAKlB,IAAI,EAAE,MAAM,CAAK;IAKjB,KAAK,EAAE,MAAM,CAAO;IAMpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AAGrE,sFAA2E;AAkC3E,MAAa,4BAA4B;IAAzC;QAgBE,SAAI,GAAW,CAAC,CAAC;QAKjB,UAAK,GAAW,GAAG,CAAC;IAOtB,CAAC;CAAA;AA5BD,oEA4BC;AAzBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;6DACC;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;+DACO;AAKlB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAKjB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS;AAMpB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mEACW","sourcesContent":["import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport interface IGeneralLedgerThirdParty {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: IGeneralLedgerAccountingEntry[];\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadIGeneralLedgerThirdPartyPaginated {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: BasePaginate<IGeneralLedgerAccountingEntry>;\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadGeneralLedgerSummary {\n idThirdParty: number;\n name: string;\n credit: number;\n debit: number;\n balance: number;\n identifier: string;\n entries?: IGeneralLedgerAccountingEntry[];\n}\n\nexport class QueryGeneralLedgerThirdParty {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n page: number = 1;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n limit: number = 100;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n}\n"]}
1
+ {"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AAGrE,sFAA2E;AAmC3E,MAAa,4BAA4B;IAAzC;QAgBE,SAAI,GAAW,CAAC,CAAC;QAKjB,UAAK,GAAW,GAAG,CAAC;IAOtB,CAAC;CAAA;AA5BD,oEA4BC;AAzBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;6DACC;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;+DACO;AAKlB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACM;AAKjB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS;AAMpB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mEACW","sourcesContent":["import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport interface IGeneralLedgerThirdParty {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: IGeneralLedgerAccountingEntry[];\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadIGeneralLedgerThirdPartyPaginated {\n idThirdParty: number;\n name: string;\n totalCredit: number;\n totalDebit: number;\n totalSolde: number;\n entries: BasePaginate<IGeneralLedgerAccountingEntry>;\n identifier: string;\n initialBalance: number;\n}\n\nexport interface ReadGeneralLedgerSummary {\n idThirdParty: number;\n name: string;\n credit: number;\n debit: number;\n balance: number;\n identifier: string;\n initialBalance: number;\n entries?: IGeneralLedgerAccountingEntry[];\n}\n\nexport class QueryGeneralLedgerThirdParty {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n page: number = 1;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n limit: number = 100;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n omitLettering?: boolean;\n}\n"]}
@@ -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"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryGeneralLedgerAuxiliary = void 0;
12
+ exports.QueryGeneralLedgerAuxiliaryPdf = exports.QueryGeneralLedgerAuxiliary = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
@@ -71,4 +71,33 @@ __decorate([
71
71
  (0, class_validator_1.IsOptional)(),
72
72
  __metadata("design:type", Number)
73
73
  ], QueryGeneralLedgerAuxiliary.prototype, "idThirdParty", void 0);
74
+ class QueryGeneralLedgerAuxiliaryPdf {
75
+ }
76
+ exports.QueryGeneralLedgerAuxiliaryPdf = QueryGeneralLedgerAuxiliaryPdf;
77
+ __decorate([
78
+ (0, utils_1.ApiProperty)(),
79
+ (0, class_validator_1.IsDateString)(),
80
+ __metadata("design:type", String)
81
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "startDate", void 0);
82
+ __decorate([
83
+ (0, utils_1.ApiProperty)(),
84
+ (0, class_validator_1.IsDateString)(),
85
+ __metadata("design:type", String)
86
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "endDate", void 0);
87
+ __decorate([
88
+ (0, utils_1.ApiPropertyOptional)(),
89
+ (0, class_validator_1.IsOptional)(),
90
+ __metadata("design:type", Number)
91
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdPartyType", void 0);
92
+ __decorate([
93
+ (0, utils_1.ApiPropertyOptional)(),
94
+ (0, class_validator_1.IsOptional)(),
95
+ __metadata("design:type", Array)
96
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "idThirdParty", void 0);
97
+ __decorate([
98
+ (0, utils_1.ApiPropertyOptional)(),
99
+ (0, class_validator_1.IsEnum)(['all', 'only', 'none']),
100
+ (0, class_validator_1.IsOptional)(),
101
+ __metadata("design:type", String)
102
+ ], QueryGeneralLedgerAuxiliaryPdf.prototype, "lettering", void 0);
74
103
  //# sourceMappingURL=QueryGeneralLedgerAuxiliary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryGeneralLedgerAuxiliary.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,6CAAqE;AACrE,sFAA2E;AAC3E,8GAAmG;AACnG,iEAA8D;AAE9D,MAAa,2BAA2B;CA4CvC;AA5CD,kEA4CC;AAzCC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;8DACN;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;4DACR;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,+BAAc,CAAC;;qEACE;AAKzB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;0DACO;AAKd;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACM;AAMb;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,+DAA+D,EAAE,CAAC;IAClH,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACW;AAMxB;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACQ;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACG;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;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,qDAA8G;AAC9G,6CAAqE;AACrE,sFAA2E;AAC3E,8GAAmG;AACnG,iEAA8D;AAE9D,MAAa,2BAA2B;CA4CvC;AA5CD,kEA4CC;AAzCC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;8DACN;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,qDAAqB,GAAE;;4DACR;AAIhB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,+BAAc,CAAC;;qEACE;AAKzB;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;0DACO;AAKd;IAHC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACM;AAMb;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,+DAA+D,EAAE,CAAC;IAClH,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;kEACW;AAMxB;IAJC,IAAA,2BAAmB,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACQ;AAKrB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACG;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACS;AAKxB,MAAa,8BAA8B;CAqB1C;AArBD,wEAqBC;AAlBC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;iEACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;+DACC;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;wEACqB;AAIlC;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;oEACW;AAKxB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,wBAAM,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,IAAA,4BAAU,GAAE;;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"]}
@@ -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,mBAAmB,CAAC;IAC3B,iBAAiB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B;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,GAAG,EAAE,MAAM,CAA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