@silexpert/core 1.1.11 → 1.1.13
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.
- package/es/api/resources/Invoice.d.ts +2 -0
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +6 -0
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Report.d.ts +2 -1
- package/es/api/resources/Report.d.ts.map +1 -1
- package/es/api/resources/Report.js +3 -0
- package/es/api/resources/Report.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +24 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +22 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +16 -0
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +14 -0
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +22 -0
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +22 -0
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.d.ts +115 -2
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +32 -6
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/PrestationType.d.ts +2 -1
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +18 -0
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts +5 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.js +24 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/models/IImmobilization.d.ts +2 -0
- package/es/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/es/types/Interface/models/IImmobilization.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +1 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -2
- package/es/types/index.js.map +1 -1
- package/es/utils/brands.d.ts +8 -0
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js.map +1 -1
- package/es/utils/vat/utils.d.ts.map +1 -1
- package/es/utils/vat/utils.js +3 -2
- package/es/utils/vat/utils.js.map +1 -1
- package/js/api/resources/Invoice.js +6 -0
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Report.js +7 -0
- package/js/api/resources/Report.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +22 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +14 -0
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +22 -0
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +32 -6
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/PrestationType.js +18 -0
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Interface/api/report/QueryReportsForLetter.js +23 -0
- package/js/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/models/IImmobilization.js.map +1 -1
- package/js/types/Interface/models/ISociety.js.map +1 -1
- package/js/types/index.js +10 -20
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/vat/utils.js +2 -1
- package/js/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Invoice.ts +8 -0
- package/ts/api/resources/Report.ts +4 -1
- package/ts/types/Enum/BrandClementine.ts +22 -0
- package/ts/types/Enum/BrandComptalib.ts +14 -0
- package/ts/types/Enum/BrandLegalstart.ts +22 -0
- package/ts/types/Enum/BrandPourcentage.ts +32 -6
- package/ts/types/Enum/PrestationType.ts +18 -0
- package/ts/types/Interface/api/report/QueryReportsForLetter.ts +12 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
- package/ts/types/Interface/models/IImmobilization.ts +2 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/index.ts +1 -2
- package/ts/utils/brands.ts +8 -0
- package/ts/utils/vat/utils.ts +3 -2
- package/es/types/Enum/Office.d.ts +0 -19
- package/es/types/Enum/Office.d.ts.map +0 -1
- package/es/types/Enum/Office.js +0 -20
- package/es/types/Enum/Office.js.map +0 -1
- package/es/types/Enum/TimeRecorderLocation.d.ts +0 -23
- package/es/types/Enum/TimeRecorderLocation.d.ts.map +0 -1
- package/es/types/Enum/TimeRecorderLocation.js +0 -6
- package/es/types/Enum/TimeRecorderLocation.js.map +0 -1
- package/js/types/Enum/Office.js +0 -25
- package/js/types/Enum/Office.js.map +0 -1
- package/js/types/Enum/TimeRecorderLocation.js +0 -14
- package/js/types/Enum/TimeRecorderLocation.js.map +0 -1
- package/ts/types/Enum/Office.ts +0 -19
- package/ts/types/Enum/TimeRecorderLocation.ts +0 -9
package/js/utils/brands.js.map
CHANGED
|
@@ -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;
|
|
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,GAAG,CAAC,CAAC,EAAE;MACpE,OAAO,YAAY;;IAErB,IAAIL,GAAG,CAACK,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAIL,GAAG,CAACK,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE;MAClE,OAAO,WAAW;;IAEpB,IAAIL,GAAG,CAACK,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAIL,GAAG,CAACK,OAAO,CAAC,aAAa,CAA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GAArBA,qBAAqB;AAAAgC,OAAA,CAAEF,eAAe,GAAfA,eAAe"}
|
package/js/utils/vat/utils.js
CHANGED
|
@@ -9,7 +9,8 @@ exports.textFormatting = textFormatting;
|
|
|
9
9
|
var _lodash = require("lodash");
|
|
10
10
|
var _Vat = require("../../types/Enum/Vat");
|
|
11
11
|
function getAmountByAccountNumber(accountingEntries, accountsNumber, precision = 0) {
|
|
12
|
-
|
|
12
|
+
const accountingEntriesUniq = (0, _lodash.uniqBy)(accountingEntries, 'id');
|
|
13
|
+
return (0, _lodash.round)(accountingEntriesUniq.reduce((acc, accountingEntry) => {
|
|
13
14
|
let accTmp = acc;
|
|
14
15
|
accountsNumber.some(number => {
|
|
15
16
|
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["getAmountByAccountNumber","exports","getTaxAmountByAccountNumber","textFormatting","_lodash","require","_Vat","accountingEntries","accountsNumber","precision","_round","reduce","acc","accountingEntry","accTmp","some","number","account","toString","startsWith","debit","credit","_b","_a","Object","values","Vat","find","v","id","idVat","value","length","formattedValue","replace","slice"],"sources":["../../../ts/utils/vat/utils.ts"],"sourcesContent":["import { round as _round } from 'lodash';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Vat } from '../../types/Enum/Vat';\n\nexport function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n return _round(
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getAmountByAccountNumber","exports","getTaxAmountByAccountNumber","textFormatting","_lodash","require","_Vat","accountingEntries","accountsNumber","precision","accountingEntriesUniq","_uniqBy","_round","reduce","acc","accountingEntry","accTmp","some","number","account","toString","startsWith","debit","credit","_b","_a","Object","values","Vat","find","v","id","idVat","value","length","formattedValue","replace","slice"],"sources":["../../../ts/utils/vat/utils.ts"],"sourcesContent":["import { round as _round, uniqBy as _uniqBy } from 'lodash';\nimport { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';\nimport { Vat } from '../../types/Enum/Vat';\n\nexport function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n const accountingEntriesUniq = _uniqBy(accountingEntries, 'id');\n return _round(accountingEntriesUniq.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += (accountingEntry.debit - accountingEntry.credit);\n return true;\n }\n return false;\n });\n return accTmp;\n }, 0), precision);\n}\n\nexport function getTaxAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {\n return _round(accountingEntries.reduce((acc, accountingEntry) => {\n let accTmp = acc;\n accountsNumber.some((number) => {\n if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {\n accTmp += ((accountingEntry.debit - accountingEntry.credit) * (((Object.values(Vat).find((v) => v.id === accountingEntry.idVat)?.value ?? 0) / 100)));\n return true;\n }\n return false;\n });\n return accTmp;\n }, precision));\n}\n\nexport function textFormatting(value: any, length: number | null = null): string | null {\n if (value && typeof value === 'string') {\n let formattedValue = value.replace(/[\\u2018\\u2019]/g, '\\''); // Suppression des \"Curly Quotes\"\n formattedValue = formattedValue.replace(/&/g, ''); // Suppression des &\n formattedValue = formattedValue.replace(/!/g, ''); // Suppression des !\n formattedValue = formattedValue.replace(/[\\t]/g, ''); // Suppression des tabulations\n formattedValue = formattedValue.replace(/`/g, '\\''); // Suppression des `\n formattedValue = formattedValue.replace(/\"/g, ''); // Suppression des \"\n formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début\n formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin\n if (length) formattedValue = formattedValue.slice(0, length);\n return formattedValue;\n }\n return null;\n}"],"mappings":";;;;;QAIgBA,wBAAwB,GAAxBA,wBAAwB;AAAAC,O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IF,MAAM,EAAEC,cAAc,GAAGA,cAAc,CAACE,KAAK,CAAC,CAAC,EAAEH,MAAM,CAAC;IAC5D,OAAOC,cAAc;;EAEvB,OAAO,IAAI;AACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
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",
|
|
@@ -29,6 +29,14 @@ export class Invoice extends Resource {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
getAccrualById(id: number): Promise<ReadAccrualInvoice> {
|
|
33
|
+
return this.axios.$get(`/commercial-management/invoices/${id}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getCashBasedById(id: number): Promise<ReadCashBasedInvoice> {
|
|
37
|
+
return this.axios.$get(`/commercial-management/invoices/${id}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]> {
|
|
33
41
|
return this.axios.$post('/commercial-management/invoices', payload);
|
|
34
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import {
|
|
3
|
-
BasePaginate, CreateReport, DeleteReport, QueryPaginate, QueryReports, QueryReportsStats, ReadReport, ReadReportStats, UpdateReport,
|
|
3
|
+
BasePaginate, CreateReport, DeleteReport, IReport, QueryPaginate, QueryReports, QueryReportsForLetter, QueryReportsStats, ReadReport, ReadReportStats, UpdateReport,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
import { Resource } from '../Resource';
|
|
6
6
|
|
|
@@ -11,6 +11,9 @@ export class Report extends Resource {
|
|
|
11
11
|
getStats(params: QueryReportsStats, cancelToken?: CancelToken): Promise<ReadReportStats[]> {
|
|
12
12
|
return this.axios.$get('/reports/stats', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
13
13
|
}
|
|
14
|
+
getReportsForLetter(params: QueryReportsForLetter, cancelToken?: CancelToken): Promise<IReport[]> {
|
|
15
|
+
return this.axios.$get('/reports/letter', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
16
|
+
}
|
|
14
17
|
update(params: UpdateReport): Promise<[number, Report[]]> {
|
|
15
18
|
return this.axios.$put('/reports', params);
|
|
16
19
|
}
|
|
@@ -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,
|
|
@@ -149,10 +175,10 @@ export const BrandPourcentage = [
|
|
|
149
175
|
urlExpert: 'https://pro.pourcentage.fr',
|
|
150
176
|
urlClient: 'https://www.pourcentage.fr',
|
|
151
177
|
bank: {
|
|
152
|
-
IBAN: '
|
|
153
|
-
BIC: '
|
|
178
|
+
IBAN: 'FR7616106010019601703611154',
|
|
179
|
+
BIC: 'AGRIFRPP861',
|
|
154
180
|
Name: 'SOFRAGECO',
|
|
155
|
-
Id: '
|
|
181
|
+
Id: '****',
|
|
156
182
|
},
|
|
157
183
|
internalInvoicing: {
|
|
158
184
|
statut: 'SAS',
|
|
@@ -236,10 +262,10 @@ export const BrandPourcentage = [
|
|
|
236
262
|
urlExpert: 'https://pro.pourcentage.fr',
|
|
237
263
|
urlClient: 'https://www.pourcentage.fr',
|
|
238
264
|
bank: {
|
|
239
|
-
IBAN: '
|
|
240
|
-
BIC: '
|
|
265
|
+
IBAN: 'FR7630087336510002008560147',
|
|
266
|
+
BIC: 'CMCIFRPP',
|
|
241
267
|
Name: 'AEC 54',
|
|
242
|
-
Id: '
|
|
268
|
+
Id: '***',
|
|
243
269
|
},
|
|
244
270
|
internalInvoicing: {
|
|
245
271
|
statut: 'SARL',
|
|
@@ -165,6 +165,7 @@ export enum PrestationType {
|
|
|
165
165
|
COMPTA_POURCENTAGE_PREMIUM_EXPRESS = 208,
|
|
166
166
|
ANNONCE_LEGALE = 209,
|
|
167
167
|
FRAIS_DE_GREFFE = 210,
|
|
168
|
+
ASSURANCE_CONTROLE_FISCAL = 211,
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
export interface PrestationDetailEnum {
|
|
@@ -2960,4 +2961,21 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2960
2961
|
signaturePage: 0,
|
|
2961
2962
|
point: 0,
|
|
2962
2963
|
},
|
|
2964
|
+
ASSURANCE_CONTROLE_FISCAL: {
|
|
2965
|
+
id: 211,
|
|
2966
|
+
name: 'Assurance contrôle fiscal',
|
|
2967
|
+
isComptable: true,
|
|
2968
|
+
isJuridique: false,
|
|
2969
|
+
isSocial: false,
|
|
2970
|
+
isAttestation: false,
|
|
2971
|
+
inAverageCart: true,
|
|
2972
|
+
isBack: false,
|
|
2973
|
+
price: 299,
|
|
2974
|
+
isCatalog: false,
|
|
2975
|
+
hidden: false,
|
|
2976
|
+
isComplementary: false,
|
|
2977
|
+
signaturePosition: '',
|
|
2978
|
+
signaturePage: 5,
|
|
2979
|
+
point: 0,
|
|
2980
|
+
},
|
|
2963
2981
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAccountingEntry } from './IAccountingEntry';
|
|
2
2
|
import { ISociety } from './ISociety';
|
|
3
3
|
import { DepreciationMethods } from '../../Enum/ImmobilizationType';
|
|
4
|
+
import { IAccount } from './IAccount';
|
|
4
5
|
|
|
5
6
|
export interface IImmobilization {
|
|
6
7
|
id?: number;
|
|
@@ -22,5 +23,6 @@ export interface IImmobilization {
|
|
|
22
23
|
|
|
23
24
|
// Associations
|
|
24
25
|
society?: ISociety;
|
|
26
|
+
account?: Partial<IAccount>;
|
|
25
27
|
accountingEntries?: IAccountingEntry[];
|
|
26
28
|
}
|
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
ISocietyConfigBalanceSheet,
|
|
53
53
|
IAccountsSocieties,
|
|
54
54
|
IUnpaidCallHistory,
|
|
55
|
+
IAccountingFile,
|
|
55
56
|
} from '../..';
|
|
56
57
|
import { IBrandType } from './IBrandType';
|
|
57
58
|
import { IFile } from './IFile';
|
|
@@ -220,4 +221,5 @@ export interface ISociety {
|
|
|
220
221
|
gedFiles: IGedFile[];
|
|
221
222
|
files: IFile[];
|
|
222
223
|
unpaidCallHistory: IUnpaidCallHistory[];
|
|
224
|
+
accountingFiles?: IAccountingFile[];
|
|
223
225
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -351,10 +351,8 @@ export * from './Enum/Quality';
|
|
|
351
351
|
export * from './Enum/AbsenceType';
|
|
352
352
|
export * from './Enum/Role';
|
|
353
353
|
export * from './Enum/RoleDetail';
|
|
354
|
-
export * from './Enum/Office';
|
|
355
354
|
export * from './Enum/PrestationOption';
|
|
356
355
|
export * from './Enum/TimeCounterType';
|
|
357
|
-
export * from './Enum/TimeRecorderLocation';
|
|
358
356
|
export * from './Enum/MailAuto';
|
|
359
357
|
export * from './Enum/MailAddressType';
|
|
360
358
|
export * from './Enum/Simulation';
|
|
@@ -684,6 +682,7 @@ export * from './Interface/api/report/CreateReport';
|
|
|
684
682
|
export * from './Interface/api/report/DeleteReport';
|
|
685
683
|
export * from './Interface/api/report/QueryReports';
|
|
686
684
|
export * from './Interface/api/report/QueryReportsStats';
|
|
685
|
+
export * from './Interface/api/report/QueryReportsForLetter';
|
|
687
686
|
export * from './Interface/api/letter/CreateLetter';
|
|
688
687
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|
|
689
688
|
export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
|
package/ts/utils/brands.ts
CHANGED
package/ts/utils/vat/utils.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { round as _round } from 'lodash';
|
|
1
|
+
import { round as _round, uniqBy as _uniqBy } from 'lodash';
|
|
2
2
|
import { IAccountingEntry } from '../../types/Interface/models/IAccountingEntry';
|
|
3
3
|
import { Vat } from '../../types/Enum/Vat';
|
|
4
4
|
|
|
5
5
|
export function getAmountByAccountNumber(accountingEntries: IAccountingEntry[], accountsNumber: string[], precision = 0): number {
|
|
6
|
-
|
|
6
|
+
const accountingEntriesUniq = _uniqBy(accountingEntries, 'id');
|
|
7
|
+
return _round(accountingEntriesUniq.reduce((acc, accountingEntry) => {
|
|
7
8
|
let accTmp = acc;
|
|
8
9
|
accountsNumber.some((number) => {
|
|
9
10
|
if (accountingEntry.account && accountingEntry.account.number && accountingEntry.account.number.toString().startsWith(number)) {
|
|
@@ -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"}
|
package/es/types/Enum/Office.js
DELETED
|
@@ -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 +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};"]}
|
package/js/types/Enum/Office.js
DELETED
|
@@ -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"}
|
package/ts/types/Enum/Office.ts
DELETED
|
@@ -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
|
-
};
|