@silexpert/core 1.3.144 → 1.3.145-features-1

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 (74) hide show
  1. package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/InternalInvoicing.js +12 -0
  3. package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
  4. package/dist/cjs/api/resources/Recurrence.d.ts +2 -1
  5. package/dist/cjs/api/resources/Recurrence.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Recurrence.js +5 -0
  7. package/dist/cjs/api/resources/Recurrence.js.map +1 -1
  8. package/dist/cjs/api/resources/Society.d.ts +2 -1
  9. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Society.js +3 -0
  11. package/dist/cjs/api/resources/Society.js.map +1 -1
  12. package/dist/cjs/api/resources/prestation.d.ts +7 -0
  13. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/prestation.js +9 -0
  15. package/dist/cjs/api/resources/prestation.js.map +1 -1
  16. package/dist/cjs/types/Enum/AIPrompt.js +1 -1
  17. package/dist/cjs/types/Enum/AIPrompt.js.map +1 -1
  18. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  19. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
  21. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
  23. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/commercialManagement/Query.js +14 -1
  25. package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
  27. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  30. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -0
  32. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  33. package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  34. package/dist/mjs/api/resources/InternalInvoicing.js +12 -0
  35. package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
  36. package/dist/mjs/api/resources/Recurrence.d.ts +2 -1
  37. package/dist/mjs/api/resources/Recurrence.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Recurrence.js +5 -0
  39. package/dist/mjs/api/resources/Recurrence.js.map +1 -1
  40. package/dist/mjs/api/resources/Society.d.ts +2 -1
  41. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Society.js +3 -0
  43. package/dist/mjs/api/resources/Society.js.map +1 -1
  44. package/dist/mjs/api/resources/prestation.d.ts +7 -0
  45. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/prestation.js +9 -0
  47. package/dist/mjs/api/resources/prestation.js.map +1 -1
  48. package/dist/mjs/types/Enum/AIPrompt.js +1 -1
  49. package/dist/mjs/types/Enum/AIPrompt.js.map +1 -1
  50. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  51. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
  53. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  54. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
  55. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/api/commercialManagement/Query.js +14 -0
  57. package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  58. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
  59. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  60. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  62. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +11 -2
  64. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/InternalInvoicing.ts +12 -0
  67. package/ts/api/resources/Recurrence.ts +8 -0
  68. package/ts/api/resources/Society.ts +5 -0
  69. package/ts/api/resources/prestation.ts +10 -0
  70. package/ts/types/Enum/AIPrompt.ts +1 -1
  71. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +16 -0
  72. package/ts/types/Interface/api/commercialManagement/Query.ts +10 -0
  73. package/ts/types/Interface/api/commercialManagement/Read.ts +12 -0
  74. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +9 -2
@@ -1 +1 @@
1
- {"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}
1
+ {"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}
@@ -22,6 +22,18 @@ class InternalInvoicing extends Resource_1.Resource {
22
22
  return this.axios.$post('/internalInvoicing/cutOff/FAE', {});
23
23
  case 3:
24
24
  return this.axios.$post('/internalInvoicing/cutOff/AAE', {});
25
+ case 4:
26
+ return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});
27
+ case 5:
28
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});
29
+ case 6:
30
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});
31
+ case 7:
32
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});
33
+ case 8:
34
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});
35
+ case 9:
36
+ return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});
25
37
  default:
26
38
  return this.axios.$post('/internalInvoicing/cutOff/PCA', {});
