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