@silexpert/core 0.4.109 → 0.4.110
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/CHANGELOG.md +22 -0
- package/es/api/resources/AccountingFiles.d.ts +6 -0
- package/es/api/resources/AccountingFiles.d.ts.map +1 -0
- package/es/api/resources/AccountingFiles.js +14 -0
- package/es/api/resources/AccountingFiles.js.map +1 -0
- package/es/api/resources/MealExpense.d.ts +33 -0
- package/es/api/resources/MealExpense.d.ts.map +1 -0
- package/es/api/resources/MealExpense.js +37 -0
- package/es/api/resources/MealExpense.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AccountingFileType.d.ts +2 -1
- package/es/types/Enum/AccountingFileType.d.ts.map +1 -1
- package/es/types/Enum/AccountingFileType.js +1 -0
- package/es/types/Enum/AccountingFileType.js.map +1 -1
- package/es/types/Enum/MealExpenseTresholds.d.ts +8 -0
- package/es/types/Enum/MealExpenseTresholds.d.ts.map +1 -0
- package/es/types/Enum/MealExpenseTresholds.js +11 -0
- package/es/types/Enum/MealExpenseTresholds.js.map +1 -0
- package/es/types/Enum/MimeType.d.ts +24 -0
- package/es/types/Enum/MimeType.d.ts.map +1 -0
- package/es/types/Enum/MimeType.js +24 -0
- package/es/types/Enum/MimeType.js.map +1 -0
- package/es/types/Enum/Vat.d.ts +9 -0
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +9 -0
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts +14 -0
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/Ocr.js +2 -0
- package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +15 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.js +2 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.d.ts +14 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.js +2 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +7 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +32 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts +7 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +3 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/exercice/CreateExercice.d.ts +16 -0
- package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -0
- package/es/types/Interface/api/exercice/CreateExercice.js +101 -0
- package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -0
- package/es/types/Interface/api/exercice/QueryExercice.d.ts +7 -0
- package/es/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -0
- package/es/types/Interface/api/exercice/QueryExercice.js +39 -0
- package/es/types/Interface/api/exercice/QueryExercice.js.map +1 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts +4 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts.map +1 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.js +25 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts +8 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts.map +1 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.js +3 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +8 -8
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +0 -1
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/index.d.ts +11 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +11 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +29 -0
- package/js/api/resources/AccountingFiles.js.map +1 -0
- package/js/api/resources/MealExpense.js +52 -0
- package/js/api/resources/MealExpense.js.map +1 -0
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AccountingFileType.js +1 -0
- package/js/types/Enum/AccountingFileType.js.map +1 -1
- package/js/types/Enum/MealExpenseTresholds.js +16 -0
- package/js/types/Enum/MealExpenseTresholds.js.map +1 -0
- package/js/types/Enum/MimeType.js +29 -0
- package/js/types/Enum/MimeType.js.map +1 -0
- package/js/types/Enum/Vat.js +18 -9
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/Ocr.js +6 -0
- package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/OcrPayload.js +6 -0
- package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/OcrValue.js +6 -0
- package/js/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +35 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
- package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +10 -0
- package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/exercice/CreateExercice.js +55 -0
- package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -0
- package/js/types/Interface/api/exercice/QueryExercice.js +37 -0
- package/js/types/Interface/api/exercice/QueryExercice.js.map +1 -0
- package/js/types/Interface/api/mealExpense/CreateMealExpense.js +33 -0
- package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
- package/js/types/Interface/api/mealExpense/ReadMealExpense.js +10 -0
- package/js/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +3 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +132 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +18 -0
- package/ts/api/resources/MealExpense.ts +41 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AccountingFileType.ts +1 -0
- package/ts/types/Enum/MealExpenseTresholds.ts +17 -0
- package/ts/types/Enum/MimeType.ts +23 -0
- package/ts/types/Enum/Vat.ts +9 -0
- package/ts/types/Interface/api/accountingFiles/Ocr.ts +13 -0
- package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +15 -0
- package/ts/types/Interface/api/accountingFiles/OcrValue.ts +13 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +18 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.ts +6 -0
- package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/exercice/CreateExercice.ts +80 -0
- package/ts/types/Interface/api/exercice/QueryExercice.ts +25 -0
- package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +16 -0
- package/ts/types/Interface/api/mealExpense/ReadMealExpense.ts +8 -0
- package/ts/types/Interface/models/IApiError.ts +2 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
- package/ts/types/Interface/models/IExercice.ts +8 -8
- package/ts/types/Interface/models/IPayment.ts +0 -1
- package/ts/types/index.ts +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.110](https://gitlab.compta-clementine.fr/dev/silex-api/compare/v0.4.109...v0.4.110) (2021-11-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **mealExpenses:** add meal expenses API point ([958173a](https://gitlab.compta-clementine.fr/dev/silex-api/commits/958173ad0fab70949209d87b2ee7a966c372fe91))
|
|
11
|
+
* **uploadAccountingFile:** Refacto la logique de dépôt de facture de la v1 sur la v2" ([582c2e3](https://gitlab.compta-clementine.fr/dev/silex-api/commits/582c2e38be52b87fbc4785580956b4b29185715a))
|
|
12
|
+
* **vatControl:** add journal filter on getVat in dashboard ([af5f4e8](https://gitlab.compta-clementine.fr/dev/silex-api/commits/af5f4e824cf83a6b0e98ced0a82ad580dd8178ab))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **payment:** remove useless idSociety in payment model ([6a26666](https://gitlab.compta-clementine.fr/dev/silex-api/commits/6a266665034e127dcc5f40f6b0e525adef43c917))
|
|
18
|
+
* **topBuy:** take accountType icone for accounts icones ([2b02975](https://gitlab.compta-clementine.fr/dev/silex-api/commits/2b029752404e7c349f9d525b18da75a9f5447c58))
|
|
19
|
+
* **transactions:** annotate transaction only with invoice number ([78335b1](https://gitlab.compta-clementine.fr/dev/silex-api/commits/78335b1bb7dbc038c9f7f99a0562675f5eb33844))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Others
|
|
23
|
+
|
|
24
|
+
* **exercice:** add controller ([baddbf5](https://gitlab.compta-clementine.fr/dev/silex-api/commits/baddbf599defd4a9b67e5aeffb0d01d700cf7c63))
|
|
25
|
+
* **exercice:** fix types for get all ([96cb18b](https://gitlab.compta-clementine.fr/dev/silex-api/commits/96cb18be40a38cf634e2ea356bc31ec453e4e859))
|
|
26
|
+
|
|
5
27
|
### [0.4.109](https://gitlab.compta-clementine.fr/dev/silex-api/compare/v0.4.108...v0.4.109) (2021-11-23)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';
|
|
3
|
+
export declare class AccountingFiles extends Resource {
|
|
4
|
+
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=AccountingFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEvF,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,CAAC;CAa5F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
export class AccountingFiles extends Resource {
|
|
3
|
+
accountingFile(params) {
|
|
4
|
+
const sendAccountingFiles = new FormData();
|
|
5
|
+
sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());
|
|
6
|
+
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
7
|
+
sendAccountingFiles.append('split', params.split.toString());
|
|
8
|
+
params.files.forEach((file) => {
|
|
9
|
+
sendAccountingFiles.append('files', file);
|
|
10
|
+
});
|
|
11
|
+
return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AccountingFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAA4B;QACzC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE3C,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnF,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE7D,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5B,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACtH,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n}"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CreateMealExpense, ReadBalanceSheetTransaction, ReadMealExpense } from '../..';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
import { BalanceSheetModule } from './BalanceSheetModule';
|
|
4
|
+
export declare class MealExpense extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Get all possible transactions to be processed in meal expenses
|
|
7
|
+
* @param idExercice Exercice id
|
|
8
|
+
* @returns Array<ReadBalanceSheetTransaction>
|
|
9
|
+
* A list of possible candidate to meal expenses formatted into balance sheet transactions.
|
|
10
|
+
*/
|
|
11
|
+
getAllCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get all processed meal expenses for this exercice.
|
|
14
|
+
* @param idExercice
|
|
15
|
+
* @returns ReadMealExpense
|
|
16
|
+
* Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.
|
|
17
|
+
* Also provide the transaction lists.
|
|
18
|
+
*/
|
|
19
|
+
getAll(idExercice: number): Promise<ReadMealExpense>;
|
|
20
|
+
/**
|
|
21
|
+
* Transform given transactions into meal expenses.
|
|
22
|
+
* @param idExercice Exercice id
|
|
23
|
+
* @param payload { transactionIds: Array<number> }
|
|
24
|
+
* @returns BalanceSheetModule
|
|
25
|
+
* The updated balance sheet module.
|
|
26
|
+
* Set hasMealExpenses to true if all transactions were processed.
|
|
27
|
+
* Set hasMealExpenses to false if no transaction was provided.
|
|
28
|
+
*
|
|
29
|
+
* Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.
|
|
30
|
+
*/
|
|
31
|
+
processCandidates(idExercice: number, payload: CreateMealExpense): Promise<BalanceSheetModule>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=MealExpense.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MealExpense.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/MealExpense.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,WAAY,SAAQ,QAAQ;IACvC;;;;;OAKG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAIjF;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIpD;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG/F"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
export class MealExpense extends Resource {
|
|
3
|
+
/**
|
|
4
|
+
* Get all possible transactions to be processed in meal expenses
|
|
5
|
+
* @param idExercice Exercice id
|
|
6
|
+
* @returns Array<ReadBalanceSheetTransaction>
|
|
7
|
+
* A list of possible candidate to meal expenses formatted into balance sheet transactions.
|
|
8
|
+
*/
|
|
9
|
+
getAllCandidates(idExercice) {
|
|
10
|
+
return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expense-candidates`);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all processed meal expenses for this exercice.
|
|
14
|
+
* @param idExercice
|
|
15
|
+
* @returns ReadMealExpense
|
|
16
|
+
* Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.
|
|
17
|
+
* Also provide the transaction lists.
|
|
18
|
+
*/
|
|
19
|
+
getAll(idExercice) {
|
|
20
|
+
return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expenses`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Transform given transactions into meal expenses.
|
|
24
|
+
* @param idExercice Exercice id
|
|
25
|
+
* @param payload { transactionIds: Array<number> }
|
|
26
|
+
* @returns BalanceSheetModule
|
|
27
|
+
* The updated balance sheet module.
|
|
28
|
+
* Set hasMealExpenses to true if all transactions were processed.
|
|
29
|
+
* Set hasMealExpenses to false if no transaction was provided.
|
|
30
|
+
*
|
|
31
|
+
* Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.
|
|
32
|
+
*/
|
|
33
|
+
processCandidates(idExercice, payload) {
|
|
34
|
+
return this.axios.$post(`/balance-sheets/exercices/${idExercice}/meal-expenses`, payload);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=MealExpense.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MealExpense.js","sourceRoot":"","sources":["../../../ts/api/resources/MealExpense.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,WAAY,SAAQ,QAAQ;IACvC;;;;;OAKG;IACH,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,UAAU,0BAA0B,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,UAAU,gBAAgB,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,UAAkB,EAAE,OAA0B;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,UAAU,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF","sourcesContent":["import { CreateMealExpense, ReadBalanceSheetTransaction, ReadMealExpense } from '../..';\nimport { Resource } from '../Resource';\nimport { BalanceSheetModule } from './BalanceSheetModule';\n\nexport class MealExpense extends Resource {\n /**\n * Get all possible transactions to be processed in meal expenses\n * @param idExercice Exercice id\n * @returns Array<ReadBalanceSheetTransaction>\n * A list of possible candidate to meal expenses formatted into balance sheet transactions.\n */\n getAllCandidates(idExercice: number): Promise<Array<ReadBalanceSheetTransaction>> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expense-candidates`);\n }\n\n /**\n * Get all processed meal expenses for this exercice.\n * @param idExercice\n * @returns ReadMealExpense\n * Result is parsed to provide how many meal expenses are processed for this exercice. The amount corresponding, and the deductible amount computed.\n * Also provide the transaction lists.\n */\n getAll(idExercice: number): Promise<ReadMealExpense> {\n return this.axios.$get(`/balance-sheets/exercices/${idExercice}/meal-expenses`);\n }\n\n /**\n * Transform given transactions into meal expenses.\n * @param idExercice Exercice id\n * @param payload { transactionIds: Array<number> }\n * @returns BalanceSheetModule\n * The updated balance sheet module.\n * Set hasMealExpenses to true if all transactions were processed.\n * Set hasMealExpenses to false if no transaction was provided.\n *\n * Fails if exercice is unknown, or if transactions are not in exercice or if transactions are not valid candidate for meal expenses.\n */\n processCandidates(idExercice: number, payload: CreateMealExpense): Promise<BalanceSheetModule> {\n return this.axios.$post(`/balance-sheets/exercices/${idExercice}/meal-expenses`, payload);\n }\n}"]}
|
package/es/api/resources.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import { QuotesAccount } from './resources/QuotesAccount';
|
|
|
45
45
|
import { Registration } from './resources/Registration';
|
|
46
46
|
import { Journal } from './resources/Journal';
|
|
47
47
|
import { Product } from './resources/Product';
|
|
48
|
+
import { MealExpense } from './resources/MealExpense';
|
|
48
49
|
export declare const resources: {
|
|
49
50
|
simulation: typeof Simulation;
|
|
50
51
|
country: typeof Country;
|
|
@@ -93,5 +94,6 @@ export declare const resources: {
|
|
|
93
94
|
registration: typeof Registration;
|
|
94
95
|
journal: typeof Journal;
|
|
95
96
|
product: typeof Product;
|
|
97
|
+
mealExpense: typeof MealExpense;
|
|
96
98
|
};
|
|
97
99
|
//# sourceMappingURL=resources.d.ts.map
|
|
@@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MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDrB,CAAC"}
|
package/es/api/resources.js
CHANGED
|
@@ -45,6 +45,7 @@ import { QuotesAccount } from './resources/QuotesAccount';
|
|
|
45
45
|
import { Registration } from './resources/Registration';
|
|
46
46
|
import { Journal } from './resources/Journal';
|
|
47
47
|
import { Product } from './resources/Product';
|
|
48
|
+
import { MealExpense } from './resources/MealExpense';
|
|
48
49
|
export const resources = {
|
|
49
50
|
simulation: Simulation,
|
|
50
51
|
country: Country,
|
|
@@ -93,5 +94,6 @@ export const resources = {
|
|
|
93
94
|
registration: Registration,
|
|
94
95
|
journal: Journal,
|
|
95
96
|
product: Product,
|
|
97
|
+
mealExpense: MealExpense,
|
|
96
98
|
};
|
|
97
99
|
//# sourceMappingURL=resources.js.map
|
package/es/api/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../ts/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,k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Aa;IAC5B,OAAO,EAAE,OAAO;IAChB,eAAe,EAAE,eAAe;IAChC,YAAY,EAAE,YAAY;IAC1B,kBAAkB,EAAE,kBAAkB;IACtC,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,SAAS;IACpB,YAAY,EAAE,YAAY;IAC1B,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,YAAY;IAC1B,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,IAAI;IACV,gBAAgB,EAAE,gBAAgB;IAClC,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,gBAAgB;IAClC,yBAAyB,EAAE,yBAAyB;IACpD,KAAK,EAAE,KAAK;IACZ,aAAa,EAAE,aAAa;IAC5B,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,SAAS;IACpB,mBAAmB,EAAE,mBAAmB;IACxC,GAAG,EAAE,GAAG;IACR,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,YAAY;IAC1B,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,WAAW;CACzB,CAAC","sourcesContent":["import { Country } from './resources/Country';\nimport { Simulation } from './resources/Simulation';\nimport { PaymentExpectationCustomer } from './resources/PaymentExpectationCustomer';\nimport { Immobilization } from './resources/Immobilization';\nimport { AccountType } from './resources/AccountType';\nimport { Transaction } from './resources/Transaction';\nimport { Account } from './resources/Account';\nimport { Sponsorship } from './resources/Sponsorship';\nimport { User } from './resources/User';\nimport { Survey } from './resources/Survey';\nimport { Report } from './resources/Report';\nimport { Letter } from './resources/Letter';\nimport { FirstStep } from './resources/FirstStep';\nimport { Society } from './resources/Society';\nimport { Partner } from './resources/Partner';\nimport { GeneralLedger } from './resources/GeneralLedger';\nimport { FecFile } from './resources/FecFile';\nimport { IncomeStatement } from './resources/IncomeStatement';\nimport { BalanceSheet } from './resources/BalanceSheet';\nimport { BalanceSheetModule } from './resources/BalanceSheetModule';\nimport { Cerfa } from './resources/Cerfa';\nimport { LegalForm } from './resources/LegalForm';\nimport { Subscription } from './resources/Subscription';\nimport { Authenticate } from './resources/Authenticate';\nimport { Search } from './resources/Search';\nimport { SalariesFile } from './resources/SalariesFile';\nimport { Shine } from './resources/Shine';\nimport { PromoCode } from './resources/PromoCode';\nimport { Stocks } from './resources/Stocks';\nimport { Loan } from './resources/Loan';\nimport { SocietyPromoCode } from './resources/SocietyPromoCode';\nimport { Dashboard } from './resources/Dashboard';\nimport { ZTicket } from './resources/ZTicket';\nimport { IncomeAllocation } from './resources/IncomeAllocation';\nimport { CustomerProviderOperation } from './resources/CustomerProviderOperation';\nimport { Steps } from './resources/Step';\nimport { RevisionGuide } from './resources/RevisionGuide';\nimport { Library } from './resources/Library';\nimport { TaxDeadline } from './resources/TaxDeadline';\nimport { ExerciceNote } from './resources/ExerciceNote';\nimport { Connector } from './resources/Connector';\nimport { PartneredAccountant } from './resources/PartneredAccountant';\nimport { Tax } from './resources/Tax';\nimport { QuotesAccount } from './resources/QuotesAccount';\nimport { Registration } from './resources/Registration';\nimport { Journal } from './resources/Journal';\nimport { Product } from './resources/Product';\nimport { MealExpense } from './resources/MealExpense';\n\nexport const resources = {\n simulation: Simulation,\n country: Country,\n paymentExpectationCustomer: PaymentExpectationCustomer,\n immobilization: Immobilization,\n accountType: AccountType,\n transaction: Transaction,\n account: Account,\n sponsorship: Sponsorship,\n user: User,\n survey: Survey,\n report: Report,\n letter: Letter,\n firstStep: FirstStep,\n society: Society,\n partner: Partner,\n generalLedger: GeneralLedger,\n fecFile: FecFile,\n incomeStatement: IncomeStatement,\n balanceSheet: BalanceSheet,\n balanceSheetModule: BalanceSheetModule,\n cerfa: Cerfa,\n legalForm: LegalForm,\n authenticate: Authenticate,\n search: Search,\n subscription: Subscription,\n salariesFile: SalariesFile,\n shine: Shine,\n promoCode: PromoCode,\n stocks: Stocks,\n loan: Loan,\n societyPromoCode: SocietyPromoCode,\n dashboard: Dashboard,\n zTicket: ZTicket,\n incomeAllocation: IncomeAllocation,\n customerProviderOperation: CustomerProviderOperation,\n steps: Steps,\n revisionGuide: RevisionGuide,\n library: Library,\n taxDeadline: TaxDeadline,\n exerciceNote: ExerciceNote,\n connector: Connector,\n partneredAccountant: PartneredAccountant,\n tax: Tax,\n quotesAccount: QuotesAccount,\n registration: Registration,\n journal: Journal,\n product: Product,\n mealExpense: MealExpense,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFileType.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/AccountingFileType.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,iBAAiB,IAAI;IACrB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,eAAe,IAAI;IACnB,MAAM,IAAI;
|
|
1
|
+
{"version":3,"file":"AccountingFileType.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/AccountingFileType.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,iBAAiB,IAAI;IACrB,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,eAAe,IAAI;IACnB,MAAM,IAAI;IACV,OAAO,IAAI;CACZ"}
|
|
@@ -5,5 +5,6 @@ export var AccountingFileType;
|
|
|
5
5
|
AccountingFileType[AccountingFileType["PAST_INVOICES"] = 3] = "PAST_INVOICES";
|
|
6
6
|
AccountingFileType[AccountingFileType["BANK_STATEMENTS"] = 4] = "BANK_STATEMENTS";
|
|
7
7
|
AccountingFileType[AccountingFileType["OTHERS"] = 5] = "OTHERS";
|
|
8
|
+
AccountingFileType[AccountingFileType["RECEIPT"] = 6] = "RECEIPT";
|
|
8
9
|
})(AccountingFileType || (AccountingFileType = {}));
|
|
9
10
|
//# sourceMappingURL=AccountingFileType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFileType.js","sourceRoot":"","sources":["../../../ts/types/Enum/AccountingFileType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"AccountingFileType.js","sourceRoot":"","sources":["../../../ts/types/Enum/AccountingFileType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,qFAAqB,CAAA;IACrB,6EAAiB,CAAA;IACjB,6EAAiB,CAAA;IACjB,iFAAmB,CAAA;IACnB,+DAAU,CAAA;IACV,iEAAW,CAAA;AACb,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B","sourcesContent":["export enum AccountingFileType {\n PURCHASE_INVOICES = 1,\n SALE_INVOICES = 2,\n PAST_INVOICES = 3,\n BANK_STATEMENTS = 4,\n OTHERS = 5,\n RECEIPT = 6,\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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};"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const MimeType: {
|
|
2
|
+
PDF: string;
|
|
3
|
+
MSWORD: string;
|
|
4
|
+
VNDXML: string;
|
|
5
|
+
VNDOPENDOCUMENT: string;
|
|
6
|
+
VNDSPREADSHEET: string;
|
|
7
|
+
VNDEXCEL: string;
|
|
8
|
+
VNDOPENDOCUMENTSPREAD: string;
|
|
9
|
+
VNDOPENDOCUMENTPRESTATION: string;
|
|
10
|
+
PNG: string;
|
|
11
|
+
JPEG: string;
|
|
12
|
+
XPNG: string;
|
|
13
|
+
ZIP: string;
|
|
14
|
+
X7Z: string;
|
|
15
|
+
RAR: string;
|
|
16
|
+
CSV: string;
|
|
17
|
+
PLAIN: string;
|
|
18
|
+
VCARD: string;
|
|
19
|
+
TIFF: string;
|
|
20
|
+
JPG: string;
|
|
21
|
+
XML: string;
|
|
22
|
+
TEXTXML: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=MimeType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MimeType.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/MimeType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAsBpB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const MimeType = {
|
|
2
|
+
PDF: 'application/pdf',
|
|
3
|
+
MSWORD: 'application/msword',
|
|
4
|
+
VNDXML: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
5
|
+
VNDOPENDOCUMENT: 'application/vnd.oasis.opendocument.text',
|
|
6
|
+
VNDSPREADSHEET: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
7
|
+
VNDEXCEL: 'application/vnd.ms-excel',
|
|
8
|
+
VNDOPENDOCUMENTSPREAD: 'application/vnd.oasis.opendocument.spreadsheet',
|
|
9
|
+
VNDOPENDOCUMENTPRESTATION: 'application/vnd.oasis.opendocument.presentation',
|
|
10
|
+
PNG: 'image/png',
|
|
11
|
+
JPEG: 'image/jpeg',
|
|
12
|
+
XPNG: 'image/x-png',
|
|
13
|
+
ZIP: 'application/zip',
|
|
14
|
+
X7Z: 'application/x-7z-compressed',
|
|
15
|
+
RAR: 'application/x-rar-compressed',
|
|
16
|
+
CSV: 'text/csv',
|
|
17
|
+
PLAIN: 'text/plain',
|
|
18
|
+
VCARD: 'text/x-vcard',
|
|
19
|
+
TIFF: 'image/tiff',
|
|
20
|
+
JPG: 'image/jpg',
|
|
21
|
+
XML: 'image/svg+xml',
|
|
22
|
+
TEXTXML: 'text/xml',
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=MimeType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MimeType.js","sourceRoot":"","sources":["../../../ts/types/Enum/MimeType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,iBAAiB;IACtB,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,yEAAyE;IACjF,eAAe,EAAE,yCAAyC;IAC1D,cAAc,EAAE,mEAAmE;IACnF,QAAQ,EAAE,0BAA0B;IACpC,qBAAqB,EAAE,gDAAgD;IACvE,yBAAyB,EAAE,iDAAiD;IAC5E,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,iBAAiB;IACtB,GAAG,EAAE,6BAA6B;IAClC,GAAG,EAAE,8BAA8B;IACnC,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,eAAe;IACpB,OAAO,EAAE,UAAU;CACpB,CAAC","sourcesContent":["export const MimeType = {\n PDF: 'application/pdf',\n MSWORD: 'application/msword',\n VNDXML: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n VNDOPENDOCUMENT: 'application/vnd.oasis.opendocument.text',\n VNDSPREADSHEET: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n VNDEXCEL: 'application/vnd.ms-excel',\n VNDOPENDOCUMENTSPREAD: 'application/vnd.oasis.opendocument.spreadsheet',\n VNDOPENDOCUMENTPRESTATION: 'application/vnd.oasis.opendocument.presentation',\n PNG: 'image/png',\n JPEG: 'image/jpeg',\n XPNG: 'image/x-png',\n ZIP: 'application/zip',\n X7Z: 'application/x-7z-compressed',\n RAR: 'application/x-rar-compressed',\n CSV: 'text/csv',\n PLAIN: 'text/plain',\n VCARD: 'text/x-vcard',\n TIFF: 'image/tiff',\n JPG: 'image/jpg',\n XML: 'image/svg+xml',\n TEXTXML: 'text/xml',\n};"]}
|
package/es/types/Enum/Vat.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const Vat: {
|
|
|
8
8
|
collected: number;
|
|
9
9
|
deductible: number;
|
|
10
10
|
immobilization: number;
|
|
11
|
+
roundPercentage: number[];
|
|
11
12
|
};
|
|
12
13
|
TX_5_5: {
|
|
13
14
|
id: number;
|
|
@@ -18,6 +19,7 @@ export declare const Vat: {
|
|
|
18
19
|
collected: number;
|
|
19
20
|
deductible: number;
|
|
20
21
|
immobilization: number;
|
|
22
|
+
roundPercentage: number[];
|
|
21
23
|
};
|
|
22
24
|
TX_10: {
|
|
23
25
|
id: number;
|
|
@@ -28,6 +30,7 @@ export declare const Vat: {
|
|
|
28
30
|
collected: number;
|
|
29
31
|
deductible: number;
|
|
30
32
|
immobilization: number;
|
|
33
|
+
roundPercentage: number[];
|
|
31
34
|
};
|
|
32
35
|
TX_20: {
|
|
33
36
|
id: number;
|
|
@@ -38,6 +41,7 @@ export declare const Vat: {
|
|
|
38
41
|
collected: number;
|
|
39
42
|
deductible: number;
|
|
40
43
|
immobilization: number;
|
|
44
|
+
roundPercentage: number[];
|
|
41
45
|
};
|
|
42
46
|
TX_2_1: {
|
|
43
47
|
id: number;
|
|
@@ -48,6 +52,7 @@ export declare const Vat: {
|
|
|
48
52
|
collected: number;
|
|
49
53
|
deductible: number;
|
|
50
54
|
immobilization: number;
|
|
55
|
+
roundPercentage: number[];
|
|
51
56
|
};
|
|
52
57
|
TX_8_5: {
|
|
53
58
|
id: number;
|
|
@@ -58,6 +63,7 @@ export declare const Vat: {
|
|
|
58
63
|
collected: number;
|
|
59
64
|
deductible: number;
|
|
60
65
|
immobilization: number;
|
|
66
|
+
roundPercentage: number[];
|
|
61
67
|
};
|
|
62
68
|
MARGE: {
|
|
63
69
|
id: number;
|
|
@@ -68,6 +74,7 @@ export declare const Vat: {
|
|
|
68
74
|
collected: number;
|
|
69
75
|
deductible: number;
|
|
70
76
|
immobilization: null;
|
|
77
|
+
roundPercentage: never[];
|
|
71
78
|
};
|
|
72
79
|
INTRACOM: {
|
|
73
80
|
id: number;
|
|
@@ -78,6 +85,7 @@ export declare const Vat: {
|
|
|
78
85
|
collected: number;
|
|
79
86
|
deductible: number;
|
|
80
87
|
immobilization: number;
|
|
88
|
+
roundPercentage: never[];
|
|
81
89
|
};
|
|
82
90
|
MANUAL: {
|
|
83
91
|
id: number;
|
|
@@ -88,6 +96,7 @@ export declare const Vat: {
|
|
|
88
96
|
collected: number;
|
|
89
97
|
deductible: number;
|
|
90
98
|
immobilization: null;
|
|
99
|
+
roundPercentage: never[];
|
|
91
100
|
};
|
|
92
101
|
};
|
|
93
102
|
//# sourceMappingURL=Vat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vat.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"Vat.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Gf,CAAC"}
|
package/es/types/Enum/Vat.js
CHANGED
|
@@ -9,6 +9,7 @@ export const Vat = {
|
|
|
9
9
|
collected: 212,
|
|
10
10
|
deductible: 221,
|
|
11
11
|
immobilization: 19,
|
|
12
|
+
roundPercentage: [0],
|
|
12
13
|
},
|
|
13
14
|
TX_5_5: {
|
|
14
15
|
id: 2,
|
|
@@ -20,6 +21,7 @@ export const Vat = {
|
|
|
20
21
|
collected: 209,
|
|
21
22
|
deductible: 4,
|
|
22
23
|
immobilization: 10,
|
|
24
|
+
roundPercentage: [5, 6],
|
|
23
25
|
},
|
|
24
26
|
TX_10: {
|
|
25
27
|
id: 3,
|
|
@@ -31,6 +33,7 @@ export const Vat = {
|
|
|
31
33
|
collected: 210,
|
|
32
34
|
deductible: 5,
|
|
33
35
|
immobilization: 11,
|
|
36
|
+
roundPercentage: [10, 11],
|
|
34
37
|
},
|
|
35
38
|
TX_20: {
|
|
36
39
|
id: 4,
|
|
@@ -42,6 +45,7 @@ export const Vat = {
|
|
|
42
45
|
collected: 211,
|
|
43
46
|
deductible: 6,
|
|
44
47
|
immobilization: 12,
|
|
48
|
+
roundPercentage: [19, 20, 21],
|
|
45
49
|
},
|
|
46
50
|
TX_2_1: {
|
|
47
51
|
id: 6,
|
|
@@ -53,6 +57,7 @@ export const Vat = {
|
|
|
53
57
|
collected: 222,
|
|
54
58
|
deductible: 7,
|
|
55
59
|
immobilization: 13,
|
|
60
|
+
roundPercentage: [2, 3],
|
|
56
61
|
},
|
|
57
62
|
TX_8_5: {
|
|
58
63
|
id: 7,
|
|
@@ -64,6 +69,7 @@ export const Vat = {
|
|
|
64
69
|
collected: 345,
|
|
65
70
|
deductible: 8,
|
|
66
71
|
immobilization: 15,
|
|
72
|
+
roundPercentage: [8, 9],
|
|
67
73
|
},
|
|
68
74
|
MARGE: {
|
|
69
75
|
id: 8,
|
|
@@ -75,6 +81,7 @@ export const Vat = {
|
|
|
75
81
|
collected: 211,
|
|
76
82
|
deductible: 9,
|
|
77
83
|
immobilization: null,
|
|
84
|
+
roundPercentage: [],
|
|
78
85
|
},
|
|
79
86
|
INTRACOM: {
|
|
80
87
|
id: 9,
|
|
@@ -86,6 +93,7 @@ export const Vat = {
|
|
|
86
93
|
collected: 207,
|
|
87
94
|
deductible: 208,
|
|
88
95
|
immobilization: 208,
|
|
96
|
+
roundPercentage: [],
|
|
89
97
|
},
|
|
90
98
|
MANUAL: {
|
|
91
99
|
id: 11,
|
|
@@ -97,6 +105,7 @@ export const Vat = {
|
|
|
97
105
|
collected: 0,
|
|
98
106
|
deductible: 0,
|
|
99
107
|
immobilization: null,
|
|
108
|
+
roundPercentage: [],
|
|
100
109
|
},
|
|
101
110
|
};
|
|
102
111
|
//# sourceMappingURL=Vat.js.map
|
package/es/types/Enum/Vat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"Vat.js","sourceRoot":"","sources":["../../../ts/types/Enum/Vat.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,YAAY,EAAE;QACZ,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KA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QAClB,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KACxB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,GAAG;QACV,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,EAAE;QAClB,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KACxB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,EAAE;KACpB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,iEAAiE;QACjE,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,GAAG;QACd,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,GAAG;QACnB,eAAe,EAAE,EAAE;KACpB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,EAAE;QACN,iEAAiE;QACjE,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,CAAC;QACR,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,CAAC;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,EAAE;KACpB;CACF,CAAC","sourcesContent":["export const Vat = {\n WITHOUT_TAXE: {\n id: 1,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 1,\n value: 0,\n displayOrder: 6,\n name: 'Hors-Taxe',\n collected: 212,\n deductible: 221,\n immobilization: 19,\n roundPercentage: [0],\n },\n TX_5_5: {\n id: 2,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 2,\n value: 5.5,\n displayOrder: 4,\n name: 'TVA 5.5%',\n collected: 209,\n deductible: 4,\n immobilization: 10,\n roundPercentage: [5, 6],\n },\n TX_10: {\n id: 3,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 3,\n value: 10,\n displayOrder: 2,\n name: 'TVA 10%',\n collected: 210,\n deductible: 5,\n immobilization: 11,\n roundPercentage: [10, 11],\n },\n TX_20: {\n id: 4,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 4,\n value: 20,\n displayOrder: 1,\n name: 'TVA 20%',\n collected: 211,\n deductible: 6,\n immobilization: 12,\n roundPercentage: [19, 20, 21],\n },\n TX_2_1: {\n id: 6,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 6,\n value: 2.1,\n displayOrder: 5,\n name: 'TVA 2.1%',\n collected: 222,\n deductible: 7,\n immobilization: 13,\n roundPercentage: [2, 3],\n },\n TX_8_5: {\n id: 7,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 7,\n value: 8.5,\n displayOrder: 3,\n name: 'TVA 8.5%',\n collected: 345,\n deductible: 8,\n immobilization: 15,\n roundPercentage: [8, 9],\n },\n MARGE: {\n id: 8,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 8,\n value: 0,\n displayOrder: 9,\n name: 'Sur Marge',\n collected: 211,\n deductible: 9,\n immobilization: null,\n roundPercentage: [],\n },\n INTRACOM: {\n id: 9,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 9,\n value: 20,\n displayOrder: 7,\n name: 'TVA intracom',\n collected: 207,\n deductible: 208,\n immobilization: 208,\n roundPercentage: [],\n },\n MANUAL: {\n id: 11,\n // TODO We should remove idTva when GET vat is remove from api v1\n idTva: 11,\n value: 0,\n displayOrder: 8,\n name: 'TVA manuelle',\n collected: 0,\n deductible: 0,\n immobilization: null,\n roundPercentage: [],\n },\n};"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IOcr {
|
|
2
|
+
Invoice_Number: number | any;
|
|
3
|
+
Invoice_Date: Date | any;
|
|
4
|
+
date: Date | any;
|
|
5
|
+
TTC: number | any;
|
|
6
|
+
ttc: number | any;
|
|
7
|
+
TVA: number | any;
|
|
8
|
+
tva: number | any;
|
|
9
|
+
HT: number | any;
|
|
10
|
+
ht: number | any;
|
|
11
|
+
Vendor: string | any;
|
|
12
|
+
vendor_name: string | any;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Ocr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ocr.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/Ocr.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC;IAC7B,YAAY,EAAE,IAAI,GAAG,GAAG,CAAC;IACzB,IAAI,EAAE,IAAI,GAAG,GAAG,CAAC;IACjB,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ocr.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/Ocr.ts"],"names":[],"mappings":"","sourcesContent":["export interface IOcr {\n Invoice_Number: number | any;\n Invoice_Date: Date | any;\n date: Date | any;\n TTC: number | any;\n ttc: number | any;\n TVA: number | any;\n tva: number | any;\n HT: number | any;\n ht: number | any;\n Vendor: string | any;\n vendor_name: string | any;\n}"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IOcrPayload extends Partial<IOcrPayloadOptionnal> {
|
|
2
|
+
invoiceNumber: string;
|
|
3
|
+
dateValue: Date;
|
|
4
|
+
totalAmount: number;
|
|
5
|
+
vatAmount: number;
|
|
6
|
+
subAmount: number;
|
|
7
|
+
merchantName: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IOcrPayloadOptionnal {
|
|
10
|
+
idEngagementAccountingFile: number | null;
|
|
11
|
+
idAccountingTransaction: number;
|
|
12
|
+
idSociety: number;
|
|
13
|
+
idFile: number;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=OcrPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OcrPayload.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/OcrPayload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAY,SAAQ,OAAO,CAAC,oBAAoB,CAAC;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OcrPayload.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/OcrPayload.ts"],"names":[],"mappings":"","sourcesContent":["export interface IOcrPayload extends Partial<IOcrPayloadOptionnal> {\n invoiceNumber: string;\n dateValue: Date;\n totalAmount: number;\n vatAmount: number;\n subAmount: number;\n merchantName: string;\n}\n\nexport interface IOcrPayloadOptionnal {\n idEngagementAccountingFile: number | null;\n idAccountingTransaction: number;\n idSociety: number;\n idFile: number;\n}"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IOcrValue {
|
|
2
|
+
invoiceNumber: number | null;
|
|
3
|
+
invoiceDate: Date | null;
|
|
4
|
+
receiptsDate: Date | null;
|
|
5
|
+
invoicesTotalAmount: number | null;
|
|
6
|
+
receiptsTotalAmount: number | null;
|
|
7
|
+
invoicesVatAmount: number | null;
|
|
8
|
+
receiptsVatAmount: number | null;
|
|
9
|
+
invoicesSubAmount: number | null;
|
|
10
|
+
receiptsSubAmount: number | null;
|
|
11
|
+
invoicesMerchantName: string | null;
|
|
12
|
+
receiptsMerchantName: string | null;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=OcrValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OcrValue.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/OcrValue.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OcrValue.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/OcrValue.ts"],"names":[],"mappings":"","sourcesContent":["export interface IOcrValue {\n invoiceNumber: number | null;\n invoiceDate: Date | null;\n receiptsDate: Date | null;\n invoicesTotalAmount: number | null;\n receiptsTotalAmount: number | null;\n invoicesVatAmount: number | null;\n receiptsVatAmount: number | null;\n invoicesSubAmount: number | null;\n receiptsSubAmount: number | null;\n invoicesMerchantName: string | null;\n receiptsMerchantName: string | null;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryAccountingFiles.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,OAAO,CAAC;IAIf,UAAU,EAAE,OAAO,CAAC;IAGpB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf"}
|