@colijnit/mainapi 261.1.1 → 261.1.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/build/enum/internal-param.enum.d.ts +1 -1
- package/build/enum/internal-param.enum.js +1 -1
- package/build/main-api-connection.d.ts +1 -0
- package/build/main-api.d.ts +1 -0
- package/build/main-api.js +5 -0
- package/build/main-api.unit.test.js +7 -2
- package/build/main-auth.d.ts +1 -0
- package/build/main-auth.js +11 -0
- package/build/main-public.d.ts +1 -0
- package/build/main-public.js +6 -0
- package/build/model/container-article-info.d.ts +8 -0
- package/build/model/container-article-info.js +10 -0
- package/build/model/container-info.bo.d.ts +2 -0
- package/build/model/container-info.bo.js +1 -0
- package/package.json +1 -1
|
@@ -25,5 +25,5 @@ export declare enum InternalParam {
|
|
|
25
25
|
CustomerCanCreateAccount = "CUST_CAN_CREATE_ACCOUNT",
|
|
26
26
|
JsInterBranch = "JS_INTER_FILIAAL",
|
|
27
27
|
SellDirectlyFromSupplier = "SELL_DIRECTLY_FROM_SUPPL",
|
|
28
|
-
|
|
28
|
+
ThresholdCashPaymentMessage = "THRESHOLD_CASH_PAY_MSG"
|
|
29
29
|
}
|
|
@@ -29,5 +29,5 @@ var InternalParam;
|
|
|
29
29
|
InternalParam["CustomerCanCreateAccount"] = "CUST_CAN_CREATE_ACCOUNT";
|
|
30
30
|
InternalParam["JsInterBranch"] = "JS_INTER_FILIAAL";
|
|
31
31
|
InternalParam["SellDirectlyFromSupplier"] = "SELL_DIRECTLY_FROM_SUPPL";
|
|
32
|
-
InternalParam["
|
|
32
|
+
InternalParam["ThresholdCashPaymentMessage"] = "THRESHOLD_CASH_PAY_MSG";
|
|
33
33
|
})(InternalParam = exports.InternalParam || (exports.InternalParam = {}));
|
|
@@ -97,6 +97,7 @@ export declare abstract class MainApiConnection {
|
|
|
97
97
|
abstract isGoogleTranslateEnabled(): Promise<DataServiceResponseData>;
|
|
98
98
|
abstract upsertTransactionLineFormResponse(transUUID: string, transactionLineUUID: string, formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
99
99
|
abstract getContainers(): Promise<DataServiceResponseData>;
|
|
100
|
+
abstract getContainer(containerId: number): Promise<DataServiceResponseData>;
|
|
100
101
|
abstract getContainerInfo(containerId: number): Promise<DataServiceResponseData>;
|
|
101
102
|
abstract getContainerTypes(): Promise<DataServiceResponseData>;
|
|
102
103
|
abstract createContainer(container: Container): Promise<DataServiceResponseData>;
|
package/build/main-api.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export declare class MainApi {
|
|
|
111
111
|
isGoogleTranslateEnabled(): Promise<DataServiceResponseData>;
|
|
112
112
|
upsertTransactionLineFormResponse(transUUID: string, transactionLineUUID: string, formResponse: FormResponse): Promise<DataServiceResponseData>;
|
|
113
113
|
getContainers(): Promise<DataServiceResponseData>;
|
|
114
|
+
getContainer(containerId: number): Promise<DataServiceResponseData>;
|
|
114
115
|
getContainerInfo(containerId: number): Promise<DataServiceResponseData>;
|
|
115
116
|
getContainerTypes(): Promise<DataServiceResponseData>;
|
|
116
117
|
createContainer(container: Container): Promise<DataServiceResponseData>;
|
package/build/main-api.js
CHANGED
|
@@ -301,6 +301,11 @@ class MainApi {
|
|
|
301
301
|
return this.mainApi.getContainers();
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
+
getContainer(containerId) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
return this.mainApi.getContainer(containerId);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
304
309
|
getContainerInfo(containerId) {
|
|
305
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
306
311
|
return this.mainApi.getContainerInfo(containerId);
|
|
@@ -23,7 +23,7 @@ const options = {
|
|
|
23
23
|
const localOptions = {
|
|
24
24
|
url: 'http://localhost:8080/ione',
|
|
25
25
|
schema: "815",
|
|
26
|
-
version: "
|
|
26
|
+
version: "261",
|
|
27
27
|
useLoginEncryption: true,
|
|
28
28
|
username: "patrick",
|
|
29
29
|
password: "vankeulen1234567890!",
|
|
@@ -31,7 +31,7 @@ const localOptions = {
|
|
|
31
31
|
const remoteOptions = {
|
|
32
32
|
url: "https://develop.colijn-it.nl/",
|
|
33
33
|
schema: "815",
|
|
34
|
-
version: "
|
|
34
|
+
version: "261",
|
|
35
35
|
useLoginEncryption: true,
|
|
36
36
|
username: "patrick",
|
|
37
37
|
password: "vankeulen1234567890!"
|
|
@@ -190,6 +190,11 @@ describe("Connector", () => {
|
|
|
190
190
|
const result = yield connector.getContainers();
|
|
191
191
|
expect(result).toBeDefined();
|
|
192
192
|
}));
|
|
193
|
+
it('getContainer', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
194
|
+
yield connector.connect();
|
|
195
|
+
const result = yield connector.getContainer(480);
|
|
196
|
+
expect(result).toBeDefined();
|
|
197
|
+
}));
|
|
193
198
|
it('getContainerInfo', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
194
199
|
yield connector.connect();
|
|
195
200
|
const result = yield connector.getContainerInfo(450);
|
package/build/main-auth.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
91
91
|
getGoogleTranslation(sourceLanguageCode: string, targetLanguageCode: string, toTranslateList: string[]): Promise<DataServiceResponseData>;
|
|
92
92
|
isGoogleTranslateEnabled(): Promise<DataServiceResponseData>;
|
|
93
93
|
getContainers(): Promise<DataServiceResponseData>;
|
|
94
|
+
getContainer(containerId: number): Promise<DataServiceResponseData>;
|
|
94
95
|
getContainerInfo(containerId: number): Promise<DataServiceResponseData>;
|
|
95
96
|
getContainerTypes(): Promise<DataServiceResponseData>;
|
|
96
97
|
createContainer(container: Container): Promise<DataServiceResponseData>;
|
package/build/main-auth.js
CHANGED
|
@@ -859,6 +859,17 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
859
859
|
return this.selectMultiple(module_name_enum_1.ModuleName.SimpleBaseData, master_data_object_name_enum_1.MasterDataObjectName.Container, undefined, null);
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
|
+
getContainer(containerId) {
|
|
863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
864
|
+
const data = {
|
|
865
|
+
moduleName: module_name_enum_1.ModuleName.SimpleBaseData,
|
|
866
|
+
objectName: master_data_object_name_enum_1.MasterDataObjectName.Container,
|
|
867
|
+
refCursorAsArray: true,
|
|
868
|
+
objectId: containerId
|
|
869
|
+
};
|
|
870
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.SelectSingleObject, data);
|
|
871
|
+
});
|
|
872
|
+
}
|
|
862
873
|
getContainerInfo(containerId) {
|
|
863
874
|
return __awaiter(this, void 0, void 0, function* () {
|
|
864
875
|
const data = {
|
package/build/main-public.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
91
91
|
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
92
92
|
getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
93
93
|
getContainers(): Promise<DataServiceResponseData>;
|
|
94
|
+
getContainer(containerId: number): Promise<DataServiceResponseData>;
|
|
94
95
|
getContainerInfo(containerId: number): Promise<DataServiceResponseData>;
|
|
95
96
|
getContainerTypes(): Promise<DataServiceResponseData>;
|
|
96
97
|
createContainer(container: Container): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -400,6 +400,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
400
400
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
+
getContainer(containerId) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
+
console.warn('getContainer not implemented');
|
|
406
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
407
|
+
});
|
|
408
|
+
}
|
|
403
409
|
getContainerInfo(containerId) {
|
|
404
410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
411
|
console.warn('getContainerInfo not implemented');
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerArticleLineInfo = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class ContainerArticleLineInfo extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ContainerArticleLineInfo = ContainerArticleLineInfo;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
|
|
2
|
+
import { ContainerArticleLineInfo } from "./container-article-info";
|
|
2
3
|
export declare class ContainerInfo extends BusinessObject {
|
|
3
4
|
containerId: number;
|
|
4
5
|
containerNr: string;
|
|
@@ -7,6 +8,7 @@ export declare class ContainerInfo extends BusinessObject {
|
|
|
7
8
|
typeVolume: number;
|
|
8
9
|
typeDescription: string;
|
|
9
10
|
articleCount: number;
|
|
11
|
+
articleLineInfos: ContainerArticleLineInfo[];
|
|
10
12
|
constructor();
|
|
11
13
|
getId(): any;
|
|
12
14
|
}
|