@colijnit/mainapi 259.1.3 → 259.1.4
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.js +9 -2
- package/package.json +1 -1
package/build/main-public.js
CHANGED
|
@@ -51,8 +51,15 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
51
51
|
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
52
52
|
}
|
|
53
53
|
getDocumentContent(id, thumbnail) {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
if (id === undefined || id === null) {
|
|
55
|
+
return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
|
|
56
|
+
}
|
|
57
|
+
const params = {
|
|
58
|
+
documentId: id,
|
|
59
|
+
thumbnail: thumbnail
|
|
60
|
+
};
|
|
61
|
+
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
62
|
+
return this._call(public_service_method_1.PublicServiceMethod.GetDocumentContent, data);
|
|
56
63
|
}
|
|
57
64
|
loadDocuments(key, table) {
|
|
58
65
|
return __awaiter(this, void 0, void 0, function* () {
|