asposeslidescloud 22.7.0 → 22.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # Nodejs REST API to Process Presentation in Cloud
4
4
  This repository contains Aspose.Slides Cloud SDK for Nodejs source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/nodejs) using Aspose.slides Cloud REST APIs in your Nodejs applications.
5
5
 
6
- You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/slides/conversion), [PPT to Word](https://products.aspose.app/slides/conversion/ppt-to-word), and [PPT to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg) converters because they are live implementations of popular conversion processes.
6
+ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspose.app/slides/conversion), [Powerpoint to Word](https://products.aspose.app/slides/conversion/ppt-to-word), [Powerpoint to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg), [Powerpoint to PNG](https://products.aspose.app/slides/conversion/ppt-to-png), [PDF to Powerpoint](https://products.aspose.app/slides/import/pdf-to-powerpoint), [JPG to Powerpoint](https://products.aspose.app/slides/import/jpg-to-ppt), and [PNG to Powerpoint](https://products.aspose.app/slides/import/png-to-ppt) converters because they are live implementations of popular conversion processes.
7
7
 
8
8
  ## Presentation Processing Features
9
9
 
@@ -27,6 +27,22 @@ 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.9
31
+
32
+ * Added new **ReplaceFont** and **ReplaceFontOnline** methods that allow replacing presentation fonts.
33
+ * Added new **SetEmbeddedFontFromRequest** and **SetEmbeddedFontFromRequestOnline** that allow to embed fonts without uploading them to the storage.
34
+ * Added an optional **fontsFolder** parameter to **SetEmbeddedFont** and **SetEmbeddedFontOnline** methods to enable using custom fonts with those methods.
35
+ * Added **FontSubstRules** property to **ExportOptions** class to allow specifying font substitution rules in conversion methods.
36
+ * Added an optional **group** parameter to **ImportImagesFromSvg** method to allow importing SVG images as a GroupShape.
37
+ * Added new **CreateSmartArtNode** and **DeleteSmartArtNode** methods to manage individual nodes in SmartArt shapes.
38
+ * Added **FillFomat**, **LineFormat**, **EffectFormat** and **ThreeDFormat** properties to **DataPoint** class that allow formatting individual chart data points.
39
+
40
+ ## Enhancements in Version 22.8
41
+
42
+ * With new **GetFonts** and **GetFontsOnline** methods you can get a list for fonts used in the presentation.
43
+ * Added new **SetEmbeddedFont**, **SetEmbeddedFontOnline**, **DeleteEmbeddedFont** and **DeleteEmbeddedFontOnline** methods to embed/unembed presentation fonts.
44
+ * Added new **ImportImagesFromSvg** method to import SVG images as individual geometry shapes.
45
+
30
46
  ## Enhancements in Version 22.7
31
47
 
32
48
  * Added **Html**, **Pdf**, **Xps**, **Pptx**, **Odp**, **Otp**, **Ppt**, **Pps**, **Ppsx**, **Pptm**, **Ppsm**, **Potx**, **Pot**, **Potm**, **Svg**, **Fodp**, **Xaml**, **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export slide notes to those formats.
package/api.d.ts CHANGED
@@ -429,6 +429,22 @@ export declare class SlidesApi {
429
429
  response: http.ServerResponse;
430
430
  body: model.Slides;
431
431
  }>;
432
+ /**
433
+ * Add SmartArt node
434
+ * @param name Document name.
435
+ * @param slideIndex Slide index.
436
+ * @param smartArtIndex Index of the object on the slide among the same type of objects.
437
+ * @param subNode Sub-node path (e.g. \"3\", \"3/nodes/2).
438
+ * @param text Node text.
439
+ * @param position Position to insert a new node.
440
+ * @param password Document password.
441
+ * @param folder Document folder.
442
+ * @param storage Document storage.
443
+ */
444
+ createSmartArtNode(name: string, slideIndex: number, smartArtIndex: number, subNode?: string, text?: string, position?: number, password?: string, folder?: string, storage?: string): Promise<{
445
+ response: http.ServerResponse;
446
+ body: model.SmartArt;
447
+ }>;
432
448
  /**
433
449
  * Add an effect to special slide (master, layout, notes) animation.
434
450
  * @param name Document name.
@@ -826,6 +842,28 @@ export declare class SlidesApi {
826
842
  response: http.ServerResponse;
827
843
  body: model.DocumentProperties;
828
844
  }>;
845
+ /**
846
+ * Removes specified embedded font and returns presentation fonts info.
847
+ * @param name Document name.
848
+ * @param fontName Font name.
849
+ * @param password Document password.
850
+ * @param folder Document folder.
851
+ * @param storage Document storage.
852
+ */
853
+ deleteEmbeddedFont(name: string, fontName: string, password?: string, folder?: string, storage?: string): Promise<{
854
+ response: http.ServerResponse;
855
+ body: model.FontsData;
856
+ }>;
857
+ /**
858
+ * Removes specified embedded font and returns presentation.
859
+ * @param document Document data.
860
+ * @param fontName Font name.
861
+ * @param password Document password.
862
+ */
863
+ deleteEmbeddedFontOnline(document: Readable, fontName: string, password?: string): Promise<{
864
+ response: http.ServerResponse;
865
+ body: Buffer;
866
+ }>;
829
867
  /**
830
868
  * Delete file
831
869
  * @param path File path e.g. '/folder/file.ext'
@@ -1034,6 +1072,21 @@ export declare class SlidesApi {
1034
1072
  response: http.ServerResponse;
1035
1073
  body: model.Slides;
1036
1074
  }>;
1075
+ /**
1076
+ * Delete SmartArt node
1077
+ * @param name Document name.
1078
+ * @param slideIndex Slide index.
1079
+ * @param smartArtIndex Index of the object on the slide among the same type of objects.
1080
+ * @param nodeIndex Root level node index.
1081
+ * @param subNode Sub-node path (e.g. \"3\", \"3/nodes/2).
1082
+ * @param password Document password.
1083
+ * @param folder Document folder.
1084
+ * @param storage Document storage.
1085
+ */
1086
+ deleteSmartArtNode(name: string, slideIndex: number, smartArtIndex: number, nodeIndex: number, subNode?: string, password?: string, folder?: string, storage?: string): Promise<{
1087
+ response: http.ServerResponse;
1088
+ body: model.SmartArt;
1089
+ }>;
1037
1090
  /**
1038
1091
  * Remove animation from a special slide (master, layout, notes).
1039
1092
  * @param name Document name.
@@ -1558,8 +1611,8 @@ export declare class SlidesApi {
1558
1611
  * @param name Document name.
1559
1612
  * @param slideIndex Slide index.
1560
1613
  * @param format Output file format.
1561
- * @param width Output file width.
1562
- * @param height Output file height.
1614
+ * @param width The width of the slide representation in the output format.
1615
+ * @param height The height of the slide representation in the output format
1563
1616
  * @param password Document password.
1564
1617
  * @param folder Document folder.
1565
1618
  * @param storage Document storage.
@@ -1574,8 +1627,8 @@ export declare class SlidesApi {
1574
1627
  * @param document Document data.
1575
1628
  * @param slideIndex Slide index.
1576
1629
  * @param format Output file format.
1577
- * @param width Output file width.
1578
- * @param height Output file height.
1630
+ * @param width The width of the slide representation in the output format.
1631
+ * @param height The height of the slide representation in the output format.
1579
1632
  * @param password Document password.
1580
1633
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1581
1634
  */
@@ -1850,6 +1903,26 @@ export declare class SlidesApi {
1850
1903
  response: http.ServerResponse;
1851
1904
  body: model.FontScheme;
1852
1905
  }>;
1906
+ /**
1907
+ * Returns presentation fonts info.
1908
+ * @param name Document name.
1909
+ * @param password Document password.
1910
+ * @param folder Document folder.
1911
+ * @param storage Document storage.
1912
+ */
1913
+ getFonts(name: string, password?: string, folder?: string, storage?: string): Promise<{
1914
+ response: http.ServerResponse;
1915
+ body: model.FontsData;
1916
+ }>;
1917
+ /**
1918
+ * Returns presentation fonts info.
1919
+ * @param document Document data.
1920
+ * @param password Document password.
1921
+ */
1922
+ getFontsOnline(document: Readable, password?: string): Promise<{
1923
+ response: http.ServerResponse;
1924
+ body: model.FontsData;
1925
+ }>;
1853
1926
  /**
1854
1927
  * Read slide theme format scheme info.
1855
1928
  * @param name Document name.
@@ -2653,6 +2726,25 @@ export declare class SlidesApi {
2653
2726
  response: http.ServerResponse;
2654
2727
  body: model.Document;
2655
2728
  }>;
2729
+ /**
2730
+ * Imports shapes from SVG file.
2731
+ * @param name Document name.
2732
+ * @param slideIndex Slide index.
2733
+ * @param image SVG image data.
2734
+ * @param x The X coordinate of the imported group of shapes (0 is default if not specified).
2735
+ * @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
2736
+ * @param width The width of the imported group of shapes (default is SVG image width).
2737
+ * @param height The height of the imported group of shapes (default is SVG image width).
2738
+ * @param shapes Indexes of shapes to import. All shapes are imported if not specified.
2739
+ * @param group If true, the set of shapes will be imported as a one group shape.
2740
+ * @param password Document password.
2741
+ * @param folder Presentation folder.
2742
+ * @param storage Presentation storage.
2743
+ */
2744
+ importShapesFromSvg(name: string, slideIndex: number, image?: Readable, x?: number, y?: number, width?: number, height?: number, shapes?: Array<number>, group?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2745
+ response: http.ServerResponse;
2746
+ body: model.Shapes;
2747
+ }>;
2656
2748
  /**
2657
2749
  * Merge the presentation with other presentations specified in the request parameter.
2658
2750
  * @param name Document name.
@@ -2798,6 +2890,34 @@ export declare class SlidesApi {
2798
2890
  response: http.ServerResponse;
2799
2891
  body: model.Slides;
2800
2892
  }>;
2893
+ /**
2894
+ * Replaces specified font and returns presentation fonts info.
2895
+ * @param name Document name.
2896
+ * @param sourceFont Source font name.
2897
+ * @param targetFont Target font name.
2898
+ * @param embed Embed target font.
2899
+ * @param password Document password.
2900
+ * @param folder Document folder.
2901
+ * @param storage Document storage.
2902
+ * @param fontsFolder Custom fonts folder.
2903
+ */
2904
+ replaceFont(name: string, sourceFont: string, targetFont: string, embed?: boolean, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
2905
+ response: http.ServerResponse;
2906
+ body: model.FontsData;
2907
+ }>;
2908
+ /**
2909
+ * Replaces specified font and returns presentation.
2910
+ * @param document Document data.
2911
+ * @param sourceFont Source font name.
2912
+ * @param targetFont Target font name.
2913
+ * @param embed Embed target font.
2914
+ * @param password Document password.
2915
+ * @param fontsFolder Custom fonts folder.
2916
+ */
2917
+ replaceFontOnline(document: Readable, sourceFont: string, targetFont: string, embed?: boolean, password?: string, fontsFolder?: string): Promise<{
2918
+ response: http.ServerResponse;
2919
+ body: Buffer;
2920
+ }>;
2801
2921
  /**
2802
2922
  * Replace text with a new value.
2803
2923
  * @param name Document name.
@@ -3136,6 +3256,56 @@ export declare class SlidesApi {
3136
3256
  response: http.ServerResponse;
3137
3257
  body: model.DocumentProperty;
3138
3258
  }>;
3259
+ /**
3260
+ * Embeds specified font and returns presentation fonts info.
3261
+ * @param name Document name.
3262
+ * @param fontName Font name.
3263
+ * @param onlyUsed Only used characters will be embedded.
3264
+ * @param password Document password.
3265
+ * @param folder Document folder.
3266
+ * @param storage Document storage.
3267
+ * @param fontsFolder Custom fonts folder.
3268
+ */
3269
+ setEmbeddedFont(name: string, fontName: string, onlyUsed?: boolean, password?: string, folder?: string, storage?: string, fontsFolder?: string): Promise<{
3270
+ response: http.ServerResponse;
3271
+ body: model.FontsData;
3272
+ }>;
3273
+ /**
3274
+ * Embeds font from request and returns presentation fonts info.
3275
+ * @param font Font data.
3276
+ * @param name Document name.
3277
+ * @param onlyUsed Only used characters will be embedded.
3278
+ * @param password Document password.
3279
+ * @param folder Document folder.
3280
+ * @param storage Document storage.
3281
+ */
3282
+ setEmbeddedFontFromRequest(font: Readable, name: string, onlyUsed?: boolean, password?: string, folder?: string, storage?: string): Promise<{
3283
+ response: http.ServerResponse;
3284
+ body: model.FontsData;
3285
+ }>;
3286
+ /**
3287
+ * Embeds font from request and returns presentation.
3288
+ * @param document Document data.
3289
+ * @param font Font data.
3290
+ * @param onlyUsed Only used characters will be embedded.
3291
+ * @param password Document password.
3292
+ */
3293
+ setEmbeddedFontFromRequestOnline(document: Readable, font: Readable, onlyUsed?: boolean, password?: string): Promise<{
3294
+ response: http.ServerResponse;
3295
+ body: Buffer;
3296
+ }>;
3297
+ /**
3298
+ * Embeds specified font and returns presentation.
3299
+ * @param document Document data.
3300
+ * @param fontName Font name.
3301
+ * @param onlyUsed Only used characters will be embedded.
3302
+ * @param password Document password.
3303
+ * @param fontsFolder Custom fonts folder.
3304
+ */
3305
+ setEmbeddedFontOnline(document: Readable, fontName: string, onlyUsed?: boolean, password?: string, fontsFolder?: string): Promise<{
3306
+ response: http.ServerResponse;
3307
+ body: Buffer;
3308
+ }>;
3139
3309
  /**
3140
3310
  * Set header/footer the notes slide.
3141
3311
  * @param name Document name.
package/api.js CHANGED
@@ -1398,6 +1398,55 @@ class SlidesApi {
1398
1398
  return Promise.resolve({ body: result, response });
1399
1399
  });
1400
1400
  }
1401
+ /**
1402
+ * Add SmartArt node
1403
+ * @param name Document name.
1404
+ * @param slideIndex Slide index.
1405
+ * @param smartArtIndex Index of the object on the slide among the same type of objects.
1406
+ * @param subNode Sub-node path (e.g. \"3\", \"3/nodes/2).
1407
+ * @param text Node text.
1408
+ * @param position Position to insert a new node.
1409
+ * @param password Document password.
1410
+ * @param folder Document folder.
1411
+ * @param storage Document storage.
1412
+ */
1413
+ createSmartArtNode(name, slideIndex, smartArtIndex, subNode = null, text = null, position = null, password = null, folder = null, storage = null) {
1414
+ return __awaiter(this, void 0, void 0, function* () {
1415
+ // verify required parameter 'name' is not null or undefined
1416
+ if (name === null || name === undefined) {
1417
+ throw new Error('The required parameter "name" was null or undefined when calling createSmartArtNode.');
1418
+ }
1419
+ // verify required parameter 'slideIndex' is not null or undefined
1420
+ if (slideIndex === null || slideIndex === undefined) {
1421
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling createSmartArtNode.');
1422
+ }
1423
+ // verify required parameter 'smartArtIndex' is not null or undefined
1424
+ if (smartArtIndex === null || smartArtIndex === undefined) {
1425
+ throw new Error('The required parameter "smartArtIndex" was null or undefined when calling createSmartArtNode.');
1426
+ }
1427
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/SmartArts/{smartArtIndex}/nodes";
1428
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
1429
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
1430
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "smartArtIndex", objectSerializer_1.ObjectSerializer.toString(smartArtIndex));
1431
+ const queryParameters = {};
1432
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "subNode", subNode);
1433
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "text", text);
1434
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "position", position);
1435
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
1436
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
1437
+ const requestOptions = {
1438
+ method: "POST",
1439
+ qs: queryParameters,
1440
+ headers: {},
1441
+ uri: localVarPath,
1442
+ json: true
1443
+ };
1444
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
1445
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
1446
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "SmartArt");
1447
+ return Promise.resolve({ body: result, response });
1448
+ });
1449
+ }
1401
1450
  /**
1402
1451
  * Add an effect to special slide (master, layout, notes) animation.
1403
1452
  * @param name Document name.
@@ -2725,6 +2774,80 @@ class SlidesApi {
2725
2774
  return Promise.resolve({ body: result, response });
2726
2775
  });
2727
2776
  }
2777
+ /**
2778
+ * Removes specified embedded font and returns presentation fonts info.
2779
+ * @param name Document name.
2780
+ * @param fontName Font name.
2781
+ * @param password Document password.
2782
+ * @param folder Document folder.
2783
+ * @param storage Document storage.
2784
+ */
2785
+ deleteEmbeddedFont(name, fontName, password = null, folder = null, storage = null) {
2786
+ return __awaiter(this, void 0, void 0, function* () {
2787
+ // verify required parameter 'name' is not null or undefined
2788
+ if (name === null || name === undefined) {
2789
+ throw new Error('The required parameter "name" was null or undefined when calling deleteEmbeddedFont.');
2790
+ }
2791
+ // verify required parameter 'fontName' is not null or undefined
2792
+ if (fontName === null || fontName === undefined) {
2793
+ throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFont.');
2794
+ }
2795
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
2796
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
2797
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
2798
+ const queryParameters = {};
2799
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
2800
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
2801
+ const requestOptions = {
2802
+ method: "DELETE",
2803
+ qs: queryParameters,
2804
+ headers: {},
2805
+ uri: localVarPath,
2806
+ json: true
2807
+ };
2808
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
2809
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
2810
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
2811
+ return Promise.resolve({ body: result, response });
2812
+ });
2813
+ }
2814
+ /**
2815
+ * Removes specified embedded font and returns presentation.
2816
+ * @param document Document data.
2817
+ * @param fontName Font name.
2818
+ * @param password Document password.
2819
+ */
2820
+ deleteEmbeddedFontOnline(document, fontName, password = null) {
2821
+ return __awaiter(this, void 0, void 0, function* () {
2822
+ // verify required parameter 'document' is not null or undefined
2823
+ if (document === null || document === undefined) {
2824
+ throw new Error('The required parameter "document" was null or undefined when calling deleteEmbeddedFontOnline.');
2825
+ }
2826
+ // verify required parameter 'fontName' is not null or undefined
2827
+ if (fontName === null || fontName === undefined) {
2828
+ throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFontOnline.');
2829
+ }
2830
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}/delete";
2831
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
2832
+ const queryParameters = {};
2833
+ const requestOptions = {
2834
+ method: "POST",
2835
+ qs: queryParameters,
2836
+ headers: {},
2837
+ uri: localVarPath,
2838
+ encoding: null
2839
+ };
2840
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
2841
+ let localVarFiles = [];
2842
+ if (document != null) {
2843
+ localVarFiles.push(document);
2844
+ }
2845
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
2846
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
2847
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
2848
+ return Promise.resolve({ body: result, response });
2849
+ });
2850
+ }
2728
2851
  /**
2729
2852
  * Delete file
2730
2853
  * @param path File path e.g. '/folder/file.ext'
@@ -3378,6 +3501,57 @@ class SlidesApi {
3378
3501
  return Promise.resolve({ body: result, response });
3379
3502
  });
3380
3503
  }
3504
+ /**
3505
+ * Delete SmartArt node
3506
+ * @param name Document name.
3507
+ * @param slideIndex Slide index.
3508
+ * @param smartArtIndex Index of the object on the slide among the same type of objects.
3509
+ * @param nodeIndex Root level node index.
3510
+ * @param subNode Sub-node path (e.g. \"3\", \"3/nodes/2).
3511
+ * @param password Document password.
3512
+ * @param folder Document folder.
3513
+ * @param storage Document storage.
3514
+ */
3515
+ deleteSmartArtNode(name, slideIndex, smartArtIndex, nodeIndex, subNode = null, password = null, folder = null, storage = null) {
3516
+ return __awaiter(this, void 0, void 0, function* () {
3517
+ // verify required parameter 'name' is not null or undefined
3518
+ if (name === null || name === undefined) {
3519
+ throw new Error('The required parameter "name" was null or undefined when calling deleteSmartArtNode.');
3520
+ }
3521
+ // verify required parameter 'slideIndex' is not null or undefined
3522
+ if (slideIndex === null || slideIndex === undefined) {
3523
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling deleteSmartArtNode.');
3524
+ }
3525
+ // verify required parameter 'smartArtIndex' is not null or undefined
3526
+ if (smartArtIndex === null || smartArtIndex === undefined) {
3527
+ throw new Error('The required parameter "smartArtIndex" was null or undefined when calling deleteSmartArtNode.');
3528
+ }
3529
+ // verify required parameter 'nodeIndex' is not null or undefined
3530
+ if (nodeIndex === null || nodeIndex === undefined) {
3531
+ throw new Error('The required parameter "nodeIndex" was null or undefined when calling deleteSmartArtNode.');
3532
+ }
3533
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/SmartArts/{smartArtIndex}/nodes/{nodeIndex}";
3534
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
3535
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
3536
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "smartArtIndex", objectSerializer_1.ObjectSerializer.toString(smartArtIndex));
3537
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "nodeIndex", objectSerializer_1.ObjectSerializer.toString(nodeIndex));
3538
+ const queryParameters = {};
3539
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "subNode", subNode);
3540
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
3541
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
3542
+ const requestOptions = {
3543
+ method: "DELETE",
3544
+ qs: queryParameters,
3545
+ headers: {},
3546
+ uri: localVarPath,
3547
+ json: true
3548
+ };
3549
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
3550
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
3551
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "SmartArt");
3552
+ return Promise.resolve({ body: result, response });
3553
+ });
3554
+ }
3381
3555
  /**
3382
3556
  * Remove animation from a special slide (master, layout, notes).
3383
3557
  * @param name Document name.
@@ -5208,8 +5382,8 @@ class SlidesApi {
5208
5382
  * @param name Document name.
5209
5383
  * @param slideIndex Slide index.
5210
5384
  * @param format Output file format.
5211
- * @param width Output file width.
5212
- * @param height Output file height.
5385
+ * @param width The width of the slide representation in the output format.
5386
+ * @param height The height of the slide representation in the output format
5213
5387
  * @param password Document password.
5214
5388
  * @param folder Document folder.
5215
5389
  * @param storage Document storage.
@@ -5261,8 +5435,8 @@ class SlidesApi {
5261
5435
  * @param document Document data.
5262
5436
  * @param slideIndex Slide index.
5263
5437
  * @param format Output file format.
5264
- * @param width Output file width.
5265
- * @param height Output file height.
5438
+ * @param width The width of the slide representation in the output format.
5439
+ * @param height The height of the slide representation in the output format.
5266
5440
  * @param password Document password.
5267
5441
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
5268
5442
  */
