@silexpert/core 0.4.249 → 0.4.253

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 (72) hide show
  1. package/es/types/Enum/BrandClementine.d.ts +3 -0
  2. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  3. package/es/types/Enum/BrandClementine.js +1 -0
  4. package/es/types/Enum/BrandClementine.js.map +1 -1
  5. package/es/types/Enum/BrandComptalib.d.ts +3 -0
  6. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  7. package/es/types/Enum/BrandComptalib.js +1 -0
  8. package/es/types/Enum/BrandComptalib.js.map +1 -1
  9. package/es/types/Enum/BrandLegalstart.d.ts +1 -0
  10. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  11. package/es/types/Enum/BrandLegalstart.js +1 -0
  12. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  13. package/es/types/Enum/BrandPourcentage.d.ts +79 -0
  14. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -0
  15. package/es/types/Enum/BrandPourcentage.js +81 -0
  16. package/es/types/Enum/BrandPourcentage.js.map +1 -0
  17. package/es/types/Enum/TimeCounterType.d.ts +6 -0
  18. package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
  19. package/es/types/Enum/TimeCounterType.js +7 -1
  20. package/es/types/Enum/TimeCounterType.js.map +1 -1
  21. package/es/types/Enum/VatDeclarationType.js +1 -1
  22. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  23. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts +1 -1
  24. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.d.ts.map +1 -1
  25. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js +1 -1
  26. package/es/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  27. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +1 -1
  28. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -1
  29. package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -1
  30. package/es/types/index.d.ts +1 -0
  31. package/es/types/index.d.ts.map +1 -1
  32. package/es/types/index.js +1 -0
  33. package/es/types/index.js.map +1 -1
  34. package/es/utils/brands.d.ts +1 -1
  35. package/es/utils/brands.d.ts.map +1 -1
  36. package/es/utils/brands.js +16 -2
  37. package/es/utils/brands.js.map +1 -1
  38. package/es/utils/webmail.d.ts.map +1 -1
  39. package/es/utils/webmail.js +4 -1
  40. package/es/utils/webmail.js.map +1 -1
  41. package/js/types/Enum/BrandClementine.js +1 -0
  42. package/js/types/Enum/BrandClementine.js.map +1 -1
  43. package/js/types/Enum/BrandComptalib.js +1 -0
  44. package/js/types/Enum/BrandComptalib.js.map +1 -1
  45. package/js/types/Enum/BrandLegalstart.js +1 -0
  46. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  47. package/js/types/Enum/BrandPourcentage.js +84 -0
  48. package/js/types/Enum/BrandPourcentage.js.map +1 -0
  49. package/js/types/Enum/TimeCounterType.js +7 -1
  50. package/js/types/Enum/TimeCounterType.js.map +1 -1
  51. package/js/types/Enum/VatDeclarationType.js +1 -1
  52. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  53. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js +1 -1
  54. package/js/types/Interface/api/calendarEvent/getAllCalendarEvent.js.map +1 -1
  55. package/js/types/index.js +12 -0
  56. package/js/types/index.js.map +1 -1
  57. package/js/utils/brands.js +18 -2
  58. package/js/utils/brands.js.map +1 -1
  59. package/js/utils/webmail.js +3 -1
  60. package/js/utils/webmail.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/types/Enum/BrandClementine.ts +1 -0
  63. package/ts/types/Enum/BrandComptalib.ts +1 -0
  64. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  65. package/ts/types/Enum/BrandPourcentage.ts +80 -0
  66. package/ts/types/Enum/TimeCounterType.ts +7 -1
  67. package/ts/types/Enum/VatDeclarationType.ts +1 -1
  68. package/ts/types/Interface/api/calendarEvent/getAllCalendarEvent.ts +2 -2
  69. package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +1 -1
  70. package/ts/types/index.ts +1 -0
  71. package/ts/utils/brands.ts +17 -3
  72. package/ts/utils/webmail.ts +3 -1
