@chift/chift-nodejs 1.0.17 → 1.0.18
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/package.json +5 -2
- package/.eslintignore +0 -1
- package/.eslintrc.json +0 -25
- package/.github/workflows/ci.yml +0 -75
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -1
- package/.prettierrc.json +0 -7
- package/CHANGELOG.md +0 -108
- package/dist/src/helpers/openapi.d.ts +0 -3
- package/dist/src/helpers/openapi.js +0 -18
- package/dist/src/helpers/settings.d.ts +0 -4
- package/dist/src/helpers/settings.js +0 -5
- package/dist/src/index.d.ts +0 -1
- package/dist/src/modules/accounting.d.ts +0 -68
- package/dist/src/modules/accounting.js +0 -326
- package/dist/src/modules/api.d.ts +0 -18351
- package/dist/src/modules/api.js +0 -36
- package/dist/src/modules/consumer.d.ts +0 -3622
- package/dist/src/modules/consumer.js +0 -142
- package/dist/src/modules/consumers.d.ts +0 -18237
- package/dist/src/modules/consumers.js +0 -51
- package/dist/src/modules/custom.d.ts +0 -8
- package/dist/src/modules/custom.js +0 -36
- package/dist/src/modules/datastores.d.ts +0 -18
- package/dist/src/modules/datastores.js +0 -23
- package/dist/src/modules/ecommerce.d.ts +0 -24
- package/dist/src/modules/ecommerce.js +0 -97
- package/dist/src/modules/flow.d.ts +0 -15
- package/dist/src/modules/flow.js +0 -156
- package/dist/src/modules/integrations.d.ts +0 -23
- package/dist/src/modules/integrations.js +0 -23
- package/dist/src/modules/internalApi.d.ts +0 -24
- package/dist/src/modules/internalApi.js +0 -175
- package/dist/src/modules/invoicing.d.ts +0 -20
- package/dist/src/modules/invoicing.js +0 -90
- package/dist/src/modules/payment.d.ts +0 -14
- package/dist/src/modules/payment.js +0 -41
- package/dist/src/modules/pms.d.ts +0 -15
- package/dist/src/modules/pms.js +0 -47
- package/dist/src/modules/pos.d.ts +0 -26
- package/dist/src/modules/pos.js +0 -101
- package/dist/src/modules/sync.d.ts +0 -14654
- package/dist/src/modules/sync.js +0 -73
- package/dist/src/modules/syncs.d.ts +0 -11
- package/dist/src/modules/syncs.js +0 -39
- package/dist/src/modules/webhooks.d.ts +0 -58
- package/dist/src/modules/webhooks.js +0 -53
- package/dist/src/types/api.d.ts +0 -29
- package/dist/src/types/api.js +0 -2
- package/dist/src/types/consumers.d.ts +0 -8
- package/dist/src/types/consumers.js +0 -2
- package/dist/src/types/public-api/mappings.d.ts +0 -21
- package/dist/src/types/public-api/mappings.js +0 -2
- package/dist/src/types/sync.d.ts +0 -37
- package/dist/src/types/sync.js +0 -2
- package/dist/test/modules/accounting.test.d.ts +0 -1
- package/dist/test/modules/accounting.test.js +0 -590
- package/dist/test/modules/consumer.test.d.ts +0 -1
- package/dist/test/modules/consumer.test.js +0 -89
- package/dist/test/modules/consumers.test.d.ts +0 -1
- package/dist/test/modules/consumers.test.js +0 -109
- package/dist/test/modules/ecommerce.test.d.ts +0 -1
- package/dist/test/modules/ecommerce.test.js +0 -224
- package/dist/test/modules/integrations.test.d.ts +0 -1
- package/dist/test/modules/integrations.test.js +0 -54
- package/dist/test/modules/invoicing.test.d.ts +0 -1
- package/dist/test/modules/invoicing.test.js +0 -115
- package/dist/test/modules/payment.test.d.ts +0 -1
- package/dist/test/modules/payment.test.js +0 -88
- package/dist/test/modules/pms.test.d.ts +0 -1
- package/dist/test/modules/pms.test.js +0 -90
- package/dist/test/modules/pos.test.d.ts +0 -1
- package/dist/test/modules/pos.test.js +0 -179
- package/dist/test/modules/sync.test.d.ts +0 -1
- package/dist/test/modules/sync.test.js +0 -93
- package/dist/test/modules/syncs.test.d.ts +0 -1
- package/dist/test/modules/syncs.test.js +0 -53
- package/dist/test/modules/webhooks.test.d.ts +0 -1
- package/dist/test/modules/webhooks.test.js +0 -120
- package/jest.config.ts +0 -195
- package/src/helpers/openapi.ts +0 -22
- package/src/helpers/settings.ts +0 -3
- package/src/index.ts +0 -1
- package/src/modules/accounting.ts +0 -510
- package/src/modules/api.ts +0 -35
- package/src/modules/consumer.ts +0 -216
- package/src/modules/consumers.ts +0 -82
- package/src/modules/custom.ts +0 -36
- package/src/modules/datastores.ts +0 -19
- package/src/modules/ecommerce.ts +0 -129
- package/src/modules/flow.ts +0 -168
- package/src/modules/integrations.ts +0 -24
- package/src/modules/internalApi.ts +0 -182
- package/src/modules/invoicing.ts +0 -118
- package/src/modules/payment.ts +0 -59
- package/src/modules/pms.ts +0 -67
- package/src/modules/pos.ts +0 -144
- package/src/modules/sync.ts +0 -77
- package/src/modules/syncs.ts +0 -59
- package/src/modules/webhooks.ts +0 -86
- package/test/data/accounting_invoice.pdf +0 -0
- package/test/modules/accounting.test.ts +0 -647
- package/test/modules/consumer.test.ts +0 -68
- package/test/modules/consumers.test.ts +0 -85
- package/test/modules/ecommerce.test.ts +0 -213
- package/test/modules/integrations.test.ts +0 -22
- package/test/modules/invoicing.test.ts +0 -98
- package/test/modules/payment.test.ts +0 -65
- package/test/modules/pms.test.ts +0 -69
- package/test/modules/pos.test.ts +0 -164
- package/test/modules/sync.test.ts +0 -74
- package/test/modules/syncs.test.ts +0 -23
- package/test/modules/webhooks.test.ts +0 -92
- package/tsconfig.json +0 -107
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chift/chift-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "The Chift NodeJS library provides convenient access to the Chift API from applications written in the NodeJS language (Javascript/Typescript).",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"src/types/"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"dev": "chokidar src --command 'npm run build' --debounce=5000",
|
|
9
12
|
"prepare": "husky install",
|
|
10
|
-
"build": "tsc",
|
|
13
|
+
"build": "tsc && cp src/types/public-api/schema.d.ts dist/src/types/public-api/schema.d.ts",
|
|
11
14
|
"test": "jest --maxWorkers 1"
|
|
12
15
|
},
|
|
13
16
|
"keywords": [],
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dist
|
package/.eslintrc.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"es6": true,
|
|
4
|
-
"node": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"plugin:@typescript-eslint/recommended",
|
|
9
|
-
"plugin:prettier/recommended"
|
|
10
|
-
],
|
|
11
|
-
"globals": {
|
|
12
|
-
"Atomics": "readonly",
|
|
13
|
-
"SharedArrayBuffer": "readonly"
|
|
14
|
-
},
|
|
15
|
-
"parser": "@typescript-eslint/parser",
|
|
16
|
-
"parserOptions": {
|
|
17
|
-
"ecmaVersion": 11,
|
|
18
|
-
"sourceType": "module"
|
|
19
|
-
},
|
|
20
|
-
"plugins": ["@typescript-eslint", "prettier"],
|
|
21
|
-
"rules": {
|
|
22
|
-
"@typescript-eslint/no-unused-vars": "error",
|
|
23
|
-
"prettier/prettier": "error"
|
|
24
|
-
}
|
|
25
|
-
}
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
name: Test and publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch: {}
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
- feature/**
|
|
9
|
-
tags:
|
|
10
|
-
- v[0-9]+.[0-9]+.[0-9]+*
|
|
11
|
-
pull_request:
|
|
12
|
-
branches:
|
|
13
|
-
- main
|
|
14
|
-
- feature/**
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
test:
|
|
18
|
-
name: Test
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
steps:
|
|
21
|
-
- name: Checkout
|
|
22
|
-
uses: actions/checkout@v3
|
|
23
|
-
|
|
24
|
-
- name: Use Node.js 16.x
|
|
25
|
-
uses: actions/setup-node@v3
|
|
26
|
-
with:
|
|
27
|
-
node-version: 16.x
|
|
28
|
-
|
|
29
|
-
- name: Install dependencies
|
|
30
|
-
run: npm install
|
|
31
|
-
|
|
32
|
-
- name: Test
|
|
33
|
-
run: npm test --coverage && ./node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
|
|
34
|
-
env:
|
|
35
|
-
CHIFT_BACKBONE_API: ${{ secrets.CHIFT_BACKBONE_API }}
|
|
36
|
-
CHIFT_TESTING_CLIENTID: ${{ secrets.CHIFT_TESTING_CLIENTID }}
|
|
37
|
-
CHIFT_TESTING_CLIENTSECRET: ${{ secrets.CHIFT_TESTING_CLIENTSECRET }}
|
|
38
|
-
CHIFT_TESTING_ACCOUNTID: ${{ secrets.CHIFT_TESTING_ACCOUNTID }}
|
|
39
|
-
CHIFT_TEST_SYNC_ID: ${{ secrets.CHIFT_TEST_SYNC_ID }}
|
|
40
|
-
CHIFT_SYNC_CONSUMER_ID: ${{ secrets.CHIFT_SYNC_CONSUMER_ID }}
|
|
41
|
-
CHIFT_ACCOUNTING_CONSUMER_ID: ${{ secrets.CHIFT_ACCOUNTING_CONSUMER_ID }}
|
|
42
|
-
CHIFT_ECOMMERCE_CONSUMER_ID: ${{ secrets.CHIFT_ECOMMERCE_CONSUMER_ID }}
|
|
43
|
-
CHIFT_POS_CONSUMER_ID: ${{ secrets.CHIFT_POS_CONSUMER_ID }}
|
|
44
|
-
CHIFT_INVOICING_CONSUMER_ID: ${{ secrets.CHIFT_INVOICING_CONSUMER_ID }}
|
|
45
|
-
CHIFT_PAYMENT_CONSUMER_ID: ${{ secrets.CHIFT_PAYMENT_CONSUMER_ID }}
|
|
46
|
-
CHIFT_PMS_CONSUMER_ID: ${{ secrets.CHIFT_PMS_CONSUMER_ID }}
|
|
47
|
-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
48
|
-
|
|
49
|
-
- name: Report Coveralls
|
|
50
|
-
uses: coverallsapp/github-action@v2
|
|
51
|
-
|
|
52
|
-
publish:
|
|
53
|
-
name: Publish
|
|
54
|
-
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
|
|
55
|
-
runs-on: ubuntu-latest
|
|
56
|
-
needs: test
|
|
57
|
-
steps:
|
|
58
|
-
- name: Checkout
|
|
59
|
-
uses: actions/checkout@v3
|
|
60
|
-
|
|
61
|
-
- name: Use Node.js 16.x
|
|
62
|
-
uses: actions/setup-node@v3
|
|
63
|
-
with:
|
|
64
|
-
node-version: 16.x
|
|
65
|
-
|
|
66
|
-
- name: Install dependencies
|
|
67
|
-
run: npm install
|
|
68
|
-
|
|
69
|
-
- name: Build
|
|
70
|
-
run: npm run build
|
|
71
|
-
|
|
72
|
-
- name: Publish
|
|
73
|
-
uses: JS-DevTools/npm-publish@v1
|
|
74
|
-
with:
|
|
75
|
-
token: ${{ secrets.NPM_TOKEN }}
|
package/.husky/pre-commit
DELETED
package/.prettierignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dist
|
package/.prettierrc.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.0.0 - 2023-09-14
|
|
4
|
-
|
|
5
|
-
- First release with scopes of the 5 unified APIs (Accounting, POS, eCommerce, Invoicing & Payment) of Chift and the management of consumers, connections & webhooks.
|
|
6
|
-
- Review of tests and CI-pipeline
|
|
7
|
-
|
|
8
|
-
## 1.0.1 - 2023-09-21
|
|
9
|
-
|
|
10
|
-
- Update accounting model
|
|
11
|
-
- add getOutstandings route
|
|
12
|
-
|
|
13
|
-
## 1.0.2 - 2023-10-02
|
|
14
|
-
|
|
15
|
-
- add createFinancialEntry params
|
|
16
|
-
- add createJournalEntry route
|
|
17
|
-
|
|
18
|
-
## 1.0.3 - 2023-10-09
|
|
19
|
-
|
|
20
|
-
- fix missing accounting model definitions
|
|
21
|
-
|
|
22
|
-
## 1.0.4 - 2023-10-18
|
|
23
|
-
|
|
24
|
-
- Update createFinancialEntry endpoint
|
|
25
|
-
- Deprecate previous createFinancialEntry endpoint (changed to createFinancialEntryOld)
|
|
26
|
-
|
|
27
|
-
## 1.0.5 - 2023-10-26
|
|
28
|
-
|
|
29
|
-
- Return correct error on authentication (promise)
|
|
30
|
-
|
|
31
|
-
## 1.0.6 - 2023-11-24
|
|
32
|
-
|
|
33
|
-
- Update models & add new POS Routes
|
|
34
|
-
|
|
35
|
-
## 1.0.7 - 2024-03-26
|
|
36
|
-
|
|
37
|
-
- [ACCOUNTING] Remove getAnalyticLinesOfAccount
|
|
38
|
-
- [ACCOUNTING] Deprecate/Replace Create Journal Entry
|
|
39
|
-
- [ACCOUNTING] Update create misc operation params
|
|
40
|
-
- [ACCOUNTING] Update get misc operation params
|
|
41
|
-
- [ACCOUNTING] Update get balance of accounts params
|
|
42
|
-
- [ACCOUNTING] Update get employees params
|
|
43
|
-
- [POS] Add getAccountingCategories
|
|
44
|
-
- [POS] Fix getProductCategories type
|
|
45
|
-
- [ECOMMERCE] Add getPaymentMethods
|
|
46
|
-
- [ECOMMERCE] Add getProductCategories
|
|
47
|
-
- [ECOMMERCE] Add getCountries
|
|
48
|
-
- [ECOMMERCE] Add getTaxes
|
|
49
|
-
- [SYNC] Add create sync
|
|
50
|
-
- [SYNC] Add update sync
|
|
51
|
-
- [CONSUMER] Add enable consumer flow
|
|
52
|
-
|
|
53
|
-
## 1.0.8 - 2024-04-04
|
|
54
|
-
|
|
55
|
-
- [ACCOUNTING] Add params to getAnalyticPlans
|
|
56
|
-
- [ACCOUNTING] Add params to getClients
|
|
57
|
-
- [ACCOUNTING] Add params to getClient
|
|
58
|
-
- [ACCOUNTING] Add params to updateClient
|
|
59
|
-
- [ACCOUNTING] Add params to getSuppliers
|
|
60
|
-
- [ACCOUNTING] Add params to getSupplier
|
|
61
|
-
- [ACCOUNTING] Add params to updateSupplier
|
|
62
|
-
- [ACCOUNTING] Add params to createAnalyticAccount
|
|
63
|
-
- [ACCOUNTING] Add params to getAnalyticAccounts
|
|
64
|
-
- [ACCOUNTING] Add params to createAnalyticAccountWithMultiplePlans
|
|
65
|
-
- [ACCOUNTING] Add params to getAnalyticAccount
|
|
66
|
-
- [ACCOUNTING] Add params to updateAnalyticAccount
|
|
67
|
-
- [ACCOUNTING] Add params to getAnalyticAccountWithMultiplePlans
|
|
68
|
-
- [ACCOUNTING] Add params to getAnalyticAccountsWithMultiplePlans
|
|
69
|
-
- [ACCOUNTING] Add params to updateAnalyticAccountWithMultiplePlans
|
|
70
|
-
- [ACCOUNTING] Add params to getPaymentsByInvoiceId
|
|
71
|
-
- [ACCOUNTING] Add params to getJournals
|
|
72
|
-
- [ACCOUNTING] Add params to getVatCodes
|
|
73
|
-
- [ACCOUNTING] Add route getAttachments
|
|
74
|
-
- [ACCOUNTING] Add route matchEntries
|
|
75
|
-
- [ACCOUNTING] Add route getFolders
|
|
76
|
-
|
|
77
|
-
## 1.0.9 - 2024-04-10
|
|
78
|
-
|
|
79
|
-
- Add getIntegrations params
|
|
80
|
-
|
|
81
|
-
### 1.0.12 - 2024-04-29
|
|
82
|
-
|
|
83
|
-
- Remove pagination from route params as it is handled by the library
|
|
84
|
-
- Make route params optional when they are not required
|
|
85
|
-
|
|
86
|
-
## 1.0.13 - 2024-05-07
|
|
87
|
-
|
|
88
|
-
- Add X-Chift-ConnectionId header
|
|
89
|
-
- Add X-Chift-IntegrationId header
|
|
90
|
-
|
|
91
|
-
## 1.0.14 - 2024-05-21
|
|
92
|
-
|
|
93
|
-
- Enhance auto-pagination
|
|
94
|
-
|
|
95
|
-
## 1.0.15 - 2024-05-23
|
|
96
|
-
|
|
97
|
-
- Support PMS vertical
|
|
98
|
-
|
|
99
|
-
## 1.0.16 - 2024-05-31
|
|
100
|
-
|
|
101
|
-
- Update model - Get integrations
|
|
102
|
-
|
|
103
|
-
## 1.0.17 - 2024-09-20
|
|
104
|
-
|
|
105
|
-
- Update models
|
|
106
|
-
- Add payment API
|
|
107
|
-
- Add payment API tests
|
|
108
|
-
- Add PMS API tests
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { InternalAPI } from '../modules/internalApi';
|
|
2
|
-
import { RequestFactory, ApiFor } from '../types/api';
|
|
3
|
-
export declare function createApiFor<TFactory extends RequestFactory>(factory: TFactory, internalApi: InternalAPI, consumerName: string, consumerId: string): ApiFor<TFactory>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createApiFor = void 0;
|
|
4
|
-
function createApiFor(factory, internalApi, consumerName, consumerId) {
|
|
5
|
-
return new Proxy(factory, {
|
|
6
|
-
get(target, property) {
|
|
7
|
-
return (...args) => {
|
|
8
|
-
const requestData = target[property](...args);
|
|
9
|
-
requestData.property = property;
|
|
10
|
-
requestData.consumerName = consumerName;
|
|
11
|
-
requestData.consumerId = consumerId;
|
|
12
|
-
requestData.url = requestData.url.replace('{consumer_id}', consumerId);
|
|
13
|
-
return internalApi.makeRequest(requestData);
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.createApiFor = createApiFor;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './modules/api';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { operations, components } from '../types/public-api/schema';
|
|
2
|
-
import { AutoPaginatedParams, RequestData } from '../types/api';
|
|
3
|
-
type GetChartOfAccountsParams = AutoPaginatedParams<operations['accounting_get_chart_of_accounts']['parameters']['query']>;
|
|
4
|
-
type GetMiscOperationsParams = AutoPaginatedParams<operations['accounting_get_miscellaneous_operations']['parameters']['query']>;
|
|
5
|
-
type GetInvoicesByTypeWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_invoices_by_type_multi_analytic_plans']['parameters']['query']>;
|
|
6
|
-
type GetInvoicesByTypeParams = AutoPaginatedParams<operations['accounting_get_invoices_by_type']['parameters']['query']>;
|
|
7
|
-
type GetOutstandingsParams = AutoPaginatedParams<operations['accounting_get_outstandings']['parameters']['query']>;
|
|
8
|
-
type GetAnalyticPlansParams = AutoPaginatedParams<operations['accounting_get_analytic_plans']['parameters']['query']>;
|
|
9
|
-
type GetVatCodesParams = AutoPaginatedParams<operations['accounting_get_vat_codes']['parameters']['query']>;
|
|
10
|
-
type GetJournalsParams = AutoPaginatedParams<operations['accounting_get_journals']['parameters']['query']>;
|
|
11
|
-
type GetJournalEntriesParams = AutoPaginatedParams<operations['accounting_get_journal_entries']['parameters']['query']>;
|
|
12
|
-
type GetJournalEntriesWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_journal_entries_mutli_plan']['parameters']['query']>;
|
|
13
|
-
type GetEmployeesParams = AutoPaginatedParams<operations['accounting_get_employees']['parameters']['query']>;
|
|
14
|
-
type GetAttachmentsParams = AutoPaginatedParams<operations['accounting_get_attachments']['parameters']['query']>;
|
|
15
|
-
type GetBalanceOfAccountsParams = AutoPaginatedParams<operations['accounting_get_accounts_balances']['parameters']['query']>;
|
|
16
|
-
type GetClientsParams = AutoPaginatedParams<operations['accounting_get_clients']['parameters']['query']>;
|
|
17
|
-
type GetSuppliersParams = AutoPaginatedParams<operations['accounting_get_suppliers']['parameters']['query']>;
|
|
18
|
-
type GetAnalyticAccountsParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts']['parameters']['query']>;
|
|
19
|
-
type GetAnalyticAccountsWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts_multi_plans']['parameters']['query']>;
|
|
20
|
-
declare const accountingFactory: {
|
|
21
|
-
getAnalyticPlans(params?: GetAnalyticPlansParams): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
22
|
-
getClients(params?: GetClientsParams): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
23
|
-
createClient(client: components['schemas']['ClientItemIn'], params?: operations['accounting_create_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
24
|
-
getClient(clientId: string, params?: operations['accounting_get_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
25
|
-
updateClient(clientId: string, client: components['schemas']['ClientItemUpdate'], params?: operations['accounting_update_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
26
|
-
getSuppliers(params?: GetSuppliersParams): RequestData<components['schemas']['SupplierItemOut'][]>;
|
|
27
|
-
createSupplier(supplier: components['schemas']['SupplierItemIn'], params?: operations['accounting_create_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
28
|
-
getSupplier(supplierId: string, params?: operations['accounting_get_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
29
|
-
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate'], params?: operations['accounting_update_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
30
|
-
createInvoice(invoice: components['schemas']['InvoiceItemInMonoAnalyticPlan'], params?: operations['accounting_create_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
31
|
-
createInvoiceWithMultiplePlans(invoice: components['schemas']['InvoiceItemInMultiAnalyticPlans'], params?: operations['accounting_create_invoice_multiple_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
32
|
-
getInvoicesByType(invoice_type: components['schemas']['backbone_api__app__routers__accounting__InvoiceType'], params?: GetInvoicesByTypeParams): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan'][]>;
|
|
33
|
-
getInvoice(invoiceId: string, params?: operations['accounting_get_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
34
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params?: operations['accounting_get_invoice_multi_analytic_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
35
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['backbone_api__app__routers__accounting__InvoiceType'], params?: GetInvoicesByTypeWithMultiplePlansParams): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans'][]>;
|
|
36
|
-
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
37
|
-
getAnalyticAccounts(params?: GetAnalyticAccountsParams): RequestData<components['schemas']['AnalyticAccountItemOut'][]>;
|
|
38
|
-
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
39
|
-
getAnalyticAccount(analytic_account_id: string, params?: operations['accounting_get_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
40
|
-
updateAnalyticAccount(analytic_account_id: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params?: operations['accounting_update_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
41
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: operations['accounting_get_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
42
|
-
updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params?: operations['accounting_update_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
43
|
-
getAnalyticAccountsWithMultiplePlans(params?: GetAnalyticAccountsWithMultiplePlansParams): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans'][]>;
|
|
44
|
-
getJournalEntries(params: GetJournalEntriesParams): RequestData<components['schemas']['JournalEntryMonoAnalyticPlan'][]>;
|
|
45
|
-
getJournalEntriesWithMultiplePlans(params: GetJournalEntriesWithMultiplePlansParams): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan'][]>;
|
|
46
|
-
getPaymentsByInvoiceId(invoice_id: string, params?: operations['accounting_get_payments_by_invoice']['parameters']['query']): RequestData<components['schemas']['Payment'][]>;
|
|
47
|
-
getJournals(params?: GetJournalsParams): RequestData<components['schemas']['Journal'][]>;
|
|
48
|
-
getVatCodes(params?: GetVatCodesParams): RequestData<components['schemas']['backbone_api__app__routers__accounting__VatCode'][]>;
|
|
49
|
-
getMiscOperations(params?: GetMiscOperationsParams): RequestData<components['schemas']['MiscellaneousOperationOut'][]>;
|
|
50
|
-
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn'], params?: operations['accounting_create_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
51
|
-
getMiscOperation(operation_id: string, params?: operations['accounting_get_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
52
|
-
attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params?: operations['accounting_add_attachment']['parameters']['query']): RequestData<operations['accounting_add_attachment']['responses'][201]>;
|
|
53
|
-
getAttachments(params: GetAttachmentsParams): RequestData<components['schemas']['AttachmentItem'][]>;
|
|
54
|
-
getChartOfAccounts(params?: GetChartOfAccountsParams): RequestData<components['schemas']['AccountItem'][]>;
|
|
55
|
-
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params?: GetBalanceOfAccountsParams): RequestData<components['schemas']['AccountBalance'][]>;
|
|
56
|
-
getEmployees(params?: GetEmployeesParams): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
57
|
-
getOutstandings(params: GetOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated replaced by createFinancialEntry
|
|
60
|
-
*/
|
|
61
|
-
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params?: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
|
|
62
|
-
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
|
|
63
|
-
createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
64
|
-
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
65
|
-
matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
|
|
66
|
-
getFolders(): RequestData<components['schemas']['FolderItem'][]>;
|
|
67
|
-
};
|
|
68
|
-
export { accountingFactory };
|