@silexpert/core 1.1.182 → 1.1.184

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 (97) hide show
  1. package/dist/cjs/types/Enum/BrandStatutsExpress.js +1 -1
  2. package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  3. package/dist/cjs/types/Enum/CityOfGreffe.d.ts +327 -0
  4. package/dist/cjs/types/Enum/CityOfGreffe.d.ts.map +1 -0
  5. package/dist/cjs/types/Enum/CityOfGreffe.js +649 -0
  6. package/dist/cjs/types/Enum/CityOfGreffe.js.map +1 -0
  7. package/dist/cjs/types/Enum/FollowList.d.ts +5 -0
  8. package/dist/cjs/types/Enum/FollowList.d.ts.map +1 -1
  9. package/dist/cjs/types/Enum/FollowList.js +5 -0
  10. package/dist/cjs/types/Enum/FollowList.js.map +1 -1
  11. package/dist/cjs/types/Enum/PriceGridClementine.d.ts +29 -2
  12. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/PriceGridClementine.js +116 -86
  14. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  15. package/dist/cjs/types/Enum/Supervision.d.ts +2 -1
  16. package/dist/cjs/types/Enum/Supervision.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/Supervision.js +7 -0
  18. package/dist/cjs/types/Enum/Supervision.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts +6 -0
  20. package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.js.map +1 -1
  22. package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts +1 -0
  23. package/dist/cjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/models/ICommercialOffer.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/ISociety.d.ts +2 -0
  26. package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
  28. package/dist/cjs/types/index.d.ts +1 -0
  29. package/dist/cjs/types/index.d.ts.map +1 -1
  30. package/dist/cjs/types/index.js +1 -0
  31. package/dist/cjs/types/index.js.map +1 -1
  32. package/dist/cjs/utils/commercialOffer.d.ts +1 -1
  33. package/dist/cjs/utils/commercialOffer.d.ts.map +1 -1
  34. package/dist/cjs/utils/commercialOffer.js +2 -2
  35. package/dist/cjs/utils/commercialOffer.js.map +1 -1
  36. package/dist/cjs/utils/email/templates/signature.d.ts.map +1 -1
  37. package/dist/cjs/utils/email/templates/signature.js +5 -3
  38. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  39. package/dist/cjs/utils/prestation.d.ts +2 -1
  40. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  41. package/dist/cjs/utils/prestation.js +9 -1
  42. package/dist/cjs/utils/prestation.js.map +1 -1
  43. package/dist/mjs/types/Enum/BrandStatutsExpress.js +1 -1
  44. package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  45. package/dist/mjs/types/Enum/CityOfGreffe.d.ts +327 -0
  46. package/dist/mjs/types/Enum/CityOfGreffe.d.ts.map +1 -0
  47. package/dist/mjs/types/Enum/CityOfGreffe.js +646 -0
  48. package/dist/mjs/types/Enum/CityOfGreffe.js.map +1 -0
  49. package/dist/mjs/types/Enum/FollowList.d.ts +5 -0
  50. package/dist/mjs/types/Enum/FollowList.d.ts.map +1 -1
  51. package/dist/mjs/types/Enum/FollowList.js +5 -0
  52. package/dist/mjs/types/Enum/FollowList.js.map +1 -1
  53. package/dist/mjs/types/Enum/PriceGridClementine.d.ts +29 -2
  54. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  55. package/dist/mjs/types/Enum/PriceGridClementine.js +116 -86
  56. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  57. package/dist/mjs/types/Enum/Supervision.d.ts +2 -1
  58. package/dist/mjs/types/Enum/Supervision.d.ts.map +1 -1
  59. package/dist/mjs/types/Enum/Supervision.js +7 -0
  60. package/dist/mjs/types/Enum/Supervision.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts +6 -0
  62. package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.js.map +1 -1
  64. package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts +1 -0
  65. package/dist/mjs/types/Interface/models/ICommercialOffer.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/models/ICommercialOffer.js.map +1 -1
  67. package/dist/mjs/types/Interface/models/ISociety.d.ts +2 -0
  68. package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
  69. package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
  70. package/dist/mjs/types/index.d.ts +1 -0
  71. package/dist/mjs/types/index.d.ts.map +1 -1
  72. package/dist/mjs/types/index.js +1 -0
  73. package/dist/mjs/types/index.js.map +1 -1
  74. package/dist/mjs/utils/commercialOffer.d.ts +1 -1
  75. package/dist/mjs/utils/commercialOffer.d.ts.map +1 -1
  76. package/dist/mjs/utils/commercialOffer.js +2 -2
  77. package/dist/mjs/utils/commercialOffer.js.map +1 -1
  78. package/dist/mjs/utils/email/templates/signature.d.ts.map +1 -1
  79. package/dist/mjs/utils/email/templates/signature.js +5 -3
  80. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  81. package/dist/mjs/utils/prestation.d.ts +2 -1
  82. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  83. package/dist/mjs/utils/prestation.js +8 -1
  84. package/dist/mjs/utils/prestation.js.map +1 -1
  85. package/package.json +1 -1
  86. package/ts/types/Enum/BrandStatutsExpress.ts +1 -1
  87. package/ts/types/Enum/CityOfGreffe.ts +645 -0
  88. package/ts/types/Enum/FollowList.ts +5 -0
  89. package/ts/types/Enum/PriceGridClementine.ts +32 -2
  90. package/ts/types/Enum/Supervision.ts +7 -0
  91. package/ts/types/Interface/api/kilometricAllowance/ReadKilometricAllowance.ts +7 -0
  92. package/ts/types/Interface/models/ICommercialOffer.ts +1 -0
  93. package/ts/types/Interface/models/ISociety.ts +2 -0
  94. package/ts/types/index.ts +1 -0
  95. package/ts/utils/commercialOffer.ts +2 -2
  96. package/ts/utils/email/templates/signature.ts +5 -3
  97. package/ts/utils/prestation.ts +9 -1
