@colijnit/mainapi 259.1.2 → 259.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.
@@ -330,8 +330,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
330
330
  });
331
331
  }
332
332
  getImageForCoDocument(document, thumb = false) {
333
- console.warn('getImageForCoDocument not implemented');
334
- return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
333
+ if (document) {
334
+ const type = document.documentType;
335
+ const fileType = document.fileType;
336
+ const hasPublicAccess = document.hasPublicAccess;
337
+ return this._handleCoDocumentRequest(type, fileType, hasPublicAccess, document.documentId, document.mimeTypeInternal, thumb, document.filePath);
338
+ }
335
339
  }
336
340
  createServiceRequestData() {
337
341
  const data = { languageCode: this.languageCode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "259.1.2",
3
+ "version": "259.1.3",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",