@colijnit/mainapi 1.0.38 → 1.0.40
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/event-notification-operation-name.enum.d.ts +3 -0
- package/build/enum/event-notification-operation-name.enum.js +7 -0
- 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 -10
- package/build/enum/internal-param.enum.js +14 -14
- 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 +15 -14
- package/build/enum/module-name.enum.js +19 -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 +68 -66
- package/build/main-api-connection.js +14 -14
- package/build/main-api.d.ts +83 -81
- package/build/main-api.js +227 -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 +63 -62
- package/build/main-auth.js +589 -556
- package/build/main-public.d.ts +64 -62
- package/build/main-public.js +258 -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-workflow.d.ts +24 -0
- package/build/model/activity-workflow.js +66 -0
- 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/role-email-address.d.ts +10 -0
- package/build/model/role-email-address.js +28 -0
- package/build/model/role-emailaddress.bo.d.ts +10 -0
- package/build/model/role-emailaddress.bo.js +28 -0
- 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-process.d.ts +13 -0
- package/build/model/workflow-process.js +7 -0
- 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 +1 -1
package/build/main-api.js
CHANGED
|
@@ -1,219 +1,227 @@
|
|
|
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
|
-
exports.MainApi = void 0;
|
|
13
|
-
const rxjs_1 = require("rxjs");
|
|
14
|
-
const ioneconnector_1 = require("@colijnit/ioneconnector");
|
|
15
|
-
const main_auth_1 = require("./main-auth");
|
|
16
|
-
const main_public_1 = require("./main-public");
|
|
17
|
-
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
18
|
-
class MainApi {
|
|
19
|
-
constructor(options) {
|
|
20
|
-
this.showLoader = new rxjs_1.Subject();
|
|
21
|
-
this.connectionAborted = new rxjs_1.Subject();
|
|
22
|
-
this.connectionResetInactivity = new rxjs_1.Subject();
|
|
23
|
-
this.useLoginEncryption = false;
|
|
24
|
-
this._subs = [];
|
|
25
|
-
if (options) {
|
|
26
|
-
this.url = options.url ? options.url : "";
|
|
27
|
-
this.version = options.version ? options.version : "";
|
|
28
|
-
this.schema = options.schema ? options.schema : "";
|
|
29
|
-
this.branch = options.branch ? options.branch : "";
|
|
30
|
-
this.languageCode = options.languageCode;
|
|
31
|
-
this.currencyId = options.hasOwnProperty("currencyId") ? options.currencyId : undefined;
|
|
32
|
-
this.useLoginEncryption = options.hasOwnProperty("useLoginEncryption") ? options.useLoginEncryption === true : false;
|
|
33
|
-
}
|
|
34
|
-
this._connector = new ioneconnector_1.Connector(options);
|
|
35
|
-
this.mainApi = MainApi.createConnector(this._connector.isPublicSession(), this._connector.hasSession());
|
|
36
|
-
this.mainApi.connector = this._connector;
|
|
37
|
-
this.mainApi.languageCode = this.languageCode;
|
|
38
|
-
this.mainApi.branchNr = this.branch;
|
|
39
|
-
this._subs.push(this._connector.showLoader.subscribe(value => this.showLoader.next(value)), this._connector.connectionAborted.subscribe(() => this.connectionAborted.next()), this._connector.connectionResetInactivity.subscribe(() => this._handleConnectionReset()));
|
|
40
|
-
}
|
|
41
|
-
connect() {
|
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return this._connector.connect();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
logOut() {
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
return this._connector.logOut();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
selectMultiple(module, objectClass, operation, params, showLoader) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return this.mainApi.selectMultiple(module, objectClass, operation, params, showLoader);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
getSequenceValue(sequenceName, noSequence = false) {
|
|
57
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
return this.mainApi.getSequenceValue(sequenceName, noSequence);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
getDefaultTemplate(documentCode) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
return this.mainApi.getTemplates(documentCode, true);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
listAllPrinters() {
|
|
67
|
-
return this.mainApi.listAllPrinters();
|
|
68
|
-
}
|
|
69
|
-
listPrinters(showAll = false) {
|
|
70
|
-
return this.mainApi.listPrinters(showAll);
|
|
71
|
-
}
|
|
72
|
-
getSendMethods() {
|
|
73
|
-
return this.mainApi.getSendMethods();
|
|
74
|
-
}
|
|
75
|
-
getDocumentContent(id, thumbnail = true) {
|
|
76
|
-
return this.mainApi.getDocumentContent(id, thumbnail);
|
|
77
|
-
}
|
|
78
|
-
loadDocuments(key, table) {
|
|
79
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
return this.mainApi.loadDocuments(key, table);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
loadDocumentContent(docId) {
|
|
84
|
-
return this.mainApi.loadDocumentContent(docId);
|
|
85
|
-
}
|
|
86
|
-
deleteDocument(documentId) {
|
|
87
|
-
return this.mainApi.deleteDocument(documentId);
|
|
88
|
-
}
|
|
89
|
-
upsertDocument(key, table, document) {
|
|
90
|
-
return this.mainApi.upsertDocument(key, table, document);
|
|
91
|
-
}
|
|
92
|
-
getCurrencies(active = true) {
|
|
93
|
-
return this.mainApi.getCurrencies(active);
|
|
94
|
-
}
|
|
95
|
-
getPaymentConditions(name) {
|
|
96
|
-
return this.mainApi.getPaymentConditions(name);
|
|
97
|
-
}
|
|
98
|
-
getJoinedTags(table, key) {
|
|
99
|
-
return this.mainApi.getJoinedTags(table, key);
|
|
100
|
-
}
|
|
101
|
-
mergeJoinedTags(table, key, tags) {
|
|
102
|
-
return this.mainApi.mergeJoinedTags(table, key, tags);
|
|
103
|
-
}
|
|
104
|
-
getTagsFullTree(category, includeTags) {
|
|
105
|
-
return this.mainApi.getTagsFullTree(category, includeTags);
|
|
106
|
-
}
|
|
107
|
-
getPublicParams(upId) {
|
|
108
|
-
return this.mainApi.getPublicParams(upId);
|
|
109
|
-
}
|
|
110
|
-
getInternalParameterValue(param) {
|
|
111
|
-
return this.mainApi.getInternalParameterValue(param);
|
|
112
|
-
}
|
|
113
|
-
getPackageStickerPrintLayouts() {
|
|
114
|
-
return this.mainApi.getPackageStickerPrintLayouts();
|
|
115
|
-
}
|
|
116
|
-
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
117
|
-
return this.mainApi.getObjectConfigurations(screenCfgModule, params, insertMode);
|
|
118
|
-
}
|
|
119
|
-
getStoreGroups() {
|
|
120
|
-
return this.mainApi.getStoreGroups();
|
|
121
|
-
}
|
|
122
|
-
getInOutCollection(languageCode) {
|
|
123
|
-
return this.mainApi.getDomainCollection(languageCode, domain_name_enum_1.DomainName.InOutCollection);
|
|
124
|
-
}
|
|
125
|
-
getDomainCollection(languageCode, domainName) {
|
|
126
|
-
return this.mainApi.getDomainCollection(languageCode, domainName);
|
|
127
|
-
}
|
|
128
|
-
getRVDomainCollection(languageCode, domainName) {
|
|
129
|
-
return this.mainApi.getRVDomainCollection(languageCode, domainName);
|
|
130
|
-
}
|
|
131
|
-
getCategories() {
|
|
132
|
-
return this.mainApi.getCategories();
|
|
133
|
-
}
|
|
134
|
-
getColors() {
|
|
135
|
-
return this.mainApi.getColors();
|
|
136
|
-
}
|
|
137
|
-
getPriceLists(code) {
|
|
138
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
return this.mainApi.getPriceLists(code);
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
getUserGroups() {
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
return this.mainApi.getUserGroups();
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
getPresets(module, user) {
|
|
148
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
-
return this.mainApi.getPresets(module, user);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
getPreset(presetId) {
|
|
153
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
return this.mainApi.getPreset(presetId);
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
savePreset(preset) {
|
|
158
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
-
return this.mainApi.savePreset(preset);
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
updatePreset(presetName) {
|
|
163
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
return this.mainApi.updatePreset(presetName);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
getOrderLineSetCategories() {
|
|
168
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
return this.mainApi.getOrderLineSetCategories();
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
getPostalCodeRetrieval(postalCode, houseNumber, showLoader) {
|
|
173
|
-
return this.mainApi.getPostalCodeRetrieval(postalCode, houseNumber, showLoader);
|
|
174
|
-
}
|
|
175
|
-
getHistoricActivities(table, key) {
|
|
176
|
-
return this.mainApi.getHistoricActivities(table, key);
|
|
177
|
-
}
|
|
178
|
-
getComponentActivities(table, key) {
|
|
179
|
-
return this.mainApi.getComponentActivities(table, key);
|
|
180
|
-
}
|
|
181
|
-
getComponentActivitiesWithoutRelationFiltering(table, key) {
|
|
182
|
-
return this.mainApi.getComponentActivitiesWithoutRelationFiltering(table, key);
|
|
183
|
-
}
|
|
184
|
-
getActiveProcessesByTableAndKey(table, key) {
|
|
185
|
-
return this.mainApi.getActiveProcessesByTableAndKey(table, key);
|
|
186
|
-
}
|
|
187
|
-
insertActivity(activity) {
|
|
188
|
-
return this.mainApi.insertActivity(activity);
|
|
189
|
-
}
|
|
190
|
-
updateActivity(activity) {
|
|
191
|
-
return this.mainApi.updateActivity(activity);
|
|
192
|
-
}
|
|
193
|
-
deleteActivity(activity) {
|
|
194
|
-
return this.mainApi.deleteActivity(activity);
|
|
195
|
-
}
|
|
196
|
-
getTaskCategories() {
|
|
197
|
-
return this.mainApi.getTaskCategories();
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
return
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
+
exports.MainApi = void 0;
|
|
13
|
+
const rxjs_1 = require("rxjs");
|
|
14
|
+
const ioneconnector_1 = require("@colijnit/ioneconnector");
|
|
15
|
+
const main_auth_1 = require("./main-auth");
|
|
16
|
+
const main_public_1 = require("./main-public");
|
|
17
|
+
const domain_name_enum_1 = require("./enum/domain-name.enum");
|
|
18
|
+
class MainApi {
|
|
19
|
+
constructor(options) {
|
|
20
|
+
this.showLoader = new rxjs_1.Subject();
|
|
21
|
+
this.connectionAborted = new rxjs_1.Subject();
|
|
22
|
+
this.connectionResetInactivity = new rxjs_1.Subject();
|
|
23
|
+
this.useLoginEncryption = false;
|
|
24
|
+
this._subs = [];
|
|
25
|
+
if (options) {
|
|
26
|
+
this.url = options.url ? options.url : "";
|
|
27
|
+
this.version = options.version ? options.version : "";
|
|
28
|
+
this.schema = options.schema ? options.schema : "";
|
|
29
|
+
this.branch = options.branch ? options.branch : "";
|
|
30
|
+
this.languageCode = options.languageCode;
|
|
31
|
+
this.currencyId = options.hasOwnProperty("currencyId") ? options.currencyId : undefined;
|
|
32
|
+
this.useLoginEncryption = options.hasOwnProperty("useLoginEncryption") ? options.useLoginEncryption === true : false;
|
|
33
|
+
}
|
|
34
|
+
this._connector = new ioneconnector_1.Connector(options);
|
|
35
|
+
this.mainApi = MainApi.createConnector(this._connector.isPublicSession(), this._connector.hasSession());
|
|
36
|
+
this.mainApi.connector = this._connector;
|
|
37
|
+
this.mainApi.languageCode = this.languageCode;
|
|
38
|
+
this.mainApi.branchNr = this.branch;
|
|
39
|
+
this._subs.push(this._connector.showLoader.subscribe(value => this.showLoader.next(value)), this._connector.connectionAborted.subscribe(() => this.connectionAborted.next()), this._connector.connectionResetInactivity.subscribe(() => this._handleConnectionReset()));
|
|
40
|
+
}
|
|
41
|
+
connect() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return this._connector.connect();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
logOut() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return this._connector.logOut();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
selectMultiple(module, objectClass, operation, params, showLoader) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
return this.mainApi.selectMultiple(module, objectClass, operation, params, showLoader);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
getSequenceValue(sequenceName, noSequence = false) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return this.mainApi.getSequenceValue(sequenceName, noSequence);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
getDefaultTemplate(documentCode) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return this.mainApi.getTemplates(documentCode, true);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listAllPrinters() {
|
|
67
|
+
return this.mainApi.listAllPrinters();
|
|
68
|
+
}
|
|
69
|
+
listPrinters(showAll = false) {
|
|
70
|
+
return this.mainApi.listPrinters(showAll);
|
|
71
|
+
}
|
|
72
|
+
getSendMethods() {
|
|
73
|
+
return this.mainApi.getSendMethods();
|
|
74
|
+
}
|
|
75
|
+
getDocumentContent(id, thumbnail = true) {
|
|
76
|
+
return this.mainApi.getDocumentContent(id, thumbnail);
|
|
77
|
+
}
|
|
78
|
+
loadDocuments(key, table) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return this.mainApi.loadDocuments(key, table);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
loadDocumentContent(docId) {
|
|
84
|
+
return this.mainApi.loadDocumentContent(docId);
|
|
85
|
+
}
|
|
86
|
+
deleteDocument(documentId) {
|
|
87
|
+
return this.mainApi.deleteDocument(documentId);
|
|
88
|
+
}
|
|
89
|
+
upsertDocument(key, table, document) {
|
|
90
|
+
return this.mainApi.upsertDocument(key, table, document);
|
|
91
|
+
}
|
|
92
|
+
getCurrencies(active = true) {
|
|
93
|
+
return this.mainApi.getCurrencies(active);
|
|
94
|
+
}
|
|
95
|
+
getPaymentConditions(name) {
|
|
96
|
+
return this.mainApi.getPaymentConditions(name);
|
|
97
|
+
}
|
|
98
|
+
getJoinedTags(table, key) {
|
|
99
|
+
return this.mainApi.getJoinedTags(table, key);
|
|
100
|
+
}
|
|
101
|
+
mergeJoinedTags(table, key, tags) {
|
|
102
|
+
return this.mainApi.mergeJoinedTags(table, key, tags);
|
|
103
|
+
}
|
|
104
|
+
getTagsFullTree(category, includeTags) {
|
|
105
|
+
return this.mainApi.getTagsFullTree(category, includeTags);
|
|
106
|
+
}
|
|
107
|
+
getPublicParams(upId) {
|
|
108
|
+
return this.mainApi.getPublicParams(upId);
|
|
109
|
+
}
|
|
110
|
+
getInternalParameterValue(param) {
|
|
111
|
+
return this.mainApi.getInternalParameterValue(param);
|
|
112
|
+
}
|
|
113
|
+
getPackageStickerPrintLayouts() {
|
|
114
|
+
return this.mainApi.getPackageStickerPrintLayouts();
|
|
115
|
+
}
|
|
116
|
+
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
117
|
+
return this.mainApi.getObjectConfigurations(screenCfgModule, params, insertMode);
|
|
118
|
+
}
|
|
119
|
+
getStoreGroups() {
|
|
120
|
+
return this.mainApi.getStoreGroups();
|
|
121
|
+
}
|
|
122
|
+
getInOutCollection(languageCode) {
|
|
123
|
+
return this.mainApi.getDomainCollection(languageCode, domain_name_enum_1.DomainName.InOutCollection);
|
|
124
|
+
}
|
|
125
|
+
getDomainCollection(languageCode, domainName) {
|
|
126
|
+
return this.mainApi.getDomainCollection(languageCode, domainName);
|
|
127
|
+
}
|
|
128
|
+
getRVDomainCollection(languageCode, domainName) {
|
|
129
|
+
return this.mainApi.getRVDomainCollection(languageCode, domainName);
|
|
130
|
+
}
|
|
131
|
+
getCategories() {
|
|
132
|
+
return this.mainApi.getCategories();
|
|
133
|
+
}
|
|
134
|
+
getColors() {
|
|
135
|
+
return this.mainApi.getColors();
|
|
136
|
+
}
|
|
137
|
+
getPriceLists(code) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
return this.mainApi.getPriceLists(code);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
getUserGroups() {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return this.mainApi.getUserGroups();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
getPresets(module, user) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
return this.mainApi.getPresets(module, user);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
getPreset(presetId) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
return this.mainApi.getPreset(presetId);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
savePreset(preset) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
return this.mainApi.savePreset(preset);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
updatePreset(presetName) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
return this.mainApi.updatePreset(presetName);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
getOrderLineSetCategories() {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
return this.mainApi.getOrderLineSetCategories();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
getPostalCodeRetrieval(postalCode, houseNumber, showLoader) {
|
|
173
|
+
return this.mainApi.getPostalCodeRetrieval(postalCode, houseNumber, showLoader);
|
|
174
|
+
}
|
|
175
|
+
getHistoricActivities(table, key) {
|
|
176
|
+
return this.mainApi.getHistoricActivities(table, key);
|
|
177
|
+
}
|
|
178
|
+
getComponentActivities(table, key) {
|
|
179
|
+
return this.mainApi.getComponentActivities(table, key);
|
|
180
|
+
}
|
|
181
|
+
getComponentActivitiesWithoutRelationFiltering(table, key) {
|
|
182
|
+
return this.mainApi.getComponentActivitiesWithoutRelationFiltering(table, key);
|
|
183
|
+
}
|
|
184
|
+
getActiveProcessesByTableAndKey(table, key) {
|
|
185
|
+
return this.mainApi.getActiveProcessesByTableAndKey(table, key);
|
|
186
|
+
}
|
|
187
|
+
insertActivity(activity) {
|
|
188
|
+
return this.mainApi.insertActivity(activity);
|
|
189
|
+
}
|
|
190
|
+
updateActivity(activity) {
|
|
191
|
+
return this.mainApi.updateActivity(activity);
|
|
192
|
+
}
|
|
193
|
+
deleteActivity(activity) {
|
|
194
|
+
return this.mainApi.deleteActivity(activity);
|
|
195
|
+
}
|
|
196
|
+
getTaskCategories() {
|
|
197
|
+
return this.mainApi.getTaskCategories();
|
|
198
|
+
}
|
|
199
|
+
getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key) {
|
|
200
|
+
return this.mainApi.getRoleEmailAddressesByWorkflowCategoryAndKey(workflowCategory, key);
|
|
201
|
+
}
|
|
202
|
+
fireTrigger(workFlowProcessId, sequence, triggerId) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
return this.mainApi.fireTrigger(workFlowProcessId, sequence, triggerId);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
return this.mainApi.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
lockTask(id) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
return this.mainApi.lockTask(id);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
static createConnector(isPublicSession, sessionExists) {
|
|
218
|
+
if (!isPublicSession || sessionExists) {
|
|
219
|
+
return new main_auth_1.MainAuth();
|
|
220
|
+
}
|
|
221
|
+
return new main_public_1.MainPublic();
|
|
222
|
+
}
|
|
223
|
+
_handleConnectionReset() {
|
|
224
|
+
this.connectionResetInactivity.next();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.MainApi = MainApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|