@silexpert/core 1.0.99 → 1.0.101

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 (63) hide show
  1. package/es/api/resources/BudgetInsight.d.ts +1 -0
  2. package/es/api/resources/BudgetInsight.d.ts.map +1 -1
  3. package/es/api/resources/BudgetInsight.js +3 -0
  4. package/es/api/resources/BudgetInsight.js.map +1 -1
  5. package/es/api/resources/Rule.d.ts +9 -0
  6. package/es/api/resources/Rule.d.ts.map +1 -0
  7. package/es/api/resources/Rule.js +10 -0
  8. package/es/api/resources/Rule.js.map +1 -0
  9. package/es/api/resources.d.ts +2 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +2 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/GeneralThirdParty.d.ts.map +1 -1
  14. package/es/types/Enum/GeneralThirdParty.js +59 -62
  15. package/es/types/Enum/GeneralThirdParty.js.map +1 -1
  16. package/es/types/Enum/RegistrationSource.d.ts +2 -0
  17. package/es/types/Enum/RegistrationSource.d.ts.map +1 -1
  18. package/es/types/Enum/RegistrationSource.js +2 -0
  19. package/es/types/Enum/RegistrationSource.js.map +1 -1
  20. package/es/types/Interface/api/rule/Query.d.ts +9 -0
  21. package/es/types/Interface/api/rule/Query.d.ts.map +1 -0
  22. package/es/types/Interface/api/rule/Query.js +31 -0
  23. package/es/types/Interface/api/rule/Query.js.map +1 -0
  24. package/es/types/Interface/api/rule/Read.d.ts +6 -0
  25. package/es/types/Interface/api/rule/Read.d.ts.map +1 -0
  26. package/es/types/Interface/api/rule/Read.js +2 -0
  27. package/es/types/Interface/api/rule/Read.js.map +1 -0
  28. package/es/types/index.d.ts +1 -0
  29. package/es/types/index.d.ts.map +1 -1
  30. package/es/types/index.js +1 -0
  31. package/es/types/index.js.map +1 -1
  32. package/es/utils/prestation.d.ts +2 -1
  33. package/es/utils/prestation.d.ts.map +1 -1
  34. package/es/utils/prestation.js +7 -2
  35. package/es/utils/prestation.js.map +1 -1
  36. package/js/api/resources/BudgetInsight.js +4 -0
  37. package/js/api/resources/BudgetInsight.js.map +1 -1
  38. package/js/api/resources/Rule.js +26 -0
  39. package/js/api/resources/Rule.js.map +1 -0
  40. package/js/api/resources.js +4 -1
  41. package/js/api/resources.js.map +1 -1
  42. package/js/types/Enum/GeneralThirdParty.js +62 -71
  43. package/js/types/Enum/GeneralThirdParty.js.map +1 -1
  44. package/js/types/Enum/RegistrationSource.js +2 -0
  45. package/js/types/Enum/RegistrationSource.js.map +1 -1
  46. package/js/types/Interface/api/rule/Query.js +37 -0
  47. package/js/types/Interface/api/rule/Query.js.map +1 -0
  48. package/js/types/Interface/api/rule/Read.js +6 -0
  49. package/js/types/Interface/api/rule/Read.js.map +1 -0
  50. package/js/types/index.js +12 -0
  51. package/js/types/index.js.map +1 -1
  52. package/js/utils/prestation.js +8 -1
  53. package/js/utils/prestation.js.map +1 -1
  54. package/package.json +1 -1
  55. package/ts/api/resources/BudgetInsight.ts +4 -0
  56. package/ts/api/resources/Rule.ts +14 -0
  57. package/ts/api/resources.ts +2 -0
  58. package/ts/types/Enum/GeneralThirdParty.ts +59 -62
  59. package/ts/types/Enum/RegistrationSource.ts +2 -0
  60. package/ts/types/Interface/api/rule/Query.ts +17 -0
  61. package/ts/types/Interface/api/rule/Read.ts +5 -0
  62. package/ts/types/index.ts +1 -0
  63. package/ts/utils/prestation.ts +8 -2
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isCreation = exports.isOnlyJuridic = exports.isOnlySocial = exports.isOnlyPrevi = exports.isOtherSocialMission = exports.isAdditionalPresta = exports.isOtherJuridicalMissions = exports.isOtherAccountingMissions = undefined;
6
+ exports.isExpress = exports.isCreation = exports.isOnlyJuridic = exports.isOnlySocial = exports.isOnlyPrevi = exports.isOtherSocialMission = exports.isAdditionalPresta = exports.isOtherJuridicalMissions = exports.isOtherAccountingMissions = undefined;
7
7
 
8
8
  var _PrestationType = require("../types/Enum/PrestationType");
9
9
 
