Skip to content

Commit a972a43

Browse files
committed
Release Aspose.Cells Cloud SDK 21.5
1 parent 1abd7e4 commit a972a43

File tree

5 files changed

+182
-30
lines changed

5 files changed

+182
-30
lines changed

README.md

Lines changed: 6 additions & 4 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/21.1)
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/21.5)
22

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

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

23-
## Feature & Enhancements in Version 21.1
23+
## Feature & Enhancements in Version 21.5
24+
25+
- Support autofit columns for workbook and worksheet.
26+
- Improve add and post row/column APIs.
27+
- Improve Task APIs.
2428

25-
- Support to convert worksheet on task API.
26-
- Support to add and delete cell or range in worksheet.
2729

2830
## Read & Write Spreadsheet Formats
2931

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": "21.1.0",
3+
"version": "21.5.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": "mocha -r ts-node/register test/**/*.ts --timeout 250000 --reporter mocha-jenkins-reporter",
22+
"test": "cross-env JUNIT_REPORT_PATH=test_report.xml mocha -r ts-node/register test/**/*.ts --timeout 250000 --reporter mocha-jenkins-reporter",
2323
"test-jenkins": "cross-env JUNIT_REPORT_PATH=reports/test_report.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: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33

4-
* Copyright (c) 2018 Aspose Pty Ltd
4+
* Copyright (c) 2021 Aspose Pty Ltd
55