27
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InternalInvoicing.js","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":";;;AAMA,0CAAuC;AAEvC,MAAa,iBAAkB,SAAQ,mBAAQ;IAC7C,MAAM,CAAC,MAA+B;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,CAAC,MAAkC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,kCAC3C,MAAM,KACT,YAAY,EAAE,aAAa,EAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;aACnC,IACD,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAmC;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC;IACnE,CAAC;IACD,cAAc,CAAC,IAAY;QACzB,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YAC/D;gBACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,UAAU,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,oBAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC;IAClG,CAAC;CACF;AA/BD,8CA+BC","sourcesContent":["import {\n CreateInternalInvoicing,\n CreateInternalInvoicing2in,\n ReadPCAStat,\n RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n generateCutOff(type: number): Promise<boolean> {\n switch (type) {\n case 1:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n case 2:\n return this.axios.$post('/internalInvoicing/cutOff/FAE', {});\n case 3:\n return this.axios.$post('/internalInvoicing/cutOff/AAE', {});\n default:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n }\n }\n getPCAStat(signal?: AbortSignal): Promise<ReadPCAStat[]> {\n return this.axios.$get('/internalInvoicing/cutOff/PCA-stat', { ...(signal ? { signal } : {}) });\n }\n}\n"]}
1
+ {"version":3,"file":"InternalInvoicing.js","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":";;;AAMA,0CAAuC;AAEvC,MAAa,iBAAkB,S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AAI,CAAC,KAAK,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAE,CAAC,CAAC;YACxF,KAAK,CAAC;gBACJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sCAAsC,EAAE,EAAE,CAAC,CAAC;YACtE;gBACE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IACD,UAAU,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,oBAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAG,CAAC;IAClG,CAAC;CACF;AA3CD,8CA2CC","sourcesContent":["import {\n CreateInternalInvoicing,\n CreateInternalInvoicing2in,\n ReadPCAStat,\n RegenerateInternalInvoicing,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class InternalInvoicing extends Resource {\n create(params: CreateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing', params);\n }\n download(params: CreateInternalInvoicing2in): Promise<Buffer> {\n return this.axios.$post('/internalInvoicing/2in', {\n ...params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n regenerate(params: RegenerateInternalInvoicing): Promise<number> {\n return this.axios.$post('/internalInvoicing/regenerate', params);\n }\n generateCutOff(type: number): Promise<boolean> {\n switch (type) {\n case 1:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n case 2:\n return this.axios.$post('/internalInvoicing/cutOff/FAE', {});\n case 3:\n return this.axios.$post('/internalInvoicing/cutOff/AAE', {});\n case 4:\n return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});\n case 5:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});\n case 6:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});\n case 7:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});\n case 8:\n return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});\n case 9:\n return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});\n default:\n return this.axios.$post('/internalInvoicing/cutOff/PCA', {});\n }\n }\n getPCAStat(signal?: AbortSignal): Promise<ReadPCAStat[]> {\n return this.axios.$get('/internalInvoicing/cutOff/PCA-stat', { ...(signal ? { signal } : {}) });\n }\n}\n"]}
@@ -1,10 +1,11 @@
1
1
  import { Resource } from '../Resource';
2
2
  import { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';
3
- import { CreateRecurrence, QueryGetAllRecurrences, ReadRecurrencePaginated, UpdateRecurrence } from '../../types';
3
+ import { CreateRecurrence, QueryGetAllRecurrences, QueryRecurrenceRevenueStatistics, ReadRecurrencePaginated, ReadStatisticRecurrentRevenue, UpdateRecurrence } from '../../types';
4
4
  export declare class Recurrence extends Resource {
5
5
  create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence>;
6
6
  update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence>;
7
7
  delete(id: number, idEstimateInvoice: number): Promise<true>;
8
8
  getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated>;
9
+ getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]>;
9
10
  }
10
11
  //# sourceMappingURL=Recurrence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Recurrence.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,aAAa,CA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BAAoB,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;CAKxG"}
@@ -18,6 +18,11 @@ class Recurrence extends Resource_1.Resource {
18
18
  params,
19
19
  });
20
20
  }
21
+ getRecurrentRevenues(query) {
22
+ return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {
23
+ params: query,
24
+ });
25
+ }
21
26
  }
22
27
  exports.Recurrence = Recurrence;
23
28
  //# sourceMappingURL=Recurrence.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AASvC,MAAa,UAAW,SAAQ,mBAAQ;IACtC,MAAM,CAAC,iBAAyB,EAAE,OAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,iBAAiB,cAAc,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB,EAAE,OAAyB;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7G,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,MAAM,CAAC,MAA8B,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE;YAC3D,MAAM;YACN,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,gCAmBC","sourcesContent":["import { Resource } from '../Resource';\nimport { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';\nimport {\n CreateRecurrence,\n QueryGetAllRecurrences,\n ReadRecurrencePaginated,\n UpdateRecurrence,\n} from '../../types';\n\nexport class Recurrence extends Resource {\n create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$post(`/commercial-management/documents/${idEstimateInvoice}/recurrences`, payload);\n }\n\n update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$put(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`, payload);\n }\n\n delete(id: number, idEstimateInvoice: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`);\n }\n\n getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated> {\n return this.axios.$get('/commercial-management/recurrences', {\n signal,\n params,\n });\n }\n}\n"]}