@@ -23,6 +23,12 @@ const isOnlyJuridic = idPrestationList => !idPrestationList.filter(idPL => ![_Pr
23
23
 
24
24
  const isCreation = idPrestationList => idPrestationList.includes(_PrestationType.PrestationType.CREATION_SOCIETE);
25
25
 
26
+ const isExpress = idPrestationList => {
27
+ const prestationDetailValues = Object.values(_PrestationType.PrestationDetail);
28
+ const prestaList = prestationDetailValues.find(pr => pr.id === idPrestationList);
29
+ return !!prestaList.isBack;
30
+ };
31
+
26
32
  exports.isOtherAccountingMissions = isOtherAccountingMissions;
27
33
  exports.isOtherJuridicalMissions = isOtherJuridicalMissions;
28
34
  exports.isAdditionalPresta = isAdditionalPresta;
@@ -31,4 +37,5 @@ exports.isOnlyPrevi = isOnlyPrevi;
31
37
  exports.isOnlySocial = isOnlySocial;
32
38
  exports.isOnlyJuridic = isOnlyJuridic;
33
39
  exports.isCreation = isCreation;
40
+ exports.isExpress = isExpress;
34
41
  //# sourceMappingURL=prestation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prestation.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,yBAAyB,GAAIC,gBAAD,IAAuC,CACvEC,+BAAeC,YADwD,EAEvED,+BAAeE,mBAFwD,EAGvEF,+BAAeG,wCAHwD,EAIvEH,+BAAeI,uBAJwD,EAKvEJ,+BAAeK,GALwD,EAMvEL,+BAAeM,aANwD,EAOvEN,+BAAeO,kBAPwD,EAOpCC,QAPoC,CAO3BT,gBAP2B,CAAzE;;AASA,MAAMU,wBAAwB,GAAG,CAACC,WAAD,EAAsBC,SAAtB,EAAyCZ,gBAAzC,KAA+EA,gBAAgB,KAAKC,+BAAeY,iBAApC,IAAyDD,SAAzD,IAAsED,WAAtL;;AAEA,MAAMG,oBAAoB,GAAId,gBAAD,IAAuCA,gBAAgB,KAAKC,+BAAec,+BAAxG;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,MAAD,EAAiBL,SAAjB,KAAgD,CAACK,MAAD,IAAWL,SAAtF;;AAEA,MAAMM,WAAW,GAAIlB,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeC,YAAhB,EAA8BD,+BAAeO,kBAA7C,EAAiEP,+BAAeoB,KAAhF,EAAuFZ,QAAvF,CAAgGW,IAAhG,CAA1C,EAAiJE,MAA9M;;AAEA,MAAMC,YAAY,GAAIvB,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeuB,UAAhB,EAA4BvB,+BAAewB,MAA3C,EAAmDhB,QAAnD,CAA4DW,IAA5D,CAA1C,EAA6GE,MAA3K;;AAEA,MAAMI,aAAa,GAAI1B,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeY,iBAAhB,EAAmCJ,QAAnC,CAA4CW,IAA5C,CAA1C,EAA6FE,MAA5J;;AAEA,MAAMK,UAAU,GAAI3B,gBAAD,IAAwCA,gBAAgB,CAACS,QAAjB,CAA0BR,+BAAe2B,gBAAzC,CAA3D;;QAGE7B,yB,GAAAA,yB;QAA2BW,wB,GAAAA,wB;QAA0BM,kB,GAAAA,kB;QAAoBF,oB,GAAAA,oB;QAAsBI,W,GAAAA,W;QAAaK,Y,GAAAA,Y;QAAcG,a,GAAAA,a;QAAeC,U,GAAAA,U","names":["isOtherAccountingMissions","idPrestationList","PrestationType","PREVISIONNEL","BILAN_INTERMEDIAIRE","AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE","AUTRE_MISSION_COMPTABLE","TVS","ETUDE_FISCALE","BILAN_PREVISIONNEL","includes","isOtherJuridicalMissions","isJuridique","isCatalog","GESTION_JURIDIQUE","isOtherSocialMission","AUTRE_MISSION_SOCIALE_HORS_PAIE","isAdditionalPresta","hidden","isOnlyPrevi","filter","idPL","PV_AG","length","isOnlySocial","FRUCTUPAIE","SOCIAL","isOnlyJuridic","isCreation","CREATION_SOCIETE"],"sourceRoot":"","sources":["../../ts/utils/prestation.ts"],"sourcesContent":["import { PrestationType } from '../types/Enum/PrestationType';\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation,\n};"]}
1
+ {"version":3,"file":"prestation.js","mappings":";;;;;;;AAAA;;AAEA,MAAMA,yBAAyB,GAAIC,gBAAD,IAAuC,CACvEC,+BAAeC,YADwD,EAEvED,+BAAeE,mBAFwD,EAGvEF,+BAAeG,wCAHwD,EAIvEH,+BAAeI,uBAJwD,EAKvEJ,+BAAeK,GALwD,EAMvEL,+BAAeM,aANwD,EAOvEN,+BAAeO,kBAPwD,EAOpCC,QAPoC,CAO3BT,gBAP2B,CAAzE;;AASA,MAAMU,wBAAwB,GAAG,CAACC,WAAD,EAAsBC,SAAtB,EAAyCZ,gBAAzC,KAA+EA,gBAAgB,KAAKC,+BAAeY,iBAApC,IAAyDD,SAAzD,IAAsED,WAAtL;;AAEA,MAAMG,oBAAoB,GAAId,gBAAD,IAAuCA,gBAAgB,KAAKC,+BAAec,+BAAxG;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,MAAD,EAAiBL,SAAjB,KAAgD,CAACK,MAAD,IAAWL,SAAtF;;AAEA,MAAMM,WAAW,GAAIlB,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeC,YAAhB,EAA8BD,+BAAeO,kBAA7C,EAAiEP,+BAAeoB,KAAhF,EAAuFZ,QAAvF,CAAgGW,IAAhG,CAA1C,EAAiJE,MAA9M;;AAEA,MAAMC,YAAY,GAAIvB,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeuB,UAAhB,EAA4BvB,+BAAewB,MAA3C,EAAmDhB,QAAnD,CAA4DW,IAA5D,CAA1C,EAA6GE,MAA3K;;AAEA,MAAMI,aAAa,GAAI1B,gBAAD,IAAwC,CAACA,gBAAgB,CAACmB,MAAjB,CAAyBC,IAAD,IAAiB,CAAC,CAACnB,+BAAeY,iBAAhB,EAAmCJ,QAAnC,CAA4CW,IAA5C,CAA1C,EAA6FE,MAA5J;;AAEA,MAAMK,UAAU,GAAI3B,gBAAD,IAAwCA,gBAAgB,CAACS,QAAjB,CAA0BR,+BAAe2B,gBAAzC,CAA3D;;AAEA,MAAMC,SAAS,GAAI7B,gBAAD,IAAqC;EACrD,MAAM8B,sBAAsB,GAAGC,MAAM,CAACC,MAAP,CAAcC,gCAAd,CAA/B;EACA,MAAMC,UAAU,GAAGJ,sBAAsB,CAACK,IAAvB,CAA6BC,EAAD,IAAYA,EAAE,CAACC,EAAH,KAAUrC,gBAAlD,CAAnB;EACA,OAAO,CAAC,CAACkC,UAAU,CAACI,MAApB;AACD,CAJD;;QAOEvC,yB,GAAAA,yB;QAA2BW,wB,GAAAA,wB;QAA0BM,kB,GAAAA,kB;QAAoBF,oB,GAAAA,oB;QAAsBI,W,GAAAA,W;QAAaK,Y,GAAAA,Y;QAAcG,a,GAAAA,a;QAAeC,U,GAAAA,U;QAAYE,S,GAAAA,S","names":["isOtherAccountingMissions","idPrestationList","PrestationType","PREVISIONNEL","BILAN_INTERMEDIAIRE","AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE","AUTRE_MISSION_COMPTABLE","TVS","ETUDE_FISCALE","BILAN_PREVISIONNEL","includes","isOtherJuridicalMissions","isJuridique","isCatalog","GESTION_JURIDIQUE","isOtherSocialMission","AUTRE_MISSION_SOCIALE_HORS_PAIE","isAdditionalPresta","hidden","isOnlyPrevi","filter","idPL","PV_AG","length","isOnlySocial","FRUCTUPAIE","SOCIAL","isOnlyJuridic","isCreation","CREATION_SOCIETE","isExpress","prestationDetailValues","Object","values","PrestationDetail","prestaList","find","pr","id","isBack"],"sourceRoot":"","sources":["../../ts/utils/prestation.ts"],"sourcesContent":["import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';\n\nconst isOtherAccountingMissions = (idPrestationList: number): boolean => [\n PrestationType.PREVISIONNEL,\n PrestationType.BILAN_INTERMEDIAIRE,\n PrestationType.AVANCE_OU_ABANDON_COMPTE_COURANT_ASSOCIE,\n PrestationType.AUTRE_MISSION_COMPTABLE,\n PrestationType.TVS,\n PrestationType.ETUDE_FISCALE,\n PrestationType.BILAN_PREVISIONNEL].includes(idPrestationList);\n\nconst isOtherJuridicalMissions = (isJuridique:boolean, isCatalog:boolean, idPrestationList: number): boolean => idPrestationList !== PrestationType.GESTION_JURIDIQUE && isCatalog && isJuridique;\n\nconst isOtherSocialMission = (idPrestationList: number): boolean => idPrestationList === PrestationType.AUTRE_MISSION_SOCIALE_HORS_PAIE;\n\nconst isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidden && isCatalog;\n\nconst isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;\n\nconst isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;\n\nconst isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;\n\nconst isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);\n\nconst isExpress = (idPrestationList: number):boolean => {\n const prestationDetailValues = Object.values(PrestationDetail) as any;\n const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);\n return !!prestaList.isBack;\n};\n\nexport {\n isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress,\n};"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
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",
@@ -9,4 +9,8 @@ export class BudgetInsight extends Resource {
9
9
  updateOrCreateToken(payload: CreateOrUpdateAccessToken): Promise<IAccessToken> {
10
10
  return this.axios.$post('/connectors/budget-insight/tokens', payload);
11
11
  }
12
+
13
+ authentificate(): Promise<IAccessToken> {
14
+ return this.axios.$post('/connectors/budget-insight/authentificate');
15
+ }
12
16
  }
@@ -0,0 +1,14 @@
1
+ import { BasePaginate } from '../../types';
2
+ import { QueryRule, QueryMostFrequent } from '../../types/Interface/api/rule/Query';
3
+ import { ReadMostFrequentOccurence } from '../../types/Interface/api/rule/Read';
4
+ import { Resource } from '../Resource';
5
+
6
+ export class Rule extends Resource {
7
+ getAll(params: QueryRule): Promise<BasePaginate<Rule>> {
8
+ return this.axios.$get('rules', { params });
9
+ }
10
+
11
+ getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]> {
12
+ return this.axios.$get('rules/most-frequent', { params });
13
+ }
14
+ }
@@ -111,6 +111,7 @@ import { Commercial } from './resources/Commercial';
111
111
  import { Facturation } from './resources/Facturation';
112
112
  import { Inpi } from './resources/Inpi';
113
113
  import { Prestation } from './resources/prestation';
114
+ import { Rule } from './resources/Rule';
114
115
 
115
116
  export const resources = {
116
117
  simulation: Simulation,
@@ -226,4 +227,5 @@ export const resources = {
226
227
  inpi: Inpi,
227
228
  prestation: Prestation,
228
229
  sources: Sources,
230
+ rule: Rule,
229
231
  };
@@ -5,7 +5,7 @@ export type GeneralThirdParty = {
5
5
 
6
6
  export const generalThirdParties: GeneralThirdParty[] = [
7
7
  { company: 'ACTION FRANCE', idAccount: 24 },
8
- { company: 'ADECCO FRANCE', idAccount: 97 },
8
+ { company: 'ADECCO FRANCE', idAccount: 58517 },
9
9
  { company: 'AEROPORTS DE PARIS', idAccount: 58384 },
10
10
  { company: 'AIR LIQUIDE FRANCE INDUSTRIE', idAccount: 21 },
11
11
  { company: 'AIRBUS', idAccount: 58383 },
@@ -16,8 +16,8 @@ export const generalThirdParties: GeneralThirdParty[] = [
16
16
  { company: 'AS 24', idAccount: 22 },
17
17
  { company: 'AUCHAN CARBURANT', idAccount: 22 },
18
18
  { company: 'AUCHAN HYPERMARCHE', idAccount: 117 },
19
- { company: 'AUCHAN SUPERMARCHE', idAccount: 58383 },
20
- { company: 'AUTOROUTES DU SUD DE LA FRANCE', idAccount: 58383 },
19
+ { company: 'AUCHAN SUPERMARCHE', idAccount: 117 },
20
+ { company: 'AUTOROUTES DU SUD DE LA FRANCE', idAccount: 58384 },
21
21
  { company: 'BOLLORE ENERGY', idAccount: 21 },
22
22
  { company: 'BOULANGER', idAccount: 24 },
23
23
  { company: 'BOUYGUES TELECOM', idAccount: 123 },
@@ -25,15 +25,15 @@ export const generalThirdParties: GeneralThirdParty[] = [
25
25
  { company: 'BRICO DEPOT', idAccount: 24 },
26
26
  { company: 'BUT INTERNATIONAL', idAccount: 280 },
27
27
  { company: 'BUTAGAZ', idAccount: 21 },
28
- { company: 'CARREFOUR HYPERMARCHES', idAccount: 117 },
28
+ { company: 'CARREFOUR HYPERMARCHES', idAccount: 58383 },
29
29
  { company: 'CARREFOUR STATIONS SERVICE', idAccount: 22 },
30
- { company: 'CARREFOUR SUPPLY CHAIN', idAccount: 58383 },
30
+ { company: 'CARREFOUR SUPPLY CHAIN', idAccount: 117 },
31
31
  { company: 'CASTORAMA FRANCE', idAccount: 24 },
32
32
  { company: 'CDISCOUNT', idAccount: 24 },
33
33
  { company: 'CHRONOPOST', idAccount: 115 },
34
34
  { company: 'COFIROUTE', idAccount: 58384 },
35
35
  { company: 'CONFORAMA FRANCE', idAccount: 24 },
36
- { company: 'CORA', idAccount: 58383 },
36
+ { company: 'CORA', idAccount: 117 },
37
37
  { company: 'DALKIA', idAccount: 21 },
38
38
  { company: 'DELL', idAccount: 27586 },
39
39
  { company: 'DIAC LOCATION', idAccount: 80 },
@@ -58,29 +58,28 @@ export const generalThirdParties: GeneralThirdParty[] = [
58
58
  { company: 'LEROY MERLIN FRANCE', idAccount: 24 },
59
59
  { company: 'LOXAM', idAccount: 80 },
60
60
  { company: 'LYONNAISE DES EAUX FRANCE', idAccount: 58366 },
61
- { company: 'MANPOWER FRANCE', idAccount: 97 },
61
+ { company: 'MANPOWER FRANCE', idAccount: 58517 },
62
62
  { company: 'MICHELIN', idAccount: 58379 },
63
- { company: 'MCDONALD\'S FRANCE', idAccount: 58383 },
64
- { company: 'METRO FRANCE', idAccount: 58514 },
65
- { company: 'MEUBLES IKEA FRANCE', idAccount: 24 },
66
- { company: 'MONOPRIX', idAccount: 58383 },
63
+ { company: 'MCDONALD\'S FRANCE', idAccount: 117 },
64
+ { company: 'METRO FRANCE', idAccount: 58357 },
65
+ { company: 'IKEA', idAccount: 24 },
66
+ { company: 'MONOPRIX', idAccount: 117 },
67
67
  { company: 'NORAUTO FRANCE', idAccount: 58379 },
68
68
  { company: 'ORANGE', idAccount: 123 },
69
69
  { company: 'RANDSTAD', idAccount: 58517 },
70
- { company: 'RELAIS FNAC', idAccount: 24 },
70
+ { company: 'FNAC', idAccount: 24 },
71
71
  { company: 'SAMSUNG ELECTRONICS FRANCE', idAccount: 27586 },
72
72
  { company: 'SANEF', idAccount: 58384 },
73
- { company: 'SNCF RESEAU', idAccount: 58383 },
74
- { company: 'SNCF VOYAGEURS', idAccount: 58383 },
73
+ { company: 'SNCF', idAccount: 58383 },
75
74
  { company: 'AIR FRANCE', idAccount: 117 },
76
75
  { company: 'LECLERC', idAccount: 117 },
77
76
  { company: 'SFR FIBRE SAS', idAccount: 123 },
78
- { company: 'SUPERMARCHES MATCH', idAccount: 58383 },
77
+ { company: 'SUPERMARCHES MATCH', idAccount: 117 },
79
78
  { company: 'TOTAL ENERGIE GAZ', idAccount: 21 },
80
79
  { company: 'TOTAL', idAccount: 22 },
81
80
  { company: 'TOTALENERGIES ELECTRICITE ET GAZ FRANCE', idAccount: 21 },
82
81
  { company: 'TRANSGOURMET OPERATIONS', idAccount: 58357 },
83
- { company: 'UBER EATS FRANCE SAS', idAccount: 58383 },
82
+ { company: 'UBER EATS FRANCE SAS', idAccount: 117 },
84
83
  { company: 'VENTE PRIVEE.COM', idAccount: 24 },
85
84
  { company: 'VINCI', idAccount: 58384 },
86
85
  { company: 'VOLKSWAGEN GROUP FRANCE', idAccount: 73 },
@@ -96,17 +95,17 @@ export const generalThirdParties: GeneralThirdParty[] = [
96
95
  { company: 'INTERMARCHE', idAccount: 58383 },
97
96
  { company: 'NESPRESSO', idAccount: 24 },
98
97
  { company: 'VISTAPRINT', idAccount: 108 },
99
- { company: 'BUFFALO', idAccount: 58383 },
100
- { company: 'BURGER KING', idAccount: 58383 },
101
- { company: 'KFC', idAccount: 58383 },
102
- { company: 'QUICK', idAccount: 58383 },
103
- { company: 'SUBWAY', idAccount: 58383 },
98
+ { company: 'BUFFALO', idAccount: 117 },
99
+ { company: 'BURGER KING', idAccount: 117 },
100
+ { company: 'KFC', idAccount: 117 },
101
+ { company: 'QUICK', idAccount: 117 },
102
+ { company: 'SUBWAY', idAccount: 117 },
104
103
  { company: 'YONOS', idAccount: 80 },
105
- { company: 'CAPRI', idAccount: 58383 },
106
- { company: 'OVH', idAccount: 80 },
104
+ { company: 'CAPRI', idAccount: 117 },
105
+ { company: 'OVH', idAccount: 123 },
107
106
  { company: 'FEU VERT', idAccount: 58379 },
108
107
  { company: 'CARGLASS', idAccount: 58379 },
109
- { company: 'HIPPOPOTAMUS', idAccount: 58383 },
108
+ { company: 'HIPPOPOTAMUS', idAccount: 117 },
110
109
  { company: 'RODI', idAccount: 58379 },
111
110
  { company: 'HARMONI MUTUELLE', idAccount: 27292 },
112
111
  { company: 'SPEEDY', idAccount: 58379 },
@@ -118,25 +117,25 @@ export const generalThirdParties: GeneralThirdParty[] = [
118
117
  { company: 'MAAF', idAccount: 27292 },
119
118
  { company: 'MMA ', idAccount: 27292 },
120
119
  { company: 'GMF', idAccount: 27292 },
121
- { company: 'Pizza Hut', idAccount: 58383 },
122
- { company: 'DEL ARTE', idAccount: 58383 },
123
- { company: 'CHEZ PAUL', idAccount: 58383 },
120
+ { company: 'Pizza Hut', idAccount: 117 },
121
+ { company: 'DEL ARTE', idAccount: 117 },
122
+ { company: 'CHEZ PAUL', idAccount: 117 },
124
123
  { company: 'ELEPHANT BLEU', idAccount: 58379 },
125
- { company: 'LEON', idAccount: 58383 },
126
- { company: 'MARIE BLACHERE', idAccount: 58383 },
127
- { company: 'AU BUREAU', idAccount: 58383 },
124
+ { company: 'LEON', idAccount: 117 },
125
+ { company: 'MARIE BLACHERE', idAccount: 117 },
126
+ { company: 'AU BUREAU', idAccount: 117 },
128
127
  { company: 'BRICORAMA', idAccount: 24 },
129
128
  { company: 'MONSIEUR BRICOLAGE', idAccount: 24 },
130
129
  { company: 'COMPTALIB', idAccount: 80 },
131
130
  { company: 'EXPERTISE CHOIX B', idAccount: 104 },
132
- { company: 'FLUNCH', idAccount: 58383 },
131
+ { company: 'FLUNCH', idAccount: 117 },
133
132
  { company: 'BUT', idAccount: 280 },
134
- { company: 'OFFICE DEPOT', idAccount: 24 },
133
+ { company: 'OFFICE DEPOT', idAccount: 25 },
135
134
  { company: 'PEGASE', idAccount: 80 },
136
135
  { company: 'SECURITAS', idAccount: 80 },
137
136
  { company: 'BUREAU VALLEE', idAccount: 25 },
138
137
  { company: 'YOLO', idAccount: 58381 },
139
- { company: 'ALDI', idAccount: 58383 },
138
+ { company: 'ALDI', idAccount: 117 },
140
139
  { company: 'APPLE', idAccount: 27586 },
141
140
  { company: 'RATP', idAccount: 58383 },
142
141
  { company: 'CLEMENTINE', idAccount: 104 },
@@ -149,56 +148,56 @@ export const generalThirdParties: GeneralThirdParty[] = [
149
148
  { company: 'F1', idAccount: 58382 },
150
149
  { company: 'ACCORD HOTEL', idAccount: 58382 },
151
150
  { company: 'NOVOTEL', idAccount: 58382 },
152
- { company: '1&1 IONOS', idAccount: 80 },
151
+ { company: '1&1 IONOS', idAccount: 123 },
153
152
  { company: 'BANQUE POSTAL', idAccount: 126 },
154
153
  { company: 'BOOKING', idAccount: 58382 },
155
- { company: 'LIDL', idAccount: 58383 },
154
+ { company: 'LIDL', idAccount: 117 },
156
155
  { company: 'GREFFE DU TRIBUNAL ', idAccount: 105 },
157
- { company: 'RETIF', idAccount: 24 },
158
- { company: 'ADOBE', idAccount: 80 },
159
- { company: 'AUTOGRILL', idAccount: 58383 },
156
+ { company: 'RETIF', idAccount: 18 },
157
+ { company: 'ADOBE', idAccount: 123 },
158
+ { company: 'AUTOGRILL', idAccount: 117 },
160
159
  { company: 'EUROPCAR', idAccount: 79 },
161
160
  { company: 'AVIS', idAccount: 79 },
162
161
  { company: 'HERTZ', idAccount: 79 },
163
162
  { company: 'SIXT', idAccount: 79 },
164
163
  { company: 'DHL', idAccount: 115 },
165
164
  { company: 'EURO-INFORMATION', idAccount: 80 },
166
- { company: 'FRANPRIX', idAccount: 58383 },
165
+ { company: 'FRANPRIX', idAccount: 117 },
167
166
  { company: 'CULTURA', idAccount: 24 },
168
167
  { company: 'UPS', idAccount: 115 },
169
168
  { company: 'SACEM', idAccount: 17293 },
170
169
  { company: 'SOSH', idAccount: 123 },
171
- { company: 'MAXICOFEE', idAccount: 58383 },
170
+ { company: 'MAXICOFEE', idAccount: 117 },
172
171
  { company: 'LOXAM', idAccount: 80 },
173
172
  { company: 'EASYJET', idAccount: 117 },
174
173
  { company: 'SEDOMICILIER', idAccount: 80 },
175
- { company: 'SAGE', idAccount: 80 },
176
- { company: 'STARBUCK', idAccount: 58383 },
174
+ { company: 'SAGE', idAccount: 17293 },
175
+ { company: 'STARBUCK', idAccount: 117 },
177
176
  { company: 'TOTAL RELAIS', idAccount: 22 },
178
177
  { company: 'AVIADAC', idAccount: 22 },
179
178
  { company: 'LEGALSTART', idAccount: 58381 },
180
- { company: 'SHOPIFY', idAccount: 80 },
179
+ { company: 'SHOPIFY', idAccount: 17293 },
181
180
  { company: 'VEOLIA', idAccount: 58366 },
182
- { company: 'FRANCE DISTRIBUTION', idAccount: 58514 },
181
+ { company: 'FRANCE DISTRIBUTION', idAccount: 58357 },
183
182
  { company: 'GIFI ', idAccount: 24 },
184
- { company: 'LEADER PRICE', idAccount: 58383 },
183
+ { company: 'LEADER PRICE', idAccount: 117 },
185
184
  { company: 'EUROMASTER', idAccount: 58379 },
186
185
  { company: 'ALLOPNEUS', idAccount: 58379 },
187
- { company: 'CANVA', idAccount: 80 },
186
+ { company: 'CANVA', idAccount: 123 },
188
187
  { company: 'RS COMPONENT', idAccount: 24 },
189
188
  { company: 'CAMPANILE', idAccount: 58382 },
190
189
  { company: 'EXAPRINT', idAccount: 108 },
191
190
  { company: 'COLISSIMO', idAccount: 122 },
192
- { company: 'INDEED', idAccount: 80 },
191
+ { company: 'INDEED', idAccount: 108 },
193
192
  { company: 'AVOCAT', idAccount: 58381 },
194
193
  { company: 'OSCARO', idAccount: 24 },
195
- { company: 'LIXXBAIL', idAccount: 58375 },
194
+ { company: 'LIXXBAIL', idAccount: 73 },
196
195
  { company: 'GRENKE', idAccount: 80 },
197
196
  { company: 'POINT P', idAccount: 58379 },
198
197
  { company: 'AUTOSUR', idAccount: 58379 },
199
198
  { company: 'SUEZ', idAccount: 21 },
200
- { company: 'NORTON', idAccount: 80 },
201
- { company: 'AVAST ', idAccount: 80 },
199
+ { company: 'NORTON', idAccount: 17293 },
200
+ { company: 'AVAST ', idAccount: 17293 },
202
201
  { company: 'TRANSGOURMET', idAccount: 58357 },
203
202
  { company: 'PROMOCASH', idAccount: 58357 },
204
203
  { company: 'POMONA', idAccount: 58357 },
@@ -206,21 +205,18 @@ export const generalThirdParties: GeneralThirdParty[] = [
206
205
  { company: 'TERRE AZUR', idAccount: 58357 },
207
206
  { company: 'RELAI D\'OR', idAccount: 58357 },
208
207
  { company: 'INDIGO', idAccount: 58384 },
209
- { company: 'GANDI', idAccount: 80 },
208
+ { company: 'GANDI', idAccount: 123 },
210
209
  { company: 'STATION ESSENCE', idAccount: 22 },
211
- { company: 'GEDIMAT', idAccount: 24 },
212
- { company: 'BIGMAT', idAccount: 24 },
210
+ { company: 'GEDIMAT', idAccount: 18 },
211
+ { company: 'BIGMAT', idAccount: 18 },
213
212
  { company: 'SOCIETE.COM', idAccount: 105 },
214
213
  { company: 'DOUGS', idAccount: 58381 },
215
214
  { company: 'SHUTTERSTOCK', idAccount: 108 },
216
- { company: 'QUICKBOOKS', idAccount: 80 },
217
- { company: 'WIX.COM', idAccount: 80 },
215
+ { company: 'QUICKBOOKS', idAccount: 17293 },
216
+ { company: 'WIX.COM', idAccount: 123 },
218
217
  { company: 'MIDAS', idAccount: 58379 },
219
218
  { company: 'RYANAIR', idAccount: 58383 },
220
219
  { company: 'REXEL', idAccount: 18 },
221
- { company: 'INFOGREFFE', idAccount: 105 },
222
- { company: 'POURCENTAGE', idAccount: 104 },
223
- { company: 'ENI', idAccount: 21 },
224
220
  { company: 'COYOTE ', idAccount: 80 },
225
221
  { company: 'Bank of Africa', idAccount: 126 },
226
222
  { company: 'Banque BCP', idAccount: 126 },
@@ -232,7 +228,7 @@ export const generalThirdParties: GeneralThirdParty[] = [
232
228
  { company: 'Banque Transatlantique', idAccount: 126 },
233
229
  { company: 'Boursorama', idAccount: 126 },
234
230
  { company: 'Crédit Coopératif', idAccount: 126 },
235
- { company: 'docusign', idAccount: 80 },
231
+ { company: 'Docusign', idAccount: 17293 },
236
232
  { company: 'AMEN', idAccount: 80 },
237
233
  { company: 'Gaz de Bordeaux', idAccount: 21 },
238
234
  { company: 'Hello bank!', idAccount: 126 },
@@ -249,10 +245,11 @@ export const generalThirdParties: GeneralThirdParty[] = [
249
245
  { company: 'VELIB ', idAccount: 117 },
250
246
  { company: 'WELCOME TO THE JUNGLE', idAccount: 80 },
251
247
  { company: 'ZENDESK', idAccount: 80 },
252
- { company: 'ZOOM', idAccount: 80 },
248
+ { company: 'ZOOM', idAccount: 123 },
253
249
  { company: 'PWC', idAccount: 104 },
254
250
  { company: 'SO YOU START', idAccount: 80 },
255
251
  { company: 'ZOHO', idAccount: 80 },
256
- { company: 'TIIME', idAccount: 80 },
257
- { company: 'PAYFIT', idAccount: 80 },
252
+ { company: 'TIIME', idAccount: 17293 },
253
+ { company: 'PAYFIT', idAccount: 58517 },
254
+ { company: 'INFOGREFFE', idAccount: 105 },
258
255
  ];
@@ -1,4 +1,6 @@
1
1
  export enum RegistrationSource {
2
+ INCOMING_CALL = 2,
3
+ CHAT = 29,
2
4
  ONLINE_SUBSCRIPTION = 70,
3
5
  PARTNERED_ACCOUNTANT = 90,
4
6
  }
@@ -0,0 +1,17 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryRule {
4
+ @ApiProperty()
5
+ limit: number;
6
+
7
+ @ApiProperty()
8
+ page: number;
9
+
10
+ @ApiPropertyOptional()
11
+ search?: string;
12
+ }
13
+
14
+ export class QueryMostFrequent {
15
+ @ApiPropertyOptional()
16
+ search?: string;
17
+ }
@@ -0,0 +1,5 @@
1
+ export type ReadMostFrequentOccurence = {
2
+ search: string;
3
+ nb: number;
4
+ designation: string
5
+ };
package/ts/types/index.ts CHANGED
@@ -850,6 +850,7 @@ export * from './Interface/api/gedFile/updateGedFile';
850
850
  export * from './Interface/api/iDocus/iDocus';
851
851
  export * from './Interface/api/iDocus/CreateExport';
852
852
  export * from './Interface/api/pdf/ReadPdftkizer';
853
+ export * from './Interface/api/rule/Query';
853
854
 
854
855
  // Enums types
855
856
  export * from './Interface/enum/Util';
@@ -1,4 +1,4 @@
1
- import { PrestationType } from '../types/Enum/PrestationType';
1
+ import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';
2
2
 
3
3
  const isOtherAccountingMissions = (idPrestationList: number): boolean => [
4
4
  PrestationType.PREVISIONNEL,
@@ -23,6 +23,12 @@ const isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.
23
23
 
24
24
  const isCreation = (idPrestationList: number[]):boolean => idPrestationList.includes(PrestationType.CREATION_SOCIETE);
25
25
 
26
+ const isExpress = (idPrestationList: number):boolean => {
27
+ const prestationDetailValues = Object.values(PrestationDetail) as any;
28
+ const prestaList = prestationDetailValues.find((pr:any) => pr.id === idPrestationList);
29
+ return !!prestaList.isBack;
30
+ };
31
+
26
32
  export {
27
- isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation,
33
+ isOtherAccountingMissions, isOtherJuridicalMissions, isAdditionalPresta, isOtherSocialMission, isOnlyPrevi, isOnlySocial, isOnlyJuridic, isCreation, isExpress,
28
34
  };