@@ -25,6 +25,7 @@ export const BrandClementine = [
25
25
  noreply: 'noreply@compta-clementine.fr',
26
26
  qualite: 'qualite@compta-clementine.fr',
27
27
  paiement: 'paiement@compta-clementine.fr',
28
+ rh: 'rh@compta-clementine.fr',
28
29
  social: 'social@compta-clementine.fr',
29
30
  support: 'support@compta-clementine.fr',
30
31
  tva: 'tva@compta-clementine.fr',
@@ -25,6 +25,7 @@ export const BrandComptalib = [
25
25
  noreply: 'noreply@comptalib.com',
26
26
  qualite: 'contact@comptalib.com',
27
27
  paiement: 'contact@comptalib.com',
28
+ rh: 'contact@comptalib.com',
28
29
  social: 'contact@comptalib.com',
29
30
  support: 'support@comptalib.com',
30
31
  tva: 'contact@comptalib.com',
@@ -25,6 +25,7 @@ export const BrandLegalstart = [
25
25
  noreply: 'comptastart@legalstart.fr',
26
26
  qualite: 'comptastart@legalstart.fr',
27
27
  paiement: 'comptastart@legalstart.fr',
28
+ rh: 'comptastart@legalstart.fr',
28
29
  social: 'comptastart@legalstart.fr',
29
30
  support: 'comptastart@legalstart.fr',
30
31
  tva: 'comptastart@legalstart.fr',
@@ -0,0 +1,80 @@
1
+ export const BrandPourcentage = [
2
+ {
3
+ idTypeBrand: 1,
4
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
5
+ logoS3: 'config/pourcentage-logo.png',
6
+ name: 'Pourcentage',
7
+ colors: {
8
+ primary: '#1e6f5c',
9
+ },
10
+ listPhones: {
11
+ contact: '01 86 90 82 15',
12
+ qualite: '01 86 90 82 15',
13
+ juridique: '01 86 90 82 15',
14
+ },
15
+ listMails: {
16
+ administratif: 'contact@pourcentage.fr',
17
+ app: 'contact@pourcentage.fr',
18
+ bonjour: 'bonjour@pourcentage.fr',
19
+ contact: 'contact@pourcentage.fr',
20
+ facturation: 'facturation@pourcentage.fr',
21
+ feedback: 'contact@pourcentage.fr',
22
+ juridique: 'contact@pourcentage.fr',
23
+ informatique: 'contact@pourcentage.fr',
24
+ msd: 'contact@pourcentage.fr',
25
+ noreply: 'contact@pourcentage.fr',
26
+ qualite: 'contact@pourcentage.fr',
27
+ paiement: 'contact@pourcentage.fr',
28
+ rh: 'rh@pourcentage.fr',
29
+ social: 'contact@pourcentage.fr',
30
+ support: 'contact@pourcentage.fr',
31
+ tva: 'contact@pourcentage.fr',
32
+ wb: 'contact@pourcentage.fr',
33
+ },
34
+ companyInformation: {
35
+ ape: '6920Z',
36
+ bp: '',
37
+ city: 'Laxou',
38
+ montantCapital: '150 000',
39
+ nomRaisonSociale: 'POURCENTAGE',
40
+ ECName: 'M. Jean-Louis BOICHÉ',
41
+ ECOrderCity: 'Nancy',
42
+ phone: '01 86 90 82 15',
43
+ postalAddress: '9, avenue du Rhin',
44
+ rcs: '891 501 181',
45
+ statut: 'SAS',
46
+ zipCode: '54 520',
47
+ },
48
+ idPrestationsListAuthorized: [197, 205],
49
+ logoUrl: 'logo-pourcentage.svg',
50
+ miniLogoUrl: 'logo-pourcentage-mini.svg',
51
+ hiddenPages: [],
52
+ recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
53
+ urlApp: 'https://app.pourcentage.fr/',
54
+ urlApi1: 'https://api.pourcentage.fr',
55
+ urlApi2: 'https://api-next.pourcentage.fr',
56
+ urlExpert: 'https://pro.pourcentage.fr',
57
+ urlClient: 'https://www.pourcentage.fr',
58
+ bank: {
59
+ IBAN: 'FR7616106010019601826952765',
60
+ BIC: 'AGRIFRPP861',
61
+ Name: 'POURCENTAGE',
62
+ Id: 'FR57ZZZ878E61',
63
+ },
64
+ internalInvoicing: {
65
+ statut: 'SASU',
66
+ name: 'POURCENTAGE',
67
+ address: '9, avenue du Rhin',
68
+ zipCode: '54520',
69
+ city: 'LAXOU',
70
+ country: 'FRANCE',
71
+ montantCapital: '150 000',
72
+ siret: '89150118100020',
73
+ ape: '6920Z',
74
+ rcs: '891 501 181',
75
+ phone: '01 86 90 82 15',
76
+ vatIntracom: 'FR58891501181',
77
+ email: 'facturation@pourcentage.fr',
78
+ },
79
+ },
80
+ ];
@@ -119,7 +119,7 @@ export const TimeCounterType = {
119
119
  id: 20,
120
120
  label: 'Bilan',
121
121
  aberrantTime: 120,
122
- limitedRoles: [Role.FRONT_OFFICE, Role.BACK_MANAGER, Role.FRONT_MANAGER, Role.BACK_MANAGER, Role.EXPERT_ACCOUNTANT],
122
+ limitedRoles: [Role.FRONT_OFFICE, Role.BACK_OFFICE, Role.FRONT_MANAGER, Role.BACK_MANAGER, Role.EXPERT_ACCOUNTANT],
123
123
  },
124
124
  PAYSLIP: {
125
125
  id: 21,
@@ -163,4 +163,10 @@ export const TimeCounterType = {
163
163
  aberrantTime: 15,
164
164
  limitedRoles: [Role.JURIDIC],
165
165
  },
166
+ APPOINTMENT: {
167
+ id: 28,
168
+ label: 'Rdv client',
169
+ aberrantTime: 15,
170
+ limitedRoles: null,
171
+ },
166
172
  };
@@ -65,7 +65,7 @@ export const accountInfo3310: AccountInfo[] = [
65
65
  },
66
66
  {
67
67
  number: 445840,
68
- fields: ['ligne21'],
68
+ fields: ['ligne21', 'ligne2C'],
69
69
  fieldsToSubtract: [],
70
70
  type: 'credit',
71
71
  },
@@ -1,8 +1,8 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
2
2
 
3
3
  export class GetAllCalendarEvent {
4
- @ApiProperty()
5
- idUser: number;
4
+ @ApiPropertyOptional()
5
+ idUser?: number;
6
6
 
7
7
  @ApiProperty()
8
8
  startDate: Date;
@@ -37,6 +37,6 @@ export interface ReadRevisionAccount {
37
37
  },
38
38
  accountDetails: IAccountDetail[],
39
39
  thirdParty: { id: number, fullname: string } | null,
40
- calculatedVat?: number;
40
+ calculatedVat?: number[];
41
41
  balance: number | null;
42
42
  }
package/ts/types/index.ts CHANGED
@@ -392,6 +392,7 @@ export * from './Enum/ExerciceNoteType';
392
392
  export * from './Enum/BrandClementine';
393
393
  export * from './Enum/BrandLegalstart';
394
394
  export * from './Enum/BrandComptalib';
395
+ export * from './Enum/BrandPourcentage';
395
396
  export * from './Enum/PartneredAccountantServiceState';
396
397
  export * from './Enum/AccountsSectors';
397
398
  export * from './Enum/ProductType';
@@ -2,6 +2,7 @@ import { get as getLodash } from 'lodash';
2
2
  import { BrandClementine } from '../types/Enum/BrandClementine';
3
3
  import { BrandLegalstart } from '../types/Enum/BrandLegalstart';
4
4
  import { BrandComptalib } from '../types/Enum/BrandComptalib';
5
+ import { BrandPourcentage } from '../types/Enum/BrandPourcentage';
5
6
 
6
7
  type brand = {
7
8
  idTypeBrand: number,
@@ -14,7 +15,7 @@ type getBrandConfigParams = {
14
15
  nodeEnv?: string
15
16
  };
16
17
 
17
- const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' => {
18
+ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' => {
18
19
  if (nodeEnv) {
19
20
  if (nodeEnv.indexOf('legalstart') > -1 || nodeEnv.indexOf('Legalstart') > -1) {
20
21
  return 'Legalstart';
@@ -22,6 +23,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
22
23
  if (nodeEnv.indexOf('comptalib') > -1 || nodeEnv.indexOf('Comptalib') > -1) {
23
24
  return 'Comptalib';
24
25
  }
26
+ if (nodeEnv.indexOf('pourcentage') > -1 || nodeEnv.indexOf('Pourcentage') > -1) {
27
+ return 'Pourcentage';
28
+ }
25
29
  } else if (process.env.NODE_ENV) {
26
30
  if (process.env.NODE_ENV.indexOf('legalstart') > -1 || process.env.NODE_ENV.indexOf('Legalstart') > -1) {
27
31
  return 'Legalstart';
@@ -29,6 +33,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
29
33
  if (process.env.NODE_ENV.indexOf('comptalib') > -1 || process.env.NODE_ENV.indexOf('Comptalib') > -1) {
30
34
  return 'Comptalib';
31
35
  }
36
+ if (process.env.NODE_ENV.indexOf('pourcentage') > -1 || process.env.NODE_ENV.indexOf('Pourcentage') > -1) {
37
+ return 'Pourcentage';
38
+ }
32
39
  } else if (process.env.API_HOST) {
33
40
  if (process.env.API_HOST.indexOf('legalstart') > -1 || process.env.API_HOST.indexOf('Legalstart') > -1) {
34
41
  return 'Legalstart';
@@ -36,6 +43,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
36
43
  if (process.env.API_HOST.indexOf('comptalib') > -1 || process.env.API_HOST.indexOf('Comptalib') > -1) {
37
44
  return 'Comptalib';
38
45
  }
46
+ if (process.env.API_HOST.indexOf('pourcentage') > -1 || process.env.API_HOST.indexOf('Pourcentage') > -1) {
47
+ return 'Pourcentage';
48
+ }
39
49
  }
40
50
  return 'Clementine';
41
51
  };
@@ -43,7 +53,9 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
43
53
  const getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {
44
54
  const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
45
55
  const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
46
- const listEnvEnum = { BrandClementine, BrandLegalstart, BrandComptalib };
56
+ const listEnvEnum = {
57
+ BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,
58
+ };
47
59
  // @ts-ignore
48
60
  const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
49
61
 
@@ -59,7 +71,9 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
59
71
  let brand;
60
72
  const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
61
73
  const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
62
- const listEnvEnum = { BrandClementine, BrandLegalstart, BrandComptalib };
74
+ const listEnvEnum = {
75
+ BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage,
76
+ };
63
77
  // @ts-ignore
64
78
  const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
65
79
 
@@ -2,7 +2,9 @@ import { Role } from '../types/Enum/Role';
2
2
 
3
3
  const getIdRoleUsedForEmail = (listRoles: number[]): number => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
- if (listRoles.includes(Role.BACK_MANAGER)) {
5
+ if (listRoles.includes(Role.FACTURATION)) {
6
+ idRole = Role.FACTURATION;
7
+ } else if (listRoles.includes(Role.BACK_MANAGER)) {
6
8
  idRole = Role.BACK_MANAGER;
7
9
  } else if (listRoles.includes(Role.FRONT_OFFICE)) {
8
10
  idRole = Role.FRONT_OFFICE;