@silexpert/core 0.4.118 → 0.4.119

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 (116) hide show
  1. package/es/api/resources/AccountingIncome.d.ts +6 -0
  2. package/es/api/resources/AccountingIncome.d.ts.map +1 -0
  3. package/es/api/resources/AccountingIncome.js +7 -0
  4. package/es/api/resources/AccountingIncome.js.map +1 -0
  5. package/es/api/resources/BankStatement.d.ts +7 -0
  6. package/es/api/resources/BankStatement.d.ts.map +1 -0
  7. package/es/api/resources/BankStatement.js +15 -0
  8. package/es/api/resources/BankStatement.js.map +1 -0
  9. package/es/api/resources.d.ts +4 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +4 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/BalanceSheetQuestion.d.ts +122 -2
  14. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  15. package/es/types/Enum/BalanceSheetQuestion.js +122 -0
  16. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  17. package/es/types/Enum/BrandClementine.d.ts +5 -0
  18. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  19. package/es/types/Enum/BrandClementine.js +5 -0
  20. package/es/types/Enum/BrandClementine.js.map +1 -1
  21. package/es/types/Enum/BrandComptalib.d.ts +2 -0
  22. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  23. package/es/types/Enum/BrandComptalib.js +2 -0
  24. package/es/types/Enum/BrandComptalib.js.map +1 -1
  25. package/es/types/Enum/BrandLegalstart.d.ts +1 -0
  26. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  27. package/es/types/Enum/BrandLegalstart.js +1 -0
  28. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  29. package/es/types/Enum/Ged.d.ts +2 -0
  30. package/es/types/Enum/Ged.d.ts.map +1 -1
  31. package/es/types/Enum/Ged.js +2 -1
  32. package/es/types/Enum/Ged.js.map +1 -1
  33. package/es/types/Enum/{MealExpenseTresholds.d.ts → MealExpenseThresholds.d.ts} +1 -1
  34. package/es/types/Enum/MealExpenseThresholds.d.ts.map +1 -0
  35. package/es/types/Enum/{MealExpenseTresholds.js → MealExpenseThresholds.js} +1 -1
  36. package/es/types/Enum/MealExpenseThresholds.js.map +1 -0
  37. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +4 -0
  38. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -0
  39. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.js +2 -0
  40. package/es/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -0
  41. package/es/types/Interface/api/bankStatement/QueryBankStatement.d.ts +6 -0
  42. package/es/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -0
  43. package/es/types/Interface/api/bankStatement/QueryBankStatement.js +25 -0
  44. package/es/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -0
  45. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts +9 -0
  46. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.d.ts.map +1 -0
  47. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +27 -0
  48. package/es/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -0
  49. package/es/types/Interface/api/bankStatement/ReadBankStatement.d.ts +6 -0
  50. package/es/types/Interface/api/bankStatement/ReadBankStatement.d.ts.map +1 -0
  51. package/es/types/Interface/api/bankStatement/ReadBankStatement.js +3 -0
  52. package/es/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -0
  53. package/es/types/Interface/api/ocr/OcrTransactions.d.ts +12 -0
  54. package/es/types/Interface/api/ocr/OcrTransactions.d.ts.map +1 -0
  55. package/es/types/Interface/api/ocr/OcrTransactions.js +33 -0
  56. package/es/types/Interface/api/ocr/OcrTransactions.js.map +1 -0
  57. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts +7 -0
  58. package/es/types/Interface/api/ocr/OcrTypeTransactions.d.ts.map +1 -0
  59. package/es/types/Interface/api/ocr/OcrTypeTransactions.js +2 -0
  60. package/es/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -0
  61. package/es/types/index.d.ts +7 -1
  62. package/es/types/index.d.ts.map +1 -1
  63. package/es/types/index.js +7 -1
  64. package/es/types/index.js.map +1 -1
  65. package/js/api/resources/AccountingIncome.js +18 -0
  66. package/js/api/resources/AccountingIncome.js.map +1 -0
  67. package/js/api/resources/BankStatement.js +30 -0
  68. package/js/api/resources/BankStatement.js.map +1 -0
  69. package/js/api/resources.js +7 -1
  70. package/js/api/resources.js.map +1 -1
  71. package/js/types/Enum/BalanceSheetQuestion.js +122 -0
  72. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  73. package/js/types/Enum/BrandClementine.js +7 -2
  74. package/js/types/Enum/BrandClementine.js.map +1 -1
  75. package/js/types/Enum/BrandComptalib.js +2 -0
  76. package/js/types/Enum/BrandComptalib.js.map +1 -1
  77. package/js/types/Enum/BrandLegalstart.js +1 -0
  78. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  79. package/js/types/Enum/Ged.js +4 -3
  80. package/js/types/Enum/Ged.js.map +1 -1
  81. package/js/types/Enum/{MealExpenseTresholds.js → MealExpenseThresholds.js} +1 -1
  82. package/js/types/Enum/MealExpenseThresholds.js.map +1 -0
  83. package/js/types/Interface/api/accountingIncome/ReadAccountingIncome.js +6 -0
  84. package/js/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -0
  85. package/js/types/Interface/api/bankStatement/QueryBankStatement.js +31 -0
  86. package/js/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -0
  87. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js +33 -0
  88. package/js/types/Interface/api/bankStatement/QueryTransactionBankStatement.js.map +1 -0
  89. package/js/types/Interface/api/bankStatement/ReadBankStatement.js +10 -0
  90. package/js/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -0
  91. package/js/types/Interface/api/ocr/OcrTransactions.js +37 -0
  92. package/js/types/Interface/api/ocr/OcrTransactions.js.map +1 -0
  93. package/js/types/Interface/api/ocr/OcrTypeTransactions.js +6 -0
  94. package/js/types/Interface/api/ocr/OcrTypeTransactions.js.map +1 -0
  95. package/js/types/index.js +75 -3
  96. package/js/types/index.js.map +1 -1
  97. package/package.json +1 -1
  98. package/ts/api/resources/AccountingIncome.ts +8 -0
  99. package/ts/api/resources/BankStatement.ts +20 -0
  100. package/ts/api/resources.ts +4 -0
  101. package/ts/types/Enum/BalanceSheetQuestion.ts +192 -0
  102. package/ts/types/Enum/BrandClementine.ts +5 -0
  103. package/ts/types/Enum/BrandComptalib.ts +2 -0
  104. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  105. package/ts/types/Enum/Ged.ts +2 -1
  106. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +3 -0
  107. package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +15 -0
  108. package/ts/types/Interface/api/bankStatement/QueryTransactionBankStatement.ts +15 -0
  109. package/ts/types/Interface/api/bankStatement/ReadBankStatement.ts +6 -0
  110. package/ts/types/Interface/api/ocr/OcrTransactions.ts +24 -0
  111. package/ts/types/Interface/api/ocr/OcrTypeTransactions.ts +6 -0
  112. package/ts/types/index.ts +7 -1
  113. package/es/types/Enum/MealExpenseTresholds.d.ts.map +0 -1
  114. package/es/types/Enum/MealExpenseTresholds.js.map +0 -1
  115. package/js/types/Enum/MealExpenseTresholds.js.map +0 -1
  116. /package/ts/types/Enum/{MealExpenseTresholds.ts → MealExpenseThresholds.ts} +0 -0
