oneentry 1.0.44 → 1.0.45
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/dist/base/oneEntry.js
CHANGED
|
@@ -22,7 +22,7 @@ export default class FileUploadingApi extends OneEntry implements IFileUploading
|
|
|
22
22
|
*
|
|
23
23
|
* @returns Uploads a file to an Amazon S3-compatible cloud file storage
|
|
24
24
|
*/
|
|
25
|
-
upload(data: File, fileQuery?: IUploadingQuery): Promise<IUploadingReturns>;
|
|
25
|
+
upload(data: File | string, fileQuery?: IUploadingQuery): Promise<IUploadingReturns>;
|
|
26
26
|
/**
|
|
27
27
|
* Deletes a file from the cloud file storage.
|
|
28
28
|
*
|
|
@@ -37,7 +37,7 @@ class FileUploadingApi extends oneEntry_1.default {
|
|
|
37
37
|
const body = new FormData();
|
|
38
38
|
body.append('files', data);
|
|
39
39
|
const result = await this._fetchPost('?' + this._queryParamsToString(query), body);
|
|
40
|
-
return result
|
|
40
|
+
return result;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Deletes a file from the cloud file storage.
|
|
@@ -55,8 +55,8 @@ class FormsDataApi extends oneEntry_1.default {
|
|
|
55
55
|
* @returns Returns array of object FormDataEntity
|
|
56
56
|
*/
|
|
57
57
|
async getFormsDataByMarker(marker, langCode = this._defaultLangCode, offset = 0, limit = 30) {
|
|
58
|
-
const result = await this._fetchGet(
|
|
59
|
-
return this._normalizeData(result);
|
|
58
|
+
const result = await this._fetchGet(`/marker/${marker}?langCode=${langCode}&offset=${offset}&limit=${limit}`);
|
|
59
|
+
return this._normalizeData(result.items);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
exports.default = FormsDataApi;
|