@@ -2896,7 +2896,7 @@ export class CellsApi {
28962896 * Get worksheet list object info by index.
28972897 * @param requestObj contains request parameters
28982898 */
2899- public async cellsListObjectsGetWorksheetListObject(requestObj: model.CellsListObjects_GetWorksheetListObjectRequest): Promise<{response: http.ClientResponse, body: model.ListObjectResponse }> {
2899+ public async cellsListObjectsGetWorksheetListObject(requestObj: model.CellsListObjects_GetWorksheetListObjectRequest): Promise<{response: http.ClientResponse, body: Buffer }> {
29002900 if (requestObj === null || requestObj === undefined) {
29012901 throw new Error('Required parameter "requestObj" was null or undefined when calling cellsListObjectsGetWorksheetListObject.');
29022902 }
@@ -2922,6 +2922,7 @@ export class CellsApi {
29222922 throw new Error('Required parameter "requestObj.listobjectindex" was null or undefined when calling cellsListObjectsGetWorksheetListObject.');
29232923 }
29242924
2925+ localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "format", requestObj.format);
29252926 localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
29262927 localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
29272928 const requestOptions: request.Options = {
@@ -2932,10 +2933,11 @@ export class CellsApi {
29322933 };
29332934
29342935 const response = await invokeApiMethod(requestOptions, this.configuration);
2935- const result = ObjectSerializer.deserialize(response.body, "ListObjectResponse ");
2936+ const result = ObjectSerializer.deserialize(response.body, "Buffer ");
29362937 return Promise.resolve({body: result, response});
29372938 }
29382939
2940+
29392941 /**
29402942 * Get worksheet listobjects info.
29412943 * @param requestObj contains request parameters
@@ -11733,6 +11735,53 @@ export class LiteCellsApi {
1173311735 return Promise.resolve({body: result, response});
1173411736 }
1173511737
11738+ /**
11739+ *
11740+ * @param requestObj contains request parameters
11741+ */
11742+ public async postImport(requestObj: model.PostImportRequest): Promise<{response: http.ClientResponse, body: model.FilesResult}> {
11743+ if (requestObj === null || requestObj === undefined) {
11744+ throw new Error('Required parameter "requestObj" was null or undefined when calling postImport.');
11745+ }
11746+
11747+ let localVarPath = this.configuration.getApiBaseUrl() + "/cells/import";
11748+ const queryParameters: any = {};
11749+ const formParams: any = {};
11750+
11751+ // verify required parameter 'requestObj.file' is not null or undefined
11752+ if (requestObj.file === null || requestObj.file === undefined) {
11753+ throw new Error('Required parameter "requestObj.file" was null or undefined when calling postImport.');
11754+ }
11755+
11756+ // verify required parameter 'requestObj.importOption' is not null or undefined
11757+ if (requestObj.importOption === null || requestObj.importOption === undefined) {
11758+ throw new Error('Required parameter "requestObj.objectType" was null or undefined when calling postImport.');
11759+ }
11760+
11761+
11762+ if (requestObj.file !== undefined) {
11763+ for (var key in requestObj.file){
11764+ formParams[key] = requestObj.file[key];
11765+ }
11766+ if((requestObj.importOption !== null))
11767+ {
11768+ formParams["documentProperties"] = JSON.stringify(requestObj.importOption);
11769+ }
11770+ }
11771+
11772+ const requestOptions: request.Options = {
11773+ method: "POST",
11774+ qs: queryParameters,
11775+ uri: localVarPath,
11776+ json: true,
11777+ };
11778+
11779+ (requestOptions as any).formData = formParams;
11780+ const response = await invokeApiMethod(requestOptions, this.configuration);
11781+ const result = ObjectSerializer.deserialize(response.body, "FilesResult");
11782+ return Promise.resolve({body: result, response});
11783+ }
11784+
1173611785 /**
1173711786 *
1173811787 * @param requestObj contains request parameters
0 commit comments