asposeslidescloud 23.6.0 → 23.7.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 +6 -0
- package/api.d.ts +29 -1
- package/api.js +98 -1
- 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,12 @@ 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.7
|
|
31
|
+
|
|
32
|
+
* New methods **ReplaceTextFormatting** and **ReplaceTextFormatting** allow to replace text with formatting.
|
|
33
|
+
* Added **AfterAnimationType**, **Rewind** and **AfterAnimationColor** methods to **Effect** class.
|
|
34
|
+
* Added **TrimFromStart** and **TrimFromEnd** methods to **VideoFrame** class.
|
|
35
|
+
|
|
30
36
|
## Enhancements in Version 23.6
|
|
31
37
|
|
|
32
38
|
* 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
|
@@ -2713,6 +2713,34 @@ export declare class SlidesApi {
|
|
|
2713
2713
|
response: http.ServerResponse;
|
|
2714
2714
|
body: Buffer;
|
|
2715
2715
|
}>;
|
|
2716
|
+
/**
|
|
2717
|
+
* Finds and replaces text in presentation with given format.
|
|
2718
|
+
* @param name Document name.
|
|
2719
|
+
* @param oldValue Text value to be replaced.
|
|
2720
|
+
* @param newValue Text value to replace with.
|
|
2721
|
+
* @param portionFormat Portion format.
|
|
2722
|
+
* @param withMasters Text replacement includes master slides.
|
|
2723
|
+
* @param password Document password.
|
|
2724
|
+
* @param folder Document folder.
|
|
2725
|
+
* @param storage Document storage.
|
|
2726
|
+
*/
|
|
2727
|
+
replaceTextFormatting(name: string, oldValue: string, newValue: string, portionFormat?: model.PortionFormat, withMasters?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2728
|
+
response: http.ServerResponse;
|
|
2729
|
+
body: model.Document;
|
|
2730
|
+
}>;
|
|
2731
|
+
/**
|
|
2732
|
+
* Finds and replaces text in presentation with given format.
|
|
2733
|
+
* @param document Document data.
|
|
2734
|
+
* @param oldValue Text value to be replaced.
|
|
2735
|
+
* @param newValue Text value to replace with.
|
|
2736
|
+
* @param portionFormat Portion format.
|
|
2737
|
+
* @param withMasters Text replacement includes master slides.
|
|
2738
|
+
* @param password Document password.
|
|
2739
|
+
*/
|
|
2740
|
+
replaceTextFormattingOnline(document: Readable, oldValue: string, newValue: string, portionFormat?: model.PortionFormat, withMasters?: boolean, password?: string): Promise<{
|
|
2741
|
+
response: http.ServerResponse;
|
|
2742
|
+
body: Buffer;
|
|
2743
|
+
}>;
|
|
2716
2744
|
/**
|
|
2717
2745
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2718
2746
|
* @param name Document name.
|
|
@@ -3555,7 +3583,7 @@ export declare class SlidesApi {
|
|
|
3555
3583
|
* @param folder Document folder.
|
|
3556
3584
|
* @param storage Document storage.
|
|
3557
3585
|
*/
|
|
3558
|
-
updateVbaModule(name: string, moduleIndex: number, moduleDto
|
|
3586
|
+
updateVbaModule(name: string, moduleIndex: number, moduleDto: model.VbaModule, password?: string, folder?: string, storage?: string): Promise<{
|
|
3559
3587
|
response: http.ServerResponse;
|
|
3560
3588
|
body: model.VbaModule;
|
|
3561
3589
|
}>;
|
package/api.js
CHANGED
|
@@ -8822,6 +8822,99 @@ class SlidesApi {
|
|
|
8822
8822
|
return Promise.resolve({ body: result, response });
|
|
8823
8823
|
});
|
|
8824
8824
|
}
|
|
8825
|
+
/**
|
|
8826
|
+
* Finds and replaces text in presentation with given format.
|
|
8827
|
+
* @param name Document name.
|
|
8828
|
+
* @param oldValue Text value to be replaced.
|
|
8829
|
+
* @param newValue Text value to replace with.
|
|
8830
|
+
* @param portionFormat Portion format.
|
|
8831
|
+
* @param withMasters Text replacement includes master slides.
|
|
8832
|
+
* @param password Document password.
|
|
8833
|
+
* @param folder Document folder.
|
|
8834
|
+
* @param storage Document storage.
|
|
8835
|
+
*/
|
|
8836
|
+
replaceTextFormatting(name, oldValue, newValue, portionFormat = null, withMasters = null, password = null, folder = null, storage = null) {
|
|
8837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8838
|
+
// verify required parameter 'name' is not null or undefined
|
|
8839
|
+
if (name === null || name === undefined) {
|
|
8840
|
+
throw new Error('The required parameter "name" was null or undefined when calling replaceTextFormatting.');
|
|
8841
|
+
}
|
|
8842
|
+
// verify required parameter 'oldValue' is not null or undefined
|
|
8843
|
+
if (oldValue === null || oldValue === undefined) {
|
|
8844
|
+
throw new Error('The required parameter "oldValue" was null or undefined when calling replaceTextFormatting.');
|
|
8845
|
+
}
|
|
8846
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8847
|
+
if (newValue === null || newValue === undefined) {
|
|
8848
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replaceTextFormatting.');
|
|
8849
|
+
}
|
|
8850
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/replaceTextFormatting";
|
|
8851
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8852
|
+
const queryParameters = {};
|
|
8853
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8854
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8855
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "withMasters", withMasters);
|
|
8856
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8857
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8858
|
+
const requestOptions = {
|
|
8859
|
+
method: "POST",
|
|
8860
|
+
headers: {},
|
|
8861
|
+
url: localVarPath,
|
|
8862
|
+
data: portionFormat,
|
|
8863
|
+
params: queryParameters
|
|
8864
|
+
};
|
|
8865
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8866
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8867
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Document");
|
|
8868
|
+
return Promise.resolve({ body: result, response });
|
|
8869
|
+
});
|
|
8870
|
+
}
|
|
8871
|
+
/**
|
|
8872
|
+
* Finds and replaces text in presentation with given format.
|
|
8873
|
+
* @param document Document data.
|
|
8874
|
+
* @param oldValue Text value to be replaced.
|
|
8875
|
+
* @param newValue Text value to replace with.
|
|
8876
|
+
* @param portionFormat Portion format.
|
|
8877
|
+
* @param withMasters Text replacement includes master slides.
|
|
8878
|
+
* @param password Document password.
|
|
8879
|
+
*/
|
|
8880
|
+
replaceTextFormattingOnline(document, oldValue, newValue, portionFormat = null, withMasters = null, password = null) {
|
|
8881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8882
|
+
// verify required parameter 'document' is not null or undefined
|
|
8883
|
+
if (document === null || document === undefined) {
|
|
8884
|
+
throw new Error('The required parameter "document" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8885
|
+
}
|
|
8886
|
+
// verify required parameter 'oldValue' is not null or undefined
|
|
8887
|
+
if (oldValue === null || oldValue === undefined) {
|
|
8888
|
+
throw new Error('The required parameter "oldValue" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8889
|
+
}
|
|
8890
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8891
|
+
if (newValue === null || newValue === undefined) {
|
|
8892
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replaceTextFormattingOnline.');
|
|
8893
|
+
}
|
|
8894
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/replaceTextFormatting";
|
|
8895
|
+
const queryParameters = {};
|
|
8896
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8897
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8898
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "withMasters", withMasters);
|
|
8899
|
+
const requestOptions = {
|
|
8900
|
+
method: "POST",
|
|
8901
|
+
headers: {},
|
|
8902
|
+
url: localVarPath,
|
|
8903
|
+
data: portionFormat,
|
|
8904
|
+
responseType: 'arraybuffer',
|
|
8905
|
+
params: queryParameters
|
|
8906
|
+
};
|
|
8907
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8908
|
+
let localVarFiles = [];
|
|
8909
|
+
if (document != null) {
|
|
8910
|
+
localVarFiles.push(document);
|
|
8911
|
+
}
|
|
8912
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8913
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8914
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
8915
|
+
return Promise.resolve({ body: result, response });
|
|
8916
|
+
});
|
|
8917
|
+
}
|
|
8825
8918
|
/**
|
|
8826
8919
|
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
8827
8920
|
* @param name Document name.
|
|
@@ -11745,7 +11838,7 @@ class SlidesApi {
|
|
|
11745
11838
|
* @param folder Document folder.
|
|
11746
11839
|
* @param storage Document storage.
|
|
11747
11840
|
*/
|
|
11748
|
-
updateVbaModule(name, moduleIndex, moduleDto
|
|
11841
|
+
updateVbaModule(name, moduleIndex, moduleDto, password = null, folder = null, storage = null) {
|
|
11749
11842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11750
11843
|
// verify required parameter 'name' is not null or undefined
|
|
11751
11844
|
if (name === null || name === undefined) {
|
|
@@ -11755,6 +11848,10 @@ class SlidesApi {
|
|
|
11755
11848
|
if (moduleIndex === null || moduleIndex === undefined) {
|
|
11756
11849
|
throw new Error('The required parameter "moduleIndex" was null or undefined when calling updateVbaModule.');
|
|
11757
11850
|
}
|
|
11851
|
+
// verify required parameter 'moduleDto' is not null or undefined
|
|
11852
|
+
if (moduleDto === null || moduleDto === undefined) {
|
|
11853
|
+
throw new Error('The required parameter "moduleDto" was null or undefined when calling updateVbaModule.');
|
|
11854
|
+
}
|
|
11758
11855
|
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/vbaProject/modules/{moduleIndex}";
|
|
11759
11856
|
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11760
11857
|
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.7.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
|