Skip to content

Commit 9fc212c

Browse files
committed
Add repair api.
1 parent b584a0b commit 9fc212c

File tree

4 files changed

+61
-9
lines changed

4 files changed

+61
-9
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![npm](https://img.shields.io/npm/v/asposecellscloud) ![node-current](https://img.shields.io/node/v/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-node)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-node/23.6)
1+
![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![npm](https://img.shields.io/npm/v/asposecellscloud) ![node-current](https://img.shields.io/node/v/asposecellscloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-node)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-node/23.7)
22

33
# Process Excel® Files in the Cloud with Node.js
44

@@ -20,13 +20,9 @@
2020
- Fetch the required shape from worksheet.
2121
- Leverage the power of named ranges.
2222

23-
## Feature & Enhancements in Version 23.6
23+
## Feature & Enhancements in Version 23.7
2424

25-
- Support to batch lock multi-files.
26-
- Support to batch unlock multi-files.
27-
- Support to protect lock multi-files.
28-
- Support to split lock multi-files.
29-
- Fix put document property api.
25+
- Support to repair api.
3026

3127
## Read & Write Spreadsheet Formats
3228

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposecellscloud",
3-
"version": "23.6.0",
3+
"version": "23.7.0",
44
"description": "Aspose.Cells Cloud SDK for Node.js",
55
"keywords": [
66
"Aspose",
@@ -19,7 +19,7 @@
1919
"main": "dist/api.js",
2020
"types": "dist/api.d.ts",
2121
"scripts": {
22-
"test": "cross-env JUNIT_REPORT_PATH=integration_tests_result.xml mocha -r ts-node/register test/**/tests_one.ts --timeout 250000 --reporter mocha-jenkins-reporter",
22+
"test": "cross-env JUNIT_REPORT_PATH=integration_tests_result.xml mocha -r ts-node/register test/**/*.ts --timeout 250000 --reporter mocha-jenkins-reporter",
2323
"test-jenkins": "cross-env JUNIT_REPORT_PATH=reports/integration_tests_result.xml mocha -r ts-node/register test/**/*.ts --timeout 250000 --reporter mocha-jenkins-reporter",
2424
"lint": "tslint src/{,**/}*.ts test/{,**/}*.ts -t verbose --project ./tsconfig.json",
2525
"cucumber": "cucumber-js ./bdd/features -r ./dist/bdd/steps",

src/api.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,20 @@ export class CellsApi {
20622062
const result = ObjectSerializer.deserialize(response.body, "FilesResult");
20632063
return Promise.resolve({body: result, response});
20642064
}
2065+
/// <summary>
2066+
/// </summary>
2067+
/// <param name="request">Request. <see cref="PostRepairRequest" /></param>
2068+
public async postRepair(requestObj:model.PostRepairRequest ): Promise<{response: http.ClientResponse, body: model.FilesResult}>
2069+
{
2070+
if (requestObj === null || requestObj === undefined) {
2071+
throw new Error('Required parameter "requestObj" was null or undefined when calling postRepair.');
2072+
}
20652073

2074+
const requestOptions = await requestObj.createRequestOptions(this.configuration);
2075+
const response = await invokeApiMethod(requestOptions, this.configuration);
2076+
const result = ObjectSerializer.deserialize(response.body, "FilesResult");
2077+
return Promise.resolve({body: result, response});
2078+
}
20662079
/// <summary>
20672080
/// </summary>
20682081
/// <param name="request">Request. <see cref="PostRotateRequest" /></param>

src/model/model.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34778,6 +34778,49 @@ export class PostReverseRequest {
3477834778
}
3477934779

3478034780
}
34781+
export class PostRepairRequest {
34782+
/// File to upload
34783+
public file: any;
34784+
34785+
public format: string;
34786+
/// extend query parameter
34787+
public extendQueryParameterMap: any;
34788+
34789+
public constructor(init?: Partial< PostRepairRequest >) {
34790+
Object.assign(this, init);
34791+
}
34792+
34793+
public async createRequestOptions(configuration: Configuration) : Promise<request.Options> {
34794+
34795+
let localVarPath = configuration.getApiBaseUrl() + "/cells/repair";
34796+
const queryParameters: any = {};
34797+
const formParams: any = {};
34798+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "format", this.format);
34799+
if(this.extendQueryParameterMap !== undefined){
34800+
for (var key in this.extendQueryParameterMap){
34801+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, key, this.extendQueryParameterMap[key]);
34802+
}
34803+
}
34804+
if (this.file !== undefined) {
34805+
for (var key in this.file){
34806+
formParams[key] = this.file[key];
34807+
}
34808+
}
34809+
34810+
const requestOptions: request.Options = {
34811+
method: "POST",
34812+
qs: queryParameters,
34813+
uri: localVarPath,
34814+
json: true,
34815+
};
34816+
34817+
(requestOptions as any).formData = formParams;
34818+
return Promise.resolve(requestOptions);
34819+
34820+
}
34821+
34822+
}
34823+
3478134824
/// Reverse rows or columns of Excel files, save as kinds of format files.
3478234825
export class PostRotateRequest {
3478334826
/// File to upload

0 commit comments

Comments
 (0)