@@ -46,6 +46,7 @@ export const BrandClementine = [
46
46
  logoUrl: 'logo-dark.svg',
47
47
  miniLogoUrl: 'logo.svg',
48
48
  hiddenPages: [],
49
+ urlApp: 'https://app.compta-clementine.fr',
49
50
  urlExpert: 'https://expert.compta-clementine.fr',
50
51
  urlClient: 'https://www.compta-clementine.fr',
51
52
  },
@@ -81,6 +82,7 @@ export const BrandClementine = [
81
82
  miniLogoUrl: 'logo-legalstart.svg',
82
83
  hiddenPages: [],
83
84
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
85
+ urlApp: 'https://gestion.legalstart.fr',
84
86
  urlExpert: 'https://pro.comptalib.com',
85
87
  urlClient: 'https://www.pourcentage.fr',
86
88
  },
@@ -90,6 +92,7 @@ export const BrandClementine = [
90
92
  colors: {
91
93
  primary: '#24315e',
92
94
  },
95
+ urlApp: 'https://app.compta-clementine.fr',
93
96
  },
94
97
  {
95
98
  idTypeBrand: 4,
@@ -139,11 +142,13 @@ export const BrandClementine = [
139
142
  miniLogoUrl: 'logo-pourcentage-mini.svg',
140
143
  hiddenPages: [],
141
144
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG', // TODO:
145
+ urlApp: 'https://app.comptalib.com/',
142
146
  urlExpert: 'https://pro.comptalib.com',
143
147
  urlClient: 'https://www.pourcentage.fr',
144
148
  },
145
149
  {
146
150
  idTypeBrand: 5,
147
151
  name: 'Kandbaz',
152
+ urlApp: 'https://app.compta-clementine.fr',
148
153
  },
149
154
  ];
