@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.
Files changed (103) hide show
  1. package/es/types/Enum/PartnerTransactionType.d.ts +7 -0
  2. package/es/types/Enum/PartnerTransactionType.d.ts.map +1 -0
  3. package/es/types/Enum/PartnerTransactionType.js +8 -0
  4. package/es/types/Enum/PartnerTransactionType.js.map +1 -0
  5. package/es/types/Interface/api/account/CreateAccountSociety.d.ts +7 -0
  6. package/es/types/Interface/api/account/CreateAccountSociety.d.ts.map +1 -0
  7. package/es/types/Interface/api/account/CreateAccountSociety.js +29 -0
  8. package/es/types/Interface/api/account/CreateAccountSociety.js.map +1 -0
  9. package/es/types/Interface/api/account/QueryAccountSociety.d.ts +8 -0
  10. package/es/types/Interface/api/account/QueryAccountSociety.d.ts.map +1 -0
  11. package/es/types/Interface/api/account/QueryAccountSociety.js +33 -0
  12. package/es/types/Interface/api/account/QueryAccountSociety.js.map +1 -0
  13. package/es/types/Interface/api/account/QueryGenericAccount.d.ts +6 -0
  14. package/es/types/Interface/api/account/QueryGenericAccount.d.ts.map +1 -0
  15. package/es/types/Interface/api/account/QueryGenericAccount.js +25 -0
  16. package/es/types/Interface/api/account/QueryGenericAccount.js.map +1 -0
  17. package/es/types/Interface/api/account/UpdateAccountSociety.d.ts +8 -0
  18. package/es/types/Interface/api/account/UpdateAccountSociety.d.ts.map +1 -0
  19. package/es/types/Interface/api/account/UpdateAccountSociety.js +29 -0
  20. package/es/types/Interface/api/account/UpdateAccountSociety.js.map +1 -0
  21. package/es/types/Interface/api/shine/CreateShine.d.ts +80 -0
  22. package/es/types/Interface/api/shine/CreateShine.d.ts.map +1 -0
  23. package/es/types/Interface/api/shine/CreateShine.js +2 -0
  24. package/es/types/Interface/api/shine/CreateShine.js.map +1 -0
  25. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
  26. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  27. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  28. package/es/types/Interface/models/IApiError.d.ts +29 -0
  29. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  30. package/es/types/Interface/models/IApiError.js +30 -0
  31. package/es/types/Interface/models/IApiError.js.map +1 -1
  32. package/es/types/Interface/models/IBankConnection.d.ts +4 -1
  33. package/es/types/Interface/models/IBankConnection.d.ts.map +1 -1
  34. package/es/types/Interface/models/IBankConnection.js.map +1 -1
  35. package/es/types/Interface/models/IBankTransaction.d.ts +1 -1
  36. package/es/types/Interface/models/IBankTransaction.d.ts.map +1 -1
  37. package/es/types/Interface/models/IBankTransaction.js.map +1 -1
  38. package/es/types/Interface/models/IEngagementBankTransaction.d.ts +1 -1
  39. package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
  40. package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
  41. package/es/types/Interface/models/IPartnerTransaction.d.ts +3 -3
  42. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  43. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  44. package/es/types/index.d.ts +5 -0
  45. package/es/types/index.d.ts.map +1 -1
  46. package/es/types/index.js +5 -0
  47. package/es/types/index.js.map +1 -1
  48. package/es/utils/index.d.ts +1 -0
  49. package/es/utils/index.d.ts.map +1 -1
  50. package/es/utils/index.js +1 -0
  51. package/es/utils/index.js.map +1 -1
  52. package/es/utils/stringUtils/clean.d.ts +3 -0
  53. package/es/utils/stringUtils/clean.d.ts.map +1 -0
  54. package/es/utils/stringUtils/clean.js +12 -0
  55. package/es/utils/stringUtils/clean.js.map +1 -0
  56. package/es/utils/stringUtils/index.d.ts +2 -0
  57. package/es/utils/stringUtils/index.d.ts.map +1 -0
  58. package/es/utils/stringUtils/index.js +2 -0
  59. package/es/utils/stringUtils/index.js.map +1 -0
  60. package/js/types/Enum/PartnerTransactionType.js +14 -0
  61. package/js/types/Enum/{TypePartnerTransaction.js.map → PartnerTransactionType.js.map} +1 -1
  62. package/js/types/Interface/api/account/CreateAccountSociety.js +33 -0
  63. package/js/types/Interface/api/account/CreateAccountSociety.js.map +1 -0
  64. package/js/types/Interface/api/account/QueryAccountSociety.js +35 -0
  65. package/js/types/Interface/api/account/QueryAccountSociety.js.map +1 -0
  66. package/js/types/Interface/api/account/QueryGenericAccount.js +31 -0
  67. package/js/types/Interface/api/account/QueryGenericAccount.js.map +1 -0
  68. package/js/types/Interface/api/account/UpdateAccountSociety.js +33 -0
  69. package/js/types/Interface/api/account/UpdateAccountSociety.js.map +1 -0
  70. package/js/types/Interface/api/shine/CreateShine.js +6 -0
  71. package/js/types/Interface/api/shine/CreateShine.js.map +1 -0
  72. package/js/types/Interface/models/IApiError.js +31 -1
  73. package/js/types/Interface/models/IApiError.js.map +1 -1
  74. package/js/types/index.js +60 -0
  75. package/js/types/index.js.map +1 -1
  76. package/js/utils/index.js +12 -0
  77. package/js/utils/index.js.map +1 -1
  78. package/js/utils/stringUtils/clean.js +15 -0
  79. package/js/utils/stringUtils/clean.js.map +1 -0
  80. package/js/utils/stringUtils/index.js +18 -0
  81. package/js/utils/stringUtils/index.js.map +1 -0
  82. package/package.json +1 -1
  83. package/ts/types/Enum/{TypePartnerTransaction.ts → PartnerTransactionType.ts} +1 -1
  84. package/ts/types/Interface/api/account/CreateAccountSociety.ts +15 -0
  85. package/ts/types/Interface/api/account/QueryAccountSociety.ts +18 -0
  86. package/ts/types/Interface/api/account/QueryGenericAccount.ts +12 -0
  87. package/ts/types/Interface/api/account/UpdateAccountSociety.ts +18 -0
  88. package/ts/types/Interface/api/shine/CreateShine.ts +84 -0
  89. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
  90. package/ts/types/Interface/models/IApiError.ts +31 -0
  91. package/ts/types/Interface/models/IBankConnection.ts +4 -1
  92. package/ts/types/Interface/models/IBankTransaction.ts +1 -1
  93. package/ts/types/Interface/models/IEngagementBankTransaction.ts +1 -1
  94. package/ts/types/Interface/models/IPartnerTransaction.ts +3 -3
  95. package/ts/types/index.ts +5 -0
  96. package/ts/utils/index.ts +1 -0
  97. package/ts/utils/stringUtils/clean.ts +12 -0
  98. package/ts/utils/stringUtils/index.ts +1 -0
  99. package/es/types/Enum/TypePartnerTransaction.d.ts +0 -7
  100. package/es/types/Enum/TypePartnerTransaction.d.ts.map +0 -1
  101. package/es/types/Enum/TypePartnerTransaction.js +0 -8
  102. package/es/types/Enum/TypePartnerTransaction.js.map +0 -1
  103. 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
@@ -1,2 +1,3 @@
1
1
  export * from './objectUtils';
2
+ export * from './stringUtils';
2
3
  export * from './decorators';
@@ -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,7 +0,0 @@
1
- export declare enum TypePartnerTransaction {
2
- OTHER = 1,
3
- BUDGET_INSIGHT = 2,
4
- QONTO = 3,
5
- SHINE = 4
6
- }
7
- //# sourceMappingURL=TypePartnerTransaction.d.ts.map
@@ -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