@silexpert/core 0.4.254 → 0.4.255

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/es/api/resources/CalendarEvent.d.ts +2 -1
  2. package/es/api/resources/CalendarEvent.d.ts.map +1 -1
  3. package/es/api/resources/CalendarEvent.js +3 -0
  4. package/es/api/resources/CalendarEvent.js.map +1 -1
  5. package/es/types/Enum/BrandPourcentage.js +1 -1
  6. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  7. package/es/types/Interface/api/calendarEvent/verifyCalendarEvent.d.ts +6 -0
  8. package/es/types/Interface/api/calendarEvent/verifyCalendarEvent.d.ts.map +1 -0
  9. package/es/types/Interface/api/calendarEvent/verifyCalendarEvent.js +2 -0
  10. package/es/types/Interface/api/calendarEvent/verifyCalendarEvent.js.map +1 -0
  11. package/es/types/index.d.ts +1 -0
  12. package/es/types/index.d.ts.map +1 -1
  13. package/es/types/index.js +1 -0
  14. package/es/types/index.js.map +1 -1
  15. package/es/utils/date.d.ts.map +1 -1
  16. package/es/utils/date.js +36 -0
  17. package/es/utils/date.js.map +1 -1
  18. package/js/api/resources/CalendarEvent.js +4 -0
  19. package/js/api/resources/CalendarEvent.js.map +1 -1
  20. package/js/types/Enum/BrandPourcentage.js +1 -1
  21. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  22. package/js/types/Interface/api/calendarEvent/verifyCalendarEvent.js +6 -0
  23. package/js/types/Interface/api/calendarEvent/verifyCalendarEvent.js.map +1 -0
  24. package/js/types/index.js +12 -0
  25. package/js/types/index.js.map +1 -1
  26. package/js/utils/date.js +34 -0
  27. package/js/utils/date.js.map +1 -1
  28. package/package.json +1 -1
  29. package/ts/api/resources/CalendarEvent.ts +5 -1
  30. package/ts/types/Enum/BrandPourcentage.ts +1 -1
  31. package/ts/types/Interface/api/calendarEvent/verifyCalendarEvent.ts +6 -0
  32. package/ts/types/index.ts +1 -0
  33. package/ts/utils/date.ts +34 -0
package/es/utils/date.js CHANGED
@@ -15,6 +15,42 @@ export function putIntervalBetweenOtherInterval(customPayload, listHours) {
15
15
  res.dateStart = !((dateToCompareStart - dateStart) >= 0 && (dateToCompareStart - dateEnd) <= 0) ? new Date(dateStart) : new Date(dateToCompareStart);
16
16
  res.dateEnd = !((dateToCompareEnd - dateStart) >= 0 && (dateToCompareEnd - dateEnd) <= 0) ? new Date(dateEnd) : new Date(dateToCompareEnd);
17
17
  }
