@silexpert/core 1.1.102 → 1.1.104
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/FIle.d.ts +2 -2
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +2 -2
- package/es/api/resources/FIle.js.map +1 -1
- package/es/types/Enum/Country.d.ts +1 -0
- package/es/types/Enum/Country.d.ts.map +1 -1
- package/es/types/Enum/Country.js +1 -1
- package/es/types/Enum/Country.js.map +1 -1
- package/es/types/Enum/JobTitle.d.ts +2 -1
- package/es/types/Enum/JobTitle.d.ts.map +1 -1
- package/es/types/Enum/JobTitle.js +6 -0
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/RoleDetail.js +2 -2
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +7 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/es/types/index.d.ts +0 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +0 -1
- package/es/types/index.js.map +1 -1
- package/es/utils/brands.js +1 -1
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/FIle.js +1 -2
- package/js/api/resources/FIle.js.map +1 -1
- package/js/types/Enum/Country.js +1 -0
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Enum/JobTitle.js +5 -0
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +2 -2
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +1 -0
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/js/types/index.js +15 -25
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js +1 -1
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/FIle.ts +2 -3
- package/ts/types/Enum/Country.ts +2 -2
- package/ts/types/Enum/JobTitle.ts +6 -0
- package/ts/types/Enum/RoleDetail.ts +2 -2
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +7 -1
- package/ts/types/index.ts +0 -1
- package/ts/utils/brands.ts +1 -1
- package/es/types/Interface/api/file/Query.d.ts +0 -4
- package/es/types/Interface/api/file/Query.d.ts.map +0 -1
- package/es/types/Interface/api/file/Query.js +0 -17
- package/es/types/Interface/api/file/Query.js.map +0 -1
- package/js/types/Interface/api/file/Query.js +0 -21
- package/js/types/Interface/api/file/Query.js.map +0 -1
- package/ts/types/Interface/api/file/Query.ts +0 -6
package/js/utils/brands.js
CHANGED
|
@@ -97,7 +97,7 @@ const getBrandConfig = params => {
|
|
|
97
97
|
return brand;
|
|
98
98
|
};
|
|
99
99
|
const getBrandByEmail = email => {
|
|
100
|
-
if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
|
|
100
|
+
if (email.indexOf('legalstart.fr') > -1 || email.indexOf('comptastartbyclementine.fr') > -1) return 'Legalstart';
|
|
101
101
|
if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
|
|
102
102
|
if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
|
|
103
103
|
if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
|
package/js/utils/brands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","names":["_lodash","require","_BrandClementine","_BrandLegalstart","_BrandComptalib","_BrandPourcentage","_BrandClems","_BrandStatutsExpress","allBrands","getBrandNameByNodeEnv","nodeEnv","env","_a","process","NODE_ENV","API_HOST","indexOf","isItThisEnv","brandList","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","BrandClems","BrandStatutsExpress","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';\nimport { BrandClems } from '../types/Enum/BrandClems';\nimport { BrandStatutsExpress } from '../types/Enum/BrandStatutsExpress';\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\nconst allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'Clems', 'StatutsExpress'] as const;\ntype BrandList = typeof allBrands[number];\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {\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 if (env.indexOf('clems') > -1 || env.indexOf('Clems') > -1) {\n return 'Clems';\n }\n if (env.indexOf('statuts') > -1 || env.indexOf('Statuts') > -1) {\n return 'StatutsExpress';\n }\n }\n return 'Clementine';\n};\n\nconst isItThisEnv = (brandList: BrandList, nodeEnv?: string): boolean => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n return getBrandNameByNodeEnv(env) === brandList;\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, BrandClems, BrandStatutsExpress,\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, BrandClems, BrandStatutsExpress,\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, isItThisEnv, 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;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AA2BA,MAAMO,SAAS,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,CAAU;AAS9G,MAAMC,qBAAqB,GAAIC,OAAgB,IAAe;;EAC5D,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,GA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Z,iBAAiB,CAACM,IAAI,CAAEC,CAAQ,IAAKA,CAAC,CAACM,IAAI,KAAKrB,cAAc,CAAC;MACpFkB,cAAc,GAAG,IAAAC,WAAS,EAACC,YAAY,EAAEP,YAAY,CAAC;;IAExD,OAAOK,cAAc;;EAGvB,OAAOT,KAAK;AACd,CAAC;AAED,MAAMa,eAAe,GAAIC,KAAa,IAA8F;EAClI,IAAIA,KAAK,CAAC5B,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"brands.js","names":["_lodash","require","_BrandClementine","_BrandLegalstart","_BrandComptalib","_BrandPourcentage","_BrandClems","_BrandStatutsExpress","allBrands","getBrandNameByNodeEnv","nodeEnv","env","_a","process","NODE_ENV","API_HOST","indexOf","isItThisEnv","brandList","getAllBrandByNodeEnv","nodeEnvUsed","currentEnvName","listEnvEnum","BrandClementine","BrandLegalstart","BrandComptalib","BrandPourcentage","BrandClems","BrandStatutsExpress","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';\nimport { BrandClems } from '../types/Enum/BrandClems';\nimport { BrandStatutsExpress } from '../types/Enum/BrandStatutsExpress';\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\nconst allBrands = ['Legalstart', 'Comptalib', 'Clementine', 'Pourcentage', 'Clems', 'StatutsExpress'] as const;\ntype BrandList = typeof allBrands[number];\n\ntype getBrandConfigParams = {\n idTypeBrand?: number,\n objectWaited?: string,\n nodeEnv?: string\n};\n\nconst getBrandNameByNodeEnv = (nodeEnv?: string): BrandList => {\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 if (env.indexOf('clems') > -1 || env.indexOf('Clems') > -1) {\n return 'Clems';\n }\n if (env.indexOf('statuts') > -1 || env.indexOf('Statuts') > -1) {\n return 'StatutsExpress';\n }\n }\n return 'Clementine';\n};\n\nconst isItThisEnv = (brandList: BrandList, nodeEnv?: string): boolean => {\n const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;\n return getBrandNameByNodeEnv(env) === brandList;\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, BrandClems, BrandStatutsExpress,\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, BrandClems, BrandStatutsExpress,\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 || email.indexOf('comptastartbyclementine.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, isItThisEnv, 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;AACA,IAAAK,WAAA,GAAA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AAC5B,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;EACnE,IAAI4B,KAAK,CAAC5B,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,YAAY;EAC5D,IAAI4B,KAAK,CAAC5B,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,qBAAqB;EAC9E,OAAO,IAAI;AACb,CAAC;AAAC6B,OAAA,CAGAd,cAAc,GAAdA,cAAc;AAAAc,OAAA,CAAE5B,WAAW,GAAXA,WAAW;AAAA4B,OAAA,CAAE1B,oBAAoB,GAApBA,oBAAoB;AAAA0B,OAAA,CAAEpC,qBAAqB,GAArBA,qBAAqB;AAAAoC,OAAA,CAAEF,eAAe,GAAfA,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.104",
|
|
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",
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { Resource } from '../Resource';
|
|
|
3
3
|
import {
|
|
4
4
|
ReadFile,
|
|
5
5
|
CreateFile,
|
|
6
|
-
QueryFileBuffer,
|
|
7
6
|
} from '../../types';
|
|
8
7
|
|
|
9
8
|
export class File extends Resource {
|
|
@@ -23,7 +22,7 @@ export class File extends Resource {
|
|
|
23
22
|
return this.axios.$get(`societies/${idSociety}/files/${id}`);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
getBuffer(idSociety: number, id: number
|
|
27
|
-
return this.axios.$get(`societies/${idSociety}/files/${id}/buffer`, {
|
|
25
|
+
getBuffer(idSociety: number, id: number): Promise<Buffer> {
|
|
26
|
+
return this.axios.$get(`societies/${idSociety}/files/${id}/buffer`, { responseType: 'blob' });
|
|
28
27
|
}
|
|
29
28
|
}
|
package/ts/types/Enum/Country.ts
CHANGED
|
@@ -243,7 +243,7 @@ export enum CountryId {
|
|
|
243
243
|
AUTRE = 242,
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
export const CountryList: Array<{ name: string; ISO3166: string | null; id: CountryId }> = [
|
|
246
|
+
export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_num?: number | null; id: CountryId }> = [
|
|
247
247
|
{ name: 'Afghanistan', ISO3166: 'AF', id: CountryId.AFGHANISTAN },
|
|
248
248
|
{ name: 'Afrique du Sud', ISO3166: 'ZA', id: CountryId.AFRIQUE_DU_SUD },
|
|
249
249
|
{ name: 'Albanie', ISO3166: 'AL', id: CountryId.ALBANIE },
|
|
@@ -309,7 +309,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; id: Coun
|
|
|
309
309
|
{ name: 'Fédération de Russie', ISO3166: 'RU', id: CountryId.FEDERATION_DE_RUSSIE },
|
|
310
310
|
{ name: 'Fidji', ISO3166: 'FJ', id: CountryId.FIDJI },
|
|
311
311
|
{ name: 'Finlande', ISO3166: 'FI', id: CountryId.FINLANDE },
|
|
312
|
-
{ name: 'France', ISO3166: 'FR', id: CountryId.FRANCE },
|
|
312
|
+
{ name: 'France', ISO3166: 'FR', ISO3166_num: 250, id: CountryId.FRANCE },
|
|
313
313
|
{ name: 'Gabon', ISO3166: 'GA', id: CountryId.GABON },
|
|
314
314
|
{ name: 'Gambie', ISO3166: 'GM', id: CountryId.GAMBIE },
|
|
315
315
|
{ name: 'Géorgie', ISO3166: 'GE', id: CountryId.GEORGIE },
|
|
@@ -24,6 +24,7 @@ export enum JobTitle {
|
|
|
24
24
|
EXECUTIVE_ASSISTANT = 23,
|
|
25
25
|
INTERNAL_CONTROL_MANAGER = 24,
|
|
26
26
|
HUMAN_RESOURCES_MANAGER = 25,
|
|
27
|
+
RECRUITMENT_MANAGER = 26,
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
|
|
@@ -152,4 +153,9 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
|
|
|
152
153
|
menText: 'Chargé des ressources humaines',
|
|
153
154
|
womenText: 'Chargée des ressources humaines',
|
|
154
155
|
},
|
|
156
|
+
{
|
|
157
|
+
id: JobTitle.RECRUITMENT_MANAGER,
|
|
158
|
+
menText: 'Chargé de recrutement',
|
|
159
|
+
womenText: 'Chargée de recrutement',
|
|
160
|
+
},
|
|
155
161
|
];
|
|
@@ -212,8 +212,8 @@ export const RoleDetail = {
|
|
|
212
212
|
colorPrimary: '#8765D0',
|
|
213
213
|
colorSecondary: '#DED7F6',
|
|
214
214
|
subRole: false,
|
|
215
|
-
phoneNumber: '',
|
|
216
|
-
phoneNumberPourcentage: '',
|
|
215
|
+
phoneNumber: '+33757597512', // mm que CS Clementine
|
|
216
|
+
phoneNumberPourcentage: '33756796318', // mm que sales Clementine
|
|
217
217
|
phoneNumberStatutsExpress: '',
|
|
218
218
|
},
|
|
219
219
|
HUMAN_RESSOURCES: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNumber, IsOptional } from 'class-validator';
|
|
2
2
|
import { IAccountingTransaction, IImmobilization } from '../../..';
|
|
3
3
|
import { IThirdParty } from '../../models/IThirdParty';
|
|
4
4
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
@@ -48,6 +48,12 @@ export class UpdateAccountingTransaction {
|
|
|
48
48
|
name?: string;
|
|
49
49
|
@ApiPropertyOptional()
|
|
50
50
|
amountAllTaxIncluded?: number;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsNumber()
|
|
55
|
+
idAccountant?: number;
|
|
56
|
+
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations
|
package/ts/types/index.ts
CHANGED
|
@@ -895,7 +895,6 @@ export * from './Interface/api/qonto/ProcessBankAccount';
|
|
|
895
895
|
export * from './Interface/api/qonto/Read';
|
|
896
896
|
export * from './Interface/api/file/Create';
|
|
897
897
|
export * from './Interface/api/file/Read';
|
|
898
|
-
export * from './Interface/api/file/Query';
|
|
899
898
|
export * from './Interface/api/societyConfig/update';
|
|
900
899
|
export * from './Interface/api/wallet/UpdateAttribution';
|
|
901
900
|
export * from './Interface/api/prestation/CreatePrestation';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -121,7 +121,7 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
const getBrandByEmail = (email: string): 'Legalstart' | 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {
|
|
124
|
-
if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
|
|
124
|
+
if (email.indexOf('legalstart.fr') > -1 || email.indexOf('comptastartbyclementine.fr') > -1) return 'Legalstart';
|
|
125
125
|
if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
|
|
126
126
|
if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
|
|
127
127
|
if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/file/Query.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe;IAExB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { ApiProperty } from '../../../../utils';
|
|
11
|
-
export class QueryFileBuffer {
|
|
12
|
-
}
|
|
13
|
-
__decorate([
|
|
14
|
-
ApiProperty(),
|
|
15
|
-
__metadata("design:type", String)
|
|
16
|
-
], QueryFileBuffer.prototype, "folder", void 0);
|
|
17
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/file/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,eAAe;CAG3B;AAFC;IAAC,WAAW,EAAE;;+CACG","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryFileBuffer {\n @ApiProperty()\n folder: string;\n}"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.QueryFileBuffer = undefined;
|
|
7
|
-
var _utils = require("../../../../utils");
|
|
8
|
-
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
9
|
-
var c = arguments.length,
|
|
10
|
-
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
11
|
-
d;
|
|
12
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
|
-
};
|
|
15
|
-
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
class QueryFileBuffer {}
|
|
19
|
-
exports.QueryFileBuffer = QueryFileBuffer;
|
|
20
|
-
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", String)], QueryFileBuffer.prototype, "folder", void 0);
|
|
21
|
-
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","names":["_utils","require","QueryFileBuffer","exports","__decorate","ApiProperty"],"sources":["../../../../../ts/types/Interface/api/file/Query.ts"],"sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryFileBuffer {\n @ApiProperty()\n folder: string;\n}"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;;;;;;;;;;;AAEM,MAAOC,eAAe;AAG3BC,OAAA,CAHYD,eAAe,GAAfA,eAAe;AAC1BE,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,gFACG"}
|