@silexpert/core 0.4.19 → 0.4.20
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/PartnerTransactionType.d.ts +7 -0
- package/es/types/Enum/PartnerTransactionType.d.ts.map +1 -0
- package/es/types/Enum/PartnerTransactionType.js +8 -0
- package/es/types/Enum/PartnerTransactionType.js.map +1 -0
- package/es/types/Interface/api/account/CreateAccountSociety.d.ts +7 -0
- package/es/types/Interface/api/account/CreateAccountSociety.d.ts.map +1 -0
- package/es/types/Interface/api/account/CreateAccountSociety.js +29 -0
- package/es/types/Interface/api/account/CreateAccountSociety.js.map +1 -0
- package/es/types/Interface/api/account/QueryAccountSociety.d.ts +8 -0
- package/es/types/Interface/api/account/QueryAccountSociety.d.ts.map +1 -0
- package/es/types/Interface/api/account/QueryAccountSociety.js +33 -0
- package/es/types/Interface/api/account/QueryAccountSociety.js.map +1 -0
- package/es/types/Interface/api/account/QueryGenericAccount.d.ts +6 -0
- package/es/types/Interface/api/account/QueryGenericAccount.d.ts.map +1 -0
- package/es/types/Interface/api/account/QueryGenericAccount.js +25 -0
- package/es/types/Interface/api/account/QueryGenericAccount.js.map +1 -0
- package/es/types/Interface/api/account/UpdateAccountSociety.d.ts +8 -0
- package/es/types/Interface/api/account/UpdateAccountSociety.d.ts.map +1 -0
- package/es/types/Interface/api/account/UpdateAccountSociety.js +29 -0
- package/es/types/Interface/api/account/UpdateAccountSociety.js.map +1 -0
- package/es/types/Interface/api/shine/CreateShine.d.ts +80 -0
- package/es/types/Interface/api/shine/CreateShine.d.ts.map +1 -0
- package/es/types/Interface/api/shine/CreateShine.js +2 -0
- package/es/types/Interface/api/shine/CreateShine.js.map +1 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +29 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +30 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IBankConnection.d.ts +4 -1
- package/es/types/Interface/models/IBankConnection.d.ts.map +1 -1
- package/es/types/Interface/models/IBankConnection.js.map +1 -1
- package/es/types/Interface/models/IBankTransaction.d.ts +1 -1
- package/es/types/Interface/models/IBankTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IBankTransaction.js.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.d.ts +3 -3
- package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/stringUtils/clean.d.ts +3 -0
- package/es/utils/stringUtils/clean.d.ts.map +1 -0
- package/es/utils/stringUtils/clean.js +12 -0
- package/es/utils/stringUtils/clean.js.map +1 -0
- package/es/utils/stringUtils/index.d.ts +2 -0
- package/es/utils/stringUtils/index.d.ts.map +1 -0
- package/es/utils/stringUtils/index.js +2 -0
- package/es/utils/stringUtils/index.js.map +1 -0
- package/js/types/Enum/PartnerTransactionType.js +14 -0
- package/js/types/Enum/{TypePartnerTransaction.js.map → PartnerTransactionType.js.map} +1 -1
- package/js/types/Interface/api/account/CreateAccountSociety.js +33 -0
- package/js/types/Interface/api/account/CreateAccountSociety.js.map +1 -0
- package/js/types/Interface/api/account/QueryAccountSociety.js +35 -0
- package/js/types/Interface/api/account/QueryAccountSociety.js.map +1 -0
- package/js/types/Interface/api/account/QueryGenericAccount.js +31 -0
- package/js/types/Interface/api/account/QueryGenericAccount.js.map +1 -0
- package/js/types/Interface/api/account/UpdateAccountSociety.js +33 -0
- package/js/types/Interface/api/account/UpdateAccountSociety.js.map +1 -0
- package/js/types/Interface/api/shine/CreateShine.js +6 -0
- package/js/types/Interface/api/shine/CreateShine.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +31 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/stringUtils/clean.js +15 -0
- package/js/utils/stringUtils/clean.js.map +1 -0
- package/js/utils/stringUtils/index.js +18 -0
- package/js/utils/stringUtils/index.js.map +1 -0
- package/package.json +1 -1
- package/ts/types/Enum/{TypePartnerTransaction.ts → PartnerTransactionType.ts} +1 -1
- package/ts/types/Interface/api/account/CreateAccountSociety.ts +15 -0
- package/ts/types/Interface/api/account/QueryAccountSociety.ts +18 -0
- package/ts/types/Interface/api/account/QueryGenericAccount.ts +12 -0
- package/ts/types/Interface/api/account/UpdateAccountSociety.ts +18 -0
- package/ts/types/Interface/api/shine/CreateShine.ts +84 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
- package/ts/types/Interface/models/IApiError.ts +31 -0
- package/ts/types/Interface/models/IBankConnection.ts +4 -1
- package/ts/types/Interface/models/IBankTransaction.ts +1 -1
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +1 -1
- package/ts/types/Interface/models/IPartnerTransaction.ts +3 -3
- package/ts/types/index.ts +5 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/stringUtils/clean.ts +12 -0
- package/ts/utils/stringUtils/index.ts +1 -0
- package/es/types/Enum/TypePartnerTransaction.d.ts +0 -7
- package/es/types/Enum/TypePartnerTransaction.d.ts.map +0 -1
- package/es/types/Enum/TypePartnerTransaction.js +0 -8
- package/es/types/Enum/TypePartnerTransaction.js.map +0 -1
- package/js/types/Enum/TypePartnerTransaction.js +0 -14
package/ts/types/index.ts
CHANGED
|
@@ -304,6 +304,7 @@ export * from './Enum/PartnerType';
|
|
|
304
304
|
export * from './Enum/ThirdPartyType';
|
|
305
305
|
export * from './Enum/FecFileDelimiter';
|
|
306
306
|
export * from './Enum/IncomeStatement';
|
|
307
|
+
export * from './Enum/PartnerTransactionType';
|
|
307
308
|
export * from './Enum/Vehicle';
|
|
308
309
|
export * from './Enum/VehicleType';
|
|
309
310
|
export * from './Enum/BalanceSheet';
|
|
@@ -322,6 +323,10 @@ export * from './Interface/api/paymentExpectationCustomer/UpdatePaymentExpectati
|
|
|
322
323
|
export * from './Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer';
|
|
323
324
|
export * from './Interface/api/accountType/ReadAccountType';
|
|
324
325
|
export * from './Interface/api/account/QueryAccounts';
|
|
326
|
+
export * from './Interface/api/account/CreateAccountSociety';
|
|
327
|
+
export * from './Interface/api/account/UpdateAccountSociety';
|
|
328
|
+
export * from './Interface/api/account/QueryAccountSociety';
|
|
329
|
+
export * from './Interface/api/account/QueryGenericAccount';
|
|
325
330
|
export * from './Interface/api/accountingTransaction/QueryTransaction';
|
|
326
331
|
export * from './Interface/api/user/QueryConfirm';
|
|
327
332
|
export * from './Interface/api/user/QueryResendConfirmationLink';
|
package/ts/utils/index.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];
|
|
2
|
+
export const minWordsForDesignation = 3;
|
|
3
|
+
|
|
4
|
+
export function cleanForRules(string: string) : string {
|
|
5
|
+
return string
|
|
6
|
+
.toLowerCase()
|
|
7
|
+
.replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique
|
|
8
|
+
.split(' ')
|
|
9
|
+
.filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à 3 char
|
|
10
|
+
.join(' ')
|
|
11
|
+
.replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './clean';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypePartnerTransaction.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/TypePartnerTransaction.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,KAAK,IAAI;IACT,cAAc,IAAI;IAClB,KAAK,IAAI;IACT,KAAK,IAAI;CACV"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var TypePartnerTransaction;
|
|
2
|
-
(function (TypePartnerTransaction) {
|
|
3
|
-
TypePartnerTransaction[TypePartnerTransaction["OTHER"] = 1] = "OTHER";
|
|
4
|
-
TypePartnerTransaction[TypePartnerTransaction["BUDGET_INSIGHT"] = 2] = "BUDGET_INSIGHT";
|
|
5
|
-
TypePartnerTransaction[TypePartnerTransaction["QONTO"] = 3] = "QONTO";
|
|
6
|
-
TypePartnerTransaction[TypePartnerTransaction["SHINE"] = 4] = "SHINE";
|
|
7
|
-
})(TypePartnerTransaction || (TypePartnerTransaction = {}));
|
|
8
|
-
//# sourceMappingURL=TypePartnerTransaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypePartnerTransaction.js","sourceRoot":"","sources":["../../../ts/types/Enum/TypePartnerTransaction.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,qEAAS,CAAA;IACT,uFAAkB,CAAA;IAClB,qEAAS,CAAA;IACT,qEAAS,CAAA;AACX,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC","sourcesContent":["export enum TypePartnerTransaction {\n OTHER = 1,\n BUDGET_INSIGHT = 2,\n QONTO = 3,\n SHINE = 4,\n}"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var TypePartnerTransaction = exports.TypePartnerTransaction = undefined;
|
|
7
|
-
|
|
8
|
-
(function (TypePartnerTransaction) {
|
|
9
|
-
TypePartnerTransaction[TypePartnerTransaction["OTHER"] = 1] = "OTHER";
|
|
10
|
-
TypePartnerTransaction[TypePartnerTransaction["BUDGET_INSIGHT"] = 2] = "BUDGET_INSIGHT";
|
|
11
|
-
TypePartnerTransaction[TypePartnerTransaction["QONTO"] = 3] = "QONTO";
|
|
12
|
-
TypePartnerTransaction[TypePartnerTransaction["SHINE"] = 4] = "SHINE";
|
|
13
|
-
})(TypePartnerTransaction || (exports.TypePartnerTransaction = TypePartnerTransaction = {}));
|
|
14
|
-
//# sourceMappingURL=TypePartnerTransaction.js.map
|