Skip to content

Commit a391441

Browse files
committed
Release Aspose.Cells Cloud SDK 23.7
1 parent 9fc212c commit a391441

File tree

6 files changed

+82
-183
lines changed

6 files changed

+82
-183
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
## Feature & Enhancements in Version 23.7
2424

2525
- Support to repair api.
26+
- Remove GetExtractBarcodes API.
2627

2728
## Read & Write Spreadsheet Formats
2829

src/api.ts

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -335,20 +335,6 @@ export class CellsApi {
335335
return Promise.resolve({body: result, response});
336336
}
337337

338-
/// <summary>
339-
/// </summary>
340-
/// <param name="request">Request. <see cref="GetExtractBarcodesRequest" /></param>
341-
public async getExtractBarcodes(requestObj:model.GetExtractBarcodesRequest ): Promise<{response: http.ClientResponse, body: model.BarcodeResponseList}>
342-
{
343-
if (requestObj === null || requestObj === undefined) {
344-
throw new Error('Required parameter "requestObj" was null or undefined when calling getExtractBarcodes.');
345-
}
346-
347-
const requestOptions = await requestObj.createRequestOptions(this.configuration);
348-
const response = await invokeApiMethod(requestOptions, this.configuration);
349-
const result = ObjectSerializer.deserialize(response.body, "BarcodeResponseList");
350-
return Promise.resolve({body: result, response});
351-
}
352338

353339
/// <summary>
354340
/// </summary>
@@ -9972,52 +9958,6 @@ export class CellsApi {
99729958
return Promise.resolve({ body: result, response });
99739959
}
99749960

9975-
/**
9976-
* Get chart area border info.
9977-
* @param requestObj contains request parameters
9978-
*/
9979-
/**
9980-
* @deprecated
9981-
*/
9982-
public async cellsPictureGetExtractBarcodes(requestObj: model.CellsPicture_GetExtractBarcodesRequest): Promise<{ response: http.ClientResponse, body: model.BarcodeResponseList }> {
9983-
if (requestObj === null || requestObj === undefined) {
9984-
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsPictureGetExtractBarcodes.');
9985-
}
9986-
9987-
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize"
9988-
.replace("{" + "name" + "}", String(requestObj.name))
9989-
.replace("{" + "sheetName" + "}", String(requestObj.sheetName))
9990-
.replace("{" + "pictureIndex" + "}", String(requestObj.pictureIndex));
9991-
const queryParameters: any = {};
9992-
9993-
// verify required parameter 'requestObj.name' is not null or undefined
9994-
if (requestObj.name === null || requestObj.name === undefined) {
9995-
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsPictureGetExtractBarcodes.');
9996-
}
9997-
9998-
// verify required parameter 'requestObj.sheetName' is not null or undefined
9999-
if (requestObj.sheetName === null || requestObj.sheetName === undefined) {
10000-
throw new Error('Required parameter "requestObj.sheetName" was null or undefined when calling cellsPictureGetExtractBarcodes.');
10001-
}
10002-
10003-
// verify required parameter 'requestObj.pictureIndex' is not null or undefined
10004-
if (requestObj.pictureIndex === null || requestObj.pictureIndex === undefined) {
10005-
throw new Error('Required parameter "requestObj.pictureIndex" was null or undefined when calling cellsPictureGetExtractBarcodes.');
10006-
}
10007-
10008-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
10009-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
10010-
const requestOptions: request.Options = {
10011-
method: "GET",
10012-
qs: queryParameters,
10013-
uri: localVarPath,
10014-
json: true,
10015-
};
10016-
10017-
const response = await invokeApiMethod(requestOptions, this.configuration);
10018-
const result = ObjectSerializer.deserialize(response.body, "BarcodeResponseList");
10019-
return Promise.resolve({ body: result, response });
10020-
}
100219961

100229962
/**
100239963
* Delete a picture object in worksheet

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async function invokeApiMethodInternal(requestOptions: request.Options, confgura
9494
// requestOptions.rejectUnauthorized=false;
9595

9696
requestOptions.headers["x-aspose-client"] = "nodejs sdk";
97-
requestOptions.headers["x-aspose-client-version"] = "23.6.0";
97+
requestOptions.headers["x-aspose-client-version"] = "23.7.0";
9898
requestOptions.headers["Content-Type"] = "application/json";
9999
const auth = confguration.authentication;
100100
if (!notApplyAuthToRequest) {

src/model/model.ts

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -21296,39 +21296,7 @@ export class CellsPictures_GetWorksheetPictureRequest {
2129621296
}
2129721297
}
2129821298

21299-
/**
21300-
* Request model for CellsPicture_GetExtractBarcodes operation.
21301-
*/
21302-
export class CellsPicture_GetExtractBarcodesRequest {
21303-
/**
21304-
* Workbook name.
21305-
*/
21306-
public name: string;
21307-
21308-
/**
21309-
* Worksheet name.
21310-
*/
21311-
public sheetName: string;
2131221299

21313-
/**
21314-
* The picture index.
21315-
*/
21316-
public pictureIndex: number;
21317-
21318-
/**
21319-
* Workbook folder.
21320-
*/
21321-
public folder: string;
21322-
21323-
/**
21324-
* storage name.
21325-
*/
21326-
public storageName: string;
21327-
21328-
public constructor(init?: Partial<CellsPicture_GetExtractBarcodesRequest>) {
21329-
Object.assign(this, init);
21330-
}
21331-
}
2133221300
/**
2133321301
* Request model for CellsPictures_GetWorksheetPictures operation.
2133421302
*/
@@ -28893,52 +28861,7 @@ export class PostBatchSplitRequest {
2889328861
}
2889428862

