@colijnit/mainapi 301.1.0 → 301.1.2
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.
|
@@ -20,5 +20,6 @@ var WorkflowCategoryType;
|
|
|
20
20
|
WorkflowCategoryType["Company"] = "COMPANY";
|
|
21
21
|
WorkflowCategoryType["Supplier"] = "SUPPLIER";
|
|
22
22
|
WorkflowCategoryType["OutstandingAmounts"] = "OUTSTANDING_AMOUNTS";
|
|
23
|
+
WorkflowCategoryType["SalesReturn"] = "SALES_RETURN";
|
|
23
24
|
WorkflowCategoryType["None"] = "NONE";
|
|
24
25
|
})(WorkflowCategoryType || (exports.WorkflowCategoryType = WorkflowCategoryType = {}));
|
|
@@ -39,13 +39,15 @@ const remoteOptions = {
|
|
|
39
39
|
const publicOptions = {
|
|
40
40
|
url: "https://develop.colijn-it.nl/",
|
|
41
41
|
schema: "815",
|
|
42
|
-
version: "
|
|
42
|
+
version: "301",
|
|
43
43
|
useLoginEncryption: false,
|
|
44
44
|
};
|
|
45
45
|
describe("Connector", () => {
|
|
46
46
|
let connector;
|
|
47
|
+
let publicConnector;
|
|
47
48
|
beforeEach(() => {
|
|
48
49
|
connector = new main_api_1.MainApi(localOptions);
|
|
50
|
+
publicConnector = new main_api_1.MainApi(publicOptions);
|
|
49
51
|
jest.setTimeout(1300000);
|
|
50
52
|
});
|
|
51
53
|
it('getSequenceValue', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -218,4 +220,9 @@ describe("Connector", () => {
|
|
|
218
220
|
const result = yield connector.createQRCode(width, height, value);
|
|
219
221
|
expect(result).toBeDefined();
|
|
220
222
|
}));
|
|
223
|
+
it('getPublicInternalParameterValue', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
224
|
+
yield publicConnector.connect();
|
|
225
|
+
const result = yield publicConnector.getInternalParameterValue(internal_param_enum_1.InternalParam.TransManualSave);
|
|
226
|
+
expect(result).toBeDefined();
|
|
227
|
+
}));
|
|
221
228
|
});
|
package/build/main-public.js
CHANGED
|
@@ -134,6 +134,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
134
134
|
return this._callAjaxService(public_service_method_1.PublicServiceMethod.GetPublicParams, data, backend_service_name_enum_1.BackendServiceName.PublicService, false, message);
|
|
135
135
|
}
|
|
136
136
|
getObjectConfigurations(screenCfgModule, params = ['ALL'], insertMode = false) {
|
|
137
|
+
if (!Array.isArray(params)) {
|
|
138
|
+
params = [params];
|
|
139
|
+
}
|
|
140
|
+
if (params && params.length === 1 && (params[0] === undefined || params[0] === null)) {
|
|
141
|
+
params[0] = 'ALL';
|
|
142
|
+
}
|
|
137
143
|
const paramValues = {
|
|
138
144
|
moduleId: screenCfgModule,
|
|
139
145
|
params: params,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/mainapi",
|
|
3
|
-
"version": "301.1.
|
|
3
|
+
"version": "301.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"unit": "jest unit",
|
|
14
14
|
"integration": "jest int"
|
|
15
15
|
},
|
|
16
|
-
"description": "public main api for ione backend specific for version 3.0.
|
|
16
|
+
"description": "public main api for ione backend specific for version 3.0.1.",
|
|
17
17
|
"repository": "npm/npm",
|
|
18
18
|
"author": "Colijn IT",
|
|
19
19
|
"license": "ISC",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"rxjs": "6.6.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@colijnit/ioneconnector": ">=301.1.0"
|
|
27
|
+
"@colijnit/ioneconnector": ">=301.1.0 < 302"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@colijnit/ioneconnector": "file:D:/develop/apis/ConnectorApi/colijnit-ioneconnector-301.1.1.tgz",
|
|
30
31
|
"@types/jest": "^24.0.13",
|
|
31
|
-
"@colijnit/ioneconnector": "301.1.0",
|
|
32
32
|
"grunt": "^1.0.3",
|
|
33
33
|
"grunt-clean": "^0.4.0",
|
|
34
34
|
"grunt-contrib-clean": "^1.1.0",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"grunt-contrib-uglify-es": "git+https://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
|
|
37
37
|
"gulp": "^3.9.1",
|
|
38
38
|
"jest": "^30.3.0",
|
|
39
|
+
"jest-environment-jsdom": "^30.5.2",
|
|
39
40
|
"request": "2.34.0",
|
|
40
41
|
"ts-jest": "^29.4.9",
|
|
41
42
|
"typescript": "5.8.3"
|
|
@@ -46,12 +47,20 @@
|
|
|
46
47
|
"main": "build/main-api.js",
|
|
47
48
|
"types": "build/main-api.d.ts",
|
|
48
49
|
"jest": {
|
|
50
|
+
"testEnvironment": "jsdom",
|
|
49
51
|
"verbose": true,
|
|
50
52
|
"roots": [
|
|
51
53
|
"<rootDir>/src"
|
|
52
54
|
],
|
|
53
55
|
"transform": {
|
|
54
|
-
"^.+\\.tsx?$":
|
|
56
|
+
"^.+\\.tsx?$": [
|
|
57
|
+
"ts-jest",
|
|
58
|
+
{
|
|
59
|
+
"tsconfig": {
|
|
60
|
+
"sourceMap": true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
55
64
|
}
|
|
56
65
|
}
|
|
57
66
|
}
|