@silexpert/core 1.1.186 → 1.1.188

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 (110) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +2 -2
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +2 -2
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/GeneralLedger.d.ts +8 -0
  6. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/GeneralLedger.js +32 -0
  8. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  9. package/dist/cjs/api/resources/IncomeStatement.d.ts +2 -0
  10. package/dist/cjs/api/resources/IncomeStatement.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/IncomeStatement.js +10 -0
  12. package/dist/cjs/api/resources/IncomeStatement.js.map +1 -1
  13. package/dist/cjs/api/resources/Journal.d.ts +2 -0
  14. package/dist/cjs/api/resources/Journal.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/Journal.js +7 -0
  16. package/dist/cjs/api/resources/Journal.js.map +1 -1
  17. package/dist/cjs/api/resources/prestation.d.ts +2 -1
  18. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  19. package/dist/cjs/api/resources/prestation.js +3 -0
  20. package/dist/cjs/api/resources/prestation.js.map +1 -1
  21. package/dist/cjs/index.d.ts +1 -0
  22. package/dist/cjs/index.d.ts.map +1 -1
  23. package/dist/cjs/index.js +1 -0
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/cjs/types/Enum/Card.d.ts +1 -1
  26. package/dist/cjs/types/Enum/Card.js +1 -1
  27. package/dist/cjs/types/Enum/Card.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
  29. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/card/UpdateCard.js +9 -2
  31. package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/prestation/CreatePrestation.d.ts +5 -0
  33. package/dist/cjs/types/Interface/api/prestation/CreatePrestation.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/prestation/CreatePrestation.js +19 -1
  35. package/dist/cjs/types/Interface/api/prestation/CreatePrestation.js.map +1 -1
  36. package/dist/cjs/types/Interface/models/ICard.d.ts +11 -1
  37. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  39. package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts +21 -20
  40. package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
  42. package/dist/cjs/utils/commercialManagement/document.d.ts +0 -1
  43. package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
  44. package/dist/cjs/utils/commercialManagement/document.js +1 -41
  45. package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
  46. package/dist/cjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  47. package/dist/cjs/utils/commercialManagement/templates/common.js +34 -46
  48. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  49. package/dist/mjs/api/resources/Card.d.ts +2 -2
  50. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  51. package/dist/mjs/api/resources/Card.js +4 -2
  52. package/dist/mjs/api/resources/Card.js.map +1 -1
  53. package/dist/mjs/api/resources/GeneralLedger.d.ts +8 -0
  54. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/GeneralLedger.js +32 -0
  56. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  57. package/dist/mjs/api/resources/IncomeStatement.d.ts +2 -0
  58. package/dist/mjs/api/resources/IncomeStatement.d.ts.map +1 -1
  59. package/dist/mjs/api/resources/IncomeStatement.js +10 -0
  60. package/dist/mjs/api/resources/IncomeStatement.js.map +1 -1
  61. package/dist/mjs/api/resources/Journal.d.ts +2 -0
  62. package/dist/mjs/api/resources/Journal.d.ts.map +1 -1
  63. package/dist/mjs/api/resources/Journal.js +7 -0
  64. package/dist/mjs/api/resources/Journal.js.map +1 -1
  65. package/dist/mjs/api/resources/prestation.d.ts +2 -1
  66. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  67. package/dist/mjs/api/resources/prestation.js +3 -0
  68. package/dist/mjs/api/resources/prestation.js.map +1 -1
  69. package/dist/mjs/index.d.ts +1 -0
  70. package/dist/mjs/index.d.ts.map +1 -1
  71. package/dist/mjs/index.js +1 -0
  72. package/dist/mjs/index.js.map +1 -1
  73. package/dist/mjs/types/Enum/Card.d.ts +1 -1
  74. package/dist/mjs/types/Enum/Card.js +1 -1
  75. package/dist/mjs/types/Enum/Card.js.map +1 -1
  76. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +2 -1
  77. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  78. package/dist/mjs/types/Interface/api/card/UpdateCard.js +11 -3
  79. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  80. package/dist/mjs/types/Interface/api/prestation/CreatePrestation.d.ts +5 -0
  81. package/dist/mjs/types/Interface/api/prestation/CreatePrestation.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/api/prestation/CreatePrestation.js +20 -0
  83. package/dist/mjs/types/Interface/api/prestation/CreatePrestation.js.map +1 -1
  84. package/dist/mjs/types/Interface/models/ICard.d.ts +11 -1
  85. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  86. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  87. package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts +21 -20
  88. package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  89. package/dist/mjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
  90. package/dist/mjs/utils/commercialManagement/document.d.ts +0 -1
  91. package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
  92. package/dist/mjs/utils/commercialManagement/document.js +1 -76
  93. package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
  94. package/dist/mjs/utils/commercialManagement/templates/common.d.ts.map +1 -1
  95. package/dist/mjs/utils/commercialManagement/templates/common.js +34 -46
  96. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  97. package/package.json +1 -1
  98. package/ts/api/resources/Card.ts +5 -3
  99. package/ts/api/resources/GeneralLedger.ts +36 -0
  100. package/ts/api/resources/IncomeStatement.ts +13 -0
  101. package/ts/api/resources/Journal.ts +9 -0
  102. package/ts/api/resources/prestation.ts +6 -0
  103. package/ts/index.ts +1 -0
  104. package/ts/types/Enum/Card.ts +1 -1
  105. package/ts/types/Interface/api/card/UpdateCard.ts +9 -3
  106. package/ts/types/Interface/api/prestation/CreatePrestation.ts +14 -0
  107. package/ts/types/Interface/models/ICard.ts +9 -1
  108. package/ts/types/Interface/models/IPrestationComplementary.ts +21 -20
  109. package/ts/utils/commercialManagement/document.ts +1 -93
  110. package/ts/utils/commercialManagement/templates/common.ts +34 -46
