asposeslidescloud 23.6.0 → 23.9.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 +10 -0
- package/api.d.ts +54 -3
- package/api.js +186 -7
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +26 -0
- package/model.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,16 @@ 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.9
|
|
31
|
+
|
|
32
|
+
* Added **ReplaceImage** and **ReplaceImageOnline** methods that enable replacing images in a presentation.
|
|
33
|
+
|
|
34
|
+
## Enhancements in Version 23.7
|
|
35
|
+
|
|
36
|
+
* New methods **ReplaceTextFormatting** and **ReplaceTextFormatting** allow to replace text with formatting.
|
|
37
|
+
* Added **AfterAnimationType**, **Rewind** and **AfterAnimationColor** methods to **Effect** class.
|
|
38
|
+
* Added **TrimFromStart** and **TrimFromEnd** methods to **VideoFrame** class.
|
|
39
|
+
|
|
30
40
|
## Enhancements in Version 23.6
|
|
31
41
|
|
|
32
42
|
* Added methods ho handle VBA methods: **GetVbaProject**, **GetVbaModule**, **CreateVbaModule**, **UpdateVbaModule** and **DeleteVbaModule**. Added model classes related to VBA: **VbaProject**, **VbaModule** and **VbaReference**.
|
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.
|
|
@@ -2713,6 +2736,34 @@ export declare class SlidesApi {
|
|
|
2713
2736
|
response: http.ServerResponse;
|
|
2714
2737
|
body: Buffer;
|
|
2715
2738
|
}>;
|
|
2739
|
+
/**
|
|
2740
|
+
* Finds and replaces text in presentation with given format.
|
|
2741
|
+
* @param name Document name.
|
|
2742
|
+
* @param oldValue Text value to be replaced.
|
|
2743
|
+
* @param newValue Text value to replace with.
|
|
2744
|
+
* @param portionFormat Portion format.
|
|
2745
|
+
* @param withMasters Text replacement includes master slides.
|
|
2746
|
+
* @param password Document password.
|
|
2747
|
+
* @param folder Document folder.
|
|
2748
|
+
* @param storage Document storage.
|
|
2749
|
+
*/
|
|
2750
|
+
replaceTextFormatting(name: string, oldValue: string, newValue: string, portionFormat?: model.PortionFormat, withMasters?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2751
|
+
response: http.ServerResponse;
|
|
2752
|
+
body: model.Document;
|
|
2753
|
+
}>;
|
|
2754
|
+
/**
|
|
2755
|
+
* Finds and replaces text in presentation with given format.
|
|
2756
|
+
* @param document Document data.
|
|
2757
|
+
* @param oldValue Text value to be replaced.
|
|
2758
|
+
* @param newValue Text value to replace with.
|
|
2759
|
+
* @param portionFormat Portion format.
|
|
2760
|
+
* @param withMasters Text replacement includes master slides.
|
|
2761
|
+
* @param password Document password.
|
|
2762
|
+
*/
|
|
2763
|
+
replaceTextFormattingOnline(document: Readable, oldValue: string, newValue: string, portionFormat?: model.PortionFormat, withMasters?: boolean, password?: string): Promise<{
|
|
2764
|
+
response: http.ServerResponse;
|
|
2765
|
+
body: Buffer;
|
|
2766
|
+
}>;
|
|
2716
2767
|
/**
|
|
2717
2768
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2718
2769
|
* @param name Document name.
|
|
@@ -3555,7 +3606,7 @@ export declare class SlidesApi {
|
|
|
3555
3606
|
* @param folder Document folder.
|
|
3556
3607
|
* @param storage Document storage.
|
|
3557
3608
|
*/
|
|
3558
|
-
updateVbaModule(name: string, moduleIndex: number, moduleDto
|
|
3609
|
+
updateVbaModule(name: string, moduleIndex: number, moduleDto: model.VbaModule, password?: string, folder?: string, storage?: string): Promise<{
|
|
3559
3610
|
response: http.ServerResponse;
|
|
3560
3611
|
body: model.VbaModule;
|
|
3561
3612
|
}>;
|
package/api.js
CHANGED
|
@@ -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.
|
|
@@ -8822,6 +8904,99 @@ class SlidesApi {
|
|
|
8822
8904
|
return Promise.resolve({ body: result, response });
|
|
8823
8905
|
});
|
|
8824
8906
|
}
|
|
8907
|
+
/**
|
|
8908
|
+
* Finds and replaces text in presentation with given format.
|
|
8909
|
+
* @param name Document name.
|
|
8910
|
+
* @param oldValue Text value to be replaced.
|
|
8911
|
+
* @param newValue Text value to replace with.
|
|
8912
|
+
* @param portionFormat Portion format.
|
|
8913
|
+
* @param withMasters Text replacement includes master slides.
|
|
8914
|
+
* @param password Document password.
|
|
8915
|
+
* @param folder Document folder.
|
|
8916
|
+
* @param storage Document storage.
|
|
8917
|
+
*/
|
|
8918
|
+
replaceTextFormatting(name, oldValue, newValue, portionFormat = null, withMasters = null, password = null, folder = null, storage = null) {
|
|
8919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8920
|
+
// verify required parameter 'name' is not null or undefined
|
|
8921
|
+
if (name === null || name === undefined) {
|
|
8922
|
+
throw new Error('The required parameter "name" was null or undefined when calling replaceTextFormatting.');
|
|
8923
|
+
}
|
|
8924
|
+
// verify required parameter 'oldValue' is not null or undefined
|
|
8925
|
+
if (oldValue === null || oldValue === undefined) {
|
|
8926
|
+
throw new Error('The required parameter "oldValue" was null or undefined when calling replaceTextFormatting.');
|
|
8927
|
+
}
|
|
8928
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8929
|
+
if (newValue === null || newValue === undefined) {
|
|
8930
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replaceTextFormatting.');
|
|
8931
|
+
}
|
|
8932
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/replaceTextFormatting";
|
|
8933
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8934
|
+
const queryParameters = {};
|
|
8935
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8936
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8937
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "withMasters", withMasters);
|
|
8938
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8939
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8940
|
+
const requestOptions = {
|
|
8941
|
+
method: "POST",
|
|
8942
|
+
headers: {},
|
|
8943
|
+
url: localVarPath,
|
|
8944
|
+
data: portionFormat,
|
|
8945
|
+
params: queryParameters
|
|
8946
|
+
};
|
|
8947
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8948
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8949
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Document");
|
|
8950
|
+
return Promise.resolve({ body: result, response });
|
|
8951
|
+
});
|
|
8952
|
+
}
|
|
8953
|
+
/**
|
|
8954
|
+
* Finds and replaces text in presentation with given format.
|
|
8955
|
+
* @param document Document data.
|
|
8956
|
+
* @param oldValue Text value to be replaced.
|
|
8957
|
+
* @param newValue Text value to replace with.
|
|
8958
|
+
* @param portionFormat Portion format.
|
|
8959
|
+
* @param withMasters Text replacement includes master slides.
|
|
8960
|
+
* @param password Document password.
|
|
8961
|
+
*/
|
|
8962
|
+
replaceTextFormattingOnline(document, oldValue, newValue, portionFormat = null, withMasters = null, password = null) {
|
|
8963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8964
|
+
// verify required parameter 'document' is not null or undefined
|
|
8965
|
+
if (document === null || document === undefined) {
|
|
8966
|
+
throw new Error('The required parameter "document" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8967
|
+
}
|
|
8968
|
+
// verify required parameter 'oldValue' is not null or undefined
|
|
8969
|
+
if (oldValue === null || oldValue === undefined) {
|
|
8970
|
+
throw new Error('The required parameter "oldValue" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8971
|
+
}
|
|
8972
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8973
|
+
if (newValue === null || newValue === undefined) {
|
|
8974
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8975
|
+
}
|
|
8976
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/replaceTextFormatting";
|
|
8977
|
+
const queryParameters = {};
|
|
8978
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8979
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8980
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "withMasters", withMasters);
|
|
8981
|
+
const requestOptions = {
|
|
8982
|
+
method: "POST",
|
|
8983
|
+
headers: {},
|
|
8984
|
+
url: localVarPath,
|
|
8985
|
+
data: portionFormat,
|
|
8986
|
+
responseType: 'arraybuffer',
|
|
8987
|
+
params: queryParameters
|
|
8988
|
+
};
|
|
8989
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8990
|
+
let localVarFiles = [];
|
|
8991
|
+
if (document != null) {
|
|
8992
|
+
localVarFiles.push(document);
|
|
8993
|
+
}
|
|
8994
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8995
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8996
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
8997
|
+
return Promise.resolve({ body: result, response });
|
|
8998
|
+
});
|
|
8999
|
+
}
|
|
8825
9000
|
/**
|
|
8826
9001
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
8827
9002
|
* @param name Document name.
|
|
@@ -11745,7 +11920,7 @@ class SlidesApi {
|
|
|
11745
11920
|
* @param folder Document folder.
|
|
11746
11921
|
* @param storage Document storage.
|
|
11747
11922
|
*/
|
|
11748
|
-
updateVbaModule(name, moduleIndex, moduleDto
|
|
11923
|
+
updateVbaModule(name, moduleIndex, moduleDto, password = null, folder = null, storage = null) {
|
|
11749
11924
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11750
11925
|
// verify required parameter 'name' is not null or undefined
|
|
11751
11926
|
if (name === null || name === undefined) {
|
|
@@ -11755,6 +11930,10 @@ class SlidesApi {
|
|
|
11755
11930
|
if (moduleIndex === null || moduleIndex === undefined) {
|
|
11756
11931
|
throw new Error('The required parameter "moduleIndex" was null or undefined when calling updateVbaModule.');
|
|
11757
11932
|
}
|
|
11933
|
+
// verify required parameter 'moduleDto' is not null or undefined
|
|
11934
|
+
if (moduleDto === null || moduleDto === undefined) {
|
|
11935
|
+
throw new Error('The required parameter "moduleDto" was null or undefined when calling updateVbaModule.');
|
|
11936
|
+
}
|
|
11758
11937
|
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/vbaProject/modules/{moduleIndex}";
|
|
11759
11938
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11760
11939
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "moduleIndex", objectSerializer_1.ObjectSerializer.toString(moduleIndex));
|
|
@@ -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.9.0";
|
|
161
161
|
if (configuration.timeout) {
|
|
162
162
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
163
163
|
}
|
package/model.d.ts
CHANGED
|
@@ -2365,6 +2365,18 @@ export declare class Effect {
|
|
|
2365
2365
|
* This attribute specifies if the animation effect stops the previous sound.
|
|
2366
2366
|
*/
|
|
2367
2367
|
stopPreviousSound?: boolean;
|
|
2368
|
+
/**
|
|
2369
|
+
* This attribute specifies if the effect will rewind when done playing.
|
|
2370
|
+
*/
|
|
2371
|
+
rewind?: boolean;
|
|
2372
|
+
/**
|
|
2373
|
+
* Defined an after animation color for effect.
|
|
2374
|
+
*/
|
|
2375
|
+
afterAnimationType?: Effect.AfterAnimationTypeEnum;
|
|
2376
|
+
/**
|
|
2377
|
+
* Defined an after animation color for effect. Applied when the AfterAnimationType property is set to Color.
|
|
2378
|
+
*/
|
|
2379
|
+
afterAnimationColor?: string;
|
|
2368
2380
|
}
|
|
2369
2381
|
export declare namespace Effect {
|
|
2370
2382
|
enum TypeEnum {
|
|
@@ -2595,6 +2607,12 @@ export declare namespace Effect {
|
|
|
2595
2607
|
Never,
|
|
2596
2608
|
NotDefined
|
|
2597
2609
|
}
|
|
2610
|
+
enum AfterAnimationTypeEnum {
|
|
2611
|
+
DoNotDim,
|
|
2612
|
+
Color,
|
|
2613
|
+
HideAfterAnimation,
|
|
2614
|
+
HideOnNextMouseClick
|
|
2615
|
+
}
|
|
2598
2616
|
}
|
|
2599
2617
|
/**
|
|
2600
2618
|
* Effect format
|
|
@@ -8128,6 +8146,14 @@ export declare class VideoFrame extends GeometryShape {
|
|
|
8128
8146
|
* Picture fill format.
|
|
8129
8147
|
*/
|
|
8130
8148
|
pictureFillFormat?: PictureFill;
|
|
8149
|
+
/**
|
|
8150
|
+
* Trim start [ms]
|
|
8151
|
+
*/
|
|
8152
|
+
trimFromStart?: number;
|
|
8153
|
+
/**
|
|
8154
|
+
* Trim end [ms]
|
|
8155
|
+
*/
|
|
8156
|
+
trimFromEnd?: number;
|
|
8131
8157
|
}
|
|
8132
8158
|
export declare namespace VideoFrame {
|
|
8133
8159
|
enum PlayModeEnum {
|
package/model.js
CHANGED
|
@@ -1642,6 +1642,13 @@ exports.Effect = Effect;
|
|
|
1642
1642
|
RestartEnum[RestartEnum["Never"] = 'Never'] = "Never";
|
|
1643
1643
|
RestartEnum[RestartEnum["NotDefined"] = 'NotDefined'] = "NotDefined";
|
|
1644
1644
|
})(RestartEnum = Effect.RestartEnum || (Effect.RestartEnum = {}));
|
|
1645
|
+
let AfterAnimationTypeEnum;
|
|
1646
|
+
(function (AfterAnimationTypeEnum) {
|
|
1647
|
+
AfterAnimationTypeEnum[AfterAnimationTypeEnum["DoNotDim"] = 'DoNotDim'] = "DoNotDim";
|
|
1648
|
+
AfterAnimationTypeEnum[AfterAnimationTypeEnum["Color"] = 'Color'] = "Color";
|
|
1649
|
+
AfterAnimationTypeEnum[AfterAnimationTypeEnum["HideAfterAnimation"] = 'HideAfterAnimation'] = "HideAfterAnimation";
|
|
1650
|
+
AfterAnimationTypeEnum[AfterAnimationTypeEnum["HideOnNextMouseClick"] = 'HideOnNextMouseClick'] = "HideOnNextMouseClick";
|
|
1651
|
+
})(AfterAnimationTypeEnum = Effect.AfterAnimationTypeEnum || (Effect.AfterAnimationTypeEnum = {}));
|
|
1645
1652
|
})(Effect = exports.Effect || (exports.Effect = {}));
|
|
1646
1653
|
/**
|
|
1647
1654
|
* Effect format
|