@@ -46,6 +46,7 @@ export const BrandComptalib = [
46
46
  miniLogoUrl: 'logo-comptalib.svg',
47
47
  hiddenPages: [],
48
48
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
49
+ urlApp: 'https://app.comptalib.com/',
49
50
  urlExpert: 'https://pro.comptalib.com',
50
51
  urlClient: '',
51
52
  },
@@ -97,6 +98,7 @@ export const BrandComptalib = [
97
98
  miniLogoUrl: 'logo-pourcentage-mini.svg',
98
99
  hiddenPages: [],
99
100
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
101
+ urlApp: 'https://app.comptalib.com/',
100
102
  urlExpert: 'https://pro.comptalib.com',
101
103
  urlClient: 'https://www.pourcentage.fr',
102
104
  },
@@ -46,6 +46,7 @@ export const BrandLegalstart = [
46
46
  miniLogoUrl: 'logo-legalstart.svg',
47
47
  hiddenPages: [],
48
48
  recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
49
+ urlApp: 'https://gestion.legalstart.fr',
49
50
  urlExpert: 'https://pro.comptalib.com',
50
51
  urlClient: 'https://www.pourcentage.fr',
51
52
  },
@@ -40,7 +40,7 @@ export enum GedFolder {
40
40
  PARTNERS = 34,
41
41
  // Incoming mails = 35,
42
42
  OUTGOING_MAIL = 36,
43
- // Bank Statements = 37,
43
+ BANK_STATEMENT = 37,
44
44
  // Formalism = 38,
45
45
  PENDING_POINTS = 39,
46
46
  // Balance-GL Journals Year N-1 = 40
@@ -50,6 +50,7 @@ export enum GedFileType {
50
50
  STATUTES = 1,
51
51
  // 2,'Carte d\'identité'
52
52
  KBIS = 3,
53
+ RIB = 4,
53
54
  // 4,'RIB'
54
55
  // 5,'Mémento Fiscal'
55
56
  // 6,'SEPA'
@@ -0,0 +1,3 @@
1
+ export interface ReadAccountingIncome {
2
+ income: number;
3
+ }
@@ -0,0 +1,15 @@
1
+ import { IsNotEmpty, IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class UploadBankStatement {
5
+ @IsOptional()
6
+ @ApiPropertyOptional()
7
+ tokenCsv?: string;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ @IsNotEmpty()
12
+ idBankAccount: number;
13
+
14
+ file: File;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
3
+ import { OcrTransactionDetails } from '../ocr/OcrTypeTransactions';
4
+
5
+ export class QueryTransactionBankStatement {
6
+ @ApiPropertyOptional()
7
+ accountingFile?: { id: number };
8
+
9
+ @ApiProperty()
10
+ transactions: OcrTransactionDetails[];
11
+
12
+ @ApiProperty()
13
+ @IsNumber()
14
+ idBankAccount?: number;
15
+ }
@@ -0,0 +1,6 @@
1
+ import { OcrTransactions } from '../ocr/OcrTransactions';
2
+
3
+ export class ReadBankStatement {
4
+ success: boolean;
5
+ data: OcrTransactions | null;
6
+ }
@@ -0,0 +1,24 @@
1
+ import { IsBoolean } from 'class-validator';
2
+ import { IFile } from '../../..';
3
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
+ import { OcrTransactionDetails } from './OcrTypeTransactions';
6
+
7
+ export class OcrTransactions {
8
+ @ApiProperty()
9
+ accountingFile: {
10
+ id: number
11
+ file: Partial<IFile>
12
+ };
13
+
14
+ @ApiProperty()
15
+ transactions: OcrTransactionDetails[];
16
+
17
+ @ApiPropertyOptional()
18
+ idBankAccount: number;
19
+
20
+ @ToBoolean()
21
+ @IsBoolean()
22
+ @ApiProperty()
23
+ isPdf: boolean;
24
+ }
@@ -0,0 +1,6 @@
1
+ export type OcrTransactionDetails = {
2
+ dateValue: Date,
3
+ label: string | null,
4
+ debit: number,
5
+ credit: number,
6
+ };
package/ts/types/index.ts CHANGED
@@ -372,7 +372,7 @@ export * from './Enum/PartneredAccountantServiceState';
372
372
  export * from './Enum/AccountsSectors';
373
373
  export * from './Enum/ProductType';
374
374
  export * from './Enum/Unit';
375
- export * from './Enum/MealExpenseTresholds';
375
+ export * from './Enum/MealExpenseThresholds';
376
376
  export * from './Enum/MimeType';
377
377
  export * from './Enum/BalanceSheetQuestion';
378
378
  export * from './Enum/AnswerTypeValue';
@@ -453,6 +453,12 @@ export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
453
453
  export * from './Interface/api/internalInvoicing/CreateInternalInvoicing2in';
454
454
  export * from './Interface/api/exercice/QueryExercice';
455
455
  export * from './Interface/api/exercice/CreateExercice';
456
+ export * from './Interface/api/accountingIncome/ReadAccountingIncome';
457
+ export * from './Interface/api/ocr/OcrTransactions';
458
+ export * from './Interface/api/bankStatement/QueryBankStatement';
459
+ export * from './Interface/api/bankStatement/QueryTransactionBankStatement';
460
+ export * from './Interface/api/ocr/OcrTypeTransactions';
461
+ export * from './Interface/api/bankStatement/ReadBankStatement';
456
462
 
457
463
  // export * from './Interface/api/survey/QuerySurvey';
458
464
  export * from './Interface/api/survey/ReadSurvey';
@@ -1 +0,0 @@
1
- {"version":3,"file":"MealExpenseTresholds.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAA;CACF;AAED,eAAO,MAAM,qBAAqB,EAAE,sBASnC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MealExpenseTresholds.js","sourceRoot":"","sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAA2B;IAC3D,IAAI,EAAE;QACJ,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,EAAE;KACR;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,KAAK;KACX;CACF,CAAC","sourcesContent":["export interface IMealExpenseThresholds {\n [key: string]: {\n min: number;\n max: number;\n }\n}\n\nexport const MealExpenseThresholds: IMealExpenseThresholds = {\n 2020: {\n min: 4.90,\n max: 19,\n },\n 2021: {\n min: 4.95,\n max: 19.10,\n },\n};"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../ts/types/Enum/MealExpenseTresholds.ts"],"names":[],"mappings":";;;;;AAOO,MAAM,qBAAqB,WAArB,qBAAqB,GAA2B;AAC3D,QAAM;AACJ,IAAA,GAAG,EAAE,IADD;AAEJ,IAAA,GAAG,EAAE;AAFD,GADqD;AAK3D,QAAM;AACJ,IAAA,GAAG,EAAE,IADD;AAEJ,IAAA,GAAG,EAAE;AAFD;AALqD,CAAtD","sourcesContent":["export interface IMealExpenseThresholds {\n [key: string]: {\n min: number;\n max: number;\n }\n}\n\nexport const MealExpenseThresholds: IMealExpenseThresholds = {\n 2020: {\n min: 4.90,\n max: 19,\n },\n 2021: {\n min: 4.95,\n max: 19.10,\n },\n};"],"sourceRoot":"","file":"MealExpenseTresholds.js"}