@crowdin/crowdin-api-client
Advanced tools
Comparing version 1.8.4 to 1.8.5
import { CrowdinApi, ResponseList, ResponseObject } from '../core'; | ||
export declare class UploadStorage extends CrowdinApi { | ||
listStorages(): Promise<ResponseList<UploadStorageModel.Storage>>; | ||
/** | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listStorages(limit?: number, offset?: number): Promise<ResponseList<UploadStorageModel.Storage>>; | ||
/** | ||
* @param fileName file name | ||
@@ -6,0 +10,0 @@ * @param request binary file data |
@@ -5,4 +5,10 @@ "use strict"; | ||
class UploadStorage extends core_1.CrowdinApi { | ||
listStorages() { | ||
const url = `${this.url}/storages`; | ||
/** | ||
* @param limit maximum number of items to retrieve (default 25) | ||
* @param offset starting offset in the collection (default 0) | ||
*/ | ||
listStorages(limit, offset) { | ||
let url = `${this.url}/storages`; | ||
url = this.addQueryParam(url, 'limit', limit); | ||
url = this.addQueryParam(url, 'offset', offset); | ||
return this.get(url, this.defaultConfig()); | ||
@@ -9,0 +15,0 @@ } |
{ | ||
"name": "@crowdin/crowdin-api-client", | ||
"version": "1.8.4", | ||
"version": "1.8.5", | ||
"description": "JavaScript library for Crowdin API v2.", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
183228
4569