Skip to content

Commit d463acc

Browse files
committed
ISSUE-CELLSCLOUD-13424: Development of cells cloud sdk 25.9.
1 parent bf54a5c commit d463acc

File tree

2 files changed

+3
-102
lines changed

2 files changed

+3
-102
lines changed

src/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export class CellsApi {
6969
}
7070

7171
/// <summary>
72-
/// The Math Calculate API enables you to perform a variety of mathematical operations on a selected range of cells. You can add or subtract a specific number from all selected cells, as well as multiply or divide individual cells and entire columns. This API simplifies complex calculations and enhances data manipulation capabilities.
7372
/// </summary>
7473
/// <param name="request">Request. <see cref="MathCalculateRequest" /></param>
7574
public async mathCalculate(requestObj:model.MathCalculateRequest ): Promise<{response: http.ClientResponse, body: Buffer}>

src/model/model.ts

Lines changed: 3 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import request from "request";
22
import { Configuration } from "../internal/configuration";
3-
import { ObjectSerializer } from "../internal/objectSerializer";
43
import { addQueryParameterToUrl } from "../internal/requestHelper";
4+
import { ObjectSerializer } from "../internal/objectSerializer";
55
const fs = require('fs');
66
const path = require('path');
77

@@ -22620,7 +22620,7 @@ const typeMap = {
2262022620
WorksheetDataStatistics,
2262122621
};
2262222622

22623-
export { enumsMap, typeMap };
22623+
export {enumsMap, typeMap};
2262422624

2262522625
/// The Aggregate by Color API provides a convenient way to perform calculations on cells that share the same fill or font color. This API supports a range of aggregate operations, including count, sum, maximum value, minimum value, and average value, enabling you to analyze and summarize data based on color distinctions.
2262622626
export class AggregateCellsByColorRequest {
@@ -22636,7 +22636,6 @@ export class AggregateCellsByColorRequest {
2263622636
public colorPosition: string;
2263722637
/// The spreadsheet region setting.
2263822638
public region: string;
22639-
2264022639
/// The password for opening spreadsheet file.
2264122640
public password: string;
2264222641
/// extend query parameter
@@ -22692,7 +22691,7 @@ export class AggregateCellsByColorRequest {
2269222691
}
2269322692

2269422693
}
22695-
/// The Math Calculate API enables you to perform a variety of mathematical operations on a selected range of cells. You can add or subtract a specific number from all selected cells, as well as multiply or divide individual cells and entire columns. This API simplifies complex calculations and enhances data manipulation capabilities.
22694+
2269622695
export class MathCalculateRequest {
2269722696
/// Upload spreadsheet file.
2269822697
public spreadsheet: any;
@@ -22735,7 +22734,6 @@ export class MathCalculateRequest {
2273522734
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "worksheet", this.worksheet);
2273622735
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "range", this.range);
2273722736
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "region", this.region);
22738-
2273922737
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", this.password);
2274022738
if(this.extendQueryParameterMap !== undefined){
2274122739
for (var key in this.extendQueryParameterMap){
@@ -25008,7 +25006,6 @@ export class SplitRemoteSpreadsheetRequest {
2500825006

2500925007
}
2501025008
/// Import data into a spreadsheet from a supported data file format.
25011-
2501225009
export class ImportDataIntoSpreadsheetRequest {
2501325010
/// Upload data file.
2501425011
public datafile: any;
@@ -27013,101 +27010,6 @@ export class SwapRangeRequest {
2701327010
}
2701427011

2701527012

27016-
// const bodyParameter = null;
27017-
27018-
const requestOptions: request.Options = {
27019-
method: "PUT",
27020-
qs: queryParameters,
27021-
uri: localVarPath,
27022-
json: true,
27023-
};
27024-
27025-
(requestOptions as any).formData = formParams;
27026-
return Promise.resolve(requestOptions);
27027-
27028-
}
27029-
27030-
}
27031-
/// The Swap Ranges for Excel API provides a powerful tool to move any two columns, rows, ranges, or individual cells within an Excel file. This API allows users to re-arrange their tables quickly and efficiently, ensuring that the original data formatting is preserved and all existing formulas continue to function correctly. By leveraging this API, users can streamline their data manipulation tasks and maintain the integrity of their spreadsheets.
27032-
export class SawpRangeRequest {
27033-
/// Upload spreadsheet file.
27034-
public spreadsheet: any;
27035-
27036-
public worksheet1: string;
27037-
27038-
public range1: string;
27039-
27040-
public worksheet2: string;
27041-
27042-
public range2: string;
27043-
/// (Optional) The folder path where the workbook is stored. The default is null.
27044-
public outPath: string;
27045-
/// Output file Storage Name.
27046-
public outStorageName: string;
27047-
/// The spreadsheet region setting.
27048-
public regoin: string;
27049-
/// The password for opening spreadsheet file.
27050-
public password: string;
27051-
/// extend query parameter
27052-
public extendQueryParameterMap: any;
27053-
27054-
public constructor(init?: Partial< SawpRangeRequest >) {
27055-
Object.assign(this, init);
27056-
}
27057-
27058-
public async createRequestOptions(configuration: Configuration) : Promise<request.Options> {
27059-
27060-
let localVarPath = configuration.getApiBaseUrl() + "v4.0/cells/swap/range";
27061-
const queryParameters: any = {};
27062-
const formParams: any = {};
27063-
27064-
// verify required parameter 'worksheet1' is not null or undefined
27065-
if (this.worksheet1 === null || this.worksheet1 === undefined) {
27066-
throw new Error('Required parameter "worksheet1" was null or undefined when calling SawpRange.');
27067-
}
27068-
27069-
// verify required parameter 'range1' is not null or undefined
27070-
if (this.range1 === null || this.range1 === undefined) {
27071-
throw new Error('Required parameter "range1" was null or undefined when calling SawpRange.');
27072-
}
27073-
27074-
// verify required parameter 'worksheet2' is not null or undefined
27075-
if (this.worksheet2 === null || this.worksheet2 === undefined) {
27076-
throw new Error('Required parameter "worksheet2" was null or undefined when calling SawpRange.');
27077-
}
27078-
27079-
// verify required parameter 'range2' is not null or undefined
27080-
if (this.range2 === null || this.range2 === undefined) {
27081-
throw new Error('Required parameter "range2" was null or undefined when calling SawpRange.');
27082-
}
27083-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "worksheet1", this.worksheet1);
27084-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "range1", this.range1);
27085-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "worksheet2", this.worksheet2);
27086-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "range2", this.range2);
27087-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outPath", this.outPath);
27088-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outStorageName", this.outStorageName);
27089-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "regoin", this.regoin);
27090-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "password", this.password);
27091-
if(this.extendQueryParameterMap !== undefined){
27092-
for (var key in this.extendQueryParameterMap){
27093-
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, key, this.extendQueryParameterMap[key]);
27094-
}
27095-
}
27096-
if (this.spreadsheet !== undefined) {
27097-
if (typeof this.spreadsheet === 'string') {
27098-
if (fs.existsSync(this.spreadsheet)) {
27099-
const fileName = path.basename( this.spreadsheet)
27100-
formParams[fileName] = fs.createReadStream(this.spreadsheet)
27101-
}
27102-
}
27103-
else {
27104-
for (var key in this.spreadsheet){
27105-
formParams[key] = this.spreadsheet[key];
27106-
}
27107-
}
27108-
}
27109-
27110-
2711127013
// const bodyParameter = null;
2711227014

2711327015
const requestOptions: request.Options = {

0 commit comments

Comments
 (0)