@silexpert/core 1.0.187 → 1.0.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 (55) hide show
  1. package/es/types/Enum/BrandClementine.d.ts +24 -0
  2. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  3. package/es/types/Enum/BrandClementine.js +22 -0
  4. package/es/types/Enum/BrandClementine.js.map +1 -1
  5. package/es/types/Enum/BrandComptalib.d.ts +16 -0
  6. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  7. package/es/types/Enum/BrandComptalib.js +14 -0
  8. package/es/types/Enum/BrandComptalib.js.map +1 -1
  9. package/es/types/Enum/BrandLegalstart.d.ts +22 -0
  10. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  11. package/es/types/Enum/BrandLegalstart.js +22 -0
  12. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  13. package/es/types/Enum/BrandPourcentage.d.ts +115 -2
  14. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  15. package/es/types/Enum/BrandPourcentage.js +26 -0
  16. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  17. package/es/types/index.d.ts +0 -2
  18. package/es/types/index.d.ts.map +1 -1
  19. package/es/types/index.js +0 -2
  20. package/es/types/index.js.map +1 -1
  21. package/es/utils/brands.d.ts +8 -0
  22. package/es/utils/brands.d.ts.map +1 -1
  23. package/es/utils/brands.js.map +1 -1
  24. package/js/types/Enum/BrandClementine.js +22 -0
  25. package/js/types/Enum/BrandClementine.js.map +1 -1
  26. package/js/types/Enum/BrandComptalib.js +14 -0
  27. package/js/types/Enum/BrandComptalib.js.map +1 -1
  28. package/js/types/Enum/BrandLegalstart.js +22 -0
  29. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  30. package/js/types/Enum/BrandPourcentage.js +26 -0
  31. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  32. package/js/types/index.js +0 -20
  33. package/js/types/index.js.map +1 -1
  34. package/js/utils/brands.js.map +1 -1
  35. package/package.json +1 -1
  36. package/ts/types/Enum/BrandClementine.ts +22 -0
  37. package/ts/types/Enum/BrandComptalib.ts +14 -0
  38. package/ts/types/Enum/BrandLegalstart.ts +22 -0
  39. package/ts/types/Enum/BrandPourcentage.ts +26 -0
  40. package/ts/types/index.ts +0 -2
  41. package/ts/utils/brands.ts +8 -0
  42. package/es/types/Enum/Office.d.ts +0 -19
  43. package/es/types/Enum/Office.d.ts.map +0 -1
  44. package/es/types/Enum/Office.js +0 -20
  45. package/es/types/Enum/Office.js.map +0 -1
  46. package/es/types/Enum/TimeRecorderLocation.d.ts +0 -23
  47. package/es/types/Enum/TimeRecorderLocation.d.ts.map +0 -1
  48. package/es/types/Enum/TimeRecorderLocation.js +0 -6
  49. package/es/types/Enum/TimeRecorderLocation.js.map +0 -1
  50. package/js/types/Enum/Office.js +0 -25
  51. package/js/types/Enum/Office.js.map +0 -1
  52. package/js/types/Enum/TimeRecorderLocation.js +0 -14
  53. package/js/types/Enum/TimeRecorderLocation.js.map +0 -1
  54. package/ts/types/Enum/Office.ts +0 -19
  55. package/ts/types/Enum/TimeRecorderLocation.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"brands.js","names":["_lodash","require","_BrandClementine","_BrandLegalstart","_BrandComptalib","_BrandPourcentage","getBrandNameByNodeEnv","nodeEnv","env","_a","process","NODE_ENV","API_HOST","indexOf","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","getLodash","brandDefault","name","getBrandByEmail","email","exports"],"sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n colors: {\n primary: string,\n },\n listMails: {\n bonjour: string,\n },\n listPhones: {\n contact: string,\n },\n name: string,\n urlApi1?: string,\n urlClient?: string,\n urlApp?: string,\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n if (env) {\n if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAyBA,MAAMK,qBAAqB,GAAIC,OAAgB,IAA+D;;EAC5G,MAAMC,GAAG,GAAG,CAAAC,EAAA,GAAAF,OAAO,aAAPA,OAAO,cAAPA,OAAO,GAAIG,OAAO,CAACF,GAAG,CAACG,QAAQ,cAAAF,EAAA,cAAAA,EAAA,GAAIC,OAAO,CAACF,GA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AAC,GAAG,CAAC,CAAC,EAAE,OAAO,aAAa;EAC9D,IAAIwB,KAAK,CAACxB,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;EACnE,IAAIwB,KAAK,CAACxB,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;EAC5D,IAAIwB,KAAK,CAACxB,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,qBAAqB;EAC9E,OAAO,IAAI;AACb,CAAC;AAACyB,OAAA,CAGAd,cAAc,GAAdA,cAAc;AAAAc,OAAA,CAAExB,oBAAoB,GAApBA,oBAAoB;AAAAwB,OAAA,CAAEhC,qBAAqB,GAArBA,qBAAqB;AAAAgC,OAAA,CAAEF,eAAe,GAAfA,eAAe"}