@@ -8,6 +8,7 @@ export enum Supervision {
8
8
  TO_REVIEW = 10,
9
9
  SUPERVISION_WAITING = 11,
10
10
  ESTABLISH_REFUSED = 12,
11
+ WITHOUT_ATTESTATION = 13,
11
12
  }
12
13
 
13
14
  export const SupervisionStateList = [
@@ -65,4 +66,10 @@ export const SupervisionStateList = [
65
66
  color: 'orange darken-1',
66
67
  textColor: 'orange--text text--darken-1',
67
68
  },
69
+ {
70
+ id: Supervision.WITHOUT_ATTESTATION,
71
+ label: 'Sans attestation',
72
+ color: 'orange lighten-1',
73
+ textColor: 'orange--text text--lighten-1',
74
+ },
68
75
  ];
@@ -1,7 +1,14 @@
1
1
  import { ISocietyVehicle } from '../../models/ISocietyVehicle';
2
2
 
3
+ export type ReadKilometricAllowanceByVehicleInfoPerYear = {
4
+ year: string;
5
+ amount: number;
6
+ kilometers: number;
7
+ };
8
+
3
9
  export type ReadKilometricAllowanceByVehicle = {
4
10
  vehicle: ISocietyVehicle;
5
11
  amount: number;
6
12
  kilometers: number;
13
+ informationsPerYear: ReadKilometricAllowanceByVehicleInfoPerYear[]
7
14
  };
