bexio 0.7.2 → 3.0.1
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/Readme.md +20 -119
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +146 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/jest-html-reporters-attach/index.js +58 -0
- package/jest-html-reporters-attach/result.js +1 -0
- package/jest_html_reporters.html +1 -0
- package/junit.xml +155 -0
- package/lib/index.d.ts +9 -103
- package/lib/index.js +55 -237
- package/lib/index.js.map +1 -1
- package/lib/interfaces/BillsStatic.js +1 -0
- package/lib/interfaces/BillsStatic.js.map +1 -1
- package/lib/interfaces/BusinessActivitiesStatic.js +1 -0
- package/lib/interfaces/BusinessActivitiesStatic.js.map +1 -1
- package/lib/interfaces/CalendarStatic.js +1 -0
- package/lib/interfaces/CalendarStatic.js.map +1 -1
- package/lib/interfaces/ContactGroupsStatic.js +1 -0
- package/lib/interfaces/ContactGroupsStatic.js.map +1 -1
- package/lib/interfaces/ContactRelationsStatic.js +1 -0
- package/lib/interfaces/ContactRelationsStatic.js.map +1 -1
- package/lib/interfaces/ContactSectorsStatic.js +1 -0
- package/lib/interfaces/ContactSectorsStatic.js.map +1 -1
- package/lib/interfaces/ContactTypesStatic.js +1 -0
- package/lib/interfaces/ContactTypesStatic.js.map +1 -1
- package/lib/interfaces/ContactsStatic.js +1 -0
- package/lib/interfaces/ContactsStatic.js.map +1 -1
- package/lib/interfaces/ExpensesStatic.js +1 -0
- package/lib/interfaces/ExpensesStatic.js.map +1 -1
- package/lib/interfaces/InvoicesStatic.d.ts +100 -0
- package/lib/interfaces/InvoicesStatic.js +25 -0
- package/lib/interfaces/InvoicesStatic.js.map +1 -0
- package/lib/interfaces/ItemsStatic.d.ts +120 -0
- package/lib/interfaces/ItemsStatic.js +47 -0
- package/lib/interfaces/ItemsStatic.js.map +1 -0
- package/lib/interfaces/NotesStatic.js +1 -0
- package/lib/interfaces/NotesStatic.js.map +1 -1
- package/lib/interfaces/OrdersStatic.js +1 -0
- package/lib/interfaces/OrdersStatic.js.map +1 -1
- package/lib/interfaces/PositionStatic.d.ts +35 -0
- package/lib/interfaces/PositionStatic.js +3 -0
- package/lib/interfaces/PositionStatic.js.map +1 -0
- package/lib/interfaces/ProjectStatusesStatic.js +1 -0
- package/lib/interfaces/ProjectStatusesStatic.js.map +1 -1
- package/lib/interfaces/ProjectTypesStatic.js +1 -0
- package/lib/interfaces/ProjectTypesStatic.js.map +1 -1
- package/lib/interfaces/ProjectsStatic.js +1 -0
- package/lib/interfaces/ProjectsStatic.js.map +1 -1
- package/lib/interfaces/SalesOrderManagementStatic.js +1 -0
- package/lib/interfaces/SalesOrderManagementStatic.js.map +1 -1
- package/lib/interfaces/TimetrackingStatusesStatic.js +1 -0
- package/lib/interfaces/TimetrackingStatusesStatic.js.map +1 -1
- package/lib/interfaces/TimetrackingsStatic.js +1 -0
- package/lib/interfaces/TimetrackingsStatic.js.map +1 -1
- package/lib/interfaces/UsersStatic.js +1 -0
- package/lib/interfaces/UsersStatic.js.map +1 -1
- package/lib/resources/BaseCrud.d.ts +13 -24
- package/lib/resources/BaseCrud.js +37 -44
- package/lib/resources/BaseCrud.js.map +1 -1
- package/lib/resources/Bills.d.ts +5 -6
- package/lib/resources/Bills.js +14 -17
- package/lib/resources/Bills.js.map +1 -1
- package/lib/resources/BusinessActivities.d.ts +1 -2
- package/lib/resources/BusinessActivities.js +2 -3
- package/lib/resources/BusinessActivities.js.map +1 -1
- package/lib/resources/ContactGroups.d.ts +1 -2
- package/lib/resources/ContactGroups.js +3 -4
- package/lib/resources/ContactGroups.js.map +1 -1
- package/lib/resources/ContactRelations.d.ts +1 -2
- package/lib/resources/ContactRelations.js +2 -3
- package/lib/resources/ContactRelations.js.map +1 -1
- package/lib/resources/ContactSectors.d.ts +1 -2
- package/lib/resources/ContactSectors.js +6 -7
- package/lib/resources/ContactSectors.js.map +1 -1
- package/lib/resources/ContactTypes.d.ts +1 -2
- package/lib/resources/ContactTypes.js +6 -7
- package/lib/resources/ContactTypes.js.map +1 -1
- package/lib/resources/Contacts.d.ts +1 -2
- package/lib/resources/Contacts.js +2 -3
- package/lib/resources/Contacts.js.map +1 -1
- package/lib/resources/Expenses.d.ts +2 -3
- package/lib/resources/Expenses.js +4 -5
- package/lib/resources/Expenses.js.map +1 -1
- package/lib/resources/Invoices.d.ts +6 -0
- package/lib/resources/Invoices.js +27 -0
- package/lib/resources/Invoices.js.map +1 -0
- package/lib/resources/Items.d.ts +5 -0
- package/lib/resources/Items.js +13 -0
- package/lib/resources/Items.js.map +1 -0
- package/lib/resources/Orders.d.ts +1 -2
- package/lib/resources/Orders.js +2 -3
- package/lib/resources/Orders.js.map +1 -1
- package/lib/resources/Payments.d.ts +1 -2
- package/lib/resources/Payments.js +2 -11
- package/lib/resources/Payments.js.map +1 -1
- package/lib/resources/ProjectStatuses.d.ts +1 -2
- package/lib/resources/ProjectStatuses.js +2 -3
- package/lib/resources/ProjectStatuses.js.map +1 -1
- package/lib/resources/ProjectTypes.d.ts +1 -2
- package/lib/resources/ProjectTypes.js +6 -7
- package/lib/resources/ProjectTypes.js.map +1 -1
- package/lib/resources/Projects.d.ts +1 -2
- package/lib/resources/Projects.js +2 -3
- package/lib/resources/Projects.js.map +1 -1
- package/lib/resources/TimetrackingStatuses.d.ts +1 -2
- package/lib/resources/TimetrackingStatuses.js +2 -3
- package/lib/resources/TimetrackingStatuses.js.map +1 -1
- package/lib/resources/Timetrackings.d.ts +1 -2
- package/lib/resources/Timetrackings.js +2 -3
- package/lib/resources/Timetrackings.js.map +1 -1
- package/lib/resources/Users.d.ts +1 -2
- package/lib/resources/Users.js +2 -3
- package/lib/resources/Users.js.map +1 -1
- package/lib/tests/BaseCrud.test.js +290 -0
- package/lib/tests/BaseCrud.test.js.map +1 -0
- package/lib/tests/Bills.test.js +93 -143
- package/lib/tests/Bills.test.js.map +1 -1
- package/lib/tests/BusinessActivities.test.js +14 -85
- package/lib/tests/BusinessActivities.test.js.map +1 -1
- package/lib/tests/ContactGroups.test.js +14 -92
- package/lib/tests/ContactGroups.test.js.map +1 -1
- package/lib/tests/ContactRelations.test.js +14 -87
- package/lib/tests/ContactRelations.test.js.map +1 -1
- package/lib/tests/ContactSectors.test.js +14 -124
- package/lib/tests/ContactSectors.test.js.map +1 -1
- package/lib/tests/ContactTypes.test.js +14 -118
- package/lib/tests/ContactTypes.test.js.map +1 -1
- package/lib/tests/Contacts.test.js +23 -0
- package/lib/tests/Contacts.test.js.map +1 -0
- package/lib/tests/Expenses.test.js +14 -98
- package/lib/tests/Expenses.test.js.map +1 -1
- package/lib/tests/Invoices.test.d.ts +1 -0
- package/lib/tests/Invoices.test.js +23 -0
- package/lib/tests/Invoices.test.js.map +1 -0
- package/lib/tests/Items.test.d.ts +1 -0
- package/lib/tests/Items.test.js +23 -0
- package/lib/tests/Items.test.js.map +1 -0
- package/lib/tests/Orders.test.js +14 -127
- package/lib/tests/Orders.test.js.map +1 -1
- package/lib/tests/Payments.test.js +15 -90
- package/lib/tests/Payments.test.js.map +1 -1
- package/lib/tests/ProjectStatuses.test.js +14 -123
- package/lib/tests/ProjectStatuses.test.js.map +1 -1
- package/lib/tests/ProjectTypes.test.js +14 -119
- package/lib/tests/ProjectTypes.test.js.map +1 -1
- package/lib/tests/Projects.test.js +14 -91
- package/lib/tests/Projects.test.js.map +1 -1
- package/lib/tests/TimetrackingStatuses.test.js +14 -123
- package/lib/tests/TimetrackingStatuses.test.js.map +1 -1
- package/lib/tests/Timetrackings.test.js +14 -102
- package/lib/tests/Timetrackings.test.js.map +1 -1
- package/lib/tests/Users.test.js +14 -125
- package/lib/tests/Users.test.js.map +1 -1
- package/package.json +45 -29
- package/lib/constants/Scopes.d.ts +0 -32
- package/lib/constants/Scopes.js +0 -36
- package/lib/constants/Scopes.js.map +0 -1
- package/lib/libs/OAuth2.d.ts +0 -122
- package/lib/libs/OAuth2.js +0 -202
- package/lib/libs/OAuth2.js.map +0 -1
- package/lib/tests/Authentication.test.js +0 -83
- package/lib/tests/Authentication.test.js.map +0 -1
- package/lib/tests/Contact.test.js +0 -103
- package/lib/tests/Contact.test.js.map +0 -1
- /package/lib/tests/{Authentication.test.d.ts → BaseCrud.test.d.ts} +0 -0
- /package/lib/tests/{Contact.test.d.ts → Contacts.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.jest_html_reporters_callback__({"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":19,"numPassedTests":57,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":19,"numTotalTests":57,"startTime":1686824470538,"success":false,"testResults":[{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472242,"runtime":929,"slow":false,"start":1686824471313},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/TimetrackingStatuses.test.ts","testResults":[{"ancestorTitles":["TimetrackingStatuses"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"TimetrackingStatuses Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472312,"runtime":919,"slow":false,"start":1686824471393},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ContactGroups.test.ts","testResults":[{"ancestorTitles":["ContactGroups"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"ContactGroups Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472333,"runtime":954,"slow":false,"start":1686824471379},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ContactRelations.test.ts","testResults":[{"ancestorTitles":["ContactRelations"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"ContactRelations Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472361,"runtime":975,"slow":false,"start":1686824471386},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Expenses.test.ts","testResults":[{"ancestorTitles":["Expenses"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Expenses Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472379,"runtime":983,"slow":false,"start":1686824471396},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Contacts.test.ts","testResults":[{"ancestorTitles":["Contacts"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Contacts Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472388,"runtime":1003,"slow":false,"start":1686824471385},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Projects.test.ts","testResults":[{"ancestorTitles":["Projects"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Projects Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472389,"runtime":968,"slow":false,"start":1686824471421},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/BusinessActivities.test.ts","testResults":[{"ancestorTitles":["BusinessActivities"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"BusinessActivities Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472397,"runtime":988,"slow":false,"start":1686824471409},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Orders.test.ts","testResults":[{"ancestorTitles":["Orders"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"Orders Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472412,"runtime":987,"slow":false,"start":1686824471425},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Users.test.ts","testResults":[{"ancestorTitles":["Users"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"Users Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472414,"runtime":995,"slow":false,"start":1686824471419},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ContactSectors.test.ts","testResults":[{"ancestorTitles":["ContactSectors"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"ContactSectors Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472421,"runtime":992,"slow":false,"start":1686824471429},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Payments.test.ts","testResults":[{"ancestorTitles":["Payments"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"Payments Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":29,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472431,"runtime":1003,"slow":false,"start":1686824471428},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/BaseCrud.test.ts","testResults":[{"ancestorTitles":["BaseCrud","list"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud list Should be a GET request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a GET request"},{"ancestorTitles":["BaseCrud","list"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud list Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","list"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud list Should pass the options to request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should pass the options to request"},{"ancestorTitles":["BaseCrud","search"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud search Should be a POST request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a POST request"},{"ancestorTitles":["BaseCrud","search"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud search Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","search"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud search Should contain the request body","location":null,"numPassingAsserts":0,"status":"passed","title":"Should contain the request body"},{"ancestorTitles":["BaseCrud","search"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud search Should pass the options to request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should pass the options to request"},{"ancestorTitles":["BaseCrud","show"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud show Should be a GET request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a GET request"},{"ancestorTitles":["BaseCrud","show"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud show Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","show"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud show Should pass the options to request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should pass the options to request"},{"ancestorTitles":["BaseCrud","create"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud create Should be a POST request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a POST request"},{"ancestorTitles":["BaseCrud","create"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud create Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","create"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud create Should contain the request body","location":null,"numPassingAsserts":0,"status":"passed","title":"Should contain the request body"},{"ancestorTitles":["BaseCrud","overwrite"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud overwrite Should be a PUT request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a PUT request"},{"ancestorTitles":["BaseCrud","overwrite"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud overwrite Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","overwrite"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud overwrite Should contain the request body","location":null,"numPassingAsserts":0,"status":"passed","title":"Should contain the request body"},{"ancestorTitles":["BaseCrud","edit"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud edit Should be a POST request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a POST request"},{"ancestorTitles":["BaseCrud","edit"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud edit Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","edit"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud edit Should contain the request body","location":null,"numPassingAsserts":0,"status":"passed","title":"Should contain the request body"},{"ancestorTitles":["BaseCrud","delete"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud delete Should be a DELETE request","location":null,"numPassingAsserts":0,"status":"passed","title":"Should be a DELETE request"},{"ancestorTitles":["BaseCrud","delete"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud delete Should use the given endpoint","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use the given endpoint"},{"ancestorTitles":["BaseCrud","delete"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud delete Should return the success value","location":null,"numPassingAsserts":0,"status":"passed","title":"Should return the success value"},{"ancestorTitles":["BaseCrud","request"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud request Should create the request options","location":null,"numPassingAsserts":0,"status":"passed","title":"Should create the request options"},{"ancestorTitles":["BaseCrud","request"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud request Should add a data param if present","location":null,"numPassingAsserts":0,"status":"passed","title":"Should add a data param if present"},{"ancestorTitles":["BaseCrud","request"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud request Should add options as GET params","location":null,"numPassingAsserts":0,"status":"passed","title":"Should add options as GET params"},{"ancestorTitles":["BaseCrud","request"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud request Should normalize an error","location":null,"numPassingAsserts":0,"status":"passed","title":"Should normalize an error"},{"ancestorTitles":["BaseCrud","optionsToQuery"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud optionsToQuery Should return an empty string","location":null,"numPassingAsserts":0,"status":"passed","title":"Should return an empty string"},{"ancestorTitles":["BaseCrud","optionsToQuery"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud optionsToQuery Should return an GET parameter string","location":null,"numPassingAsserts":0,"status":"passed","title":"Should return an GET parameter string"},{"ancestorTitles":["BaseCrud","optionsToQuery"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"BaseCrud optionsToQuery Should url encode the parameters","location":null,"numPassingAsserts":0,"status":"passed","title":"Should url encode the parameters"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472437,"runtime":1049,"slow":false,"start":1686824471388},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ProjectStatuses.test.ts","testResults":[{"ancestorTitles":["ProjectStatuses"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"ProjectStatuses Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472458,"runtime":1014,"slow":false,"start":1686824471444},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Timetrackings.test.ts","testResults":[{"ancestorTitles":["Timetrackings"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"Timetrackings Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472460,"runtime":1018,"slow":false,"start":1686824471442},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Items.test.ts","testResults":[{"ancestorTitles":["Items"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"Items Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472498,"runtime":983,"slow":false,"start":1686824471515},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ContactTypes.test.ts","testResults":[{"ancestorTitles":["ContactTypes"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"ContactTypes Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":11,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472504,"runtime":1127,"slow":false,"start":1686824471377},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Bills.test.ts","testResults":[{"ancestorTitles":["Bills"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Bills Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"},{"ancestorTitles":["Bills"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Bills issue request","location":null,"numPassingAsserts":0,"status":"passed","title":"issue request"},{"ancestorTitles":["Bills"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills revertIssue request","location":null,"numPassingAsserts":0,"status":"passed","title":"revertIssue request"},{"ancestorTitles":["Bills","list"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills list Should call base list","location":null,"numPassingAsserts":0,"status":"passed","title":"Should call base list"},{"ancestorTitles":["Bills","list"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Bills list Should pass options to base list","location":null,"numPassingAsserts":0,"status":"passed","title":"Should pass options to base list"},{"ancestorTitles":["Bills","showPayment"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills showPayment Should create a new Payment object","location":null,"numPassingAsserts":0,"status":"passed","title":"Should create a new Payment object"},{"ancestorTitles":["Bills","showPayment"],"duration":0,"failureDetails":[],"failureMessages":[],"fullName":"Bills showPayment Should pass the options down","location":null,"numPassingAsserts":0,"status":"passed","title":"Should pass the options down"},{"ancestorTitles":["Bills","createPayment"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills createPayment Should create a new Payment object","location":null,"numPassingAsserts":0,"status":"passed","title":"Should create a new Payment object"},{"ancestorTitles":["Bills","createPayment"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills createPayment Should call create","location":null,"numPassingAsserts":0,"status":"passed","title":"Should call create"},{"ancestorTitles":["Bills","deletePayment"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills deletePayment Should create a new Payment object","location":null,"numPassingAsserts":0,"status":"passed","title":"Should create a new Payment object"},{"ancestorTitles":["Bills","deletePayment"],"duration":1,"failureDetails":[],"failureMessages":[],"fullName":"Bills deletePayment Should call delete","location":null,"numPassingAsserts":0,"status":"passed","title":"Should call delete"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824472514,"runtime":1054,"slow":false,"start":1686824471460},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/ProjectTypes.test.ts","testResults":[{"ancestorTitles":["ProjectTypes"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"ProjectTypes Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null},{"leaks":false,"numFailingTests":0,"numPassingTests":1,"numPendingTests":0,"numTodoTests":0,"perfStats":{"end":1686824473240,"runtime":1835,"slow":false,"start":1686824471405},"skipped":false,"testFilePath":"/home/mathias/Github/bexio/src/tests/Invoices.test.ts","testResults":[{"ancestorTitles":["Invoices"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Invoices Should use init the base correctly","location":null,"numPassingAsserts":0,"status":"passed","title":"Should use init the base correctly"}],"failureMessage":null}],"wasInterrupted":false,"config":{"bail":0,"changedFilesWithAncestor":false,"collectCoverage":true,"collectCoverageFrom":["src/**/*.{ts,tsx}","!**/node_modules/**","!**/coverage/**"],"coverageDirectory":"coverage","coverageProvider":"babel","coverageReporters":["html"],"detectLeaks":false,"detectOpenHandles":false,"errorOnDeprecated":false,"expand":false,"findRelatedTests":false,"forceExit":false,"json":false,"lastCommit":false,"listTests":false,"logHeapUsage":false,"maxConcurrency":5,"maxWorkers":19,"noStackTrace":false,"nonFlagArgs":[],"notify":false,"notifyMode":"failure-change","onlyChanged":false,"onlyFailures":false,"passWithNoTests":false,"projects":[],"reporters":[["default",{}],["/home/mathias/Github/bexio/node_modules/jest-html-reporters/index.js",{}],["/home/mathias/Github/bexio/node_modules/jest-junit/index.js",{}]],"rootDir":"/home/mathias/Github/bexio","runTestsByPath":false,"skipFilter":false,"testFailureExitCode":1,"testPathPattern":"","testSequencer":"/home/mathias/Github/bexio/node_modules/@jest/test-sequencer/build/index.js","updateSnapshot":"new","useStderr":false,"watch":false,"watchAll":false,"watchman":true},"endTime":1686824474442,"_reporterOptions":{"publicPath":"/home/mathias/Github/bexio","filename":"jest_html_reporters.html","expand":false,"pageTitle":"","hideIcon":false,"testCommand":"npx jest","openReport":false,"failureMessageOnly":false,"enableMergeData":false,"dataMergeLevel":1},"attachInfos":{}})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><meta name="keywords" contect="jest, reporters"><meta name="author" contect="hazyzh"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1,maximum-scale=1"><link rel="shortcut icon" href="data:image/png;base64,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"></head><title>Report</title><body><div id="app"></div><script src="./jest-html-reporters-attach/index.js"></script></body></html>
|
package/junit.xml
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<testsuites name="jest tests" tests="57" failures="0" time="3.907">
|
|
3
|
+
<testsuite name="TimetrackingStatuses" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.929" tests="1">
|
|
4
|
+
<testcase classname="TimetrackingStatuses Should use init the base correctly" name="TimetrackingStatuses Should use init the base correctly" time="0.009">
|
|
5
|
+
</testcase>
|
|
6
|
+
</testsuite>
|
|
7
|
+
<testsuite name="ContactGroups" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.919" tests="1">
|
|
8
|
+
<testcase classname="ContactGroups Should use init the base correctly" name="ContactGroups Should use init the base correctly" time="0.004">
|
|
9
|
+
</testcase>
|
|
10
|
+
</testsuite>
|
|
11
|
+
<testsuite name="ContactRelations" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.954" tests="1">
|
|
12
|
+
<testcase classname="ContactRelations Should use init the base correctly" name="ContactRelations Should use init the base correctly" time="0.006">
|
|
13
|
+
</testcase>
|
|
14
|
+
</testsuite>
|
|
15
|
+
<testsuite name="Expenses" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.975" tests="1">
|
|
16
|
+
<testcase classname="Expenses Should use init the base correctly" name="Expenses Should use init the base correctly" time="0.005">
|
|
17
|
+
</testcase>
|
|
18
|
+
</testsuite>
|
|
19
|
+
<testsuite name="Contacts" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.983" tests="1">
|
|
20
|
+
<testcase classname="Contacts Should use init the base correctly" name="Contacts Should use init the base correctly" time="0.005">
|
|
21
|
+
</testcase>
|
|
22
|
+
</testsuite>
|
|
23
|
+
<testsuite name="Projects" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.003" tests="1">
|
|
24
|
+
<testcase classname="Projects Should use init the base correctly" name="Projects Should use init the base correctly" time="0.005">
|
|
25
|
+
</testcase>
|
|
26
|
+
</testsuite>
|
|
27
|
+
<testsuite name="BusinessActivities" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.968" tests="1">
|
|
28
|
+
<testcase classname="BusinessActivities Should use init the base correctly" name="BusinessActivities Should use init the base correctly" time="0.004">
|
|
29
|
+
</testcase>
|
|
30
|
+
</testsuite>
|
|
31
|
+
<testsuite name="Orders" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.988" tests="1">
|
|
32
|
+
<testcase classname="Orders Should use init the base correctly" name="Orders Should use init the base correctly" time="0.005">
|
|
33
|
+
</testcase>
|
|
34
|
+
</testsuite>
|
|
35
|
+
<testsuite name="Users" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.987" tests="1">
|
|
36
|
+
<testcase classname="Users Should use init the base correctly" name="Users Should use init the base correctly" time="0.003">
|
|
37
|
+
</testcase>
|
|
38
|
+
</testsuite>
|
|
39
|
+
<testsuite name="ContactSectors" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.995" tests="1">
|
|
40
|
+
<testcase classname="ContactSectors Should use init the base correctly" name="ContactSectors Should use init the base correctly" time="0.003">
|
|
41
|
+
</testcase>
|
|
42
|
+
</testsuite>
|
|
43
|
+
<testsuite name="Payments" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.992" tests="1">
|
|
44
|
+
<testcase classname="Payments Should use init the base correctly" name="Payments Should use init the base correctly" time="0.003">
|
|
45
|
+
</testcase>
|
|
46
|
+
</testsuite>
|
|
47
|
+
<testsuite name="BaseCrud" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.003" tests="29">
|
|
48
|
+
<testcase classname="BaseCrud list Should be a GET request" name="BaseCrud list Should be a GET request" time="0.003">
|
|
49
|
+
</testcase>
|
|
50
|
+
<testcase classname="BaseCrud list Should use the given endpoint" name="BaseCrud list Should use the given endpoint" time="0">
|
|
51
|
+
</testcase>
|
|
52
|
+
<testcase classname="BaseCrud list Should pass the options to request" name="BaseCrud list Should pass the options to request" time="0.001">
|
|
53
|
+
</testcase>
|
|
54
|
+
<testcase classname="BaseCrud search Should be a POST request" name="BaseCrud search Should be a POST request" time="0.001">
|
|
55
|
+
</testcase>
|
|
56
|
+
<testcase classname="BaseCrud search Should use the given endpoint" name="BaseCrud search Should use the given endpoint" time="0">
|
|
57
|
+
</testcase>
|
|
58
|
+
<testcase classname="BaseCrud search Should contain the request body" name="BaseCrud search Should contain the request body" time="0.001">
|
|
59
|
+
</testcase>
|
|
60
|
+
<testcase classname="BaseCrud search Should pass the options to request" name="BaseCrud search Should pass the options to request" time="0">
|
|
61
|
+
</testcase>
|
|
62
|
+
<testcase classname="BaseCrud show Should be a GET request" name="BaseCrud show Should be a GET request" time="0.001">
|
|
63
|
+
</testcase>
|
|
64
|
+
<testcase classname="BaseCrud show Should use the given endpoint" name="BaseCrud show Should use the given endpoint" time="0">
|
|
65
|
+
</testcase>
|
|
66
|
+
<testcase classname="BaseCrud show Should pass the options to request" name="BaseCrud show Should pass the options to request" time="0.001">
|
|
67
|
+
</testcase>
|
|
68
|
+
<testcase classname="BaseCrud create Should be a POST request" name="BaseCrud create Should be a POST request" time="0">
|
|
69
|
+
</testcase>
|
|
70
|
+
<testcase classname="BaseCrud create Should use the given endpoint" name="BaseCrud create Should use the given endpoint" time="0.004">
|
|
71
|
+
</testcase>
|
|
72
|
+
<testcase classname="BaseCrud create Should contain the request body" name="BaseCrud create Should contain the request body" time="0.001">
|
|
73
|
+
</testcase>
|
|
74
|
+
<testcase classname="BaseCrud overwrite Should be a PUT request" name="BaseCrud overwrite Should be a PUT request" time="0">
|
|
75
|
+
</testcase>
|
|
76
|
+
<testcase classname="BaseCrud overwrite Should use the given endpoint" name="BaseCrud overwrite Should use the given endpoint" time="0.001">
|
|
77
|
+
</testcase>
|
|
78
|
+
<testcase classname="BaseCrud overwrite Should contain the request body" name="BaseCrud overwrite Should contain the request body" time="0">
|
|
79
|
+
</testcase>
|
|
80
|
+
<testcase classname="BaseCrud edit Should be a POST request" name="BaseCrud edit Should be a POST request" time="0.001">
|
|
81
|
+
</testcase>
|
|
82
|
+
<testcase classname="BaseCrud edit Should use the given endpoint" name="BaseCrud edit Should use the given endpoint" time="0">
|
|
83
|
+
</testcase>
|
|
84
|
+
<testcase classname="BaseCrud edit Should contain the request body" name="BaseCrud edit Should contain the request body" time="0.001">
|
|
85
|
+
</testcase>
|
|
86
|
+
<testcase classname="BaseCrud delete Should be a DELETE request" name="BaseCrud delete Should be a DELETE request" time="0">
|
|
87
|
+
</testcase>
|
|
88
|
+
<testcase classname="BaseCrud delete Should use the given endpoint" name="BaseCrud delete Should use the given endpoint" time="0.001">
|
|
89
|
+
</testcase>
|
|
90
|
+
<testcase classname="BaseCrud delete Should return the success value" name="BaseCrud delete Should return the success value" time="0">
|
|
91
|
+
</testcase>
|
|
92
|
+
<testcase classname="BaseCrud request Should create the request options" name="BaseCrud request Should create the request options" time="0.001">
|
|
93
|
+
</testcase>
|
|
94
|
+
<testcase classname="BaseCrud request Should add a data param if present" name="BaseCrud request Should add a data param if present" time="0">
|
|
95
|
+
</testcase>
|
|
96
|
+
<testcase classname="BaseCrud request Should add options as GET params" name="BaseCrud request Should add options as GET params" time="0">
|
|
97
|
+
</testcase>
|
|
98
|
+
<testcase classname="BaseCrud request Should normalize an error" name="BaseCrud request Should normalize an error" time="0.002">
|
|
99
|
+
</testcase>
|
|
100
|
+
<testcase classname="BaseCrud optionsToQuery Should return an empty string" name="BaseCrud optionsToQuery Should return an empty string" time="0">
|
|
101
|
+
</testcase>
|
|
102
|
+
<testcase classname="BaseCrud optionsToQuery Should return an GET parameter string" name="BaseCrud optionsToQuery Should return an GET parameter string" time="0">
|
|
103
|
+
</testcase>
|
|
104
|
+
<testcase classname="BaseCrud optionsToQuery Should url encode the parameters" name="BaseCrud optionsToQuery Should url encode the parameters" time="0.001">
|
|
105
|
+
</testcase>
|
|
106
|
+
</testsuite>
|
|
107
|
+
<testsuite name="ProjectStatuses" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.049" tests="1">
|
|
108
|
+
<testcase classname="ProjectStatuses Should use init the base correctly" name="ProjectStatuses Should use init the base correctly" time="0.004">
|
|
109
|
+
</testcase>
|
|
110
|
+
</testsuite>
|
|
111
|
+
<testsuite name="Timetrackings" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.014" tests="1">
|
|
112
|
+
<testcase classname="Timetrackings Should use init the base correctly" name="Timetrackings Should use init the base correctly" time="0.004">
|
|
113
|
+
</testcase>
|
|
114
|
+
</testsuite>
|
|
115
|
+
<testsuite name="Items" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.018" tests="1">
|
|
116
|
+
<testcase classname="Items Should use init the base correctly" name="Items Should use init the base correctly" time="0.003">
|
|
117
|
+
</testcase>
|
|
118
|
+
</testsuite>
|
|
119
|
+
<testsuite name="ContactTypes" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="0.983" tests="1">
|
|
120
|
+
<testcase classname="ContactTypes Should use init the base correctly" name="ContactTypes Should use init the base correctly" time="0.003">
|
|
121
|
+
</testcase>
|
|
122
|
+
</testsuite>
|
|
123
|
+
<testsuite name="Bills" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.127" tests="11">
|
|
124
|
+
<testcase classname="Bills Should use init the base correctly" name="Bills Should use init the base correctly" time="0.002">
|
|
125
|
+
</testcase>
|
|
126
|
+
<testcase classname="Bills issue request" name="Bills issue request" time="0">
|
|
127
|
+
</testcase>
|
|
128
|
+
<testcase classname="Bills revertIssue request" name="Bills revertIssue request" time="0.001">
|
|
129
|
+
</testcase>
|
|
130
|
+
<testcase classname="Bills list Should call base list" name="Bills list Should call base list" time="0.001">
|
|
131
|
+
</testcase>
|
|
132
|
+
<testcase classname="Bills list Should pass options to base list" name="Bills list Should pass options to base list" time="0">
|
|
133
|
+
</testcase>
|
|
134
|
+
<testcase classname="Bills showPayment Should create a new Payment object" name="Bills showPayment Should create a new Payment object" time="0.001">
|
|
135
|
+
</testcase>
|
|
136
|
+
<testcase classname="Bills showPayment Should pass the options down" name="Bills showPayment Should pass the options down" time="0">
|
|
137
|
+
</testcase>
|
|
138
|
+
<testcase classname="Bills createPayment Should create a new Payment object" name="Bills createPayment Should create a new Payment object" time="0.001">
|
|
139
|
+
</testcase>
|
|
140
|
+
<testcase classname="Bills createPayment Should call create" name="Bills createPayment Should call create" time="0.001">
|
|
141
|
+
</testcase>
|
|
142
|
+
<testcase classname="Bills deletePayment Should create a new Payment object" name="Bills deletePayment Should create a new Payment object" time="0.001">
|
|
143
|
+
</testcase>
|
|
144
|
+
<testcase classname="Bills deletePayment Should call delete" name="Bills deletePayment Should call delete" time="0.001">
|
|
145
|
+
</testcase>
|
|
146
|
+
</testsuite>
|
|
147
|
+
<testsuite name="ProjectTypes" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.054" tests="1">
|
|
148
|
+
<testcase classname="ProjectTypes Should use init the base correctly" name="ProjectTypes Should use init the base correctly" time="0.003">
|
|
149
|
+
</testcase>
|
|
150
|
+
</testsuite>
|
|
151
|
+
<testsuite name="Invoices" errors="0" failures="0" skipped="0" timestamp="2023-06-15T10:21:11" time="1.835" tests="1">
|
|
152
|
+
<testcase classname="Invoices Should use init the base correctly" name="Invoices Should use init the base correctly" time="0.002">
|
|
153
|
+
</testcase>
|
|
154
|
+
</testsuite>
|
|
155
|
+
</testsuites>
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import Scopes from "./constants/Scopes";
|
|
2
|
-
import { AuthorizationResponse } from "./libs/OAuth2";
|
|
3
1
|
import BusinessActivities from "./resources/BusinessActivities";
|
|
4
2
|
import Contacts from "./resources/Contacts";
|
|
5
3
|
import ContactTypes from "./resources/ContactTypes";
|
|
@@ -15,6 +13,8 @@ import ProjectTypes from "./resources/ProjectTypes";
|
|
|
15
13
|
import Timetrackings from "./resources/Timetrackings";
|
|
16
14
|
import TimetrackingStatuses from "./resources/TimetrackingStatuses";
|
|
17
15
|
import Users from "./resources/Users";
|
|
16
|
+
import Items from "./resources/Items";
|
|
17
|
+
import Invoices from "./resources/Invoices";
|
|
18
18
|
export * from "./interfaces/BillsStatic";
|
|
19
19
|
export * from "./interfaces/BusinessActivitiesStatic";
|
|
20
20
|
export * from "./interfaces/CalendarStatic";
|
|
@@ -33,13 +33,11 @@ export * from "./interfaces/SalesOrderManagementStatic";
|
|
|
33
33
|
export * from "./interfaces/TimetrackingsStatic";
|
|
34
34
|
export * from "./interfaces/TimetrackingStatusesStatic";
|
|
35
35
|
export * from "./interfaces/UsersStatic";
|
|
36
|
-
export
|
|
36
|
+
export * from "./interfaces/ItemsStatic";
|
|
37
|
+
export * from "./interfaces/InvoicesStatic";
|
|
38
|
+
export * from "./interfaces/PositionStatic";
|
|
37
39
|
export default class Bexio {
|
|
38
|
-
private
|
|
39
|
-
private clientSecret;
|
|
40
|
-
private redirectUri;
|
|
41
|
-
private scopes;
|
|
42
|
-
private bexioAuth;
|
|
40
|
+
private token;
|
|
43
41
|
businessActivities: BusinessActivities;
|
|
44
42
|
contacts: Contacts;
|
|
45
43
|
contactTypes: ContactTypes;
|
|
@@ -55,99 +53,7 @@ export default class Bexio {
|
|
|
55
53
|
timetrackings: Timetrackings;
|
|
56
54
|
timetrackingStatuses: TimetrackingStatuses;
|
|
57
55
|
users: Users;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
* @returns {string}
|
|
63
|
-
* @memberof Bexio
|
|
64
|
-
*/
|
|
65
|
-
getAuthUrl(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Generates the Accesstoken out of the auth response
|
|
68
|
-
*
|
|
69
|
-
* @param {AuthorizationResponse} query
|
|
70
|
-
* @returns {Promise<{
|
|
71
|
-
access_token: string,
|
|
72
|
-
expires_in: number,
|
|
73
|
-
refresh_token: string,
|
|
74
|
-
org: string,
|
|
75
|
-
user_id: number,
|
|
76
|
-
valid_until: Date
|
|
77
|
-
}>}
|
|
78
|
-
* @memberof Bexio
|
|
79
|
-
*/
|
|
80
|
-
generateAccessToken(query: AuthorizationResponse): Promise<{
|
|
81
|
-
access_token: string;
|
|
82
|
-
expires_in: number;
|
|
83
|
-
refresh_token: string;
|
|
84
|
-
org: string;
|
|
85
|
-
user_id: number;
|
|
86
|
-
valid_until: Date;
|
|
87
|
-
}>;
|
|
88
|
-
/**
|
|
89
|
-
* returns if the authentication is already done
|
|
90
|
-
*
|
|
91
|
-
* @returns {boolean}
|
|
92
|
-
* @memberof Bexio
|
|
93
|
-
*/
|
|
94
|
-
isInitialized(): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* performs the fakelogin without preinitializing the api
|
|
97
|
-
*
|
|
98
|
-
* @static
|
|
99
|
-
* @param {string} clientId
|
|
100
|
-
* @param {string} clientSecret
|
|
101
|
-
* @param {Array<Scopes>} scopes
|
|
102
|
-
* @param {string} username
|
|
103
|
-
* @param {string} password
|
|
104
|
-
* @returns {Promise<{
|
|
105
|
-
access_token: string,
|
|
106
|
-
expires_in: number,
|
|
107
|
-
refresh_token: string,
|
|
108
|
-
org: string,
|
|
109
|
-
user_id: number,
|
|
110
|
-
valid_until: Date
|
|
111
|
-
}>}
|
|
112
|
-
* @memberof Bexio
|
|
113
|
-
*/
|
|
114
|
-
static fakeLogin(clientId: string, clientSecret: string, scopes: Array<Scopes>, username: string, password: string): Promise<{
|
|
115
|
-
access_token: string;
|
|
116
|
-
expires_in: number;
|
|
117
|
-
refresh_token: string;
|
|
118
|
-
org: string;
|
|
119
|
-
user_id: number;
|
|
120
|
-
valid_until: Date;
|
|
121
|
-
}>;
|
|
122
|
-
/**
|
|
123
|
-
* Bypasses the login userinteraction with the api
|
|
124
|
-
*
|
|
125
|
-
* The login procedure has following steps:
|
|
126
|
-
* 1. redirect to the login form via the authurl to grab all the cookies
|
|
127
|
-
* 2. login into the system and got to the SAML authorization
|
|
128
|
-
* 3. perform the SAML stuff and proceed to the "accept" section to accept the requested scopes
|
|
129
|
-
* 4. accept the stuff
|
|
130
|
-
* 5. ...
|
|
131
|
-
* 6. profit!
|
|
132
|
-
*
|
|
133
|
-
* @param {string} username
|
|
134
|
-
* @param {string} password
|
|
135
|
-
* @returns {{
|
|
136
|
-
access_token: string,
|
|
137
|
-
expires_in: number,
|
|
138
|
-
refresh_token: string,
|
|
139
|
-
org: string,
|
|
140
|
-
user_id: number,
|
|
141
|
-
valid_until: Date
|
|
142
|
-
}}
|
|
143
|
-
* @memberof Bexio
|
|
144
|
-
*/
|
|
145
|
-
fakeLogin(username: string, password: string): Promise<{
|
|
146
|
-
access_token: string;
|
|
147
|
-
expires_in: number;
|
|
148
|
-
refresh_token: string;
|
|
149
|
-
org: string;
|
|
150
|
-
user_id: number;
|
|
151
|
-
valid_until: Date;
|
|
152
|
-
}>;
|
|
56
|
+
items: Items;
|
|
57
|
+
invoices: Invoices;
|
|
58
|
+
constructor(token: string);
|
|
153
59
|
}
|