@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.
@@ -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>;
@@ -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, table_name_enum_1.TableName.Goods);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "262.1.23",
3
+ "version": "262.1.24",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",