@silexpert/core 1.1.69 → 1.1.70
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/es/types/Enum/Country.d.ts +4 -2
- package/es/types/Enum/Country.d.ts.map +1 -1
- package/es/types/Enum/Country.js +9 -5
- package/es/types/Enum/Country.js.map +1 -1
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +14 -0
- package/es/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/es/types/Interface/api/stripe/QueryStripe.d.ts +2 -2
- package/es/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/es/types/Interface/api/stripe/QueryStripe.js +20 -1
- package/es/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/es/utils/brands.js +1 -1
- package/es/utils/brands.js.map +1 -1
- package/es/utils/vat/3310/century23.js +1 -1
- package/es/utils/vat/3310/century23.js.map +1 -1
- package/es/utils/vat/3517/century23.js +1 -1
- package/es/utils/vat/3517/century23.js.map +1 -1
- package/js/types/Enum/Country.js +14 -5
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +13 -0
- package/js/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
- package/js/types/Interface/api/stripe/QueryStripe.js +16 -0
- package/js/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/js/utils/brands.js +2 -1
- package/js/utils/brands.js.map +1 -1
- package/js/utils/vat/3310/century23.js +1 -1
- package/js/utils/vat/3310/century23.js.map +1 -1
- package/js/utils/vat/3517/century23.js +1 -1
- package/js/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/Country.ts +9 -5
- package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +2 -1
- package/ts/types/Interface/api/stripe/QueryStripe.ts +7 -2
- package/ts/utils/brands.ts +1 -1
- package/ts/utils/vat/3310/century23.ts +1 -1
- package/ts/utils/vat/3517/century23.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.70",
|
|
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",
|
package/ts/types/Enum/Country.ts
CHANGED
|
@@ -240,6 +240,7 @@ export enum CountryId {
|
|
|
240
240
|
YEMEN = 239,
|
|
241
241
|
ZAMBIE = 240,
|
|
242
242
|
ZIMBABWE = 241,
|
|
243
|
+
AUTRE = 242,
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
export const CountryList: Array<{ name: string; ISO3166: string | null; id: CountryId }> = [
|
|
@@ -337,7 +338,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; id: Coun
|
|
|
337
338
|
{ name: 'Îles (malvinas) Falkland', ISO3166: 'FK', id: CountryId.ILES_MALVINAS_FALKLAND },
|
|
338
339
|
{ name: 'Îles Åland', ISO3166: 'AX', id: CountryId.ILES_ÅLAND },
|
|
339
340
|
{ name: 'Îles Caïmanes', ISO3166: 'KY', id: CountryId.ILES_CAIMANES },
|
|
340
|
-
{ name: 'Îles Cocos (
|
|
341
|
+
{ name: 'Îles Cocos (Keeling)', ISO3166: null, id: CountryId.ILES_COCOS_KEE },
|
|
341
342
|
{ name: 'Îles Cook', ISO3166: 'CK', id: CountryId.ILES_COOK },
|
|
342
343
|
{ name: 'Îles Féroé', ISO3166: 'FO', id: CountryId.ILES_FEROE },
|
|
343
344
|
{ name: 'Îles Heard et Mcdonald', ISO3166: 'HM', id: CountryId.ILES_HEARD_ET_MCDONALD },
|
|
@@ -457,14 +458,14 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; id: Coun
|
|
|
457
458
|
{ name: 'Suède', ISO3166: 'SE', id: CountryId.SUEDE },
|
|
458
459
|
{ name: 'Suisse', ISO3166: 'CH', id: CountryId.SUISSE },
|
|
459
460
|
{ name: 'Suriname', ISO3166: 'SR', id: CountryId.SURINAME },
|
|
460
|
-
{ name: 'Svalbard
|
|
461
|
-
{ name: '
|
|
461
|
+
{ name: 'Svalbard et Île Jan Mayen', ISO3166: 'SJ', id: CountryId.SVALBARD_ETILE_JAN_MAYEN },
|
|
462
|
+
{ name: 'Swaziland', ISO3166: null, id: CountryId.SWAZI },
|
|
462
463
|
{ name: 'Tadjikistan', ISO3166: 'TJ', id: CountryId.TADJIKISTAN },
|
|
463
|
-
{ name: '
|
|
464
|
+
{ name: 'Taïwan', ISO3166: null, id: CountryId.TA },
|
|
464
465
|
{ name: 'Tchad', ISO3166: 'TD', id: CountryId.TCHAD },
|
|
465
466
|
{ name: 'Terres Australes Françaises', ISO3166: 'TF', id: CountryId.TERRES_AUSTRALES_FRANCAISES },
|
|
466
467
|
{ name: 'Territoire Britannique de l\'Océan Indien', ISO3166: 'IO', id: CountryId.TERRITOIRE_BRITANNIQUE_DE_L_OCEAN_INDIEN },
|
|
467
|
-
{ name: 'Territoire Palestinien
|
|
468
|
+
{ name: 'Territoire Palestinien Occupé', ISO3166: null, id: CountryId.TERRITOIRE_PALESTINIEN_OC },
|
|
468
469
|
{ name: 'Thaïlande', ISO3166: 'TH', id: CountryId.THAILANDE },
|
|
469
470
|
{ name: 'Timor-Leste', ISO3166: 'TL', id: CountryId.TIMOR_LESTE },
|
|
470
471
|
{ name: 'Togo', ISO3166: 'TG', id: CountryId.TOGO },
|
|
@@ -484,6 +485,7 @@ export const CountryList: Array<{ name: string; ISO3166: string | null; id: Coun
|
|
|
484
485
|
{ name: 'Yémen', ISO3166: 'YE', id: CountryId.YEMEN },
|
|
485
486
|
{ name: 'Zambie', ISO3166: 'ZM', id: CountryId.ZAMBIE },
|
|
486
487
|
{ name: 'Zimbabwe', ISO3166: 'ZW', id: CountryId.ZIMBABWE },
|
|
488
|
+
{ name: 'Autre', ISO3166: null, id: CountryId.AUTRE },
|
|
487
489
|
];
|
|
488
490
|
|
|
489
491
|
export enum NationalityId {
|
|
@@ -681,6 +683,7 @@ export enum NationalityId {
|
|
|
681
683
|
YEMENITE = 192,
|
|
682
684
|
ZAMBIENNE = 193,
|
|
683
685
|
ZIMBABWEENNE = 194,
|
|
686
|
+
AUTRE = 195,
|
|
684
687
|
}
|
|
685
688
|
|
|
686
689
|
export const NationalityList: Array<{ name: string; id: NationalityId }> = [
|
|
@@ -878,4 +881,5 @@ export const NationalityList: Array<{ name: string; id: NationalityId }> = [
|
|
|
878
881
|
{ name: 'Yemenite', id: NationalityId.YEMENITE },
|
|
879
882
|
{ name: 'Zambienne', id: NationalityId.ZAMBIENNE },
|
|
880
883
|
{ name: 'Zimbabweenne', id: NationalityId.ZIMBABWEENNE },
|
|
884
|
+
{ name: 'Autre', id: NationalityId.AUTRE },
|
|
881
885
|
];
|
package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApiProperty } from '../../../../utils';
|
|
1
2
|
import { QueryPaginate } from '../BasePaginate';
|
|
2
3
|
import { Order } from '../BaseRequest';
|
|
3
4
|
|
|
@@ -14,7 +15,7 @@ export class QueryPaymentExpectationCustomer {
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export class QueryGetPaymentExpectationCustomer {
|
|
17
|
-
|
|
18
|
+
@ApiProperty()
|
|
18
19
|
token: string;
|
|
19
20
|
}
|
|
20
21
|
export class QueryGetSocietyPaymentsExpectationsCustomersStats {
|
package/ts/utils/brands.ts
CHANGED
|
@@ -81,7 +81,7 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
81
81
|
const nodeEnvUsed = nodeEnv ?? process.env.NODE_ENV;
|
|
82
82
|
const currentEnvName = getBrandNameByNodeEnv(nodeEnvUsed);
|
|
83
83
|
const listEnvEnum = {
|
|
84
|
-
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandClems,
|
|
84
|
+
BrandClementine, BrandLegalstart, BrandComptalib, BrandPourcentage, BrandClems, BrandStatutsExpress,
|
|
85
85
|
};
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
const currentConfigFile:brand[] = listEnvEnum[`Brand${currentEnvName}`];
|
|
@@ -160,7 +160,7 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
|
|
|
160
160
|
},
|
|
161
161
|
siret: {
|
|
162
162
|
first: isDefined(payload.society.siret) ? (payload.society.siret?.slice(0, 9) ?? null) : null,
|
|
163
|
-
second: isDefined(payload.society.siret) ? (payload.society.siret?.slice(
|
|
163
|
+
second: isDefined(payload.society.siret) ? (payload.society.siret?.slice(-4) ?? null) : null,
|
|
164
164
|
},
|
|
165
165
|
intracommunityVat: {
|
|
166
166
|
first: shouldHaveVatCode ? (payload.setting?.tvaCode?.slice(0, 2) ?? null) : null,
|
|
@@ -91,7 +91,7 @@ export function getCerfa3517Century23Payload(accountingEntries: IAccountingEntry
|
|
|
91
91
|
},
|
|
92
92
|
siret: {
|
|
93
93
|
first: isDefined(payload.society.siret) ? (payload.society.siret?.slice(0, 9) ?? null) : null,
|
|
94
|
-
second: isDefined(payload.society.siret) ? (payload.society.siret?.slice(
|
|
94
|
+
second: isDefined(payload.society.siret) ? (payload.society.siret?.slice(-4) ?? null) : null,
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
payment: {
|