1
+ {"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../../../ts/api/resources/Recurrence.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAWvC,MAAa,UAAW,SAAQ,mBAAQ;IACtC,MAAM,CAAC,iBAAyB,EAAE,OAAyB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,iBAAiB,cAAc,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB,EAAE,OAAyB;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7G,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,iBAAyB;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,iBAAiB,gBAAgB,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IAED,MAAM,CAAC,MAA8B,EAAE,MAAoB;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE;YAC3D,MAAM;YACN,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,KAAuC;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sDAAsD,EAAE;YAC7E,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,gCAyBC","sourcesContent":["import { Resource } from '../Resource';\nimport { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurrence';\nimport {\n CreateRecurrence,\n QueryGetAllRecurrences,\n QueryRecurrenceRevenueStatistics,\n ReadRecurrencePaginated,\n ReadStatisticRecurrentRevenue,\n UpdateRecurrence,\n} from '../../types';\n\nexport class Recurrence extends Resource {\n create(idEstimateInvoice: number, payload: CreateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$post(`/commercial-management/documents/${idEstimateInvoice}/recurrences`, payload);\n }\n\n update(id: number, idEstimateInvoice: number, payload: UpdateRecurrence): Promise<IInvoiceRecurrence> {\n return this.axios.$put(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`, payload);\n }\n\n delete(id: number, idEstimateInvoice: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${idEstimateInvoice}/recurrences/${id}`);\n }\n\n getAll(params: QueryGetAllRecurrences, signal?: AbortSignal): Promise<ReadRecurrencePaginated> {\n return this.axios.$get('/commercial-management/recurrences', {\n signal,\n params,\n });\n }\n\n getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]> {\n return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {\n params: query,\n });\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety, UpdateSocietyPayload, QueryPaginatedSociety, ReadInvalidFieldState, BasePaginate, UpdateUserSociety, QueryArchivedSociety, QueryExportSociety, QueryAccountingExport, GetSocietyState, QueryUnpaidSociety, ReadSocietyUnpaidStats, DataCustomersCsv, ReadCurrentPrestations, QueryToArchivedSociety } from '../../types';
2
+ import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety, UpdateSocietyPayload, QueryPaginatedSociety, ReadInvalidFieldState, BasePaginate, UpdateUserSociety, QueryArchivedSociety, QueryExportSociety, QueryAccountingExport, GetSocietyState, QueryUnpaidSociety, ReadSocietyUnpaidStats, DataCustomersCsv, ReadCurrentPrestations, QueryToArchivedSociety, ReadFeatureAccess } from '../../types';
3
3
  import { CancelToken } from 'axios';
4
4
  export declare class Society extends Resource {
5
5
  get(params: QuerySociety): Promise<ISociety>;
@@ -37,5 +37,6 @@ export declare class Society extends Resource {
37
37
  getState(idSociety: number): Promise<GetSocietyState>;
38
38
  getCurrentPrestations(idSociety: number): Promise<ReadCurrentPrestations>;
39
39
  exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer>;
40
+ getAllFeatures(idSociety: number): Promise<ReadFeatureAccess>;
40
41
  }
41
42
  //# sourceMappingURL=Society.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Society.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,8BAA8B,EAC9B,KAAK,EACL,eAAe,EACf,iCAAiC,EACjC,iCAAiC,EACjC,gBAAgB,EAChB,YA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sB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAInG,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAOhF,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAM/D,wBAAwB,CAC7B,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAO3B,qBAAqB,CAC1B,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAOlC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrE,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;IASrF,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIrD,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIzE,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAG9D"}
@@ -116,6 +116,9 @@ class Society extends Resource_1.Resource {
116
116
  },
117
117
  });
118
118
  }
119
+ getAllFeatures(idSociety) {
120
+ return this.axios.$get(`/societies/${idSociety}/features`);
121
+ }
119
122
  }
120
123
  exports.Society = Society;
121
124
  //# sourceMappingURL=Society.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../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E;gBACP,MAAM,EAAE,0BAA0B;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,SAAiB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,SAAS,CAAC,CAAC;IAC3D,CAAC;IAED,qBAAqB,CAAC,SAAiB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,CAAC;IAED,kBAAkB,CAAC,MAAwB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,EAAE;YACpD,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CACF;AA5KD,0BA4KC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n QueryPaginatedSociety,\n ReadInvalidFieldState,\n BasePaginate,\n UpdateUserSociety,\n QueryArchivedSociety,\n QueryExportSociety,\n QueryAccountingExport,\n GetSocietyState,\n QueryUnpaidSociety,\n ReadSocietyUnpaidStats,\n DataCustomersCsv,\n ReadCurrentPrestations,\n QueryToArchivedSociety,\n} from '../../types';\nimport { CancelToken } from 'axios';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<ISociety> {\n return this.axios.$get('/society', { params });\n }\n\n public getPaginated(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated', {\n ...(signal ? { signal } : {}),\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n getInvoiceEmailFromSociety(idSociety: number): Promise<IMailSociety | Error> {\n return this.axios.$get(`/society/invoiceEmail/${idSociety}`);\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(\n `/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`,\n data,\n );\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n importBalanceBankAccount(\n idSociety: number,\n idBankAccount: number,\n params: CreateBudgetBalanceBankAccount,\n ): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety): Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n getAccountant(): Promise<IUser | null> {\n return this.axios.$get('/society/accountant');\n }\n\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(\n idSociety: number,\n id: number,\n data: UpdateUserToSocietyWithPermission,\n ): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {\n return this.axios.$get(`/society/${id}/informations-statements`);\n }\n\n getOwner(id: number): Promise<IUser> {\n return this.axios.$get(`/societies/${id}/owner`);\n }\n\n updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {\n return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);\n }\n\n getArchived(query: QueryArchivedSociety): Promise<ISociety[]> {\n return this.axios.$get('/society/archived', { params: query });\n }\n\n getToArchived(query: QueryToArchivedSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/to-archived', { params: query, ...(signal ? { signal } : {}) });\n }\n\n getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {\n return this.axios.$get('/society/unpaids', {\n ...(signal ? { signal } : {}),\n params: query,\n });\n }\n\n getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats> {\n return this.axios.$get('/society/unpaids/stats', {\n ...(signal ? { signal } : {}),\n });\n }\n\n public getPaginatedNewJuridical(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-juridical', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public getPaginatedNewSocial(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-social', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n export(idSociety: number, payload: QueryExportSociety): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exports`, payload, {\n responseType: 'blob',\n });\n }\n\n exportAccountancy(idSociety: number, payload: QueryAccountingExport): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/accounting/exports`, payload, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n\n getState(idSociety: number): Promise<GetSocietyState> {\n return this.axios.$get(`/societies/${idSociety}/states`);\n }\n\n getCurrentPrestations(idSociety: number): Promise<ReadCurrentPrestations> {\n return this.axios.$get(`/societies/${idSociety}/current-prestations`);\n }\n\n exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer> {\n return this.axios.$post('/societies/exports', params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n}\n"]}
