Skip to content

Commit 1abd7e4

Browse files
committed
Release Aspose.Cells Cloud SDK 21.1
1 parent 2b45c3c commit 1abd7e4

33 files changed

+345
-35
lines changed

README.md

Lines changed: 4 additions & 3 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/20.11)
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)
22

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

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

23-
## Enhancements in Version 20.11
23+
## Feature & Enhancements in Version 21.1
2424

25-
- Support Aspose.Cells Cloud for Docker.
25+
- Support to convert worksheet on task API.
26+
- Support to add and delete cell or range in worksheet.
2627

2728
## Read & Write Spreadsheet Formats
2829

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposecellscloud",
3-
"version": "20.11.0",
3+
"version": "21.1.0",
44
"description": "Aspose.Cells Cloud SDK for Node.js",
55
"keywords": [
66
"Aspose",

src/api.ts

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7116,6 +7116,56 @@ export class CellsApi {
71167116
return Promise.resolve({body: result, response});
71177117
}
71187118

7119+
/**
7120+
* Delete range in the worksheet
7121+
* @param requestObj contains request parameters
7122+
*/
7123+
public async cellsRangesDeleteWorksheetCellsRange(requestObj: model.CellsRanges_DeleteWorksheetCellsRangeRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
7124+
if (requestObj === null || requestObj === undefined) {
7125+
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsRangesDeleteWorksheetCellsRange.');
7126+
}
7127+
7128+
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/worksheets/{sheetName}/ranges"
7129+
.replace("{" + "name" + "}", String(requestObj.name))
7130+
.replace("{" + "sheetName" + "}", String(requestObj.sheetName));
7131+
const queryParameters: any = {};
7132+
7133+
// verify required parameter 'requestObj.name' is not null or undefined
7134+
if (requestObj.name === null || requestObj.name === undefined) {
7135+
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsRangesDeleteWorksheetCellsRange.');
7136+
}
7137+
7138+
// verify required parameter 'requestObj.sheetName' is not null or undefined
7139+
if (requestObj.sheetName === null || requestObj.sheetName === undefined) {
7140+
throw new Error('Required parameter "requestObj.sheetName" was null or undefined when calling cellsRangesDeleteWorksheetCellsRange.');
7141+
}
7142+
7143+
// verify required parameter 'requestObj.range' is not null or undefined
7144+
if (requestObj.range === null || requestObj.range === undefined) {
7145+
throw new Error('Required parameter "requestObj.range" was null or undefined when calling cellsRangesDeleteWorksheetCellsRange.');
7146+
}
7147+
7148+
// verify required parameter 'requestObj.shift' is not null or undefined
7149+
if (requestObj.shift === null || requestObj.shift === undefined) {
7150+
throw new Error('Required parameter "requestObj.shift" was null or undefined when calling cellsRangesDeleteWorksheetCellsRange.');
7151+
}
7152+
7153+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "range", requestObj.range);
7154+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "shift", requestObj.shift);
7155+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
7156+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
7157+
const requestOptions: request.Options = {
7158+
method: "DELETE",
7159+
qs: queryParameters,
7160+
uri: localVarPath,
7161+
json: true,
7162+
};
7163+
7164+
const response = await invokeApiMethod(requestOptions, this.configuration);
7165+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
7166+
return Promise.resolve({body: result, response});
7167+
}
7168+
71197169
/**
71207170
* Get cells list in a range by range name or row column indexes
71217171
* @param requestObj contains request parameters
@@ -7542,6 +7592,56 @@ export class CellsApi {
75427592
return Promise.resolve({body: result, response});
75437593
}
75447594

7595+
/**
7596+
* Insert range in the worksheet
7597+
* @param requestObj contains request parameters
7598+
*/
7599+
public async cellsRangesPutWorksheetCellsRange(requestObj: model.CellsRanges_PutWorksheetCellsRangeRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
7600+
if (requestObj === null || requestObj === undefined) {
7601+
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsRangesPutWorksheetCellsRange.');
7602+
}
7603+
7604+
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/worksheets/{sheetName}/ranges"
7605+
.replace("{" + "name" + "}", String(requestObj.name))
7606+
.replace("{" + "sheetName" + "}", String(requestObj.sheetName));
7607+
const queryParameters: any = {};
7608+
7609+
// verify required parameter 'requestObj.name' is not null or undefined
7610+
if (requestObj.name === null || requestObj.name === undefined) {
7611+
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsRangesPutWorksheetCellsRange.');
7612+
}
7613+
7614+
// verify required parameter 'requestObj.sheetName' is not null or undefined
7615+
if (requestObj.sheetName === null || requestObj.sheetName === undefined) {
7616+
throw new Error('Required parameter "requestObj.sheetName" was null or undefined when calling cellsRangesPutWorksheetCellsRange.');
7617+
}
7618+
7619+
// verify required parameter 'requestObj.range' is not null or undefined
7620+
if (requestObj.range === null || requestObj.range === undefined) {
7621+
throw new Error('Required parameter "requestObj.range" was null or undefined when calling cellsRangesPutWorksheetCellsRange.');
7622+
}
7623+
7624+
// verify required parameter 'requestObj.shift' is not null or undefined
7625+
if (requestObj.shift === null || requestObj.shift === undefined) {
7626+
throw new Error('Required parameter "requestObj.shift" was null or undefined when calling cellsRangesPutWorksheetCellsRange.');
7627+
}
7628+
7629+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "range", requestObj.range);
7630+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "shift", requestObj.shift);
7631+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
7632+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
7633+
const requestOptions: request.Options = {
7634+
method: "PUT",
7635+
qs: queryParameters,
7636+
uri: localVarPath,
7637+
json: true,
7638+
};
7639+
7640+
const response = await invokeApiMethod(requestOptions, this.configuration);
7641+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
7642+
return Promise.resolve({body: result, response});
7643+
}
7644+
75457645
/**
75467646
* Convert document and save result to storage.
75477647
* @param requestObj contains request parameters

src/internal/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

src/internal/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

src/internal/objectSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

src/model/model.ts

Lines changed: 157 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8226,6 +8226,82 @@ export class ConvertTaskParameter extends TaskParameter {
82268226
}
82278227
}
82288228

8229+
export class ConvertWorksheetTaskParameter extends TaskParameter {
8230+
8231+
/**
8232+
* Attribute type map
8233+
*/
8234+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
8235+
{
8236+
name: "workbook",
8237+
baseName: "Workbook",
8238+
type: "FileSource",
8239+
},
8240+
{
8241+
name: "sheet",
8242+
baseName: "Sheet",
8243+
type: "string",
8244+
},
8245+
{
8246+
name: "target",
8247+
baseName: "Target",
8248+
type: "FileSource",
8249+
},
8250+
{
8251+
name: "format",
8252+
baseName: "Format",
8253+
type: "string",
8254+
},
8255+
{
8256+
name: "area",
8257+
baseName: "Area",
8258+
type: "string",
8259+
},
8260+
{
8261+
name: "pageIndex",
8262+
baseName: "PageIndex",
8263+
type: "number",
8264+
},
8265+
{
8266+
name: "verticalResolution",
8267+
baseName: "VerticalResolution",
8268+
type: "number",
8269+
},
8270+
{
8271+
name: "horizontalResolution",
8272+
baseName: "HorizontalResolution",
8273+
type: "number",
8274+
} ];
8275+
8276+
/**
8277+
* Returns attribute type map
8278+
*/
8279+
public static getAttributeTypeMap() {
8280+
return super.getAttributeTypeMap().concat(ConvertWorksheetTaskParameter.attributeTypeMap);
8281+
}
8282+
8283+
public workbook: FileSource;
8284+
8285+
public sheet: string;
8286+
8287+
public target: FileSource;
8288+
8289+
public format: string;
8290+
8291+
public area: string;
8292+
8293+
public pageIndex: number;
8294+
8295+
public verticalResolution: number;
8296+
8297+
public horizontalResolution: number;
8298+
8299+
public constructor(init?: Partial<ConvertWorksheetTaskParameter>) {
8300+
super(init);
8301+
Object.assign(this, init);
8302+
}
8303+
}
8304+
82298305
export class DifSaveOptions extends SaveOptions {
82308306

82318307
/**
@@ -15333,6 +15409,7 @@ const typeMap = {
1533315409
ConditionalFormattings,
1533415410
ConditionalFormattingsResponse,
1533515411
ConvertTaskParameter,
15412+
ConvertWorksheetTaskParameter,
1533615413
DifSaveOptions,
1533715414
FileVersion,
1533815415
FillFormatResponse,
@@ -21540,6 +21617,45 @@ export class Cells_PutInsertWorksheetRowsRequest {
2154021617
}
2154121618
}
2154221619

21620+
/**
21621+
* Request model for CellsRanges_DeleteWorksheetCellsRange operation.
21622+
*/
21623+
export class CellsRanges_DeleteWorksheetCellsRangeRequest {
21624+
/**
21625+
* workbook name
21626+
*/
21627+
public name: string;
21628+
21629+
/**
21630+
* worksheet name
21631+
*/
21632+
public sheetName: string;
21633+
21634+
/**
21635+
* range
21636+
*/
21637+
public range: string;
21638+
21639+
/**
21640+
* Represent the shift options when deleting a range of cells. (Left,Up)
21641+
*/
21642+
public shift: string;
21643+
21644+
/**
21645+
* Workbook folder.
21646+
*/
21647+
public folder: string;
21648+
21649+
/**
21650+
* storage name.
21651+
*/
21652+
public storageName: string;
21653+
21654+
public constructor(init?: Partial<CellsRanges_DeleteWorksheetCellsRangeRequest>) {
21655+
Object.assign(this, init);
21656+
}
21657+
}
21658+
2154321659
/**
2154421660
* Request model for CellsRanges_GetWorksheetCellsRangeValue operation.
2154521661
*/
@@ -21935,6 +22051,45 @@ export class CellsRanges_PostWorksheetCellsRangesRequest {
2193522051
}
2193622052
}
2193722053