18
+ else if (!(hoursOfPeriod === null || hoursOfPeriod === void 0 ? void 0 : hoursOfPeriod.length)) {
19
+ const hoursDiff = [];
20
+ // parcours de la liste des heures de connexions
21
+ for (let i = 0; i < listHours.length; i += 1) {
22
+ // ajout de la différence entre la date de début de notre événement et la date de début de notre période
23
+ hoursDiff.push({
24
+ id: i,
25
+ start: true,
26
+ end: false,
27
+ diff: Math.abs(dateToCompareStart - new Date(`${textDate} ${listHours[i].startTime}`).getTime()),
28
+ });
29
+ // ajout de la différence entre la date de début de notre événement et la date de fin de notre période
30
+ hoursDiff.push({
31
+ id: i,
32
+ start: false,
33
+ end: true,
34
+ diff: Math.abs(dateToCompareStart - new Date(`${textDate} ${listHours[i].endTime}`).getTime()),
35
+ });
36
+ }
37
+ // tri de la liste par différence
38
+ hoursDiff.sort((a, b) => a.diff - b.diff);
39
+ // si proche de la date de début :
40
+ // date de début event = date de début période
41
+ // date de fin event = date de début période + 1 heure
42
+ if (hoursDiff[0].start) {
43
+ res.dateStart = new Date(`${textDate} ${listHours[hoursDiff[0].id].startTime}`);
44
+ res.dateEnd = new Date(new Date(`${textDate} ${listHours[hoursDiff[0].id].startTime}`).getTime() + 3600000);
45
+ // si proche de la date de fin :
46
+ // date de début event = date de fin période - 1 heure
47
+ // date de fin event = date de fin période
48
+ }
49
+ else if (hoursDiff[0].end) {
50
+ res.dateStart = new Date(new Date(`${textDate} ${listHours[hoursDiff[0].id].endTime}`).getTime() - 3600000);
51
+ res.dateEnd = new Date(`${textDate} ${listHours[hoursDi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C,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAE1O,IAAI,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,IAAG,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;YACvF,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,GAAG,QAAQ,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;YAClF,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,GAAG,QAAQ,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;YAE9E,0IAA0I;YAC1I,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,kBAAkB,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACrJ,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAC5I;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["/**\n * @param dateStart Date format YYYY-MM-DD HH:mm:ss\n * @param dateEnd Date format YYYY-MM-DD HH:mm:ss\n * @returns object of time (09:00-10:00, 12:00-13:00 et 14:00-17:00)\n */\nimport {\n DateInterval, TimeInterval,\n} from '../types';\n\n// TODO:UT\nexport function putIntervalBetweenOtherInterval(customPayload: DateInterval, listHours:TimeInterval[]):DateInterval {\n const res:DateInterval = { ...customPayload };\n if (listHours.length > 0 && customPayload?.dateStart && customPayload?.dateEnd) {\n const dateToCompareStart = new Date(customPayload.dateStart).getTime();\n const dateToCompareEnd = new Date(customPayload.dateEnd).getTime();\n const hoursObject = listHours;\n const textDate = `${new Date(dateToCompareStart).getFullYear()}-${new Date(dateToCompareStart).getMonth() + 1}-${new Date(dateToCompareStart).getDate()}`;\n\n // on cherche la bonne specialhour pour comparer les horaires\n const hoursOfPeriod = hoursObject.filter((h) => (h.endTime && (dateToCompareStart - new Date(`${textDate} ${h.endTime}`).getTime() <= 0)) && (h.startTime && (dateToCompareEnd - new Date(`${textDate} ${h.startTime}`).getTime() >= 0)));\n\n if (hoursOfPeriod?.length > 0 && hoursOfPeriod[0].startTime && hoursOfPeriod[0].endTime) {\n const dateStart = new Date(`${textDate} ${hoursOfPeriod[0].startTime}`).getTime();\n const dateEnd = new Date(`${textDate} ${hoursOfPeriod[0].endTime}`).getTime();\n\n // on check si les horaires de l'event sont dans les horaires du collab sinon on les fait commencer à l'heure à laquelle il s'est connecté\n res.dateStart = !((dateToCompareStart - dateStart) >= 0 && (dateToCompareStart - dateEnd) <= 0) ? new Date(dateStart) : new Date(dateToCompareStart);\n res.dateEnd = !((dateToCompareEnd - dateStart) >= 0 && (dateToCompareEnd - dateEnd) <= 0) ? new Date(dateEnd) : new Date(dateToCompareEnd);\n }\n }\n return res;\n}"]}
1
+ {"version":3,"file":"date.js","sourceRoot":"","sources":["../../ts/utils/date.ts"],"names":[],"mappings":"AASA,UAAU;AACV,MAAM,UAAU,+BAA+B,CAAC,aAA2B,EAAE,SAAwB;IACnG,MAAM,GAAG,qBAAqB,aAAa,CAAE,CAAC;IAC9C,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,SAAS,CAAA,KAAI,aAAa,aAAb,aAAa,uBAAb,aA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AAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;aAC7E;SACF;KACF;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["/**\n * @param dateStart Date format YYYY-MM-DD HH:mm:ss\n * @param dateEnd Date format YYYY-MM-DD HH:mm:ss\n * @returns object of time (09:00-10:00, 12:00-13:00 et 14:00-17:00)\n */\nimport {\n DateInterval, TimeInterval,\n} from '../types';\n\n// TODO:UT\nexport function putIntervalBetweenOtherInterval(customPayload: DateInterval, listHours:TimeInterval[]):DateInterval {\n const res:DateInterval = { ...customPayload };\n if (listHours.length > 0 && customPayload?.dateStart && customPayload?.dateEnd) {\n const dateToCompareStart = new Date(customPayload.dateStart).getTime();\n const dateToCompareEnd = new Date(customPayload.dateEnd).getTime();\n const hoursObject = listHours;\n const textDate = `${new Date(dateToCompareStart).getFullYear()}-${new Date(dateToCompareStart).getMonth() + 1}-${new Date(dateToCompareStart).getDate()}`;\n\n // on cherche la bonne specialhour pour comparer les horaires\n const hoursOfPeriod = hoursObject.filter((h) => (h.endTime && (dateToCompareStart - new Date(`${textDate} ${h.endTime}`).getTime() <= 0)) && (h.startTime && (dateToCompareEnd - new Date(`${textDate} ${h.startTime}`).getTime() >= 0)));\n\n if (hoursOfPeriod?.length > 0 && hoursOfPeriod[0].startTime && hoursOfPeriod[0].endTime) {\n const dateStart = new Date(`${textDate} ${hoursOfPeriod[0].startTime}`).getTime();\n const dateEnd = new Date(`${textDate} ${hoursOfPeriod[0].endTime}`).getTime();\n\n // on check si les horaires de l'event sont dans les horaires du collab sinon on les fait commencer à l'heure à laquelle il s'est connecté\n res.dateStart = !((dateToCompareStart - dateStart) >= 0 && (dateToCompareStart - dateEnd) <= 0) ? new Date(dateStart) : new Date(dateToCompareStart);\n res.dateEnd = !((dateToCompareEnd - dateStart) >= 0 && (dateToCompareEnd - dateEnd) <= 0) ? new Date(dateEnd) : new Date(dateToCompareEnd);\n } else if (!hoursOfPeriod?.length) {\n const hoursDiff = [];\n // parcours de la liste des heures de connexions\n for (let i = 0; i < listHours.length; i += 1) {\n // ajout de la différence entre la date de début de notre événement et la date de début de notre période\n hoursDiff.push({\n id: i,\n start: true,\n end: false,\n diff: Math.abs(dateToCompareStart - new Date(`${textDate} ${listHours[i].startTime}`).getTime()),\n });\n // ajout de la différence entre la date de début de notre événement et la date de fin de notre période\n hoursDiff.push({\n id: i,\n start: false,\n end: true,\n diff: Math.abs(dateToCompareStart - new Date(`${textDate} ${listHours[i].endTime}`).getTime()),\n });\n }\n // tri de la liste par différence\n hoursDiff.sort((a, b) => a.diff - b.diff);\n // si proche de la date de début :\n // date de début event = date de début période\n // date de fin event = date de début période + 1 heure\n if (hoursDiff[0].start) {\n res.dateStart = new Date(`${textDate} ${listHours[hoursDiff[0].id].startTime}`);\n res.dateEnd = new Date(new Date(`${textDate} ${listHours[hoursDiff[0].id].startTime}`).getTime() + 3600000);\n // si proche de la date de fin :\n // date de début event = date de fin période - 1 heure\n // date de fin event = date de fin période\n } else if (hoursDiff[0].end) {\n res.dateStart = new Date(new Date(`${textDate} ${listHours[hoursDiff[0].id].endTime}`).getTime() - 3600000);\n res.dateEnd = new Date(`${textDate} ${listHours[hoursDiff[0].id].endTime}`);\n }\n }\n }\n return res;\n}"]}
@@ -12,6 +12,10 @@ class CalendarEvent extends _Resource.Resource {
12
12
  return this.axios.post('/calendar-events', payload);
13
13
  }
14
14
 
15
+ verify(payload) {
16
+ return this.axios.post('/calendar-events/verify', payload);
17
+ }
18
+
15
19
  get(id, params) {
16
20
  return this.axios.get(`/calendar-events/${id}`, {
17
21
  params
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarEvent.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,MAAM,CAACC,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoCF,OAApC,CAAP;EACD;;EAEDG,GAAG,CAACC,EAAD,EAAaC,MAAb,EAAuC;IACxC,OAAO,KAAKJ,KAAL,CAAWE,GAAX,CAAe,oBAAoBC,EAAE,EAArC,EAAyC;MAAEC;IAAF,CAAzC,CAAP;EACD;;EAEDC,MAAM,CAACD,MAAD,EAA4B;IAChC,OAAO,KAAKJ,KAAL,CAAWE,GAAX,CAAe,sBAAf,EAAuC;MAAEE;IAAF,CAAvC,CAAP;EACD;;EAEDE,MAAM,CAACH,EAAD,EAAaJ,OAAb,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWO,GAAX,CAAe,oBAAoBJ,EAAE,EAArC,EAAyCJ,OAAzC,CAAP;EACD;;EAEDS,MAAM,CAACL,EAAD,EAAW;IACf,OAAO,KAAKH,KAAL,CAAWQ,MAAX,CAAkB,oBAAoBL,EAAE,EAAxC,CAAP;EACD;;AAnBwC;;QAA9BP,a,GAAAA,a","names":["CalendarEvent","Resource","create","payload","axios","post","get","id","params","getAll","update","put","delete"],"sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"sourcesContent":["import {\n CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.post('/calendar-events', payload);\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent> {\n return this.axios.get('/calendar-events/all', { params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.delete(`/calendar-events/${id}`);\n }\n}"]}
1
+ {"version":3,"file":"CalendarEvent.js","mappings":";;;;;;;AAGA;;AAEM,MAAOA,aAAP,SAA6BC,kBAA7B,CAAqC;EACzCC,MAAM,CAACC,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,kBAAhB,EAAoCF,OAApC,CAAP;EACD;;EAEDG,MAAM,CAACH,OAAD,EAAqC;IACzC,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,yBAAhB,EAA2CF,OAA3C,CAAP;EACD;;EAEDI,GAAG,CAACC,EAAD,EAAaC,MAAb,EAAuC;IACxC,OAAO,KAAKL,KAAL,CAAWG,GAAX,CAAe,oBAAoBC,EAAE,EAArC,EAAyC;MAAEC;IAAF,CAAzC,CAAP;EACD;;EAEDC,MAAM,CAACD,MAAD,EAA4B;IAChC,OAAO,KAAKL,KAAL,CAAWG,GAAX,CAAe,sBAAf,EAAuC;MAAEE;IAAF,CAAvC,CAAP;EACD;;EAEDE,MAAM,CAACH,EAAD,EAAaL,OAAb,EAAyC;IAC7C,OAAO,KAAKC,KAAL,CAAWQ,GAAX,CAAe,oBAAoBJ,EAAE,EAArC,EAAyCL,OAAzC,CAAP;EACD;;EAEDU,MAAM,CAACL,EAAD,EAAW;IACf,OAAO,KAAKJ,KAAL,CAAWS,MAAX,CAAkB,oBAAoBL,EAAE,EAAxC,CAAP;EACD;;AAvBwC;;QAA9BR,a,GAAAA,a","names":["CalendarEvent","Resource","create","payload","axios","post","verify","get","id","params","getAll","update","put","delete"],"sourceRoot":"","sources":["../../../ts/api/resources/CalendarEvent.ts"],"sourcesContent":["import {\n CreateCalendarEventForUsers, GetAllCalendarEvent, ICalendarEvent, ICalendarEventUser, QueryCalendarEvent, ReadAllCalendarEvent, UpdateCalendarEvent, VerifyCalendarEvent,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class CalendarEvent extends Resource {\n create(payload: CreateCalendarEventForUsers): Promise<ICalendarEventUser[]> {\n return this.axios.post('/calendar-events', payload);\n }\n\n verify(payload: CreateCalendarEventForUsers): Promise<VerifyCalendarEvent> {\n return this.axios.post('/calendar-events/verify', payload);\n }\n\n get(id: number, params: QueryCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.get(`/calendar-events/${id}`, { params });\n }\n\n getAll(params: GetAllCalendarEvent): Promise<ReadAllCalendarEvent> {\n return this.axios.get('/calendar-events/all', { params });\n }\n\n update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {\n return this.axios.put(`/calendar-events/${id}`, payload);\n }\n\n delete(id: number): Promise<number> {\n return this.axios.delete(`/calendar-events/${id}`);\n }\n}"]}
@@ -49,7 +49,7 @@ const BrandPourcentage = exports.BrandPourcentage = [{
49
49
  statut: 'SAS',
50
50
  zipCode: '54 520'
51
51
  },
52
- idPrestationsListAuthorized: [197, 205],
52
+ idPrestationsListAuthorized: [197, 205, 12],
53
53
  logoUrl: 'logo-pourcentage.svg',
54
54
  miniLogoUrl: 'logo-pourcentage-mini.svg',
55
55
  hiddenPages: [],
@@ -1 +1 @@
1
- {"version":3,"file":"BrandPourcentage.js","mappings":";;;;;AAAO,MAAMA,gBAAgB,WAAhBA,gBAAgB,GAAG,CAC9B;EACEC,WAAW,EAAE,CADf;EAEEC,KAAK,EAAE,2DAFT;EAGEC,MAAM,EAAE,6BAHV;EAIEC,IAAI,EAAE,aAJR;EAKEC,MAAM,EAAE;IACNC,OAAO,EAAE;EADH,CALV;EAQEC,UAAU,EAAE;IACVC,OAAO,EAAE,gBADC;IAEVC,OAAO,EAAE,gBAFC;IAGVC,SAAS,EAAE;EAHD,CARd;EAaEC,SAAS,EAAE;IACTC,aAAa,EAAE,wBADN;IAETC,GAAG,EAAE,wBAFI;IAGTC,OAAO,EAAE,wBAHA;IAITN,OAAO,EAAE,wBAJA;IAKTO,WAAW,EAAE,4BALJ;IAMTC,QAAQ,EAAE,wBAND;IAOTN,SAAS,EAAE,wBAPF;IAQTO,YAAY,EAAE,wBARL;IASTC,GAAG,EAAE,wBATI;IAUTC,OAAO,EAAE,wBAV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jB9B,GAAG,EAAE,OATY;IAUjBS,GAAG,EAAE,aAVY;IAWjBF,KAAK,EAAE,gBAXU;IAYjBwB,WAAW,EAAE,eAZI;IAajBC,KAAK,EAAE;EAbU;AA9DrB,CAD8B,CAAzB","names":["BrandPourcentage","idTypeBrand","urlS3","logoS3","name","colors","primary","listPhones","contact","qualite","juridique","listMails","administratif","app","bonjour","facturation","feedback","informatique","msd","noreply","paiement","rh","social","support","tva","wb","companyInformation","ape","bp","city","montantCapital","nomRaisonSociale","ECName","ECOrderCity","phone","postalAddress","rcs","statut","zipCode","idPrestationsListAuthorized","logoUrl","miniLogoUrl","hiddenPages","recaptchaSecretKey","urlApp","urlApi1","urlApi2","urlExpert","urlClient","bank","IBAN","BIC","Name","Id","internalInvoicing","address","country","siret","vatIntracom","email"],"sourceRoot":"","sources":["../../../ts/types/Enum/BrandPourcentage.ts"],"sourcesContent":["export const BrandPourcentage = [\n {\n idTypeBrand: 1,\n urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',\n logoS3: 'config/pourcentage-logo.png',\n name: 'Pourcentage',\n colors: {\n primary: '#1e6f5c',\n },\n listPhones: {\n contact: '01 86 90 82 15',\n qualite: '01 86 90 82 15',\n juridique: '01 86 90 82 15',\n },\n listMails: {\n administratif: 'contact@pourcentage.fr',\n app: 'contact@pourcentage.fr',\n bonjour: 'bonjour@pourcentage.fr',\n contact: 'contact@pourcentage.fr',\n facturation: 'facturation@pourcentage.fr',\n feedback: 'contact@pourcentage.fr',\n juridique: 'contact@pourcentage.fr',\n informatique: 'contact@pourcentage.fr',\n msd: 'contact@pourcentage.fr',\n noreply: 'contact@pourcentage.fr',\n qualite: 'contact@pourcentage.fr',\n paiement: 'contact@pourcentage.fr',\n rh: 'rh@pourcentage.fr',\n social: 'contact@pourcentage.fr',\n support: 'contact@pourcentage.fr',\n tva: 'contact@pourcentage.fr',\n wb: 'contact@pourcentage.fr',\n },\n companyInformation: {\n ape: '6920Z',\n bp: '',\n city: 'Laxou',\n montantCapital: '150 000',\n nomRaisonSociale: 'POURCENTAGE',\n ECName: 'M. Jean-Louis BOICHÉ',\n ECOrderCity: 'Nancy',\n phone: '01 86 90 82 15',\n postalAddress: '9, avenue du Rhin',\n rcs: '891 501 181',\n statut: 'SAS',\n zipCode: '54 520',\n },\n idPrestationsListAuthorized: [197, 205],\n logoUrl: 'logo-pourcentage.svg',\n miniLogoUrl: 'logo-pourcentage-mini.svg',\n hiddenPages: [],\n recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',\n urlApp: 'https://app.pourcentage.fr/',\n urlApi1: 'https://api.pourcentage.fr',\n urlApi2: 'https://api-next.pourcentage.fr',\n urlExpert: 'https://pro.pourcentage.fr',\n urlClient: 'https://www.pourcentage.fr',\n bank: {\n IBAN: 'FR7616106010019601826952765',\n BIC: 'AGRIFRPP861',\n Name: 'POURCENTAGE',\n Id: 'FR57ZZZ878E61',\n },\n internalInvoicing: {\n statut: 'SASU',\n name: 'POURCENTAGE',\n address: '9, avenue du Rhin',\n zipCode: '54520',\n city: 'LAXOU',\n country: 'FRANCE',\n montantCapital: '150 000',\n siret: '89150118100020',\n ape: '6920Z',\n rcs: '891 501 181',\n phone: '01 86 90 82 15',\n vatIntracom: 'FR58891501181',\n email: 'facturation@pourcentage.fr',\n },\n },\n];"]}
1
+ {"version":3,"file":"BrandPourcentage.js","mappings":";;;;;AAAO,MAAMA,gBAAgB,WAAhBA,gBAAgB,GAAG,CAC9B;EACEC,WAAW,EAAE,CADf;EAEEC,KAAK,EAAE,2DAFT;EAGEC,MAAM,EAAE,6BAHV;EAIEC,IAAI,EAAE,aAJR;EAKEC,MAAM,EAAE;IACNC,OAAO,EAAE;EADH,CALV;EAQEC,UAAU,EAAE;IACVC,OAAO,EAAE,gBADC;IAEVC,OAAO,EAAE,gBAFC;IAGVC,SAAS,EAAE;EAHD,CARd;EAaEC,SAAS,EAAE;IACTC,aAAa,EAAE,wBADN;IAETC,GAAG,EA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AAE;IACjBjB,MAAM,EAAE,MADS;IAEjBjC,IAAI,EAAE,aAFW;IAGjBmD,OAAO,EAAE,mBAHQ;IAIjBjB,OAAO,EAAE,OAJQ;IAKjBT,IAAI,EAAE,OALW;IAMjB2B,OAAO,EAAE,QANQ;IAOjB1B,cAAc,EAAE,SAPC;IAQjB2B,KAAK,EAAE,gBARU;IASjB9B,GAAG,EAAE,OATY;IAUjBS,GAAG,EAAE,aAVY;IAWjBF,KAAK,EAAE,gBAXU;IAYjBwB,WAAW,EAAE,eAZI;IAajBC,KAAK,EAAE;EAbU;AA9DrB,CAD8B,CAAzB","names":["BrandPourcentage","idTypeBrand","urlS3","logoS3","name","colors","primary","listPhones","contact","qualite","juridique","listMails","administratif","app","bonjour","facturation","feedback","informatique","msd","noreply","paiement","rh","social","support","tva","wb","companyInformation","ape","bp","city","montantCapital","nomRaisonSociale","ECName","ECOrderCity","phone","postalAddress","rcs","statut","zipCode","idPrestationsListAuthorized","logoUrl","miniLogoUrl","hiddenPages","recaptchaSecretKey","urlApp","urlApi1","urlApi2","urlExpert","urlClient","bank","IBAN","BIC","Name","Id","internalInvoicing","address","country","siret","vatIntracom","email"],"sourceRoot":"","sources":["../../../ts/types/Enum/BrandPourcentage.ts"],"sourcesContent":["export const BrandPourcentage = [\n {\n idTypeBrand: 1,\n urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',\n logoS3: 'config/pourcentage-logo.png',\n name: 'Pourcentage',\n colors: {\n primary: '#1e6f5c',\n },\n listPhones: {\n contact: '01 86 90 82 15',\n qualite: '01 86 90 82 15',\n juridique: '01 86 90 82 15',\n },\n listMails: {\n administratif: 'contact@pourcentage.fr',\n app: 'contact@pourcentage.fr',\n bonjour: 'bonjour@pourcentage.fr',\n contact: 'contact@pourcentage.fr',\n facturation: 'facturation@pourcentage.fr',\n feedback: 'contact@pourcentage.fr',\n juridique: 'contact@pourcentage.fr',\n informatique: 'contact@pourcentage.fr',\n msd: 'contact@pourcentage.fr',\n noreply: 'contact@pourcentage.fr',\n qualite: 'contact@pourcentage.fr',\n paiement: 'contact@pourcentage.fr',\n rh: 'rh@pourcentage.fr',\n social: 'contact@pourcentage.fr',\n support: 'contact@pourcentage.fr',\n tva: 'contact@pourcentage.fr',\n wb: 'contact@pourcentage.fr',\n },\n companyInformation: {\n ape: '6920Z',\n bp: '',\n city: 'Laxou',\n montantCapital: '150 000',\n nomRaisonSociale: 'POURCENTAGE',\n ECName: 'M. Jean-Louis BOICHÉ',\n ECOrderCity: 'Nancy',\n phone: '01 86 90 82 15',\n postalAddress: '9, avenue du Rhin',\n rcs: '891 501 181',\n statut: 'SAS',\n zipCode: '54 520',\n },\n idPrestationsListAuthorized: [197, 205, 12],\n logoUrl: 'logo-pourcentage.svg',\n miniLogoUrl: 'logo-pourcentage-mini.svg',\n hiddenPages: [],\n recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',\n urlApp: 'https://app.pourcentage.fr/',\n urlApi1: 'https://api.pourcentage.fr',\n urlApi2: 'https://api-next.pourcentage.fr',\n urlExpert: 'https://pro.pourcentage.fr',\n urlClient: 'https://www.pourcentage.fr',\n bank: {\n IBAN: 'FR7616106010019601826952765',\n BIC: 'AGRIFRPP861',\n Name: 'POURCENTAGE',\n Id: 'FR57ZZZ878E61',\n },\n internalInvoicing: {\n statut: 'SASU',\n name: 'POURCENTAGE',\n address: '9, avenue du Rhin',\n zipCode: '54520',\n city: 'LAXOU',\n country: 'FRANCE',\n montantCapital: '150 000',\n siret: '89150118100020',\n ape: '6920Z',\n rcs: '891 501 181',\n phone: '01 86 90 82 15',\n vatIntracom: 'FR58891501181',\n email: 'facturation@pourcentage.fr',\n },\n },\n];"]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=verifyCalendarEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyCalendarEvent.js","mappings":"","names":[],"sourceRoot":"","sources":[],"sourcesContent":[]}
package/js/types/index.js CHANGED
@@ -8644,6 +8644,18 @@ Object.keys(_createCalendarEventForUsers).forEach(function (key) {
8644
8644
  });
8645
8645
  });
8646
8646
 
8647
+ var _verifyCalendarEvent = require("./Interface/api/calendarEvent/verifyCalendarEvent");
8648
+
8649
+ Object.keys(_verifyCalendarEvent).forEach(function (key) {
8650
+ if (key === "default" || key === "__esModule") return;
8651
+ Object.defineProperty(exports, key, {
8652
+ enumerable: true,
8653
+ get: function () {
8654
+ return _verifyCalendarEvent[key];
8655
+ }
8656
+ });
8657
+ });
8658
+
8647
8659
  var _updateCalendarEvent = require("./Interface/api/calendarEvent/updateCalendarEvent");
8648
8660
 
8649
8661
  Object.keys(_updateCalendarEvent).forEach(function (key) {