asposeslidescloud 22.1.0 → 22.3.0
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/README.md +97 -76
- package/api.d.ts +3540 -0
- package/api.js +2186 -1875
- package/internal/configuration.d.ts +44 -0
- package/internal/configuration.js +1 -0
- package/internal/objectSerializer.d.ts +18 -0
- package/internal/objectSerializer.js +1 -0
- package/internal/requestHelper.d.ts +33 -0
- package/internal/requestHelper.js +4 -2
- package/model.d.ts +6929 -0
- package/model.js +261 -23
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slides API configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare class Configuration {
|
|
5
|
+
/**
|
|
6
|
+
* Client ID.
|
|
7
|
+
*/
|
|
8
|
+
appSid: string;
|
|
9
|
+
/**
|
|
10
|
+
* Client Secret.
|
|
11
|
+
*/
|
|
12
|
+
appKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* access token.
|
|
15
|
+
*/
|
|
16
|
+
accessToken: string;
|
|
17
|
+
/**
|
|
18
|
+
* Base Url.
|
|
19
|
+
*/
|
|
20
|
+
baseUrl: string;
|
|
21
|
+
/**
|
|
22
|
+
* Base Url.
|
|
23
|
+
*/
|
|
24
|
+
authBaseUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* Gets or sets slides operation timeout in seconds. 0 stands for no timeout. The timeout applies to the Slides operation, not to the HTTP request.
|
|
27
|
+
*/
|
|
28
|
+
timeout: number;
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets a value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
31
|
+
*/
|
|
32
|
+
debugMode: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets collection of custom headers to be added to HTTP requests.
|
|
35
|
+
*/
|
|
36
|
+
customHeaders: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
|
|
40
|
+
/**
|
|
41
|
+
* Returns api base url
|
|
42
|
+
*/
|
|
43
|
+
getApiBaseUrl(): string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialisation helper.
|
|
3
|
+
*/
|
|
4
|
+
export declare class ObjectSerializer {
|
|
5
|
+
/**
|
|
6
|
+
* Serilize object to json string.
|
|
7
|
+
*/
|
|
8
|
+
static serialize(data: any, type: string): any;
|
|
9
|
+
/**
|
|
10
|
+
* Deserialize object from json string
|
|
11
|
+
*/
|
|
12
|
+
static deserialize(data: any, type: string): any;
|
|
13
|
+
/**
|
|
14
|
+
* cast object to string
|
|
15
|
+
*/
|
|
16
|
+
static toString(data: any): string;
|
|
17
|
+
private static findCorrectType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import request = require("request");
|
|
2
|
+
import { Configuration } from "./configuration";
|
|
3
|
+
export declare function checkMultipartContent(options: request.Options, files: any): void;
|
|
4
|
+
/**
|
|
5
|
+
* Invoke api method
|
|
6
|
+
* @param requestOptions request parameters
|
|
7
|
+
* @param confguration api configuration
|
|
8
|
+
* @param notApplyAuthToRequest if setted to true, auth is not applied to request
|
|
9
|
+
*/
|
|
10
|
+
export declare function invokeApiMethod(requestOptions: request.Options, confguration: Configuration, notApplyAuthToRequest?: boolean): Promise<request.RequestResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Add parameter to query
|
|
13
|
+
* @param url url
|
|
14
|
+
* @param queryParameters queryParameters
|
|
15
|
+
* @param parameterName parameterName
|
|
16
|
+
* @param parameterValue parameterValue
|
|
17
|
+
*/
|
|
18
|
+
export declare function addQueryParameterToUrl(url: string, queryParameters: Array<string>, parameterName: string, parameterValue: any): string;
|
|
19
|
+
/**
|
|
20
|
+
* Add parameter to query
|
|
21
|
+
* @param url url
|
|
22
|
+
* @param queryParameters queryParameters
|
|
23
|
+
* @param parameterName parameterName
|
|
24
|
+
* @param parameterValue parameterValue
|
|
25
|
+
*/
|
|
26
|
+
export declare function addPathParameterToUrl(url: string, parameterName: string, parameterValue: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Add parameter to headers
|
|
29
|
+
* @param headers headers
|
|
30
|
+
* @param parameterName parameterName
|
|
31
|
+
* @param parameterValue parameterValue
|
|
32
|
+
*/
|
|
33
|
+
export declare function addHeaderParameter(headers: any, parameterName: string, parameterValue: any): void;
|
|
@@ -23,14 +23,16 @@
|
|
|
23
23
|
* SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
28
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
29
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
31
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.addHeaderParameter = exports.addPathParameterToUrl = exports.addQueryParameterToUrl = exports.invokeApiMethod = exports.checkMultipartContent = void 0;
|
|
34
36
|
const request = require("request");
|
|
35
37
|
const requestDebug = require("request-debug");
|
|
36
38
|
const objectSerializer_1 = require("./objectSerializer");
|
|
@@ -144,7 +146,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
|
|
|
144
146
|
if (!requestOptions.headers) {
|
|
145
147
|
requestOptions.headers = {};
|
|
146
148
|
}
|
|
147
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.
|
|
149
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.3.0";
|
|
148
150
|
if (confguration.timeout) {
|
|
149
151
|
requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
|
|
150
152
|
}
|