asposeslidescloud 24.6.0 → 24.8.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 +20 -0
- package/api.d.ts +104 -34
- package/api.js +314 -119
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +79 -20
- package/model.js +25 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,26 @@ 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 24.8
|
|
31
|
+
|
|
32
|
+
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
|
33
|
+
* Added **ReplacePresentationRegex** and **ReplacePresentationRegexOnline** methods.
|
|
34
|
+
* Added **HighlightPresentationText** and **HighlightPresentationRegex** methods.
|
|
35
|
+
* Added **OperationError** class; changed **Operation**.**Error** property type from string to **OperationError**.
|
|
36
|
+
* Removed **wholeWordsOnly** parameter from **ReplaceShapeRegex** method.
|
|
37
|
+
|
|
38
|
+
## Enhancements in Version 24.7
|
|
39
|
+
|
|
40
|
+
* Added **TemplatesPath** property to **Html5ExportOptions** class. It enables using custom templates in conversion to Html5 format.
|
|
41
|
+
* Added **GetHtml5Templates** method to retrieve the list of default Html5 templates.
|
|
42
|
+
* Added **Xml** to the list of available export formats.
|
|
43
|
+
* Added **wholeWordsOnly** parameter to **ReplacePresentationText** and **ReplacePresentationTextOnline** methods.
|
|
44
|
+
* Added **GradientStyle** property to **ExportOptions** class.
|
|
45
|
+
* Added **ResterizeUnsupportedFontStyles** property to **PdfExportOptions** class.
|
|
46
|
+
* Added **Zip64Mode** property to **PptxExportOptions** class.
|
|
47
|
+
* Added **Transparency** property to **Table** and **TableCell** class.
|
|
48
|
+
* Removed obsolete **DownloadPortionsAsMathML**, **SavePortionsAsMathML** methods. Use **DownloadMathPortion** and **SaveMathPortion** methods to convert portions to math formats.
|
|
49
|
+
|
|
30
50
|
## Enhancements in Version 24.6
|
|
31
51
|
|
|
32
52
|
* Added **HideInk** and **InterpretMaskOpAsOpacity** properties to **PdfExportOptions** class.
|
package/api.d.ts
CHANGED
|
@@ -1520,21 +1520,6 @@ export declare class SlidesApi {
|
|
|
1520
1520
|
response: http.ServerResponse;
|
|
1521
1521
|
body: Buffer;
|
|
1522
1522
|
}>;
|
|
1523
|
-
/**
|
|
1524
|
-
* Convert Mathematical Text to MathML Format
|
|
1525
|
-
* @param name Document name.
|
|
1526
|
-
* @param slideIndex Slide index.
|
|
1527
|
-
* @param shapeIndex Shape index.
|
|
1528
|
-
* @param paragraphIndex Paragraph index.
|
|
1529
|
-
* @param portionIndex Portion index.
|
|
1530
|
-
* @param password Document password.
|
|
1531
|
-
* @param folder Document folder.
|
|
1532
|
-
* @param storage Document storage.
|
|
1533
|
-
*/
|
|
1534
|
-
downloadPortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
1535
|
-
response: http.ServerResponse;
|
|
1536
|
-
body: Buffer;
|
|
1537
|
-
}>;
|
|
1538
1523
|
/**
|
|
1539
1524
|
* Save a presentation to a specified format.
|
|
1540
1525
|
* @param name Document name.
|
|
@@ -1809,6 +1794,13 @@ export declare class SlidesApi {
|
|
|
1809
1794
|
response: http.ServerResponse;
|
|
1810
1795
|
body: model.FormatScheme;
|
|
1811
1796
|
}>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Get default templates for HTML5 export.
|
|
1799
|
+
*/
|
|
1800
|
+
getHtml5Templates(): Promise<{
|
|
1801
|
+
response: http.ServerResponse;
|
|
1802
|
+
body: Buffer;
|
|
1803
|
+
}>;
|
|
1812
1804
|
/**
|
|
1813
1805
|
* Read presentation layoutSlide info.
|
|
1814
1806
|
* @param name Document name.
|
|
@@ -2443,6 +2435,35 @@ export declare class SlidesApi {
|
|
|
2443
2435
|
response: http.ServerResponse;
|
|
2444
2436
|
body: model.ViewProperties;
|
|
2445
2437
|
}>;
|
|
2438
|
+
/**
|
|
2439
|
+
* Highlight all matches of sample in text frame text using specified color.
|
|
2440
|
+
* @param name Document name.
|
|
2441
|
+
* @param regex Regular expression.
|
|
2442
|
+
* @param color Highlighting color.
|
|
2443
|
+
* @param ignoreCase True to search ignoring char case.
|
|
2444
|
+
* @param password Document password.
|
|
2445
|
+
* @param folder Document folder.
|
|
2446
|
+
* @param storage Document storage.
|
|
2447
|
+
*/
|
|
2448
|
+
highlightPresentationRegex(name: string, regex: string, color: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2449
|
+
response: http.ServerResponse;
|
|
2450
|
+
body: model.DocumentReplaceResult;
|
|
2451
|
+
}>;
|
|
2452
|
+
/**
|
|
2453
|
+
* Highlight all matches of sample using specified color.
|
|
2454
|
+
* @param name Document name.
|
|
2455
|
+
* @param text Text sample to highlight.
|
|
2456
|
+
* @param color Highlighting color.
|
|
2457
|
+
* @param wholeWordsOnly Match only whole words.
|
|
2458
|
+
* @param ignoreCase True to search ignoring char case.
|
|
2459
|
+
* @param password Document password.
|
|
2460
|
+
* @param folder Document folder.
|
|
2461
|
+
* @param storage Document storage.
|
|
2462
|
+
*/
|
|
2463
|
+
highlightPresentationText(name: string, text: string, color: string, wholeWordsOnly?: boolean, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2464
|
+
response: http.ServerResponse;
|
|
2465
|
+
body: model.DocumentReplaceResult;
|
|
2466
|
+
}>;
|
|
2446
2467
|
/**
|
|
2447
2468
|
* Highlight all matches of sample in text frame text using specified color.
|
|
2448
2469
|
* @param name Document name.
|
|
@@ -2450,13 +2471,12 @@ export declare class SlidesApi {
|
|
|
2450
2471
|
* @param shapeIndex Shape index.
|
|
2451
2472
|
* @param regex Regular expression.
|
|
2452
2473
|
* @param color Highlighting color.
|
|
2453
|
-
* @param wholeWordsOnly Match only whole words.
|
|
2454
2474
|
* @param ignoreCase True to search ignoring char case.
|
|
2455
2475
|
* @param password Document password.
|
|
2456
2476
|
* @param folder Document folder.
|
|
2457
2477
|
* @param storage Document storage.
|
|
2458
2478
|
*/
|
|
2459
|
-
highlightShapeRegex(name: string, slideIndex: number, shapeIndex: number, regex: string, color: string,
|
|
2479
|
+
highlightShapeRegex(name: string, slideIndex: number, shapeIndex: number, regex: string, color: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2460
2480
|
response: http.ServerResponse;
|
|
2461
2481
|
body: model.Shape;
|
|
2462
2482
|
}>;
|
|
@@ -2731,17 +2751,44 @@ export declare class SlidesApi {
|
|
|
2731
2751
|
response: http.ServerResponse;
|
|
2732
2752
|
body: Buffer;
|
|
2733
2753
|
}>;
|
|
2754
|
+
/**
|
|
2755
|
+
* Replace text with a new value using a regex.
|
|
2756
|
+
* @param name Document name.
|
|
2757
|
+
* @param pattern Text value pattern to be replaced.
|
|
2758
|
+
* @param newValue Text value to replace with.
|
|
2759
|
+
* @param ignoreCase True if character case must be ignored.
|
|
2760
|
+
* @param password Document password.
|
|
2761
|
+
* @param folder Document folder.
|
|
2762
|
+
* @param storage Document storage.
|
|
2763
|
+
*/
|
|
2764
|
+
replacePresentationRegex(name: string, pattern: string, newValue: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2765
|
+
response: http.ServerResponse;
|
|
2766
|
+
body: model.DocumentReplaceResult;
|
|
2767
|
+
}>;
|
|
2768
|
+
/**
|
|
2769
|
+
* Replace text with a new value using a regex.
|
|
2770
|
+
* @param document Document data.
|
|
2771
|
+
* @param pattern Text regex pattern to be replaced.
|
|
2772
|
+
* @param newValue Text value to replace with.
|
|
2773
|
+
* @param ignoreCase True if character case must be ignored.
|
|
2774
|
+
* @param password Document password.
|
|
2775
|
+
*/
|
|
2776
|
+
replacePresentationRegexOnline(document: Readable, pattern: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
|
|
2777
|
+
response: http.ServerResponse;
|
|
2778
|
+
body: Buffer;
|
|
2779
|
+
}>;
|
|
2734
2780
|
/**
|
|
2735
2781
|
* Replace text with a new value.
|
|
2736
2782
|
* @param name Document name.
|
|
2737
2783
|
* @param oldValue Text value to be replaced.
|
|
2738
2784
|
* @param newValue Text value to replace with.
|
|
2739
2785
|
* @param ignoreCase True if character case must be ignored.
|
|
2786
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
2740
2787
|
* @param password Document password.
|
|
2741
2788
|
* @param folder Document folder.
|
|
2742
2789
|
* @param storage Document storage.
|
|
2743
2790
|
*/
|
|
2744
|
-
replacePresentationText(name: string, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2791
|
+
replacePresentationText(name: string, oldValue: string, newValue: string, ignoreCase?: boolean, wholeWordsOnly?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2745
2792
|
response: http.ServerResponse;
|
|
2746
2793
|
body: model.DocumentReplaceResult;
|
|
2747
2794
|
}>;
|
|
@@ -2751,9 +2798,10 @@ export declare class SlidesApi {
|
|
|
2751
2798
|
* @param oldValue Text value to be replaced.
|
|
2752
2799
|
* @param newValue Text value to replace with.
|
|
2753
2800
|
* @param ignoreCase True if character case must be ignored.
|
|
2801
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
2754
2802
|
* @param password Document password.
|
|
2755
2803
|
*/
|
|
2756
|
-
replacePresentationTextOnline(document: Readable, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
|
|
2804
|
+
replacePresentationTextOnline(document: Readable, oldValue: string, newValue: string, ignoreCase?: boolean, wholeWordsOnly?: boolean, password?: string): Promise<{
|
|
2757
2805
|
response: http.ServerResponse;
|
|
2758
2806
|
body: Buffer;
|
|
2759
2807
|
}>;
|
|
@@ -2829,21 +2877,6 @@ export declare class SlidesApi {
|
|
|
2829
2877
|
saveMathPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, format: model.MathFormat, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
2830
2878
|
response: http.ServerResponse;
|
|
2831
2879
|
}>;
|
|
2832
|
-
/**
|
|
2833
|
-
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2834
|
-
* @param name Document name.
|
|
2835
|
-
* @param slideIndex Slide index.
|
|
2836
|
-
* @param shapeIndex Shape index.
|
|
2837
|
-
* @param paragraphIndex Paragraph index.
|
|
2838
|
-
* @param portionIndex Portion index.
|
|
2839
|
-
* @param outPath Path to save result.
|
|
2840
|
-
* @param password Document password.
|
|
2841
|
-
* @param folder Presentation folder.
|
|
2842
|
-
* @param storage Presentation storage.
|
|
2843
|
-
*/
|
|
2844
|
-
savePortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
2845
|
-
response: http.ServerResponse;
|
|
2846
|
-
}>;
|
|
2847
2880
|
/**
|
|
2848
2881
|
* Save a presentation to a specified format.
|
|
2849
2882
|
* @param name Document name.
|
|
@@ -3795,4 +3828,41 @@ export declare class SlidesAsyncApi {
|
|
|
3795
3828
|
response: http.ServerResponse;
|
|
3796
3829
|
body: string;
|
|
3797
3830
|
}>;
|
|
3831
|
+
/**
|
|
3832
|
+
*
|
|
3833
|
+
* @param name
|
|
3834
|
+
* @param format
|
|
3835
|
+
* @param options
|
|
3836
|
+
* @param width
|
|
3837
|
+
* @param height
|
|
3838
|
+
* @param from
|
|
3839
|
+
* @param to
|
|
3840
|
+
* @param destFolder
|
|
3841
|
+
* @param password
|
|
3842
|
+
* @param folder
|
|
3843
|
+
* @param storage
|
|
3844
|
+
* @param fontsFolder
|
|
3845
|
+
*/
|
|
3846
|
+
startSplit(name: string, format: model.SlideExportFormat, options?: model.ExportOptions, width?: number, height?: number, from?: number, to?: number, destFolder?: string, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
|
|
3847
|
+
response: http.ServerResponse;
|
|
3848
|
+
body: string;
|
|
3849
|
+
}>;
|
|
3850
|
+
/**
|
|
3851
|
+
*
|
|
3852
|
+
* @param document Document data.
|
|
3853
|
+
* @param format
|
|
3854
|
+
* @param destFolder
|
|
3855
|
+
* @param width
|
|
3856
|
+
* @param height
|
|
3857
|
+
* @param from
|
|
3858
|
+
* @param to
|
|
3859
|
+
* @param password
|
|
3860
|
+
* @param storage
|
|
3861
|
+
* @param fontsFolder
|
|
3862
|
+
* @param options
|
|
3863
|
+
*/
|
|
3864
|
+
startUploadAndSplit(document: Readable, format: model.SlideExportFormat, destFolder?: string, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
|
|
3865
|
+
response: http.ServerResponse;
|
|
3866
|
+
body: string;
|
|
3867
|
+
}>;
|
|
3798
3868
|
}
|
package/api.js
CHANGED
|
@@ -5016,61 +5016,6 @@ class SlidesApi {
|
|
|
5016
5016
|
return Promise.resolve({ body: result, response });
|
|
5017
5017
|
});
|
|
5018
5018
|
}
|
|
5019
|
-
/**
|
|
5020
|
-
* Convert Mathematical Text to MathML Format
|
|
5021
|
-
* @param name Document name.
|
|
5022
|
-
* @param slideIndex Slide index.
|
|
5023
|
-
* @param shapeIndex Shape index.
|
|
5024
|
-
* @param paragraphIndex Paragraph index.
|
|
5025
|
-
* @param portionIndex Portion index.
|
|
5026
|
-
* @param password Document password.
|
|
5027
|
-
* @param folder Document folder.
|
|
5028
|
-
* @param storage Document storage.
|
|
5029
|
-
*/
|
|
5030
|
-
downloadPortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
5031
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5032
|
-
// verify required parameter 'name' is not null or undefined
|
|
5033
|
-
if (name === null || name === undefined) {
|
|
5034
|
-
throw new Error('The required parameter "name" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5035
|
-
}
|
|
5036
|
-
// verify required parameter 'slideIndex' is not null or undefined
|
|
5037
|
-
if (slideIndex === null || slideIndex === undefined) {
|
|
5038
|
-
throw new Error('The required parameter "slideIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5039
|
-
}
|
|
5040
|
-
// verify required parameter 'shapeIndex' is not null or undefined
|
|
5041
|
-
if (shapeIndex === null || shapeIndex === undefined) {
|
|
5042
|
-
throw new Error('The required parameter "shapeIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5043
|
-
}
|
|
5044
|
-
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
5045
|
-
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
5046
|
-
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5047
|
-
}
|
|
5048
|
-
// verify required parameter 'portionIndex' is not null or undefined
|
|
5049
|
-
if (portionIndex === null || portionIndex === undefined) {
|
|
5050
|
-
throw new Error('The required parameter "portionIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5051
|
-
}
|
|
5052
|
-
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
|
|
5053
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
5054
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
5055
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
5056
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
5057
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
5058
|
-
const queryParameters = {};
|
|
5059
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
5060
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
5061
|
-
const requestOptions = {
|
|
5062
|
-
method: "POST",
|
|
5063
|
-
headers: {},
|
|
5064
|
-
url: localVarPath,
|
|
5065
|
-
responseType: 'arraybuffer',
|
|
5066
|
-
params: queryParameters
|
|
5067
|
-
};
|
|
5068
|
-
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
5069
|
-
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
5070
|
-
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
5071
|
-
return Promise.resolve({ body: result, response });
|
|
5072
|
-
});
|
|
5073
|
-
}
|
|
5074
5019
|
/**
|
|
5075
5020
|
* Save a presentation to a specified format.
|
|
5076
5021
|
* @param name Document name.
|
|
@@ -5920,6 +5865,24 @@ class SlidesApi {
|
|
|
5920
5865
|
return Promise.resolve({ body: result, response });
|
|
5921
5866
|
});
|
|
5922
5867
|
}
|
|
5868
|
+
/**
|
|
5869
|
+
* Get default templates for HTML5 export.
|
|
5870
|
+
*/
|
|
5871
|
+
getHtml5Templates() {
|
|
5872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5873
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/html5Templates";
|
|
5874
|
+
const queryParameters = {};
|
|
5875
|
+
const requestOptions = {
|
|
5876
|
+
method: "GET",
|
|
5877
|
+
url: localVarPath,
|
|
5878
|
+
responseType: 'arraybuffer',
|
|
5879
|
+
params: queryParameters
|
|
5880
|
+
};
|
|
5881
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
5882
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
5883
|
+
return Promise.resolve({ body: result, response });
|
|
5884
|
+
});
|
|
5885
|
+
}
|
|
5923
5886
|
/**
|
|
5924
5887
|
* Read presentation layoutSlide info.
|
|
5925
5888
|
* @param name Document name.
|
|
@@ -7964,6 +7927,96 @@ class SlidesApi {
|
|
|
7964
7927
|
return Promise.resolve({ body: result, response });
|
|
7965
7928
|
});
|
|
7966
7929
|
}
|
|
7930
|
+
/**
|
|
7931
|
+
* Highlight all matches of sample in text frame text using specified color.
|
|
7932
|
+
* @param name Document name.
|
|
7933
|
+
* @param regex Regular expression.
|
|
7934
|
+
* @param color Highlighting color.
|
|
7935
|
+
* @param ignoreCase True to search ignoring char case.
|
|
7936
|
+
* @param password Document password.
|
|
7937
|
+
* @param folder Document folder.
|
|
7938
|
+
* @param storage Document storage.
|
|
7939
|
+
*/
|
|
7940
|
+
highlightPresentationRegex(name, regex, color, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
7941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7942
|
+
// verify required parameter 'name' is not null or undefined
|
|
7943
|
+
if (name === null || name === undefined) {
|
|
7944
|
+
throw new Error('The required parameter "name" was null or undefined when calling highlightPresentationRegex.');
|
|
7945
|
+
}
|
|
7946
|
+
// verify required parameter 'regex' is not null or undefined
|
|
7947
|
+
if (regex === null || regex === undefined) {
|
|
7948
|
+
throw new Error('The required parameter "regex" was null or undefined when calling highlightPresentationRegex.');
|
|
7949
|
+
}
|
|
7950
|
+
// verify required parameter 'color' is not null or undefined
|
|
7951
|
+
if (color === null || color === undefined) {
|
|
7952
|
+
throw new Error('The required parameter "color" was null or undefined when calling highlightPresentationRegex.');
|
|
7953
|
+
}
|
|
7954
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/highlightRegex";
|
|
7955
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
7956
|
+
const queryParameters = {};
|
|
7957
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "regex", regex);
|
|
7958
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "color", color);
|
|
7959
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
7960
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7961
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7962
|
+
const requestOptions = {
|
|
7963
|
+
method: "POST",
|
|
7964
|
+
headers: {},
|
|
7965
|
+
url: localVarPath,
|
|
7966
|
+
params: queryParameters
|
|
7967
|
+
};
|
|
7968
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7969
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7970
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "DocumentReplaceResult");
|
|
7971
|
+
return Promise.resolve({ body: result, response });
|
|
7972
|
+
});
|
|
7973
|
+
}
|
|
7974
|
+
/**
|
|
7975
|
+
* Highlight all matches of sample using specified color.
|
|
7976
|
+
* @param name Document name.
|
|
7977
|
+
* @param text Text sample to highlight.
|
|
7978
|
+
* @param color Highlighting color.
|
|
7979
|
+
* @param wholeWordsOnly Match only whole words.
|
|
7980
|
+
* @param ignoreCase True to search ignoring char case.
|
|
7981
|
+
* @param password Document password.
|
|
7982
|
+
* @param folder Document folder.
|
|
7983
|
+
* @param storage Document storage.
|
|
7984
|
+
*/
|
|
7985
|
+
highlightPresentationText(name, text, color, wholeWordsOnly = null, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
7986
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7987
|
+
// verify required parameter 'name' is not null or undefined
|
|
7988
|
+
if (name === null || name === undefined) {
|
|
7989
|
+
throw new Error('The required parameter "name" was null or undefined when calling highlightPresentationText.');
|
|
7990
|
+
}
|
|
7991
|
+
// verify required parameter 'text' is not null or undefined
|
|
7992
|
+
if (text === null || text === undefined) {
|
|
7993
|
+
throw new Error('The required parameter "text" was null or undefined when calling highlightPresentationText.');
|
|
7994
|
+
}
|
|
7995
|
+
// verify required parameter 'color' is not null or undefined
|
|
7996
|
+
if (color === null || color === undefined) {
|
|
7997
|
+
throw new Error('The required parameter "color" was null or undefined when calling highlightPresentationText.');
|
|
7998
|
+
}
|
|
7999
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/highlightText";
|
|
8000
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8001
|
+
const queryParameters = {};
|
|
8002
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "text", text);
|
|
8003
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "color", color);
|
|
8004
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8005
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
8006
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8007
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8008
|
+
const requestOptions = {
|
|
8009
|
+
method: "POST",
|
|
8010
|
+
headers: {},
|
|
8011
|
+
url: localVarPath,
|
|
8012
|
+
params: queryParameters
|
|
8013
|
+
};
|
|
8014
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8015
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8016
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "DocumentReplaceResult");
|
|
8017
|
+
return Promise.resolve({ body: result, response });
|
|
8018
|
+
});
|
|
8019
|
+
}
|
|
7967
8020
|
/**
|
|
7968
8021
|
* Highlight all matches of sample in text frame text using specified color.
|
|
7969
8022
|
* @param name Document name.
|
|
@@ -7971,13 +8024,12 @@ class SlidesApi {
|
|
|
7971
8024
|
* @param shapeIndex Shape index.
|
|
7972
8025
|
* @param regex Regular expression.
|
|
7973
8026
|
* @param color Highlighting color.
|
|
7974
|
-
* @param wholeWordsOnly Match only whole words.
|
|
7975
8027
|
* @param ignoreCase True to search ignoring char case.
|
|
7976
8028
|
* @param password Document password.
|
|
7977
8029
|
* @param folder Document folder.
|
|
7978
8030
|
* @param storage Document storage.
|
|
7979
8031
|
*/
|
|
7980
|
-
highlightShapeRegex(name, slideIndex, shapeIndex, regex, color,
|
|
8032
|
+
highlightShapeRegex(name, slideIndex, shapeIndex, regex, color, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
7981
8033
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7982
8034
|
// verify required parameter 'name' is not null or undefined
|
|
7983
8035
|
if (name === null || name === undefined) {
|
|
@@ -8006,7 +8058,6 @@ class SlidesApi {
|
|
|
8006
8058
|
const queryParameters = {};
|
|
8007
8059
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "regex", regex);
|
|
8008
8060
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "color", color);
|
|
8009
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8010
8061
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
8011
8062
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8012
8063
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
@@ -8881,17 +8932,107 @@ class SlidesApi {
|
|
|
8881
8932
|
return Promise.resolve({ body: result, response });
|
|
8882
8933
|
});
|
|
8883
8934
|
}
|
|
8935
|
+
/**
|
|
8936
|
+
* Replace text with a new value using a regex.
|
|
8937
|
+
* @param name Document name.
|
|
8938
|
+
* @param pattern Text value pattern to be replaced.
|
|
8939
|
+
* @param newValue Text value to replace with.
|
|
8940
|
+
* @param ignoreCase True if character case must be ignored.
|
|
8941
|
+
* @param password Document password.
|
|
8942
|
+
* @param folder Document folder.
|
|
8943
|
+
* @param storage Document storage.
|
|
8944
|
+
*/
|
|
8945
|
+
replacePresentationRegex(name, pattern, newValue, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
8946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8947
|
+
// verify required parameter 'name' is not null or undefined
|
|
8948
|
+
if (name === null || name === undefined) {
|
|
8949
|
+
throw new Error('The required parameter "name" was null or undefined when calling replacePresentationRegex.');
|
|
8950
|
+
}
|
|
8951
|
+
// verify required parameter 'pattern' is not null or undefined
|
|
8952
|
+
if (pattern === null || pattern === undefined) {
|
|
8953
|
+
throw new Error('The required parameter "pattern" was null or undefined when calling replacePresentationRegex.');
|
|
8954
|
+
}
|
|
8955
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8956
|
+
if (newValue === null || newValue === undefined) {
|
|
8957
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replacePresentationRegex.');
|
|
8958
|
+
}
|
|
8959
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/replaceRegex";
|
|
8960
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8961
|
+
const queryParameters = {};
|
|
8962
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "pattern", pattern);
|
|
8963
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8964
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
8965
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8966
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8967
|
+
const requestOptions = {
|
|
8968
|
+
method: "POST",
|
|
8969
|
+
headers: {},
|
|
8970
|
+
url: localVarPath,
|
|
8971
|
+
params: queryParameters
|
|
8972
|
+
};
|
|
8973
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8974
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8975
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "DocumentReplaceResult");
|
|
8976
|
+
return Promise.resolve({ body: result, response });
|
|
8977
|
+
});
|
|
8978
|
+
}
|
|
8979
|
+
/**
|
|
8980
|
+
* Replace text with a new value using a regex.
|
|
8981
|
+
* @param document Document data.
|
|
8982
|
+
* @param pattern Text regex pattern to be replaced.
|
|
8983
|
+
* @param newValue Text value to replace with.
|
|
8984
|
+
* @param ignoreCase True if character case must be ignored.
|
|
8985
|
+
* @param password Document password.
|
|
8986
|
+
*/
|
|
8987
|
+
replacePresentationRegexOnline(document, pattern, newValue, ignoreCase = null, password = null) {
|
|
8988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8989
|
+
// verify required parameter 'document' is not null or undefined
|
|
8990
|
+
if (document === null || document === undefined) {
|
|
8991
|
+
throw new Error('The required parameter "document" was null or undefined when calling replacePresentationRegexOnline.');
|
|
8992
|
+
}
|
|
8993
|
+
// verify required parameter 'pattern' is not null or undefined
|
|
8994
|
+
if (pattern === null || pattern === undefined) {
|
|
8995
|
+
throw new Error('The required parameter "pattern" was null or undefined when calling replacePresentationRegexOnline.');
|
|
8996
|
+
}
|
|
8997
|
+
// verify required parameter 'newValue' is not null or undefined
|
|
8998
|
+
if (newValue === null || newValue === undefined) {
|
|
8999
|
+
throw new Error('The required parameter "newValue" was null or undefined when calling replacePresentationRegexOnline.');
|
|
9000
|
+
}
|
|
9001
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/replaceRegex";
|
|
9002
|
+
const queryParameters = {};
|
|
9003
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "pattern", pattern);
|
|
9004
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
9005
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
9006
|
+
const requestOptions = {
|
|
9007
|
+
method: "POST",
|
|
9008
|
+
headers: {},
|
|
9009
|
+
url: localVarPath,
|
|
9010
|
+
responseType: 'arraybuffer',
|
|
9011
|
+
params: queryParameters
|
|
9012
|
+
};
|
|
9013
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9014
|
+
let localVarFiles = [];
|
|
9015
|
+
if (document != null) {
|
|
9016
|
+
localVarFiles.push(document);
|
|
9017
|
+
}
|
|
9018
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
9019
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9020
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
9021
|
+
return Promise.resolve({ body: result, response });
|
|
9022
|
+
});
|
|
9023
|
+
}
|
|
8884
9024
|
/**
|
|
8885
9025
|
* Replace text with a new value.
|
|
8886
9026
|
* @param name Document name.
|
|
8887
9027
|
* @param oldValue Text value to be replaced.
|
|
8888
9028
|
* @param newValue Text value to replace with.
|
|
8889
9029
|
* @param ignoreCase True if character case must be ignored.
|
|
9030
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
8890
9031
|
* @param password Document password.
|
|
8891
9032
|
* @param folder Document folder.
|
|
8892
9033
|
* @param storage Document storage.
|
|
8893
9034
|
*/
|
|
8894
|
-
replacePresentationText(name, oldValue, newValue, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
9035
|
+
replacePresentationText(name, oldValue, newValue, ignoreCase = null, wholeWordsOnly = null, password = null, folder = null, storage = null) {
|
|
8895
9036
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8896
9037
|
// verify required parameter 'name' is not null or undefined
|
|
8897
9038
|
if (name === null || name === undefined) {
|
|
@@ -8911,6 +9052,7 @@ class SlidesApi {
|
|
|
8911
9052
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8912
9053
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8913
9054
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
9055
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8914
9056
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8915
9057
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8916
9058
|
const requestOptions = {
|
|
@@ -8931,9 +9073,10 @@ class SlidesApi {
|
|
|
8931
9073
|
* @param oldValue Text value to be replaced.
|
|
8932
9074
|
* @param newValue Text value to replace with.
|
|
8933
9075
|
* @param ignoreCase True if character case must be ignored.
|
|
9076
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
8934
9077
|
* @param password Document password.
|
|
8935
9078
|
*/
|
|
8936
|
-
replacePresentationTextOnline(document, oldValue, newValue, ignoreCase = null, password = null) {
|
|
9079
|
+
replacePresentationTextOnline(document, oldValue, newValue, ignoreCase = null, wholeWordsOnly = null, password = null) {
|
|
8937
9080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8938
9081
|
// verify required parameter 'document' is not null or undefined
|
|
8939
9082
|
if (document === null || document === undefined) {
|
|
@@ -8952,6 +9095,7 @@ class SlidesApi {
|
|
|
8952
9095
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8953
9096
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8954
9097
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
9098
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8955
9099
|
const requestOptions = {
|
|
8956
9100
|
method: "POST",
|
|
8957
9101
|
headers: {},
|
|
@@ -9233,65 +9377,6 @@ class SlidesApi {
|
|
|
9233
9377
|
return Promise.resolve({ response });
|
|
9234
9378
|
});
|
|
9235
9379
|
}
|
|
9236
|
-
/**
|
|
9237
|
-
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
9238
|
-
* @param name Document name.
|
|
9239
|
-
* @param slideIndex Slide index.
|
|
9240
|
-
* @param shapeIndex Shape index.
|
|
9241
|
-
* @param paragraphIndex Paragraph index.
|
|
9242
|
-
* @param portionIndex Portion index.
|
|
9243
|
-
* @param outPath Path to save result.
|
|
9244
|
-
* @param password Document password.
|
|
9245
|
-
* @param folder Presentation folder.
|
|
9246
|
-
* @param storage Presentation storage.
|
|
9247
|
-
*/
|
|
9248
|
-
savePortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, outPath, password = null, folder = null, storage = null) {
|
|
9249
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9250
|
-
// verify required parameter 'name' is not null or undefined
|
|
9251
|
-
if (name === null || name === undefined) {
|
|
9252
|
-
throw new Error('The required parameter "name" was null or undefined when calling savePortionAsMathMl.');
|
|
9253
|
-
}
|
|
9254
|
-
// verify required parameter 'slideIndex' is not null or undefined
|
|
9255
|
-
if (slideIndex === null || slideIndex === undefined) {
|
|
9256
|
-
throw new Error('The required parameter "slideIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9257
|
-
}
|
|
9258
|
-
// verify required parameter 'shapeIndex' is not null or undefined
|
|
9259
|
-
if (shapeIndex === null || shapeIndex === undefined) {
|
|
9260
|
-
throw new Error('The required parameter "shapeIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9261
|
-
}
|
|
9262
|
-
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
9263
|
-
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
9264
|
-
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9265
|
-
}
|
|
9266
|
-
// verify required parameter 'portionIndex' is not null or undefined
|
|
9267
|
-
if (portionIndex === null || portionIndex === undefined) {
|
|
9268
|
-
throw new Error('The required parameter "portionIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9269
|
-
}
|
|
9270
|
-
// verify required parameter 'outPath' is not null or undefined
|
|
9271
|
-
if (outPath === null || outPath === undefined) {
|
|
9272
|
-
throw new Error('The required parameter "outPath" was null or undefined when calling savePortionAsMathMl.');
|
|
9273
|
-
}
|
|
9274
|
-
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
|
|
9275
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
9276
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
9277
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
9278
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
9279
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
9280
|
-
const queryParameters = {};
|
|
9281
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "outPath", outPath);
|
|
9282
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
9283
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
9284
|
-
const requestOptions = {
|
|
9285
|
-
method: "PUT",
|
|
9286
|
-
headers: {},
|
|
9287
|
-
url: localVarPath,
|
|
9288
|
-
params: queryParameters
|
|
9289
|
-
};
|
|
9290
|
-
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9291
|
-
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9292
|
-
return Promise.resolve({ response });
|
|
9293
|
-
});
|
|
9294
|
-
}
|
|
9295
9380
|
/**
|
|
9296
9381
|
* Save a presentation to a specified format.
|
|
9297
9382
|
* @param name Document name.
|
|
@@ -12544,5 +12629,115 @@ class SlidesAsyncApi {
|
|
|
12544
12629
|
return Promise.resolve({ body: result, response });
|
|
12545
12630
|
});
|
|
12546
12631
|
}
|
|
12632
|
+
/**
|
|
12633
|
+
*
|
|
12634
|
+
* @param name
|
|
12635
|
+
* @param format
|
|
12636
|
+
* @param options
|
|
12637
|
+
* @param width
|
|
12638
|
+
* @param height
|
|
12639
|
+
* @param from
|
|
12640
|
+
* @param to
|
|
12641
|
+
* @param destFolder
|
|
12642
|
+
* @param password
|
|
12643
|
+
* @param folder
|
|
12644
|
+
* @param storage
|
|
12645
|
+
* @param fontsFolder
|
|
12646
|
+
*/
|
|
12647
|
+
startSplit(name, format, options = null, width = null, height = null, from = null, to = null, destFolder = null, password = null, folder = null, storage = null, fontsFolder = null) {
|
|
12648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12649
|
+
// verify required parameter 'name' is not null or undefined
|
|
12650
|
+
if (name === null || name === undefined) {
|
|
12651
|
+
throw new Error('The required parameter "name" was null or undefined when calling startSplit.');
|
|
12652
|
+
}
|
|
12653
|
+
// verify required parameter 'format' is not null or undefined
|
|
12654
|
+
if (format === null || format === undefined) {
|
|
12655
|
+
throw new Error('The required parameter "format" was null or undefined when calling startSplit.');
|
|
12656
|
+
}
|
|
12657
|
+
// verify value of enum parameter 'format' is valid
|
|
12658
|
+
if (!Object.keys(model.SlideExportFormat).filter(i => model.SlideExportFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
12659
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.SlideExportFormat).map(key => model.SlideExportFormat[key]).join());
|
|
12660
|
+
}
|
|
12661
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/{name}/split/{format}";
|
|
12662
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
12663
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
12664
|
+
const queryParameters = {};
|
|
12665
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "width", width);
|
|
12666
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "height", height);
|
|
12667
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "from", from);
|
|
12668
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "to", to);
|
|
12669
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "destFolder", destFolder);
|
|
12670
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
12671
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
12672
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
|
|
12673
|
+
const requestOptions = {
|
|
12674
|
+
method: "POST",
|
|
12675
|
+
headers: {},
|
|
12676
|
+
url: localVarPath,
|
|
12677
|
+
data: options,
|
|
12678
|
+
params: queryParameters
|
|
12679
|
+
};
|
|
12680
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
12681
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12682
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "string");
|
|
12683
|
+
return Promise.resolve({ body: result, response });
|
|
12684
|
+
});
|
|
12685
|
+
}
|
|
12686
|
+
/**
|
|
12687
|
+
*
|
|
12688
|
+
* @param document Document data.
|
|
12689
|
+
* @param format
|
|
12690
|
+
* @param destFolder
|
|
12691
|
+
* @param width
|
|
12692
|
+
* @param height
|
|
12693
|
+
* @param from
|
|
12694
|
+
* @param to
|
|
12695
|
+
* @param password
|
|
12696
|
+
* @param storage
|
|
12697
|
+
* @param fontsFolder
|
|
12698
|
+
* @param options
|
|
12699
|
+
*/
|
|
12700
|
+
startUploadAndSplit(document, format, destFolder = null, width = null, height = null, from = null, to = null, password = null, storage = null, fontsFolder = null, options = null) {
|
|
12701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12702
|
+
// verify required parameter 'document' is not null or undefined
|
|
12703
|
+
if (document === null || document === undefined) {
|
|
12704
|
+
throw new Error('The required parameter "document" was null or undefined when calling startUploadAndSplit.');
|
|
12705
|
+
}
|
|
12706
|
+
// verify required parameter 'format' is not null or undefined
|
|
12707
|
+
if (format === null || format === undefined) {
|
|
12708
|
+
throw new Error('The required parameter "format" was null or undefined when calling startUploadAndSplit.');
|
|
12709
|
+
}
|
|
12710
|
+
// verify value of enum parameter 'format' is valid
|
|
12711
|
+
if (!Object.keys(model.SlideExportFormat).filter(i => model.SlideExportFormat[i].toLowerCase() == format.toString().toLowerCase()).length) {
|
|
12712
|
+
throw new Error('Invalid value for format: ' + format + '. Must be one of the following: ' + Object.keys(model.SlideExportFormat).map(key => model.SlideExportFormat[key]).join());
|
|
12713
|
+
}
|
|
12714
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/split/{format}";
|
|
12715
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "format", objectSerializer_1.ObjectSerializer.toString(format));
|
|
12716
|
+
const queryParameters = {};
|
|
12717
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "destFolder", destFolder);
|
|
12718
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "width", width);
|
|
12719
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "height", height);
|
|
12720
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "from", from);
|
|
12721
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "to", to);
|
|
12722
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
12723
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
|
|
12724
|
+
const requestOptions = {
|
|
12725
|
+
method: "POST",
|
|
12726
|
+
headers: {},
|
|
12727
|
+
url: localVarPath,
|
|
12728
|
+
data: options,
|
|
12729
|
+
params: queryParameters
|
|
12730
|
+
};
|
|
12731
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
12732
|
+
let localVarFiles = [];
|
|
12733
|
+
if (document != null) {
|
|
12734
|
+
localVarFiles.push(document);
|
|
12735
|
+
}
|
|
12736
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
12737
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
12738
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "string");
|
|
12739
|
+
return Promise.resolve({ body: result, response });
|
|
12740
|
+
});
|
|
12741
|
+
}
|
|
12547
12742
|
}
|
|
12548
12743
|
exports.SlidesAsyncApi = SlidesAsyncApi;
|
|
@@ -169,7 +169,7 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
|
|
|
169
169
|
if (!requestOptions.headers) {
|
|
170
170
|
requestOptions.headers = {};
|
|
171
171
|
}
|
|
172
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.
|
|
172
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.8.0";
|
|
173
173
|
if (configuration.timeout) {
|
|
174
174
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
175
175
|
}
|
package/model.d.ts
CHANGED
|
@@ -2328,7 +2328,7 @@ export declare class DocumentProperty extends ResourceBase {
|
|
|
2328
2328
|
/**
|
|
2329
2329
|
* True for builtin property.
|
|
2330
2330
|
*/
|
|
2331
|
-
builtIn
|
|
2331
|
+
builtIn?: boolean;
|
|
2332
2332
|
}
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Represents document replace result DTO.
|
|
@@ -2781,7 +2781,8 @@ export declare enum ExportFormat {
|
|
|
2781
2781
|
'Fodp',
|
|
2782
2782
|
'Xaml',
|
|
2783
2783
|
'Mpeg4',
|
|
2784
|
-
'Md'
|
|
2784
|
+
'Md',
|
|
2785
|
+
'Xml'
|
|
2785
2786
|
}
|
|
2786
2787
|
/**
|
|
2787
2788
|
* Represents export options for whole presentation.
|
|
@@ -2791,6 +2792,10 @@ export declare class ExportOptions {
|
|
|
2791
2792
|
* Default regular font for rendering the presentation.
|
|
2792
2793
|
*/
|
|
2793
2794
|
defaultRegularFont?: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* Default regular font for rendering the presentation.
|
|
2797
|
+
*/
|
|
2798
|
+
gradientStyle?: ExportOptions.GradientStyleEnum;
|
|
2794
2799
|
/**
|
|
2795
2800
|
* Gets of sets list of font fallback rules.
|
|
2796
2801
|
*/
|
|
@@ -2801,6 +2806,12 @@ export declare class ExportOptions {
|
|
|
2801
2806
|
fontSubstRules?: Array<FontSubstRule>;
|
|
2802
2807
|
format?: string;
|
|
2803
2808
|
}
|
|
2809
|
+
export declare namespace ExportOptions {
|
|
2810
|
+
enum GradientStyleEnum {
|
|
2811
|
+
Default,
|
|
2812
|
+
PowerPointUI
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2804
2815
|
/**
|
|
2805
2816
|
* File or folder information
|
|
2806
2817
|
*/
|
|
@@ -3137,6 +3148,8 @@ export declare class ImageExportOptionsBase extends ExportOptions {
|
|
|
3137
3148
|
*/
|
|
3138
3149
|
width?: number;
|
|
3139
3150
|
}
|
|
3151
|
+
export declare namespace ImageExportOptionsBase {
|
|
3152
|
+
}
|
|
3140
3153
|
/**
|
|
3141
3154
|
* Provides options that control how a presentation is saved in Gif format.
|
|
3142
3155
|
*/
|
|
@@ -3155,6 +3168,8 @@ export declare class GifExportOptions extends ImageExportOptionsBase {
|
|
|
3155
3168
|
*/
|
|
3156
3169
|
defaultDelay?: number;
|
|
3157
3170
|
}
|
|
3171
|
+
export declare namespace GifExportOptions {
|
|
3172
|
+
}
|
|
3158
3173
|
/**
|
|
3159
3174
|
* Represents glow effect
|
|
3160
3175
|
*/
|
|
@@ -3176,11 +3191,11 @@ export declare class GradientFill extends FillFormat {
|
|
|
3176
3191
|
/**
|
|
3177
3192
|
* Gradient style.
|
|
3178
3193
|
*/
|
|
3179
|
-
direction
|
|
3194
|
+
direction?: GradientFill.DirectionEnum;
|
|
3180
3195
|
/**
|
|
3181
3196
|
* Gradient shape.
|
|
3182
3197
|
*/
|
|
3183
|
-
shape
|
|
3198
|
+
shape?: GradientFill.ShapeEnum;
|
|
3184
3199
|
/**
|
|
3185
3200
|
* Gradient stops.
|
|
3186
3201
|
*/
|
|
@@ -3188,15 +3203,15 @@ export declare class GradientFill extends FillFormat {
|
|
|
3188
3203
|
/**
|
|
3189
3204
|
* Gradient angle.
|
|
3190
3205
|
*/
|
|
3191
|
-
linearAngle
|
|
3206
|
+
linearAngle?: number;
|
|
3192
3207
|
/**
|
|
3193
3208
|
* True if the gradient is scaled.
|
|
3194
3209
|
*/
|
|
3195
|
-
isScaled
|
|
3210
|
+
isScaled?: boolean;
|
|
3196
3211
|
/**
|
|
3197
3212
|
* Gradient flipping mode.
|
|
3198
3213
|
*/
|
|
3199
|
-
tileFlip
|
|
3214
|
+
tileFlip?: GradientFill.TileFlipEnum;
|
|
3200
3215
|
}
|
|
3201
3216
|
export declare namespace GradientFill {
|
|
3202
3217
|
enum DirectionEnum {
|
|
@@ -3411,6 +3426,12 @@ export declare class Html5ExportOptions extends ExportOptions {
|
|
|
3411
3426
|
* Slides layouting options
|
|
3412
3427
|
*/
|
|
3413
3428
|
notesCommentsLayouting?: NotesCommentsLayoutingOptions;
|
|
3429
|
+
/**
|
|
3430
|
+
* Path to custom templates
|
|
3431
|
+
*/
|
|
3432
|
+
templatesPath?: string;
|
|
3433
|
+
}
|
|
3434
|
+
export declare namespace Html5ExportOptions {
|
|
3414
3435
|
}
|
|
3415
3436
|
/**
|
|
3416
3437
|
* Provides options that control how a presentation is saved in Html format.
|
|
@@ -3583,6 +3604,8 @@ export declare class ImageExportOptions extends ImageExportOptionsBase {
|
|
|
3583
3604
|
*/
|
|
3584
3605
|
slidesLayoutOptions?: SlidesLayoutOptions;
|
|
3585
3606
|
}
|
|
3607
|
+
export declare namespace ImageExportOptions {
|
|
3608
|
+
}
|
|
3586
3609
|
/**
|
|
3587
3610
|
* List of images.
|
|
3588
3611
|
*/
|
|
@@ -4477,7 +4500,7 @@ export declare class OleObjectFrame extends ShapeBase {
|
|
|
4477
4500
|
/**
|
|
4478
4501
|
* True if an object is visible as icon.
|
|
4479
4502
|
*/
|
|
4480
|
-
isObjectIcon
|
|
4503
|
+
isObjectIcon?: boolean;
|
|
4481
4504
|
/**
|
|
4482
4505
|
* The title for OleObject icon.
|
|
4483
4506
|
*/
|
|
@@ -4595,7 +4618,7 @@ export declare class Operation {
|
|
|
4595
4618
|
failed?: Date;
|
|
4596
4619
|
canceled?: Date;
|
|
4597
4620
|
finished?: Date;
|
|
4598
|
-
error?:
|
|
4621
|
+
error?: OperationError;
|
|
4599
4622
|
}
|
|
4600
4623
|
export declare namespace Operation {
|
|
4601
4624
|
enum MethodEnum {
|
|
@@ -4604,7 +4627,9 @@ export declare namespace Operation {
|
|
|
4604
4627
|
ConvertAndSave,
|
|
4605
4628
|
SavePresentation,
|
|
4606
4629
|
Merge,
|
|
4607
|
-
MergeAndSave
|
|
4630
|
+
MergeAndSave,
|
|
4631
|
+
Split,
|
|
4632
|
+
UploadAndSplit
|
|
4608
4633
|
}
|
|
4609
4634
|
enum StatusEnum {
|
|
4610
4635
|
Created,
|
|
@@ -4615,6 +4640,12 @@ export declare namespace Operation {
|
|
|
4615
4640
|
Finished
|
|
4616
4641
|
}
|
|
4617
4642
|
}
|
|
4643
|
+
export declare class OperationError {
|
|
4644
|
+
code?: string;
|
|
4645
|
+
description?: string;
|
|
4646
|
+
httpStatusCode: number;
|
|
4647
|
+
message?: string;
|
|
4648
|
+
}
|
|
4618
4649
|
/**
|
|
4619
4650
|
* Operation progress.
|
|
4620
4651
|
*/
|
|
@@ -5230,6 +5261,10 @@ export declare class PdfExportOptions extends ExportOptions {
|
|
|
5230
5261
|
* True to use ROP operation or Opacity for rendering brush.
|
|
5231
5262
|
*/
|
|
5232
5263
|
interpretMaskOpAsOpacity?: boolean;
|
|
5264
|
+
/**
|
|
5265
|
+
* True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
|
|
5266
|
+
*/
|
|
5267
|
+
rasterizeUnsupportedFontStyles?: boolean;
|
|
5233
5268
|
}
|
|
5234
5269
|
export declare namespace PdfExportOptions {
|
|
5235
5270
|
enum TextCompressionEnum {
|
|
@@ -5851,9 +5886,13 @@ export declare class Portions extends ResourceBase {
|
|
|
5851
5886
|
export declare class PptxExportOptions extends ExportOptions {
|
|
5852
5887
|
constructor();
|
|
5853
5888
|
/**
|
|
5854
|
-
* The conformance class to which the PresentationML document conforms.
|
|
5889
|
+
* The conformance class to which the PresentationML document conforms.
|
|
5855
5890
|
*/
|
|
5856
5891
|
conformance?: PptxExportOptions.ConformanceEnum;
|
|
5892
|
+
/**
|
|
5893
|
+
* Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
|
5894
|
+
*/
|
|
5895
|
+
zip64Mode?: PptxExportOptions.Zip64ModeEnum;
|
|
5857
5896
|
}
|
|
5858
5897
|
export declare namespace PptxExportOptions {
|
|
5859
5898
|
enum ConformanceEnum {
|
|
@@ -5861,6 +5900,11 @@ export declare namespace PptxExportOptions {
|
|
|
5861
5900
|
Iso29500Transitional,
|
|
5862
5901
|
Iso29500Strict
|
|
5863
5902
|
}
|
|
5903
|
+
enum Zip64ModeEnum {
|
|
5904
|
+
Never,
|
|
5905
|
+
IfNecessary,
|
|
5906
|
+
Always
|
|
5907
|
+
}
|
|
5864
5908
|
}
|
|
5865
5909
|
/**
|
|
5866
5910
|
* Represents presentation to merge
|
|
@@ -5972,11 +6016,11 @@ export declare class ProtectionProperties extends ResourceBase {
|
|
|
5972
6016
|
/**
|
|
5973
6017
|
* Returns true if the presentation protected for editing.
|
|
5974
6018
|
*/
|
|
5975
|
-
isWriteProtected
|
|
6019
|
+
isWriteProtected?: boolean;
|
|
5976
6020
|
/**
|
|
5977
6021
|
* Returns true if the presentation protected for reading.
|
|
5978
6022
|
*/
|
|
5979
|
-
isEncrypted
|
|
6023
|
+
isEncrypted?: boolean;
|
|
5980
6024
|
}
|
|
5981
6025
|
/**
|
|
5982
6026
|
* Quadratic Bezier curve segment of the geometry path
|
|
@@ -6291,7 +6335,8 @@ export declare namespace Save {
|
|
|
6291
6335
|
Fodp,
|
|
6292
6336
|
Xaml,
|
|
6293
6337
|
Mpeg4,
|
|
6294
|
-
Md
|
|
6338
|
+
Md,
|
|
6339
|
+
Xml
|
|
6295
6340
|
}
|
|
6296
6341
|
}
|
|
6297
6342
|
/**
|
|
@@ -6381,7 +6426,8 @@ export declare namespace SaveSlide {
|
|
|
6381
6426
|
Fodp,
|
|
6382
6427
|
Xaml,
|
|
6383
6428
|
Html5,
|
|
6384
|
-
Md
|
|
6429
|
+
Md,
|
|
6430
|
+
Xml
|
|
6385
6431
|
}
|
|
6386
6432
|
}
|
|
6387
6433
|
/**
|
|
@@ -6682,7 +6728,7 @@ export declare class Slide extends ResourceBase {
|
|
|
6682
6728
|
/**
|
|
6683
6729
|
* Specifies if shapes of the master slide should be shown on the slide. True by default.
|
|
6684
6730
|
*/
|
|
6685
|
-
showMasterShapes
|
|
6731
|
+
showMasterShapes?: boolean;
|
|
6686
6732
|
/**
|
|
6687
6733
|
* Specifies if shapes of the master slide should be shown on the slide. True by default.
|
|
6688
6734
|
*/
|
|
@@ -6838,7 +6884,8 @@ export declare enum SlideExportFormat {
|
|
|
6838
6884
|
'Fodp',
|
|
6839
6885
|
'Xaml',
|
|
6840
6886
|
'Html5',
|
|
6841
|
-
'Md'
|
|
6887
|
+
'Md',
|
|
6888
|
+
'Xml'
|
|
6842
6889
|
}
|
|
6843
6890
|
/**
|
|
6844
6891
|
* Represents modern comment of slide
|
|
@@ -7253,7 +7300,7 @@ export declare class SmartArt extends ShapeBase {
|
|
|
7253
7300
|
/**
|
|
7254
7301
|
* The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
|
|
7255
7302
|
*/
|
|
7256
|
-
isReversed
|
|
7303
|
+
isReversed?: boolean;
|
|
7257
7304
|
}
|
|
7258
7305
|
export declare namespace SmartArt {
|
|
7259
7306
|
enum LayoutEnum {
|
|
@@ -7466,7 +7513,7 @@ export declare class SmartArtNode {
|
|
|
7466
7513
|
/**
|
|
7467
7514
|
* True for and assistant node.
|
|
7468
7515
|
*/
|
|
7469
|
-
isAssistant
|
|
7516
|
+
isAssistant?: boolean;
|
|
7470
7517
|
/**
|
|
7471
7518
|
* Node text.
|
|
7472
7519
|
*/
|
|
@@ -7824,6 +7871,10 @@ export declare class Table extends ShapeBase {
|
|
|
7824
7871
|
* Determines whether the even columns has to be drawn with a different formatting.
|
|
7825
7872
|
*/
|
|
7826
7873
|
verticalBanding?: boolean;
|
|
7874
|
+
/**
|
|
7875
|
+
* Transparency.
|
|
7876
|
+
*/
|
|
7877
|
+
transparency?: number;
|
|
7827
7878
|
}
|
|
7828
7879
|
export declare namespace Table {
|
|
7829
7880
|
enum StyleEnum {
|
|
@@ -7937,6 +7988,10 @@ export declare class TableCell {
|
|
|
7937
7988
|
* The bottom margin of the cell.
|
|
7938
7989
|
*/
|
|
7939
7990
|
marginBottom?: number;
|
|
7991
|
+
/**
|
|
7992
|
+
* Transparency.
|
|
7993
|
+
*/
|
|
7994
|
+
transparency?: number;
|
|
7940
7995
|
/**
|
|
7941
7996
|
* Text anchor type.
|
|
7942
7997
|
*/
|
|
@@ -8033,7 +8088,7 @@ export declare class TableCellMergeOptions {
|
|
|
8033
8088
|
/**
|
|
8034
8089
|
* Allow splitting
|
|
8035
8090
|
*/
|
|
8036
|
-
allowSplitting
|
|
8091
|
+
allowSplitting?: boolean;
|
|
8037
8092
|
}
|
|
8038
8093
|
/**
|
|
8039
8094
|
* Table cell split type
|
|
@@ -8744,6 +8799,8 @@ export declare class XamlExportOptions extends ExportOptions {
|
|
|
8744
8799
|
*/
|
|
8745
8800
|
exportHiddenSlides?: boolean;
|
|
8746
8801
|
}
|
|
8802
|
+
export declare namespace XamlExportOptions {
|
|
8803
|
+
}
|
|
8747
8804
|
/**
|
|
8748
8805
|
* Provides options that control how a presentation is saved in XPS format.
|
|
8749
8806
|
*/
|
|
@@ -8762,6 +8819,8 @@ export declare class XpsExportOptions extends ExportOptions {
|
|
|
8762
8819
|
*/
|
|
8763
8820
|
drawSlidesFrame?: boolean;
|
|
8764
8821
|
}
|
|
8822
|
+
export declare namespace XpsExportOptions {
|
|
8823
|
+
}
|
|
8765
8824
|
/**
|
|
8766
8825
|
* Zoom frame.
|
|
8767
8826
|
*/
|
package/model.js
CHANGED
|
@@ -26,9 +26,9 @@ 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.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.CommentAuthors = exports.CommentAuthor = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.ChartWallType = void 0;
|
|
28
28
|
exports.Operation = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.OleObjectFrame = exports.ObjectExist = exports.NotesSlideHeaderFooter = exports.NotesSlideExportFormat = exports.NotesSlide = exports.NotesCommentsLayoutingOptions = exports.NormalViewRestoredProperties = exports.NoFill = exports.NaryOperatorElement = exports.MoveToPathSegment = exports.ModelError = exports.MergingSource = exports.Merge = exports.MatrixElement = exports.MathParagraph = exports.MathFormat = exports.MasterSlides = exports.MasterSlide = exports.MarkdownExportOptions = 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.HandoutLayoutingOptions = exports.SlidesLayoutOptions = exports.GroupingCharacterElement = exports.GroupShape = exports.GrayScaleEffect = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = void 0;
|
|
29
|
+
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.PdfImportOptions = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.ParagraphFormat = exports.Paragraph = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.OperationProgress = exports.OperationError = void 0;
|
|
30
|
+
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.SlideShowTransition = exports.SlideShowProperties = exports.SlideReplaceResult = exports.SlideProperties = exports.SlideModernComment = exports.SlideExportFormat = exports.SlideComments = exports.SlideComment = exports.SlideCommentBase = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.ShapesAlignmentType = exports.Shapes = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = exports.ShapeExportFormat = void 0;
|
|
31
|
+
exports.ZoomFrame = exports.XpsExportOptions = exports.XamlExportOptions = exports.Workbook = exports.ViewProperties = exports.VideoFrame = exports.VideoExportOptions = exports.VbaReference = exports.VbaProject = exports.VbaModule = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Math element.
|
|
34
34
|
*/
|
|
@@ -1724,6 +1724,7 @@ var ExportFormat;
|
|
|
1724
1724
|
ExportFormat[ExportFormat["Xaml"] = 'Xaml'] = "Xaml";
|
|
1725
1725
|
ExportFormat[ExportFormat["Mpeg4"] = 'Mpeg4'] = "Mpeg4";
|
|
1726
1726
|
ExportFormat[ExportFormat["Md"] = 'Md'] = "Md";
|
|
1727
|
+
ExportFormat[ExportFormat["Xml"] = 'Xml'] = "Xml";
|
|
1727
1728
|
})(ExportFormat = exports.ExportFormat || (exports.ExportFormat = {}));
|
|
1728
1729
|
/**
|
|
1729
1730
|
* Represents export options for whole presentation.
|
|
@@ -1731,6 +1732,13 @@ var ExportFormat;
|
|
|
1731
1732
|
class ExportOptions {
|
|
1732
1733
|
}
|
|
1733
1734
|
exports.ExportOptions = ExportOptions;
|
|
1735
|
+
(function (ExportOptions) {
|
|
1736
|
+
let GradientStyleEnum;
|
|
1737
|
+
(function (GradientStyleEnum) {
|
|
1738
|
+
GradientStyleEnum[GradientStyleEnum["Default"] = 'Default'] = "Default";
|
|
1739
|
+
GradientStyleEnum[GradientStyleEnum["PowerPointUI"] = 'PowerPointUI'] = "PowerPointUI";
|
|
1740
|
+
})(GradientStyleEnum = ExportOptions.GradientStyleEnum || (ExportOptions.GradientStyleEnum = {}));
|
|
1741
|
+
})(ExportOptions = exports.ExportOptions || (exports.ExportOptions = {}));
|
|
1734
1742
|
/**
|
|
1735
1743
|
* File or folder information
|
|
1736
1744
|
*/
|
|
@@ -2786,6 +2794,8 @@ exports.Operation = Operation;
|
|
|
2786
2794
|
MethodEnum[MethodEnum["SavePresentation"] = 'SavePresentation'] = "SavePresentation";
|
|
2787
2795
|
MethodEnum[MethodEnum["Merge"] = 'Merge'] = "Merge";
|
|
2788
2796
|
MethodEnum[MethodEnum["MergeAndSave"] = 'MergeAndSave'] = "MergeAndSave";
|
|
2797
|
+
MethodEnum[MethodEnum["Split"] = 'Split'] = "Split";
|
|
2798
|
+
MethodEnum[MethodEnum["UploadAndSplit"] = 'UploadAndSplit'] = "UploadAndSplit";
|
|
2789
2799
|
})(MethodEnum = Operation.MethodEnum || (Operation.MethodEnum = {}));
|
|
2790
2800
|
let StatusEnum;
|
|
2791
2801
|
(function (StatusEnum) {
|
|
@@ -2797,6 +2807,9 @@ exports.Operation = Operation;
|
|
|
2797
2807
|
StatusEnum[StatusEnum["Finished"] = 'Finished'] = "Finished";
|
|
2798
2808
|
})(StatusEnum = Operation.StatusEnum || (Operation.StatusEnum = {}));
|
|
2799
2809
|
})(Operation = exports.Operation || (exports.Operation = {}));
|
|
2810
|
+
class OperationError {
|
|
2811
|
+
}
|
|
2812
|
+
exports.OperationError = OperationError;
|
|
2800
2813
|
/**
|
|
2801
2814
|
* Operation progress.
|
|
2802
2815
|
*/
|
|
@@ -3473,6 +3486,12 @@ exports.PptxExportOptions = PptxExportOptions;
|
|
|
3473
3486
|
ConformanceEnum[ConformanceEnum["Iso29500Transitional"] = 'Iso29500Transitional'] = "Iso29500Transitional";
|
|
3474
3487
|
ConformanceEnum[ConformanceEnum["Iso29500Strict"] = 'Iso29500Strict'] = "Iso29500Strict";
|
|
3475
3488
|
})(ConformanceEnum = PptxExportOptions.ConformanceEnum || (PptxExportOptions.ConformanceEnum = {}));
|
|
3489
|
+
let Zip64ModeEnum;
|
|
3490
|
+
(function (Zip64ModeEnum) {
|
|
3491
|
+
Zip64ModeEnum[Zip64ModeEnum["Never"] = 'Never'] = "Never";
|
|
3492
|
+
Zip64ModeEnum[Zip64ModeEnum["IfNecessary"] = 'IfNecessary'] = "IfNecessary";
|
|
3493
|
+
Zip64ModeEnum[Zip64ModeEnum["Always"] = 'Always'] = "Always";
|
|
3494
|
+
})(Zip64ModeEnum = PptxExportOptions.Zip64ModeEnum || (PptxExportOptions.Zip64ModeEnum = {}));
|
|
3476
3495
|
})(PptxExportOptions = exports.PptxExportOptions || (exports.PptxExportOptions = {}));
|
|
3477
3496
|
/**
|
|
3478
3497
|
* Represents presentation to merge
|
|
@@ -3700,6 +3719,7 @@ exports.Save = Save;
|
|
|
3700
3719
|
FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
|
|
3701
3720
|
FormatEnum[FormatEnum["Mpeg4"] = 'Mpeg4'] = "Mpeg4";
|
|
3702
3721
|
FormatEnum[FormatEnum["Md"] = 'Md'] = "Md";
|
|
3722
|
+
FormatEnum[FormatEnum["Xml"] = 'Xml'] = "Xml";
|
|
3703
3723
|
})(FormatEnum = Save.FormatEnum || (Save.FormatEnum = {}));
|
|
3704
3724
|
})(Save = exports.Save || (exports.Save = {}));
|
|
3705
3725
|
/**
|
|
@@ -3760,6 +3780,7 @@ exports.SaveSlide = SaveSlide;
|
|
|
3760
3780
|
FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
|
|
3761
3781
|
FormatEnum[FormatEnum["Html5"] = 'Html5'] = "Html5";
|
|
3762
3782
|
FormatEnum[FormatEnum["Md"] = 'Md'] = "Md";
|
|
3783
|
+
FormatEnum[FormatEnum["Xml"] = 'Xml'] = "Xml";
|
|
3763
3784
|
})(FormatEnum = SaveSlide.FormatEnum || (SaveSlide.FormatEnum = {}));
|
|
3764
3785
|
})(SaveSlide = exports.SaveSlide || (exports.SaveSlide = {}));
|
|
3765
3786
|
/**
|
|
@@ -4067,6 +4088,7 @@ var SlideExportFormat;
|
|
|
4067
4088
|
SlideExportFormat[SlideExportFormat["Xaml"] = 'Xaml'] = "Xaml";
|
|
4068
4089
|
SlideExportFormat[SlideExportFormat["Html5"] = 'Html5'] = "Html5";
|
|
4069
4090
|
SlideExportFormat[SlideExportFormat["Md"] = 'Md'] = "Md";
|
|
4091
|
+
SlideExportFormat[SlideExportFormat["Xml"] = 'Xml'] = "Xml";
|
|
4070
4092
|
})(SlideExportFormat = exports.SlideExportFormat || (exports.SlideExportFormat = {}));
|
|
4071
4093
|
/**
|
|
4072
4094
|
* Represents modern comment of slide
|