@colijnit/mainapi 262.1.23 → 262.1.24
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/main-public.d.ts +1 -1
- package/build/main-public.js +2 -2
- package/package.json +1 -1
package/build/main-public.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare class MainPublic extends MainApiConnection {
|
|
|
107
107
|
getBranchesByWarehouseNumber(warehouseNo: number): Promise<DataServiceResponseData>;
|
|
108
108
|
selectMultiple(moduleName: ModuleName, objectName: string, operationName?: string, parameterValues?: any, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
109
109
|
getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
|
|
110
|
-
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
110
|
+
getImage(key: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
|
|
111
111
|
getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
112
112
|
createQRCode(width: number, height: number, value: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
113
113
|
getWarehousesShort(): Promise<DataServiceResponseData>;
|
package/build/main-public.js
CHANGED
|
@@ -445,8 +445,8 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
445
445
|
return this._call(public_service_method_1.PublicServiceMethod.GetSingleImage, data);
|
|
446
446
|
}
|
|
447
447
|
getImage(key_1) {
|
|
448
|
-
return __awaiter(this, arguments, void 0, function* (key, publication = 4, includeMimetype = false, thumb = true) {
|
|
449
|
-
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb,
|
|
448
|
+
return __awaiter(this, arguments, void 0, function* (key, publication = 4, includeMimetype = false, thumb = true, tableName = table_name_enum_1.TableName.Goods) {
|
|
449
|
+
const getImageObject = yield this.getSingleImage(key, publication, includeMimetype, thumb, tableName);
|
|
450
450
|
if (getImageObject && getImageObject.validationResult && getImageObject.validationResult.success) {
|
|
451
451
|
if (getImageObject.resultObject) {
|
|
452
452
|
const document = getImageObject.resultObject;
|