@@ -6186,6 +6360,68 @@ class SlidesApi {
6186
6360
  return Promise.resolve({ body: result, response });
6187
6361
  });
6188
6362
  }
6363
+ /**
6364
+ * Returns presentation fonts info.
6365
+ * @param name Document name.
6366
+ * @param password Document password.
6367
+ * @param folder Document folder.
6368
+ * @param storage Document storage.
6369
+ */
6370
+ getFonts(name, password = null, folder = null, storage = null) {
6371
+ return __awaiter(this, void 0, void 0, function* () {
6372
+ // verify required parameter 'name' is not null or undefined
6373
+ if (name === null || name === undefined) {
6374
+ throw new Error('The required parameter "name" was null or undefined when calling getFonts.');
6375
+ }
6376
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts";
6377
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
6378
+ const queryParameters = {};
6379
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
6380
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
6381
+ const requestOptions = {
6382
+ method: "GET",
6383
+ qs: queryParameters,
6384
+ headers: {},
6385
+ uri: localVarPath,
6386
+ json: true
6387
+ };
6388
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
6389
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
6390
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
6391
+ return Promise.resolve({ body: result, response });
6392
+ });
6393
+ }
6394
+ /**
6395
+ * Returns presentation fonts info.
6396
+ * @param document Document data.
6397
+ * @param password Document password.
6398
+ */
6399
+ getFontsOnline(document, password = null) {
6400
+ return __awaiter(this, void 0, void 0, function* () {
6401
+ // verify required parameter 'document' is not null or undefined
6402
+ if (document === null || document === undefined) {
6403
+ throw new Error('The required parameter "document" was null or undefined when calling getFontsOnline.');
6404
+ }
6405
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts";
6406
+ const queryParameters = {};
6407
+ const requestOptions = {
6408
+ method: "POST",
6409
+ qs: queryParameters,
6410
+ headers: {},
6411
+ uri: localVarPath,
6412
+ json: true
6413
+ };
6414
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
6415
+ let localVarFiles = [];
6416
+ if (document != null) {
6417
+ localVarFiles.push(document);
6418
+ }
6419
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
6420
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
6421
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
6422
+ return Promise.resolve({ body: result, response });
6423
+ });
6424
+ }
6189
6425
  /**
6190
6426
  * Read slide theme format scheme info.
6191
6427
  * @param name Document name.
@@ -8880,6 +9116,61 @@ class SlidesApi {
8880
9116
  return Promise.resolve({ body: result, response });
8881
9117
  });
8882
9118
  }
9119
+ /**
9120
+ * Imports shapes from SVG file.
9121
+ * @param name Document name.
9122
+ * @param slideIndex Slide index.
9123
+ * @param image SVG image data.
9124
+ * @param x The X coordinate of the imported group of shapes (0 is default if not specified).
9125
+ * @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
9126
+ * @param width The width of the imported group of shapes (default is SVG image width).
9127
+ * @param height The height of the imported group of shapes (default is SVG image width).
9128
+ * @param shapes Indexes of shapes to import. All shapes are imported if not specified.
9129
+ * @param group If true, the set of shapes will be imported as a one group shape.
9130
+ * @param password Document password.
9131
+ * @param folder Presentation folder.
9132
+ * @param storage Presentation storage.
9133
+ */
9134
+ importShapesFromSvg(name, slideIndex, image = null, x = null, y = null, width = null, height = null, shapes = null, group = null, password = null, folder = null, storage = null) {
9135
+ return __awaiter(this, void 0, void 0, function* () {
9136
+ // verify required parameter 'name' is not null or undefined
9137
+ if (name === null || name === undefined) {
9138
+ throw new Error('The required parameter "name" was null or undefined when calling importShapesFromSvg.');
9139
+ }
9140
+ // verify required parameter 'slideIndex' is not null or undefined
9141
+ if (slideIndex === null || slideIndex === undefined) {
9142
+ throw new Error('The required parameter "slideIndex" was null or undefined when calling importShapesFromSvg.');
9143
+ }
9144
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/fromSvg";
9145
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
9146
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
9147
+ const queryParameters = {};
9148
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "x", x);
9149
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "y", y);
9150
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "width", width);
9151
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "height", height);
9152
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "shapes", shapes);
9153
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "group", group);
9154
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
9155
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
9156
+ const requestOptions = {
9157
+ method: "POST",
9158
+ qs: queryParameters,
9159
+ headers: {},
9160
+ uri: localVarPath,
9161
+ json: true
9162
+ };
9163
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
9164
+ let localVarFiles = [];
9165
+ if (image != null) {
9166
+ localVarFiles.push(image);
9167
+ }
9168
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
9169
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
9170
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Shapes");
9171
+ return Promise.resolve({ body: result, response });
9172
+ });
9173
+ }
8883
9174
  /**
8884
9175
  * Merge the presentation with other presentations specified in the request parameter.
8885
9176
  * @param name Document name.
@@ -9329,6 +9620,100 @@ class SlidesApi {
9329
9620
  return Promise.resolve({ body: result, response });
9330
9621
  });
9331
9622
  }
9623
+ /**
9624
+ * Replaces specified font and returns presentation fonts info.
9625
+ * @param name Document name.
9626
+ * @param sourceFont Source font name.
9627
+ * @param targetFont Target font name.
9628
+ * @param embed Embed target font.
9629
+ * @param password Document password.
9630
+ * @param folder Document folder.
9631
+ * @param storage Document storage.
9632
+ * @param fontsFolder Custom fonts folder.
9633
+ */
9634
+ replaceFont(name, sourceFont, targetFont, embed = null, password = null, folder = null, storage = null, fontsFolder = null) {
9635
+ return __awaiter(this, void 0, void 0, function* () {
9636
+ // verify required parameter 'name' is not null or undefined
9637
+ if (name === null || name === undefined) {
9638
+ throw new Error('The required parameter "name" was null or undefined when calling replaceFont.');
9639
+ }
9640
+ // verify required parameter 'sourceFont' is not null or undefined
9641
+ if (sourceFont === null || sourceFont === undefined) {
9642
+ throw new Error('The required parameter "sourceFont" was null or undefined when calling replaceFont.');
9643
+ }
9644
+ // verify required parameter 'targetFont' is not null or undefined
9645
+ if (targetFont === null || targetFont === undefined) {
9646
+ throw new Error('The required parameter "targetFont" was null or undefined when calling replaceFont.');
9647
+ }
9648
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/{sourceFont}/replace/{targetFont}";
9649
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
9650
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "sourceFont", objectSerializer_1.ObjectSerializer.toString(sourceFont));
9651
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "targetFont", objectSerializer_1.ObjectSerializer.toString(targetFont));
9652
+ const queryParameters = {};
9653
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "embed", embed);
9654
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
9655
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
9656
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
9657
+ const requestOptions = {
9658
+ method: "POST",
9659
+ qs: queryParameters,
9660
+ headers: {},
9661
+ uri: localVarPath,
9662
+ json: true
9663
+ };
9664
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
9665
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
9666
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
9667
+ return Promise.resolve({ body: result, response });
9668
+ });
9669
+ }
9670
+ /**
9671
+ * Replaces specified font and returns presentation.
9672
+ * @param document Document data.
9673
+ * @param sourceFont Source font name.
9674
+ * @param targetFont Target font name.
9675
+ * @param embed Embed target font.
9676
+ * @param password Document password.
9677
+ * @param fontsFolder Custom fonts folder.
9678
+ */
9679
+ replaceFontOnline(document, sourceFont, targetFont, embed = null, password = null, fontsFolder = null) {
9680
+ return __awaiter(this, void 0, void 0, function* () {
9681
+ // verify required parameter 'document' is not null or undefined
9682
+ if (document === null || document === undefined) {
9683
+ throw new Error('The required parameter "document" was null or undefined when calling replaceFontOnline.');
9684
+ }
9685
+ // verify required parameter 'sourceFont' is not null or undefined
9686
+ if (sourceFont === null || sourceFont === undefined) {
9687
+ throw new Error('The required parameter "sourceFont" was null or undefined when calling replaceFontOnline.');
9688
+ }
9689
+ // verify required parameter 'targetFont' is not null or undefined
9690
+ if (targetFont === null || targetFont === undefined) {
9691
+ throw new Error('The required parameter "targetFont" was null or undefined when calling replaceFontOnline.');
9692
+ }
9693
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/{sourceFont}/replace/{targetFont}";
9694
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "sourceFont", objectSerializer_1.ObjectSerializer.toString(sourceFont));
9695
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "targetFont", objectSerializer_1.ObjectSerializer.toString(targetFont));
9696
+ const queryParameters = {};
9697
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "embed", embed);
9698
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
9699
+ const requestOptions = {
9700
+ method: "POST",
9701
+ qs: queryParameters,
9702
+ headers: {},
9703
+ uri: localVarPath,
9704
+ encoding: null
9705
+ };
9706
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
9707
+ let localVarFiles = [];
9708
+ if (document != null) {
9709
+ localVarFiles.push(document);
9710
+ }
9711
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
9712
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
9713
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
9714
+ return Promise.resolve({ body: result, response });
9715
+ });
9716
+ }
9332
9717
  /**
9333
9718
  * Replace text with a new value.
9334
9719
  * @param name Document name.
@@ -10556,6 +10941,172 @@ class SlidesApi {
10556
10941
  return Promise.resolve({ body: result, response });
10557
10942
  });
10558
10943
  }
10944
+ /**
10945
+ * Embeds specified font and returns presentation fonts info.
10946
+ * @param name Document name.
10947
+ * @param fontName Font name.
10948
+ * @param onlyUsed Only used characters will be embedded.
10949
+ * @param password Document password.
10950
+ * @param folder Document folder.
10951
+ * @param storage Document storage.
10952
+ * @param fontsFolder Custom fonts folder.
10953
+ */
10954
+ setEmbeddedFont(name, fontName, onlyUsed = null, password = null, folder = null, storage = null, fontsFolder = null) {
10955
+ return __awaiter(this, void 0, void 0, function* () {
10956
+ // verify required parameter 'name' is not null or undefined
10957
+ if (name === null || name === undefined) {
10958
+ throw new Error('The required parameter "name" was null or undefined when calling setEmbeddedFont.');
10959
+ }
10960
+ // verify required parameter 'fontName' is not null or undefined
10961
+ if (fontName === null || fontName === undefined) {
10962
+ throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFont.');
10963
+ }
10964
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
10965
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
10966
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
10967
+ const queryParameters = {};
10968
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
10969
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
10970
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
10971
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
10972
+ const requestOptions = {
10973
+ method: "POST",
10974
+ qs: queryParameters,
10975
+ headers: {},
10976
+ uri: localVarPath,
10977
+ json: true
10978
+ };
10979
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
10980
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
10981
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
10982
+ return Promise.resolve({ body: result, response });
10983
+ });
10984
+ }
10985
+ /**
10986
+ * Embeds font from request and returns presentation fonts info.
10987
+ * @param font Font data.
10988
+ * @param name Document name.
10989
+ * @param onlyUsed Only used characters will be embedded.
10990
+ * @param password Document password.
10991
+ * @param folder Document folder.
10992
+ * @param storage Document storage.
10993
+ */
10994
+ setEmbeddedFontFromRequest(font, name, onlyUsed = null, password = null, folder = null, storage = null) {
10995
+ return __awaiter(this, void 0, void 0, function* () {
10996
+ // verify required parameter 'font' is not null or undefined
10997
+ if (font === null || font === undefined) {
10998
+ throw new Error('The required parameter "font" was null or undefined when calling setEmbeddedFontFromRequest.');
10999
+ }
11000
+ // verify required parameter 'name' is not null or undefined
11001
+ if (name === null || name === undefined) {
11002
+ throw new Error('The required parameter "name" was null or undefined when calling setEmbeddedFontFromRequest.');
11003
+ }
11004
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded";
11005
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
11006
+ const queryParameters = {};
11007
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
11008
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
11009
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
11010
+ const requestOptions = {
11011
+ method: "POST",
11012
+ qs: queryParameters,
11013
+ headers: {},
11014
+ uri: localVarPath,
11015
+ json: true
11016
+ };
11017
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
11018
+ let localVarFiles = [];
11019
+ if (font != null) {
11020
+ localVarFiles.push(font);
11021
+ }
11022
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
11023
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
11024
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
11025
+ return Promise.resolve({ body: result, response });
11026
+ });
11027
+ }
11028
+ /**
11029
+ * Embeds font from request and returns presentation.
11030
+ * @param document Document data.
11031
+ * @param font Font data.
11032
+ * @param onlyUsed Only used characters will be embedded.
11033
+ * @param password Document password.
11034
+ */
11035
+ setEmbeddedFontFromRequestOnline(document, font, onlyUsed = null, password = null) {
11036
+ return __awaiter(this, void 0, void 0, function* () {
11037
+ // verify required parameter 'document' is not null or undefined
11038
+ if (document === null || document === undefined) {
11039
+ throw new Error('The required parameter "document" was null or undefined when calling setEmbeddedFontFromRequestOnline.');
11040
+ }
11041
+ // verify required parameter 'font' is not null or undefined
11042
+ if (font === null || font === undefined) {
11043
+ throw new Error('The required parameter "font" was null or undefined when calling setEmbeddedFontFromRequestOnline.');
11044
+ }
11045
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded";
11046
+ const queryParameters = {};
11047
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
11048
+ const requestOptions = {
11049
+ method: "POST",
11050
+ qs: queryParameters,
11051
+ headers: {},
11052
+ uri: localVarPath,
11053
+ encoding: null
11054
+ };
11055
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
11056
+ let localVarFiles = [];
11057
+ if (document != null) {
11058
+ localVarFiles.push(document);
11059
+ }
11060
+ if (font != null) {
11061
+ localVarFiles.push(font);
11062
+ }
11063
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
11064
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
11065
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
11066
+ return Promise.resolve({ body: result, response });
11067
+ });
11068
+ }
11069
+ /**
11070
+ * Embeds specified font and returns presentation.
11071
+ * @param document Document data.
11072
+ * @param fontName Font name.
11073
+ * @param onlyUsed Only used characters will be embedded.
11074
+ * @param password Document password.
11075
+ * @param fontsFolder Custom fonts folder.
11076
+ */
11077
+ setEmbeddedFontOnline(document, fontName, onlyUsed = null, password = null, fontsFolder = null) {
11078
+ return __awaiter(this, void 0, void 0, function* () {
11079
+ // verify required parameter 'document' is not null or undefined
11080
+ if (document === null || document === undefined) {
11081
+ throw new Error('The required parameter "document" was null or undefined when calling setEmbeddedFontOnline.');
11082
+ }
11083
+ // verify required parameter 'fontName' is not null or undefined
11084
+ if (fontName === null || fontName === undefined) {
11085
+ throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFontOnline.');
11086
+ }
11087
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}";
11088
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
11089
+ const queryParameters = {};
11090
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
11091
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "fontsFolder", fontsFolder);
11092
+ const requestOptions = {
11093
+ method: "POST",
11094
+ qs: queryParameters,
11095
+ headers: {},
11096
+ uri: localVarPath,
11097
+ encoding: null
11098
+ };
11099
+ (0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
11100
+ let localVarFiles = [];
11101
+ if (document != null) {
11102
+ localVarFiles.push(document);
11103
+ }
11104
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
11105
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
11106
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
11107
+ return Promise.resolve({ body: result, response });
11108
+ });
11109
+ }
10559
11110
  /**
10560
11111
  * Set header/footer the notes slide.
10561
11112
  * @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.7.0";
149
+ requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.9.0";
150
150
  if (confguration.timeout) {
151
151
  requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
152
152
  }
package/model.d.ts CHANGED
@@ -719,6 +719,22 @@ export declare class CustomDashPattern {
719
719
  * Data point.
720
720
  */
