asposeslidescloud 22.4.0 → 22.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 +30 -0
- package/api.d.ts +235 -8
- package/api.js +775 -12
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +532 -69
- package/model.js +366 -44
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -2725,6 +2725,80 @@ class SlidesApi {
|
|
|
2725
2725
|
return Promise.resolve({ body: result, response });
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Removes specified embedded font and returns presentation fonts info.
|
|
2730
|
+
* @param name Document name.
|
|
2731
|
+
* @param fontName Font name.
|
|
2732
|
+
* @param password Document password.
|
|
2733
|
+
* @param folder Document folder.
|
|
2734
|
+
* @param storage Document storage.
|
|
2735
|
+
*/
|
|
2736
|
+
deleteEmbeddedFont(name, fontName, password = null, folder = null, storage = null) {
|
|
2737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2738
|
+
// verify required parameter 'name' is not null or undefined
|
|
2739
|
+
if (name === null || name === undefined) {
|
|
2740
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteEmbeddedFont.');
|
|
2741
|
+
}
|
|
2742
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
2743
|
+
if (fontName === null || fontName === undefined) {
|
|
2744
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFont.');
|
|
2745
|
+
}
|
|
2746
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
|
|
2747
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
2748
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
2749
|
+
const queryParameters = {};
|
|
2750
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
2751
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
2752
|
+
const requestOptions = {
|
|
2753
|
+
method: "DELETE",
|
|
2754
|
+
qs: queryParameters,
|
|
2755
|
+
headers: {},
|
|
2756
|
+
uri: localVarPath,
|
|
2757
|
+
json: true
|
|
2758
|
+
};
|
|
2759
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
2760
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
2761
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
2762
|
+
return Promise.resolve({ body: result, response });
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
/**
|
|
2766
|
+
* Removes specified embedded font and returns presentation.
|
|
2767
|
+
* @param document Document data.
|
|
2768
|
+
* @param fontName Document name.
|
|
2769
|
+
* @param password Document password.
|
|
2770
|
+
*/
|
|
2771
|
+
deleteEmbeddedFontOnline(document, fontName, password = null) {
|
|
2772
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2773
|
+
// verify required parameter 'document' is not null or undefined
|
|
2774
|
+
if (document === null || document === undefined) {
|
|
2775
|
+
throw new Error('The required parameter "document" was null or undefined when calling deleteEmbeddedFontOnline.');
|
|
2776
|
+
}
|
|
2777
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
2778
|
+
if (fontName === null || fontName === undefined) {
|
|
2779
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFontOnline.');
|
|
2780
|
+
}
|
|
2781
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}/delete";
|
|
2782
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
2783
|
+
const queryParameters = {};
|
|
2784
|
+
const requestOptions = {
|
|
2785
|
+
method: "POST",
|
|
2786
|
+
qs: queryParameters,
|
|
2787
|
+
headers: {},
|
|
2788
|
+
uri: localVarPath,
|
|
2789
|
+
encoding: null
|
|
2790
|
+
};
|
|
2791
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
2792
|
+
let localVarFiles = [];
|
|
2793
|
+
if (document != null) {
|
|
2794
|
+
localVarFiles.push(document);
|
|
2795
|
+
}
|
|
2796
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
2797
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
2798
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
2799
|
+
return Promise.resolve({ body: result, response });
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2728
2802
|
/**
|
|
2729
2803
|
* Delete file
|
|
2730
2804
|
* @param path File path e.g. '/folder/file.ext'
|
|
@@ -4736,6 +4810,72 @@ class SlidesApi {
|
|
|
4736
4810
|
return Promise.resolve({ body: result, response });
|
|
4737
4811
|
});
|
|
4738
4812
|
}
|
|
4813
|
+
/**
|
|
4814
|
+
* Removes unused master slides.
|
|
4815
|
+
* @param name Document name.
|
|
4816
|
+
* @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
|
|
4817
|
+
* @param password Document password.
|
|
4818
|
+
* @param folder Document folder.
|
|
4819
|
+
* @param storage Document storage.
|
|
4820
|
+
*/
|
|
4821
|
+
deleteUnusedMasterSlides(name, ignorePreserveField = null, password = null, folder = null, storage = null) {
|
|
4822
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4823
|
+
// verify required parameter 'name' is not null or undefined
|
|
4824
|
+
if (name === null || name === undefined) {
|
|
4825
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteUnusedMasterSlides.');
|
|
4826
|
+
}
|
|
4827
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/masterSlides";
|
|
4828
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4829
|
+
const queryParameters = {};
|
|
4830
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignorePreserveField", ignorePreserveField);
|
|
4831
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4832
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4833
|
+
const requestOptions = {
|
|
4834
|
+
method: "DELETE",
|
|
4835
|
+
qs: queryParameters,
|
|
4836
|
+
headers: {},
|
|
4837
|
+
uri: localVarPath,
|
|
4838
|
+
json: true
|
|
4839
|
+
};
|
|
4840
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4841
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4842
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "MasterSlides");
|
|
4843
|
+
return Promise.resolve({ body: result, response });
|
|
4844
|
+
});
|
|
4845
|
+
}
|
|
4846
|
+
/**
|
|
4847
|
+
* Removes unused master slides.
|
|
4848
|
+
* @param document Document data
|
|
4849
|
+
* @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
|
|
4850
|
+
* @param password Document password.
|
|
4851
|
+
*/
|
|
4852
|
+
deleteUnusedMasterSlidesOnline(document, ignorePreserveField = null, password = null) {
|
|
4853
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4854
|
+
// verify required parameter 'document' is not null or undefined
|
|
4855
|
+
if (document === null || document === undefined) {
|
|
4856
|
+
throw new Error('The required parameter "document" was null or undefined when calling deleteUnusedMasterSlidesOnline.');
|
|
4857
|
+
}
|
|
4858
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/masterSlides/delete";
|
|
4859
|
+
const queryParameters = {};
|
|
4860
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignorePreserveField", ignorePreserveField);
|
|
4861
|
+
const requestOptions = {
|
|
4862
|
+
method: "POST",
|
|
4863
|
+
qs: queryParameters,
|
|
4864
|
+
headers: {},
|
|
4865
|
+
uri: localVarPath,
|
|
4866
|
+
encoding: null
|
|
4867
|
+
};
|
|
4868
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4869
|
+
let localVarFiles = [];
|
|
4870
|
+
if (document != null) {
|
|
4871
|
+
localVarFiles.push(document);
|
|
4872
|
+
}
|
|
4873
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
4874
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4875
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
4876
|
+
return Promise.resolve({ body: result, response });
|
|
4877
|
+
});
|
|
4878
|
+
}
|
|
4739
4879
|
/**
|
|
4740
4880
|
* Removes shapes with name \"watermark\" from the presentation.
|
|
4741
4881
|
* @param name Document name.
|
|
@@ -5487,8 +5627,8 @@ class SlidesApi {
|
|
|
5487
5627
|
* @param slideIndex Slide index.
|
|
5488
5628
|
* @param format Output file format.
|
|
5489
5629
|
* @param options Export options.
|
|
5490
|
-
* @param width
|
|
5491
|
-
* @param height
|
|
5630
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5631
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5492
5632
|
* @param password Document password.
|
|
5493
5633
|
* @param folder Document folder.
|
|
5494
5634
|
* @param storage Document storage.
|
|
@@ -5541,8 +5681,8 @@ class SlidesApi {
|
|
|
5541
5681
|
* @param document Document data.
|
|
5542
5682
|
* @param slideIndex Slide index.
|
|
5543
5683
|
* @param format Output file format.
|
|
5544
|
-
* @param width
|
|
5545
|
-
* @param height
|
|
5684
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5685
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5546
5686
|
* @param password Document password.
|
|
5547
5687
|
* @param storage Document storage.
|
|
5548
5688
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -6120,6 +6260,68 @@ class SlidesApi {
|
|
|
6120
6260
|
return Promise.resolve({ body: result, response });
|
|
6121
6261
|
});
|
|
6122
6262
|
}
|
|
6263
|
+
/**
|
|
6264
|
+
* Returns presentation fonts info.
|
|
6265
|
+
* @param name Document name.
|
|
6266
|
+
* @param password Document password.
|
|
6267
|
+
* @param folder Document folder.
|
|
6268
|
+
* @param storage Document storage.
|
|
6269
|
+
*/
|
|
6270
|
+
getFonts(name, password = null, folder = null, storage = null) {
|
|
6271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6272
|
+
// verify required parameter 'name' is not null or undefined
|
|
6273
|
+
if (name === null || name === undefined) {
|
|
6274
|
+
throw new Error('The required parameter "name" was null or undefined when calling getFonts.');
|
|
6275
|
+
}
|
|
6276
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts";
|
|
6277
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6278
|
+
const queryParameters = {};
|
|
6279
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6280
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6281
|
+
const requestOptions = {
|
|
6282
|
+
method: "GET",
|
|
6283
|
+
qs: queryParameters,
|
|
6284
|
+
headers: {},
|
|
6285
|
+
uri: localVarPath,
|
|
6286
|
+
json: true
|
|
6287
|
+
};
|
|
6288
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6289
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6290
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
6291
|
+
return Promise.resolve({ body: result, response });
|
|
6292
|
+
});
|
|
6293
|
+
}
|
|
6294
|
+
/**
|
|
6295
|
+
* Returns presentation fonts info.
|
|
6296
|
+
* @param document Document data.
|
|
6297
|
+
* @param password Document password.
|
|
6298
|
+
*/
|
|
6299
|
+
getFontsOnline(document, password = null) {
|
|
6300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6301
|
+
// verify required parameter 'document' is not null or undefined
|
|
6302
|
+
if (document === null || document === undefined) {
|
|
6303
|
+
throw new Error('The required parameter "document" was null or undefined when calling getFontsOnline.');
|
|
6304
|
+
}
|
|
6305
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts";
|
|
6306
|
+
const queryParameters = {};
|
|
6307
|
+
const requestOptions = {
|
|
6308
|
+
method: "POST",
|
|
6309
|
+
qs: queryParameters,
|
|
6310
|
+
headers: {},
|
|
6311
|
+
uri: localVarPath,
|
|
6312
|
+
json: true
|
|
6313
|
+
};
|
|
6314
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6315
|
+
let localVarFiles = [];
|
|
6316
|
+
if (document != null) {
|
|
6317
|
+
localVarFiles.push(document);
|
|
6318
|
+
}
|
|
6319
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
6320
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6321
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
6322
|
+
return Promise.resolve({ body: result, response });
|
|
6323
|
+
});
|
|
6324
|
+
}
|
|
6123
6325
|
/**
|
|
6124
6326
|
* Read slide theme format scheme info.
|
|
6125
6327
|
* @param name Document name.
|
|
@@ -6453,6 +6655,55 @@ class SlidesApi {
|
|
|
6453
6655
|
return Promise.resolve({ body: result, response });
|
|
6454
6656
|
});
|
|
6455
6657
|
}
|
|
6658
|
+
/**
|
|
6659
|
+
* Read effective paragraph info.
|
|
6660
|
+
* @param name Document name.
|
|
6661
|
+
* @param slideIndex Slide index.
|
|
6662
|
+
* @param shapeIndex Shape index.
|
|
6663
|
+
* @param paragraphIndex Paragraph index.
|
|
6664
|
+
* @param password Document password.
|
|
6665
|
+
* @param folder Document folder.
|
|
6666
|
+
* @param storage Document storage.
|
|
6667
|
+
*/
|
|
6668
|
+
getParagraphEffective(name, slideIndex, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
6669
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6670
|
+
// verify required parameter 'name' is not null or undefined
|
|
6671
|
+
if (name === null || name === undefined) {
|
|
6672
|
+
throw new Error('The required parameter "name" was null or undefined when calling getParagraphEffective.');
|
|
6673
|
+
}
|
|
6674
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6675
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6676
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getParagraphEffective.');
|
|
6677
|
+
}
|
|
6678
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6679
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6680
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getParagraphEffective.');
|
|
6681
|
+
}
|
|
6682
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6683
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6684
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getParagraphEffective.');
|
|
6685
|
+
}
|
|
6686
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
6687
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6688
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6689
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6690
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6691
|
+
const queryParameters = {};
|
|
6692
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6693
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6694
|
+
const requestOptions = {
|
|
6695
|
+
method: "GET",
|
|
6696
|
+
qs: queryParameters,
|
|
6697
|
+
headers: {},
|
|
6698
|
+
uri: localVarPath,
|
|
6699
|
+
json: true
|
|
6700
|
+
};
|
|
6701
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6702
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6703
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
6704
|
+
return Promise.resolve({ body: result, response });
|
|
6705
|
+
});
|
|
6706
|
+
}
|
|
6456
6707
|
/**
|
|
6457
6708
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6458
6709
|
* @param name Document name.
|
|
@@ -6680,6 +6931,61 @@ class SlidesApi {
|
|
|
6680
6931
|
return Promise.resolve({ body: result, response });
|
|
6681
6932
|
});
|
|
6682
6933
|
}
|
|
6934
|
+
/**
|
|
6935
|
+
* Read effective portion info.
|
|
6936
|
+
* @param name Document name.
|
|
6937
|
+
* @param slideIndex Slide index.
|
|
6938
|
+
* @param shapeIndex Shape index.
|
|
6939
|
+
* @param paragraphIndex Paragraph index.
|
|
6940
|
+
* @param portionIndex Portion index.
|
|
6941
|
+
* @param password Document password.
|
|
6942
|
+
* @param folder Document folder.
|
|
6943
|
+
* @param storage Document storage.
|
|
6944
|
+
*/
|
|
6945
|
+
getPortionEffective(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
6946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6947
|
+
// verify required parameter 'name' is not null or undefined
|
|
6948
|
+
if (name === null || name === undefined) {
|
|
6949
|
+
throw new Error('The required parameter "name" was null or undefined when calling getPortionEffective.');
|
|
6950
|
+
}
|
|
6951
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6952
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6953
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getPortionEffective.');
|
|
6954
|
+
}
|
|
6955
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6956
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6957
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getPortionEffective.');
|
|
6958
|
+
}
|
|
6959
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6960
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6961
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getPortionEffective.');
|
|
6962
|
+
}
|
|
6963
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
6964
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
6965
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getPortionEffective.');
|
|
6966
|
+
}
|
|
6967
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
6968
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6969
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6970
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6971
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6972
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
6973
|
+
const queryParameters = {};
|
|
6974
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6975
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6976
|
+
const requestOptions = {
|
|
6977
|
+
method: "GET",
|
|
6978
|
+
qs: queryParameters,
|
|
6979
|
+
headers: {},
|
|
6980
|
+
uri: localVarPath,
|
|
6981
|
+
json: true
|
|
6982
|
+
};
|
|
6983
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6984
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6985
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
6986
|
+
return Promise.resolve({ body: result, response });
|
|
6987
|
+
});
|
|
6988
|
+
}
|
|
6683
6989
|
/**
|
|
6684
6990
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6685
6991
|
* @param name Document name.
|
|
@@ -8151,24 +8457,75 @@ class SlidesApi {
|
|
|
8151
8457
|
});
|
|
8152
8458
|
}
|
|
8153
8459
|
/**
|
|
8154
|
-
* Read
|
|
8460
|
+
* Read effective paragraph info (for smart art and group shapes).
|
|
8155
8461
|
* @param name Document name.
|
|
8156
8462
|
* @param slideIndex Slide index.
|
|
8157
8463
|
* @param path Shape path.
|
|
8158
8464
|
* @param shapeIndex Shape index.
|
|
8465
|
+
* @param paragraphIndex Paragraph index.
|
|
8159
8466
|
* @param password Document password.
|
|
8160
8467
|
* @param folder Document folder.
|
|
8161
8468
|
* @param storage Document storage.
|
|
8162
8469
|
*/
|
|
8163
|
-
|
|
8470
|
+
getSubshapeParagraphEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
8164
8471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8165
8472
|
// verify required parameter 'name' is not null or undefined
|
|
8166
8473
|
if (name === null || name === undefined) {
|
|
8167
|
-
throw new Error('The required parameter "name" was null or undefined when calling
|
|
8474
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8168
8475
|
}
|
|
8169
8476
|
// verify required parameter 'slideIndex' is not null or undefined
|
|
8170
8477
|
if (slideIndex === null || slideIndex === undefined) {
|
|
8171
|
-
throw new Error('The required parameter "slideIndex" was null or undefined when calling
|
|
8478
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8479
|
+
}
|
|
8480
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8481
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8482
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8483
|
+
}
|
|
8484
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8485
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8486
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8487
|
+
}
|
|
8488
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
8489
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8490
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8491
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8492
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8493
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8494
|
+
const queryParameters = {};
|
|
8495
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8496
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8497
|
+
const requestOptions = {
|
|
8498
|
+
method: "GET",
|
|
8499
|
+
qs: queryParameters,
|
|
8500
|
+
headers: {},
|
|
8501
|
+
uri: localVarPath,
|
|
8502
|
+
json: true
|
|
8503
|
+
};
|
|
8504
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8505
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8506
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
8507
|
+
return Promise.resolve({ body: result, response });
|
|
8508
|
+
});
|
|
8509
|
+
}
|
|
8510
|
+
/**
|
|
8511
|
+
* Read shape paragraphs info (for smart art and group shapes).
|
|
8512
|
+
* @param name Document name.
|
|
8513
|
+
* @param slideIndex Slide index.
|
|
8514
|
+
* @param path Shape path.
|
|
8515
|
+
* @param shapeIndex Shape index.
|
|
8516
|
+
* @param password Document password.
|
|
8517
|
+
* @param folder Document folder.
|
|
8518
|
+
* @param storage Document storage.
|
|
8519
|
+
*/
|
|
8520
|
+
getSubshapeParagraphs(name, slideIndex, path = null, shapeIndex, password = null, folder = null, storage = null) {
|
|
8521
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8522
|
+
// verify required parameter 'name' is not null or undefined
|
|
8523
|
+
if (name === null || name === undefined) {
|
|
8524
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapeParagraphs.');
|
|
8525
|
+
}
|
|
8526
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8527
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8528
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapeParagraphs.');
|
|
8172
8529
|
}
|
|
8173
8530
|
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8174
8531
|
if (shapeIndex === null || shapeIndex === undefined) {
|
|
@@ -8252,6 +8609,63 @@ class SlidesApi {
|
|
|
8252
8609
|
return Promise.resolve({ body: result, response });
|
|
8253
8610
|
});
|
|
8254
8611
|
}
|
|
8612
|
+
/**
|
|
8613
|
+
* Read effective portion info (for smart art and group shapes).
|
|
8614
|
+
* @param name Document name.
|
|
8615
|
+
* @param slideIndex Slide index.
|
|
8616
|
+
* @param path Shape path.
|
|
8617
|
+
* @param shapeIndex Shape index.
|
|
8618
|
+
* @param paragraphIndex Paragraph index.
|
|
8619
|
+
* @param portionIndex Portion index.
|
|
8620
|
+
* @param password Document password.
|
|
8621
|
+
* @param folder Document folder.
|
|
8622
|
+
* @param storage Document storage.
|
|
8623
|
+
*/
|
|
8624
|
+
getSubshapePortionEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
8625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8626
|
+
// verify required parameter 'name' is not null or undefined
|
|
8627
|
+
if (name === null || name === undefined) {
|
|
8628
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapePortionEffective.');
|
|
8629
|
+
}
|
|
8630
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8631
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8632
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8633
|
+
}
|
|
8634
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8635
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8636
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8637
|
+
}
|
|
8638
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8639
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8640
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8641
|
+
}
|
|
8642
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
8643
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
8644
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8645
|
+
}
|
|
8646
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
8647
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8648
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8649
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8650
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8651
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8652
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
8653
|
+
const queryParameters = {};
|
|
8654
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8655
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8656
|
+
const requestOptions = {
|
|
8657
|
+
method: "GET",
|
|
8658
|
+
qs: queryParameters,
|
|
8659
|
+
headers: {},
|
|
8660
|
+
uri: localVarPath,
|
|
8661
|
+
json: true
|
|
8662
|
+
};
|
|
8663
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8664
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8665
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
8666
|
+
return Promise.resolve({ body: result, response });
|
|
8667
|
+
});
|
|
8668
|
+
}
|
|
8255
8669
|
/**
|
|
8256
8670
|
* Read paragraph portions info (for smart art and group shapes).
|
|
8257
8671
|
* @param name Document name.
|
|
@@ -8602,6 +9016,59 @@ class SlidesApi {
|
|
|
8602
9016
|
return Promise.resolve({ body: result, response });
|
|
8603
9017
|
});
|
|
8604
9018
|
}
|
|
9019
|
+
/**
|
|
9020
|
+
* Imports shapes from SVG file.
|
|
9021
|
+
* @param name Document name.
|
|
9022
|
+
* @param slideIndex Slide index.
|
|
9023
|
+
* @param image SVG image data.
|
|
9024
|
+
* @param x The X coordinate of the imported group of shapes (0 is default if not specified).
|
|
9025
|
+
* @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
|
|
9026
|
+
* @param width The width of the imported group of shapes (default is SVG image width).
|
|
9027
|
+
* @param height The height of the imported group of shapes (default is SVG image width).
|
|
9028
|
+
* @param shapes Indexes of shapes to import. All shapes are imported if not specified.
|
|
9029
|
+
* @param password Document password.
|
|
9030
|
+
* @param folder Presentation folder.
|
|
9031
|
+
* @param storage Presentation storage.
|
|
9032
|
+
*/
|
|
9033
|
+
importShapesFromSvg(name, slideIndex, image = null, x = null, y = null, width = null, height = null, shapes = null, password = null, folder = null, storage = null) {
|
|
9034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9035
|
+
// verify required parameter 'name' is not null or undefined
|
|
9036
|
+
if (name === null || name === undefined) {
|
|
9037
|
+
throw new Error('The required parameter "name" was null or undefined when calling importShapesFromSvg.');
|
|
9038
|
+
}
|
|
9039
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
9040
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
9041
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling importShapesFromSvg.');
|
|
9042
|
+
}
|
|
9043
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/fromSvg";
|
|
9044
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
9045
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
9046
|
+
const queryParameters = {};
|
|
9047
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "x", x);
|
|
9048
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "y", y);
|
|
9049
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "width", width);
|
|
9050
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "height", height);
|
|
9051
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "shapes", shapes);
|
|
9052
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
9053
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
9054
|
+
const requestOptions = {
|
|
9055
|
+
method: "POST",
|
|
9056
|
+
qs: queryParameters,
|
|
9057
|
+
headers: {},
|
|
9058
|
+
uri: localVarPath,
|
|
9059
|
+
json: true
|
|
9060
|
+
};
|
|
9061
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9062
|
+
let localVarFiles = [];
|
|
9063
|
+
if (image != null) {
|
|
9064
|
+
localVarFiles.push(image);
|
|
9065
|
+
}
|
|
9066
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
9067
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9068
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Shapes");
|
|
9069
|
+
return Promise.resolve({ body: result, response });
|
|
9070
|
+
});
|
|
9071
|
+
}
|
|
8605
9072
|
/**
|
|
8606
9073
|
* Merge the presentation with other presentations specified in the request parameter.
|
|
8607
9074
|
* @param name Document name.
|
|
@@ -9505,8 +9972,8 @@ class SlidesApi {
|
|
|
9505
9972
|
* @param format Output file format.
|
|
9506
9973
|
* @param outPath Path to upload the output file to.
|
|
9507
9974
|
* @param options Export options.
|
|
9508
|
-
* @param width
|
|
9509
|
-
* @param height
|
|
9975
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9976
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9510
9977
|
* @param password Document password.
|
|
9511
9978
|
* @param folder Document folder.
|
|
9512
9979
|
* @param storage Document storage.
|
|
@@ -9563,8 +10030,8 @@ class SlidesApi {
|
|
|
9563
10030
|
* @param slideIndex Slide index.
|
|
9564
10031
|
* @param format Output file format.
|
|
9565
10032
|
* @param outPath Path to save result.
|
|
9566
|
-
* @param width
|
|
9567
|
-
* @param height
|
|
10033
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
10034
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9568
10035
|
* @param password Document password.
|
|
9569
10036
|
* @param storage Document storage.
|
|
9570
10037
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -9982,6 +10449,224 @@ class SlidesApi {
|
|
|
9982
10449
|
return Promise.resolve({ body: result, response });
|
|
9983
10450
|
});
|
|
9984
10451
|
}
|
|
10452
|
+
/**
|
|
10453
|
+
* Set chart axis.
|
|
10454
|
+
* @param name Document name.
|
|
10455
|
+
* @param slideIndex Slide index.
|
|
10456
|
+
* @param shapeIndex Shape index.
|
|
10457
|
+
* @param axisType Axis type. Horizontal, Vertical, SecondaryHorizontal or SecondaryVertical.
|
|
10458
|
+
* @param axis Axis DTO.
|
|
10459
|
+
* @param password Document password.
|
|
10460
|
+
* @param folder Document folder.
|
|
10461
|
+
* @param storage Document storage.
|
|
10462
|
+
*/
|
|
10463
|
+
setChartAxis(name, slideIndex, shapeIndex, axisType, axis, password = null, folder = null, storage = null) {
|
|
10464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10465
|
+
// verify required parameter 'name' is not null or undefined
|
|
10466
|
+
if (name === null || name === undefined) {
|
|
10467
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartAxis.');
|
|
10468
|
+
}
|
|
10469
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10470
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10471
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartAxis.');
|
|
10472
|
+
}
|
|
10473
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10474
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10475
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartAxis.');
|
|
10476
|
+
}
|
|
10477
|
+
// verify required parameter 'axisType' is not null or undefined
|
|
10478
|
+
if (axisType === null || axisType === undefined) {
|
|
10479
|
+
throw new Error('The required parameter "axisType" was null or undefined when calling setChartAxis.');
|
|
10480
|
+
}
|
|
10481
|
+
// verify value of enum parameter 'axisType' is valid
|
|
10482
|
+
if (!Object.keys(model.AxisType).filter(i => model.AxisType[i].toLowerCase() == axisType.toString().toLowerCase()).length) {
|
|
10483
|
+
throw new Error('Invalid value for axisType: ' + axisType + '. Must be one of the following: ' + Object.keys(model.AxisType).map(key => model.AxisType[key]).join());
|
|
10484
|
+
}
|
|
10485
|
+
// verify required parameter 'axis' is not null or undefined
|
|
10486
|
+
if (axis === null || axis === undefined) {
|
|
10487
|
+
throw new Error('The required parameter "axis" was null or undefined when calling setChartAxis.');
|
|
10488
|
+
}
|
|
10489
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/{axisType}";
|
|
10490
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10491
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10492
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10493
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "axisType", objectSerializer_1.ObjectSerializer.toString(axisType));
|
|
10494
|
+
const queryParameters = {};
|
|
10495
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10496
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10497
|
+
const requestOptions = {
|
|
10498
|
+
method: "PUT",
|
|
10499
|
+
qs: queryParameters,
|
|
10500
|
+
headers: {},
|
|
10501
|
+
uri: localVarPath,
|
|
10502
|
+
json: axis
|
|
10503
|
+
};
|
|
10504
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10505
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10506
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Axis");
|
|
10507
|
+
return Promise.resolve({ body: result, response });
|
|
10508
|
+
});
|
|
10509
|
+
}
|
|
10510
|
+
/**
|
|
10511
|
+
* Set chart axis.
|
|
10512
|
+
* @param name Document name.
|
|
10513
|
+
* @param slideIndex Slide index.
|
|
10514
|
+
* @param shapeIndex Shape index.
|
|
10515
|
+
* @param legend Chart legend DTO.
|
|
10516
|
+
* @param password Document password.
|
|
10517
|
+
* @param folder Document folder.
|
|
10518
|
+
* @param storage Document storage.
|
|
10519
|
+
*/
|
|
10520
|
+
setChartLegend(name, slideIndex, shapeIndex, legend, password = null, folder = null, storage = null) {
|
|
10521
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10522
|
+
// verify required parameter 'name' is not null or undefined
|
|
10523
|
+
if (name === null || name === undefined) {
|
|
10524
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartLegend.');
|
|
10525
|
+
}
|
|
10526
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10527
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10528
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartLegend.');
|
|
10529
|
+
}
|
|
10530
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10531
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10532
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartLegend.');
|
|
10533
|
+
}
|
|
10534
|
+
// verify required parameter 'legend' is not null or undefined
|
|
10535
|
+
if (legend === null || legend === undefined) {
|
|
10536
|
+
throw new Error('The required parameter "legend" was null or undefined when calling setChartLegend.');
|
|
10537
|
+
}
|
|
10538
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/legend";
|
|
10539
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10540
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10541
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10542
|
+
const queryParameters = {};
|
|
10543
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10544
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10545
|
+
const requestOptions = {
|
|
10546
|
+
method: "PUT",
|
|
10547
|
+
qs: queryParameters,
|
|
10548
|
+
headers: {},
|
|
10549
|
+
uri: localVarPath,
|
|
10550
|
+
json: legend
|
|
10551
|
+
};
|
|
10552
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10553
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10554
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Legend");
|
|
10555
|
+
return Promise.resolve({ body: result, response });
|
|
10556
|
+
});
|
|
10557
|
+
}
|
|
10558
|
+
/**
|
|
10559
|
+
* Set a series group in a chart.
|
|
10560
|
+
* @param name Document name.
|
|
10561
|
+
* @param slideIndex Slide index.
|
|
10562
|
+
* @param shapeIndex Shape index (must be a chart).
|
|
10563
|
+
* @param seriesGroupIndex Series group index.
|
|
10564
|
+
* @param seriesGroup Series group DTO.
|
|
10565
|
+
* @param password Document password.
|
|
10566
|
+
* @param folder Document folder.
|
|
10567
|
+
* @param storage Document storage.
|
|
10568
|
+
*/
|
|
10569
|
+
setChartSeriesGroup(name, slideIndex, shapeIndex, seriesGroupIndex, seriesGroup, password = null, folder = null, storage = null) {
|
|
10570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10571
|
+
// verify required parameter 'name' is not null or undefined
|
|
10572
|
+
if (name === null || name === undefined) {
|
|
10573
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartSeriesGroup.');
|
|
10574
|
+
}
|
|
10575
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10576
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10577
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10578
|
+
}
|
|
10579
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10580
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10581
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10582
|
+
}
|
|
10583
|
+
// verify required parameter 'seriesGroupIndex' is not null or undefined
|
|
10584
|
+
if (seriesGroupIndex === null || seriesGroupIndex === undefined) {
|
|
10585
|
+
throw new Error('The required parameter "seriesGroupIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10586
|
+
}
|
|
10587
|
+
// verify required parameter 'seriesGroup' is not null or undefined
|
|
10588
|
+
if (seriesGroup === null || seriesGroup === undefined) {
|
|
10589
|
+
throw new Error('The required parameter "seriesGroup" was null or undefined when calling setChartSeriesGroup.');
|
|
10590
|
+
}
|
|
10591
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/seriesGroup/{seriesGroupIndex}";
|
|
10592
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10593
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10594
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10595
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "seriesGroupIndex", objectSerializer_1.ObjectSerializer.toString(seriesGroupIndex));
|
|
10596
|
+
const queryParameters = {};
|
|
10597
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10598
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10599
|
+
const requestOptions = {
|
|
10600
|
+
method: "PUT",
|
|
10601
|
+
qs: queryParameters,
|
|
10602
|
+
headers: {},
|
|
10603
|
+
uri: localVarPath,
|
|
10604
|
+
json: seriesGroup
|
|
10605
|
+
};
|
|
10606
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10607
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10608
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Chart");
|
|
10609
|
+
return Promise.resolve({ body: result, response });
|
|
10610
|
+
});
|
|
10611
|
+
}
|
|
10612
|
+
/**
|
|
10613
|
+
* Set 3D chart wall.
|
|
10614
|
+
* @param name Document name.
|
|
10615
|
+
* @param slideIndex Slide index.
|
|
10616
|
+
* @param shapeIndex Shape index.
|
|
10617
|
+
* @param chartWallType Chart wall type: floor, sideWall or backWall.
|
|
10618
|
+
* @param chartWall Chart wall DTO.
|
|
10619
|
+
* @param password Document password.
|
|
10620
|
+
* @param folder Document folder.
|
|
10621
|
+
* @param storage Document storage.
|
|
10622
|
+
*/
|
|
10623
|
+
setChartWall(name, slideIndex, shapeIndex, chartWallType, chartWall, password = null, folder = null, storage = null) {
|
|
10624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10625
|
+
// verify required parameter 'name' is not null or undefined
|
|
10626
|
+
if (name === null || name === undefined) {
|
|
10627
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartWall.');
|
|
10628
|
+
}
|
|
10629
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10630
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10631
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartWall.');
|
|
10632
|
+
}
|
|
10633
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10634
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10635
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartWall.');
|
|
10636
|
+
}
|
|
10637
|
+
// verify required parameter 'chartWallType' is not null or undefined
|
|
10638
|
+
if (chartWallType === null || chartWallType === undefined) {
|
|
10639
|
+
throw new Error('The required parameter "chartWallType" was null or undefined when calling setChartWall.');
|
|
10640
|
+
}
|
|
10641
|
+
// verify value of enum parameter 'chartWallType' is valid
|
|
10642
|
+
if (!Object.keys(model.ChartWallType).filter(i => model.ChartWallType[i].toLowerCase() == chartWallType.toString().toLowerCase()).length) {
|
|
10643
|
+
throw new Error('Invalid value for chartWallType: ' + chartWallType + '. Must be one of the following: ' + Object.keys(model.ChartWallType).map(key => model.ChartWallType[key]).join());
|
|
10644
|
+
}
|
|
10645
|
+
// verify required parameter 'chartWall' is not null or undefined
|
|
10646
|
+
if (chartWall === null || chartWall === undefined) {
|
|
10647
|
+
throw new Error('The required parameter "chartWall" was null or undefined when calling setChartWall.');
|
|
10648
|
+
}
|
|
10649
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/{chartWallType}";
|
|
10650
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10651
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10652
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10653
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "chartWallType", objectSerializer_1.ObjectSerializer.toString(chartWallType));
|
|
10654
|
+
const queryParameters = {};
|
|
10655
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10656
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10657
|
+
const requestOptions = {
|
|
10658
|
+
method: "PUT",
|
|
10659
|
+
qs: queryParameters,
|
|
10660
|
+
headers: {},
|
|
10661
|
+
uri: localVarPath,
|
|
10662
|
+
json: chartWall
|
|
10663
|
+
};
|
|
10664
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10665
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10666
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "ChartWall");
|
|
10667
|
+
return Promise.resolve({ body: result, response });
|
|
10668
|
+
});
|
|
10669
|
+
}
|
|
9985
10670
|
/**
|
|
9986
10671
|
* Set document properties.
|
|
9987
10672
|
* @param name Document name.
|
|
@@ -10060,6 +10745,84 @@ class SlidesApi {
|
|
|
10060
10745
|
return Promise.resolve({ body: result, response });
|
|
10061
10746
|
});
|
|
10062
10747
|
}
|
|
10748
|
+
/**
|
|
10749
|
+
* Embeds specified font and returns presentation fonts info.
|
|
10750
|
+
* @param name Document name.
|
|
10751
|
+
* @param fontName Document name.
|
|
10752
|
+
* @param onlyUsed Only used characters will be embedded.
|
|
10753
|
+
* @param password Document password.
|
|
10754
|
+
* @param folder Document folder.
|
|
10755
|
+
* @param storage Document storage.
|
|
10756
|
+
*/
|
|
10757
|
+
setEmbeddedFont(name, fontName, onlyUsed = null, password = null, folder = null, storage = null) {
|
|
10758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10759
|
+
// verify required parameter 'name' is not null or undefined
|
|
10760
|
+
if (name === null || name === undefined) {
|
|
10761
|
+
throw new Error('The required parameter "name" was null or undefined when calling setEmbeddedFont.');
|
|
10762
|
+
}
|
|
10763
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
10764
|
+
if (fontName === null || fontName === undefined) {
|
|
10765
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFont.');
|
|
10766
|
+
}
|
|
10767
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
|
|
10768
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10769
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
10770
|
+
const queryParameters = {};
|
|
10771
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
|
|
10772
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10773
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10774
|
+
const requestOptions = {
|
|
10775
|
+
method: "POST",
|
|
10776
|
+
qs: queryParameters,
|
|
10777
|
+
headers: {},
|
|
10778
|
+
uri: localVarPath,
|
|
10779
|
+
json: true
|
|
10780
|
+
};
|
|
10781
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10782
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10783
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
10784
|
+
return Promise.resolve({ body: result, response });
|
|
10785
|
+
});
|
|
10786
|
+
}
|
|
10787
|
+
/**
|
|
10788
|
+
* Embeds specified font and returns presentation.
|
|
10789
|
+
* @param document Document data.
|
|
10790
|
+
* @param fontName Font name.
|
|
10791
|
+
* @param onlyUsed Only used characters will be embedded.
|
|
10792
|
+
* @param password Document password.
|
|
10793
|
+
*/
|
|
10794
|
+
setEmbeddedFontOnline(document, fontName, onlyUsed = null, password = null) {
|
|
10795
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10796
|
+
// verify required parameter 'document' is not null or undefined
|
|
10797
|
+
if (document === null || document === undefined) {
|
|
10798
|
+
throw new Error('The required parameter "document" was null or undefined when calling setEmbeddedFontOnline.');
|
|
10799
|
+
}
|
|
10800
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
10801
|
+
if (fontName === null || fontName === undefined) {
|
|
10802
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFontOnline.');
|
|
10803
|
+
}
|
|
10804
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}";
|
|
10805
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
10806
|
+
const queryParameters = {};
|
|
10807
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
|
|
10808
|
+
const requestOptions = {
|
|
10809
|
+
method: "POST",
|
|
10810
|
+
qs: queryParameters,
|
|
10811
|
+
headers: {},
|
|
10812
|
+
uri: localVarPath,
|
|
10813
|
+
encoding: null
|
|
10814
|
+
};
|
|
10815
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10816
|
+
let localVarFiles = [];
|
|
10817
|
+
if (document != null) {
|
|
10818
|
+
localVarFiles.push(document);
|
|
10819
|
+
}
|
|
10820
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
10821
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10822
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
10823
|
+
return Promise.resolve({ body: result, response });
|
|
10824
|
+
});
|
|
10825
|
+
}
|
|
10063
10826
|
/**
|
|
10064
10827
|
* Set header/footer the notes slide.
|
|
10065
10828
|
* @param name Document name.
|