1
+ {"version":3,"file":"brands.js","names":["_lodash","require","_BrandClementine","_BrandLegalstart","_BrandComptalib","_BrandPourcentage","getBrandNameByNodeEnv","nodeEnv","env","_a","process","NODE_ENV","API_HOST","indexOf","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","currentConfigFile","brand","getBrandConfig","params","idTypeBrand","objectWaited","find","b","sort","a","objectToReturn","getLodash","brandDefault","name","getBrandByEmail","email","exports"],"sources":["../../ts/utils/brands.ts"],"sourcesContent":["import { get as getLodash } from 'lodash';\nimport { BrandClementine } from '../types/Enum/BrandClementine';\nimport { BrandLegalstart } from '../types/Enum/BrandLegalstart';\nimport { BrandComptalib } from '../types/Enum/BrandComptalib';\nimport { BrandPourcentage } from '../types/Enum/BrandPourcentage';\n\ntype brand = {\n idTypeBrand: number,\n colors: {\n primary: string,\n },\n listMails: {\n bonjour: string,\n },\n listPhones: {\n contact: string,\n },\n name: string,\n urlApi1?: string,\n urlClient?: string,\n urlApp?: string,\n offices?: {\n LAXOU: {\n id : number,\n },\n HOME_OFFICE: {\n id : number,\n }\n },\n};\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n if (env) {\n if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {\n return 'Legalstart';\n }\n if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {\n return 'Comptalib';\n }\n if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {\n return 'Pourcentage';\n }\n }\n return 'Clementine';\n};\n\nconst getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n const brand = currentConfigFile;\n\n return brand;\n};\n\nconst getBrandConfig = (params: getBrandConfigParams): brand => {\n const {\n idTypeBrand = null, objectWaited = null, nodeEnv,\n } = params;\n let brand;\n const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;\n const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);\n const listEnvEnum = {\n BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,\n };\n // @ts-ignore\n const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];\n\n if (idTypeBrand) {\n // Récupération de la brand via idTypeBrand\n brand = currentConfigFile.find((b: brand) => b.idTypeBrand === idTypeBrand);\n }\n // else if (idSociety) {\n // Récupération de la brand via l'idSociety -> impossible directement depuis le core (pas d'accès au resources, ni au token pour l'appel via fetch)\n\n if (!brand) {\n // Si aucune brand trouvée, on passe par défaut la première brand de la liste\n [brand] = currentConfigFile.sort((a: brand, b: brand) => a.idTypeBrand - b.idTypeBrand);\n }\n\n if (objectWaited) {\n // Si on attend un attribut particulier de la brand, on le parcourt\n let objectToReturn = getLodash(brand, objectWaited);\n // Si aucun attribut trouvé, on renvoit celui de Clementine par défaut\n if (!objectToReturn) {\n const brandDefault = currentConfigFile.find((b: brand) => b.name === currentEnvName);\n objectToReturn = getLodash(brandDefault, objectWaited);\n }\n return objectToReturn;\n }\n\n return brand;\n};\n\nconst getBrandByEmail = (email: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {\n if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';\n if (email.indexOf('comptalib.com') > -1) return 'Comptalib';\n if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';\n if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('clementine.fr') > -1) return 'Clementine';\n if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';\n return null;\n};\n\nexport {\n getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,\n};"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAiCA,MAAMK,qBAAqB,GAAIC,OAAgB,IAA+D;;EAC5G,MAAMC,GAAG,GAAG,CAAAC,EAAA,GAAAF,OAAO,aAAPA,OAAO,cAAPA,OAAO,GAAIG,OAAO,CAACF,GAAG,CAACG,QAAQ,cAAAF,EAAA,cAAAA,EAAA,GAAIC,OAAO,CAACF,GAAG,CAACI,QAAQ;EACnE,IAAIJ,GAAG,EAAE;IACP,IAAIA,GAAG,CAACK,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAIL,GAAG,CAACK,OAAO,CAAC,YAAY,CAAC,GA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ACxB,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;EAC5D,IAAIwB,KAAK,CAACxB,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,qBAAqB;EAC9E,OAAO,IAAI;AACb,CAAC;AAACyB,OAAA,CAGAd,cAAc,GAAdA,cAAc;AAAAc,OAAA,CAAExB,oBAAoB,GAApBA,oBAAoB;AAAAwB,OAAA,CAAEhC,qBAAqB,GAArBA,qBAAqB;AAAAgC,OAAA,CAAEF,eAAe,GAAfA,eAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.187",
3
+ "version": "1.0.188",
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": "js/index.js",
@@ -85,6 +85,28 @@ export const BrandClementine = [
85
85
  domain: '@compta-clementine.fr',
86
86
  domain2: '@clementine.fr',
87
87
  },
88
+ offices: {
89
+ LAXOU: {
90
+ id: 1,
91
+ name: 'Laxou',
92
+ },
93
+ PARIS: {
94
+ id: 2,
95
+ name: 'Paris',
96
+ },
97
+ MARSEILLE: {
98
+ id: 3,
99
+ name: 'Marseille',
100
+ },
101
+ EPINAL: {
102
+ id: 4,
103
+ name: 'Epinal',
104
+ },
105
+ HOME_OFFICE: {
106
+ id: 5,
107
+ name: 'Télétravail',
108
+ },
109
+ },
88
110
  },
89
111
  {
90
112
  idTypeBrand: 2,
@@ -60,6 +60,20 @@ export const BrandComptalib = [
60
60
  webmail: {
61
61
  domain: '@comptalib.com',
62
62
  },
63
+ offices: {
64
+ LAXOU: {
65
+ id: 1,
66
+ name: 'Laxou',
67
+ },
68
+ PARIS: {
69
+ id: 2,
70
+ name: 'Paris',
71
+ },
72
+ HOME_OFFICE: {
73
+ id: 5,
74
+ name: 'Télétravail',
75
+ },
76
+ },
63
77
  },
64
78
  {
65
79
  idTypeBrand: 2,
@@ -79,5 +79,27 @@ export const BrandLegalstart = [
79
79
  webmail: {
80
80
  domain: '@legalstart.fr',
81
81
  },
82
+ offices: {
83
+ LAXOU: {
84
+ id: 1,
85
+ name: 'Laxou',
86
+ },
87
+ PARIS: {
88
+ id: 2,
89
+ name: 'Paris',
90
+ },
91
+ MARSEILLE: {
92
+ id: 3,
93
+ name: 'Marseille',
94
+ },
95
+ EPINAL: {
96
+ id: 4,
97
+ name: 'Epinal',
98
+ },
99
+ HOME_OFFICE: {
100
+ id: 5,
101
+ name: 'Télétravail',
102
+ },
103
+ },
82
104
  },
83
105
  ];
@@ -85,6 +85,32 @@ export const BrandPourcentage = [
85
85
  webmail: {
86
86
  domain: '@pourcentage.fr',
87
87
  },
88
+ offices: {
89
+ LAXOU: {
90
+ id: 1,
91
+ name: 'Laxou',
92
+ },
93
+ PARIS: {
94
+ id: 2,
95
+ name: 'Paris',
96
+ },
97
+ MARSEILLE: {
98
+ id: 3,
99
+ name: 'Marseille',
100
+ },
101
+ EPINAL: {
102
+ id: 4,
103
+ name: 'Epinal',
104
+ },
105
+ HOME_OFFICE: {
106
+ id: 5,
107
+ name: 'Télétravail',
108
+ },
109
+ NICE: {
110
+ id: 6,
111
+ name: 'Nice',
112
+ },
113
+ },
88
114
  },
89
115
  {
90
116
  idTypeBrand: 2,
package/ts/types/index.ts CHANGED
@@ -344,10 +344,8 @@ export * from './Enum/Quality';
344
344
  export * from './Enum/AbsenceType';
345
345
  export * from './Enum/Role';
346
346
  export * from './Enum/RoleDetail';
347
- export * from './Enum/Office';
348
347
  export * from './Enum/PrestationOption';
349
348
  export * from './Enum/TimeCounterType';
350
- export * from './Enum/TimeRecorderLocation';
351
349
  export * from './Enum/MailAuto';
352
350
  export * from './Enum/MailAddressType';
353
351
  export * from './Enum/Simulation';
@@ -19,6 +19,14 @@ type brand = {
19
19
  urlApi1?: string,
20
20
  urlClient?: string,
21
21
  urlApp?: string,
22
+ offices?: {
23
+ LAXOU: {
24
+ id : number,
25
+ },
26
+ HOME_OFFICE: {
27
+ id : number,
28
+ }
29
+ },
22
30
  };
23
31
 
24
32
  type getBrandConfigParams = {
@@ -1,19 +0,0 @@
1
- export declare const Office: {
2
- LAXOU: {
3
- id: number;
4
- name: string;
5
- };
6
- PARIS: {
7
- id: number;
8
- name: string;
9
- };
10
- MARSEILLE: {
11
- id: number;
12
- name: string;
13
- };
14
- EPINAL: {
15
- id: number;
16
- name: string;
17
- };
18
- };
19
- //# sourceMappingURL=Office.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Office.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Office.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;CAkBlB,CAAC"}
@@ -1,20 +0,0 @@
1
- export const Office = {
2
- LAXOU: {
3
- id: 1,
4
- name: 'Laxou',
5
- },
6
- PARIS: {
7
- id: 2,
8
- name: 'Paris',
9
- },
10
- MARSEILLE: {
11
- id: 3,
12
- name: 'Marseille',
13
- },
14
- EPINAL: {
15
- id: 4,
16
- name: 'Epinal',
17
- },
18
- // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)
19
- };
20
- //# sourceMappingURL=Office.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Office.js","sourceRoot":"","sources":["../../../ts/types/Enum/Office.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE;QACL,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,OAAO;KACd;IACD,KAAK,EAAE;QACL,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,OAAO;KACd;IACD,SAAS,EAAE;QACT,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,WAAW;KAClB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,QAAQ;KACf;IACD,6DAA6D;CAC9D,CAAC","sourcesContent":["export const Office = {\n LAXOU: {\n id: 1,\n name: 'Laxou',\n },\n PARIS: {\n id: 2,\n name: 'Paris',\n },\n MARSEILLE: {\n id: 3,\n name: 'Marseille',\n },\n EPINAL: {\n id: 4,\n name: 'Epinal',\n },\n // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)\n};"]}
@@ -1,23 +0,0 @@
1
- export declare const TimeRecorderLocation: {
2
- HOME_OFFICE: {
3
- id: number;
4
- name: string;
5
- };
6
- LAXOU: {
7
- id: number;
8
- name: string;
9
- };
10
- PARIS: {
11
- id: number;
12
- name: string;
13
- };
14
- MARSEILLE: {
15
- id: number;
16
- name: string;
17
- };
18
- EPINAL: {
19
- id: number;
20
- name: string;
21
- };
22
- };
23
- //# sourceMappingURL=TimeRecorderLocation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeRecorderLocation.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/TimeRecorderLocation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Office } from './Office';
2
- export const TimeRecorderLocation = Object.assign(Object.assign({}, Office), { HOME_OFFICE: {
3
- id: 5,
4
- name: 'Télétravail',
5
- } });
6
- //# sourceMappingURL=TimeRecorderLocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeRecorderLocation.js","sourceRoot":"","sources":["../../../ts/types/Enum/TimeRecorderLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,CAAC,MAAM,oBAAoB,mCAC5B,MAAM,KACT,WAAW,EAAE;QACX,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,aAAa;KACpB,GACF,CAAC","sourcesContent":["import { Office } from './Office';\n\nexport const TimeRecorderLocation = {\n ...Office,\n HOME_OFFICE: {\n id: 5,\n name: 'Télétravail',\n },\n};"]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- const Office = exports.Office = {
7
- LAXOU: {
8
- id: 1,
9
- name: 'Laxou'
10
- },
11
- PARIS: {
12
- id: 2,
13
- name: 'Paris'
14
- },
15
- MARSEILLE: {
16
- id: 3,
17
- name: 'Marseille'
18
- },
19
- EPINAL: {
20
- id: 4,
21
- name: 'Epinal'
22
- }
23
- // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)
24
- };
25
- //# sourceMappingURL=Office.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Office.js","names":["Office","exports","LAXOU","id","name","PARIS","MARSEILLE","EPINAL"],"sources":["../../../ts/types/Enum/Office.ts"],"sourcesContent":["export const Office = {\n LAXOU: {\n id: 1,\n name: 'Laxou',\n },\n PARIS: {\n id: 2,\n name: 'Paris',\n },\n MARSEILLE: {\n id: 3,\n name: 'Marseille',\n },\n EPINAL: {\n id: 4,\n name: 'Epinal',\n },\n // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)\n};"],"mappings":";;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAND,MAAM,GAAG;EACpBE,KAAK,EAAE;IACLC,EAAE,EAAE,CAAC;IACLC,IAAI,EAAE;GACP;EACDC,KAAK,EAAE;IACLF,EAAE,EAAE,CAAC;IACLC,IAAI,EAAE;GACP;EACDE,SAAS,EAAE;IACTH,EAAE,EAAE,CAAC;IACLC,IAAI,EAAE;GACP;EACDG,MAAM,EAAE;IACNJ,EAAE,EAAE,CAAC;IACLC,IAAI,EAAE;;EAER;CACD"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TimeRecorderLocation = undefined;
7
- var _Office = require("./Office");
8
- const TimeRecorderLocation = exports.TimeRecorderLocation = Object.assign(Object.assign({}, _Office.Office), {
9
- HOME_OFFICE: {
10
- id: 5,
11
- name: 'Télétravail'
12
- }
13
- });
14
- //# sourceMappingURL=TimeRecorderLocation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeRecorderLocation.js","names":["_Office","require","TimeRecorderLocation","exports","Object","assign","Office","HOME_OFFICE","id","name"],"sources":["../../../ts/types/Enum/TimeRecorderLocation.ts"],"sourcesContent":["import { Office } from './Office';\n\nexport const TimeRecorderLocation = {\n ...Office,\n HOME_OFFICE: {\n id: 5,\n name: 'Télétravail',\n },\n};"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,oBAAoB,GAAAC,OAAA,CAApBD,oBAAoB,GAAAE,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAC,MAAA,KAC5BC,cAAM;EACTC,WAAW,EAAE;IACXC,EAAE,EAAE,CAAC;IACLC,IAAI,EAAE;;AACP,EACF"}
@@ -1,19 +0,0 @@
1
- export const Office = {
2
- LAXOU: {
3
- id: 1,
4
- name: 'Laxou',
5
- },
6
- PARIS: {
7
- id: 2,
8
- name: 'Paris',
9
- },
10
- MARSEILLE: {
11
- id: 3,
12
- name: 'Marseille',
13
- },
14
- EPINAL: {
15
- id: 4,
16
- name: 'Epinal',
17
- },
18
- // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)
19
- };
@@ -1,9 +0,0 @@
1
- import { Office } from './Office';
2
-
3
- export const TimeRecorderLocation = {
4
- ...Office,
5
- HOME_OFFICE: {
6
- id: 5,
7
- name: 'Télétravail',
8
- },
9
- };