asposeslidescloud 23.7.0 → 23.10.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 +8 -0
- package/api.d.ts +83 -2
- package/api.js +247 -7
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +26 -0
- package/model.js +22 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,14 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
+
## Enhancements in Version 23.10
|
|
31
|
+
|
|
32
|
+
* Added asynchronous API - **SlidesAsyncApi** class with **StartConvert**, **StartDownloadPresentation**, **GetOperationStatus**, **GetOperationResult** methods that allow tracking progress of conversion operations.
|
|
33
|
+
|
|
34
|
+
## Enhancements in Version 23.9
|
|
35
|
+
|
|
36
|
+
* Added **ReplaceImage** and **ReplaceImageOnline** methods that enable replacing images in a presentation.
|
|
37
|
+
|
|
30
38
|
## Enhancements in Version 23.7
|
|
31
39
|
|
|
32
40
|
* New methods **ReplaceTextFormatting** and **ReplaceTextFormatting** allow to replace text with formatting.
|
package/api.d.ts
CHANGED
|
@@ -544,7 +544,7 @@ export declare class SlidesApi {
|
|
|
544
544
|
* @param storage Document storage.
|
|
545
545
|
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
546
546
|
*/
|
|
547
|
-
createSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, dto
|
|
547
|
+
createSpecialSlideShape(name: string, slideIndex: number, slideType: model.SpecialSlideType, dto: model.ShapeBase, shapeToClone?: number, position?: number, password?: string, folder?: string, storage?: string, subShape?: string): Promise<{
|
|
548
548
|
response: http.ServerResponse;
|
|
549
549
|
body: model.ShapeBase;
|
|
550
550
|
}>;
|
|
@@ -942,7 +942,7 @@ export declare class SlidesApi {
|
|
|
942
942
|
* @param document Document data.
|
|
943
943
|
* @param password Presentation password.
|
|
944
944
|
*/
|
|
945
|
-
deleteProtectionOnline(document: Readable, password
|
|
945
|
+
deleteProtectionOnline(document: Readable, password?: string): Promise<{
|
|
946
946
|
response: http.ServerResponse;
|
|
947
947
|
body: Buffer;
|
|
948
948
|
}>;
|
|
@@ -2659,6 +2659,29 @@ export declare class SlidesApi {
|
|
|
2659
2659
|
response: http.ServerResponse;
|
|
2660
2660
|
body: Buffer;
|
|
2661
2661
|
}>;
|
|
2662
|
+
/**
|
|
2663
|
+
* Replaces image by the specified index.
|
|
2664
|
+
* @param name Document name.
|
|
2665
|
+
* @param imageIndex Image index.
|
|
2666
|
+
* @param image Image data.
|
|
2667
|
+
* @param password Document password.
|
|
2668
|
+
* @param folder Document folder.
|
|
2669
|
+
* @param storage Document storage.
|
|
2670
|
+
*/
|
|
2671
|
+
replaceImage(name: string, imageIndex: number, image?: Readable, password?: string, folder?: string, storage?: string): Promise<{
|
|
2672
|
+
response: http.ServerResponse;
|
|
2673
|
+
}>;
|
|
2674
|
+
/**
|
|
2675
|
+
* Replaces image by the specified index and returns updated document.
|
|
2676
|
+
* @param document Document data.
|
|
2677
|
+
* @param imageIndex Image index.
|
|
2678
|
+
* @param image Image data.
|
|
2679
|
+
* @param password Password.
|
|
2680
|
+
*/
|
|
2681
|
+
replaceImageOnline(document: Readable, imageIndex: number, image?: Readable, password?: string): Promise<{
|
|
2682
|
+
response: http.ServerResponse;
|
|
2683
|
+
body: Buffer;
|
|
2684
|
+
}>;
|
|
2662
2685
|
/**
|
|
2663
2686
|
* Replace text with a new value.
|
|
2664
2687
|
* @param name Document name.
|
|
@@ -3598,3 +3621,61 @@ export declare class SlidesApi {
|
|
|
3598
3621
|
body: model.FilesUploadResult;
|
|
3599
3622
|
}>;
|
|
3600
3623
|
}
|
|
3624
|
+
export declare class SlidesAsyncApi {
|
|
3625
|
+
private _configuration;
|
|
3626
|
+
get configuration(): Configuration;
|
|
3627
|
+
/**
|
|
3628
|
+
* @param appSid Client Id.
|
|
3629
|
+
* @param appKey Client Secret.
|
|
3630
|
+
* @param baseUrl Base api Url.
|
|
3631
|
+
* @param authBaseUrl Base authentication Url.
|
|
3632
|
+
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
3633
|
+
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
3634
|
+
*/
|
|
3635
|
+
constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @param id
|
|
3639
|
+
*/
|
|
3640
|
+
getOperationResult(id: string): Promise<{
|
|
3641
|
+
response: http.ServerResponse;
|
|
3642
|
+
body: Buffer;
|
|
3643
|
+
}>;
|
|
3644
|
+
/**
|
|
3645
|
+
*
|
|
3646
|
+
* @param id
|
|
3647
|
+
*/
|
|
3648
|
+
getOperationStatus(id: string): Promise<{
|
|
3649
|
+
response: http.ServerResponse;
|
|
3650
|
+
body: model.Operation;
|
|
3651
|
+
}>;
|
|
3652
|
+
/**
|
|
3653
|
+
*
|
|
3654
|
+
* @param document Document data.
|
|
3655
|
+
* @param format
|
|
3656
|
+
* @param password
|
|
3657
|
+
* @param storage
|
|
3658
|
+
* @param fontsFolder
|
|
3659
|
+
* @param slides
|
|
3660
|
+
* @param options
|
|
3661
|
+
*/
|
|
3662
|
+
startConvert(document: Readable, format: model.ExportFormat, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
|
|
3663
|
+
response: http.ServerResponse;
|
|
3664
|
+
body: string;
|
|
3665
|
+
}>;
|
|
3666
|
+
/**
|
|
3667
|
+
*
|
|
3668
|
+
* @param name
|
|
3669
|
+
* @param format
|
|
3670
|
+
* @param options
|
|
3671
|
+
* @param password
|
|
3672
|
+
* @param folder
|
|
3673
|
+
* @param storage
|
|
3674
|
+
* @param fontsFolder
|
|
3675
|
+
* @param slides
|
|
3676
|
+
*/
|
|
3677
|
+
startDownloadPresentation(name: string, format: model.ExportFormat, options?: model.ExportOptions, password?: string, folder?: string, storage?: string, fontsFolder?: string, slides?: Array<number>): Promise<{
|
|
3678
|
+
response: http.ServerResponse;
|
|
3679
|
+
body: string;
|
|
3680
|
+
}>;
|
|
3681
|
+
}
|
package/api.js
CHANGED
|
@@ -46,7 +46,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.SlidesApi = void 0;
|
|
49
|
+
exports.SlidesAsyncApi = exports.SlidesApi = void 0;
|
|
50
50
|
const configuration_1 = require("./internal/configuration");
|
|
51
51
|
const objectSerializer_1 = require("./internal/objectSerializer");
|
|
52
52
|
const requestHelper_1 = require("./internal/requestHelper");
|
|
@@ -1756,7 +1756,7 @@ class SlidesApi {
|
|
|
1756
1756
|
* @param storage Document storage.
|
|
1757
1757
|
* @param subShape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
1758
1758
|
*/
|
|
1759
|
-
createSpecialSlideShape(name, slideIndex, slideType, dto
|
|
1759
|
+
createSpecialSlideShape(name, slideIndex, slideType, dto, shapeToClone = null, position = null, password = null, folder = null, storage = null, subShape = null) {
|
|
1760
1760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1761
1761
|
// verify required parameter 'name' is not null or undefined
|
|
1762
1762
|
if (name === null || name === undefined) {
|
|
@@ -1774,6 +1774,10 @@ class SlidesApi {
|
|
|
1774
1774
|
if (!Object.keys(model.SpecialSlideType).filter(i => model.SpecialSlideType[i].toLowerCase() == slideType.toString().toLowerCase()).length) {
|
|
1775
1775
|
throw new Error('Invalid value for slideType: ' + slideType + '. Must be one of the following: ' + Object.keys(model.SpecialSlideType).map(key => model.SpecialSlideType[key]).join());
|
|
1776
1776
|
}
|
|
1777
|
+
// verify required parameter 'dto' is not null or undefined
|
|
1778
|
+
if (dto === null || dto === undefined) {
|
|
1779
|
+
throw new Error('The required parameter "dto" was null or undefined when calling createSpecialSlideShape.');
|
|
1780
|
+
}
|
|
1777
1781
|
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/{slideType}/shapes";
|
|
1778
1782
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
1779
1783
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
@@ -3037,16 +3041,12 @@ class SlidesApi {
|
|
|
3037
3041
|
* @param document Document data.
|
|
3038
3042
|
* @param password Presentation password.
|
|
3039
3043
|
*/
|
|
3040
|
-
deleteProtectionOnline(document, password) {
|
|
3044
|
+
deleteProtectionOnline(document, password = null) {
|
|
3041
3045
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3042
3046
|
// verify required parameter 'document' is not null or undefined
|
|
3043
3047
|
if (document === null || document === undefined) {
|
|
3044
3048
|
throw new Error('The required parameter "document" was null or undefined when calling deleteProtectionOnline.');
|
|
3045
3049
|
}
|
|
3046
|
-
// verify required parameter 'password' is not null or undefined
|
|
3047
|
-
if (password === null || password === undefined) {
|
|
3048
|
-
throw new Error('The required parameter "password" was null or undefined when calling deleteProtectionOnline.');
|
|
3049
|
-
}
|
|
3050
3050
|
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/protection/delete";
|
|
3051
3051
|
const queryParameters = {};
|
|
3052
3052
|
const requestOptions = {
|
|
@@ -8632,6 +8632,88 @@ class SlidesApi {
|
|
|
8632
8632
|
return Promise.resolve({ body: result, response });
|
|
8633
8633
|
});
|
|
8634
8634
|
}
|
|
8635
|
+
/**
|
|
8636
|
+
* Replaces image by the specified index.
|
|
8637
|
+
* @param name Document name.
|
|
8638
|
+
* @param imageIndex Image index.
|
|
8639
|
+
* @param image Image data.
|
|
8640
|
+
* @param password Document password.
|
|
8641
|
+
* @param folder Document folder.
|
|
8642
|
+
* @param storage Document storage.
|
|
8643
|
+
*/
|
|
8644
|
+
replaceImage(name, imageIndex, image = null, password = null, folder = null, storage = null) {
|
|
8645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8646
|
+
// verify required parameter 'name' is not null or undefined
|
|
8647
|
+
if (name === null || name === undefined) {
|
|
8648
|
+
throw new Error('The required parameter "name" was null or undefined when calling replaceImage.');
|
|
8649
|
+
}
|
|
8650
|
+
// verify required parameter 'imageIndex' is not null or undefined
|
|
8651
|
+
if (imageIndex === null || imageIndex === undefined) {
|
|
8652
|
+
throw new Error('The required parameter "imageIndex" was null or undefined when calling replaceImage.');
|
|
8653
|
+
}
|
|
8654
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/images/{imageIndex}/replace";
|
|
8655
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8656
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "imageIndex", objectSerializer_1.ObjectSerializer.toString(imageIndex));
|
|
8657
|
+
const queryParameters = {};
|
|
8658
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8659
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8660
|
+
const requestOptions = {
|
|
8661
|
+
method: "PUT",
|
|
8662
|
+
headers: {},
|
|
8663
|
+
url: localVarPath,
|
|
8664
|
+
params: queryParameters
|
|
8665
|
+
};
|
|
8666
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8667
|
+
let localVarFiles = [];
|
|
8668
|
+
if (image != null) {
|
|
8669
|
+
localVarFiles.push(image);
|
|
8670
|
+
}
|
|
8671
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8672
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8673
|
+
return Promise.resolve({ response });
|
|
8674
|
+
});
|
|
8675
|
+
}
|
|
8676
|
+
/**
|
|
8677
|
+
* Replaces image by the specified index and returns updated document.
|
|
8678
|
+
* @param document Document data.
|
|
8679
|
+
* @param imageIndex Image index.
|
|
8680
|
+
* @param image Image data.
|
|
8681
|
+
* @param password Password.
|
|
8682
|
+
*/
|
|
8683
|
+
replaceImageOnline(document, imageIndex, image = null, password = null) {
|
|
8684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8685
|
+
// verify required parameter 'document' is not null or undefined
|
|
8686
|
+
if (document === null || document === undefined) {
|
|
8687
|
+
throw new Error('The required parameter "document" was null or undefined when calling replaceImageOnline.');
|
|
8688
|
+
}
|
|
8689
|
+
// verify required parameter 'imageIndex' is not null or undefined
|
|
8690
|
+
if (imageIndex === null || imageIndex === undefined) {
|
|
8691
|
+
throw new Error('The required parameter "imageIndex" was null or undefined when calling replaceImageOnline.');
|
|
8692
|
+
}
|
|
8693
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/images/{imageIndex}/replace";
|
|
8694
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "imageIndex", objectSerializer_1.ObjectSerializer.toString(imageIndex));
|
|
8695
|
+
const queryParameters = {};
|
|
8696
|
+
const requestOptions = {
|
|
8697
|
+
method: "POST",
|
|
8698
|
+
headers: {},
|
|
8699
|
+
url: localVarPath,
|
|
8700
|
+
responseType: 'arraybuffer',
|
|
8701
|
+
params: queryParameters
|
|
8702
|
+
};
|
|
8703
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8704
|
+
let localVarFiles = [];
|
|
8705
|
+
if (document != null) {
|
|
8706
|
+
localVarFiles.push(document);
|
|
8707
|
+
}
|
|
8708
|
+
if (image != null) {
|
|
8709
|
+
localVarFiles.push(image);
|
|
8710
|
+
}
|
|
8711
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8712
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8713
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
8714
|
+
return Promise.resolve({ body: result, response });
|
|
8715
|
+
});
|
|
8716
|
+
}
|
|
8635
8717
|
/**
|
|
8636
8718
|
* Replace text with a new value.
|
|
8637
8719
|
* @param name Document name.
|
|
@@ -11904,3 +11986,161 @@ class SlidesApi {
|
|
|
11904
11986
|
}
|
|
11905
11987
|
}
|
|
11906
11988
|
exports.SlidesApi = SlidesApi;
|
|
11989
|
+
class SlidesAsyncApi {
|
|
11990
|
+
get configuration() {
|
|
11991
|
+
return this._configuration;
|
|
11992
|
+
}
|
|
11993
|
+
/**
|
|
11994
|
+
* @param appSid Client Id.
|
|
11995
|
+
* @param appKey Client Secret.
|
|
11996
|
+
* @param baseUrl Base api Url.
|
|
11997
|
+
* @param authBaseUrl Base authentication Url.
|
|
11998
|
+
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
11999
|
+
* @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
|
|
12000
|
+
*/
|
|
12001
|
+
constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout) {
|
|
12002
|
+
this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout);
|
|
12003
|
+
}
|
|
12004
|
+
/**
|
|
12005
|
+
*
|
|
12006
|
+
* @param id
|
|
12007
|
+
*/
|
|
12008
|
+
getOperationResult(id) {
|
|
12009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12010
|
+
// verify required parameter 'id' is not null or undefined
|
|
12011
|
+
if (id === null || id === undefined) {
|
|
12012
|
+
throw new Error('The required parameter "id" was null or undefined when calling getOperationResult.');
|
|
12013
|
+
}
|
|
12014
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/{id}/result";
|
|
12015
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "id", objectSerializer_1.ObjectSerializer.toString(id));
|
|
12016
|
+
const queryParameters = {};
|
|
12017
|
+
const requestOptions = {
|
|
12018
|
+
method: "GET",
|
|
12019
|
+
url: localVarPath,
|
|
12020
|
+
responseType: 'arraybuffer',
|
|
12021
|
+
params: queryParameters
|
|
12022
|
+
};
|
|
12023
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12024
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
12025
|
+
return Promise.resolve({ body: result, response });
|
|
12026
|
+
});
|
|
12027
|
+
}
|
|
12028
|
+
/**
|
|
12029
|
+
*
|
|
12030
|
+
* @param id
|
|
12031
|
+
*/
|
|
12032
|
+
getOperationStatus(id) {
|
|
12033
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12034
|
+
// verify required parameter 'id' is not null or undefined
|
|
12035
|
+
if (id === null || id === undefined) {
|
|
12036
|
+
throw new Error('The required parameter "id" was null or undefined when calling getOperationStatus.');
|
|
12037
|
+
}
|
|
12038
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/{id}";
|
|
12039
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "id", objectSerializer_1.ObjectSerializer.toString(id));
|
|
12040
|
+
const queryParameters = {};
|
|
12041
|
+
const requestOptions = {
|
|
12042
|
+
method: "GET",
|
|
12043
|
+
url: localVarPath,
|
|
12044
|
+
params: queryParameters
|
|
12045
|
+
};
|
|
12046
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12047
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Operation");
|
|
12048
|
+
return Promise.resolve({ body: result, response });
|
|
12049
|
+
});
|
|
12050
|
+
}
|
|
12051
|
+
/**
|
|
12052
|
+
*
|
|
12053
|
+
* @param document Document data.
|
|
12054
|
+
* @param format
|
|
12055
|
+
* @param password
|
|
12056
|
+
* @param storage
|
|
12057
|
+
* @param fontsFolder
|
|
12058
|
+
* @param slides
|
|
12059
|
+
* @param options
|
|
12060
|
+
*/
|
|
12061
|
+
startConvert(document, format, password = null, storage = null, fontsFolder = null, slides = null, options = null) {
|
|
12062
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12063
|
+
// verify required parameter 'document' is not null or undefined
|
|
12064
|
+
if (document === null || document === undefined) {
|
|
12065
|
+
throw new Error('The required parameter "document" was null or undefined when calling startConvert.');
|
|
12066
|
+
}
|
|
12067
|
+
// verify required parameter 'format' is not null or undefined
|
|
12068
|
+
if (format === null || format === undefined) {
|
|
12069
|
+
throw new Error('The required parameter "format" was null or undefined when calling startConvert.');
|
|
12070
|
+
}
|
|
12071
|
+
// verify value of enum parameter 'format' is valid
|
|
12072
|
+
if (!Object.keys(model.ExportFormat).filter(i => model.ExportFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
12073
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.ExportFormat).map(key => model.ExportFormat[key]).join());
|
|
12074
|
+
}
|
|
12075
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/convert/{format}";
|
|
12076
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
12077
|
+
const queryParameters = {};
|
|
12078
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
12079
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
|
|
12080
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "slides", slides);
|
|
12081
|
+
const requestOptions = {
|
|
12082
|
+
method: "POST",
|
|
12083
|
+
headers: {},
|
|
12084
|
+
url: localVarPath,
|
|
12085
|
+
data: options,
|
|
12086
|
+
params: queryParameters
|
|
12087
|
+
};
|
|
12088
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
12089
|
+
let localVarFiles = [];
|
|
12090
|
+
if (document != null) {
|
|
12091
|
+
localVarFiles.push(document);
|
|
12092
|
+
}
|
|
12093
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
12094
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12095
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "string");
|
|
12096
|
+
return Promise.resolve({ body: result, response });
|
|
12097
|
+
});
|
|
12098
|
+
}
|
|
12099
|
+
/**
|
|
12100
|
+
*
|
|
12101
|
+
* @param name
|
|
12102
|
+
* @param format
|
|
12103
|
+
* @param options
|
|
12104
|
+
* @param password
|
|
12105
|
+
* @param folder
|
|
12106
|
+
* @param storage
|
|
12107
|
+
* @param fontsFolder
|
|
12108
|
+
* @param slides
|
|
12109
|
+
*/
|
|
12110
|
+
startDownloadPresentation(name, format, options = null, password = null, folder = null, storage = null, fontsFolder = null, slides = null) {
|
|
12111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12112
|
+
// verify required parameter 'name' is not null or undefined
|
|
12113
|
+
if (name === null || name === undefined) {
|
|
12114
|
+
throw new Error('The required parameter "name" was null or undefined when calling startDownloadPresentation.');
|
|
12115
|
+
}
|
|
12116
|
+
// verify required parameter 'format' is not null or undefined
|
|
12117
|
+
if (format === null || format === undefined) {
|
|
12118
|
+
throw new Error('The required parameter "format" was null or undefined when calling startDownloadPresentation.');
|
|
12119
|
+
}
|
|
12120
|
+
// verify value of enum parameter 'format' is valid
|
|
12121
|
+
if (!Object.keys(model.ExportFormat).filter(i => model.ExportFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
12122
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.ExportFormat).map(key => model.ExportFormat[key]).join());
|
|
12123
|
+
}
|
|
12124
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/{name}/{format}";
|
|
12125
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
12126
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
12127
|
+
const queryParameters = {};
|
|
12128
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
12129
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
12130
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
|
|
12131
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "slides", slides);
|
|
12132
|
+
const requestOptions = {
|
|
12133
|
+
method: "POST",
|
|
12134
|
+
headers: {},
|
|
12135
|
+
url: localVarPath,
|
|
12136
|
+
data: options,
|
|
12137
|
+
params: queryParameters
|
|
12138
|
+
};
|
|
12139
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
12140
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12141
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "string");
|
|
12142
|
+
return Promise.resolve({ body: result, response });
|
|
12143
|
+
});
|
|
12144
|
+
}
|
|
12145
|
+
}
|
|
12146
|
+
exports.SlidesAsyncApi = SlidesAsyncApi;
|
|
@@ -157,7 +157,7 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
|
|
|
157
157
|
if (!requestOptions.headers) {
|
|
158
158
|
requestOptions.headers = {};
|
|
159
159
|
}
|
|
160
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v23.
|
|
160
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v23.10.0";
|
|
161
161
|
if (configuration.timeout) {
|
|
162
162
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
163
163
|
}
|
package/model.d.ts
CHANGED
|
@@ -4379,6 +4379,32 @@ export declare namespace OneValueSeries {
|
|
|
4379
4379
|
Inclusive
|
|
4380
4380
|
}
|
|
4381
4381
|
}
|
|
4382
|
+
export declare class Operation {
|
|
4383
|
+
id: string;
|
|
4384
|
+
method: Operation.MethodEnum;
|
|
4385
|
+
status: Operation.StatusEnum;
|
|
4386
|
+
created?: Date;
|
|
4387
|
+
enqueued?: Date;
|
|
4388
|
+
started?: Date;
|
|
4389
|
+
failed?: Date;
|
|
4390
|
+
canceled?: Date;
|
|
4391
|
+
finished?: Date;
|
|
4392
|
+
error?: string;
|
|
4393
|
+
}
|
|
4394
|
+
export declare namespace Operation {
|
|
4395
|
+
enum MethodEnum {
|
|
4396
|
+
Convert,
|
|
4397
|
+
DownloadPresentation
|
|
4398
|
+
}
|
|
4399
|
+
enum StatusEnum {
|
|
4400
|
+
Created,
|
|
4401
|
+
Enqueued,
|
|
4402
|
+
Started,
|
|
4403
|
+
Failed,
|
|
4404
|
+
Canceled,
|
|
4405
|
+
Finished
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4382
4408
|
/**
|
|
4383
4409
|
* Request for presentations merge with optional order of slides
|
|
4384
4410
|
*/
|
package/model.js
CHANGED
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Chart = exports.Camera = exports.BubbleSeries = exports.XYSeries = exports.Series = exports.BubbleChartDataPoint = exports.ScatterChartDataPoint = exports.DataPoint = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlurEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.InputFile = exports.BarElement = exports.AxisType = exports.Axis = exports.Axes = exports.AudioFrame = exports.GeometryShape = exports.ShapeBase = exports.ResourceBase = exports.ArrowHeadProperties = exports.ArrayElement = exports.ArcToPathSegment = exports.PathSegment = exports.ApiInfo = exports.AlphaReplaceEffect = exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = exports.AlphaInverseEffect = exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.ImageTransformEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.Task = exports.AccessPermissions = exports.AccentElement = exports.MathElement = void 0;
|
|
27
27
|
exports.GroupShape = exports.GrayScaleEffect = exports.GraphicalObject = exports.GradientFillStop = exports.GradientFill = exports.GlowEffect = exports.GifExportOptions = exports.ImageExportOptionsBase = exports.GeometryPaths = exports.GeometryPath = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontsData = exports.FontSubstRule = exports.FontSet = exports.FontScheme = exports.FontFallbackRule = exports.FontData = exports.FillOverlayImageEffect = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.FileVersion = exports.StorageFile = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DuotoneEffect = exports.DocumentReplaceResult = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DiscUsage = exports.DelimiterElement = exports.DataSource = exports.CustomDashPattern = exports.CubicBezierToPathSegment = exports.Connector = exports.CommonSlideViewProperties = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.ChartWallType = void 0;
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = exports.VbaModule = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.TiffExportOptions = exports.ThreeDFormat = exports.Theme = exports.TextItems = exports.TextItem = exports.TextFrameFormat = exports.TextElement = exports.TextBounds = exports.TableRow = exports.TableColumn = exports.TableCellSplitType = exports.TableCellMergeOptions = exports.TableCell = exports.Table = exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SummaryZoomSection = exports.SummaryZoomFrame = exports.SubscriptElement = exports.StorageExist = exports.SplitDocumentResult = exports.SpecialSlideType = exports.SolidFill = exports.SoftEdgeEffect = exports.SmartArtShape = exports.SmartArtNode = exports.SmartArt = exports.Slides = exports.SlideShowProperties = exports.SlideReplaceResult = exports.SlideProperties = exports.SlideModernComment = exports.SlideExportFormat = exports.SlideComments = void 0;
|
|
28
|
+
exports.PathInputFile = exports.Paragraphs = exports.ParagraphFormat = exports.Paragraph = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.Operation = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.OleObjectFrame = exports.ObjectExist = exports.NotesSlideHeaderFooter = exports.NotesSlideExportFormat = exports.NotesSlide = exports.NormalViewRestoredProperties = exports.NoFill = exports.NaryOperatorElement = exports.MoveToPathSegment = exports.ModelError = exports.MergingSource = exports.Merge = exports.MatrixElement = exports.MathParagraph = exports.MasterSlides = exports.MasterSlide = exports.LuminanceEffect = exports.Literals = exports.LineToPathSegment = exports.LineFormat = exports.LimitElement = exports.LightRig = exports.Legend = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.InteractiveSequence = exports.Input = exports.InnerShadowEffect = exports.Images = exports.ImageExportOptions = exports.ImageExportFormat = exports.Image = exports.IShapeExportOptions = exports.Hyperlink = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.GroupingCharacterElement = void 0;
|
|
29
|
+
exports.SlideCommentBase = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.ShapesAlignmentType = exports.Shapes = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = exports.ShapeExportFormat = exports.ShapeBevel = exports.Shape = exports.SeriesMarker = exports.Sections = exports.SectionZoomFrame = exports.ZoomObject = exports.Section = exports.ScatterSeries = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResourceUri = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.ReflectionEffect = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PptxExportOptions = exports.Portions = exports.PortionFormat = exports.Portion = exports.PlotArea = exports.Placeholders = exports.Placeholder = exports.Pipeline = exports.PictureFrame = exports.PictureFill = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = void 0;
|
|
30
|
+
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = exports.VbaModule = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.TiffExportOptions = exports.ThreeDFormat = exports.Theme = exports.TextItems = exports.TextItem = exports.TextFrameFormat = exports.TextElement = exports.TextBounds = exports.TableRow = exports.TableColumn = exports.TableCellSplitType = exports.TableCellMergeOptions = exports.TableCell = exports.Table = exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SummaryZoomSection = exports.SummaryZoomFrame = exports.SubscriptElement = exports.StorageExist = exports.SplitDocumentResult = exports.SpecialSlideType = exports.SolidFill = exports.SoftEdgeEffect = exports.SmartArtShape = exports.SmartArtNode = exports.SmartArt = exports.Slides = exports.SlideShowProperties = exports.SlideReplaceResult = exports.SlideProperties = exports.SlideModernComment = exports.SlideExportFormat = exports.SlideComments = exports.SlideComment = void 0;
|
|
31
31
|
/**
|
|
32
32
|
* Math element.
|
|
33
33
|
*/
|
|
@@ -2654,6 +2654,25 @@ exports.OneValueSeries = OneValueSeries;
|
|
|
2654
2654
|
QuartileMethodEnum[QuartileMethodEnum["Inclusive"] = 'Inclusive'] = "Inclusive";
|
|
2655
2655
|
})(QuartileMethodEnum = OneValueSeries.QuartileMethodEnum || (OneValueSeries.QuartileMethodEnum = {}));
|
|
2656
2656
|
})(OneValueSeries = exports.OneValueSeries || (exports.OneValueSeries = {}));
|
|
2657
|
+
class Operation {
|
|
2658
|
+
}
|
|
2659
|
+
exports.Operation = Operation;
|
|
2660
|
+
(function (Operation) {
|
|
2661
|
+
let MethodEnum;
|
|
2662
|
+
(function (MethodEnum) {
|
|
2663
|
+
MethodEnum[MethodEnum["Convert"] = 'Convert'] = "Convert";
|
|
2664
|
+
MethodEnum[MethodEnum["DownloadPresentation"] = 'DownloadPresentation'] = "DownloadPresentation";
|
|
2665
|
+
})(MethodEnum = Operation.MethodEnum || (Operation.MethodEnum = {}));
|
|
2666
|
+
let StatusEnum;
|
|
2667
|
+
(function (StatusEnum) {
|
|
2668
|
+
StatusEnum[StatusEnum["Created"] = 'Created'] = "Created";
|
|
2669
|
+
StatusEnum[StatusEnum["Enqueued"] = 'Enqueued'] = "Enqueued";
|
|
2670
|
+
StatusEnum[StatusEnum["Started"] = 'Started'] = "Started";
|
|
2671
|
+
StatusEnum[StatusEnum["Failed"] = 'Failed'] = "Failed";
|
|
2672
|
+
StatusEnum[StatusEnum["Canceled"] = 'Canceled'] = "Canceled";
|
|
2673
|
+
StatusEnum[StatusEnum["Finished"] = 'Finished'] = "Finished";
|
|
2674
|
+
})(StatusEnum = Operation.StatusEnum || (Operation.StatusEnum = {}));
|
|
2675
|
+
})(Operation = exports.Operation || (exports.Operation = {}));
|
|
2657
2676
|
/**
|
|
2658
2677
|
* Request for presentations merge with optional order of slides
|
|
2659
2678
|
*/
|