@silexpert/core 0.4.161 → 0.4.162

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 (43) hide show
  1. package/es/types/Enum/BrandClementine.d.ts +30 -0
  2. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  3. package/es/types/Enum/BrandClementine.js +30 -0
  4. package/es/types/Enum/BrandClementine.js.map +1 -1
  5. package/es/types/Enum/BrandComptalib.d.ts +7 -0
  6. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  7. package/es/types/Enum/BrandComptalib.js +6 -0
  8. package/es/types/Enum/BrandComptalib.js.map +1 -1
  9. package/es/types/Enum/BrandLegalstart.d.ts +6 -0
  10. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  11. package/es/types/Enum/BrandLegalstart.js +6 -0
  12. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  13. package/es/types/Interface/api/webmail/GetMissingMailsInFinalBucket.d.ts +4 -0
  14. package/es/types/Interface/api/webmail/GetMissingMailsInFinalBucket.d.ts.map +1 -0
  15. package/es/types/Interface/api/webmail/GetMissingMailsInFinalBucket.js +20 -0
  16. package/es/types/Interface/api/webmail/GetMissingMailsInFinalBucket.js.map +1 -0
  17. package/es/types/index.d.ts +1 -0
  18. package/es/types/index.d.ts.map +1 -1
  19. package/es/types/index.js +1 -0
  20. package/es/types/index.js.map +1 -1
  21. package/es/utils/brands.d.ts +2 -1
  22. package/es/utils/brands.d.ts.map +1 -1
  23. package/es/utils/brands.js +10 -1
  24. package/es/utils/brands.js.map +1 -1
  25. package/js/types/Enum/BrandClementine.js +35 -5
  26. package/js/types/Enum/BrandClementine.js.map +1 -1
  27. package/js/types/Enum/BrandComptalib.js +7 -1
  28. package/js/types/Enum/BrandComptalib.js.map +1 -1
  29. package/js/types/Enum/BrandLegalstart.js +7 -1
  30. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  31. package/js/types/Interface/api/webmail/GetMissingMailsInFinalBucket.js +29 -0
  32. package/js/types/Interface/api/webmail/GetMissingMailsInFinalBucket.js.map +1 -0
  33. package/js/types/index.js +12 -0
  34. package/js/types/index.js.map +1 -1
  35. package/js/utils/brands.js +16 -1
  36. package/js/utils/brands.js.map +1 -1
  37. package/package.json +1 -1
  38. package/ts/types/Enum/BrandClementine.ts +30 -0
  39. package/ts/types/Enum/BrandComptalib.ts +6 -0
  40. package/ts/types/Enum/BrandLegalstart.ts +6 -0
  41. package/ts/types/Interface/api/webmail/GetMissingMailsInFinalBucket.ts +9 -0
  42. package/ts/types/index.ts +1 -0
  43. package/ts/utils/brands.ts +15 -1
@@ -51,6 +51,12 @@ export const BrandClementine = [
51
51
  urlApi2: 'https://api-next.compta-clementine.fr',
52
52
  urlExpert: 'https://expert.compta-clementine.fr',
53
53
  urlClient: 'https://www.compta-clementine.fr',
54
+ bank: {
55
+ IBAN: 'FR7616106840138646838239863',
56
+ BIC: 'AGRIFRPP861',
57
+ Name: 'Expertise Choix B',
58
+ Id: 'FR91ZZZ617135',
59
+ },
54
60
  },