66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -2054,7 +2054,7 @@ export class CellsApi {
20542054
* Delete worksheet columns.
20552055
* @param requestObj contains request parameters
20562056
*/
2057-
public async cellsDeleteWorksheetColumns(requestObj: model.Cells_DeleteWorksheetColumnsRequest): Promise<{response: http.ClientResponse, body: model.ColumnsResponse}> {
2057+
public async cellsDeleteWorksheetColumns(requestObj: model.Cells_DeleteWorksheetColumnsRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
20582058
if (requestObj === null || requestObj === undefined) {
20592059
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsDeleteWorksheetColumns.');
20602060
}
@@ -2102,7 +2102,7 @@ export class CellsApi {
21022102
};
21032103

21042104
const response = await invokeApiMethod(requestOptions, this.configuration);
2105-
const result = ObjectSerializer.deserialize(response.body, "ColumnsResponse");
2105+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
21062106
return Promise.resolve({body: result, response});
21072107
}
21082108

@@ -6241,7 +6241,7 @@ export class CellsApi {
62416241
* Set worksheet column width.
62426242
* @param requestObj contains request parameters
62436243
*/
6244-
public async cellsPostSetWorksheetColumnWidth(requestObj: model.Cells_PostSetWorksheetColumnWidthRequest): Promise<{response: http.ClientResponse, body: model.ColumnResponse}> {
6244+
public async cellsPostSetWorksheetColumnWidth(requestObj: model.Cells_PostSetWorksheetColumnWidthRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
62456245
if (requestObj === null || requestObj === undefined) {
62466246
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsPostSetWorksheetColumnWidth.');
62476247
}
@@ -6283,7 +6283,7 @@ export class CellsApi {
62836283
};
62846284

62856285
const response = await invokeApiMethod(requestOptions, this.configuration);
6286-
const result = ObjectSerializer.deserialize(response.body, "ColumnResponse");
6286+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
62876287
return Promise.resolve({body: result, response});
62886288
}
62896289

@@ -6584,7 +6584,7 @@ export class CellsApi {
65846584
* Update worksheet row.
65856585
* @param requestObj contains request parameters
65866586
*/
6587-
public async cellsPostUpdateWorksheetRow(requestObj: model.Cells_PostUpdateWorksheetRowRequest): Promise<{response: http.ClientResponse, body: model.RowResponse}> {
6587+
public async cellsPostUpdateWorksheetRow(requestObj: model.Cells_PostUpdateWorksheetRowRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
65886588
if (requestObj === null || requestObj === undefined) {
65896589
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsPostUpdateWorksheetRow.');
65906590
}
@@ -6621,7 +6621,7 @@ export class CellsApi {
66216621
};
66226622

66236623
const response = await invokeApiMethod(requestOptions, this.configuration);
6624-
const result = ObjectSerializer.deserialize(response.body, "RowResponse");
6624+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
66256625
return Promise.resolve({body: result, response});
66266626
}
66276627

@@ -6979,7 +6979,7 @@ export class CellsApi {
69796979
* Insert worksheet columns.
69806980
* @param requestObj contains request parameters
69816981
*/
6982-
public async cellsPutInsertWorksheetColumns(requestObj: model.Cells_PutInsertWorksheetColumnsRequest): Promise<{response: http.ClientResponse, body: model.ColumnsResponse}> {
6982+
public async cellsPutInsertWorksheetColumns(requestObj: model.Cells_PutInsertWorksheetColumnsRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
69836983
if (requestObj === null || requestObj === undefined) {
69846984
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsPutInsertWorksheetColumns.');
69856985
}
@@ -7022,15 +7022,15 @@ export class CellsApi {
70227022
};
70237023

70247024
const response = await invokeApiMethod(requestOptions, this.configuration);
7025-
const result = ObjectSerializer.deserialize(response.body, "ColumnsResponse");
7025+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
70267026
return Promise.resolve({body: result, response});
70277027
}
70287028

70297029
/**
70307030
* Insert new worksheet row.
70317031
* @param requestObj contains request parameters
70327032
*/
7033-
public async cellsPutInsertWorksheetRow(requestObj: model.Cells_PutInsertWorksheetRowRequest): Promise<{response: http.ClientResponse, body: model.RowResponse}> {
7033+
public async cellsPutInsertWorksheetRow(requestObj: model.Cells_PutInsertWorksheetRowRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
70347034
if (requestObj === null || requestObj === undefined) {
70357035
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsPutInsertWorksheetRow.');
70367036
}
@@ -7066,7 +7066,7 @@ export class CellsApi {
70667066
};
70677067

70687068
const response = await invokeApiMethod(requestOptions, this.configuration);
7069-
const result = ObjectSerializer.deserialize(response.body, "RowResponse");
7069+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
70707070
return Promise.resolve({body: result, response});
70717071
}
70727072

@@ -8680,6 +8680,41 @@ export class CellsApi {
86808680
return Promise.resolve({body: result, response});
86818681
}
86828682

8683+
/**
8684+
* Autofit workbook columns.
8685+
* @param requestObj contains request parameters
8686+
*/
8687+
public async cellsWorkbookPostAutofitWorkbookColumns(requestObj: model.CellsWorkbook_PostAutofitWorkbookColumnsRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
8688+
if (requestObj === null || requestObj === undefined) {
8689+
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsWorkbookPostAutofitWorkbookColumns.');
8690+
}
8691+
8692+
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/autofitcolumns"
8693+
.replace("{" + "name" + "}", String(requestObj.name));
8694+
const queryParameters: any = {};
8695+
8696+
// verify required parameter 'requestObj.name' is not null or undefined
8697+
if (requestObj.name === null || requestObj.name === undefined) {
8698+
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsWorkbookPostAutofitWorkbookColumns.');
8699+
}
8700+
8701+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "startColumn", requestObj.startColumn);
8702+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "endColumn", requestObj.endColumn);
8703+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
8704+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
8705+
const requestOptions: request.Options = {
8706+
method: "POST",
8707+
qs: queryParameters,
8708+
uri: localVarPath,
8709+
json: true,
8710+
body: (requestObj.autoFitterOptions == null) ? "" : ObjectSerializer.serialize(requestObj.autoFitterOptions, requestObj.autoFitterOptions.constructor.name === "Object" ? "AutoFitterOptions" : requestObj.autoFitterOptions.constructor.name),
8711+
};
8712+
8713+
const response = await invokeApiMethod(requestOptions, this.configuration);
8714+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
8715+
return Promise.resolve({body: result, response});
8716+
}
8717+
86838718
/**
86848719
* Autofit workbook rows.
86858720
* @param requestObj contains request parameters
@@ -9092,16 +9127,16 @@ export class CellsApi {
90929127
const queryParameters: any = {};
90939128
const formParams: any = {};
90949129

9095-
// verify required parameter 'requestObj.workbook' is not null or undefined
9096-
if (requestObj.workbook === null || requestObj.workbook === undefined) {
9097-
throw new Error('Required parameter "requestObj.workbook" was null or undefined when calling cellsWorkbookPutConvertWorkbook.');
9130+
// verify required parameter 'requestObj.file' is not null or undefined
9131+
if (requestObj.file === null || requestObj.file === undefined) {
9132+
throw new Error('Required parameter "requestObj.file" was null or undefined when calling cellsWorkbookPutConvertWorkbook.');
90989133
}
90999134

91009135
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "format", requestObj.format);
91019136
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", requestObj.password);
91029137
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outPath", requestObj.outPath);
9103-
if (requestObj.workbook !== undefined) {
9104-
formParams.workbook = requestObj.workbook;
9138+
if (requestObj.file !== undefined) {
9139+
formParams.File = requestObj.file;
91059140
}
91069141

91079142
const requestOptions: request.Options = {

src/model/model.ts

Lines changed: 94 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33

4-
* Copyright (c) 2018 Aspose Pty Ltd
4+
* Copyright (c) 2021 Aspose Pty Ltd
55

66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -7556,8 +7556,8 @@ export class ChartOperateParameter extends OperateParameter {
75567556
*/
75577557
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
75587558
{
7559-
name: "string",
7560-
baseName: "string",
7559+
name: "title",
7560+
baseName: "Title",
75617561
type: "string",
75627562
},
75637563
{
@@ -7608,7 +7608,7 @@ export class ChartOperateParameter extends OperateParameter {
76087608
return super.getAttributeTypeMap().concat(ChartOperateParameter.attributeTypeMap);
76097609
}
76107610

7611-
public string: string;
7611+
public title: string;
76127612

76137613
public area: string;
76147614

@@ -13785,6 +13785,54 @@ export class WorkbookSettingsResponse extends CellsCloudResponse {
1378513785
}
1378613786
}
1378713787

13788+
export class WorksheetOperateParameter extends OperateParameter {
13789+
13790+
/**
13791+
* Attribute type map
13792+
*/
13793+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
13794+
{
13795+
name: "name",
13796+
baseName: "Name",
13797+
type: "string",
13798+
},
13799+
{
13800+
name: "sheetType",
13801+
baseName: "SheetType",
13802+
type: "string",
13803+
},
13804+
{
13805+
name: "newName",
13806+
baseName: "NewName",
13807+
type: "string",
13808+
},
13809+
{
13810+
name: "movingRequest",
13811+
baseName: "MovingRequest",
13812+
type: "WorksheetMovingRequest",
13813+
} ];
13814+
13815+
/**
13816+
* Returns attribute type map
13817+
*/
13818+
public static getAttributeTypeMap() {
13819+
return super.getAttributeTypeMap().concat(WorksheetOperateParameter.attributeTypeMap);
13820+
}
13821+
13822+
public name: string;
13823+
13824+
public sheetType: string;
13825+
13826+
public newName: string;
13827+
13828+
public movingRequest: WorksheetMovingRequest;
13829+
13830+
public constructor(init?: Partial<WorksheetOperateParameter>) {
13831+
super(init);
13832+
Object.assign(this, init);
13833+
}
13834+
}
13835+
1378813836
export class WorksheetReplaceResponse extends CellsCloudResponse {
1378913837

1379013838
/**
@@ -15511,6 +15559,7 @@ const typeMap = {
1551115559
WorkbookResponse,
1551215560
WorkbookSettingsOperateParameter,
1551315561
WorkbookSettingsResponse,
15562+
WorksheetOperateParameter,
1551415563
WorksheetReplaceResponse,
1551515564
WorksheetResponse,
1551615565
Worksheets,
@@ -22958,6 +23007,45 @@ export class CellsWorkbook_GetWorkbookTextItemsRequest {
2295823007
}
2295923008
}
2296023009

23010+
/**
23011+
* Request model for CellsWorkbook_PostAutofitWorkbookColumns operation.
23012+
*/
23013+
export class CellsWorkbook_PostAutofitWorkbookColumnsRequest {
23014+
/**
23015+
* Document name.
23016+
*/
23017+
public name: string;
23018+
23019+
/**
23020+
* Auto Fitter Options.
23021+
*/
23022+
public autoFitterOptions: AutoFitterOptions;
23023+
23024+
/**
23025+
* Start column.
23026+
*/
23027+
public startColumn: number;
23028+
23029+
/**
23030+
* End column.
23031+
*/
23032+
public endColumn: number;
23033+
23034+
/**
23035+
* Document's folder.
23036+
*/
23037+
public folder: string;
23038+
23039+
/**
23040+
* storage name.
23041+
*/
23042+
public storageName: string;
23043+
23044+
public constructor(init?: Partial<CellsWorkbook_PostAutofitWorkbookColumnsRequest>) {
23045+
Object.assign(this, init);
23046+
}
23047+
}
23048+
2296123049
/**
2296223050
* Request model for CellsWorkbook_PostAutofitWorkbookRows operation.
2296323051
*/
@@ -23337,9 +23425,9 @@ export class CellsWorkbook_PostWorkbooksTextSearchRequest {
2333723425
*/
2333823426
export class CellsWorkbook_PutConvertWorkbookRequest {
2333923427
/**
23340-
* Gets or sets workbook
23428+
* Gets or sets file
2334123429
*/
23342-
public workbook: Buffer;
23430+
public file: Buffer;
2334323431

2334423432
/**
2334523433
* The format to convert.

0 commit comments

Comments
 (0)