@@ -3,6 +3,7 @@ import { IExercicePrestationOffer } from './IExercicePrestationOffer';
3
3
  export interface ICommercialOffer {
4
4
  id?: number,
5
5
  idCommercialOfferType: number,
6
+ brand: any,
6
7
  title: string,
7
8
  label: string,
8
9
  amount?: number,
@@ -56,6 +56,7 @@ import {
56
56
  import { IBrandType } from './IBrandType';
57
57
  import { IFile } from './IFile';
58
58
  import { IBusinessSector } from './IBusinessSector';
59
+ import { CityOfGreffe } from '../../Enum/CityOfGreffe';
59
60
  // societies
60
61
  export interface ISociety {
61
62
  id?: number;
@@ -74,6 +75,7 @@ export interface ISociety {
74
75
  city?: string | null;
75
76
  zipCode?: string | null;
76
77
  address?: string | null;
78
+ idCityOfGreffe?: CityOfGreffe | null;
77
79
  siret?: string | null;
78
80
  diaCode?: string | null;
79
81
  socialCapital?: string | null;
package/ts/types/index.ts CHANGED
@@ -353,6 +353,7 @@ export * from './Enum/AbsenceType';
353
353
  export * from './Enum/Role';
354
354
  export * from './Enum/RoleDetail';
355
355
  export * from './Enum/MaritalStatus';
356
+ export * from './Enum/CityOfGreffe';
356
357
  export * from './Enum/StatutsSection';
357
358
  export * from './Enum/PrestationOption';
358
359
  export * from './Enum/TimeCounterType';
@@ -27,8 +27,8 @@ const disableCommercialOffer = (idCurrentOffer: number, idOfferSelected: number[
27
27
  else return false;
28
28
  };
29
29
 
30
- const getCommercialOfferList = (idCommercialOfferType: number, offerList: ICommercialOffer[]): ICommercialOffer[] => {
31
- const commercialOfferList: ICommercialOffer[] = offerList.filter((offer) => offer.idCommercialOfferType === idCommercialOfferType);
30
+ const getCommercialOfferList = (idCommercialOfferType: number, societyBrand: number, offerList: ICommercialOffer[]): ICommercialOffer[] => {
31
+ const commercialOfferList: ICommercialOffer[] = offerList.filter((offer) => offer.idCommercialOfferType === idCommercialOfferType && offer.brand.includes(societyBrand));
32
32
  return commercialOfferList.filter(offer => dayjs().isBetween(dayjs(offer.startDate), dayjs(offer.endDate), 'day', '[]'));
33
33
  };
34
34
 
@@ -177,9 +177,11 @@ ${logoClementine}
177
177
  src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png"
178
178
  alt="Initiative Smile your planet" height="36"></a>
179
179
  <% if(user.calendlyUrl) { %>
180
- <a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank"><img
181
- src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel.png"
182
- alt="Demande de rdv téléphonique"></a>
180
+ <a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank">
181
+ <img
182
+ src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= brandName === 'Pourcentage' ? '_pourcentage' : '' %>.png"
183
+ alt="Demande de rdv téléphonique">
184
+ </a>
183
185
  <% } %>
184
186
  </p>
185
187
  </td>
@@ -84,6 +84,8 @@ const isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.
84
84
 
85
85
  const isCreation = (idPrestationList: number[]):boolean => !!intersection(idPrestationList, [PrestationType.CREATION_SOCIETE, PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE]).length;
86
86
 
87
+ const isFromStatutsExpress = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE].includes(idPL)).length;
88
+
87
89
  const isExpress = (idPrestationList: number):boolean => {
88
90
  const prestationDetailValues = Object.values(PrestationDetail) as any;
89
91
  const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);
@@ -220,6 +222,12 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
220
222
  PrestationType.GESTION_JURIDIQUE,
221
223
  PrestationType.COMPTA_PRO_COMPTASTART,
222
224
  PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS,
225
+ PrestationType.COMPTA_EI_KLEMS,
226
+ PrestationType.COMPTA_EI_KLEMS_EXPRESS,
227
+ PrestationType.COMPTA_MICRO_KLEMS,
228
+ PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
229
+ PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
230
+ PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
223
231
  ].includes(idPrestationList)
224
232
  ) {
225
233
  totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
@@ -275,5 +283,5 @@ const isAbleToUpdatePrice = (idTypeBrand: number, idPrestationList: number, turn
275
283
  };
276
284
 
277
285
  export {
278
- isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice,
286
+ isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isFromStatutsExpress, isExpress, calculateScoringOfPrestation, calculatePrestationPrice, getPrestationOptions, isAbleToUpdatePrice,
279
287
  };