@colijnit/mainapi 1.0.35 → 1.0.37
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/build/enum/absence-type.enum.d.ts +10 -10
- package/build/enum/absence-type.enum.js +14 -14
- package/build/enum/activities-object-name.enum.d.ts +4 -4
- package/build/enum/activities-object-name.enum.js +8 -8
- package/build/enum/activities-operation-name.enum.d.ts +8 -8
- package/build/enum/activities-operation-name.enum.js +12 -12
- package/build/enum/activity-sort-type.enum.d.ts +5 -5
- package/build/enum/activity-sort-type.enum.js +9 -9
- package/build/enum/activity-type.d.ts +9 -9
- package/build/enum/activity-type.js +13 -13
- package/build/enum/article-publication.enum.d.ts +5 -5
- package/build/enum/article-publication.enum.js +9 -9
- package/build/enum/backend-service-name.enum.d.ts +9 -9
- package/build/enum/backend-service-name.enum.js +13 -13
- package/build/enum/co-document-image-display-kind.enum.d.ts +5 -5
- package/build/enum/co-document-image-display-kind.enum.js +9 -9
- package/build/enum/co-document-type.enum.d.ts +5 -5
- package/build/enum/co-document-type.enum.js +9 -9
- package/build/enum/co-sub-report.bo.d.ts +11 -11
- package/build/enum/co-sub-report.bo.js +21 -21
- package/build/enum/config-object-name.enum.d.ts +3 -3
- package/build/enum/config-object-name.enum.js +7 -7
- package/build/enum/data-mapping.enum.d.ts +5 -5
- package/build/enum/data-mapping.enum.js +9 -9
- package/build/enum/data-service-method.enum.d.ts +15 -15
- package/build/enum/data-service-method.enum.js +19 -19
- package/build/enum/db-boolean-value-type.enum.d.ts +12 -12
- package/build/enum/db-boolean-value-type.enum.js +32 -32
- package/build/enum/delivery-time-unit-type.enum.d.ts +4 -4
- package/build/enum/delivery-time-unit-type.enum.js +8 -8
- package/build/enum/document-allowed-type.enum.d.ts +10 -10
- package/build/enum/document-allowed-type.enum.js +14 -14
- package/build/enum/document-method.enum.d.ts +6 -6
- package/build/enum/document-method.enum.js +10 -10
- package/build/enum/domain-name.enum.d.ts +64 -64
- package/build/enum/domain-name.enum.js +68 -68
- package/build/enum/file-type-internal.enum.d.ts +11 -11
- package/build/enum/file-type-internal.enum.js +15 -15
- package/build/enum/file-type.enum.d.ts +5 -5
- package/build/enum/file-type.enum.js +9 -9
- package/build/enum/general-method.enum.d.ts +37 -37
- package/build/enum/general-method.enum.js +41 -41
- package/build/enum/insured-interest-type.enum.d.ts +10 -10
- package/build/enum/insured-interest-type.enum.js +14 -14
- package/build/enum/internal-param.enum.d.ts +10 -9
- package/build/enum/internal-param.enum.js +14 -13
- package/build/enum/ione-module-name.enum.d.ts +39 -39
- package/build/enum/ione-module-name.enum.js +55 -55
- package/build/enum/master-data-object-name.enum.d.ts +25 -25
- package/build/enum/master-data-object-name.enum.js +29 -29
- package/build/enum/message-type.enum.d.ts +6 -6
- package/build/enum/message-type.enum.js +10 -10
- package/build/enum/module-name.enum.d.ts +14 -14
- package/build/enum/module-name.enum.js +18 -18
- package/build/enum/module-navigation-link.d.ts +5 -5
- package/build/enum/module-navigation-link.js +2 -2
- package/build/enum/note-display-type.enum.d.ts +5 -5
- package/build/enum/note-display-type.enum.js +9 -9
- package/build/enum/one-zero-bool-db-type.enum.d.ts +5 -5
- package/build/enum/one-zero-bool-db-type.enum.js +20 -20
- package/build/enum/own-risk.enum.d.ts +7 -7
- package/build/enum/own-risk.enum.js +11 -11
- package/build/enum/period.enum.d.ts +7 -7
- package/build/enum/period.enum.js +11 -11
- package/build/enum/personal-activity-tab.enum.d.ts +4 -4
- package/build/enum/personal-activity-tab.enum.js +8 -8
- package/build/enum/preset-object-name.enum.d.ts +3 -3
- package/build/enum/preset-object-name.enum.js +7 -7
- package/build/enum/price-type.enum.d.ts +4 -4
- package/build/enum/price-type.enum.js +8 -8
- package/build/enum/printing-service-method.d.ts +8 -8
- package/build/enum/printing-service-method.js +12 -12
- package/build/enum/priority-type.enum.d.ts +7 -7
- package/build/enum/priority-type.enum.js +11 -11
- package/build/enum/product-kind.enum.d.ts +6 -6
- package/build/enum/product-kind.enum.js +10 -10
- package/build/enum/public-service-method.d.ts +20 -20
- package/build/enum/public-service-method.js +24 -24
- package/build/enum/relation-kind.d.ts +10 -10
- package/build/enum/relation-kind.js +14 -14
- package/build/enum/relman-complete-name.d.ts +5 -5
- package/build/enum/relman-complete-name.js +2 -2
- package/build/enum/report-method.enum.d.ts +15 -15
- package/build/enum/report-method.enum.js +19 -19
- package/build/enum/report-object-name.enum.d.ts +3 -3
- package/build/enum/report-object-name.enum.js +7 -7
- package/build/enum/report-param-type.enum.d.ts +15 -15
- package/build/enum/report-param-type.enum.js +19 -19
- package/build/enum/report-type.enum.d.ts +45 -45
- package/build/enum/report-type.enum.js +49 -49
- package/build/enum/reporting-documents-method.enum.d.ts +4 -4
- package/build/enum/reporting-documents-method.enum.js +8 -8
- package/build/enum/send-method-type.enum.d.ts +10 -10
- package/build/enum/send-method-type.enum.js +14 -14
- package/build/enum/sequence-name.enum.d.ts +31 -31
- package/build/enum/sequence-name.enum.js +35 -35
- package/build/enum/simple-base-data-object-name.enum.d.ts +5 -5
- package/build/enum/simple-base-data-object-name.enum.js +9 -9
- package/build/enum/simple-base-data-operation-name.enum.d.ts +4 -4
- package/build/enum/simple-base-data-operation-name.enum.js +8 -8
- package/build/enum/tab-category.enum.d.ts +19 -19
- package/build/enum/tab-category.enum.js +23 -23
- package/build/enum/table-name.enum.d.ts +82 -82
- package/build/enum/table-name.enum.js +86 -86
- package/build/enum/tag-method.enum.d.ts +4 -4
- package/build/enum/tag-method.enum.js +8 -8
- package/build/enum/tag-object.enum.d.ts +3 -3
- package/build/enum/tag-object.enum.js +7 -7
- package/build/enum/tag-operation-name.enum.d.ts +3 -3
- package/build/enum/tag-operation-name.enum.js +7 -7
- package/build/enum/text-standard-type-text.d.ts +7 -7
- package/build/enum/text-standard-type-text.js +11 -11
- package/build/enum/text-standard-type.d.ts +7 -7
- package/build/enum/text-standard-type.js +11 -11
- package/build/enum/transaction-kind.d.ts +13 -13
- package/build/enum/transaction-kind.js +17 -17
- package/build/enum/true-false-db-type.enum.d.ts +5 -5
- package/build/enum/true-false-db-type.enum.js +20 -20
- package/build/enum/vat-type.enum.d.ts +4 -4
- package/build/enum/vat-type.enum.js +8 -8
- package/build/enum/workflow-category.enum.d.ts +18 -18
- package/build/enum/workflow-category.enum.js +22 -22
- package/build/enum/workflow-trigger-type.enum.d.ts +8 -8
- package/build/enum/workflow-trigger-type.enum.js +12 -12
- package/build/enum/yes-no-db-type.enum.d.ts +5 -5
- package/build/enum/yes-no-db-type.enum.js +20 -20
- package/build/main-api-connection.d.ts +66 -66
- package/build/main-api-connection.js +14 -14
- package/build/main-api.d.ts +81 -81
- package/build/main-api.js +219 -219
- package/build/main-api.unit.test.d.ts +1 -1
- package/build/main-api.unit.test.js +128 -128
- package/build/main-auth.d.ts +62 -62
- package/build/main-auth.js +556 -556
- package/build/main-public.d.ts +62 -62
- package/build/main-public.js +248 -248
- package/build/model/activity-list-view-model.d.ts +11 -11
- package/build/model/activity-list-view-model.js +20 -20
- package/build/model/activity-view-model.d.ts +13 -13
- package/build/model/activity-view-model.js +27 -27
- package/build/model/activity.bo.d.ts +58 -58
- package/build/model/activity.bo.js +484 -484
- package/build/model/article-seo-value.d.ts +5 -5
- package/build/model/article-seo-value.js +6 -6
- package/build/model/branch.bo.d.ts +8 -8
- package/build/model/branch.bo.js +7 -7
- package/build/model/brand.d.ts +8 -8
- package/build/model/brand.js +10 -10
- package/build/model/category.bo.d.ts +12 -12
- package/build/model/category.bo.js +16 -16
- package/build/model/co-document-right.d.ts +7 -7
- package/build/model/co-document-right.js +7 -7
- package/build/model/co-document.d.ts +64 -64
- package/build/model/co-document.js +180 -180
- package/build/model/co-domain-value.bo.d.ts +10 -10
- package/build/model/co-domain-value.bo.js +20 -20
- package/build/model/co-notition-right.bo.d.ts +10 -10
- package/build/model/co-notition-right.bo.js +13 -13
- package/build/model/co-notition.bo.d.ts +24 -24
- package/build/model/co-notition.bo.js +79 -79
- package/build/model/co-report-category-link.bo.d.ts +8 -8
- package/build/model/co-report-category-link.bo.js +7 -7
- package/build/model/co-report-sjablonen-documenten.bo.d.ts +6 -6
- package/build/model/co-report-sjablonen-documenten.bo.js +7 -7
- package/build/model/co-report.bo.d.ts +47 -47
- package/build/model/co-report.bo.js +68 -68
- package/build/model/co-rv-domain-value.bo.d.ts +10 -10
- package/build/model/co-rv-domain-value.bo.js +20 -20
- package/build/model/co-text.d.ts +26 -26
- package/build/model/co-text.js +28 -28
- package/build/model/color.bo.d.ts +7 -7
- package/build/model/color.bo.js +10 -10
- package/build/model/constant/java-constants.d.ts +2 -2
- package/build/model/constant/java-constants.js +5 -5
- package/build/model/contact-moment.bo.d.ts +17 -17
- package/build/model/contact-moment.bo.js +39 -39
- package/build/model/currency.bo.d.ts +13 -13
- package/build/model/currency.bo.js +33 -33
- package/build/model/department.bo.d.ts +12 -12
- package/build/model/department.bo.js +69 -69
- package/build/model/document-allowed-extension.bo.d.ts +6 -6
- package/build/model/document-allowed-extension.bo.js +7 -7
- package/build/model/form-question-response.bo.d.ts +10 -10
- package/build/model/form-question-response.bo.js +31 -31
- package/build/model/form.bo.d.ts +16 -16
- package/build/model/form.bo.js +13 -13
- package/build/model/get-postal-code-retrieval-output-params.d.ts +7 -7
- package/build/model/get-postal-code-retrieval-output-params.js +6 -6
- package/build/model/insured-interest.bo.d.ts +13 -13
- package/build/model/insured-interest.bo.js +39 -39
- package/build/model/language.bo.d.ts +5 -5
- package/build/model/language.bo.js +7 -7
- package/build/model/order-line-set-category.bo.d.ts +8 -8
- package/build/model/order-line-set-category.bo.js +7 -7
- package/build/model/own-risk.bo.d.ts +11 -11
- package/build/model/own-risk.bo.js +39 -39
- package/build/model/payment-condition-ledger-account.bo.d.ts +6 -6
- package/build/model/payment-condition-ledger-account.bo.js +7 -7
- package/build/model/payment-condition.bo.d.ts +11 -11
- package/build/model/payment-condition.bo.js +34 -34
- package/build/model/preset.bo.d.ts +12 -12
- package/build/model/preset.bo.js +16 -16
- package/build/model/printer.bo.d.ts +8 -8
- package/build/model/printer.bo.js +13 -13
- package/build/model/printing-service-request-data.d.ts +16 -16
- package/build/model/printing-service-request-data.js +2 -2
- package/build/model/privacy-setting.bo.d.ts +9 -9
- package/build/model/privacy-setting.bo.js +13 -13
- package/build/model/relation-small-object.bo.d.ts +28 -28
- package/build/model/relation-small-object.bo.js +63 -63
- package/build/model/remark.bo.d.ts +17 -17
- package/build/model/remark.bo.js +52 -52
- package/build/model/report-category.bo.d.ts +6 -6
- package/build/model/report-category.bo.js +7 -7
- package/build/model/report-layout-selection-base.bo.d.ts +9 -9
- package/build/model/report-layout-selection-base.bo.js +7 -7
- package/build/model/report-layout-selection-email.bo.d.ts +4 -4
- package/build/model/report-layout-selection-email.bo.js +7 -7
- package/build/model/report-layout-selection-print.bo.d.ts +5 -5
- package/build/model/report-layout-selection-print.bo.js +7 -7
- package/build/model/report-param.d.ts +16 -16
- package/build/model/report-param.js +9 -9
- package/build/model/reporting-document-base-request.d.ts +4 -4
- package/build/model/reporting-document-base-request.js +6 -6
- package/build/model/reporting-document-email-base-request.d.ts +5 -5
- package/build/model/reporting-document-email-base-request.js +7 -7
- package/build/model/reporting-document-email-sign-doc-base-request.d.ts +4 -4
- package/build/model/reporting-document-email-sign-doc-base-request.js +7 -7
- package/build/model/reporting-document-pdf-base-request.d.ts +3 -3
- package/build/model/reporting-document-pdf-base-request.js +7 -7
- package/build/model/reporting-document-print-base-request.d.ts +7 -7
- package/build/model/reporting-document-print-base-request.js +7 -7
- package/build/model/reporting-document-print-sign-doc-base-request.d.ts +4 -4
- package/build/model/reporting-document-print-sign-doc-base-request.js +7 -7
- package/build/model/send-method.bo.d.ts +5 -5
- package/build/model/send-method.bo.js +7 -7
- package/build/model/store-group.bo.d.ts +9 -9
- package/build/model/store-group.bo.js +7 -7
- package/build/model/tag-stock-item.bo.d.ts +24 -24
- package/build/model/tag-stock-item.bo.js +21 -21
- package/build/model/tag-tree-item.bo.d.ts +18 -18
- package/build/model/tag-tree-item.bo.js +52 -52
- package/build/model/tag.d.ts +11 -11
- package/build/model/tag.js +41 -41
- package/build/model/task-category.bo.d.ts +13 -13
- package/build/model/task-category.bo.js +28 -28
- package/build/model/task.bo.d.ts +83 -83
- package/build/model/task.bo.js +257 -257
- package/build/model/title.bo.d.ts +9 -9
- package/build/model/title.bo.js +13 -13
- package/build/model/transition.bo.d.ts +5 -5
- package/build/model/transition.bo.js +21 -21
- package/build/model/tree-object.d.ts +8 -8
- package/build/model/tree-object.js +29 -29
- package/build/model/user-group.bo.d.ts +13 -13
- package/build/model/user-group.bo.js +16 -16
- package/build/model/work.bo.d.ts +19 -19
- package/build/model/work.bo.js +53 -53
- package/build/model/workflow-generic-transition.bo.d.ts +22 -22
- package/build/model/workflow-generic-transition.bo.js +28 -28
- package/build/model/workflow-trigger.bo.d.ts +44 -44
- package/build/model/workflow-trigger.bo.js +52 -52
- package/build/model/workflow.bo.d.ts +36 -36
- package/build/model/workflow.bo.js +151 -151
- package/build/utils/css-utils.d.ts +18 -18
- package/build/utils/css-utils.js +148 -148
- package/build/utils/file-utils.d.ts +34 -34
- package/build/utils/file-utils.js +397 -397
- package/build/utils/time-utils.d.ts +6 -6
- package/build/utils/time-utils.js +44 -44
- package/package.json +3 -3
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const main_api_1 = require("./main-api");
|
|
13
|
-
const sequence_name_enum_1 = require("./enum/sequence-name.enum");
|
|
14
|
-
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
15
|
-
const preset_bo_1 = require("./model/preset.bo");
|
|
16
|
-
const report_type_enum_1 = require("./enum/report-type.enum");
|
|
17
|
-
const options = {
|
|
18
|
-
url: 'http'
|
|
19
|
-
};
|
|
20
|
-
const localOptions = {
|
|
21
|
-
url: "http://localhost:8080/ione",
|
|
22
|
-
schema: "815",
|
|
23
|
-
version: "253",
|
|
24
|
-
useLoginEncryption: true,
|
|
25
|
-
username: "patrick",
|
|
26
|
-
password: "vankeulen1234567890!"
|
|
27
|
-
};
|
|
28
|
-
const remoteOptions = {
|
|
29
|
-
url: "http://130.62.7.55:8888/ione",
|
|
30
|
-
schema: "815",
|
|
31
|
-
version: "252",
|
|
32
|
-
useLoginEncryption: true,
|
|
33
|
-
username: "patrick",
|
|
34
|
-
password: "patrick"
|
|
35
|
-
};
|
|
36
|
-
describe("Connector", () => {
|
|
37
|
-
let connector;
|
|
38
|
-
beforeEach(() => {
|
|
39
|
-
connector = new main_api_1.MainApi(localOptions);
|
|
40
|
-
jest.setTimeout(1300000);
|
|
41
|
-
});
|
|
42
|
-
it('getSequenceValue', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
|
-
const result = yield connector.getSequenceValue(sequence_name_enum_1.SequenceName.RelationId);
|
|
44
|
-
expect(result).toBeDefined();
|
|
45
|
-
}));
|
|
46
|
-
it('listAllPrinters', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
|
-
const result = yield connector.listAllPrinters();
|
|
48
|
-
expect(result).toBeDefined();
|
|
49
|
-
}));
|
|
50
|
-
it('getSendMethods', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
-
const result = yield connector.getSendMethods();
|
|
52
|
-
expect(result).toBeDefined();
|
|
53
|
-
}));
|
|
54
|
-
it('getJoinedTags', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
-
const table = 'TRANSACTIES';
|
|
56
|
-
const key = '76996';
|
|
57
|
-
const result = yield connector.getJoinedTags(table, key);
|
|
58
|
-
expect(result).toBeDefined();
|
|
59
|
-
}));
|
|
60
|
-
it('getCurrencies', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
-
const result = yield connector.getCurrencies(false);
|
|
62
|
-
expect(result).toBeDefined();
|
|
63
|
-
}));
|
|
64
|
-
it('getAllPaymentConditions', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
-
const result = yield connector.getPaymentConditions();
|
|
66
|
-
expect(result).toBeDefined();
|
|
67
|
-
}));
|
|
68
|
-
it('get0000PaymentConditions', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
-
const name = '0000';
|
|
70
|
-
const result = yield connector.getPaymentConditions(name);
|
|
71
|
-
expect(result.resultObjects).toHaveLength(1);
|
|
72
|
-
}));
|
|
73
|
-
it('getPackageStickerPrintLayouts', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
-
const result = yield connector.getPackageStickerPrintLayouts();
|
|
75
|
-
expect(result).toBeDefined();
|
|
76
|
-
}));
|
|
77
|
-
it('getStoreGroups', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
-
const result = yield connector.getStoreGroups();
|
|
79
|
-
expect(result).toBeDefined();
|
|
80
|
-
}));
|
|
81
|
-
it('getInOutCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
82
|
-
const result = yield connector.getInOutCollection("NL");
|
|
83
|
-
expect(result).toBeDefined();
|
|
84
|
-
}));
|
|
85
|
-
it('getDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
-
const result = yield connector.getDomainCollection("NL", domain_name_enum_1.DomainName.ArticleType);
|
|
87
|
-
expect(result).toBeDefined();
|
|
88
|
-
}));
|
|
89
|
-
it('getRVDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
90
|
-
const result = yield connector.getRVDomainCollection("NL", domain_name_enum_1.DomainName.ArtPublication);
|
|
91
|
-
expect(result).toBeDefined();
|
|
92
|
-
}));
|
|
93
|
-
it('getCategories', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
|
-
const result = yield connector.getCategories();
|
|
95
|
-
expect(result).toBeDefined();
|
|
96
|
-
}));
|
|
97
|
-
it('getPublicParams', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
98
|
-
const result = yield connector.getPublicParams(815);
|
|
99
|
-
expect(result).toBeDefined();
|
|
100
|
-
}));
|
|
101
|
-
it('savePreset', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
102
|
-
let testPreset = new preset_bo_1.Preset();
|
|
103
|
-
testPreset.id = 1;
|
|
104
|
-
testPreset.name = "TestPreset";
|
|
105
|
-
testPreset.content = "testfilter?=testwaarde";
|
|
106
|
-
testPreset.module = "Articles";
|
|
107
|
-
testPreset.element = "Categories";
|
|
108
|
-
testPreset.userGroupIds = [201, 7, 8];
|
|
109
|
-
const result = yield connector.savePreset(testPreset);
|
|
110
|
-
expect(result).toBeDefined();
|
|
111
|
-
}));
|
|
112
|
-
it('listPrinters', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
|
-
const showAll = false;
|
|
114
|
-
yield connector.connect();
|
|
115
|
-
const result = yield connector.listPrinters(showAll);
|
|
116
|
-
expect(result).toBeDefined();
|
|
117
|
-
}));
|
|
118
|
-
it('getTemplates', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
119
|
-
yield connector.connect();
|
|
120
|
-
const result = yield connector.getDefaultTemplate(report_type_enum_1.ReportType.NewUserAccountMessage);
|
|
121
|
-
expect(result).toBeDefined();
|
|
122
|
-
}));
|
|
123
|
-
it('getPostalCode', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
-
yield connector.connect();
|
|
125
|
-
const result = yield connector.getPostalCodeRetrieval('4462gp', '6');
|
|
126
|
-
expect(result).toBeDefined();
|
|
127
|
-
}));
|
|
128
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const main_api_1 = require("./main-api");
|
|
13
|
+
const sequence_name_enum_1 = require("./enum/sequence-name.enum");
|
|
14
|
+
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
15
|
+
const preset_bo_1 = require("./model/preset.bo");
|
|
16
|
+
const report_type_enum_1 = require("./enum/report-type.enum");
|
|
17
|
+
const options = {
|
|
18
|
+
url: 'http'
|
|
19
|
+
};
|
|
20
|
+
const localOptions = {
|
|
21
|
+
url: "http://localhost:8080/ione",
|
|
22
|
+
schema: "815",
|
|
23
|
+
version: "253",
|
|
24
|
+
useLoginEncryption: true,
|
|
25
|
+
username: "patrick",
|
|
26
|
+
password: "vankeulen1234567890!"
|
|
27
|
+
};
|
|
28
|
+
const remoteOptions = {
|
|
29
|
+
url: "http://130.62.7.55:8888/ione",
|
|
30
|
+
schema: "815",
|
|
31
|
+
version: "252",
|
|
32
|
+
useLoginEncryption: true,
|
|
33
|
+
username: "patrick",
|
|
34
|
+
password: "patrick"
|
|
35
|
+
};
|
|
36
|
+
describe("Connector", () => {
|
|
37
|
+
let connector;
|
|
38
|
+
beforeEach(() => {
|
|
39
|
+
connector = new main_api_1.MainApi(localOptions);
|
|
40
|
+
jest.setTimeout(1300000);
|
|
41
|
+
});
|
|
42
|
+
it('getSequenceValue', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
|
+
const result = yield connector.getSequenceValue(sequence_name_enum_1.SequenceName.RelationId);
|
|
44
|
+
expect(result).toBeDefined();
|
|
45
|
+
}));
|
|
46
|
+
it('listAllPrinters', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
|
+
const result = yield connector.listAllPrinters();
|
|
48
|
+
expect(result).toBeDefined();
|
|
49
|
+
}));
|
|
50
|
+
it('getSendMethods', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
const result = yield connector.getSendMethods();
|
|
52
|
+
expect(result).toBeDefined();
|
|
53
|
+
}));
|
|
54
|
+
it('getJoinedTags', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
+
const table = 'TRANSACTIES';
|
|
56
|
+
const key = '76996';
|
|
57
|
+
const result = yield connector.getJoinedTags(table, key);
|
|
58
|
+
expect(result).toBeDefined();
|
|
59
|
+
}));
|
|
60
|
+
it('getCurrencies', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
const result = yield connector.getCurrencies(false);
|
|
62
|
+
expect(result).toBeDefined();
|
|
63
|
+
}));
|
|
64
|
+
it('getAllPaymentConditions', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
|
+
const result = yield connector.getPaymentConditions();
|
|
66
|
+
expect(result).toBeDefined();
|
|
67
|
+
}));
|
|
68
|
+
it('get0000PaymentConditions', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
+
const name = '0000';
|
|
70
|
+
const result = yield connector.getPaymentConditions(name);
|
|
71
|
+
expect(result.resultObjects).toHaveLength(1);
|
|
72
|
+
}));
|
|
73
|
+
it('getPackageStickerPrintLayouts', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
74
|
+
const result = yield connector.getPackageStickerPrintLayouts();
|
|
75
|
+
expect(result).toBeDefined();
|
|
76
|
+
}));
|
|
77
|
+
it('getStoreGroups', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
const result = yield connector.getStoreGroups();
|
|
79
|
+
expect(result).toBeDefined();
|
|
80
|
+
}));
|
|
81
|
+
it('getInOutCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
82
|
+
const result = yield connector.getInOutCollection("NL");
|
|
83
|
+
expect(result).toBeDefined();
|
|
84
|
+
}));
|
|
85
|
+
it('getDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
const result = yield connector.getDomainCollection("NL", domain_name_enum_1.DomainName.ArticleType);
|
|
87
|
+
expect(result).toBeDefined();
|
|
88
|
+
}));
|
|
89
|
+
it('getRVDomainCollection', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
90
|
+
const result = yield connector.getRVDomainCollection("NL", domain_name_enum_1.DomainName.ArtPublication);
|
|
91
|
+
expect(result).toBeDefined();
|
|
92
|
+
}));
|
|
93
|
+
it('getCategories', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
94
|
+
const result = yield connector.getCategories();
|
|
95
|
+
expect(result).toBeDefined();
|
|
96
|
+
}));
|
|
97
|
+
it('getPublicParams', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
98
|
+
const result = yield connector.getPublicParams(815);
|
|
99
|
+
expect(result).toBeDefined();
|
|
100
|
+
}));
|
|
101
|
+
it('savePreset', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
102
|
+
let testPreset = new preset_bo_1.Preset();
|
|
103
|
+
testPreset.id = 1;
|
|
104
|
+
testPreset.name = "TestPreset";
|
|
105
|
+
testPreset.content = "testfilter?=testwaarde";
|
|
106
|
+
testPreset.module = "Articles";
|
|
107
|
+
testPreset.element = "Categories";
|
|
108
|
+
testPreset.userGroupIds = [201, 7, 8];
|
|
109
|
+
const result = yield connector.savePreset(testPreset);
|
|
110
|
+
expect(result).toBeDefined();
|
|
111
|
+
}));
|
|
112
|
+
it('listPrinters', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
|
+
const showAll = false;
|
|
114
|
+
yield connector.connect();
|
|
115
|
+
const result = yield connector.listPrinters(showAll);
|
|
116
|
+
expect(result).toBeDefined();
|
|
117
|
+
}));
|
|
118
|
+
it('getTemplates', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
119
|
+
yield connector.connect();
|
|
120
|
+
const result = yield connector.getDefaultTemplate(report_type_enum_1.ReportType.NewUserAccountMessage);
|
|
121
|
+
expect(result).toBeDefined();
|
|
122
|
+
}));
|
|
123
|
+
it('getPostalCode', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
+
yield connector.connect();
|
|
125
|
+
const result = yield connector.getPostalCodeRetrieval('4462gp', '6');
|
|
126
|
+
expect(result).toBeDefined();
|
|
127
|
+
}));
|
|
128
|
+
});
|
package/build/main-auth.d.ts
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { MainApiConnection } from './main-api-connection';
|
|
2
|
-
import { SequenceName } from './enum/sequence-name.enum';
|
|
3
|
-
import { ModuleName } from './enum/module-name.enum';
|
|
4
|
-
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
5
|
-
import { InternalParam } from './enum/internal-param.enum';
|
|
6
|
-
import { DomainName } from './enum/domain-name.enum';
|
|
7
|
-
import { Preset } from './model/preset.bo';
|
|
8
|
-
import { TagCategory } from './enum/tab-category.enum';
|
|
9
|
-
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
10
|
-
import { ReportType } from './enum/report-type.enum';
|
|
11
|
-
import { TableName } from "./enum/table-name.enum";
|
|
12
|
-
import { CoDocument } from "./model/co-document";
|
|
13
|
-
import { Activity } from "./model/activity.bo";
|
|
14
|
-
export declare class MainAuth extends MainApiConnection {
|
|
15
|
-
private _boSerializer;
|
|
16
|
-
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
17
|
-
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
18
|
-
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
19
|
-
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
20
|
-
getSendMethods(): Promise<DataServiceResponseData>;
|
|
21
|
-
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
22
|
-
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
23
|
-
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
24
|
-
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
25
|
-
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
26
|
-
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
27
|
-
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
28
|
-
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
29
|
-
mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
30
|
-
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
31
|
-
getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
32
|
-
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
33
|
-
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
34
|
-
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
35
|
-
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
36
|
-
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
37
|
-
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
38
|
-
getCategories(): Promise<DataServiceResponseData>;
|
|
39
|
-
getColors(): Promise<DataServiceResponseData>;
|
|
40
|
-
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
41
|
-
getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
42
|
-
getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
43
|
-
getUserGroups(): Promise<DataServiceResponseData>;
|
|
44
|
-
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
45
|
-
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
46
|
-
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
47
|
-
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
48
|
-
getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
49
|
-
getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
50
|
-
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
51
|
-
getActiveProcessesByTableAndKey(table: string, key: string): Promise<DataServiceResponseData>;
|
|
52
|
-
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
53
|
-
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
54
|
-
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
55
|
-
upsertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
56
|
-
lockTask(id: number): Promise<DataServiceResponseData>;
|
|
57
|
-
fireTrigger(workFlowProcessId: number, sequence: number, triggerId: number): Promise<DataServiceResponseData>;
|
|
58
|
-
fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
|
59
|
-
getTaskCategories(): Promise<DataServiceResponseData>;
|
|
60
|
-
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
61
|
-
private _call;
|
|
62
|
-
}
|
|
1
|
+
import { MainApiConnection } from './main-api-connection';
|
|
2
|
+
import { SequenceName } from './enum/sequence-name.enum';
|
|
3
|
+
import { ModuleName } from './enum/module-name.enum';
|
|
4
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
5
|
+
import { InternalParam } from './enum/internal-param.enum';
|
|
6
|
+
import { DomainName } from './enum/domain-name.enum';
|
|
7
|
+
import { Preset } from './model/preset.bo';
|
|
8
|
+
import { TagCategory } from './enum/tab-category.enum';
|
|
9
|
+
import { TagTreeItem } from './model/tag-tree-item.bo';
|
|
10
|
+
import { ReportType } from './enum/report-type.enum';
|
|
11
|
+
import { TableName } from "./enum/table-name.enum";
|
|
12
|
+
import { CoDocument } from "./model/co-document";
|
|
13
|
+
import { Activity } from "./model/activity.bo";
|
|
14
|
+
export declare class MainAuth extends MainApiConnection {
|
|
15
|
+
private _boSerializer;
|
|
16
|
+
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
17
|
+
getTemplates(documentCode: ReportType, defaultTemplate: boolean): Promise<DataServiceResponseData>;
|
|
18
|
+
listAllPrinters(): Promise<DataServiceResponseData>;
|
|
19
|
+
listPrinters(showAll?: boolean): Promise<DataServiceResponseData>;
|
|
20
|
+
getSendMethods(): Promise<DataServiceResponseData>;
|
|
21
|
+
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
22
|
+
loadDocuments(key: string, table: TableName): Promise<DataServiceResponseData>;
|
|
23
|
+
loadDocumentContent(docId: number): Promise<DataServiceResponseData>;
|
|
24
|
+
upsertDocument(key: string, table: TableName, document: CoDocument): Promise<DataServiceResponseData>;
|
|
25
|
+
deleteDocument(documentId: number): Promise<DataServiceResponseData>;
|
|
26
|
+
getCurrencies(active?: boolean): Promise<DataServiceResponseData>;
|
|
27
|
+
getPaymentConditions(name?: string): Promise<DataServiceResponseData>;
|
|
28
|
+
getJoinedTags(table: string, key: string): Promise<DataServiceResponseData>;
|
|
29
|
+
mergeJoinedTags(table: string, key: string, tags: TagTreeItem[]): Promise<DataServiceResponseData>;
|
|
30
|
+
getTagsFullTree(category: TagCategory, includeTags: boolean): Promise<DataServiceResponseData>;
|
|
31
|
+
getPublicParams(upId: number): Promise<DataServiceResponseData>;
|
|
32
|
+
getInternalParameterValue(param: InternalParam): Promise<DataServiceResponseData>;
|
|
33
|
+
getPackageStickerPrintLayouts(): Promise<DataServiceResponseData>;
|
|
34
|
+
getObjectConfigurations(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<DataServiceResponseData>;
|
|
35
|
+
getStoreGroups(): Promise<DataServiceResponseData>;
|
|
36
|
+
getDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
37
|
+
getRVDomainCollection(languageCode: string, domainName: DomainName): Promise<DataServiceResponseData>;
|
|
38
|
+
getCategories(): Promise<DataServiceResponseData>;
|
|
39
|
+
getColors(): Promise<DataServiceResponseData>;
|
|
40
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
41
|
+
getPresets(module?: string, user?: string): Promise<DataServiceResponseData>;
|
|
42
|
+
getPreset(presetId: string): Promise<DataServiceResponseData>;
|
|
43
|
+
getUserGroups(): Promise<DataServiceResponseData>;
|
|
44
|
+
savePreset(preset: Preset): Promise<DataServiceResponseData>;
|
|
45
|
+
updatePreset(presetName: string): Promise<DataServiceResponseData>;
|
|
46
|
+
getOrderLineSetCategories(): Promise<DataServiceResponseData>;
|
|
47
|
+
getPostalCodeRetrieval(postalCode: string, houseNumber: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
48
|
+
getHistoricActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
49
|
+
getComponentActivities(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
50
|
+
getComponentActivitiesWithoutRelationFiltering(table: TableName, key: string): Promise<DataServiceResponseData>;
|
|
51
|
+
getActiveProcessesByTableAndKey(table: string, key: string): Promise<DataServiceResponseData>;
|
|
52
|
+
insertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
53
|
+
updateActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
54
|
+
deleteActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
55
|
+
upsertActivity(activity: Activity): Promise<DataServiceResponseData>;
|
|
56
|
+
lockTask(id: number): Promise<DataServiceResponseData>;
|
|
57
|
+
fireTrigger(workFlowProcessId: number, sequence: number, triggerId: number): Promise<DataServiceResponseData>;
|
|
58
|
+
fireGenericTrigger(workFlowProcessId: number, genericTransitionId: number, relationId: number): Promise<DataServiceResponseData>;
|
|
59
|
+
getTaskCategories(): Promise<DataServiceResponseData>;
|
|
60
|
+
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
61
|
+
private _call;
|
|
62
|
+
}
|