asposeslidescloud 22.3.0 → 22.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -97
- package/api.d.ts +151 -8
- package/api.js +504 -8
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +941 -193
- package/model.js +545 -113
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -4736,6 +4736,72 @@ class SlidesApi {
|
|
|
4736
4736
|
return Promise.resolve({ body: result, response });
|
|
4737
4737
|
});
|
|
4738
4738
|
}
|
|
4739
|
+
/**
|
|
4740
|
+
* Removes unused master slides.
|
|
4741
|
+
* @param name Document name.
|
|
4742
|
+
* @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
|
|
4743
|
+
* @param password Document password.
|
|
4744
|
+
* @param folder Document folder.
|
|
4745
|
+
* @param storage Document storage.
|
|
4746
|
+
*/
|
|
4747
|
+
deleteUnusedMasterSlides(name, ignorePreserveField = null, password = null, folder = null, storage = null) {
|
|
4748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4749
|
+
// verify required parameter 'name' is not null or undefined
|
|
4750
|
+
if (name === null || name === undefined) {
|
|
4751
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteUnusedMasterSlides.');
|
|
4752
|
+
}
|
|
4753
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/masterSlides";
|
|
4754
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4755
|
+
const queryParameters = {};
|
|
4756
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignorePreserveField", ignorePreserveField);
|
|
4757
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4758
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4759
|
+
const requestOptions = {
|
|
4760
|
+
method: "DELETE",
|
|
4761
|
+
qs: queryParameters,
|
|
4762
|
+
headers: {},
|
|
4763
|
+
uri: localVarPath,
|
|
4764
|
+
json: true
|
|
4765
|
+
};
|
|
4766
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4767
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4768
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "MasterSlides");
|
|
4769
|
+
return Promise.resolve({ body: result, response });
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
/**
|
|
4773
|
+
* Removes unused master slides.
|
|
4774
|
+
* @param document Document data
|
|
4775
|
+
* @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
|
|
4776
|
+
* @param password Document password.
|
|
4777
|
+
*/
|
|
4778
|
+
deleteUnusedMasterSlidesOnline(document, ignorePreserveField = null, password = null) {
|
|
4779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4780
|
+
// verify required parameter 'document' is not null or undefined
|
|
4781
|
+
if (document === null || document === undefined) {
|
|
4782
|
+
throw new Error('The required parameter "document" was null or undefined when calling deleteUnusedMasterSlidesOnline.');
|
|
4783
|
+
}
|
|
4784
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/masterSlides/delete";
|
|
4785
|
+
const queryParameters = {};
|
|
4786
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignorePreserveField", ignorePreserveField);
|
|
4787
|
+
const requestOptions = {
|
|
4788
|
+
method: "POST",
|
|
4789
|
+
qs: queryParameters,
|
|
4790
|
+
headers: {},
|
|
4791
|
+
uri: localVarPath,
|
|
4792
|
+
encoding: null
|
|
4793
|
+
};
|
|
4794
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4795
|
+
let localVarFiles = [];
|
|
4796
|
+
if (document != null) {
|
|
4797
|
+
localVarFiles.push(document);
|
|
4798
|
+
}
|
|
4799
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
4800
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4801
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
4802
|
+
return Promise.resolve({ body: result, response });
|
|
4803
|
+
});
|
|
4804
|
+
}
|
|
4739
4805
|
/**
|
|
4740
4806
|
* Removes shapes with name \"watermark\" from the presentation.
|
|
4741
4807
|
* @param name Document name.
|
|
@@ -5487,8 +5553,8 @@ class SlidesApi {
|
|
|
5487
5553
|
* @param slideIndex Slide index.
|
|
5488
5554
|
* @param format Output file format.
|
|
5489
5555
|
* @param options Export options.
|
|
5490
|
-
* @param width
|
|
5491
|
-
* @param height
|
|
5556
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5557
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5492
5558
|
* @param password Document password.
|
|
5493
5559
|
* @param folder Document folder.
|
|
5494
5560
|
* @param storage Document storage.
|
|
@@ -5541,8 +5607,8 @@ class SlidesApi {
|
|
|
5541
5607
|
* @param document Document data.
|
|
5542
5608
|
* @param slideIndex Slide index.
|
|
5543
5609
|
* @param format Output file format.
|
|
5544
|
-
* @param width
|
|
5545
|
-
* @param height
|
|
5610
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5611
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
5546
5612
|
* @param password Document password.
|
|
5547
5613
|
* @param storage Document storage.
|
|
5548
5614
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -6453,6 +6519,55 @@ class SlidesApi {
|
|
|
6453
6519
|
return Promise.resolve({ body: result, response });
|
|
6454
6520
|
});
|
|
6455
6521
|
}
|
|
6522
|
+
/**
|
|
6523
|
+
* Read effective paragraph info.
|
|
6524
|
+
* @param name Document name.
|
|
6525
|
+
* @param slideIndex Slide index.
|
|
6526
|
+
* @param shapeIndex Shape index.
|
|
6527
|
+
* @param paragraphIndex Paragraph index.
|
|
6528
|
+
* @param password Document password.
|
|
6529
|
+
* @param folder Document folder.
|
|
6530
|
+
* @param storage Document storage.
|
|
6531
|
+
*/
|
|
6532
|
+
getParagraphEffective(name, slideIndex, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
6533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6534
|
+
// verify required parameter 'name' is not null or undefined
|
|
6535
|
+
if (name === null || name === undefined) {
|
|
6536
|
+
throw new Error('The required parameter "name" was null or undefined when calling getParagraphEffective.');
|
|
6537
|
+
}
|
|
6538
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6539
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6540
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getParagraphEffective.');
|
|
6541
|
+
}
|
|
6542
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6543
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6544
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getParagraphEffective.');
|
|
6545
|
+
}
|
|
6546
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6547
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6548
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getParagraphEffective.');
|
|
6549
|
+
}
|
|
6550
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
6551
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6552
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6553
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6554
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6555
|
+
const queryParameters = {};
|
|
6556
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6557
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6558
|
+
const requestOptions = {
|
|
6559
|
+
method: "GET",
|
|
6560
|
+
qs: queryParameters,
|
|
6561
|
+
headers: {},
|
|
6562
|
+
uri: localVarPath,
|
|
6563
|
+
json: true
|
|
6564
|
+
};
|
|
6565
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6566
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6567
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
6568
|
+
return Promise.resolve({ body: result, response });
|
|
6569
|
+
});
|
|
6570
|
+
}
|
|
6456
6571
|
/**
|
|
6457
6572
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6458
6573
|
* @param name Document name.
|
|
@@ -6680,6 +6795,61 @@ class SlidesApi {
|
|
|
6680
6795
|
return Promise.resolve({ body: result, response });
|
|
6681
6796
|
});
|
|
6682
6797
|
}
|
|
6798
|
+
/**
|
|
6799
|
+
* Read effective portion info.
|
|
6800
|
+
* @param name Document name.
|
|
6801
|
+
* @param slideIndex Slide index.
|
|
6802
|
+
* @param shapeIndex Shape index.
|
|
6803
|
+
* @param paragraphIndex Paragraph index.
|
|
6804
|
+
* @param portionIndex Portion index.
|
|
6805
|
+
* @param password Document password.
|
|
6806
|
+
* @param folder Document folder.
|
|
6807
|
+
* @param storage Document storage.
|
|
6808
|
+
*/
|
|
6809
|
+
getPortionEffective(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
6810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6811
|
+
// verify required parameter 'name' is not null or undefined
|
|
6812
|
+
if (name === null || name === undefined) {
|
|
6813
|
+
throw new Error('The required parameter "name" was null or undefined when calling getPortionEffective.');
|
|
6814
|
+
}
|
|
6815
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
6816
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
6817
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getPortionEffective.');
|
|
6818
|
+
}
|
|
6819
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
6820
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
6821
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getPortionEffective.');
|
|
6822
|
+
}
|
|
6823
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
6824
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
6825
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getPortionEffective.');
|
|
6826
|
+
}
|
|
6827
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
6828
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
6829
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getPortionEffective.');
|
|
6830
|
+
}
|
|
6831
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
6832
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6833
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
6834
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
6835
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
6836
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
6837
|
+
const queryParameters = {};
|
|
6838
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6839
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6840
|
+
const requestOptions = {
|
|
6841
|
+
method: "GET",
|
|
6842
|
+
qs: queryParameters,
|
|
6843
|
+
headers: {},
|
|
6844
|
+
uri: localVarPath,
|
|
6845
|
+
json: true
|
|
6846
|
+
};
|
|
6847
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6848
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6849
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
6850
|
+
return Promise.resolve({ body: result, response });
|
|
6851
|
+
});
|
|
6852
|
+
}
|
|
6683
6853
|
/**
|
|
6684
6854
|
* Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
|
|
6685
6855
|
* @param name Document name.
|
|
@@ -8150,6 +8320,57 @@ class SlidesApi {
|
|
|
8150
8320
|
return Promise.resolve({ body: result, response });
|
|
8151
8321
|
});
|
|
8152
8322
|
}
|
|
8323
|
+
/**
|
|
8324
|
+
* Read effective paragraph info (for smart art and group shapes).
|
|
8325
|
+
* @param name Document name.
|
|
8326
|
+
* @param slideIndex Slide index.
|
|
8327
|
+
* @param path Shape path.
|
|
8328
|
+
* @param shapeIndex Shape index.
|
|
8329
|
+
* @param paragraphIndex Paragraph index.
|
|
8330
|
+
* @param password Document password.
|
|
8331
|
+
* @param folder Document folder.
|
|
8332
|
+
* @param storage Document storage.
|
|
8333
|
+
*/
|
|
8334
|
+
getSubshapeParagraphEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
8335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8336
|
+
// verify required parameter 'name' is not null or undefined
|
|
8337
|
+
if (name === null || name === undefined) {
|
|
8338
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8339
|
+
}
|
|
8340
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8341
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8342
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8343
|
+
}
|
|
8344
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8345
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8346
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8347
|
+
}
|
|
8348
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8349
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8350
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapeParagraphEffective.');
|
|
8351
|
+
}
|
|
8352
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/effective";
|
|
8353
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8354
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8355
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8356
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8357
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8358
|
+
const queryParameters = {};
|
|
8359
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8360
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8361
|
+
const requestOptions = {
|
|
8362
|
+
method: "GET",
|
|
8363
|
+
qs: queryParameters,
|
|
8364
|
+
headers: {},
|
|
8365
|
+
uri: localVarPath,
|
|
8366
|
+
json: true
|
|
8367
|
+
};
|
|
8368
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8369
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8370
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
8371
|
+
return Promise.resolve({ body: result, response });
|
|
8372
|
+
});
|
|
8373
|
+
}
|
|
8153
8374
|
/**
|
|
8154
8375
|
* Read shape paragraphs info (for smart art and group shapes).
|
|
8155
8376
|
* @param name Document name.
|
|
@@ -8252,6 +8473,63 @@ class SlidesApi {
|
|
|
8252
8473
|
return Promise.resolve({ body: result, response });
|
|
8253
8474
|
});
|
|
8254
8475
|
}
|
|
8476
|
+
/**
|
|
8477
|
+
* Read effective portion info (for smart art and group shapes).
|
|
8478
|
+
* @param name Document name.
|
|
8479
|
+
* @param slideIndex Slide index.
|
|
8480
|
+
* @param path Shape path.
|
|
8481
|
+
* @param shapeIndex Shape index.
|
|
8482
|
+
* @param paragraphIndex Paragraph index.
|
|
8483
|
+
* @param portionIndex Portion index.
|
|
8484
|
+
* @param password Document password.
|
|
8485
|
+
* @param folder Document folder.
|
|
8486
|
+
* @param storage Document storage.
|
|
8487
|
+
*/
|
|
8488
|
+
getSubshapePortionEffective(name, slideIndex, path = null, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
8489
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8490
|
+
// verify required parameter 'name' is not null or undefined
|
|
8491
|
+
if (name === null || name === undefined) {
|
|
8492
|
+
throw new Error('The required parameter "name" was null or undefined when calling getSubshapePortionEffective.');
|
|
8493
|
+
}
|
|
8494
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8495
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8496
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8497
|
+
}
|
|
8498
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8499
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8500
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8501
|
+
}
|
|
8502
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
8503
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
8504
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8505
|
+
}
|
|
8506
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
8507
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
8508
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getSubshapePortionEffective.');
|
|
8509
|
+
}
|
|
8510
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/effective";
|
|
8511
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8512
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8513
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
|
|
8514
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
8515
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
8516
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
8517
|
+
const queryParameters = {};
|
|
8518
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8519
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8520
|
+
const requestOptions = {
|
|
8521
|
+
method: "GET",
|
|
8522
|
+
qs: queryParameters,
|
|
8523
|
+
headers: {},
|
|
8524
|
+
uri: localVarPath,
|
|
8525
|
+
json: true
|
|
8526
|
+
};
|
|
8527
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
8528
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8529
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
8530
|
+
return Promise.resolve({ body: result, response });
|
|
8531
|
+
});
|
|
8532
|
+
}
|
|
8255
8533
|
/**
|
|
8256
8534
|
* Read paragraph portions info (for smart art and group shapes).
|
|
8257
8535
|
* @param name Document name.
|
|
@@ -9505,8 +9783,8 @@ class SlidesApi {
|
|
|
9505
9783
|
* @param format Output file format.
|
|
9506
9784
|
* @param outPath Path to upload the output file to.
|
|
9507
9785
|
* @param options Export options.
|
|
9508
|
-
* @param width
|
|
9509
|
-
* @param height
|
|
9786
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9787
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9510
9788
|
* @param password Document password.
|
|
9511
9789
|
* @param folder Document folder.
|
|
9512
9790
|
* @param storage Document storage.
|
|
@@ -9563,8 +9841,8 @@ class SlidesApi {
|
|
|
9563
9841
|
* @param slideIndex Slide index.
|
|
9564
9842
|
* @param format Output file format.
|
|
9565
9843
|
* @param outPath Path to save result.
|
|
9566
|
-
* @param width
|
|
9567
|
-
* @param height
|
|
9844
|
+
* @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9845
|
+
* @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
|
|
9568
9846
|
* @param password Document password.
|
|
9569
9847
|
* @param storage Document storage.
|
|
9570
9848
|
* @param fontsFolder Storage folder containing custom fonts to be used with the document.
|
|
@@ -9982,6 +10260,224 @@ class SlidesApi {
|
|
|
9982
10260
|
return Promise.resolve({ body: result, response });
|
|
9983
10261
|
});
|
|
9984
10262
|
}
|
|
10263
|
+
/**
|
|
10264
|
+
* Set chart axis.
|
|
10265
|
+
* @param name Document name.
|
|
10266
|
+
* @param slideIndex Slide index.
|
|
10267
|
+
* @param shapeIndex Shape index.
|
|
10268
|
+
* @param axisType Axis type. Horizontal, Vertical, SecondaryHorizontal or SecondaryVertical.
|
|
10269
|
+
* @param axis Axis DTO.
|
|
10270
|
+
* @param password Document password.
|
|
10271
|
+
* @param folder Document folder.
|
|
10272
|
+
* @param storage Document storage.
|
|
10273
|
+
*/
|
|
10274
|
+
setChartAxis(name, slideIndex, shapeIndex, axisType, axis, password = null, folder = null, storage = null) {
|
|
10275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10276
|
+
// verify required parameter 'name' is not null or undefined
|
|
10277
|
+
if (name === null || name === undefined) {
|
|
10278
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartAxis.');
|
|
10279
|
+
}
|
|
10280
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10281
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10282
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartAxis.');
|
|
10283
|
+
}
|
|
10284
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10285
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10286
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartAxis.');
|
|
10287
|
+
}
|
|
10288
|
+
// verify required parameter 'axisType' is not null or undefined
|
|
10289
|
+
if (axisType === null || axisType === undefined) {
|
|
10290
|
+
throw new Error('The required parameter "axisType" was null or undefined when calling setChartAxis.');
|
|
10291
|
+
}
|
|
10292
|
+
// verify value of enum parameter 'axisType' is valid
|
|
10293
|
+
if (!Object.keys(model.AxisType).filter(i => model.AxisType[i].toLowerCase() == axisType.toString().toLowerCase()).length) {
|
|
10294
|
+
throw new Error('Invalid value for axisType: ' + axisType + '. Must be one of the following: ' + Object.keys(model.AxisType).map(key => model.AxisType[key]).join());
|
|
10295
|
+
}
|
|
10296
|
+
// verify required parameter 'axis' is not null or undefined
|
|
10297
|
+
if (axis === null || axis === undefined) {
|
|
10298
|
+
throw new Error('The required parameter "axis" was null or undefined when calling setChartAxis.');
|
|
10299
|
+
}
|
|
10300
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/{axisType}";
|
|
10301
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10302
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10303
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10304
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "axisType", objectSerializer_1.ObjectSerializer.toString(axisType));
|
|
10305
|
+
const queryParameters = {};
|
|
10306
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10307
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10308
|
+
const requestOptions = {
|
|
10309
|
+
method: "PUT",
|
|
10310
|
+
qs: queryParameters,
|
|
10311
|
+
headers: {},
|
|
10312
|
+
uri: localVarPath,
|
|
10313
|
+
json: axis
|
|
10314
|
+
};
|
|
10315
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10316
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10317
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Axis");
|
|
10318
|
+
return Promise.resolve({ body: result, response });
|
|
10319
|
+
});
|
|
10320
|
+
}
|
|
10321
|
+
/**
|
|
10322
|
+
* Set chart axis.
|
|
10323
|
+
* @param name Document name.
|
|
10324
|
+
* @param slideIndex Slide index.
|
|
10325
|
+
* @param shapeIndex Shape index.
|
|
10326
|
+
* @param legend Chart legend DTO.
|
|
10327
|
+
* @param password Document password.
|
|
10328
|
+
* @param folder Document folder.
|
|
10329
|
+
* @param storage Document storage.
|
|
10330
|
+
*/
|
|
10331
|
+
setChartLegend(name, slideIndex, shapeIndex, legend, password = null, folder = null, storage = null) {
|
|
10332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10333
|
+
// verify required parameter 'name' is not null or undefined
|
|
10334
|
+
if (name === null || name === undefined) {
|
|
10335
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartLegend.');
|
|
10336
|
+
}
|
|
10337
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10338
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10339
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartLegend.');
|
|
10340
|
+
}
|
|
10341
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10342
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10343
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartLegend.');
|
|
10344
|
+
}
|
|
10345
|
+
// verify required parameter 'legend' is not null or undefined
|
|
10346
|
+
if (legend === null || legend === undefined) {
|
|
10347
|
+
throw new Error('The required parameter "legend" was null or undefined when calling setChartLegend.');
|
|
10348
|
+
}
|
|
10349
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/legend";
|
|
10350
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10351
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10352
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10353
|
+
const queryParameters = {};
|
|
10354
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10355
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10356
|
+
const requestOptions = {
|
|
10357
|
+
method: "PUT",
|
|
10358
|
+
qs: queryParameters,
|
|
10359
|
+
headers: {},
|
|
10360
|
+
uri: localVarPath,
|
|
10361
|
+
json: legend
|
|
10362
|
+
};
|
|
10363
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10364
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10365
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Legend");
|
|
10366
|
+
return Promise.resolve({ body: result, response });
|
|
10367
|
+
});
|
|
10368
|
+
}
|
|
10369
|
+
/**
|
|
10370
|
+
* Set a series group in a chart.
|
|
10371
|
+
* @param name Document name.
|
|
10372
|
+
* @param slideIndex Slide index.
|
|
10373
|
+
* @param shapeIndex Shape index (must be a chart).
|
|
10374
|
+
* @param seriesGroupIndex Series group index.
|
|
10375
|
+
* @param seriesGroup Series group DTO.
|
|
10376
|
+
* @param password Document password.
|
|
10377
|
+
* @param folder Document folder.
|
|
10378
|
+
* @param storage Document storage.
|
|
10379
|
+
*/
|
|
10380
|
+
setChartSeriesGroup(name, slideIndex, shapeIndex, seriesGroupIndex, seriesGroup, password = null, folder = null, storage = null) {
|
|
10381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10382
|
+
// verify required parameter 'name' is not null or undefined
|
|
10383
|
+
if (name === null || name === undefined) {
|
|
10384
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartSeriesGroup.');
|
|
10385
|
+
}
|
|
10386
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10387
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10388
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10389
|
+
}
|
|
10390
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10391
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10392
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10393
|
+
}
|
|
10394
|
+
// verify required parameter 'seriesGroupIndex' is not null or undefined
|
|
10395
|
+
if (seriesGroupIndex === null || seriesGroupIndex === undefined) {
|
|
10396
|
+
throw new Error('The required parameter "seriesGroupIndex" was null or undefined when calling setChartSeriesGroup.');
|
|
10397
|
+
}
|
|
10398
|
+
// verify required parameter 'seriesGroup' is not null or undefined
|
|
10399
|
+
if (seriesGroup === null || seriesGroup === undefined) {
|
|
10400
|
+
throw new Error('The required parameter "seriesGroup" was null or undefined when calling setChartSeriesGroup.');
|
|
10401
|
+
}
|
|
10402
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/seriesGroup/{seriesGroupIndex}";
|
|
10403
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10404
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10405
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10406
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "seriesGroupIndex", objectSerializer_1.ObjectSerializer.toString(seriesGroupIndex));
|
|
10407
|
+
const queryParameters = {};
|
|
10408
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10409
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10410
|
+
const requestOptions = {
|
|
10411
|
+
method: "PUT",
|
|
10412
|
+
qs: queryParameters,
|
|
10413
|
+
headers: {},
|
|
10414
|
+
uri: localVarPath,
|
|
10415
|
+
json: seriesGroup
|
|
10416
|
+
};
|
|
10417
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10418
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10419
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Chart");
|
|
10420
|
+
return Promise.resolve({ body: result, response });
|
|
10421
|
+
});
|
|
10422
|
+
}
|
|
10423
|
+
/**
|
|
10424
|
+
* Set 3D chart wall.
|
|
10425
|
+
* @param name Document name.
|
|
10426
|
+
* @param slideIndex Slide index.
|
|
10427
|
+
* @param shapeIndex Shape index.
|
|
10428
|
+
* @param chartWallType Chart wall type: floor, sideWall or backWall.
|
|
10429
|
+
* @param chartWall Chart wall DTO.
|
|
10430
|
+
* @param password Document password.
|
|
10431
|
+
* @param folder Document folder.
|
|
10432
|
+
* @param storage Document storage.
|
|
10433
|
+
*/
|
|
10434
|
+
setChartWall(name, slideIndex, shapeIndex, chartWallType, chartWall, password = null, folder = null, storage = null) {
|
|
10435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10436
|
+
// verify required parameter 'name' is not null or undefined
|
|
10437
|
+
if (name === null || name === undefined) {
|
|
10438
|
+
throw new Error('The required parameter "name" was null or undefined when calling setChartWall.');
|
|
10439
|
+
}
|
|
10440
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10441
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10442
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling setChartWall.');
|
|
10443
|
+
}
|
|
10444
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10445
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10446
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling setChartWall.');
|
|
10447
|
+
}
|
|
10448
|
+
// verify required parameter 'chartWallType' is not null or undefined
|
|
10449
|
+
if (chartWallType === null || chartWallType === undefined) {
|
|
10450
|
+
throw new Error('The required parameter "chartWallType" was null or undefined when calling setChartWall.');
|
|
10451
|
+
}
|
|
10452
|
+
// verify value of enum parameter 'chartWallType' is valid
|
|
10453
|
+
if (!Object.keys(model.ChartWallType).filter(i => model.ChartWallType[i].toLowerCase() == chartWallType.toString().toLowerCase()).length) {
|
|
10454
|
+
throw new Error('Invalid value for chartWallType: ' + chartWallType + '. Must be one of the following: ' + Object.keys(model.ChartWallType).map(key => model.ChartWallType[key]).join());
|
|
10455
|
+
}
|
|
10456
|
+
// verify required parameter 'chartWall' is not null or undefined
|
|
10457
|
+
if (chartWall === null || chartWall === undefined) {
|
|
10458
|
+
throw new Error('The required parameter "chartWall" was null or undefined when calling setChartWall.');
|
|
10459
|
+
}
|
|
10460
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/{chartWallType}";
|
|
10461
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10462
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10463
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10464
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "chartWallType", objectSerializer_1.ObjectSerializer.toString(chartWallType));
|
|
10465
|
+
const queryParameters = {};
|
|
10466
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10467
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10468
|
+
const requestOptions = {
|
|
10469
|
+
method: "PUT",
|
|
10470
|
+
qs: queryParameters,
|
|
10471
|
+
headers: {},
|
|
10472
|
+
uri: localVarPath,
|
|
10473
|
+
json: chartWall
|
|
10474
|
+
};
|
|
10475
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10476
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10477
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "ChartWall");
|
|
10478
|
+
return Promise.resolve({ body: result, response });
|
|
10479
|
+
});
|
|
10480
|
+
}
|
|
9985
10481
|
/**
|
|
9986
10482
|
* Set document properties.
|
|
9987
10483
|
* @param name Document name.
|
|
@@ -146,7 +146,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
|
|
|
146
146
|
if (!requestOptions.headers) {
|
|
147
147
|
requestOptions.headers = {};
|
|
148
148
|
}
|
|
149
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.
|
|
149
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.7.0";
|
|
150
150
|
if (confguration.timeout) {
|
|
151
151
|
requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
|
|
152
152
|
}
|