@colijnit/mainapi 262.1.4 → 262.1.6
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/simple-base-data-operation-name.enum.d.ts +2 -1
- package/build/enum/simple-base-data-operation-name.enum.js +1 -0
- 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-auth.d.ts +1 -0
- package/build/main-auth.js +11 -1
- package/build/main-public.d.ts +1 -0
- package/build/main-public.js +7 -1
- package/build/model/warehouse-short.bo.d.ts +7 -0
- package/build/model/warehouse-short.bo.js +13 -0
- package/package.json +1 -1
|
@@ -6,4 +6,5 @@ var SimpleBaseDataOperationName;
|
|
|
6
6
|
SimpleBaseDataOperationName["Default"] = "default";
|
|
7
7
|
SimpleBaseDataOperationName["GetColors"] = "getColors";
|
|
8
8
|
SimpleBaseDataOperationName["getContainerInfo"] = "getContainerInfo";
|
|
9
|
+
SimpleBaseDataOperationName["GetWarehousesShort"] = "getWarehousesShort";
|
|
9
10
|
})(SimpleBaseDataOperationName || (exports.SimpleBaseDataOperationName = SimpleBaseDataOperationName = {}));
|
|
@@ -110,4 +110,5 @@ export declare abstract class MainApiConnection {
|
|
|
110
110
|
abstract createContainer(container: Container): Promise<DataServiceResponseData>;
|
|
111
111
|
abstract updateContainer(container: Container): Promise<DataServiceResponseData>;
|
|
112
112
|
abstract createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
113
|
+
abstract getWarehousesShort(): Promise<DataServiceResponseData>;
|
|
113
114
|
}
|
package/build/main-api.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export declare class MainApi {
|
|
|
126
126
|
initializeModelCreationRenderRequest(uploadType: string, caseName: string, quality: string, explanation: string, fileName: string, fileSize: number, fileHash: string): Promise<DataServiceResponseData>;
|
|
127
127
|
getModelCreationRenderStatus(uploadId?: string): Promise<DataServiceResponseData>;
|
|
128
128
|
createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
129
|
+
getWarehousesShort(): Promise<DataServiceResponseData>;
|
|
129
130
|
static createConnector(isPublicSession: boolean, sessionExists: boolean): MainApiConnection;
|
|
130
131
|
private _handleConnectionReset;
|
|
131
132
|
}
|
package/build/main-api.js
CHANGED
|
@@ -362,6 +362,11 @@ class MainApi {
|
|
|
362
362
|
return this.mainApi.createQRCode(width, height, value, showLoader);
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
+
getWarehousesShort() {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
return this.mainApi.getWarehousesShort();
|
|
368
|
+
});
|
|
369
|
+
}
|
|
365
370
|
static createConnector(isPublicSession, sessionExists) {
|
|
366
371
|
if (!isPublicSession || sessionExists) {
|
|
367
372
|
return new main_auth_1.MainAuth();
|
package/build/main-auth.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export declare class MainAuth extends MainApiConnection {
|
|
|
104
104
|
createContainer(container: Container): Promise<DataServiceResponseData>;
|
|
105
105
|
updateContainer(container: Container): Promise<DataServiceResponseData>;
|
|
106
106
|
createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
107
|
+
getWarehousesShort(): Promise<DataServiceResponseData>;
|
|
107
108
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
108
109
|
private _call;
|
|
109
110
|
private _callGetSingleImage;
|
package/build/main-auth.js
CHANGED
|
@@ -1030,6 +1030,16 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
1030
1030
|
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
+
getWarehousesShort() {
|
|
1034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1035
|
+
const data = {
|
|
1036
|
+
moduleName: module_name_enum_1.ModuleName.SimpleBaseData,
|
|
1037
|
+
methodName: simple_base_data_operation_name_enum_1.SimpleBaseDataOperationName.GetWarehousesShort,
|
|
1038
|
+
refCursorAsArray: true,
|
|
1039
|
+
};
|
|
1040
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data);
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1033
1043
|
selectMultiple(moduleName, objectName, operationName, parameterValues, showLoader) {
|
|
1034
1044
|
if (showLoader === undefined) {
|
|
1035
1045
|
showLoader = false;
|
|
@@ -1070,7 +1080,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
|
|
|
1070
1080
|
}
|
|
1071
1081
|
imageObject.mimeType = mimeType;
|
|
1072
1082
|
imageObject.fileType = fileType;
|
|
1073
|
-
if (documentBody && documentBody.validationResult.success) {
|
|
1083
|
+
if (documentBody && documentBody.validationResult && documentBody.validationResult.success) {
|
|
1074
1084
|
returnObject.validationResult.success = true;
|
|
1075
1085
|
imageObject.image = file_utils_1.FileUtils.DocumentBodyToDataUri(documentBody.resultObject.documentContent, mimeType);
|
|
1076
1086
|
returnObject.resultObject = imageObject;
|
package/build/main-public.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
98
98
|
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
99
99
|
getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
100
100
|
createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
101
|
+
getWarehousesShort(): Promise<DataServiceResponseData>;
|
|
101
102
|
getContainers(): Promise<DataServiceResponseData>;
|
|
102
103
|
getContainer(containerId: number): Promise<DataServiceResponseData>;
|
|
103
104
|
getContainerInfo(containerId: number): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -428,6 +428,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
428
428
|
return this._call(public_service_method_1.PublicServiceMethod.CreateQRCode, data);
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
|
+
getWarehousesShort() {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
console.warn('getWarehousesShort not implemented');
|
|
434
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
435
|
+
});
|
|
436
|
+
}
|
|
431
437
|
getContainers() {
|
|
432
438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
433
439
|
console.warn('getContainers not implemented');
|
|
@@ -488,7 +494,7 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
488
494
|
}
|
|
489
495
|
imageObject.mimeType = mimeType;
|
|
490
496
|
imageObject.fileType = fileType;
|
|
491
|
-
if (documentBody && documentBody.validationResult.success) {
|
|
497
|
+
if (documentBody && documentBody.validationResult && documentBody.validationResult.success) {
|
|
492
498
|
returnObject.validationResult.success = true;
|
|
493
499
|
imageObject.image = file_utils_1.FileUtils.DocumentBodyToDataUri(documentBody.resultObject.documentContent, mimeType);
|
|
494
500
|
returnObject.resultObject = imageObject;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WarehouseShort = void 0;
|
|
4
|
+
const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
|
|
5
|
+
class WarehouseShort extends business_object_1.BusinessObject {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
getId() {
|
|
10
|
+
return this.warehouseNumber;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.WarehouseShort = WarehouseShort;
|