@silexpert/core 1.3.217 → 1.3.219

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 (33) hide show
  1. package/dist/cjs/api/resources/Exercice.d.ts +7 -1
  2. package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Exercice.js +10 -0
  4. package/dist/cjs/api/resources/Exercice.js.map +1 -1
  5. package/dist/cjs/types/Enum/RoleDetail.d.ts +5 -0
  6. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  7. package/dist/cjs/types/Enum/RoleDetail.js +6 -1
  8. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  9. package/dist/cjs/types/Interface/models/IExercicePrestation.d.ts +1 -0
  10. package/dist/cjs/types/Interface/models/IExercicePrestation.d.ts.map +1 -1
  11. package/dist/cjs/types/Interface/models/IExercicePrestation.js.map +1 -1
  12. package/dist/cjs/utils/checkup.d.ts +1 -1
  13. package/dist/cjs/utils/checkup.js +30 -30
  14. package/dist/cjs/utils/checkup.js.map +1 -1
  15. package/dist/mjs/api/resources/Exercice.d.ts +7 -1
  16. package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
  17. package/dist/mjs/api/resources/Exercice.js +10 -0
  18. package/dist/mjs/api/resources/Exercice.js.map +1 -1
  19. package/dist/mjs/types/Enum/RoleDetail.d.ts +5 -0
  20. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  21. package/dist/mjs/types/Enum/RoleDetail.js +6 -1
  22. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  23. package/dist/mjs/types/Interface/models/IExercicePrestation.d.ts +1 -0
  24. package/dist/mjs/types/Interface/models/IExercicePrestation.d.ts.map +1 -1
  25. package/dist/mjs/types/Interface/models/IExercicePrestation.js.map +1 -1
  26. package/dist/mjs/utils/checkup.d.ts +1 -1
  27. package/dist/mjs/utils/checkup.js +2 -2
  28. package/dist/mjs/utils/checkup.js.map +1 -1
  29. package/package.json +1 -1
  30. package/ts/api/resources/Exercice.ts +13 -0
  31. package/ts/types/Enum/RoleDetail.ts +6 -1
  32. package/ts/types/Interface/models/IExercicePrestation.ts +1 -0
  33. package/ts/utils/checkup.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.217",
3
+ "version": "1.3.219",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -7,6 +7,7 @@ import {
7
7
  UpdateOrCreateAdjustment,
8
8
  CreateProjectExercice,
9
9
  QuerySocietyExercice,
10
+ IGedFile,
10
11
  } from '../../types';
11
12
  import { Resource } from '../Resource';
12
13
 
@@ -71,4 +72,16 @@ export class Exercice extends Resource {
71
72
  isFeasible(idExercice: number): Promise<boolean> {
72
73
  return this.axios.$get(`exercices/${idExercice}/is-feasible`);
73
74
  }
75
+
76
+ checkProjectAcceptation(idSociety: number): Promise<IGedFile[]> {
77
+ return this.axios.$get(`/societies/${idSociety}/project-acceptation`);
78
+ }
79
+
80
+ /**
81
+ * @description This endpoint is only to send the preview project email for CADOR balanceSheet (on clementinier), the accountant will upload the document from cador directly in the GED and the project will be send to the client with the email template in brevo
82
+ * For the other clients, the preview project will be send with the endpoint generateProject
83
+ */
84
+ sendProjectAcceptationEmail(idSociety: number, idExercice: number): Promise<void> {
85
+ return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/send-cador-preview-mail`);
86
+ }
74
87
  }
@@ -305,8 +305,13 @@ export const RoleDetail = {
305
305
  name: 'SDR',
306
306
  colorPrimary: '#8765D0',
307
307
  colorSecondary: '#DED7F6',
308
- isService: false,
308
+ isService: true,
309
309
  subRole: false,
310
+ phoneNumber: '+33755537518',
311
+ phoneNumberPourcentage: '+33756796318',
312
+ phoneNumberStatutsExpress: '+33756796157',
313
+ isInWebmail: true,
314
+ cnVpn: 'COMMERCIAL',
310
315
  isGrade: false,
311
316
  },
312
317
  FORECAST_MANAGER: {
@@ -13,6 +13,7 @@ export interface IExercicePrestation {
13
13
  monthOffers: number | null;
14
14
  amountOffer: number | null;
15
15
  isInCA: boolean;
16
+ isYearlyPayment: boolean;
16
17
  countExpressMonthlyPayment: number | null;
17
18
  idBalanceSheet: number | null;
18
19
  createdAt?: Date | null;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-return */
2
2
 
3
- import { SelectYesNoStatementBool } from '../types/Enum/Constants.js';
4
- import { QualityList } from '../types/Enum/Quality.js';
3
+ import { SelectYesNoStatementBool } from '../types/Enum/Constants';
4
+ import { QualityList } from '../types/Enum/Quality';
5
5
  import * as dayjs from 'dayjs';
6
6
 
7
7
  export const setRangeItems = (maxRange: number) => {