2889528863
}
28896-
/// Extract barcodes from worksheet picture.
28897-
export class GetExtractBarcodesRequest {
28898-
/// The workbook name.
28899-
public name: string;
28900-
/// The worksheet name.
28901-
public sheetName: string;
28902-
/// Picture index.
28903-
public pictureIndex: number;
28904-
/// Workbook folder.
28905-
public folder: string;
28906-
28907-
public storageName: string;
28908-
/// extend query parameter
28909-
public extendQueryParameterMap: any;
28910-
28911-
public constructor(init?: Partial< GetExtractBarcodesRequest >) {
28912-
Object.assign(this, init);
28913-
}
28914-
28915-
public async createRequestOptions(configuration: Configuration) : Promise<request.Options> {
28916-
28917-
let localVarPath = configuration.getApiBaseUrl() + "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize".replace("{" + "name" + "}", String(this.name)).replace("{" + "sheetName" + "}", String(this.sheetName)).replace("{" + "pictureIndex" + "}", String(this.pictureIndex));
28918-
const queryParameters: any = {};
28919-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", this.folder);
28920-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", this.storageName);
28921-
if(this.extendQueryParameterMap !== undefined){
28922-
for (var key in this.extendQueryParameterMap){
28923-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, key, this.extendQueryParameterMap[key]);
28924-
}
28925-
}
28926-
28927-
28928-
// const bodyParameter = null;
2892928864

28930-
const requestOptions: request.Options = {
28931-
method: "GET",
28932-
qs: queryParameters,
28933-
uri: localVarPath,
28934-
json: true,
28935-
};
28936-
28937-
return Promise.resolve(requestOptions);
28938-
28939-
}
28940-
28941-
}
2894228865
/// Clear cells contents in worksheet.
2894328866
export class PostClearContentsRequest {
2894428867
/// The workbook name.

test/Api/tests_cells_barcodes_controller.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

test/Document/tests_light_cells.ts

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4760,6 +4760,86 @@ describe('LightCells test', function() {
47604760
});
47614761
});
47624762
});
4763+
describe('post_repair_xlsx test', function(){
4764+
it("should call PostRepair successfully" , function(){
4765+
4766+
var book1Xlsx = "Book1.xlsx"
4767+
4768+
4769+
var format = "xlsx"
4770+
4771+
var mapFiles = {};
4772+
4773+
mapFiles[book1Xlsx]= fs.createReadStream(localPath +book1Xlsx) ;
4774+
4775+
var request = new model.PostRepairRequest();
4776+
request.file = mapFiles;
4777+
request.format = format;
4778+
return cellsApi.postRepair(request).then((result) => {
4779+
expect(result.response.statusCode).to.equal(200);
4780+
});
4781+
});
4782+
});
4783+
describe('post_repair_pdf test', function(){
4784+
it("should call PostRepair successfully" , function(){
4785+
4786+
var book1Xlsx = "Book1.xlsx"
4787+
4788+
4789+
var format = "pdf"
4790+
4791+
var mapFiles = {};
4792+
4793+
mapFiles[book1Xlsx]= fs.createReadStream(localPath +book1Xlsx) ;
4794+
4795+
var request = new model.PostRepairRequest();
4796+
request.file = mapFiles;
4797+
request.format = format;
4798+
return cellsApi.postRepair(request).then((result) => {
4799+
expect(result.response.statusCode).to.equal(200);
4800+
});
4801+
});
4802+
});
4803+
describe('post_repair_csv test', function(){
4804+
it("should call PostRepair successfully" , function(){
4805+
4806+
var book1Xlsx = "Book1.xlsx"
4807+
4808+
4809+
var format = "csv"
4810+
4811+
var mapFiles = {};
4812+
4813+
mapFiles[book1Xlsx]= fs.createReadStream(localPath +book1Xlsx) ;
4814+
4815+
var request = new model.PostRepairRequest();
4816+
request.file = mapFiles;
4817+
request.format = format;
4818+
return cellsApi.postRepair(request).then((result) => {
4819+
expect(result.response.statusCode).to.equal(200);
4820+
});
4821+
});
4822+
});
4823+
describe('post_repair_png test', function(){
4824+
it("should call PostRepair successfully" , function(){
4825+
4826+
var book1Xlsx = "Book1.xlsx"
4827+
4828+
4829+
var format = "png"
4830+
4831+
var mapFiles = {};
4832+
4833+
mapFiles[book1Xlsx]= fs.createReadStream(localPath +book1Xlsx) ;
4834+
4835+
var request = new model.PostRepairRequest();
4836+
request.file = mapFiles;
4837+
request.format = format;
4838+
return cellsApi.postRepair(request).then((result) => {
4839+
expect(result.response.statusCode).to.equal(200);
4840+
});
4841+
});
4842+
});
47634843
describe('post_reverse_rows_pdf test', function(){
47644844
it("should call PostReverse successfully" , function(){
47654845

0 commit comments

Comments
 (0)