721
721
  export declare class DataPoint {
722
+ /**
723
+ * Gets or sets the fill format.
724
+ */
725
+ fillFormat?: FillFormat;
726
+ /**
727
+ * Gets or sets the effect format.
728
+ */
729
+ effectFormat?: EffectFormat;
730
+ /**
731
+ * Gets or sets the 3D format
732
+ */
733
+ threeDFormat?: ThreeDFormat;
734
+ /**
735
+ * Gets or sets the line format.
736
+ */
737
+ lineFormat?: LineFormat;
722
738
  }
723
739
  /**
724
740
  * Class for disc space information.
@@ -1132,6 +1148,10 @@ export declare class ExportOptions {
1132
1148
  * Gets of sets list of font fallback rules.
1133
1149
  */
1134
1150
  fontFallbackRules?: Array<FontFallbackRule>;
1151
+ /**
1152
+ * Gets of sets list of font substitution rules.
1153
+ */
1154
+ fontSubstRules?: Array<FontSubstRule>;
1135
1155
  format?: string;
1136
1156
  }
1137
1157
  /**
@@ -1199,6 +1219,19 @@ export declare namespace FillOverlayEffect {
1199
1219
  Screen
1200
1220
  }
1201
1221
  }
1222
+ /**
1223
+ * Represents font info.
1224
+ */
1225
+ export declare class FontData {
1226
+ /**
1227
+ * Font name
1228
+ */
1229
+ fontName?: string;
1230
+ /**
1231
+ * Returns true if font is embedded.
1232
+ */
1233
+ isEmbedded?: boolean;
1234
+ }
1202
1235
  /**
1203
1236
  * Represents font fallback rule.
1204
1237
  */
