asposeslidescloud 23.3.0 → 23.4.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 +8 -0
- package/api.d.ts +257 -0
- package/api.js +975 -13
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +45 -0
- package/model.js +20 -1
- package/package.json +2 -3
package/api.js
CHANGED
|
@@ -1797,6 +1797,182 @@ class SlidesApi {
|
|
|
1797
1797
|
return Promise.resolve({ body: result, response });
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Creates table cell paragraph.
|
|
1802
|
+
* @param name Document name.
|
|
1803
|
+
* @param slideIndex Slide index.
|
|
1804
|
+
* @param shapeIndex Shape index.
|
|
1805
|
+
* @param rowIndex Row index.
|
|
1806
|
+
* @param cellIndex Table cell index.
|
|
1807
|
+
* @param dto Paragraph DTO.
|
|
1808
|
+
* @param password Document password.
|
|
1809
|
+
* @param folder Document folder.
|
|
1810
|
+
* @param storage Document storage.
|
|
1811
|
+
*/
|
|
1812
|
+
createTableCellParagraph(name, slideIndex, shapeIndex, rowIndex, cellIndex, dto, password = null, folder = null, storage = null) {
|
|
1813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1814
|
+
// verify required parameter 'name' is not null or undefined
|
|
1815
|
+
if (name === null || name === undefined) {
|
|
1816
|
+
throw new Error('The required parameter "name" was null or undefined when calling createTableCellParagraph.');
|
|
1817
|
+
}
|
|
1818
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
1819
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
1820
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling createTableCellParagraph.');
|
|
1821
|
+
}
|
|
1822
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
1823
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
1824
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling createTableCellParagraph.');
|
|
1825
|
+
}
|
|
1826
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
1827
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
1828
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling createTableCellParagraph.');
|
|
1829
|
+
}
|
|
1830
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
1831
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
1832
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling createTableCellParagraph.');
|
|
1833
|
+
}
|
|
1834
|
+
// verify required parameter 'dto' is not null or undefined
|
|
1835
|
+
if (dto === null || dto === undefined) {
|
|
1836
|
+
throw new Error('The required parameter "dto" was null or undefined when calling createTableCellParagraph.');
|
|
1837
|
+
}
|
|
1838
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs";
|
|
1839
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
1840
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
1841
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
1842
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
1843
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
1844
|
+
const queryParameters = {};
|
|
1845
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
1846
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
1847
|
+
const requestOptions = {
|
|
1848
|
+
method: "POST",
|
|
1849
|
+
headers: {},
|
|
1850
|
+
url: localVarPath,
|
|
1851
|
+
data: dto,
|
|
1852
|
+
params: queryParameters
|
|
1853
|
+
};
|
|
1854
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
1855
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
1856
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
1857
|
+
return Promise.resolve({ body: result, response });
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Creates table cell portion.
|
|
1862
|
+
* @param name Document name.
|
|
1863
|
+
* @param slideIndex Slide index.
|
|
1864
|
+
* @param shapeIndex Shape index.
|
|
1865
|
+
* @param rowIndex Row index.
|
|
1866
|
+
* @param cellIndex Table cell index.
|
|
1867
|
+
* @param paragraphIndex Paragraph index.
|
|
1868
|
+
* @param dto Portion DTO.
|
|
1869
|
+
* @param password Document password.
|
|
1870
|
+
* @param folder Document folder.
|
|
1871
|
+
* @param storage Document storage.
|
|
1872
|
+
*/
|
|
1873
|
+
createTableCellPortion(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto, password = null, folder = null, storage = null) {
|
|
1874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
+
// verify required parameter 'name' is not null or undefined
|
|
1876
|
+
if (name === null || name === undefined) {
|
|
1877
|
+
throw new Error('The required parameter "name" was null or undefined when calling createTableCellPortion.');
|
|
1878
|
+
}
|
|
1879
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
1880
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
1881
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling createTableCellPortion.');
|
|
1882
|
+
}
|
|
1883
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
1884
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
1885
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling createTableCellPortion.');
|
|
1886
|
+
}
|
|
1887
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
1888
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
1889
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling createTableCellPortion.');
|
|
1890
|
+
}
|
|
1891
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
1892
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
1893
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling createTableCellPortion.');
|
|
1894
|
+
}
|
|
1895
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
1896
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
1897
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling createTableCellPortion.');
|
|
1898
|
+
}
|
|
1899
|
+
// verify required parameter 'dto' is not null or undefined
|
|
1900
|
+
if (dto === null || dto === undefined) {
|
|
1901
|
+
throw new Error('The required parameter "dto" was null or undefined when calling createTableCellPortion.');
|
|
1902
|
+
}
|
|
1903
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions";
|
|
1904
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
1905
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
1906
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
1907
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
1908
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
1909
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
1910
|
+
const queryParameters = {};
|
|
1911
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
1912
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
1913
|
+
const requestOptions = {
|
|
1914
|
+
method: "POST",
|
|
1915
|
+
headers: {},
|
|
1916
|
+
url: localVarPath,
|
|
1917
|
+
data: dto,
|
|
1918
|
+
params: queryParameters
|
|
1919
|
+
};
|
|
1920
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
1921
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
1922
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
1923
|
+
return Promise.resolve({ body: result, response });
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Inserts the table row in the specified position. If position is not specified, the row add to the end of the table.
|
|
1928
|
+
* @param name Document name.
|
|
1929
|
+
* @param slideIndex Slide index.
|
|
1930
|
+
* @param shapeIndex Shape index.
|
|
1931
|
+
* @param dto Table row data.
|
|
1932
|
+
* @param position Position.
|
|
1933
|
+
* @param password Document password.
|
|
1934
|
+
* @param folder Document folder.
|
|
1935
|
+
* @param storage Document storage.
|
|
1936
|
+
*/
|
|
1937
|
+
createTableRow(name, slideIndex, shapeIndex, dto, position = null, password = null, folder = null, storage = null) {
|
|
1938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1939
|
+
// verify required parameter 'name' is not null or undefined
|
|
1940
|
+
if (name === null || name === undefined) {
|
|
1941
|
+
throw new Error('The required parameter "name" was null or undefined when calling createTableRow.');
|
|
1942
|
+
}
|
|
1943
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
1944
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
1945
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling createTableRow.');
|
|
1946
|
+
}
|
|
1947
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
1948
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
1949
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling createTableRow.');
|
|
1950
|
+
}
|
|
1951
|
+
// verify required parameter 'dto' is not null or undefined
|
|
1952
|
+
if (dto === null || dto === undefined) {
|
|
1953
|
+
throw new Error('The required parameter "dto" was null or undefined when calling createTableRow.');
|
|
1954
|
+
}
|
|
1955
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows";
|
|
1956
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
1957
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
1958
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
1959
|
+
const queryParameters = {};
|
|
1960
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "position", position);
|
|
1961
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
1962
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
1963
|
+
const requestOptions = {
|
|
1964
|
+
method: "POST",
|
|
1965
|
+
headers: {},
|
|
1966
|
+
url: localVarPath,
|
|
1967
|
+
data: dto,
|
|
1968
|
+
params: queryParameters
|
|
1969
|
+
};
|
|
1970
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
1971
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
1972
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "TableRow");
|
|
1973
|
+
return Promise.resolve({ body: result, response });
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1800
1976
|
/**
|
|
1801
1977
|
* Adds a text watermark to each slide of the presentation. Text watermark can be setup via method arguments or withing Shape DTO for detailed customization. Both options are applicable simultaneously.
|
|
1802
1978
|
* @param name Document name.
|
|
@@ -3854,6 +4030,182 @@ class SlidesApi {
|
|
|
3854
4030
|
return Promise.resolve({ body: result, response });
|
|
3855
4031
|
});
|
|
3856
4032
|
}
|
|
4033
|
+
/**
|
|
4034
|
+
* Delete cell paragraph.
|
|
4035
|
+
* @param name Document name.
|
|
4036
|
+
* @param slideIndex Slide index.
|
|
4037
|
+
* @param shapeIndex Shape index.
|
|
4038
|
+
* @param rowIndex Row index.
|
|
4039
|
+
* @param cellIndex Table cell index.
|
|
4040
|
+
* @param paragraphIndex Paragraph index.
|
|
4041
|
+
* @param password Document password.
|
|
4042
|
+
* @param folder Document folder.
|
|
4043
|
+
* @param storage Document storage.
|
|
4044
|
+
*/
|
|
4045
|
+
deleteTableCellParagraph(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
4046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4047
|
+
// verify required parameter 'name' is not null or undefined
|
|
4048
|
+
if (name === null || name === undefined) {
|
|
4049
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteTableCellParagraph.');
|
|
4050
|
+
}
|
|
4051
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
4052
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
4053
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling deleteTableCellParagraph.');
|
|
4054
|
+
}
|
|
4055
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
4056
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
4057
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling deleteTableCellParagraph.');
|
|
4058
|
+
}
|
|
4059
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
4060
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
4061
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling deleteTableCellParagraph.');
|
|
4062
|
+
}
|
|
4063
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
4064
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
4065
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling deleteTableCellParagraph.');
|
|
4066
|
+
}
|
|
4067
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
4068
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
4069
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling deleteTableCellParagraph.');
|
|
4070
|
+
}
|
|
4071
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}";
|
|
4072
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4073
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
4074
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
4075
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
4076
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
4077
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
4078
|
+
const queryParameters = {};
|
|
4079
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4080
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4081
|
+
const requestOptions = {
|
|
4082
|
+
method: "DELETE",
|
|
4083
|
+
headers: {},
|
|
4084
|
+
url: localVarPath,
|
|
4085
|
+
params: queryParameters
|
|
4086
|
+
};
|
|
4087
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4088
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4089
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraphs");
|
|
4090
|
+
return Promise.resolve({ body: result, response });
|
|
4091
|
+
});
|
|
4092
|
+
}
|
|
4093
|
+
/**
|
|
4094
|
+
* Delete table ell portion.
|
|
4095
|
+
* @param name Document name.
|
|
4096
|
+
* @param slideIndex Slide index.
|
|
4097
|
+
* @param shapeIndex Shape index.
|
|
4098
|
+
* @param rowIndex Row index.
|
|
4099
|
+
* @param cellIndex Table cell index.
|
|
4100
|
+
* @param paragraphIndex Paragraph index.
|
|
4101
|
+
* @param portionIndex Portion index.
|
|
4102
|
+
* @param password Document password.
|
|
4103
|
+
* @param folder Document folder.
|
|
4104
|
+
* @param storage Document storage.
|
|
4105
|
+
*/
|
|
4106
|
+
deleteTableCellPortion(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
4107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4108
|
+
// verify required parameter 'name' is not null or undefined
|
|
4109
|
+
if (name === null || name === undefined) {
|
|
4110
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteTableCellPortion.');
|
|
4111
|
+
}
|
|
4112
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
4113
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
4114
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4115
|
+
}
|
|
4116
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
4117
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
4118
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4119
|
+
}
|
|
4120
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
4121
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
4122
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4123
|
+
}
|
|
4124
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
4125
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
4126
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4127
|
+
}
|
|
4128
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
4129
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
4130
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4131
|
+
}
|
|
4132
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
4133
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
4134
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling deleteTableCellPortion.');
|
|
4135
|
+
}
|
|
4136
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}";
|
|
4137
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4138
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
4139
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
4140
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
4141
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
4142
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
4143
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
4144
|
+
const queryParameters = {};
|
|
4145
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4146
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4147
|
+
const requestOptions = {
|
|
4148
|
+
method: "DELETE",
|
|
4149
|
+
headers: {},
|
|
4150
|
+
url: localVarPath,
|
|
4151
|
+
params: queryParameters
|
|
4152
|
+
};
|
|
4153
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4154
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4155
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portions");
|
|
4156
|
+
return Promise.resolve({ body: result, response });
|
|
4157
|
+
});
|
|
4158
|
+
}
|
|
4159
|
+
/**
|
|
4160
|
+
* Deletes the table row.
|
|
4161
|
+
* @param name Document name.
|
|
4162
|
+
* @param slideIndex Slide index.
|
|
4163
|
+
* @param shapeIndex Shape index.
|
|
4164
|
+
* @param rowIndex Row index.
|
|
4165
|
+
* @param withAttachedRows Also delete all attached rows.
|
|
4166
|
+
* @param password Document password.
|
|
4167
|
+
* @param folder Document folder.
|
|
4168
|
+
* @param storage Document storage.
|
|
4169
|
+
*/
|
|
4170
|
+
deleteTableRow(name, slideIndex, shapeIndex, rowIndex, withAttachedRows = null, password = null, folder = null, storage = null) {
|
|
4171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4172
|
+
// verify required parameter 'name' is not null or undefined
|
|
4173
|
+
if (name === null || name === undefined) {
|
|
4174
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteTableRow.');
|
|
4175
|
+
}
|
|
4176
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
4177
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
4178
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling deleteTableRow.');
|
|
4179
|
+
}
|
|
4180
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
4181
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
4182
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling deleteTableRow.');
|
|
4183
|
+
}
|
|
4184
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
4185
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
4186
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling deleteTableRow.');
|
|
4187
|
+
}
|
|
4188
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}";
|
|
4189
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
4190
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
4191
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
4192
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
4193
|
+
const queryParameters = {};
|
|
4194
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "withAttachedRows", withAttachedRows);
|
|
4195
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
4196
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
4197
|
+
const requestOptions = {
|
|
4198
|
+
method: "DELETE",
|
|
4199
|
+
headers: {},
|
|
4200
|
+
url: localVarPath,
|
|
4201
|
+
params: queryParameters
|
|
4202
|
+
};
|
|
4203
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
4204
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
4205
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Table");
|
|
4206
|
+
return Promise.resolve({ body: result, response });
|
|
4207
|
+
});
|
|
4208
|
+
}
|
|
3857
4209
|
/**
|
|
3858
4210
|
* Removes unused layout slides.
|
|
3859
4211
|
* @param name Document name.
|
|
@@ -7011,6 +7363,246 @@ class SlidesApi {
|
|
|
7011
7363
|
return Promise.resolve({ body: result, response });
|
|
7012
7364
|
});
|
|
7013
7365
|
}
|
|
7366
|
+
/**
|
|
7367
|
+
* Returns paragraph info.
|
|
7368
|
+
* @param name Document name.
|
|
7369
|
+
* @param slideIndex Slide index.
|
|
7370
|
+
* @param shapeIndex Shape index.
|
|
7371
|
+
* @param rowIndex Row index.
|
|
7372
|
+
* @param cellIndex Table cell index.
|
|
7373
|
+
* @param paragraphIndex Paragraph index.
|
|
7374
|
+
* @param password Document password.
|
|
7375
|
+
* @param folder Document folder.
|
|
7376
|
+
* @param storage Document storage.
|
|
7377
|
+
*/
|
|
7378
|
+
getTableCellParagraph(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
7379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7380
|
+
// verify required parameter 'name' is not null or undefined
|
|
7381
|
+
if (name === null || name === undefined) {
|
|
7382
|
+
throw new Error('The required parameter "name" was null or undefined when calling getTableCellParagraph.');
|
|
7383
|
+
}
|
|
7384
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
7385
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
7386
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getTableCellParagraph.');
|
|
7387
|
+
}
|
|
7388
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
7389
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
7390
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getTableCellParagraph.');
|
|
7391
|
+
}
|
|
7392
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
7393
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
7394
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling getTableCellParagraph.');
|
|
7395
|
+
}
|
|
7396
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
7397
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
7398
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling getTableCellParagraph.');
|
|
7399
|
+
}
|
|
7400
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
7401
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
7402
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getTableCellParagraph.');
|
|
7403
|
+
}
|
|
7404
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}";
|
|
7405
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
7406
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
7407
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
7408
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
7409
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
7410
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
7411
|
+
const queryParameters = {};
|
|
7412
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7413
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7414
|
+
const requestOptions = {
|
|
7415
|
+
method: "GET",
|
|
7416
|
+
headers: {},
|
|
7417
|
+
url: localVarPath,
|
|
7418
|
+
params: queryParameters
|
|
7419
|
+
};
|
|
7420
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7421
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7422
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
7423
|
+
return Promise.resolve({ body: result, response });
|
|
7424
|
+
});
|
|
7425
|
+
}
|
|
7426
|
+
/**
|
|
7427
|
+
* Returns table cell paragraphs.
|
|
7428
|
+
* @param name Document name.
|
|
7429
|
+
* @param slideIndex Slide index.
|
|
7430
|
+
* @param shapeIndex Shape index.
|
|
7431
|
+
* @param rowIndex Row index.
|
|
7432
|
+
* @param cellIndex Table cell index.
|
|
7433
|
+
* @param password Document password.
|
|
7434
|
+
* @param folder Document folder.
|
|
7435
|
+
* @param storage Document storage.
|
|
7436
|
+
*/
|
|
7437
|
+
getTableCellParagraphs(name, slideIndex, shapeIndex, rowIndex, cellIndex, password = null, folder = null, storage = null) {
|
|
7438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7439
|
+
// verify required parameter 'name' is not null or undefined
|
|
7440
|
+
if (name === null || name === undefined) {
|
|
7441
|
+
throw new Error('The required parameter "name" was null or undefined when calling getTableCellParagraphs.');
|
|
7442
|
+
}
|
|
7443
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
7444
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
7445
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getTableCellParagraphs.');
|
|
7446
|
+
}
|
|
7447
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
7448
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
7449
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getTableCellParagraphs.');
|
|
7450
|
+
}
|
|
7451
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
7452
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
7453
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling getTableCellParagraphs.');
|
|
7454
|
+
}
|
|
7455
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
7456
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
7457
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling getTableCellParagraphs.');
|
|
7458
|
+
}
|
|
7459
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs";
|
|
7460
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
7461
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
7462
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
7463
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
7464
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
7465
|
+
const queryParameters = {};
|
|
7466
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7467
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7468
|
+
const requestOptions = {
|
|
7469
|
+
method: "GET",
|
|
7470
|
+
headers: {},
|
|
7471
|
+
url: localVarPath,
|
|
7472
|
+
params: queryParameters
|
|
7473
|
+
};
|
|
7474
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7475
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7476
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraphs");
|
|
7477
|
+
return Promise.resolve({ body: result, response });
|
|
7478
|
+
});
|
|
7479
|
+
}
|
|
7480
|
+
/**
|
|
7481
|
+
* Returns table cell portion.
|
|
7482
|
+
* @param name Document name.
|
|
7483
|
+
* @param slideIndex Slide index.
|
|
7484
|
+
* @param shapeIndex Shape index.
|
|
7485
|
+
* @param rowIndex Row index.
|
|
7486
|
+
* @param cellIndex Table cell index.
|
|
7487
|
+
* @param paragraphIndex Paragraph index.
|
|
7488
|
+
* @param portionIndex Portion index.
|
|
7489
|
+
* @param password Document password.
|
|
7490
|
+
* @param folder Document folder.
|
|
7491
|
+
* @param storage Document storage.
|
|
7492
|
+
*/
|
|
7493
|
+
getTableCellPortion(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
7494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7495
|
+
// verify required parameter 'name' is not null or undefined
|
|
7496
|
+
if (name === null || name === undefined) {
|
|
7497
|
+
throw new Error('The required parameter "name" was null or undefined when calling getTableCellPortion.');
|
|
7498
|
+
}
|
|
7499
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
7500
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
7501
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getTableCellPortion.');
|
|
7502
|
+
}
|
|
7503
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
7504
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
7505
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getTableCellPortion.');
|
|
7506
|
+
}
|
|
7507
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
7508
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
7509
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling getTableCellPortion.');
|
|
7510
|
+
}
|
|
7511
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
7512
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
7513
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling getTableCellPortion.');
|
|
7514
|
+
}
|
|
7515
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
7516
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
7517
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getTableCellPortion.');
|
|
7518
|
+
}
|
|
7519
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
7520
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
7521
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling getTableCellPortion.');
|
|
7522
|
+
}
|
|
7523
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}";
|
|
7524
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
7525
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
7526
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
7527
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
7528
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
7529
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
7530
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
7531
|
+
const queryParameters = {};
|
|
7532
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7533
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7534
|
+
const requestOptions = {
|
|
7535
|
+
method: "GET",
|
|
7536
|
+
headers: {},
|
|
7537
|
+
url: localVarPath,
|
|
7538
|
+
params: queryParameters
|
|
7539
|
+
};
|
|
7540
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7541
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7542
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
7543
|
+
return Promise.resolve({ body: result, response });
|
|
7544
|
+
});
|
|
7545
|
+
}
|
|
7546
|
+
/**
|
|
7547
|
+
* Returns table cell portions.
|
|
7548
|
+
* @param name Document name.
|
|
7549
|
+
* @param slideIndex Slide index.
|
|
7550
|
+
* @param shapeIndex Shape index.
|
|
7551
|
+
* @param rowIndex Row index.
|
|
7552
|
+
* @param cellIndex Table cell index.
|
|
7553
|
+
* @param paragraphIndex Paragraph index.
|
|
7554
|
+
* @param password Document password.
|
|
7555
|
+
* @param folder Document folder.
|
|
7556
|
+
* @param storage Document storage.
|
|
7557
|
+
*/
|
|
7558
|
+
getTableCellPortions(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, password = null, folder = null, storage = null) {
|
|
7559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7560
|
+
// verify required parameter 'name' is not null or undefined
|
|
7561
|
+
if (name === null || name === undefined) {
|
|
7562
|
+
throw new Error('The required parameter "name" was null or undefined when calling getTableCellPortions.');
|
|
7563
|
+
}
|
|
7564
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
7565
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
7566
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling getTableCellPortions.');
|
|
7567
|
+
}
|
|
7568
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
7569
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
7570
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling getTableCellPortions.');
|
|
7571
|
+
}
|
|
7572
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
7573
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
7574
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling getTableCellPortions.');
|
|
7575
|
+
}
|
|
7576
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
7577
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
7578
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling getTableCellPortions.');
|
|
7579
|
+
}
|
|
7580
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
7581
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
7582
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling getTableCellPortions.');
|
|
7583
|
+
}
|
|
7584
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions";
|
|
7585
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
7586
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
7587
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
7588
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
7589
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
7590
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
7591
|
+
const queryParameters = {};
|
|
7592
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7593
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7594
|
+
const requestOptions = {
|
|
7595
|
+
method: "GET",
|
|
7596
|
+
headers: {},
|
|
7597
|
+
url: localVarPath,
|
|
7598
|
+
params: queryParameters
|
|
7599
|
+
};
|
|
7600
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7601
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7602
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portions");
|
|
7603
|
+
return Promise.resolve({ body: result, response });
|
|
7604
|
+
});
|
|
7605
|
+
}
|
|
7014
7606
|
/**
|
|
7015
7607
|
* Read slide theme info.
|
|
7016
7608
|
* @param name Document name.
|
|
@@ -7389,30 +7981,78 @@ class SlidesApi {
|
|
|
7389
7981
|
});
|
|
7390
7982
|
}
|
|
7391
7983
|
/**
|
|
7392
|
-
* Merges presentations or some of their slides specified in the request parameter. Returns result file in the response.
|
|
7393
|
-
* @param files Files to merge
|
|
7394
|
-
* @param request Merge request.
|
|
7984
|
+
* Merges presentations or some of their slides specified in the request parameter. Returns result file in the response.
|
|
7985
|
+
* @param files Files to merge
|
|
7986
|
+
* @param request Merge request.
|
|
7987
|
+
* @param storage Document storage.
|
|
7988
|
+
*/
|
|
7989
|
+
mergeOnline(files = null, request = null, storage = null) {
|
|
7990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7991
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/merge";
|
|
7992
|
+
const queryParameters = {};
|
|
7993
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7994
|
+
const requestOptions = {
|
|
7995
|
+
method: "POST",
|
|
7996
|
+
url: localVarPath,
|
|
7997
|
+
data: request,
|
|
7998
|
+
responseType: 'arraybuffer',
|
|
7999
|
+
params: queryParameters
|
|
8000
|
+
};
|
|
8001
|
+
let localVarFiles = [];
|
|
8002
|
+
if (files != null) {
|
|
8003
|
+
localVarFiles = localVarFiles.concat(files);
|
|
8004
|
+
}
|
|
8005
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8006
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
8007
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
8008
|
+
return Promise.resolve({ body: result, response });
|
|
8009
|
+
});
|
|
8010
|
+
}
|
|
8011
|
+
/**
|
|
8012
|
+
* Merge table cells.
|
|
8013
|
+
* @param name Document name.
|
|
8014
|
+
* @param slideIndex Slide index.
|
|
8015
|
+
* @param shapeIndex Shape index.
|
|
8016
|
+
* @param tableCellMergeOptions Merge settings.
|
|
8017
|
+
* @param password Document password.
|
|
8018
|
+
* @param folder Document folder.
|
|
7395
8019
|
* @param storage Document storage.
|
|
7396
8020
|
*/
|
|
7397
|
-
|
|
8021
|
+
mergeTableCells(name, slideIndex, shapeIndex, tableCellMergeOptions, password = null, folder = null, storage = null) {
|
|
7398
8022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7399
|
-
|
|
8023
|
+
// verify required parameter 'name' is not null or undefined
|
|
8024
|
+
if (name === null || name === undefined) {
|
|
8025
|
+
throw new Error('The required parameter "name" was null or undefined when calling mergeTableCells.');
|
|
8026
|
+
}
|
|
8027
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
8028
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
8029
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling mergeTableCells.');
|
|
8030
|
+
}
|
|
8031
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
8032
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
8033
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling mergeTableCells.');
|
|
8034
|
+
}
|
|
8035
|
+
// verify required parameter 'tableCellMergeOptions' is not null or undefined
|
|
8036
|
+
if (tableCellMergeOptions === null || tableCellMergeOptions === undefined) {
|
|
8037
|
+
throw new Error('The required parameter "tableCellMergeOptions" was null or undefined when calling mergeTableCells.');
|
|
8038
|
+
}
|
|
8039
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/mergeCells";
|
|
8040
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
8041
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
8042
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
7400
8043
|
const queryParameters = {};
|
|
8044
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
7401
8045
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
7402
8046
|
const requestOptions = {
|
|
7403
8047
|
method: "POST",
|
|
8048
|
+
headers: {},
|
|
7404
8049
|
url: localVarPath,
|
|
7405
|
-
data:
|
|
7406
|
-
responseType: 'arraybuffer',
|
|
8050
|
+
data: tableCellMergeOptions,
|
|
7407
8051
|
params: queryParameters
|
|
7408
8052
|
};
|
|
7409
|
-
|
|
7410
|
-
if (files != null) {
|
|
7411
|
-
localVarFiles = localVarFiles.concat(files);
|
|
7412
|
-
}
|
|
7413
|
-
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
8053
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
7414
8054
|
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
7415
|
-
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "
|
|
8055
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Table");
|
|
7416
8056
|
return Promise.resolve({ body: result, response });
|
|
7417
8057
|
});
|
|
7418
8058
|
}
|
|
@@ -9687,6 +10327,76 @@ class SlidesApi {
|
|
|
9687
10327
|
return Promise.resolve({ body: result, response });
|
|
9688
10328
|
});
|
|
9689
10329
|
}
|
|
10330
|
+
/**
|
|
10331
|
+
* Split table cell.
|
|
10332
|
+
* @param name Document name.
|
|
10333
|
+
* @param slideIndex Slide index.
|
|
10334
|
+
* @param shapeIndex Shape index.
|
|
10335
|
+
* @param rowIndex Row index.
|
|
10336
|
+
* @param cellIndex Table cell index.
|
|
10337
|
+
* @param splitType Table cell split type (SplitByWidth, SplitByHeight,SplitByColSpan or SplitByRowSpan).
|
|
10338
|
+
* @param value Split value. In case of splitting by column or row span, the value must be an integer number.
|
|
10339
|
+
* @param password Document password.
|
|
10340
|
+
* @param folder Document folder.
|
|
10341
|
+
* @param storage Document storage.
|
|
10342
|
+
*/
|
|
10343
|
+
splitTableCell(name, slideIndex, shapeIndex, rowIndex, cellIndex, splitType, value, password = null, folder = null, storage = null) {
|
|
10344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10345
|
+
// verify required parameter 'name' is not null or undefined
|
|
10346
|
+
if (name === null || name === undefined) {
|
|
10347
|
+
throw new Error('The required parameter "name" was null or undefined when calling splitTableCell.');
|
|
10348
|
+
}
|
|
10349
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
10350
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
10351
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling splitTableCell.');
|
|
10352
|
+
}
|
|
10353
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
10354
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
10355
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling splitTableCell.');
|
|
10356
|
+
}
|
|
10357
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
10358
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
10359
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling splitTableCell.');
|
|
10360
|
+
}
|
|
10361
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
10362
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
10363
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling splitTableCell.');
|
|
10364
|
+
}
|
|
10365
|
+
// verify required parameter 'splitType' is not null or undefined
|
|
10366
|
+
if (splitType === null || splitType === undefined) {
|
|
10367
|
+
throw new Error('The required parameter "splitType" was null or undefined when calling splitTableCell.');
|
|
10368
|
+
}
|
|
10369
|
+
// verify value of enum parameter 'splitType' is valid
|
|
10370
|
+
if (!Object.keys(model.TableCellSplitType).filter(i => model.TableCellSplitType[i].toLowerCase() == splitType.toString().toLowerCase()).length) {
|
|
10371
|
+
throw new Error('Invalid value for splitType: ' + splitType + '. Must be one of the following: ' + Object.keys(model.TableCellSplitType).map(key => model.TableCellSplitType[key]).join());
|
|
10372
|
+
}
|
|
10373
|
+
// verify required parameter 'value' is not null or undefined
|
|
10374
|
+
if (value === null || value === undefined) {
|
|
10375
|
+
throw new Error('The required parameter "value" was null or undefined when calling splitTableCell.');
|
|
10376
|
+
}
|
|
10377
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/{splitType}/{value}";
|
|
10378
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10379
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
10380
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
10381
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
10382
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
10383
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "splitType", objectSerializer_1.ObjectSerializer.toString(splitType));
|
|
10384
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "value", objectSerializer_1.ObjectSerializer.toString(value));
|
|
10385
|
+
const queryParameters = {};
|
|
10386
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10387
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10388
|
+
const requestOptions = {
|
|
10389
|
+
method: "POST",
|
|
10390
|
+
headers: {},
|
|
10391
|
+
url: localVarPath,
|
|
10392
|
+
params: queryParameters
|
|
10393
|
+
};
|
|
10394
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10395
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10396
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Table");
|
|
10397
|
+
return Promise.resolve({ body: result, response });
|
|
10398
|
+
});
|
|
10399
|
+
}
|
|
9690
10400
|
/**
|
|
9691
10401
|
* Check if storage exists
|
|
9692
10402
|
* @param storageName Storage name
|
|
@@ -10636,6 +11346,258 @@ class SlidesApi {
|
|
|
10636
11346
|
return Promise.resolve({ body: result, response });
|
|
10637
11347
|
});
|
|
10638
11348
|
}
|
|
11349
|
+
/**
|
|
11350
|
+
* Update the table cell.
|
|
11351
|
+
* @param name Document name.
|
|
11352
|
+
* @param slideIndex Slide index.
|
|
11353
|
+
* @param shapeIndex Shape index.
|
|
11354
|
+
* @param rowIndex Row index.
|
|
11355
|
+
* @param cellIndex Table cell index.
|
|
11356
|
+
* @param dto Table cell data.
|
|
11357
|
+
* @param password Document password.
|
|
11358
|
+
* @param folder Document folder.
|
|
11359
|
+
* @param storage Document storage.
|
|
11360
|
+
*/
|
|
11361
|
+
updateTableCell(name, slideIndex, shapeIndex, rowIndex, cellIndex, dto, password = null, folder = null, storage = null) {
|
|
11362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11363
|
+
// verify required parameter 'name' is not null or undefined
|
|
11364
|
+
if (name === null || name === undefined) {
|
|
11365
|
+
throw new Error('The required parameter "name" was null or undefined when calling updateTableCell.');
|
|
11366
|
+
}
|
|
11367
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
11368
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
11369
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling updateTableCell.');
|
|
11370
|
+
}
|
|
11371
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
11372
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
11373
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling updateTableCell.');
|
|
11374
|
+
}
|
|
11375
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
11376
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
11377
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling updateTableCell.');
|
|
11378
|
+
}
|
|
11379
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
11380
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
11381
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling updateTableCell.');
|
|
11382
|
+
}
|
|
11383
|
+
// verify required parameter 'dto' is not null or undefined
|
|
11384
|
+
if (dto === null || dto === undefined) {
|
|
11385
|
+
throw new Error('The required parameter "dto" was null or undefined when calling updateTableCell.');
|
|
11386
|
+
}
|
|
11387
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}";
|
|
11388
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11389
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
11390
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
11391
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
11392
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
11393
|
+
const queryParameters = {};
|
|
11394
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
11395
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
11396
|
+
const requestOptions = {
|
|
11397
|
+
method: "PUT",
|
|
11398
|
+
headers: {},
|
|
11399
|
+
url: localVarPath,
|
|
11400
|
+
data: dto,
|
|
11401
|
+
params: queryParameters
|
|
11402
|
+
};
|
|
11403
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
11404
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
11405
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "TableCell");
|
|
11406
|
+
return Promise.resolve({ body: result, response });
|
|
11407
|
+
});
|
|
11408
|
+
}
|
|
11409
|
+
/**
|
|
11410
|
+
* Updates table cell paragraph.
|
|
11411
|
+
* @param name Document name.
|
|
11412
|
+
* @param slideIndex Slide index.
|
|
11413
|
+
* @param shapeIndex Shape index.
|
|
11414
|
+
* @param rowIndex Row index.
|
|
11415
|
+
* @param cellIndex Table cell index.
|
|
11416
|
+
* @param paragraphIndex Paragraph index.
|
|
11417
|
+
* @param dto Paragraph DTO.
|
|
11418
|
+
* @param password Document password.
|
|
11419
|
+
* @param folder Document folder.
|
|
11420
|
+
* @param storage Document storage.
|
|
11421
|
+
*/
|
|
11422
|
+
updateTableCellParagraph(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, dto, password = null, folder = null, storage = null) {
|
|
11423
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11424
|
+
// verify required parameter 'name' is not null or undefined
|
|
11425
|
+
if (name === null || name === undefined) {
|
|
11426
|
+
throw new Error('The required parameter "name" was null or undefined when calling updateTableCellParagraph.');
|
|
11427
|
+
}
|
|
11428
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
11429
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
11430
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling updateTableCellParagraph.');
|
|
11431
|
+
}
|
|
11432
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
11433
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
11434
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling updateTableCellParagraph.');
|
|
11435
|
+
}
|
|
11436
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
11437
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
11438
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling updateTableCellParagraph.');
|
|
11439
|
+
}
|
|
11440
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
11441
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
11442
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling updateTableCellParagraph.');
|
|
11443
|
+
}
|
|
11444
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
11445
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
11446
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling updateTableCellParagraph.');
|
|
11447
|
+
}
|
|
11448
|
+
// verify required parameter 'dto' is not null or undefined
|
|
11449
|
+
if (dto === null || dto === undefined) {
|
|
11450
|
+
throw new Error('The required parameter "dto" was null or undefined when calling updateTableCellParagraph.');
|
|
11451
|
+
}
|
|
11452
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}";
|
|
11453
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11454
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
11455
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
11456
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
11457
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
11458
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
11459
|
+
const queryParameters = {};
|
|
11460
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
11461
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
11462
|
+
const requestOptions = {
|
|
11463
|
+
method: "PUT",
|
|
11464
|
+
headers: {},
|
|
11465
|
+
url: localVarPath,
|
|
11466
|
+
data: dto,
|
|
11467
|
+
params: queryParameters
|
|
11468
|
+
};
|
|
11469
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
11470
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
11471
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Paragraph");
|
|
11472
|
+
return Promise.resolve({ body: result, response });
|
|
11473
|
+
});
|
|
11474
|
+
}
|
|
11475
|
+
/**
|
|
11476
|
+
* Updates table cell portion.
|
|
11477
|
+
* @param name Document name.
|
|
11478
|
+
* @param slideIndex Slide index.
|
|
11479
|
+
* @param shapeIndex Shape index.
|
|
11480
|
+
* @param rowIndex Row index.
|
|
11481
|
+
* @param cellIndex Table cell index.
|
|
11482
|
+
* @param paragraphIndex Paragraph index.
|
|
11483
|
+
* @param portionIndex Portion index.
|
|
11484
|
+
* @param dto Portion DTO.
|
|
11485
|
+
* @param password Document password.
|
|
11486
|
+
* @param folder Document folder.
|
|
11487
|
+
* @param storage Document storage.
|
|
11488
|
+
*/
|
|
11489
|
+
updateTableCellPortion(name, slideIndex, shapeIndex, rowIndex, cellIndex, paragraphIndex, portionIndex, dto, password = null, folder = null, storage = null) {
|
|
11490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11491
|
+
// verify required parameter 'name' is not null or undefined
|
|
11492
|
+
if (name === null || name === undefined) {
|
|
11493
|
+
throw new Error('The required parameter "name" was null or undefined when calling updateTableCellPortion.');
|
|
11494
|
+
}
|
|
11495
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
11496
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
11497
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11498
|
+
}
|
|
11499
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
11500
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
11501
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11502
|
+
}
|
|
11503
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
11504
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
11505
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11506
|
+
}
|
|
11507
|
+
// verify required parameter 'cellIndex' is not null or undefined
|
|
11508
|
+
if (cellIndex === null || cellIndex === undefined) {
|
|
11509
|
+
throw new Error('The required parameter "cellIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11510
|
+
}
|
|
11511
|
+
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
11512
|
+
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
11513
|
+
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11514
|
+
}
|
|
11515
|
+
// verify required parameter 'portionIndex' is not null or undefined
|
|
11516
|
+
if (portionIndex === null || portionIndex === undefined) {
|
|
11517
|
+
throw new Error('The required parameter "portionIndex" was null or undefined when calling updateTableCellPortion.');
|
|
11518
|
+
}
|
|
11519
|
+
// verify required parameter 'dto' is not null or undefined
|
|
11520
|
+
if (dto === null || dto === undefined) {
|
|
11521
|
+
throw new Error('The required parameter "dto" was null or undefined when calling updateTableCellPortion.');
|
|
11522
|
+
}
|
|
11523
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}";
|
|
11524
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11525
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
11526
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
11527
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
11528
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "cellIndex", objectSerializer_1.ObjectSerializer.toString(cellIndex));
|
|
11529
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
11530
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
11531
|
+
const queryParameters = {};
|
|
11532
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
11533
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
11534
|
+
const requestOptions = {
|
|
11535
|
+
method: "PUT",
|
|
11536
|
+
headers: {},
|
|
11537
|
+
url: localVarPath,
|
|
11538
|
+
data: dto,
|
|
11539
|
+
params: queryParameters
|
|
11540
|
+
};
|
|
11541
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
11542
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
11543
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Portion");
|
|
11544
|
+
return Promise.resolve({ body: result, response });
|
|
11545
|
+
});
|
|
11546
|
+
}
|
|
11547
|
+
/**
|
|
11548
|
+
* Update the table row.
|
|
11549
|
+
* @param name Document name.
|
|
11550
|
+
* @param slideIndex Slide index.
|
|
11551
|
+
* @param shapeIndex Shape index.
|
|
11552
|
+
* @param rowIndex Row index.
|
|
11553
|
+
* @param dto Table cell data.
|
|
11554
|
+
* @param password Document password.
|
|
11555
|
+
* @param folder Document folder.
|
|
11556
|
+
* @param storage Document storage.
|
|
11557
|
+
*/
|
|
11558
|
+
updateTableRow(name, slideIndex, shapeIndex, rowIndex, dto, password = null, folder = null, storage = null) {
|
|
11559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11560
|
+
// verify required parameter 'name' is not null or undefined
|
|
11561
|
+
if (name === null || name === undefined) {
|
|
11562
|
+
throw new Error('The required parameter "name" was null or undefined when calling updateTableRow.');
|
|
11563
|
+
}
|
|
11564
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
11565
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
11566
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling updateTableRow.');
|
|
11567
|
+
}
|
|
11568
|
+
// verify required parameter 'shapeIndex' is not null or undefined
|
|
11569
|
+
if (shapeIndex === null || shapeIndex === undefined) {
|
|
11570
|
+
throw new Error('The required parameter "shapeIndex" was null or undefined when calling updateTableRow.');
|
|
11571
|
+
}
|
|
11572
|
+
// verify required parameter 'rowIndex' is not null or undefined
|
|
11573
|
+
if (rowIndex === null || rowIndex === undefined) {
|
|
11574
|
+
throw new Error('The required parameter "rowIndex" was null or undefined when calling updateTableRow.');
|
|
11575
|
+
}
|
|
11576
|
+
// verify required parameter 'dto' is not null or undefined
|
|
11577
|
+
if (dto === null || dto === undefined) {
|
|
11578
|
+
throw new Error('The required parameter "dto" was null or undefined when calling updateTableRow.');
|
|
11579
|
+
}
|
|
11580
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}";
|
|
11581
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
11582
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
11583
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
11584
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "rowIndex", objectSerializer_1.ObjectSerializer.toString(rowIndex));
|
|
11585
|
+
const queryParameters = {};
|
|
11586
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
11587
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
11588
|
+
const requestOptions = {
|
|
11589
|
+
method: "PUT",
|
|
11590
|
+
headers: {},
|
|
11591
|
+
url: localVarPath,
|
|
11592
|
+
data: dto,
|
|
11593
|
+
params: queryParameters
|
|
11594
|
+
};
|
|
11595
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
11596
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
11597
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "TableRow");
|
|
11598
|
+
return Promise.resolve({ body: result, response });
|
|
11599
|
+
});
|
|
11600
|
+
}
|
|
10639
11601
|
/**
|
|
10640
11602
|
* Upload file
|
|
10641
11603
|
* @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|