@silexpert/core 1.1.200 → 1.1.201
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/dist/cjs/api/resources/Employee.d.ts.map +1 -1
- package/dist/cjs/api/resources/Employee.js +12 -9
- package/dist/cjs/api/resources/Employee.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +7 -7
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Country.d.ts +1 -0
- package/dist/cjs/types/Enum/Country.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Country.js +16 -16
- package/dist/cjs/types/Enum/Country.js.map +1 -1
- package/dist/mjs/api/resources/Employee.d.ts.map +1 -1
- package/dist/mjs/api/resources/Employee.js +12 -9
- package/dist/mjs/api/resources/Employee.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +7 -7
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Country.d.ts +1 -0
- package/dist/mjs/types/Enum/Country.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Country.js +16 -16
- package/dist/mjs/types/Enum/Country.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Employee.ts +13 -9
- package/ts/types/Enum/BrandPourcentage.ts +7 -7
- package/ts/types/Enum/Country.ts +17 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.201",
|
|
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": "dist/cjs/index.js",
|
|
@@ -41,15 +41,19 @@ export class Employee extends Resource {
|
|
|
41
41
|
payload: Partial<UpdateEmployee>,
|
|
42
42
|
): Promise<IEmployee> {
|
|
43
43
|
const formData = new FormData();
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
|
|
45
|
+
Object.keys(payload).forEach((key) => {
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
const value = payload[key];
|
|
48
|
+
if (isDefined(value) || key === 'writeDpae') {
|
|
49
|
+
if (['dpaeFile', 'contractFile'].includes(key)) {
|
|
50
|
+
formData.append(key, value as File);
|
|
51
|
+
} else {
|
|
52
|
+
formData.append(key, `${value}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
53
57
|
return this.axios.$put(`/employees/${id}`, formData, {
|
|
54
58
|
headers: { 'Content-Type': 'multipart/form-data' },
|
|
55
59
|
});
|
|
@@ -93,7 +93,7 @@ export const BrandPourcentage = [
|
|
|
93
93
|
email: 'facturation@pourcentage.fr',
|
|
94
94
|
},
|
|
95
95
|
webmail: {
|
|
96
|
-
domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
96
|
+
domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
97
97
|
},
|
|
98
98
|
offices: {
|
|
99
99
|
LAXOU: {
|
|
@@ -374,7 +374,7 @@ export const BrandPourcentage = [
|
|
|
374
374
|
email: 'facturation@pourcentage.fr',
|
|
375
375
|
},
|
|
376
376
|
webmail: {
|
|
377
|
-
domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
377
|
+
domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
378
378
|
},
|
|
379
379
|
},
|
|
380
380
|
// {
|
|
@@ -464,7 +464,7 @@ export const BrandPourcentage = [
|
|
|
464
464
|
// email: 'facturation@pourcentage.fr',
|
|
465
465
|
// },
|
|
466
466
|
// webmail: {
|
|
467
|
-
// domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
467
|
+
// domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
468
468
|
// },
|
|
469
469
|
// },
|
|
470
470
|
// {
|
|
@@ -554,7 +554,7 @@ export const BrandPourcentage = [
|
|
|
554
554
|
// email: 'facturation@pourcentage.fr',
|
|
555
555
|
// },
|
|
556
556
|
// webmail: {
|
|
557
|
-
// domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
557
|
+
// domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
558
558
|
// },
|
|
559
559
|
// },
|
|
560
560
|
{
|
|
@@ -650,7 +650,7 @@ export const BrandPourcentage = [
|
|
|
650
650
|
email: 'facturation@pourcentage.fr',
|
|
651
651
|
},
|
|
652
652
|
webmail: {
|
|
653
|
-
domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
653
|
+
domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
654
654
|
},
|
|
655
655
|
salesContractConfig: [
|
|
656
656
|
// pour les pages statiques
|
|
@@ -901,7 +901,7 @@ export const BrandPourcentage = [
|
|
|
901
901
|
// email: 'facturation@pourcentage.fr',
|
|
902
902
|
// },
|
|
903
903
|
// webmail: {
|
|
904
|
-
// domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
904
|
+
// domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
905
905
|
// },
|
|
906
906
|
// },
|
|
907
907
|
{
|
|
@@ -992,7 +992,7 @@ export const BrandPourcentage = [
|
|
|
992
992
|
email: 'facturation@pourcentage.fr',
|
|
993
993
|
},
|
|
994
994
|
webmail: {
|
|
995
|
-
domains: ['@pourcentage.fr', '@rlexpertise.fr'],
|
|
995
|
+
domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
|
996
996
|
},
|
|
997
997
|
},
|
|
998
998
|
];
|
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; ISO3166_num?: number | null; id: CountryId }> = [
|
|
246
|
+
export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_num?: number | null; id: CountryId, isBlacklist?: boolean }> = [
|
|
247
247
|
{ name: 'Afghanistan', ISO3166_num: 4, ISO3166: 'AF', id: CountryId.AFGHANISTAN },
|
|
248
248
|
{ name: 'Afrique du Sud', ISO3166_num: 710, ISO3166: 'ZA', id: CountryId.AFRIQUE_DU_SUD },
|
|
249
249
|
{ name: 'Albanie', ISO3166_num: 8, ISO3166: 'AL', id: CountryId.ALBANIE },
|
|
@@ -251,7 +251,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
251
251
|
{ name: 'Allemagne', ISO3166_num: 276, ISO3166: 'DE', id: CountryId.ALLEMAGNE },
|
|
252
252
|
{ name: 'Andorre', ISO3166_num: 20, ISO3166: 'AD', id: CountryId.ANDORRE },
|
|
253
253
|
{ name: 'Angola', ISO3166_num: 24, ISO3166: 'AO', id: CountryId.ANGOLA },
|
|
254
|
-
{ name: 'Anguilla', ISO3166_num: 660, ISO3166: 'AI', id: CountryId.ANGUILLA },
|
|
254
|
+
{ name: 'Anguilla', ISO3166_num: 660, ISO3166: 'AI', id: CountryId.ANGUILLA, isBlacklist: true },
|
|
255
255
|
{ name: 'Antarctique', ISO3166_num: 10, ISO3166: 'AQ', id: CountryId.ANTARCTIQUE },
|
|
256
256
|
{ name: 'Antigua-et-Barbuda', ISO3166_num: 28, ISO3166: 'AG', id: CountryId.ANTIGUA_ET_BARBUDA },
|
|
257
257
|
{ name: 'Antilles Néerlandaises', ISO3166_num: 528, ISO3166: 'AN', id: CountryId.ANTILLES_NEERLANDAISES },
|
|
@@ -262,7 +262,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
262
262
|
{ name: 'Australie', ISO3166_num: 36, ISO3166: 'AU', id: CountryId.AUSTRALIE },
|
|
263
263
|
{ name: 'Autriche', ISO3166_num: 40, ISO3166: 'AT', id: CountryId.AUTRICHE },
|
|
264
264
|
{ name: 'Azerbaïdjan', ISO3166_num: 31, ISO3166: 'AZ', id: CountryId.AZERBAIDJAN },
|
|
265
|
-
{ name: 'Bahamas', ISO3166_num: 44, ISO3166: 'BS', id: CountryId.BAHAMAS },
|
|
265
|
+
{ name: 'Bahamas', ISO3166_num: 44, ISO3166: 'BS', id: CountryId.BAHAMAS, isBlacklist: true },
|
|
266
266
|
{ name: 'Bahreïn', ISO3166_num: 48, ISO3166: 'BH', id: CountryId.BAHREIN },
|
|
267
267
|
{ name: 'Bangladesh', ISO3166_num: 50, ISO3166: 'BD', id: CountryId.BANGLADESH },
|
|
268
268
|
{ name: 'Barbade', ISO3166_num: 52, ISO3166: 'BB', id: CountryId.BARBADE },
|
|
@@ -289,7 +289,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
289
289
|
{ name: 'Chypre', ISO3166_num: 196, ISO3166: 'CY', id: CountryId.CHYPRE },
|
|
290
290
|
{ name: 'Colombie', ISO3166_num: 170, ISO3166: 'CO', id: CountryId.COLOMBIE },
|
|
291
291
|
{ name: 'Comores', ISO3166_num: 174, ISO3166: 'KM', id: CountryId.COMORES },
|
|
292
|
-
{ name: 'Costa Rica', ISO3166_num: 188, ISO3166: 'CR', id: CountryId.COSTA_RICA },
|
|
292
|
+
{ name: 'Costa Rica', ISO3166_num: 188, ISO3166: 'CR', id: CountryId.COSTA_RICA, isBlacklist: true },
|
|
293
293
|
{ name: 'Côte d\'Ivoire', ISO3166_num: 384, ISO3166: 'CI', id: CountryId.COTE_D_IVOIRE },
|
|
294
294
|
{ name: 'Croatie', ISO3166_num: 191, ISO3166: 'HR', id: CountryId.CROATIE },
|
|
295
295
|
{ name: 'Cuba', ISO3166_num: 192, ISO3166: 'CU', id: CountryId.CUBA },
|
|
@@ -306,8 +306,8 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
306
306
|
{ name: 'États Fédérés de Micronésie', ISO3166_num: 748, ISO3166: 'FM', id: CountryId.ETATS_FEDERES_DE_MICRONESIE },
|
|
307
307
|
{ name: 'États-Unis', ISO3166_num: 840, ISO3166: 'US', id: CountryId.ETATS_UNIS },
|
|
308
308
|
{ name: 'Éthiopie', ISO3166_num: 231, ISO3166: 'ET', id: CountryId.ETHIOPIE },
|
|
309
|
-
{ name: 'Fédération de Russie', ISO3166_num: 643, ISO3166: 'RU', id: CountryId.FEDERATION_DE_RUSSIE },
|
|
310
|
-
{ name: 'Fidji', ISO3166_num: 242, ISO3166: 'FJ', id: CountryId.FIDJI },
|
|
309
|
+
{ name: 'Fédération de Russie', ISO3166_num: 643, ISO3166: 'RU', id: CountryId.FEDERATION_DE_RUSSIE, isBlacklist: true },
|
|
310
|
+
{ name: 'Fidji', ISO3166_num: 242, ISO3166: 'FJ', id: CountryId.FIDJI, isBlacklist: true },
|
|
311
311
|
{ name: 'Finlande', ISO3166_num: 246, ISO3166: 'FI', id: CountryId.FINLANDE },
|
|
312
312
|
{ name: 'France', ISO3166_num: 250, ISO3166: 'FR', id: CountryId.FRANCE },
|
|
313
313
|
{ name: 'Gabon', ISO3166_num: 266, ISO3166: 'GA', id: CountryId.GABON },
|
|
@@ -320,7 +320,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
320
320
|
{ name: 'Grenade', ISO3166_num: 308, ISO3166: 'GD', id: CountryId.GRENADE },
|
|
321
321
|
{ name: 'Groenland', ISO3166_num: 304, ISO3166: 'GL', id: CountryId.GROENLAND },
|
|
322
322
|
{ name: 'Guadeloupe', ISO3166_num: 312, ISO3166: 'GP', id: CountryId.GUADELOUPE },
|
|
323
|
-
{ name: 'Guam', ISO3166_num: 316, ISO3166: 'GU', id: CountryId.GUAM },
|
|
323
|
+
{ name: 'Guam', ISO3166_num: 316, ISO3166: 'GU', id: CountryId.GUAM, isBlacklist: true },
|
|
324
324
|
{ name: 'Guatemala', ISO3166_num: 320, ISO3166: 'GT', id: CountryId.GUATEMALA },
|
|
325
325
|
{ name: 'Guinée', ISO3166_num: 324, ISO3166: 'GN', id: CountryId.GUINEE },
|
|
326
326
|
{ name: 'Guinée Équatoriale', ISO3166_num: 226, ISO3166: 'GQ', id: CountryId.GUINEE_EQUATORIALE },
|
|
@@ -343,12 +343,12 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
343
343
|
{ name: 'Îles Féroé', ISO3166_num: 234, ISO3166: 'FO', id: CountryId.ILES_FEROE },
|
|
344
344
|
{ name: 'Îles Heard et Mcdonald', ISO3166_num: 334, ISO3166: 'HM', id: CountryId.ILES_HEARD_ET_MCDONALD },
|
|
345
345
|
{ name: 'Îles Mariannes du Nord', ISO3166_num: 580, ISO3166: 'MP', id: CountryId.ILES_MARIANNES_DU_NORD },
|
|
346
|
-
{ name: 'Îles Marshall', ISO3166_num: 584, ISO3166: 'MH', id: CountryId.ILES_MARSHALL },
|
|
346
|
+
{ name: 'Îles Marshall', ISO3166_num: 584, ISO3166: 'MH', id: CountryId.ILES_MARSHALL, isBlacklist: true },
|
|
347
347
|
{ name: 'Îles Mineures Éloignées des États-Unis', ISO3166_num: 581, ISO3166: 'UM', id: CountryId.ILES_MINEURES_ELOIGNEES_DES_ETATS_UNIS },
|
|
348
348
|
{ name: 'Îles Salomon', ISO3166_num: 90, ISO3166: 'SB', id: CountryId.ILES_SALOMON },
|
|
349
|
-
{ name: 'Îles Turks et Caïques', ISO3166_num: 796, ISO3166: 'TC', id: CountryId.ILES_TURKS_ET_CAIQUES },
|
|
350
|
-
{ name: 'Îles Vierges Britanniques', ISO3166_num: 86, ISO3166: 'VG', id: CountryId.ILES_VIERGES_BRITANNIQUES },
|
|
351
|
-
{ name: 'Îles Vierges des États-Unis', ISO3166_num: 850, ISO3166: 'VI', id: CountryId.ILES_VIERGES_DES_ETATS_UNIS },
|
|
349
|
+
{ name: 'Îles Turks et Caïques', ISO3166_num: 796, ISO3166: 'TC', id: CountryId.ILES_TURKS_ET_CAIQUES, isBlacklist: true },
|
|
350
|
+
{ name: 'Îles Vierges Britanniques', ISO3166_num: 86, ISO3166: 'VG', id: CountryId.ILES_VIERGES_BRITANNIQUES, isBlacklist: true },
|
|
351
|
+
{ name: 'Îles Vierges des États-Unis', ISO3166_num: 850, ISO3166: 'VI', id: CountryId.ILES_VIERGES_DES_ETATS_UNIS, isBlacklist: true },
|
|
352
352
|
{ name: 'Inde', ISO3166_num: 356, ISO3166: 'IN', id: CountryId.INDE },
|
|
353
353
|
{ name: 'Indonésie', ISO3166_num: 360, ISO3166: 'ID', id: CountryId.INDONESIE },
|
|
354
354
|
{ name: 'Iraq', ISO3166_num: 364, ISO3166: 'IQ', id: CountryId.IRAQ },
|
|
@@ -405,8 +405,8 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
405
405
|
{ name: 'Ouganda', ISO3166_num: 800, ISO3166: 'UG', id: CountryId.OUGANDA },
|
|
406
406
|
{ name: 'Ouzbékistan', ISO3166_num: 860, ISO3166: 'UZ', id: CountryId.OUZBEKISTAN },
|
|
407
407
|
{ name: 'Pakistan', ISO3166_num: 586, ISO3166: 'PK', id: CountryId.PAKISTAN },
|
|
408
|
-
{ name: 'Palaos', ISO3166_num: 585, ISO3166: 'PW', id: CountryId.PALAOS },
|
|
409
|
-
{ name: 'Panama', ISO3166_num: 591, ISO3166: 'PA', id: CountryId.PANAMA },
|
|
408
|
+
{ name: 'Palaos', ISO3166_num: 585, ISO3166: 'PW', id: CountryId.PALAOS, isBlacklist: true },
|
|
409
|
+
{ name: 'Panama', ISO3166_num: 591, ISO3166: 'PA', id: CountryId.PANAMA, isBlacklist: true },
|
|
410
410
|
{ name: 'Papouasie-Nouvelle-Guinée', ISO3166_num: 598, ISO3166: 'PG', id: CountryId.PAPOUASIE_NOUVELLE_GUINEE },
|
|
411
411
|
{ name: 'Paraguay', ISO3166_num: 600, ISO3166: 'PY', id: CountryId.PARAGUAY },
|
|
412
412
|
{ name: 'Pays-Bas', ISO3166_num: 528, ISO3166: 'NL', id: CountryId.PAYS_BAS },
|
|
@@ -442,8 +442,8 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
442
442
|
{ name: 'Saint-Vincent-et-les Grenadines', ISO3166_num: 670, ISO3166: 'VC', id: CountryId.SAINT_VINCENT_ET_LES_GRENADINES },
|
|
443
443
|
{ name: 'Sainte-Hélène', ISO3166_num: 654, ISO3166: 'SH', id: CountryId.SAINTE_HELENE },
|
|
444
444
|
{ name: 'Sainte-Lucie', ISO3166_num: 662, ISO3166: 'LC', id: CountryId.SAINTE_LUCIE },
|
|
445
|
-
{ name: 'Samoa', ISO3166_num: 882, ISO3166: 'WS', id: CountryId.SAMOA },
|
|
446
|
-
{ name: 'Samoa Américaines', ISO3166_num: 16, ISO3166: 'AS', id: CountryId.SAMOA_AMERICAINES },
|
|
445
|
+
{ name: 'Samoa', ISO3166_num: 882, ISO3166: 'WS', id: CountryId.SAMOA, isBlacklist: true },
|
|
446
|
+
{ name: 'Samoa Américaines', ISO3166_num: 16, ISO3166: 'AS', id: CountryId.SAMOA_AMERICAINES, isBlacklist: true },
|
|
447
447
|
{ name: 'Sao Tomé-et-Principe', ISO3166_num: 678, ISO3166: 'ST', id: CountryId.SAO_TOME_ET_PRINCIPE },
|
|
448
448
|
{ name: 'Sénégal', ISO3166_num: 686, ISO3166: 'SN', id: CountryId.SENEGAL },
|
|
449
449
|
{ name: 'Serbie-et-Monténégro', ISO3166_num: 688, ISO3166: 'CS', id: CountryId.SERBIE_ET_MONTENEGRO },
|
|
@@ -471,14 +471,14 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; ISO3166_
|
|
|
471
471
|
{ name: 'Togo', ISO3166_num: 768, ISO3166: 'TG', id: CountryId.TOGO },
|
|
472
472
|
{ name: 'Tokelau', ISO3166_num: 772, ISO3166: 'TK', id: CountryId.TOKELAU },
|
|
473
473
|
{ name: 'Tonga', ISO3166_num: 776, ISO3166: 'TO', id: CountryId.TONGA },
|
|
474
|
-
{ name: 'Trinité-et-Tobago', ISO3166_num: 780, ISO3166: 'TT', id: CountryId.TRINITE_ET_TOBAGO },
|
|
474
|
+
{ name: 'Trinité-et-Tobago', ISO3166_num: 780, ISO3166: 'TT', id: CountryId.TRINITE_ET_TOBAGO, isBlacklist: true },
|
|
475
475
|
{ name: 'Tunisie', ISO3166_num: 788, ISO3166: 'TN', id: CountryId.TUNISIE },
|
|
476
476
|
{ name: 'Turkménistan', ISO3166_num: 795, ISO3166: 'TM', id: CountryId.TURKMENISTAN },
|
|
477
477
|
{ name: 'Turquie', ISO3166_num: 792, ISO3166: 'TR', id: CountryId.TURQUIE },
|
|
478
478
|
{ name: 'Tuvalu', ISO3166_num: 798, ISO3166: 'TV', id: CountryId.TUVALU },
|
|
479
479
|
{ name: 'Ukraine', ISO3166_num: 804, ISO3166: 'UA', id: CountryId.UKRAINE },
|
|
480
480
|
{ name: 'Uruguay', ISO3166_num: 858, ISO3166: 'UY', id: CountryId.URUGUAY },
|
|
481
|
-
{ name: 'Vanuatu', ISO3166_num: 548, ISO3166: 'VU', id: CountryId.VANUATU },
|
|
481
|
+
{ name: 'Vanuatu', ISO3166_num: 548, ISO3166: 'VU', id: CountryId.VANUATU, isBlacklist: true },
|
|
482
482
|
{ name: 'Venezuela', ISO3166_num: 862, ISO3166: 'VE', id: CountryId.VENEZUELA },
|
|
483
483
|
{ name: 'Viet Nam', ISO3166_num: 704, ISO3166: 'VN', id: CountryId.VIET_NAM },
|
|
484
484
|
{ name: 'Wallis et Futuna', ISO3166_num: 876, ISO3166: 'WF', id: CountryId.WALLIS_ET_FUTUNA },
|