@@ -1233,6 +1266,32 @@ export declare class FontSet {
1233
1266
  */
1234
1267
  latin?: string;
1235
1268
  }
1269
+ /**
1270
+ * Represents font substitution rule.
1271
+ */
1272
+ export declare class FontSubstRule {
1273
+ /**
1274
+ * Font to substitute.
1275
+ */
1276
+ sourceFont?: string;
1277
+ /**
1278
+ * Substitution font.
1279
+ */
1280
+ targetFont?: string;
1281
+ /**
1282
+ * Substitute when font is not found. Default: true.
1283
+ */
1284
+ notFoundOnly?: boolean;
1285
+ }
1286
+ /**
1287
+ * List of fonts data
1288
+ */
1289
+ export declare class FontsData {
1290
+ /**
1291
+ * Fonts data list.
1292
+ */
1293
+ list?: Array<FontData>;
1294
+ }
1236
1295
  /**
1237
1296
  * Represents GeometryPath of the shape
1238
1297
  */
package/model.js CHANGED
@@ -23,11 +23,11 @@
23
23
  * SOFTWARE.
24
24
  */
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ModelError = exports.MergingSource = exports.MathParagraph = exports.MathElement = exports.LineFormat = exports.LightRig = exports.Legend = exports.InteractiveSequence = exports.InputFile = exports.Input = exports.InnerShadowEffect = exports.ImageTransformEffect = exports.ImageExportFormat = exports.IShapeExportOptions = exports.Hyperlink = exports.GradientFillStop = exports.GlowEffect = exports.GeometryPaths = exports.GeometryPath = exports.FontSet = exports.FontFallbackRule = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DiscUsage = exports.DataPoint = exports.CustomDashPattern = exports.CommonSlideViewProperties = exports.ChartWallType = exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Camera = exports.BlurEffect = exports.AxisType = exports.Axis = exports.Axes = exports.ArrowHeadProperties = exports.ApiInfo = exports.AccessPermissions = void 0;
27
- exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = exports.AlphaInverseEffect = exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.AccentElement = exports.ThreeDFormat = exports.TextItem = exports.TextFrameFormat = exports.TextBounds = exports.Task = exports.TableRow = exports.TableColumn = exports.TableCell = exports.StorageFile = exports.StorageExist = exports.SpecialSlideType = exports.SoftEdgeEffect = exports.SmartArtNode = exports.SlideExportFormat = exports.SlideCommentBase = exports.ShapesAlignmentType = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = exports.ShapeExportFormat = exports.ShapeBevel = exports.SeriesMarker = exports.Series = exports.ResourceUri = exports.ResourceBase = exports.ReflectionEffect = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PortionFormat = exports.PlotArea = exports.Pipeline = exports.PathSegment = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.ObjectExist = exports.NotesSlideExportFormat = exports.NormalViewRestoredProperties = void 0;
28
- exports.NotesSlide = exports.NoFill = exports.NaryOperatorElement = exports.MoveToPathSegment = exports.Merge = exports.MatrixElement = exports.MasterSlides = exports.MasterSlide = exports.LuminanceEffect = exports.LineToPathSegment = exports.LimitElement = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.Images = exports.ImageExportOptionsBase = exports.Image = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.GroupingCharacterElement = exports.GrayScaleEffect = exports.GradientFill = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontScheme = exports.FillOverlayImageEffect = exports.FileVersion = exports.DuotoneEffect = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DelimiterElement = exports.CubicBezierToPathSegment = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.BarElement = exports.ArrayElement = exports.ArcToPathSegment = exports.AlphaReplaceEffect = void 0;
29
- exports.TextItems = exports.TextElement = exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SubscriptElement = exports.SplitDocumentResult = exports.SolidFill = exports.Slides = exports.SlideProperties = exports.SlideModernComment = exports.SlideComments = exports.SlideComment = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.Shapes = exports.ShapeBase = exports.Sections = exports.Section = exports.ScatterChartDataPoint = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PptxExportOptions = exports.Portions = exports.Portion = exports.Placeholders = exports.Placeholder = exports.PictureFill = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.Paragraph = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.NotesSlideHeaderFooter = void 0;
30
- exports.SummaryZoomSection = exports.ZoomFrame = exports.VideoFrame = exports.SmartArtShape = exports.Shape = exports.SectionZoomFrame = exports.PictureFrame = exports.Connector = exports.AudioFrame = exports.ZoomObject = exports.TiffExportOptions = exports.Table = exports.SummaryZoomFrame = exports.SmartArt = exports.SlideReplaceResult = exports.ScatterSeries = exports.OleObjectFrame = exports.ImageExportOptions = exports.GroupShape = exports.GraphicalObject = exports.GifExportOptions = exports.GeometryShape = exports.DocumentReplaceResult = exports.Chart = exports.BubbleSeries = exports.BubbleChartDataPoint = exports.XpsExportOptions = exports.XamlExportOptions = exports.XYSeries = exports.ViewProperties = exports.VideoExportOptions = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.Theme = void 0;
26
+ exports.MathElement = exports.LineFormat = exports.LightRig = exports.Legend = exports.InteractiveSequence = exports.InputFile = exports.Input = exports.InnerShadowEffect = exports.ImageTransformEffect = exports.ImageExportFormat = exports.IShapeExportOptions = exports.Hyperlink = exports.GradientFillStop = exports.GlowEffect = exports.GeometryPaths = exports.GeometryPath = exports.FontsData = exports.FontSubstRule = exports.FontSet = exports.FontFallbackRule = exports.FontData = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DiscUsage = exports.DataPoint = exports.CustomDashPattern = exports.CommonSlideViewProperties = exports.ChartWallType = exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Camera = exports.BlurEffect = exports.AxisType = exports.Axis = exports.Axes = exports.ArrowHeadProperties = exports.ApiInfo = exports.AccessPermissions = void 0;
27
+ exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.AccentElement = exports.ThreeDFormat = exports.TextItem = exports.TextFrameFormat = exports.TextBounds = exports.Task = exports.TableRow = exports.TableColumn = exports.TableCell = exports.StorageFile = exports.StorageExist = exports.SpecialSlideType = exports.SoftEdgeEffect = exports.SmartArtNode = exports.SlideExportFormat = exports.SlideCommentBase = exports.ShapesAlignmentType = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = exports.ShapeExportFormat = exports.ShapeBevel = exports.SeriesMarker = exports.Series = exports.ResourceUri = exports.ResourceBase = exports.ReflectionEffect = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PortionFormat = exports.PlotArea = exports.Pipeline = exports.PathSegment = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.ObjectExist = exports.NotesSlideExportFormat = exports.NormalViewRestoredProperties = exports.ModelError = exports.MergingSource = exports.MathParagraph = void 0;
28
+ exports.MoveToPathSegment = exports.Merge = exports.MatrixElement = exports.MasterSlides = exports.MasterSlide = exports.LuminanceEffect = exports.LineToPathSegment = exports.LimitElement = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.Images = exports.ImageExportOptionsBase = exports.Image = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.GroupingCharacterElement = exports.GrayScaleEffect = exports.GradientFill = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontScheme = exports.FillOverlayImageEffect = exports.FileVersion = exports.DuotoneEffect = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DelimiterElement = exports.CubicBezierToPathSegment = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.BarElement = exports.ArrayElement = exports.ArcToPathSegment = exports.AlphaReplaceEffect = exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = exports.AlphaInverseEffect = void 0;
29
+ exports.SvgExportOptions = exports.SuperscriptElement = exports.SubscriptElement = exports.SplitDocumentResult = exports.SolidFill = exports.Slides = exports.SlideProperties = exports.SlideModernComment = exports.SlideComments = exports.SlideComment = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.Shapes = exports.ShapeBase = exports.Sections = exports.Section = exports.ScatterChartDataPoint = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PptxExportOptions = exports.Portions = exports.Portion = exports.Placeholders = exports.Placeholder = exports.PictureFill = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.Paragraph = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.NotesSlideHeaderFooter = exports.NotesSlide = exports.NoFill = exports.NaryOperatorElement = void 0;
30
+ exports.SummaryZoomSection = exports.ZoomFrame = exports.VideoFrame = exports.SmartArtShape = exports.Shape = exports.SectionZoomFrame = exports.PictureFrame = exports.Connector = exports.AudioFrame = exports.ZoomObject = exports.TiffExportOptions = exports.Table = exports.SummaryZoomFrame = exports.SmartArt = exports.SlideReplaceResult = exports.ScatterSeries = exports.OleObjectFrame = exports.ImageExportOptions = exports.GroupShape = exports.GraphicalObject = exports.GifExportOptions = exports.GeometryShape = exports.DocumentReplaceResult = exports.Chart = exports.BubbleSeries = exports.BubbleChartDataPoint = exports.XpsExportOptions = exports.XamlExportOptions = exports.XYSeries = exports.ViewProperties = exports.VideoExportOptions = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.Theme = exports.TextItems = exports.TextElement = exports.SwfExportOptions = void 0;
31
31
  /**
32
32
  * A set of properties specifying which access permissions should be granted when the document is opened with user access.
33
33
  */