@@ -1 +1 @@
1
- {"version":3,"file":"IncomeStatement.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/IncomeStatement.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAI,OAAO,CAAC,MAAM,CAAC;CASzD"}
1
+ {"version":3,"file":"IncomeStatement.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/IncomeStatement.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,qBAAa,eAAgB,SAAQ,QAAQ;IAE3C,0CAA0C;IAC1C,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAI,OAAO,CAAC,MAAM,CAAC;IAUxD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,GAAI,OAAO,CAAC,MAAM,CAAC;CAU/E"}
@@ -1,5 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  export class IncomeStatement extends Resource {
3
+ /** @deprecated use exportPdf() instead */
3
4
  getPdf(query) {
4
5
  return this.axios.$get('/incomeStatement/pdf', {
5
6
  params: query,
@@ -9,5 +10,14 @@ export class IncomeStatement extends Resource {
9
10
  },
10
11
  });
11
12
  }
13
+ exportPdf(idSociety, query) {
14
+ return this.axios.$post(`/societies/${idSociety}/income-statements/pdf`, null, {
15
+ params: query,
16
+ responseType: 'arraybuffer',
17
+ headers: {
18
+ Accept: 'application/pdf',
19
+ },
20
+ });
21
+ }
12
22
  }
13
23
  //# sourceMappingURL=IncomeStatement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IncomeStatement.js","sourceRoot":"","sources":["../../../../ts/api/resources/IncomeStatement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,MAAM,CAAC,KAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC7C,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryIncomeStatementPdf } from '../../types';\n\nexport class IncomeStatement extends Resource {\n getPdf(query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$get('/incomeStatement/pdf', {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}"]}
1
+ {"version":3,"file":"IncomeStatement.js","sourceRoot":"","sources":["../../../../ts/api/resources/IncomeStatement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAE3C,0CAA0C;IAC1C,MAAM,CAAC,KAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC7C,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAC,SAAiB,EAAE,KAA8B;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,wBAAwB,EAAE,IAAI,EAAE;YAC7E,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CAEF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryIncomeStatementPdf } from '../../types';\n\nexport class IncomeStatement extends Resource {\n\n /** @deprecated use exportPdf() instead */\n getPdf(query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$get('/incomeStatement/pdf', {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportPdf(idSociety: number, query: QueryIncomeStatementPdf) : Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/income-statements/pdf`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n}"]}
@@ -2,6 +2,8 @@
2
2
  import { Resource } from '../Resource';
3
3
  import { Journals, QueryJournal } from '../../types';
4
4
  export declare class Journal extends Resource {
5
+ /** @deprecated use export() instead */
5
6
  getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer>;
7
+ export(idSociety: number, exportType: 'pdf' | 'json', params: QueryJournal): Promise<Buffer | Journals>;
6
8
  }
7
9
  //# sourceMappingURL=Journal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Journal.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Journal.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,UAAU,EAAE,KAAK,GAAG,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC;CAMxF"}
1
+ {"version":3,"file":"Journal.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Journal.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,qBAAa,OAAQ,SAAQ,QAAQ;IAEnC,uCAAuC;IACvC,SAAS,CAAC,UAAU,EAAE,KAAK,GAAG,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC;IAOvF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,GAAG,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC;CAMxG"}
@@ -1,10 +1,17 @@
1
1
  import { Resource } from '../Resource';
2
2
  export class Journal extends Resource {
3
+ /** @deprecated use export() instead */
3
4
  getExport(exportType, params) {
4
5
  return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {
5
6
  params,
6
7
  responseType: 'arraybuffer',
7
8
  });
8
9
  }
10
+ export(idSociety, exportType, params) {
11
+ return this.axios.$get(`/societies/${idSociety}/journals/export/${exportType}`, {
12
+ params,
13
+ responseType: 'arraybuffer',
14
+ });
15
+ }
9
16
  }
10
17
  //# sourceMappingURL=Journal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Journal.js","sourceRoot":"","sources":["../../../../ts/api/resources/Journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,UAA0B,EAAE,MAAoB;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,UAAU,EAAE,EAAE;YACtE,MAAM;YACN,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { Journals, QueryJournal } from '../../types';\n\nexport class Journal extends Resource {\n getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer> {\n return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
