@orchesty/connector-wflow 2.0.1 → 2.0.3
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/dist/Batch/WflowSubscribeWebhookBatch.d.ts +7 -0
- package/dist/Batch/WflowSubscribeWebhookBatch.js +57 -0
- package/dist/Batch/WflowUnsubscribeWebhookBatch.d.ts +7 -0
- package/dist/Batch/WflowUnsubscribeWebhookBatch.js +47 -0
- package/{src/Connector/WflowGetDocumentConnector.ts → dist/Connector/WflowGetDocumentConnector.d.ts} +4 -34
- package/dist/Connector/WflowGetDocumentConnector.js +24 -0
- package/dist/Connector/WflowGetDocumentMainFileConnector.d.ts +13 -0
- package/dist/Connector/WflowGetDocumentMainFileConnector.js +25 -0
- package/dist/Connector/WflowGetDocumentTypesConnector.d.ts +36 -0
- package/dist/Connector/WflowGetDocumentTypesConnector.js +28 -0
- package/dist/Connector/WflowGetOrganizationsConnector.d.ts +15 -0
- package/dist/Connector/WflowGetOrganizationsConnector.js +27 -0
- package/dist/Connector/WflowPatchAccountingRulesConnector.d.ts +17 -0
- package/dist/Connector/WflowPatchAccountingRulesConnector.js +24 -0
- package/dist/Connector/WflowPatchChartOfAccountsConnector.d.ts +15 -0
- package/dist/Connector/WflowPatchChartOfAccountsConnector.js +24 -0
- package/dist/Connector/WflowPatchContractsConnector.d.ts +15 -0
- package/dist/Connector/WflowPatchContractsConnector.js +24 -0
- package/dist/Connector/WflowPatchCostCentersConnector.d.ts +15 -0
- package/dist/Connector/WflowPatchCostCentersConnector.js +24 -0
- package/dist/Connector/WflowPatchSeriesConnector.d.ts +19 -0
- package/dist/Connector/WflowPatchSeriesConnector.js +24 -0
- package/dist/Connector/WflowPatchVatControlStatementLinesConnector.d.ts +15 -0
- package/dist/Connector/WflowPatchVatControlStatementLinesConnector.js +24 -0
- package/dist/Connector/WflowPatchVatReturnLinesConnector.d.ts +16 -0
- package/dist/Connector/WflowPatchVatReturnLinesConnector.js +24 -0
- package/{src/Connector/WflowPutDocumentConnector.ts → dist/Connector/WflowPutDocumentConnector.d.ts} +5 -37
- package/dist/Connector/WflowPutDocumentConnector.js +31 -0
- package/dist/Connector/WflowUpdateDocumentStateConnector.d.ts +11 -0
- package/dist/Connector/WflowUpdateDocumentStateConnector.js +24 -0
- package/dist/WflowApplication.d.ts +41 -0
- package/dist/WflowApplication.js +133 -0
- package/dist/package.json +26 -0
- package/package.json +5 -2
- package/CHANGELOG.md +0 -49
- package/jest.config.js +0 -13
- package/src/Batch/WflowSubscribeWebhookBatch.ts +0 -84
- package/src/Batch/WflowUnsubscribeWebhookBatch.ts +0 -59
- package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/input.json +0 -7
- package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/mock.json +0 -5
- package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/output.json +0 -7
- package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/input.json +0 -7
- package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/mock.json +0 -5
- package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/output.json +0 -7
- package/src/Batch/__tests__/WflowSubscribeWebhookBatch.ts +0 -17
- package/src/Batch/__tests__/WflowUnsubscribeWebhookBatch.ts +0 -17
- package/src/Connector/WflowGetDocumentMainFileConnector.ts +0 -40
- package/src/Connector/WflowGetDocumentTypesConnector.ts +0 -69
- package/src/Connector/WflowGetOrganizationsConnector.ts +0 -40
- package/src/Connector/WflowPatchAccountingRulesConnector.ts +0 -53
- package/src/Connector/WflowPatchChartOfAccountsConnector.ts +0 -42
- package/src/Connector/WflowPatchContractsConnector.ts +0 -42
- package/src/Connector/WflowPatchCostCentersConnector.ts +0 -42
- package/src/Connector/WflowPatchSeriesConnector.ts +0 -61
- package/src/Connector/WflowPatchVatControlStatementLinesConnector.ts +0 -42
- package/src/Connector/WflowPatchVatReturnLinesConnector.ts +0 -43
- package/src/Connector/WflowUpdateDocumentStateConnector.ts +0 -36
- package/src/Connector/__tests__/Data/WflowGetDocumentConnector/input.json +0 -10
- package/src/Connector/__tests__/Data/WflowGetDocumentConnector/mock.json +0 -449
- package/src/Connector/__tests__/Data/WflowGetDocumentConnector/output.json +0 -451
- package/src/Connector/__tests__/Data/WflowGetDocumentMainFileConnector/input.json +0 -9
- package/src/Connector/__tests__/Data/WflowGetDocumentMainFileConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowGetDocumentMainFileConnector/output.json +0 -9
- package/src/Connector/__tests__/Data/WflowGetDocumentTypesConnector/input.json +0 -7
- package/src/Connector/__tests__/Data/WflowGetDocumentTypesConnector/mock.json +0 -32
- package/src/Connector/__tests__/Data/WflowGetDocumentTypesConnector/output.json +0 -29
- package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/input.json +0 -7
- package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/mock.json +0 -12
- package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/output.json +0 -14
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-input.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/batch-output.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/input.json +0 -12
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchAccountingRulesConnector/output.json +0 -12
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-input.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/batch-output.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/input.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchChartOfAccountsConnector/output.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-input.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/batch-output.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/input.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchContractsConnector/output.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-input.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/batch-output.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/input.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchCostCentersConnector/output.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-input.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/batch-output.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/input.json +0 -12
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchSeriesConnector/output.json +0 -12
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-input.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-output.json +0 -18
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/input.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/output.json +0 -11
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-input.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/batch-output.json +0 -20
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/input.json +0 -12
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPatchVatReturnLinesConnector/output.json +0 -12
- package/src/Connector/__tests__/Data/WflowPutDocumentConnector/input.json +0 -10
- package/src/Connector/__tests__/Data/WflowPutDocumentConnector/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowPutDocumentConnector/output.json +0 -10
- package/src/Connector/__tests__/Data/WflowUpdateDocumentState/input.json +0 -9
- package/src/Connector/__tests__/Data/WflowUpdateDocumentState/mock.json +0 -5
- package/src/Connector/__tests__/Data/WflowUpdateDocumentState/output.json +0 -9
- package/src/Connector/__tests__/WflowGetDocumentConnector.ts +0 -17
- package/src/Connector/__tests__/WflowGetDocumentMainFileConnector.ts +0 -17
- package/src/Connector/__tests__/WflowGetDocumentTypesConnector.ts +0 -17
- package/src/Connector/__tests__/WflowGetOrganizationsConnector.ts +0 -17
- package/src/Connector/__tests__/WflowPatchAccountingRulesConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchChartOfAccountsConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchContractsConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchCostCentersConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchSeriesConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchVatControlStatementLinesConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPatchVatReturnLinesConnector.ts +0 -21
- package/src/Connector/__tests__/WflowPutDocumentConnector.ts +0 -17
- package/src/Connector/__tests__/WflowUpdateDocumentState.ts +0 -17
- package/src/WflowApplication.ts +0 -151
- package/test/dataProvider.ts +0 -74
- package/tsconfig.json +0 -9
- package/tsconfig.prod.json +0 -10
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "DD",
|
|
9
|
-
"description": "Test series",
|
|
10
|
-
"isValid": true,
|
|
11
|
-
"kind": "IncomingInvoice"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"code": "EE",
|
|
15
|
-
"description": "Second series",
|
|
16
|
-
"isValid": true,
|
|
17
|
-
"kind": "OutgoingInvoice"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "DD",
|
|
9
|
-
"description": "Test series",
|
|
10
|
-
"isValid": true,
|
|
11
|
-
"kind": "IncomingInvoice"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"code": "EE",
|
|
15
|
-
"description": "Second series",
|
|
16
|
-
"isValid": true,
|
|
17
|
-
"kind": "OutgoingInvoice"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-input.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "A.1.",
|
|
9
|
-
"description": "Test control statement line",
|
|
10
|
-
"isValid": true
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"code": "A.2.",
|
|
14
|
-
"description": "Second line",
|
|
15
|
-
"isValid": true
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/src/Connector/__tests__/Data/WflowPatchVatControlStatementLinesConnector/batch-output.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "A.1.",
|
|
9
|
-
"description": "Test control statement line",
|
|
10
|
-
"isValid": true
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"code": "A.2.",
|
|
14
|
-
"description": "Second line",
|
|
15
|
-
"isValid": true
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "000P",
|
|
9
|
-
"description": "Doklad bez vlivu na DPH",
|
|
10
|
-
"isValid": true,
|
|
11
|
-
"reverseCharge": false
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"code": "001P",
|
|
15
|
-
"description": "Second item",
|
|
16
|
-
"isValid": true,
|
|
17
|
-
"reverseCharge": true
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"sdk": "TestSdk"
|
|
5
|
-
},
|
|
6
|
-
"data": [
|
|
7
|
-
{
|
|
8
|
-
"code": "000P",
|
|
9
|
-
"description": "Doklad bez vlivu na DPH",
|
|
10
|
-
"isValid": true,
|
|
11
|
-
"reverseCharge": false
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"code": "001P",
|
|
15
|
-
"description": "Second item",
|
|
16
|
-
"isValid": true,
|
|
17
|
-
"reverseCharge": true
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
-
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
3
|
-
import init from '../../../test/dataProvider';
|
|
4
|
-
import { NAME as WFLOW_GET_DOCUMENT_CONNECTOR } from '../WflowGetDocumentConnector';
|
|
5
|
-
|
|
6
|
-
let tester: NodeTester;
|
|
7
|
-
|
|
8
|
-
describe('Tests for WflowGetDocumentConnector', () => {
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
tester = new NodeTester(container, __filename);
|
|
11
|
-
init();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('process - ok', async () => {
|
|
15
|
-
await tester.testConnector(WFLOW_GET_DOCUMENT_CONNECTOR);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
-
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
3
|
-
import init from '../../../test/dataProvider';
|
|
4
|
-
import { NAME as WFLOW_GET_DOCUMENT_MAIN_FILE_CONNECTOR } from '../WflowGetDocumentMainFileConnector';
|
|
5
|
-
|
|
6
|
-
let tester: NodeTester;
|
|
7
|
-
|
|
8
|
-
describe('Tests for WflowGetDocumentMainFileConnector', () => {
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
tester = new NodeTester(container, __filename);
|
|
11
|
-
init();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('process - ok', async () => {
|
|
15
|
-
await tester.testConnector(WFLOW_GET_DOCUMENT_MAIN_FILE_CONNECTOR);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
-
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
3
|
-
import init from '../../../test/dataProvider';
|
|
4
|
-
import { NAME as WFLOW_GET_DOCUMENT_TYPES_CONNECTOR } from '../WflowGetDocumentTypesConnector';
|
|
5
|
-
|
|
6
|
-
let tester: NodeTester;
|
|
7
|
-
|
|
8
|
-
describe('Tests for WflowGetDocumentTypesConnector', () => {
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
tester = new NodeTester(container, __filename);
|
|
11
|
-
init();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('process - ok', async () => {
|
|
15
|
-
await tester.testConnector(WFLOW_GET_DOCUMENT_TYPES_CONNECTOR);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
-
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
3
|
-
import init from '../../../test/dataProvider';
|
|
4
|
-
import { NAME as WFLOW_GET_ORGANIZATIONS_CONNECTOR } from '../WflowGetOrganizationsConnector';
|
|
5
|
-
|
|
6
|
-
let tester: NodeTester;
|
|
7
|
-
|
|
8
|
-
describe('Tests for WflowGetOrganizationsConnector', () => {
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
tester = new NodeTester(container, __filename);
|
|
11
|
-
init();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('process - ok', async () => {
|
|
15
|
-
await tester.testConnector(WFLOW_GET_ORGANIZATIONS_CONNECTOR);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
|
|
2
|
-
import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
|
|
3
|
-
import init from '../../../test/dataProvider';
|
|
4
|
-
import { NAME as WFLOW_PATCH_ACCOUNTING_RULES } from '../WflowPatchAccountingRulesConnector';
|
|
5
|
-
|
|
6
|
-
let tester: NodeTester;
|
|
7
|
-
|
|
8
|
-
describe('Tests for WflowPatchAccountingRulesConnector', () => {
|
|
9
|
-
beforeAll(() => {
|
|
10
|
-
tester = new NodeTester(container, __filename);
|
|
11
|
-
init();
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
it('process - ok', async () => {
|
|
15
|
-
await tester.testConnector(WFLOW_PATCH_ACCOUNTING_RULES);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('process - batch', async () => {
|
|
19
|
-
await tester.testConnector(WFLOW_PATCH_ACCOUNTING_RULES, 'batch');
|
|
20
|
-
});
|
|
21
|
-
});
|