asposeslidescloud 22.4.0 → 22.6.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 +15 -0
- package/api.d.ts +85 -8
- package/api.js +274 -8
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +462 -65
- package/model.js +308 -44
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,21 @@ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/s
|
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
+
## Enhancements in Version 22.6
|
|
31
|
+
* Added ned **GetSubshapeParagraphEffective**, **GetParagraphEffective** and **GetSubshapePortionEffective**, **GetPortionEffective** methods to retrieve actual format values for paragraphs and portions, whether they are inherited from parent entities or not.
|
|
32
|
+
* Password parameter is now optional for **GetProtectionProperties** method. So, you don't need to specify the password to check whether a presentation has a password.
|
|
33
|
+
* Added new **ChartSeriesGroup** class and **SeriesGroups** property to **Chart** class to enable managing chart series groups. Added new **UpdateChartSeriesGroup** method.
|
|
34
|
+
* Added **HasRoundedCorners** property to **Chart** class.
|
|
35
|
+
* Added **InvertIfNegative** property to **OneValueChartDataPoint** class.
|
|
36
|
+
* Changed **FormatScheme** class to return actual format values instead of resource links.
|
|
37
|
+
|
|
38
|
+
## Enhancements in Version 22.5
|
|
39
|
+
* Added **Paragraphs** property to **SmartArtNode** class to enable getting and setting text for SmartArt nodes.
|
|
40
|
+
* Added **ImageTransformList** property to **PictureFill** class to enable setting image transform effects. Added **ImageTransformEffect** class and subclasses for different kind of of effects.
|
|
41
|
+
* Added **PictureFillFormat** property to **VideoFrame** class to enable setting poster image for video frames.
|
|
42
|
+
* Added **SlideIndex** and **ShapeIndex** properties to **ResourceUri** class to simplify retrieveing slide & shape indexes for resources.
|
|
43
|
+
* Removed redundant **BoxAndWhiskersSeries**, **WaterfallSeries** and **WaterfallChartDataPoint** classes.
|
|
44
|
+
|
|
30
45
|
## Enhancements in Version 22.4
|
|
31
46
|
* Added **TransitionType** and **SlidesTransitionDuration** properties to **VideoExportOptions** class to enable creation videos with transitions.
|
|
32
47
|
* Added **DefaultPortionFormat** property to **Paragraph** class. Added new **PortionFormat** class.
|
package/api.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
2
4
|
import http = require("http");
|
|
3
5
|
import { Readable } from 'stream';
|
|
4
6
|
import { Configuration } from "./internal/configuration";
|
|
@@ -1632,8 +1634,8 @@ export declare class SlidesApi {
|
|
|
1632
1634
|
* @param slideIndex Slide index.
|
|
1633
1635
|
* @param format Output file format.
|
|
1634
1636
|
* @param options Export options.
|
|
1635
|
-
* @param width
|
|
1636
|
-
* @param height
|
|
1637
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
1638
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
1637
1639
|
* @param password Document password.
|
|
1638
1640
|
* @param folder Document folder.
|
|
1639
1641
|
* @param storage Document storage.
|
|
@@ -1648,8 +1650,8 @@ export declare class SlidesApi {
|
|
|
1648
1650
|
* @param document Document data.
|
|
1649
1651
|
* @param slideIndex Slide index.
|
|
1650
1652
|
* @param format Output file format.
|
|
1651
|
-
* @param width
|
|
1652
|
-
* @param height
|
|
1653
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
1654
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
1653
1655
|
* @param password Document password.
|
|
1654
1656
|
* @param storage Document storage.
|
|
1655
1657
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -1932,6 +1934,20 @@ export declare class SlidesApi {
|
|
|
1932
1934
|
response: http.ServerResponse;
|
|
1933
1935
|
body: model.Paragraph;
|
|
1934
1936
|
}>;
|
|
1937
|
+
/**
|
|
1938
|
+
* Read effective paragraph info.
|
|
1939
|
+
* @param name Document name.
|
|
1940
|
+
* @param slideIndex Slide index.
|
|
1941
|
+
* @param shapeIndex Shape index.
|
|
1942
|
+
* @param paragraphIndex Paragraph index.
|
|
1943
|
+
* @param password Document password.
|
|
1944
|
+
* @param folder Document folder.
|
|
1945
|
+
* @param storage Document storage.
|
|
1946
|
+
*/
|
|
1947
|
+
getParagraphEffective(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
1948
|
+
response: http.ServerResponse;
|
|
1949
|
+
body: model.Paragraph;
|
|
1950
|
+
}>;
|
|
1935
1951
|
/**
|
|
1936
1952
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
1937
1953
|
* @param name Document name.
|
|
@@ -1999,6 +2015,21 @@ export declare class SlidesApi {
|
|
|
1999
2015
|
response: http.ServerResponse;
|
|
2000
2016
|
body: model.Portion;
|
|
2001
2017
|
}>;
|
|
2018
|
+
/**
|
|
2019
|
+
* Read effective portion info.
|
|
2020
|
+
* @param name Document name.
|
|
2021
|
+
* @param slideIndex Slide index.
|
|
2022
|
+
* @param shapeIndex Shape index.
|
|
2023
|
+
* @param paragraphIndex Paragraph index.
|
|
2024
|
+
* @param portionIndex Portion index.
|
|
2025
|
+
* @param password Document password.
|
|
2026
|
+
* @param folder Document folder.
|
|
2027
|
+
* @param storage Document storage.
|
|
2028
|
+
*/
|
|
2029
|
+
getPortionEffective(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2030
|
+
response: http.ServerResponse;
|
|
2031
|
+
body: model.Portion;
|
|
2032
|
+
}>;
|
|
2002
2033
|
/**
|
|
2003
2034
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
2004
2035
|
* @param name Document name.
|
|
@@ -2430,6 +2461,21 @@ export declare class SlidesApi {
|
|
|
2430
2461
|
response: http.ServerResponse;
|
|
2431
2462
|
body: model.Paragraph;
|
|
2432
2463
|
}>;
|
|
2464
|
+
/**
|
|
2465
|
+
* Read effective paragraph info (for smart art and group shapes).
|
|
2466
|
+
* @param name Document name.
|
|
2467
|
+
* @param slideIndex Slide index.
|
|
2468
|
+
* @param path Shape path.
|
|
2469
|
+
* @param shapeIndex Shape index.
|
|
2470
|
+
* @param paragraphIndex Paragraph index.
|
|
2471
|
+
* @param password Document password.
|
|
2472
|
+
* @param folder Document folder.
|
|
2473
|
+
* @param storage Document storage.
|
|
2474
|
+
*/
|
|
2475
|
+
getSubshapeParagraphEffective(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2476
|
+
response: http.ServerResponse;
|
|
2477
|
+
body: model.Paragraph;
|
|
2478
|
+
}>;
|
|
2433
2479
|
/**
|
|
2434
2480
|
* Read shape paragraphs info (for smart art and group shapes).
|
|
2435
2481
|
* @param name Document name.
|
|
@@ -2460,6 +2506,22 @@ export declare class SlidesApi {
|
|
|
2460
2506
|
response: http.ServerResponse;
|
|
2461
2507
|
body: model.Portion;
|
|
2462
2508
|
}>;
|
|
2509
|
+
/**
|
|
2510
|
+
* Read effective portion info (for smart art and group shapes).
|
|
2511
|
+
* @param name Document name.
|
|
2512
|
+
* @param slideIndex Slide index.
|
|
2513
|
+
* @param path Shape path.
|
|
2514
|
+
* @param shapeIndex Shape index.
|
|
2515
|
+
* @param paragraphIndex Paragraph index.
|
|
2516
|
+
* @param portionIndex Portion index.
|
|
2517
|
+
* @param password Document password.
|
|
2518
|
+
* @param folder Document folder.
|
|
2519
|
+
* @param storage Document storage.
|
|
2520
|
+
*/
|
|
2521
|
+
getSubshapePortionEffective(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2522
|
+
response: http.ServerResponse;
|
|
2523
|
+
body: model.Portion;
|
|
2524
|
+
}>;
|
|
2463
2525
|
/**
|
|
2464
2526
|
* Read paragraph portions info (for smart art and group shapes).
|
|
2465
2527
|
* @param name Document name.
|
|
@@ -2842,8 +2904,8 @@ export declare class SlidesApi {
|
|
|
2842
2904
|
* @param format Output file format.
|
|
2843
2905
|
* @param outPath Path to upload the output file to.
|
|
2844
2906
|
* @param options Export options.
|
|
2845
|
-
* @param width
|
|
2846
|
-
* @param height
|
|
2907
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
2908
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
2847
2909
|
* @param password Document password.
|
|
2848
2910
|
* @param folder Document folder.
|
|
2849
2911
|
* @param storage Document storage.
|
|
@@ -2858,8 +2920,8 @@ export declare class SlidesApi {
|
|
|
2858
2920
|
* @param slideIndex Slide index.
|
|
2859
2921
|
* @param format Output file format.
|
|
2860
2922
|
* @param outPath Path to save result.
|
|
2861
|
-
* @param width
|
|
2862
|
-
* @param height
|
|
2923
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
2924
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
2863
2925
|
* @param password Document password.
|
|
2864
2926
|
* @param storage Document storage.
|
|
2865
2927
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -3252,6 +3314,21 @@ export declare class SlidesApi {
|
|
|
3252
3314
|
response: http.ServerResponse;
|
|
3253
3315
|
body: model.Chart;
|
|
3254
3316
|
}>;
|
|
3317
|
+
/**
|
|
3318
|
+
* Update a series group in a chart.
|
|
3319
|
+
* @param name Document name.
|
|
3320
|
+
* @param slideIndex Slide index.
|
|
3321
|
+
* @param shapeIndex Shape index (must be a chart).
|
|
3322
|
+
* @param seriesGroupIndex Series group index.
|
|
3323
|
+
* @param seriesGroup Series group DTO.
|
|
3324
|
+
* @param password Document password.
|
|
3325
|
+
* @param folder Document folder.
|
|
3326
|
+
* @param storage Document storage.
|
|
3327
|
+
*/
|
|
3328
|
+
updateChartSeriesGroup(name: string, slideIndex: number, shapeIndex: number, seriesGroupIndex: number, seriesGroup: model.ChartSeriesGroup, password?: string, folder?: string, storage?: string): Promise<{
|
|
3329
|
+
response: http.ServerResponse;
|
|
3330
|
+
body: model.Chart;
|
|
3331
|
+
}>;
|
|
3255
3332
|
/**
|
|
3256
3333
|
* Update a layoutSlide.
|
|
3257
3334
|
* @param name Document name.
|
package/api.js
CHANGED
|
@@ -5487,8 +5487,8 @@ class SlidesApi {
|
|
|
5487
5487
|
* @param slideIndex Slide index.
|
|
5488
5488
|
* @param format Output file format.
|
|
5489
5489
|
* @param options Export options.
|
|
5490
|
-
* @param width
|
|
5491
|
-
* @param height
|
|
5490
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5491
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5492
5492
|
* @param password Document password.
|
|
5493
5493
|
* @param folder Document folder.
|
|
5494
5494
|
* @param storage Document storage.
|
|
@@ -5541,8 +5541,8 @@ class SlidesApi {
|
|
|
5541
5541
|
* @param document Document data.
|
|
5542
5542
|
* @param slideIndex Slide index.
|
|
5543
5543
|
* @param format Output file format.
|
|
5544
|
-
* @param width
|
|
5545
|
-
* @param height
|
|
5544
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5545
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5546
5546
|
* @param password Document password.
|
|
5547
5547
|
* @param storage Document storage.
|
|
5548
5548
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -6453,6 +6453,55 @@ class SlidesApi {
|
|
|
6453
6453
|
return Promise.resolve({ body: result, response });
|
|
6454
6454
|
});
|
|
6455
6455
|
}
|
|
6456
|
+
/**
|
|
6457
|
+
* Read effective paragraph info.
|
|
6458
|
+
* @param name Document name.
|
|
6459
|
+
* @param slideIndex Slide index.
|
|
6460
|
+
* @param shapeIndex Shape index.
|
|
6461
|
+
* @param paragraphIndex Paragraph index.
|
|
6462
|
+
* @param password Document password.
|
|
6463
|
+
* @param folder Document folder.
|
|
6464
|
+
* @param storage Document storage.
|
|
6465
|
+
*/
|
|
6466
|
+
getParagraphEffective(name, slideIndex, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
6467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6468
|
+
// verify required parameter 'name' is not null or undefined
|
|
6469
|
+
if (name === null || name === undefined) {
|
|
6470
|
+
throw new Error('The required parameter "name" was null or undefined when calling getParagraphEffective.');
|
|
6471
|
+
}
|
|
6472
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6473
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6474
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getParagraphEffective.');
|
|
6475
|
+
}
|
|
6476
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6477
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6478
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getParagraphEffective.');
|
|
6479
|
+
}
|
|
6480
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6481
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6482
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getParagraphEffective.');
|
|
6483
|
+
}
|
|
6484
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
6485
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6486
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6487
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6488
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6489
|
+
const queryParameters = {};
|
|
6490
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6491
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6492
|
+
const requestOptions = {
|
|
6493
|
+
method: "GET",
|
|
6494
|
+
qs: queryParameters,
|
|
6495
|
+
headers: {},
|
|
6496
|
+
uri: localVarPath,
|
|
6497
|
+
json: true
|
|
6498
|
+
};
|
|
6499
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6500
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6501
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
6502
|
+
return Promise.resolve({ body: result, response });
|
|
6503
|
+
});
|
|
6504
|
+
}
|
|
6456
6505
|
/**
|
|
6457
6506
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6458
6507
|
* @param name Document name.
|
|
@@ -6680,6 +6729,61 @@ class SlidesApi {
|
|
|
6680
6729
|
return Promise.resolve({ body: result, response });
|
|
6681
6730
|
});
|
|
6682
6731
|
}
|
|
6732
|
+
/**
|
|
6733
|
+
* Read effective portion info.
|
|
6734
|
+
* @param name Document name.
|
|
6735
|
+
* @param slideIndex Slide index.
|
|
6736
|
+
* @param shapeIndex Shape index.
|
|
6737
|
+
* @param paragraphIndex Paragraph index.
|
|
6738
|
+
* @param portionIndex Portion index.
|
|
6739
|
+
* @param password Document password.
|
|
6740
|
+
* @param folder Document folder.
|
|
6741
|
+
* @param storage Document storage.
|
|
6742
|
+
*/
|
|
6743
|
+
getPortionEffective(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
6744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6745
|
+
// verify required parameter 'name' is not null or undefined
|
|
6746
|
+
if (name === null || name === undefined) {
|
|
6747
|
+
throw new Error('The required parameter "name" was null or undefined when calling getPortionEffective.');
|
|
6748
|
+
}
|
|
6749
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6750
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6751
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getPortionEffective.');
|
|
6752
|
+
}
|
|
6753
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6754
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6755
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getPortionEffective.');
|
|
6756
|
+
}
|
|
6757
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6758
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6759
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getPortionEffective.');
|
|
6760
|
+
}
|
|
6761
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
6762
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
6763
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getPortionEffective.');
|
|
6764
|
+
}
|
|
6765
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
6766
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6767
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6768
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6769
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6770
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
6771
|
+
const queryParameters = {};
|
|
6772
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6773
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6774
|
+
const requestOptions = {
|
|
6775
|
+
method: "GET",
|
|
6776
|
+
qs: queryParameters,
|
|
6777
|
+
headers: {},
|
|
6778
|
+
uri: localVarPath,
|
|
6779
|
+
json: true
|
|
6780
|
+
};
|
|
6781
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6782
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6783
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
6784
|
+
return Promise.resolve({ body: result, response });
|
|
6785
|
+
});
|
|
6786
|
+
}
|
|
6683
6787
|
/**
|
|
6684
6788
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6685
6789
|
* @param name Document name.
|
|
@@ -8150,6 +8254,57 @@ class SlidesApi {
|
|
|
8150
8254
|
return Promise.resolve({ body: result, response });
|
|
8151
8255
|
});
|
|
8152
8256
|
}
|
|
8257
|
+
/**
|
|
8258
|
+
* Read effective paragraph info (for smart art and group shapes).
|
|
8259
|
+
* @param name Document name.
|
|
8260
|
+
* @param slideIndex Slide index.
|
|
8261
|
+
* @param path Shape path.
|
|
8262
|
+
* @param shapeIndex Shape index.
|
|
8263
|
+
* @param paragraphIndex Paragraph index.
|
|
8264
|
+
* @param password Document password.
|
|
8265
|
+
* @param folder Document folder.
|
|
8266
|
+
* @param storage Document storage.
|
|
8267
|
+
*/
|
|
8268
|
+
getSubshapeParagraphEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
8269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8270
|
+
// verify required parameter 'name' is not null or undefined
|
|
8271
|
+
if (name === null || name === undefined) {
|
|
8272
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8273
|
+
}
|
|
8274
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8275
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8276
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8277
|
+
}
|
|
8278
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8279
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8280
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8281
|
+
}
|
|
8282
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8283
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8284
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8285
|
+
}
|
|
8286
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
8287
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8288
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8289
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8290
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8291
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8292
|
+
const queryParameters = {};
|
|
8293
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8294
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8295
|
+
const requestOptions = {
|
|
8296
|
+
method: "GET",
|
|
8297
|
+
qs: queryParameters,
|
|
8298
|
+
headers: {},
|
|
8299
|
+
uri: localVarPath,
|
|
8300
|
+
json: true
|
|
8301
|
+
};
|
|
8302
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8303
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8304
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
8305
|
+
return Promise.resolve({ body: result, response });
|
|
8306
|
+
});
|
|
8307
|
+
}
|
|
8153
8308
|
/**
|
|
8154
8309
|
* Read shape paragraphs info (for smart art and group shapes).
|
|
8155
8310
|
* @param name Document name.
|
|
@@ -8252,6 +8407,63 @@ class SlidesApi {
|
|
|
8252
8407
|
return Promise.resolve({ body: result, response });
|
|
8253
8408
|
});
|
|
8254
8409
|
}
|
|
8410
|
+
/**
|
|
8411
|
+
* Read effective portion info (for smart art and group shapes).
|
|
8412
|
+
* @param name Document name.
|
|
8413
|
+
* @param slideIndex Slide index.
|
|
8414
|
+
* @param path Shape path.
|
|
8415
|
+
* @param shapeIndex Shape index.
|
|
8416
|
+
* @param paragraphIndex Paragraph index.
|
|
8417
|
+
* @param portionIndex Portion index.
|
|
8418
|
+
* @param password Document password.
|
|
8419
|
+
* @param folder Document folder.
|
|
8420
|
+
* @param storage Document storage.
|
|
8421
|
+
*/
|
|
8422
|
+
getSubshapePortionEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
8423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8424
|
+
// verify required parameter 'name' is not null or undefined
|
|
8425
|
+
if (name === null || name === undefined) {
|
|
8426
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapePortionEffective.');
|
|
8427
|
+
}
|
|
8428
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8429
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8430
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8431
|
+
}
|
|
8432
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8433
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8434
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8435
|
+
}
|
|
8436
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8437
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8438
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8439
|
+
}
|
|
8440
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
8441
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
8442
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8443
|
+
}
|
|
8444
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
8445
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8446
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8447
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8448
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8449
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8450
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
8451
|
+
const queryParameters = {};
|
|
8452
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8453
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8454
|
+
const requestOptions = {
|
|
8455
|
+
method: "GET",
|
|
8456
|
+
qs: queryParameters,
|
|
8457
|
+
headers: {},
|
|
8458
|
+
uri: localVarPath,
|
|
8459
|
+
json: true
|
|
8460
|
+
};
|
|
8461
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8462
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8463
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
8464
|
+
return Promise.resolve({ body: result, response });
|
|
8465
|
+
});
|
|
8466
|
+
}
|
|
8255
8467
|
/**
|
|
8256
8468
|
* Read paragraph portions info (for smart art and group shapes).
|
|
8257
8469
|
* @param name Document name.
|
|
@@ -9505,8 +9717,8 @@ class SlidesApi {
|
|
|
9505
9717
|
* @param format Output file format.
|
|
9506
9718
|
* @param outPath Path to upload the output file to.
|
|
9507
9719
|
* @param options Export options.
|
|
9508
|
-
* @param width
|
|
9509
|
-
* @param height
|
|
9720
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9721
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9510
9722
|
* @param password Document password.
|
|
9511
9723
|
* @param folder Document folder.
|
|
9512
9724
|
* @param storage Document storage.
|
|
@@ -9563,8 +9775,8 @@ class SlidesApi {
|
|
|
9563
9775
|
* @param slideIndex Slide index.
|
|
9564
9776
|
* @param format Output file format.
|
|
9565
9777
|
* @param outPath Path to save result.
|
|
9566
|
-
* @param width
|
|
9567
|
-
* @param height
|
|
9778
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9779
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9568
9780
|
* @param password Document password.
|
|
9569
9781
|
* @param storage Document storage.
|
|
9570
9782
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -10913,6 +11125,60 @@ class SlidesApi {
|
|
|
10913
11125
|
return Promise.resolve({ body: result, response });
|
|
10914
11126
|
});
|
|
10915
11127
|
}
|
|
11128
|
+
/**
|
|
11129
|
+
* Update a series group in a chart.
|
|
11130
|
+
* @param name Document name.
|
|
11131
|
+
* @param slideIndex Slide index.
|
|
11132
|
+
* @param shapeIndex Shape index (must be a chart).
|
|
11133
|
+
* @param seriesGroupIndex Series group index.
|
|
11134
|
+
* @param seriesGroup Series group DTO.
|
|
11135
|
+
* @param password Document password.
|
|
11136
|
+
* @param folder Document folder.
|
|
11137
|
+
* @param storage Document storage.
|
|
11138
|
+
*/
|
|
11139
|
+
updateChartSeriesGroup(name, slideIndex, shapeIndex, seriesGroupIndex, seriesGroup, password = null, folder = null, storage = null) {
|
|
11140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11141
|
+
// verify required parameter 'name' is not null or undefined
|
|
11142
|
+
if (name === null || name === undefined) {
|
|
11143
|
+
throw new Error('The required parameter "name" was null or undefined when calling updateChartSeriesGroup.');
|
|
11144
|
+
}
|
|
11145
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
11146
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
11147
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling updateChartSeriesGroup.');
|
|
11148
|
+
}
|
|
11149
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
11150
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
11151
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling updateChartSeriesGroup.');
|
|
11152
|
+
}
|
|
11153
|
+
// verify required parameter 'seriesGroupIndex' is not null or undefined
|
|
11154
|
+
if (seriesGroupIndex === null || seriesGroupIndex === undefined) {
|
|
11155
|
+
throw new Error('The required parameter "seriesGroupIndex" was null or undefined when calling updateChartSeriesGroup.');
|
|
11156
|
+
}
|
|
11157
|
+
// verify required parameter 'seriesGroup' is not null or undefined
|
|
11158
|
+
if (seriesGroup === null || seriesGroup === undefined) {
|
|
11159
|
+
throw new Error('The required parameter "seriesGroup" was null or undefined when calling updateChartSeriesGroup.');
|
|
11160
|
+
}
|
|
11161
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/seriesGroup/{seriesGroupIndex}";
|
|
11162
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11163
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
11164
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
11165
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "seriesGroupIndex", objectSerializer_1.ObjectSerializer.toString(seriesGroupIndex));
|
|
11166
|
+
const queryParameters = {};
|
|
11167
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
11168
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
11169
|
+
const requestOptions = {
|
|
11170
|
+
method: "PUT",
|
|
11171
|
+
qs: queryParameters,
|
|
11172
|
+
headers: {},
|
|
11173
|
+
uri: localVarPath,
|
|
11174
|
+
json: seriesGroup
|
|
11175
|
+
};
|
|
11176
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
11177
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
11178
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Chart");
|
|
11179
|
+
return Promise.resolve({ body: result, response });
|
|
11180
|
+
});
|
|
11181
|
+
}
|
|
10916
11182
|
/**
|
|
10917
11183
|
* Update a layoutSlide.
|
|
10918
11184
|
* @param name Document name.
|
|
@@ -146,7 +146,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
|
|
|
146
146
|
if (!requestOptions.headers) {
|
|
147
147
|
requestOptions.headers = {};
|
|
148
148
|
}
|
|
149
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.
|
|
149
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.6.0";
|
|
150
150
|
if (confguration.timeout) {
|
|
151
151
|
requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
|
|
152
152
|
}
|