1
+ {"version":3,"file":"Journal.js","sourceRoot":"","sources":["../../../../ts/api/resources/Journal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IAEnC,uCAAuC;IACvC,SAAS,CAAC,UAA0B,EAAE,MAAoB;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,UAAU,EAAE,EAAE;YACtE,MAAM;YACN,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,UAA0B,EAAE,MAAoB;QACxE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,oBAAoB,UAAU,EAAE,EAAE;YAC9E,MAAM;YACN,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { Journals, QueryJournal } from '../../types';\n\nexport class Journal extends Resource {\n\n /** @deprecated use export() instead */\n getExport(exportType: 'pdf' | 'json', params: QueryJournal): Promise<Journals | Buffer> {\n return this.axios.$get(`/balance-sheets/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n\n export(idSociety: number, exportType: 'pdf' | 'json', params: QueryJournal): Promise<Buffer | Journals> {\n return this.axios.$get(`/societies/${idSociety}/journals/export/${exportType}`, {\n params,\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { CancelToken } from 'axios';
2
2
  import { Resource } from '../Resource';
3
- import { BasePaginate, IPrestation, ISociety, QueryCreatePrestation, QueryGetPaginatedSocietiesFromPrestation, QueryPrestation, QueryUpdatePrestation } from '../../types';
3
+ import { BasePaginate, CreateSocietyPrestationComplementary, IPrestation, ISociety, QueryCreatePrestation, QueryGetPaginatedSocietiesFromPrestation, QueryPrestation, QueryUpdatePrestation } from '../../types';
4
4
  export declare class Prestation extends Resource {
5
5
  /**
6
6
  * Crée une prestationavec tous les éléments lié à celle-ci.
@@ -24,5 +24,6 @@ export declare class Prestation extends Resource {
24
24
  getPaginatedSocietiesFromPrestation(params: QueryGetPaginatedSocietiesFromPrestation): Promise<BasePaginate<ISociety>>;
25
25
  getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]>;
26
26
  getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]>;
27
+ createCustomerPrestation(idSociety: number, payload: CreateSocietyPrestationComplementary): Promise<IPrestation>;
27
28
  }
28
29
  //# sourceMappingURL=prestation.d.ts.map
@@ -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,WAAW,EAAE,QAAQ,EAAkB,qBAAqB,EAAE,wCAAwC,EAAE,eAAe,EAAE,qBAAqB,EAC/I,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IAEtC;;;;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,CAAC,MAAM,EAAE,wCAAwC,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAItH,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIhI,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAqBpH"}
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,EAAE,QAAQ,EAAkB,qBAAqB,EAAE,wCAAwC,EAAE,eAAe,EAAE,qBAAqB,EAC/I,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IAEtC;;;;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,CAAC,MAAM,EAAE,wCAAwC,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAItH,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAIhI,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAsB5G,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,WAAW,CAAC;CAIxH"}
@@ -54,5 +54,8 @@ export class Prestation extends Resource {
54
54
  },
55
55
  });
56
56
  }
57
+ createCustomerPrestation(idSociety, payload) {
58
+ return this.axios.$post(`/societies/${idSociety}/prestations`, payload);
59
+ }
57
60
  }
58
61
  //# sourceMappingURL=prestation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAEkB,cAAc,GACtC,M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AE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,cAAc,CAAC,UAAU;oBACzB,cAAc,CAAC,MAAM;oBACrB,cAAc,CAAC,qBAAqB;oBACpC,cAAc,CAAC,6BAA6B;oBAC5C,cAAc,CAAC,sCAAsC;oBACrD,cAAc,CAAC,8BAA8B;oBAC7C,cAAc,CAAC,2BAA2B;oBAC1C,cAAc,CAAC,mBAAmB;oBAClC,cAAc,CAAC,eAAe;oBAC9B,cAAc,CAAC,uBAAuB;oBACtC,cAAc,CAAC,sBAAsB;oBACrC,cAAc,CAAC,8BAA8B;iBAAC;aACjD;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n IPrestation, ISociety, PrestationType, QueryCreatePrestation, QueryGetPaginatedSocietiesFromPrestation, QueryPrestation, QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n\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(params: QueryGetPaginatedSocietiesFromPrestation): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, { ...(cancelToken ? { cancelToken } : {}), ...(signal ? { signal } : {}), params });\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}"]}
1
+ {"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAGkB,cAAc,GACtC,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,UAAW,SAAQ,QAAQ;IAEtC;;;;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,C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AAC,eAAe;oBAC9B,cAAc,CAAC,uBAAuB;oBACtC,cAAc,CAAC,sBAAsB;oBACrC,cAAc,CAAC,8BAA8B;iBAAC;aACjD;SACF,CAAC,CAAC;IACL,CAAC;IAEM,wBAAwB,CAAC,SAAiB,EAAE,OAA6C;QAC9F,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CAEF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation, ISociety, PrestationType, QueryCreatePrestation, QueryGetPaginatedSocietiesFromPrestation, QueryPrestation, QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n\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(params: QueryGetPaginatedSocietiesFromPrestation): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, { ...(cancelToken ? { cancelToken } : {}), ...(signal ? { signal } : {}), params });\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 public createCustomerPrestation(idSociety: number, payload: CreateSocietyPrestationComplementary): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n\n}"]}
@@ -1,5 +1,6 @@
1
1
  export * from './utils';
2
2
  export * from './utils/commercialManagement/product';
3
+ export * from './utils/commercialManagement/vat';
3
4
  export * from './types';
4
5
  export * from './api';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sCAAsC,CAAC;AAErD,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
package/dist/mjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './utils';
2
2
  export * from './utils/commercialManagement/product';
3
+ export * from './utils/commercialManagement/vat';
3
4
  // eslint-disable-next-line
4
5
  export * from './types';
5
6
  export * from './api';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sCAAsC,CAAC;AACrD,2BAA2B;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC","sourcesContent":["export * from './utils';\nexport * from './utils/commercialManagement/product';\n// eslint-disable-next-line\nexport * from './types';\nexport * from './api';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,2BAA2B;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC","sourcesContent":["export * from './utils';\nexport * from './utils/commercialManagement/product';\nexport * from './utils/commercialManagement/vat';\n// eslint-disable-next-line\nexport * from './types';\nexport * from './api';\n"]}
@@ -22,7 +22,7 @@ export declare const CardGroup: readonly [{
22
22
  readonly maxByDay: 3;
23
23
  }, {
24
24
  readonly id: CardGroupEnum.VAT_GROUP;
25
- readonly label: "Déclaration";
25
+ readonly label: "Déclarations";
26
26
  readonly types: CardType[];
27
27
  readonly maxByDay: 6;
28
28
  }];
@@ -34,7 +34,7 @@ export const CardGroup = [
34
34
  },
35
35
  {
36
36
  id: CardGroupEnum.VAT_GROUP,
37
- label: 'Déclaration',
37
+ label: 'Déclarations',
38
38
  types: [CardType.VAT],
39
39
  maxByDay: 6,
40
40
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Card.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAQX;AARD,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AAE,aAAa,CAAC,mBAAmB;KAC3C;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,0BAA0B;QACvC,KAAK,EAAE,cAAc;QACrB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,mBAAmB;KAC3C;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,yBAAyB;QACtC,KAAK,EAAE,cAAc;QACrB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,mBAAmB;KAC3C;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,yBAAyB;QACtC,KAAK,EAAE,eAAe;QACtB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,mBAAmB;KAC3C;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,qBAAqB;QAClC,KAAK,EAAE,eAAe;QACtB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,mBAAmB;KAC3C;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,aAAa,CAAC,SAAS;KACjC;IACD,IAAI;IACJ,uCAAuC;IACvC,wBAAwB;IACxB,uDAAuD;IACvD,KAAK;CACG,CAAC","sourcesContent":["export enum CardType {\n BALANCE_SHEET = 1,\n BALANCE_SHEET_INTERMEDIATE = 2,\n BALANCE_SHEET_PREVISIONAL = 3,\n BALANCE_SHEET_LIQUIDATION = 4,\n BALANCE_SHEET_EXPRESS = 5,\n VAT = 6,\n // REINFORCED_CHECKLIST = 7,\n}\n\nexport enum CardState {\n TODO = 1,\n IN_PROGRESS = 2,\n DONE = 3,\n // ETAT \"Calculer\" pour le front mais pas en base\n // - Non Fait => si date passé et tjs dans l'état A faire ou En cours\n // - Non Terminée => Sélectionable si l'état est en cours et qu'on arrive à la fin de journée pour reportée. Et passe donc en A faire un jour suivant\n // - Reportée => Toutes les cards avec au moins 2 history et dans l'était Todo ou In progress\n // - Non Plannifiable => Toutes les cards A faire non plannifiée\n}\n\nexport enum CardGroupEnum {\n BALANCE_SHEET_GROUP = 1,\n VAT_GROUP = 2,\n // REINFORCED_CHECKLIST_GROUP = 3,\n}\n\nexport const CardGroup = [\n {\n id: CardGroupEnum.BALANCE_SHEET_GROUP,\n label: 'Bilans',\n types: [CardType.BALANCE_SHEET, CardType.BALANCE_SHEET_INTERMEDIATE, CardType.BALANCE_SHEET_PREVISIONAL, CardType.BALANCE_SHEET_LIQUIDATION, CardType.BALANCE_SHEET_EXPRESS] as CardType[],\n maxByDay: 3,\n },\n {\n id: CardGroupEnum.VAT_GROUP,\n label: 'Déclaration',\n types: [CardType.VAT] as CardType[],\n maxByDay: 6,\n },\n // {\n // id: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,\n // label: 'Checklist',\n // types: [CardType.REINFORCED_CHECKLIST],\n // maxByDay: 6,\n // },\n] as const;\n\nexport const CardTypeLabel = [\n {\n id: CardType.BALANCE_SHEET,\n label: 'Bilan',\n refLabel: 'B',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_INTERMEDIATE,\n label: 'Bilan inter.',\n refLabel: 'BI',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREVISIONAL,\n label: 'Bilan prévi.',\n refLabel: 'BP',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_LIQUIDATION,\n label: 'Bilan liquid.',\n refLabel: 'BL',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_EXPRESS,\n label: 'Bilan express',\n refLabel: 'BE',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.VAT,\n label: 'TVA',\n refLabel: 'TVA',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n // {\n // id: CardType.REINFORCED_CHECKLIST,\n // label: 'Checklist',\n // groupId: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,\n // },\n] as const;\n\nexport interface UserCardsStats {\n idType: CardType;\n nbTodo: number;\n nbDone: number;\n nbInProgress: number;\n nbNotDone: number;\n nbPostponed: number;\n}\n\nexport interface UserCardsStatsGroup {\n idGroup: CardGroupEnum;\n totalTodo: number;\n totalDone: number;\n totalInProgress: number;\n totalNotDone: number;\n totalPostponed: number;\n details: UserCardsStats[];\n}"]}
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Card.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,yDAAiB,CAAA;IACjB,mFAA8B,CAAA;IAC9B,iFAA6B,CAAA;IAC7B,iFAA6B,CAAA;IAC7B,yEAAyB,CAAA;IACzB,qCAAO,CAAA;IACP,4BAA4B;AAC9B,CAAC,EARW,QAAQ,KAAR,QAAQ,QAQnB;AAED,MAAM,CAAN,IAAY,SASX;AATD,WAAY,SAAS;IACnB,yCAAQ,CAAA;IACR,uDAAe,CAAA;IACf,yCAAQ,CAAA;IACR,iDAAiD;IACjD,qEAAqE;IACrE,qJAAqJ;IACrJ,6FAA6F;IAC7F,gEAAgE;AAClE,CAAC,EATW,SAAS,KAAT,SAAS,QASpB;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,+EAAuB,CAAA;IACvB,2DAAa,CAAA;IACb,kCAAkC;AACpC,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB;QACE,EAAE,EAAE,aAAa,CAAC,mBAAmB;QACrC,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,0BAA0B,EAAE,QAAQ,CAAC,yBAAyB,EAAE,QAAQ,CAAC,yBAAyB,EAAE,QAAQ,CAAC,qBAAqB,CAAe;QAC1L,QA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ALANCE_SHEET_INTERMEDIATE = 2,\n BALANCE_SHEET_PREVISIONAL = 3,\n BALANCE_SHEET_LIQUIDATION = 4,\n BALANCE_SHEET_EXPRESS = 5,\n VAT = 6,\n // REINFORCED_CHECKLIST = 7,\n}\n\nexport enum CardState {\n TODO = 1,\n IN_PROGRESS = 2,\n DONE = 3,\n // ETAT \"Calculer\" pour le front mais pas en base\n // - Non Fait => si date passé et tjs dans l'état A faire ou En cours\n // - Non Terminée => Sélectionable si l'état est en cours et qu'on arrive à la fin de journée pour reportée. Et passe donc en A faire un jour suivant\n // - Reportée => Toutes les cards avec au moins 2 history et dans l'était Todo ou In progress\n // - Non Plannifiable => Toutes les cards A faire non plannifiée\n}\n\nexport enum CardGroupEnum {\n BALANCE_SHEET_GROUP = 1,\n VAT_GROUP = 2,\n // REINFORCED_CHECKLIST_GROUP = 3,\n}\n\nexport const CardGroup = [\n {\n id: CardGroupEnum.BALANCE_SHEET_GROUP,\n label: 'Bilans',\n types: [CardType.BALANCE_SHEET, CardType.BALANCE_SHEET_INTERMEDIATE, CardType.BALANCE_SHEET_PREVISIONAL, CardType.BALANCE_SHEET_LIQUIDATION, CardType.BALANCE_SHEET_EXPRESS] as CardType[],\n maxByDay: 3,\n },\n {\n id: CardGroupEnum.VAT_GROUP,\n label: 'Déclarations',\n types: [CardType.VAT] as CardType[],\n maxByDay: 6,\n },\n // {\n // id: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,\n // label: 'Checklist',\n // types: [CardType.REINFORCED_CHECKLIST],\n // maxByDay: 6,\n // },\n] as const;\n\nexport const CardTypeLabel = [\n {\n id: CardType.BALANCE_SHEET,\n label: 'Bilan',\n refLabel: 'B',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_INTERMEDIATE,\n label: 'Bilan inter.',\n refLabel: 'BI',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREVISIONAL,\n label: 'Bilan prévi.',\n refLabel: 'BP',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_LIQUIDATION,\n label: 'Bilan liquid.',\n refLabel: 'BL',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_EXPRESS,\n label: 'Bilan express',\n refLabel: 'BE',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.VAT,\n label: 'TVA',\n refLabel: 'TVA',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n // {\n // id: CardType.REINFORCED_CHECKLIST,\n // label: 'Checklist',\n // groupId: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,\n // },\n] as const;\n\nexport interface UserCardsStats {\n idType: CardType;\n nbTodo: number;\n nbDone: number;\n nbInProgress: number;\n nbNotDone: number;\n nbPostponed: number;\n}\n\nexport interface UserCardsStatsGroup {\n idGroup: CardGroupEnum;\n totalTodo: number;\n totalDone: number;\n totalInProgress: number;\n totalNotDone: number;\n totalPostponed: number;\n details: UserCardsStats[];\n}"]}
@@ -2,8 +2,9 @@ import { CardState, CardType } from '../../../Enum/Card';
2
2
  export declare class UpdateCard {
3
3
  type?: CardType;
4
4
  isManual?: boolean;
5
+ isBlocked?: string;
5
6
  state?: CardState;
6
- plannedAt?: Date;
7
+ plannedAt?: Date | null;
7
8
  idUser?: number;
8
9
  comment?: string;
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateCard.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBAAa,UAAU;IAKnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAKhB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAKlB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"UpdateCard.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGzD,qBAAa,UAAU;IAKnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAKhB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAIlB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -7,12 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
10
+ import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
11
11
  import { ApiPropertyOptional } from '../../../../utils';
12
12
  import { CardState, CardType } from '../../../Enum/Card';
13
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
14
  export class UpdateCard {
14
15
  type;
15
16
  isManual;
17
+ isBlocked;
16
18
  state;
17
19
  plannedAt;
18
20
  idUser;
@@ -31,6 +33,13 @@ __decorate([
31
33
  IsBoolean(),
32
34
  __metadata("design:type", Boolean)
33
35
  ], UpdateCard.prototype, "isManual", void 0);
36
+ __decorate([
37
+ ApiPropertyOptional(),
38
+ IsOptional(),
39
+ IsBoolean(),
40
+ ToBoolean(),
41
+ __metadata("design:type", String)
42
+ ], UpdateCard.prototype, "isBlocked", void 0);
34
43
  __decorate([
35
44
  ApiPropertyOptional(),
36
45
  IsOptional(),
@@ -41,8 +50,7 @@ __decorate([
41
50
  __decorate([
42
51
  ApiPropertyOptional(),
43
52
  IsOptional(),
44
- IsDate(),
45
- __metadata("design:type", Date)
53
+ __metadata("design:type", Object)
46
54
  ], UpdateCard.prototype, "plannedAt", void 0);
47
55
  __decorate([
48
56
  ApiPropertyOptional(),
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateCard.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAG,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,OAAO,UAAU;IAKnB,IAAI,CAAY;IAKhB,QAAQ,CAAW;IAMnB,KAAK,CAAa;IAKlB,SAAS,CAAQ;IAKjB,MAAM,CAAU;IAMhB,OAAO,CAAU;CACpB;AAhCC;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,QAAQ,CAAC;;wCACC;AAElB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;;4CACS;AAErB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,SAAS,CAAC;;yCACE;AAEpB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,EAAE;8BACK,IAAI;6CAAC;AAEnB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;0CACU;AAGlB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACQ","sourcesContent":["import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { CardState, CardType } from '../../../Enum/Card';\n\nexport class UpdateCard {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardType)\n type?: CardType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n isManual?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardState)\n state?: CardState;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n plannedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n}"]}
1
+ {"version":3,"file":"UpdateCard.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/card/UpdateCard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAG,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,UAAU;IAKnB,IAAI,CAAY;IAKhB,QAAQ,CAAW;IAMnB,SAAS,CAAU;IAMnB,KAAK,CAAa;IAIlB,SAAS,CAAe;IAKxB,MAAM,CAAU;IAMhB,OAAO,CAAU;CACpB;AArCC;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,QAAQ,CAAC;;wCACC;AAElB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;;4CACS;AAErB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;6CACS;AAErB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,SAAS,CAAC;;yCACE;AAEpB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;6CACa;AAE1B;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;0CACU;AAGlB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACQ","sourcesContent":["import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { CardState, CardType } from '../../../Enum/Card';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class UpdateCard {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardType)\n type?: CardType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n isManual?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isBlocked?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(CardState)\n state?: CardState;\n\n @ApiPropertyOptional()\n @IsOptional()\n plannedAt?: Date | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idUser?: number;\n\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string;\n}"]}
@@ -3,4 +3,9 @@ export declare class CreatePrestation {
3
3
  amountTtc: number;
4
4
  label?: string;
5
5
  }
6
+ export declare class CreateSocietyPrestationComplementary {
7
+ idPrestationList: number;
8
+ idExercice: number;
9
+ totalTaxExcluded: number;
10
+ }
6
11
  //# sourceMappingURL=CreatePrestation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreatePrestation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAGzB,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"CreatePrestation.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAGzB,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,oCAAoC;IAG7C,gBAAgB,EAAE,MAAM,CAAC;IAIzB,UAAU,EAAE,MAAM,CAAC;IAInB,gBAAgB,EAAE,MAAM,CAAC;CAC5B"}
@@ -28,4 +28,24 @@ __decorate([
28
28
  ApiPropertyOptional(),
29
29
  __metadata("design:type", String)
30
30
  ], CreatePrestation.prototype, "label", void 0);
31
+ export class CreateSocietyPrestationComplementary {
32
+ idPrestationList;
33
+ idExercice;
34
+ totalTaxExcluded;
35
+ }
36
+ __decorate([
37
+ ApiProperty(),
38
+ IsNumber(),
39
+ __metadata("design:type", Number)
40
+ ], CreateSocietyPrestationComplementary.prototype, "idPrestationList", void 0);
41
+ __decorate([
42
+ ApiProperty(),
43
+ IsNumber(),
44
+ __metadata("design:type", Number)
45
+ ], CreateSocietyPrestationComplementary.prototype, "idExercice", void 0);
46
+ __decorate([
47
+ ApiProperty(),
48
+ IsNumber(),
49
+ __metadata("design:type", Number)
50
+ ], CreateSocietyPrestationComplementary.prototype, "totalTaxExcluded", void 0);
31
51
  //# sourceMappingURL=CreatePrestation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreatePrestation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,OAAO,gBAAgB;IAGzB,WAAW,CAAS;IAIpB,SAAS,CAAS;IAGlB,KAAK,CAAU;CAClB;AAVC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACW;AAEtB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACS;AAEpB;IAAC,mBAAmB,EAAE;;+CACL","sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiPropertyOptional()\n label?: string;\n}\n"]}
1
+ {"version":3,"file":"CreatePrestation.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,OAAO,gBAAgB;IAGzB,WAAW,CAAS;IAIpB,SAAS,CAAS;IAGlB,KAAK,CAAU;CAClB;AAVC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACW;AAEtB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACS;AAEpB;IAAC,mBAAmB,EAAE;;+CACL;AAGnB,MAAM,OAAO,oCAAoC;IAG7C,gBAAgB,CAAS;IAIzB,UAAU,CAAS;IAInB,gBAAgB,CAAS;CAC5B;AAXC;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;8EACgB;AAE3B;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;wEACU;AAErB;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;8EACgB","sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiPropertyOptional()\n label?: string;\n}\n\nexport class CreateSocietyPrestationComplementary {\n @ApiProperty()\n @IsNumber()\n idPrestationList: number;\n\n @ApiProperty()\n @IsNumber()\n idExercice: number;\n\n @ApiProperty()\n @IsNumber()\n totalTaxExcluded: number;\n}\n"]}
@@ -11,7 +11,8 @@ export interface ICard {
11
11
  type: CardType;
12
12
  state: CardState;
13
13
  isManual: boolean;
14
- plannedAt?: Date;
14
+ isBlocked: boolean;
15
+ plannedAt?: Date | null;
15
16
  idUser: number;
16
17
  idSociety: number;
17
18
  createdAt?: Date;
@@ -25,4 +26,13 @@ export interface ICard {
25
26
  history?: ICardHistory[];
26
27
  comment?: IComment;
27
28
  }
29
+ export interface CardAnnotedTransaction {
30
+ total: number;
31
+ nbAnnoted: number;
32
+ rate: number;
33
+ }
34
+ export interface CardDetail {
35
+ card: ICard;
36
+ annotedTransaction: CardAnnotedTransaction;
37
+ }
28
38
  //# sourceMappingURL=ICard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ICard.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,C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;IACf,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAE1F,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,KAAK,CAAC;IACZ,kBAAkB,EAAE,sBAAsB,CAAC;CAC5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ICard.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"","sourcesContent":["import { CardType, CardState } from '../../Enum/Card';\nimport { IUser } from './IUser';\nimport { ISociety } from './ISociety';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ICustomerVat } from './ICustomerVat';\nimport { ICardHistory } from './ICardHistory';\nimport { IComment } from './IComment';\n\nexport interface ICard {\n id?: number;\n type: CardType;\n state: CardState;\n isManual: boolean;\n plannedAt?: Date;\n idUser: number;\n idSociety: number;\n createdAt?: Date;\n updatedAt?: Date;\n deletedAt?: Date;\n\n // Associations\n user?: IUser;\n society?: ISociety;\n balanceSheet?: IBalanceSheet;\n customerVat?: ICustomerVat;\n events?: ICalendarEvent[];\n history?: ICardHistory[];\n comment?: IComment;\n}\n"]}
1
+ {"version":3,"file":"ICard.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ICard.ts"],"names":[],"mappings":"","sourcesContent":["import { CardType, CardState } from '../../Enum/Card';\nimport { IUser } from './IUser';\nimport { ISociety } from './ISociety';\nimport { IBalanceSheet } from './IBalanceSheet';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { ICustomerVat } from './ICustomerVat';\nimport { ICardHistory } from './ICardHistory';\nimport { IComment } from './IComment';\n\nexport interface ICard {\n id?: number;\n type: CardType;\n state: CardState;\n isManual: boolean;\n isBlocked: boolean;\n plannedAt?: Date | null;\n idUser: number;\n idSociety: number;\n createdAt?: Date;\n updatedAt?: Date;\n deletedAt?: Date;\n\n // Associations\n user?: IUser;\n society?: ISociety;\n balanceSheet?: IBalanceSheet;\n customerVat?: ICustomerVat;\n events?: ICalendarEvent[];\n history?: ICardHistory[];\n comment?: IComment;\n}\n\nexport interface CardAnnotedTransaction { total: number, nbAnnoted: number, rate: number }\n\nexport interface CardDetail {\n card: ICard;\n annotedTransaction: CardAnnotedTransaction;\n}\n"]}
@@ -2,31 +2,32 @@ import { IUser } from './IUser';
2
2
  import { IPaymentExpectation } from './IPaymentExpectation';
3
3
  import { IGedFile } from './IGedFile';
4
4
  import { IPrestation } from './IPrestation';
5
+ import { AcceptationAdmin } from '../../Enum/AdditionnalSells';
5
6
  export interface IPrestationComplementary {
6
7
  id?: number;
7
8
  generateLink: boolean;
8
- deadline: Date | null;
9
- dateEstimateSigned: Date | null;
10
- dateSendToClient: Date | null;
11
- dateInvoice: Date | null;
12
- datePayment: Date | null;
13
- dateTransmission: Date | null;
14
- idGedFile: number | null;
15
- idCollaborater: number | null;
16
- idUser: number | null;
17
- idPaymentExpectation: number | null;
18
- description: string | null;
19
- note: string | null;
20
- forOtherMission: string | null;
21
- statePrestationJuridique: number | null;
22
- acceptationAdmin: number;
9
+ deadline?: Date | null;
10
+ dateEstimateSigned?: Date | null;
11
+ dateSendToClient?: Date | null;
12
+ dateInvoice?: Date | null;
13
+ datePayment?: Date | null;
14
+ dateTransmission?: Date | null;
15
+ idGedFile?: number | null;
16
+ idCollaborater?: number | null;
17
+ idUser?: number | null;
18
+ idPaymentExpectation?: number | null;
19
+ description?: string | null;
20
+ note?: string | null;
21
+ forOtherMission?: string | null;
22
+ statePrestationJuridique?: number | null;
23
+ acceptationAdmin: AcceptationAdmin;
23
24
  createdAt?: Date | null;
24
25
  updatedAt?: Date | null;
25
26
  deletedAt?: Date | null;
26
- prestationUser: IUser;
27
- prestationCollaborater: IUser;
28
- prestationPaymentExpectation: IPaymentExpectation;
29
- prestationGedFile: IGedFile;
30
- prestation: IPrestation;
27
+ prestationUser?: IUser;
28
+ prestationCollaborater?: IUser;
29
+ prestationPaymentExpectation?: IPaymentExpectation;
30
+ prestationGedFile?: IGedFile;
31
+ prestation?: IPrestation;
31
32
  }
32
33
  //# sourceMappingURL=IPrestationComplementary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IPrestationComplementary.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IPrestationComplementary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,kBAAkB,EAAE,IAAI,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,cAAc,EAAE,KAAK,CAAC;IACtB,sBAAsB,EAAE,KAAK,CAAC;IAC9B,4BAA4B,EAAE,mBAAmB,CAAC;IAClD,iBAAiB,EAAE,QAAQ,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC;CACzB"}
1
+ {"version":3,"file":"IPrestationComplementary.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IPrestationComplementary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,WAAW,wBAAwB;IACvC,E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"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { IGedFile } from './IGedFile';\nimport { IPrestation } from './IPrestation';\n\n// prestationsCompl\nexport interface IPrestationComplementary {\n id?: number;\n generateLink: boolean;\n deadline: Date | null;\n dateEstimateSigned: Date | null;\n dateSendToClient: Date | null;\n dateInvoice: Date | null;\n datePayment: Date | null;\n dateTransmission: Date | null;\n idGedFile: number | null;\n idCollaborater: number | null;\n idUser: number | null;\n idPaymentExpectation: number | null;\n description: string | null;\n note: string | null;\n forOtherMission: string | null;\n statePrestationJuridique: number | null;\n acceptationAdmin: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n prestationUser: IUser;\n prestationCollaborater: IUser;\n prestationPaymentExpectation: IPaymentExpectation;\n prestationGedFile: IGedFile;\n prestation: IPrestation;\n}\n"]}
1
+ {"version":3,"file":"IPrestationComplementary.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IPrestationComplementary.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { IGedFile } from './IGedFile';\nimport { IPrestation } from './IPrestation';\nimport { AcceptationAdmin } from '../../Enum/AdditionnalSells';\n\n// prestationsCompl\nexport interface IPrestationComplementary {\n id?: number;\n generateLink: boolean;\n deadline?: Date | null;\n dateEstimateSigned?: Date | null;\n dateSendToClient?: Date | null;\n dateInvoice?: Date | null;\n datePayment?: Date | null;\n dateTransmission?: Date | null;\n idGedFile?: number | null;\n idCollaborater?: number | null;\n idUser?: number | null;\n idPaymentExpectation?: number | null;\n description?: string | null;\n note?: string | null;\n forOtherMission?: string | null;\n statePrestationJuridique?: number | null;\n acceptationAdmin: AcceptationAdmin;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n prestationUser?: IUser;\n prestationCollaborater?: IUser;\n prestationPaymentExpectation?: IPaymentExpectation;\n prestationGedFile?: IGedFile;\n prestation?: IPrestation;\n}\n"]}
@@ -2,6 +2,5 @@ import { ReadCommercialDocumentTemplate } from '../../types/Interface/api/commer
2
2
  import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
3
3
  import { CreateInvoiceDocument, CreateMailHeader, CreatePreSaleDocument, ReadCommercialMailTemplate } from '../../types';
4
4
  export declare function generateCommercialDocument(idEstimateInvoiceType: EstimateInvoiceType, payload: CreateInvoiceDocument | CreatePreSaleDocument, shouldHideBrandName?: boolean, nodeEnv?: string | undefined): ReadCommercialDocumentTemplate;
5
- export declare function generateAdvanceDocument(payload: CreateInvoiceDocument, shouldHideBrandName?: boolean, nodeEnv?: string | undefined): ReadCommercialDocumentTemplate;
6
5
  export declare function generateMailHeader(params: CreateMailHeader, shouldHideBrandName?: boolean, nodeEnv?: string | undefined): ReadCommercialMailTemplate;
7
6
  //# sourceMappingURL=document.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAuB,MAAM,qDAAqD,CAAC;AAI1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EACL,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,0BAA0B,EAC3F,MAAM,aAAa,CAAC;AAgBrB,wBAAgB,0BAA0B,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,8BAA8B,CAyFnP;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,8BAA8B,CA0F5K;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,0BAA0B,CAuB7J"}
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../ts/utils/commercialManagement/document.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAuB,MAAM,qDAAqD,CAAC;AAI1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAOvE,OAAO,EACL,qBAAqB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,0BAA0B,EAC3F,MAAM,aAAa,CAAC;AAgBrB,wBAAgB,0BAA0B,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,8BAA8B,CAyFnP;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,EAAE,mBAAmB,UAAQ,EAAE,OAAO,GAAE,MAAM,GAAG,SAAqB,GAAG,0BAA0B,CAuB7J"}
@@ -1,6 +1,6 @@
1
1
  import { orderBy as _orderBy, groupBy as _groupBy, sumBy as _sumBy, uniq as _uniq, } from 'lodash';
2
2
  import * as dayjs from 'dayjs';
3
- import { AccountingCategoryList, FontIds, fontList, VatMarginCategyList, } from '../../types/Enum/CommercialManagement';
3
+ import { AccountingCategoryList, FontIds, fontList, } from '../../types/Enum/CommercialManagement';
4
4
  import { EstimateInvoiceType } from '../../types/Enum/EstimateInvoice';
5
5
  import { Vat } from '../../types/Enum/Vat';
6
6
  import { integerToFormattedAmountString, integerToFormattedAmountObject } from '../amount';
@@ -92,81 +92,6 @@ export function generateCommercialDocument(idEstimateInvoiceType, payload, shoul
92
92
  data,
93
93
  };
94
94
  }
95
- export function generateAdvanceDocument(payload, shouldHideBrandName = false, nodeEnv = undefined) {
96
- if (!payload.deposit)
97
- throw new Error('Aucun acompte défini');
98
- const data = {
99
- ...payload,
100
- title: payload.title ?? null,
101
- paymentLink: payload.paymentLink ?? '#',
102
- idEstimateInvoiceType: EstimateInvoiceType.ACOMPTE,
103
- phoneContact: payload.settings?.phoneContact ?? null,
104
- products: [],
105
- vats: [],
106
- totalTaxExcluded: payload.deposit,
107
- totalTaxIncluded: payload.deposit,
108
- totalTaxAndDiscountIncluded: payload.deposit,
109
- generalDiscountFormatted: null,
110
- depositFormatted: integerToFormattedAmountString(payload.deposit),
111
- totalTaxExcludedFormatted: integerToFormattedAmountString(payload.deposit),
112
- totalTaxIncludedFormatted: integerToFormattedAmountString(payload.deposit),
113
- totalTaxAndDiscountIncludedFormatted: integerToFormattedAmountString(payload.deposit),
114
- totalVatAmountFormatted: integerToFormattedAmountString(0),
115
- font: {
116
- id: payload.settings?.idFont ?? FontIds.CIRCULAR_STD,
117
- name: fontList.find((f) => f.id === payload.settings?.idFont)?.name
118
- ?? fontList[0].name,
119
- url: fontList.find((f) => f.id === payload.settings?.idFont)?.link
120
- ?? fontList[0].link,
121
- },
122
- capitalFormatted: payload.capital
123
- ? `${payload.capital}`
124
- .split('')
125
- .reduceRight((acc, char, i, { length }) => `${char}${(length - (i + 1)) % 3 === 0 ? ' ' : ''}${acc}`, '')
126
- .trim()
127
- : null,
128
- dueDateFormatted: payload.dueDate
129
- ? dayjs(payload.dueDate).format('DD/MM/YYYY')
130
- : null,
131
- expirationDateFormatted: payload.expirationDate
132
- ? dayjs(payload.expirationDate).format('DD/MM/YYYY')
133
- : null,
134
- emissionDateFormatted: payload.emissionDate
135
- ? dayjs(payload.emissionDate).format('DD/MM/YYYY')
136
- : null,
137
- shouldDisplayDiscountColumn: false,
138
- disableVat: true,
139
- // @ts-ignore
140
- marginVats: _uniq((payload.assetMarginVatIds ?? []).map((m) => VatMarginCategyList.find((c) => c.id === m)?.label ?? null)),
141
- accountingCategoryFormatted: AccountingCategoryList.find((a) => a.id === payload.accountingCategory)
142
- ?.label ?? null,
143
- // @ts-ignore
144
- brandColors: getBrandConfig({ objectWaited: 'colors', nodeEnv }),
145
- brandName: `${getBrandConfig({ objectWaited: 'name', nodeEnv })}`,
146
- shouldHideBrandName,
147
- };
148
- const commonTemplate = new CommercialDocumentCommonHTML();
149
- return {
150
- header: ejs?.render(commonTemplate.header, data),
151
- body: ejs?.render(bodyTemplate, {
152
- ...data,
153
- comment: data.comment && typeof data.comment === 'string'
154
- ? data.comment?.replace(/\n/g, '<br/>')
155
- : null,
156
- products: data.products.map((p) => ({
157
- ...p,
158
- comment: p.comment && typeof p.comment === 'string'
159
- ? p.comment?.replace(/\n/g, '<br/>')
160
- : null,
161
- })),
162
- }),
163
- footer: ejs?.render(commonTemplate.footer, {
164
- ...data,
165
- freeText: payload?.settings?.freeInvoiceText ?? null,
166
- }),
167
- data,
168
- };
169
- }
170
95
  export function generateMailHeader(params, shouldHideBrandName = false, nodeEnv = undefined) {
171
96
  dayjs.locale('fr');
172
97
  const data = {