@silexpert/core 0.4.267 → 0.4.269

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 (52) hide show
  1. package/es/api/resources/GeneralLedger.d.ts +1 -1
  2. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/es/api/resources/GeneralLedger.js +2 -2
  4. package/es/api/resources/GeneralLedger.js.map +1 -1
  5. package/es/types/Enum/BrandClementine.d.ts +9 -0
  6. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  7. package/es/types/Enum/BrandClementine.js +6 -0
  8. package/es/types/Enum/BrandClementine.js.map +1 -1
  9. package/es/types/Enum/BrandComptalib.d.ts +85 -0
  10. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  11. package/es/types/Enum/BrandComptalib.js +6 -0
  12. package/es/types/Enum/BrandComptalib.js.map +1 -1
  13. package/es/types/Enum/BrandPourcentage.d.ts +1 -0
  14. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  15. package/es/types/Enum/BrandPourcentage.js +2 -1
  16. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  17. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +1 -0
  18. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
  19. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +7 -1
  20. package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  21. package/es/types/Interface/api/revision/QueryRevisionAccount.js +1 -1
  22. package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  23. package/es/types/Interface/api/revision/ReadRevision.d.ts +2 -1
  24. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -1
  25. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -1
  26. package/es/utils/brands.d.ts +1 -1
  27. package/es/utils/brands.d.ts.map +1 -1
  28. package/es/utils/brands.js +8 -26
  29. package/es/utils/brands.js.map +1 -1
  30. package/js/api/resources/GeneralLedger.js +2 -2
  31. package/js/api/resources/GeneralLedger.js.map +1 -1
  32. package/js/types/Enum/BrandClementine.js +6 -0
  33. package/js/types/Enum/BrandClementine.js.map +1 -1
  34. package/js/types/Enum/BrandComptalib.js +6 -0
  35. package/js/types/Enum/BrandComptalib.js.map +1 -1
  36. package/js/types/Enum/BrandPourcentage.js +2 -1
  37. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  38. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +2 -0
  39. package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
  40. package/js/types/Interface/api/revision/QueryRevisionAccount.js +1 -1
  41. package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
  42. package/js/utils/brands.js +7 -26
  43. package/js/utils/brands.js.map +1 -1
  44. package/package.json +1 -1
  45. package/ts/api/resources/GeneralLedger.ts +2 -2
  46. package/ts/types/Enum/BrandClementine.ts +6 -0
  47. package/ts/types/Enum/BrandComptalib.ts +6 -0
  48. package/ts/types/Enum/BrandPourcentage.ts +2 -1
  49. package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +6 -0
  50. package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +1 -1
  51. package/ts/types/Interface/api/revision/ReadRevision.ts +2 -1
  52. package/ts/utils/brands.ts +7 -25
@@ -129,6 +129,9 @@ export const BrandComptalib = [
129
129
  vatIntracom: 'FR58891501181',
130
130
  email: 'facturation@pourcentage.fr',
131
131
  },
132
+ webmail: {
133
+ domain: '@pourcentage.fr',
134
+ },
132
135
  },
133
136
  {
134
137
  idTypeBrand: 3,
@@ -203,6 +206,9 @@ export const BrandComptalib = [
203
206
  vatIntracom: 'FR58891501181',
204
207
  email: 'bonjour@comptalib.com',
205
208
  },
209
+ webmail: {
210
+ domain: '@lecomptablefrancais.fr',
211
+ },
206
212
  },
207
213
  {
208
214
  idTypeBrand: 4,
@@ -10,6 +10,7 @@ export const BrandPourcentage = [
10
10
  listPhones: {
11
11
  contact: '01 86 90 82 15',
12
12
  qualite: '01 86 90 82 15',
13
+ social: '01 86 90 82 15',
13
14
  juridique: '01 86 90 82 15',
14
15
  },
15
16
  listMails: {
@@ -26,7 +27,7 @@ export const BrandPourcentage = [
26
27
  qualite: 'contact@pourcentage.fr',
27
28
  paiement: 'contact@pourcentage.fr',
28
29
  rh: 'rh@pourcentage.fr',
29
- social: 'contact@pourcentage.fr',
30
+ social: 'social@pourcentage.fr',
30
31
  support: 'contact@pourcentage.fr',
31
32
  tva: 'contact@pourcentage.fr',
32
33
  wb: 'contact@pourcentage.fr',
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IsArray,
2
3
  IsBoolean, IsInt, IsOptional, Min,
3
4
  } from 'class-validator';
4
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -21,6 +22,11 @@ export class QueryGeneralLedger {
21
22
  @Min(1)
22
23
  page: number;
23
24
 
25
+ @ApiPropertyOptional()
26
+ @IsArray()
27
+ @IsOptional()
28
+ idAccount?: number[];
29
+
24
30
  @ApiPropertyOptional({ default: true })
25
31
  @IsBoolean()
26
32
  @ToBoolean()
@@ -23,7 +23,7 @@ export class QueryRevisionAccount implements QueryPaginate {
23
23
  @IsNumber()
24
24
  limit: number;
25
25
 
26
- @ApiPropertyOptional({ default: 'idAccount' })
26
+ @ApiPropertyOptional({ default: 'date' })
27
27
  @IsString()
28
28
  @IsOptional()
29
29
  orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
@@ -8,7 +8,8 @@ export interface ReadRevision {
8
8
  number: number | null,
9
9
  accountDetails: Array<IAccountDetail>
10
10
  },
11
- unlocked: number;
11
+ unlocked: number | null;
12
+ locked: number | null;
12
13
  previousBalance: number;
13
14
  nextBalance: number;
14
15
  }
@@ -16,34 +16,15 @@ type getBrandConfigParams = {
16
16
  };
17
17
 
18
18
  const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {
19
- if (nodeEnv) {
20
- if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {
19
+ const env = nodeEnv ?? process.env.NODE_ENV ?? process.env.API_HOST;
20
+ if (env) {
21
+ if (env.indexOf('legalstart') > -1 || env.indexOf('Legalstart') > -1) {
21
22
  return 'Legalstart';
22
23
  }
23
- if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {
24
+ if (env.indexOf('comptalib') > -1 || env.indexOf('Comptalib') > -1) {
24
25
  return 'Comptalib';
25
26
  }
26
- if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {
27
- return 'Pourcentage';
28
- }
29
- } else if (process.env.NODE_ENV) {
30
- if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
31
- return 'Legalstart';
32
- }
33
- if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
34
- return 'Comptalib';
35
- }
36
- if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {
37
- return 'Pourcentage';
38
- }
39
- } else if (process.env.API_HOST) {
40
- if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
41
- return 'Legalstart';
42
- }
43
- if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
44
- return 'Comptalib';
45
- }
46
- if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {
27
+ if (env.indexOf('pourcentage') > -1 || env.indexOf('Pourcentage') > -1) {
47
28
  return 'Pourcentage';
48
29
  }
49
30
  }
@@ -103,11 +84,12 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
103
84
  return brand;
104
85
  };
105
86
 
106
- const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {
87
+ const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | 'Lecomptablefrancais' | null => {
107
88
  if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
108
89
  if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
109
90
  if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
110
91
  if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
92
+ if (email.indexOf('lecomptablefrancais.fr') > -1) return 'Lecomptablefrancais';
111
93
  return null;
112
94
  };
113
95