55
61
  {
56
62
  idTypeBrand: 2,
@@ -89,6 +95,12 @@ export const BrandClementine = [
89
95
  urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
90
96
  urlExpert: 'https://pro.comptalib.com',
91
97
  urlClient: 'https://www.compta-clementine.fr',
98
+ bank: {
99
+ IBAN: 'FR7616106840138646838239863',
100
+ BIC: 'AGRIFRPP861',
101
+ Name: 'Expertise Choix B',
102
+ Id: 'FR91ZZZ617135',
103
+ },
92
104
  },
93
105
  {
94
106
  idTypeBrand: 3,
@@ -99,6 +111,12 @@ export const BrandClementine = [
99
111
  urlApp: 'https://app.compta-clementine.fr',
100
112
  urlApi1: 'https://api.compta-clementine.fr',
101
113
  urlApi2: 'https://api-next.compta-clementine.fr',
114
+ bank: {
115
+ IBAN: 'FR7616106840138646838239863',
116
+ BIC: 'AGRIFRPP861',
117
+ Name: 'Expertise Choix B',
118
+ Id: 'FR91ZZZ617135',
119
+ },
102
120
  },
103
121
  {
104
122
  idTypeBrand: 4,
@@ -153,6 +171,12 @@ export const BrandClementine = [
153
171
  urlApi2: 'https://api-next.comptalib.com',
154
172
  urlExpert: 'https://pro.comptalib.com',
155
173
  urlClient: 'https://www.pourcentage.fr',
174
+ bank: {
175
+ IBAN: 'FR7616106840138646838239863',
176
+ BIC: 'AGRIFRPP861',
177
+ Name: 'Expertise Choix B',
178
+ Id: 'FR91ZZZ617135',
179
+ },
156
180
  },
157
181
  {
158
182
  idTypeBrand: 5,
@@ -160,5 +184,11 @@ export const BrandClementine = [
160
184
  urlApp: 'https://app.compta-clementine.fr',
161
185
  urlApi1: 'https://api.compta-clementine.fr',
162
186
  urlApi2: 'https://api-next.compta-clementine.fr',
187
+ bank: {
188
+ IBAN: 'FR7616106840138646838239863',
189
+ BIC: 'AGRIFRPP861',
190
+ Name: 'Expertise Choix B',
191
+ Id: 'FR91ZZZ617135',
192
+ },
163
193
  },
164
194
  ];
@@ -103,5 +103,11 @@ export const BrandComptalib = [
103
103
  urlApi2: 'https://api-next.comptalib.com',
104
104
  urlExpert: 'https://pro.comptalib.com',
105
105
  urlClient: 'https://www.pourcentage.fr',
106
+ bank: {
107
+ IBAN: 'FR7616106010019601826952765',
108
+ BIC: 'AGRIFRPP861',
109
+ Name: 'POURCENTAGE',
110
+ Id: 'FR57ZZZ878E61',
111
+ },
106
112
  },
107
113
  ];
@@ -51,5 +51,11 @@ export const BrandLegalstart = [
51
51
  urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
52
52
  urlExpert: 'https://pro.comptalib.com',
53
53
  urlClient: 'https://www.pourcentage.fr',
54
+ bank: {
55
+ IBAN: 'FR7616106840138646838239863',
56
+ BIC: 'AGRIFRPP861',
57
+ Name: 'Expertise Choix B',
58
+ Id: 'FR91ZZZ617135',
59
+ },
54
60
  },
55
61
  ];
@@ -0,0 +1,9 @@
1
+ import { IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class GetMissingMailsInFinalBucket {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsString()
8
+ prefix?: string;
9
+ }
package/ts/types/index.ts CHANGED
@@ -506,6 +506,7 @@ export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
506
506
  export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
507
507
  export * from './Interface/api/webmail/CreateWebmailFromLambda';
508
508
  export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
509
+ export * from './Interface/api/webmail/GetMissingMailsInFinalBucket';
509
510
  export * from './Interface/api/promoCode/CreateDefaultPromoCode';
510
511
  export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
511
512
  export * from './Interface/api/bankAccount/QueryBankAccount';
@@ -40,6 +40,18 @@ const getBrandNameByNodeEnv = (nodeEnv?: string): 'Legalstart'| 'Comptalib' | 'C
40
40
  return 'Clementine';
41
41
  };
42
42
 
43
+ const getAllBrandByNodeEnv = (nodeEnv?: string): Array<brand> => {
44
+ const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
45
+ const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
46
+ const listEnvEnum = { BrandClementine, BrandLegalstart, BrandComptalib };
47
+ // @ts-ignore
48
+ const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
49
+
50
+ const brand = currentConfigFile;
51
+
52
+ return brand;
53
+ };
54
+
43
55
  const getBrandConfig = (params: getBrandConfigParams): brand => {
44
56
  const {
45
57
  idTypeBrand = null, objectWaited = null, nodeEnv,
@@ -85,4 +97,6 @@ const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine
85
97
  return null;
86
98
  };
87
99
 
88
- export { getBrandConfig, getBrandNameByNodeEnv, getBrandByEmail };
100
+ export {
101
+ getBrandConfig, getAllBrandByNodeEnv, getBrandNameByNodeEnv, getBrandByEmail,
102
+ };