1
+ {"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAoCvC,MAAa,OAAQ,SAAQ,mBAAQ;IAC5B,GAAG,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,YAAY,CACjB,MAA6B,EAC7B,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,gDACtC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAC1B,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CA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AS,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF;AAhLD,0BAgLC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n QueryPaginatedSociety,\n ReadInvalidFieldState,\n BasePaginate,\n UpdateUserSociety,\n QueryArchivedSociety,\n QueryExportSociety,\n QueryAccountingExport,\n GetSocietyState,\n QueryUnpaidSociety,\n ReadSocietyUnpaidStats,\n DataCustomersCsv,\n ReadCurrentPrestations,\n QueryToArchivedSociety,\n ReadFeatureAccess,\n} from '../../types';\nimport { CancelToken } from 'axios';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<ISociety> {\n return this.axios.$get('/society', { params });\n }\n\n public getPaginated(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated', {\n ...(signal ? { signal } : {}),\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n getInvoiceEmailFromSociety(idSociety: number): Promise<IMailSociety | Error> {\n return this.axios.$get(`/society/invoiceEmail/${idSociety}`);\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(\n `/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`,\n data,\n );\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n importBalanceBankAccount(\n idSociety: number,\n idBankAccount: number,\n params: CreateBudgetBalanceBankAccount,\n ): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety): Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n getAccountant(): Promise<IUser | null> {\n return this.axios.$get('/society/accountant');\n }\n\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(\n idSociety: number,\n id: number,\n data: UpdateUserToSocietyWithPermission,\n ): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {\n return this.axios.$get(`/society/${id}/informations-statements`);\n }\n\n getOwner(id: number): Promise<IUser> {\n return this.axios.$get(`/societies/${id}/owner`);\n }\n\n updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {\n return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);\n }\n\n getArchived(query: QueryArchivedSociety): Promise<ISociety[]> {\n return this.axios.$get('/society/archived', { params: query });\n }\n\n getToArchived(query: QueryToArchivedSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/to-archived', { params: query, ...(signal ? { signal } : {}) });\n }\n\n getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {\n return this.axios.$get('/society/unpaids', {\n ...(signal ? { signal } : {}),\n params: query,\n });\n }\n\n getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats> {\n return this.axios.$get('/society/unpaids/stats', {\n ...(signal ? { signal } : {}),\n });\n }\n\n public getPaginatedNewJuridical(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-juridical', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public getPaginatedNewSocial(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-social', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n export(idSociety: number, payload: QueryExportSociety): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exports`, payload, {\n responseType: 'blob',\n });\n }\n\n exportAccountancy(idSociety: number, payload: QueryAccountingExport): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/accounting/exports`, payload, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n\n getState(idSociety: number): Promise<GetSocietyState> {\n return this.axios.$get(`/societies/${idSociety}/states`);\n }\n\n getCurrentPrestations(idSociety: number): Promise<ReadCurrentPrestations> {\n return this.axios.$get(`/societies/${idSociety}/current-prestations`);\n }\n\n exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer> {\n return this.axios.$post('/societies/exports', params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n getAllFeatures(idSociety: number): Promise<ReadFeatureAccess> {\n return this.axios.$get(`/societies/${idSociety}/features`);\n }\n}\n"]}
@@ -15,6 +15,13 @@ export declare class Prestation extends Resource {
15
15
  * @returns { IPrestation }
16
16
  */
17
17
  update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation>;
18
+ /**
19
+ * Supprime une prestation et met à jour les références parentes
20
+ * et supprime les revenuesMovements liés
21
+ * @param { number } idPrestation
22
+ * @returns { true }
23
+ */
24
+ delete(idPrestation: number): Promise<true>;
18
25
  /**
19
26
  * retourne toutes les prestations juridique d'une société
20
27
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oCAAoC,EACpC,WAAW,EACX,QAAQ,EAER,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlE;;;;;OAKG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;OAIG;IACI,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAI5D,mCAAmC,CACxC,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAA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CACxC,MAAM,EAAE,wCAAwC,GAC/C,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAI3B,iBAAiB,CACtB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,eAAe,EACxB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAQ/C,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAuB5G,wBAAwB,CAC7B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,WAAW,CAAC;CAGxB"}
@@ -21,6 +21,15 @@ class Prestation extends Resource_1.Resource {
21
21
  update(idPrestation, params) {
22
22
  return this.axios.$put(`/prestation/${idPrestation}`, params);
23
23
  }
24
+ /**
25
+ * Supprime une prestation et met à jour les références parentes
26
+ * et supprime les revenuesMovements liés
27
+ * @param { number } idPrestation
28
+ * @returns { true }
29
+ */
30
+ delete(idPrestation) {
31
+ return this.axios.$delete(`/prestations/${idPrestation}`);
32
+ }
24
33
  /**
25
34
  * retourne toutes les prestations juridique d'une société
26
35
  * @param { number } id
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AACvC,uCAUqB;AAErB,MAAa,UAAW,SAAQ,mBAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,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mBAAmB;oBAClC,sBAAc,CAAC,eAAe;oBAC9B,sBAAc,CAAC,uBAAuB;oBACtC,sBAAc,CAAC,sBAAsB;oBACrC,sBAAc,CAAC,8BAA8B;iBAC9C;aACF,IACD,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA7ED,gCA6EC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
1
+ {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AACvC,uCAUqB;AAErB,MAAa,UAAW,SAAQ,mBAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAA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Ac,CAAC,8BAA8B;oBAC7C,sBAAc,CAAC,2BAA2B;oBAC1C,sBAAc,CAAC,mBAAmB;oBAClC,sBAAc,CAAC,eAAe;oBAC9B,sBAAc,CAAC,uBAAuB;oBACtC,sBAAc,CAAC,sBAAsB;oBACrC,sBAAc,CAAC,8BAA8B;iBAC9C;aACF,IACD,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAvFD,gCAuFC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * Supprime une prestation et met à jour les références parentes\n * et supprime les revenuesMovements liés\n * @param { number } idPrestation\n * @returns { true }\n */\n public delete(idPrestation: number): Promise<true> {\n return this.axios.$delete(`/prestations/${idPrestation}`);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
@@ -50,7 +50,7 @@ exports.AIPrompt = {
50
50
  "startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
51
51
  "endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
52
52
  },
53
- formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
53
+ formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
54
54
  Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
55
55
  },
56
56
  [AIPromptKey.BANK_STATEMENT_PERIOD]: {
@@ -1 +1 @@
1
- {"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAOY,QAAA,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
1
+ {"version":3,"file":"AIPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/AIPrompt.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gDAAiC,CAAA;IACjC,8DAA+C,CAAA;IAC/C,oEAAqD,CAAA;IACrD,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;AACvC,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAOY,QAAA,QAAQ,GAAsC;IACzD,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,UAAU,EACR,uKAAuK;QACzK,YAAY,EAAE;;;;;;;;;;;;;;;KAeb;KACF;IACD,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE;QAClC,UAAU,EACR,oNAAoN;QACtN,YAAY,EAAE,CAAC,eAAe,EAAE,EAAE,CAChC;;;;;;;;;;;;;;;;;;;6EAmBuE,eAAe;+KACmF;KAC5K;IACD,CAAC,WAAW,CAAC,qBAAqB,CAAC,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,8TAA8T;KACjU;IACD,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;QACd,YAAY,EACV,0dAA0d;KAC7d;IACD,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE;QAC9B,UAAU,EAAE,EAAE,EAAE,mBAAmB;QACnC,YAAY,EAAE;;;;;;;;;KASb;KACF;CACO,CAAC","sourcesContent":["export enum AIPromptKey {\n BANK_STATEMENT = 'bank_statement',\n BANK_STATEMENT_PERIOD = 'bank_statement_period',\n BANK_STATEMENT_FILE_NAME = 'bank_statement_file_name',\n BANK_STATEMENT_INFOS = 'bank_statement_infos',\n ASK_COLLABORATOR = 'ask_collaborator',\n}\n\ninterface AIPromptInfo {\n userPrompt: string;\n systemPrompt: string | ((...arg: any[]) => string);\n}\n\nexport const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {\n [AIPromptKey.BANK_STATEMENT]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire toutes les transactions présentes dans ce document ?',\n systemPrompt: `\n Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).\n Garder exactement le même ordre de transaction que dans le relevé.\n Le format attendu est le suivant :\n [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date de la transaction),\n \"label\": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),\n \"debit\": number,\n \"credit\": number\n },\n ...\n ]\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire.\n `,\n },\n [AIPromptKey.BANK_STATEMENT_INFOS]: {\n userPrompt:\n 'Voici des lignes issues d’un relevé de compte bancaire (cela peut être un relevé français). Pouvez-vous extraire les données concernant le solde précédent, la date de début et la date de fin du compte bancaire?',\n systemPrompt: (bankAccountName) =>\n `\n Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.\n Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null\n\n Garder exactement le même ordre des différentes dates que dans le relevé.\n Si plusieurs solde sont trouvés, les retourner tous.\n De plus, il faut également retourné un nom de fichier formatté.\n Le format attendu est le suivant :\n soldes: [\n {\n \"dateValue\": string (format : YYYY-MM-DD correspondant à la date du ou des soldes précédents),\n \"amount\": number,\n },\n ...\n ],\n period: {\n \"startDate\": string (format : YYYY-MM-DD correspondant a la date de début du relevé),\n \"endDate\": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),\n },\n formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)\n Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,\n },\n [AIPromptKey.BANK_STATEMENT_PERIOD]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez le titre de ce fichier et retournez la période du relevé de compte bancaire au format { startDate: \"YYYY-MM-DD\", endDate: \"YYYY-MM-DD\" } si il y a deux dates qui ressort, si une seule, retourner au format { startDate: \"YYYY-MM-DD\" }. Si le titre ne contient pas d’information sur la période, retournez null.',\n },\n [AIPromptKey.BANK_STATEMENT_FILE_NAME]: {\n userPrompt: '',\n systemPrompt:\n 'Analysez l\\'objet envoyé sous la forme { startDate: string, endDate: string } et retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient que startDate, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" }. Si le l\\'objet ne contient pas de date, retournez le nom du fichier au format { fileName: \"releve_bancaire_du_DD-MM-YYYY.pdf\" } avec la date d\\'aujourd\\'hui.',\n },\n [AIPromptKey.ASK_COLLABORATOR]: {\n userPrompt: '', // this is not used\n systemPrompt: `\n Vous êtes un spécialiste reconnu en comptabilité française, droit fiscal, droit des entreprises et droit social.\n Vous êtes parfaitement à jour des dernières lois, réglementations et jurisprudences en vigueur.\n Votre mission est de fournir des réponses précises et professionnelles basées sur le contexte fourni,\n dans un français irréprochable et un style concis.\n Si le contexte ne contient pas les informations pertinentes pour répondre à la question, veuillez l'indiquer clairement plutôt que d'inventer des informations.\n Si la question est en dehors de votre domaine d'expertise, indiquez-le clairement et indiquez que la catégorie et sous-catégorie sont \"hors sujet\".\n Utilisez toujours la recherche web pour trouver des informations pertinentes et à jour.\n Citez vos sources de manière précise et professionnelle, en fournissant uniquement des liens URL séparés par des points-virgules.\n `,\n },\n} as const;\n"]}
@@ -1,3 +1,4 @@
1
+ import { Feature } from '../../../Enum/Feature';
1
2
  import { IUser } from '../../models/IUser';
2
3
  export declare class ReadAuthenticateCollaborater {
3
4
  token: string;
@@ -13,4 +14,18 @@ export declare class ReadByExternalId {
13
14
  idTypeBrand: number;
14
15
  token: string;
15
16
  }
17
+ export type ExerciceFeatures = {
18
+ id: number;
19
+ startDate: Date | string;
20
+ endDate: Date | string;
21
+ isDefault: boolean;
22
+ features: Feature[];
23
+ };
24
+ export declare class ReadFeatureAccess {
25
+ isOwner: boolean;
26
+ /** @returns default features */
27
+ features: Feature[];
28
+ exercices: ExerciceFeatures[];
29
+ isInTrialPeriod: boolean;
30
+ }
16
31
  //# sourceMappingURL=ReadAuthenticateCollaborater.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAuthenticateCollaborater.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,qBAAa,4BAA4B;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,aAAa;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;CACb;AAED,qBAAa,gBAAgB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"ReadAuthenticateCollaborater.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,qBAAa,4BAA4B;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,aAAa;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;CACb;AAED,qBAAa,gBAAgB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC;AACF,qBAAa,iBAAiB;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReadByExternalId = exports.ReadConnectAs = exports.ReadAuthenticateCollaborater = void 0;
3
+ exports.ReadFeatureAccess = exports.ReadByExternalId = exports.ReadConnectAs = exports.ReadAuthenticateCollaborater = void 0;
4
4
  class ReadAuthenticateCollaborater {
5
5
  }
6
6
  exports.ReadAuthenticateCollaborater = ReadAuthenticateCollaborater;
@@ -10,4 +10,7 @@ exports.ReadConnectAs = ReadConnectAs;
10
10
  class ReadByExternalId {
11
11
  }
12
12
  exports.ReadByExternalId = ReadByExternalId;
13
+ class ReadFeatureAccess {
14
+ }
15
+ exports.ReadFeatureAccess = ReadFeatureAccess;
13
16
  //# sourceMappingURL=ReadAuthenticateCollaborater.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAuthenticateCollaborater.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,aAAa;CAGzB;AAHD,sCAGC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC","sourcesContent":["import { IUser } from '../../models/IUser';\n\nexport class ReadAuthenticateCollaborater {\n token: string;\n}\n\nexport class ReadConnectAs {\n token: string;\n user: IUser;\n}\n\nexport class ReadByExternalId {\n idUser: number;\n idSociety: number;\n societyName: string;\n idTypeBrand: number;\n token: string;\n}\n"]}
1
+ {"version":3,"file":"ReadAuthenticateCollaborater.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts"],"names":[],"mappings":";;;AAGA,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,aAAa;CAGzB;AAHD,sCAGC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AASD,MAAa,iBAAiB;CAM7B;AAND,8CAMC","sourcesContent":["import { Feature } from '../../../Enum/Feature';\nimport { IUser } from '../../models/IUser';\n\nexport class ReadAuthenticateCollaborater {\n token: string;\n}\n\nexport class ReadConnectAs {\n token: string;\n user: IUser;\n}\n\nexport class ReadByExternalId {\n idUser: number;\n idSociety: number;\n societyName: string;\n idTypeBrand: number;\n token: string;\n}\n\nexport type ExerciceFeatures = {\n id: number;\n startDate: Date | string;\n endDate: Date | string;\n isDefault: boolean;\n features: Feature[];\n};\nexport class ReadFeatureAccess {\n isOwner: boolean;\n /** @returns default features */\n features: Feature[];\n exercices: ExerciceFeatures[];\n isInTrialPeriod: boolean;\n}\n"]}
@@ -66,4 +66,8 @@ export declare class QueryRecentActivity {
66
66
  limit?: number;
67
67
  search?: string;
68
68
  }
69
+ export declare class QueryRecurrenceRevenueStatistics {
70
+ startDate: string;
71
+ endDate: string;
72
+ }
69
73
  //# sourceMappingURL=Query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YAAY;IAIvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,aAAa,CAAC;IAKvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,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mBAAmB;IAK9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAMd,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YAAY;IAIvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,aAAa,CAAC;IAKvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,qBAAa,sBAAsB;IAGjC,qBAAqB,EAAE,mBAAmB,CAAC;IAI3C,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,qBAAa,kBAAkB;IAE7B,qBAAqB,EAAE,mBA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adata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryRecentActivity = exports.QueryExportCommercialManagementIntoCSV = exports.QueryCountByStatus = exports.QueryDocumentPaginated = exports.QueryPreviewDocument = exports.QueryNextReference = exports.QueryGetDefaultPayload = exports.QueryInvoice = void 0;
12
+ exports.QueryRecurrenceRevenueStatistics = exports.QueryRecentActivity = exports.QueryExportCommercialManagementIntoCSV = exports.QueryCountByStatus = exports.QueryDocumentPaginated = exports.QueryPreviewDocument = exports.QueryNextReference = exports.QueryGetDefaultPayload = exports.QueryInvoice = 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");
@@ -230,4 +230,17 @@ __decorate([
230
230
  (0, class_validator_1.IsString)(),
231
231
  __metadata("design:type", String)
232
232
  ], QueryRecentActivity.prototype, "search", void 0);
233
+ class QueryRecurrenceRevenueStatistics {
234
+ }
235
+ exports.QueryRecurrenceRevenueStatistics = QueryRecurrenceRevenueStatistics;
236
+ __decorate([
237
+ (0, utils_1.ApiProperty)(),
238
+ (0, class_validator_1.IsDateString)(),
239
+ __metadata("design:type", String)
240
+ ], QueryRecurrenceRevenueStatistics.prototype, "startDate", void 0);
241
+ __decorate([
242
+ (0, utils_1.ApiProperty)(),
243
+ (0, class_validator_1.IsDateString)(),
244
+ __metadata("design:type", String)
245
+ ], QueryRecurrenceRevenueStatistics.prototype, "endDate", void 0);
233
246
  //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+G;AAE/G,6CAAqE;AACrE,sFAA2E;AAC3E,6EAAiG;AACjG,mEAAoE;AAGpE,MAAa,YAAY;CAqCxB;AArCD,oCAqCC;AAjCC;IAHC,IAAA,2BAA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BlD;AAlBD,wFAkBC;AAdC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;yEACM;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;uEACE;AAIjB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;yEACU;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,yBAAO,GAAE;;qEACmB;AAG/B,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AAZC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACO;AAMd;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;kDACQ;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n"]}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+G;AAE/G,6CAAqE;AACrE,sFAA2E;AAC3E,6EAAiG;AACjG,mEAAoE;AAGpE,MAAa,YAAY;CAqCxB;AArCD,oCAqCC;AAjCC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACE;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACE;AAKjB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACK;AAKhB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACY;AAKvB;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CAiB/B;AAjBD,kDAiBC;AAZC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iDACO;AAMd;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;kDACQ;AAKf;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAGlB,MAAa,gCAAgC;CAQ5C;AARD,4EAQC;AALC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;mEACG;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,8BAAY,GAAE;;iEACC","sourcesContent":["import { IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { Order } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n toAnnotate?: boolean;\n order?: Order;\n}\n\nexport class QueryGetDefaultPayload {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsOptional()\n idSaleDocumentTemplate?: number | null;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType;\n amount: number;\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idThirdParty?: number;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport class QueryExportCommercialManagementIntoCSV {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n endDate?: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n}\n\nexport class QueryRecentActivity {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n\nexport class QueryRecurrenceRevenueStatistics {\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n}\n"]}
@@ -106,5 +106,16 @@ export type ReadRecentActivity = {
106
106
  updatedAt: string;
107
107
  item?: IEstimateInvoice | IProductInvoice | IThirdParty;
108
108
  };
109
+ export type ReadStatisticRecurrentRevenue = {
110
+ period: string;
111
+ done: {
112
+ totalTaxExcluded: number;
113
+ totalTaxIncluded: number;
114
+ };
115
+ projection: {
116
+ totalTaxExcluded: number;
117
+ totalTaxIncluded: number;
118
+ } | null;
119
+ };
109
120
  export {};
110
121
  //# sourceMappingURL=Read.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC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jC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,gBAAgB,GAAG,eAAe,GAAG,WAAW,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,EAAE;QACV,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,GAAG,IAAI,CAAC;CACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n"]}
1
+ {"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, FontIds, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { IThirdParty } from '../../models/IThirdParty';\nimport { InternationalizationChoices } from '../../../../utils/commercialManagement/internationalization/type';\nimport { ISaleEmail } from '../../models/ISaleEmail';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadThirdPartyEditing = IThirdParty & {\n deliveryCountry: string | null;\n country: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n toPay: number;\n base: number;\n};\n\nexport type ReadPreview = { idFile: number };\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string | null;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n id: FontIds;\n name: string;\n url: string;\n };\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n accountingCategoryFormatted: string | null;\n languageTemplate: InternationalizationChoices;\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\n | InvoiceStatus.PAID\n | InvoiceStatus.UNPAID\n | InvoiceStatus.CANCELED\n | InvoiceStatus.WAITING\n | EstimateStatus.REFUSED\n | EstimateStatus.BILLED\n | EstimateStatus.ACCEPTED\n | EstimateStatus.WAITING\n | EstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber };\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber };\n};\n\nexport type ReadCommercialMailTemplate = {\n header: string;\n};\n\nexport type ReadSaleEmail = ISaleEmail & {\n defaultFromApplication: boolean;\n};\n\nexport type ReadRecentActivity = {\n id: number;\n type: 'estimate' | 'product' | 'tier';\n label: string;\n updatedAt: string;\n // i don't know if needed, it is in the type but not return from service for now\n item?: IEstimateInvoice | IProductInvoice | IThirdParty;\n};\n\nexport type ReadStatisticRecurrentRevenue = {\n period: string;\n done: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n };\n projection: {\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n } | null;\n};\n"]}
@@ -35,5 +35,6 @@ export declare class QueryGeneralLedgerThirdParty {
35
35
  idSociety: number;
36
36
  page: number;
37
37
  limit: number;
38
+ omitLettering?: boolean;
38
39
  }
39
40
  //# sourceMappingURL=IGeneralLedgerThirdParty.d.ts.map
@@ -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;AAE/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;CACrB"}
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"}
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QueryGeneralLedgerThirdParty = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
+ const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
15
16
  class QueryGeneralLedgerThirdParty {
16
17
  constructor() {
17
18
  this.page = 1;
@@ -46,4 +47,11 @@ __decorate([
46
47
  (0, class_validator_1.IsNumber)(),
47
48
  __metadata("design:type", Number)
48
49
  ], QueryGeneralLedgerThirdParty.prototype, "limit", void 0);
50
+ __decorate([
51
+ (0, utils_1.ApiPropertyOptional)(),
52
+ (0, class_validator_1.IsBoolean)(),
53
+ (0, boolean_transform_1.ToBoolean)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ __metadata("design:type", Boolean)
56
+ ], QueryGeneralLedgerThirdParty.prototype, "omitLettering", void 0);
49
57
  //# sourceMappingURL=IGeneralLedgerThirdParty.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerThirdParty.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AACrE,6CAAgD;AAoChD,MAAa,4BAA4B;IAAzC;QAgBE,SAAI,GAAW,CAAC,CAAC;QAKjB,UAAK,GAAW,GAAG,CAAC;IACtB,CAAC;CAAA;AAtBD,oEAsBC;AAnBC;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","sourcesContent":["import { IsDateString, IsNumber, IsOptional } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';\nimport { BasePaginate } from '../BasePaginate';\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"]}
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 +1 @@
1
- {"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}
1
+ {"version":3,"file":"InternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InternalInvoicing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,MAAM,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IAGxD,QAAQ,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAS7D,UAAU,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB9C,UAAU,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzD"}