@@ -757,6 +757,12 @@ exports.FillOverlayEffect = FillOverlayEffect;
757
757
  BlendEnum[BlendEnum["Screen"] = 'Screen'] = "Screen";
758
758
  })(BlendEnum = FillOverlayEffect.BlendEnum || (FillOverlayEffect.BlendEnum = {}));
759
759
  })(FillOverlayEffect = exports.FillOverlayEffect || (exports.FillOverlayEffect = {}));
760
+ /**
761
+ * Represents font info.
762
+ */
763
+ class FontData {
764
+ }
765
+ exports.FontData = FontData;
760
766
  /**
761
767
  * Represents font fallback rule.
762
768
  */
@@ -769,6 +775,18 @@ exports.FontFallbackRule = FontFallbackRule;
769
775
  class FontSet {
770
776
  }
771
777
  exports.FontSet = FontSet;
778
+ /**
779
+ * Represents font substitution rule.
780
+ */
781
+ class FontSubstRule {
782
+ }
783
+ exports.FontSubstRule = FontSubstRule;
784
+ /**
785
+ * List of fonts data
786
+ */
787
+ class FontsData {
788
+ }
789
+ exports.FontsData = FontsData;
772
790
  /**
773
791
  * Represents GeometryPath of the shape
774
792
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asposeslidescloud",
3
- "version": "22.7.0",
3
+ "version": "22.9.0",
4
4
  "description": "Aspose.Slides Cloud SDK for Node.js",
5
5
  "homepage": "https://products.aspose.cloud/slides/cloud",
6
6
  "author": {