Skip to content

Commit 9f74b3f

Browse files
committed
20220114 update : add storage name for apis.
1 parent 4850457 commit 9f74b3f

File tree

5 files changed

+318
-9
lines changed

5 files changed

+318
-9
lines changed

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": "21.12.0",
3+
"version": "22.1.0",
44
"description": "Aspose.Cells Cloud SDK for Node.js",
55
"keywords": [
66
"Aspose",

src/api.ts

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

4-
* Copyright (c) 2021 Aspose Pty Ltd
4+
* Copyright (c) 2022 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
@@ -2895,7 +2895,7 @@ export class CellsApi {
28952895
* Get worksheet list object info by index.
28962896
* @param requestObj contains request parameters
28972897
*/
2898-
public async cellsListObjectsGetWorksheetListObject(requestObj: model.CellsListObjects_GetWorksheetListObjectRequest): Promise<{response: http.ClientResponse, body: Buffer}> {
2898+
public async cellsListObjectsGetWorksheetListObject(requestObj: model.CellsListObjects_GetWorksheetListObjectRequest): Promise<{response: http.ClientResponse, body: model.Buffer}> {
28992899
if (requestObj === null || requestObj === undefined) {
29002900
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsListObjectsGetWorksheetListObject.');
29012901
}
@@ -7771,6 +7771,7 @@ export class CellsApi {
77717771
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "isAutoFitColumns", requestObj.isAutoFitColumns);
77727772
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
77737773
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
7774+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outStorageName", requestObj.outStorageName);
77747775
const requestOptions: request.Options = {
77757776
method: "POST",
77767777
qs: queryParameters,
@@ -8637,7 +8638,7 @@ export class CellsApi {
86378638
* Get page count for workbook.
86388639
* @param requestObj contains request parameters
86398640
*/
8640-
public async cellsWorkbookGetPageCount(requestObj: model.CellsWorkbook_GetPageCountRequest): Promise<{response: http.ClientResponse, body: any}> {
8641+
public async cellsWorkbookGetPageCount(requestObj: model.CellsWorkbook_GetPageCountRequest): Promise<{response: http.ClientResponse, body: model.any}> {
86418642
if (requestObj === null || requestObj === undefined) {
86428643
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsWorkbookGetPageCount.');
86438644
}
@@ -8690,6 +8691,7 @@ export class CellsApi {
86908691
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
86918692
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
86928693
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outPath", requestObj.outPath);
8694+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outStorageName", requestObj.outStorageName);
86938695
const requestOptions: request.Options = {
86948696
method: "GET",
86958697
qs: queryParameters,
@@ -9137,6 +9139,7 @@ export class CellsApi {
91379139
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
91389140
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
91399141
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outPath", requestObj.outPath);
9142+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outStorageName", requestObj.outStorageName);
91409143
const requestOptions: request.Options = {
91419144
method: "POST",
91429145
qs: queryParameters,
@@ -9208,6 +9211,7 @@ export class CellsApi {
92089211
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
92099212
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outFolder", requestObj.outFolder);
92109213
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
9214+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outStorageName", requestObj.outStorageName);
92119215
const requestOptions: request.Options = {
92129216
method: "POST",
92139217
qs: queryParameters,
@@ -9246,6 +9250,7 @@ export class CellsApi {
92469250
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "mergeWith", requestObj.mergeWith);
92479251
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
92489252
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storageName", requestObj.storageName);
9253+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "mergedStorageName", requestObj.mergedStorageName);
92499254
const requestOptions: request.Options = {
92509255
method: "POST",
92519256
qs: queryParameters,
@@ -10100,7 +10105,7 @@ export class CellsApi {
1010010105
* Get page count for worksheet.
1010110106
* @param requestObj contains request parameters
1010210107
*/
10103-
public async cellsWorksheetsGetPageCount(requestObj: model.CellsWorksheets_GetPageCountRequest): Promise<{response: http.ClientResponse, body: any}> {
10108+
public async cellsWorksheetsGetPageCount(requestObj: model.CellsWorksheets_GetPageCountRequest): Promise<{response: http.ClientResponse, body: model.any}> {
1010410109
if (requestObj === null || requestObj === undefined) {
1010510110
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsWorksheetsGetPageCount.');
1010610111
}
@@ -11735,7 +11740,7 @@ export class CellsApi {
1173511740
*
1173611741
* @param requestObj contains request parameters
1173711742
*/
11738-
public async postBatchConvert(requestObj: model.PostBatchConvertRequest): Promise<{response: http.ClientResponse, body: Buffer}> {
11743+
public async postBatchConvert(requestObj: model.PostBatchConvertRequest): Promise<{response: http.ClientResponse, body: model.Buffer}> {
1173911744
if (requestObj === null || requestObj === undefined) {
1174011745
throw new Error('Required parameter "requestObj" was null or undefined when calling postBatchConvert.');
1174111746
}

src/model/model.ts

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

4-
* Copyright (c) 2021 Aspose Pty Ltd
4+
* Copyright (c) 2022 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
@@ -265,6 +265,11 @@ export class BatchConvertRequest {
265265
baseName: "SourceFolder",
266266
type: "string",
267267
},
268+
{
269+
name: "sourceStorage",
270+
baseName: "SourceStorage",
271+
type: "string",
272+
},
268273
{
269274
name: "matchCondition",
270275
baseName: "MatchCondition",
@@ -280,6 +285,11 @@ export class BatchConvertRequest {
280285
baseName: "OutFolder",
281286
type: "string",
282287
},
288+
{
289+
name: "outStorage",
290+
baseName: "OutStorage",
291+
type: "string",
292+
},
283293
{
284294
name: "saveOptions",
285295
baseName: "SaveOptions",
@@ -295,12 +305,16 @@ export class BatchConvertRequest {
295305

296306
public sourceFolder: string;
297307

308+
public sourceStorage: string;
309+
298310
public matchCondition: MatchConditionRequest;
299311

300312
public format: string;
301313

302314
public outFolder: string;
303315

316+
public outStorage: string;
317+
304318
public saveOptions: SaveOptions;
305319

306320
public constructor(init?: Partial<BatchConvertRequest>) {
@@ -8906,6 +8920,111 @@ export class HtmlSaveOptions extends SaveOptions {
89068920
* Attribute type map
89078921
*/
89088922
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
8923+
{
8924+
name: "saveAsSingleFile",
8925+
baseName: "SaveAsSingleFile",
8926+
type: "string",
8927+
},
8928+
{
8929+
name: "exportHiddenWorksheet",
8930+
baseName: "ExportHiddenWorksheet",
8931+
type: "string",
8932+
},
8933+
{
8934+
name: "exportGridLines",
8935+
baseName: "ExportGridLines",
8936+
type: "string",
8937+
},
8938+
{
8939+
name: "presentationPreference",
8940+
baseName: "PresentationPreference",
8941+
type: "string",
8942+
},
8943+
{
8944+
name: "cellCssPrefix",
8945+
baseName: "CellCssPrefix",
8946+
type: "string",
8947+
},
8948+
{
8949+
name: "tableCssId",
8950+
baseName: "TableCssId",
8951+
type: "string",
8952+
},
8953+
{
8954+
name: "isFullPathLink",
8955+
baseName: "IsFullPathLink",
8956+
type: "string",
8957+
},
8958+
{
8959+
name: "exportWorksheetCSSSeparately",
8960+
baseName: "ExportWorksheetCSSSeparately",
8961+
type: "string",
8962+
},
8963+
{
8964+
name: "exportSimilarBorderStyle",
8965+
baseName: "ExportSimilarBorderStyle",
8966+
type: "string",
8967+
},
8968+
{
8969+
name: "mergeEmptyTdForcely",
8970+
baseName: "MergeEmptyTdForcely",
8971+
type: "string",
8972+
},
8973+
{
8974+
name: "exportCellCoordinate",
8975+
baseName: "ExportCellCoordinate",
8976+
type: "string",
8977+
},
8978+
{
8979+
name: "exportExtraHeadings",
8980+
baseName: "ExportExtraHeadings",
8981+
type: "string",
8982+
},
8983+
{
8984+
name: "exportHeadings",
8985+
baseName: "ExportHeadings",
8986+
type: "string",
8987+
},
8988+
{
8989+
name: "exportFormula",
8990+
baseName: "ExportFormula",
8991+
type: "string",
8992+
},
8993+
{
8994+
name: "addTooltipText",
8995+
baseName: "AddTooltipText",
8996+
type: "string",
8997+
},
8998+
{
8999+
name: "exportBogusRowData",
9000+
baseName: "ExportBogusRowData",
9001+
type: "string",
9002+
},
9003+
{
9004+
name: "excludeUnusedStyles",
9005+
baseName: "ExcludeUnusedStyles",
9006+
type: "string",
9007+
},
9008+
{
9009+
name: "exportDocumentProperties",
9010+
baseName: "ExportDocumentProperties",
9011+
type: "string",
9012+
},
9013+
{
9014+
name: "exportWorksheetProperties",
9015+
baseName: "ExportWorksheetProperties",
9016+
type: "string",
9017+
},
9018+
{
9019+
name: "exportWorkbookProperties",
9020+
baseName: "ExportWorkbookProperties",
9021+
type: "string",
9022+
},
9023+
{
9024+
name: "exportFrameScriptsAndProperties",
9025+
baseName: "ExportFrameScriptsAndProperties",
9026+
type: "string",
9027+
},
89099028
{
89109029
name: "attachedFilesDirectory",
89119030
baseName: "AttachedFilesDirectory",
@@ -8974,6 +9093,48 @@ export class HtmlSaveOptions extends SaveOptions {
89749093
return super.getAttributeTypeMap().concat(HtmlSaveOptions.attributeTypeMap);
89759094
}
89769095

9096+
public saveAsSingleFile: string;
9097+
9098+
public exportHiddenWorksheet: string;
9099+
9100+
public exportGridLines: string;
9101+
9102+
public presentationPreference: string;
9103+
9104+
public cellCssPrefix: string;
9105+
9106+
public tableCssId: string;
9107+
9108+
public isFullPathLink: string;
9109+
9110+
public exportWorksheetCSSSeparately: string;
9111+
9112+
public exportSimilarBorderStyle: string;
9113+
9114+
public mergeEmptyTdForcely: string;
9115+
9116+
public exportCellCoordinate: string;
9117+
9118+
public exportExtraHeadings: string;
9119+
9120+
public exportHeadings: string;
9121+
9122+
public exportFormula: string;
9123+
9124+
public addTooltipText: string;
9125+
9126+
public exportBogusRowData: string;
9127+
9128+
public excludeUnusedStyles: string;
9129+
9130+
public exportDocumentProperties: string;
9131+
9132+
public exportWorksheetProperties: string;
9133+
9134+
public exportWorkbookProperties: string;
9135+
9136+
public exportFrameScriptsAndProperties: string;
9137+
89779138
public attachedFilesDirectory: string;
89789139

89799140
public attachedFilesUrlPrefix: string;
@@ -22656,6 +22817,11 @@ export class CellsSaveAs_PostDocumentSaveAsRequest {
2265622817
* storage name.
2265722818
*/
2265822819
public storageName: string;
22820+
22821+
/**
22822+
* output storage name.
22823+
*/
22824+
public outStorageName: string;
2265922825

2266022826
public constructor(init?: Partial<CellsSaveAs_PostDocumentSaveAsRequest>) {
2266122827
Object.assign(this, init);
@@ -23418,6 +23584,11 @@ export class CellsWorkbook_GetWorkbookRequest {
2341823584
* The document output folder.
2341923585
*/
2342023586
public outPath: string;
23587+
23588+
/**
23589+
* output storage name.
23590+
*/
23591+
public outStorageName: string;
2342123592

2342223593
public constructor(init?: Partial<CellsWorkbook_GetWorkbookRequest>) {
2342323594
Object.assign(this, init);
@@ -23810,6 +23981,11 @@ export class CellsWorkbook_PostWorkbookGetSmartMarkerResultRequest {
2381023981
* Path to save result
2381123982
*/
2381223983
public outPath: string;
23984+
23985+
/**
23986+
* output storage name.
23987+
*/
23988+
public outStorageName: string;
2381323989

2381423990
public constructor(init?: Partial<CellsWorkbook_PostWorkbookGetSmartMarkerResultRequest>) {
2381523991
Object.assign(this, init);
@@ -23893,6 +24069,11 @@ export class CellsWorkbook_PostWorkbookSplitRequest {
2389324069
* storage name.
2389424070
*/
2389524071
public storageName: string;
24072+
24073+
/**
24074+
* output storage name.
24075+
*/
24076+
public outStorageName: string;
2389624077

2389724078
public constructor(init?: Partial<CellsWorkbook_PostWorkbookSplitRequest>) {
2389824079
Object.assign(this, init);
@@ -23922,6 +24103,11 @@ export class CellsWorkbook_PostWorkbooksMergeRequest {
2392224103
* storage name.
2392324104
*/
2392424105
public storageName: string;
24106+
24107+
/**
24108+
* merged file storage name.
24109+
*/
24110+
public mergedStorageName: string;
2392524111

2392624112
public constructor(init?: Partial<CellsWorkbook_PostWorkbooksMergeRequest>) {
2392724113
Object.assign(this, init);
@@ -26014,7 +26200,7 @@ export class DeleteMetadataRequest {
2601426200
}
2601526201

2601626202
/**
26017-
* Request model for operation.
26203+
* GetMetadataRequest model for operation.
2601826204
*/
2601926205
export class GetMetadataRequest {
2602026206
/**

test/CellsSaveAsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe('CellsSaveAsApi ', function() {
136136
var req = new model.UploadFileRequest();
137137
req.path = "Temp/" + filename;
138138
req.file = data;
139-
139+
req.storageName = storage;
140140
return cellsApi.uploadFile(req)
141141
.then((result) => {
142142
expect(result.body.uploaded.length).greaterThan(0);

0 commit comments

Comments
 (0)