@@ -11971,6 +11971,116 @@ export class CellsApi {
1197111971 return Promise.resolve({ body: result, response });
1197211972 }
1197311973
11974+ /**
11975+ *
11976+ * @param requestObj contains request parameters
11977+ */
11978+ public async postConvertWorkbookToPptx(requestObj: model.PostConvertWorkbookToPptxRequest): Promise<{ response: http.ClientResponse, body: model.FileInfo }> {
11979+ if (requestObj === null || requestObj === undefined) {
11980+ throw new Error('Required parameter "requestObj" was null or undefined when calling postConvertWorkbookToPptx.');
11981+ }
11982+
11983+ let localVarPath = this.configuration.getApiBaseUrl() + "/cells/convert/pptx";
11984+ const queryParameters: any = {};
11985+ const formParams: any = {};
11986+
11987+ // verify required parameter 'requestObj.file' is not null or undefined
11988+ if (requestObj.file === null || requestObj.file === undefined) {
11989+ throw new Error('Required parameter "requestObj.file" was null or undefined when calling postConvertWorkbookToPptx.');
11990+ }
11991+
11992+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", requestObj.password);
11993+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "checkExcelRestriction", requestObj.checkExcelRestriction);
11994+ if (requestObj.file !== undefined) {
11995+ formParams.file = requestObj.file;
11996+ }
11997+
11998+ const requestOptions: request.Options = {
11999+ method: "POST",
12000+ qs: queryParameters,
12001+ uri: localVarPath,
12002+ json: true,
12003+ };
12004+
12005+ (requestOptions as any).formData = formParams;
12006+ const response = await invokeApiMethod(requestOptions, this.configuration);
12007+ const result = ObjectSerializer.deserialize(response.body, "FileInfo");
12008+ return Promise.resolve({ body: result, response });
12009+ }
12010+
12011+ /**
12012+ *
12013+ * @param requestObj contains request parameters
12014+ */
12015+ public async postConvertWorkbookToHtml(requestObj: model.PostConvertWorkbookToHtmlRequest): Promise<{ response: http.ClientResponse, body: model.FileInfo }> {
12016+ if (requestObj === null || requestObj === undefined) {
12017+ throw new Error('Required parameter "requestObj" was null or undefined when calling postConvertWorkbookToHtml.');
12018+ }
12019+
12020+ let localVarPath = this.configuration.getApiBaseUrl() + "/cells/convert/html";
12021+ const queryParameters: any = {};
12022+ const formParams: any = {};
12023+
12024+ // verify required parameter 'requestObj.file' is not null or undefined
12025+ if (requestObj.file === null || requestObj.file === undefined) {
12026+ throw new Error('Required parameter "requestObj.file" was null or undefined when calling postConvertWorkbookToHtml.');
12027+ }
12028+
12029+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", requestObj.password);
12030+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "checkExcelRestriction", requestObj.checkExcelRestriction);
12031+ if (requestObj.file !== undefined) {
12032+ formParams.file = requestObj.file;
12033+ }
12034+
12035+ const requestOptions: request.Options = {
12036+ method: "POST",
12037+ qs: queryParameters,
12038+ uri: localVarPath,
12039+ json: true,
12040+ };
12041+
12042+ (requestOptions as any).formData = formParams;
12043+ const response = await invokeApiMethod(requestOptions, this.configuration);
12044+ const result = ObjectSerializer.deserialize(response.body, "FileInfo");
12045+ return Promise.resolve({ body: result, response });
12046+ }
12047+
12048+ /**
12049+ *
12050+ * @param requestObj contains request parameters
12051+ */
12052+ public async postConvertWorkbookToMarkdown(requestObj: model.PostConvertWorkbookToMarkdownRequest): Promise<{ response: http.ClientResponse, body: model.FileInfo }> {
12053+ if (requestObj === null || requestObj === undefined) {
12054+ throw new Error('Required parameter "requestObj" was null or undefined when calling postConvertWorkbookToMarkdown.');
12055+ }
12056+
12057+ let localVarPath = this.configuration.getApiBaseUrl() + "/cells/convert/markdown";
12058+ const queryParameters: any = {};
12059+ const formParams: any = {};
12060+
12061+ // verify required parameter 'requestObj.file' is not null or undefined
12062+ if (requestObj.file === null || requestObj.file === undefined) {
12063+ throw new Error('Required parameter "requestObj.file" was null or undefined when calling postConvertWorkbookToMarkdown.');
12064+ }
12065+
12066+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", requestObj.password);
12067+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "checkExcelRestriction", requestObj.checkExcelRestriction);
12068+ if (requestObj.file !== undefined) {
12069+ formParams.file = requestObj.file;
12070+ }
12071+
12072+ const requestOptions: request.Options = {
12073+ method: "POST",
12074+ qs: queryParameters,
12075+ uri: localVarPath,
12076+ json: true,
12077+ };
12078+
12079+ (requestOptions as any).formData = formParams;
12080+ const response = await invokeApiMethod(requestOptions, this.configuration);
12081+ const result = ObjectSerializer.deserialize(response.body, "FileInfo");
12082+ return Promise.resolve({ body: result, response });
12083+ }
1197412084 /**
1197512085 * Check if storage exists
1197612086 * @param requestObj contains request parameters
0 commit comments