22054+
/**
22055+
* Request model for CellsRanges_PutWorksheetCellsRange operation.
22056+
*/
22057+
export class CellsRanges_PutWorksheetCellsRangeRequest {
22058+
/**
22059+
* workbook name
22060+
*/
22061+
public name: string;
22062+
22063+
/**
22064+
* worksheet name
22065+
*/
22066+
public sheetName: string;
22067+
22068+
/**
22069+
* range
22070+
*/
22071+
public range: string;
22072+
22073+
/**
22074+
* Represent the shift options when deleting a range of cells. (Right,Down)
22075+
*/
22076+
public shift: string;
22077+
22078+
/**
22079+
* Workbook folder.
22080+
*/
22081+
public folder: string;
22082+
22083+
/**
22084+
* storage name.
22085+
*/
22086+
public storageName: string;
22087+
22088+
public constructor(init?: Partial<CellsRanges_PutWorksheetCellsRangeRequest>) {
22089+
Object.assign(this, init);
22090+
}
22091+
}
22092+
2193822093
/**
2193922094
* Request model for CellsSaveAs_PostDocumentSaveAs operation.
2194022095
*/
@@ -25027,12 +25182,12 @@ export class OAuth_PostRequest {
2502725182
public grantType: string;
2502825183

2502925184
/**
25030-
* client id
25185+
* App SID
2503125186
*/
2503225187
public clientId: string;
2503325188

2503425189
/**
25035-
* client Secret
25190+
* App Key
2503625191
*/
2503725192
public clientSecret: string;
2503825193

test/CellsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

test/CellsAutoFilterApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
4-
* Copyright (c) 2020 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

0 commit comments

Comments
 (0)