Skip to content

Commit 267df69

Browse files
committed
Aspose.Cells.Cloud 19.6
1 parent 8b146df commit 267df69

File tree

6 files changed

+100
-25
lines changed

6 files changed

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

src/api.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import * as model from "./model/model";
3333
export * from "./model/model";
3434

3535
/**
36-
* Library for communicating with the Aspose.Words Cloud API
36+
* Library for communicating with the Aspose.Cells Cloud API
3737
*/
3838
export class CellsApi {
3939
/**
@@ -1970,7 +1970,7 @@ export class CellsApi {
19701970

19711971
}
19721972
/**
1973-
* Library for communicating with the Aspose.Words Cloud API
1973+
* Library for communicating with the Aspose.Cells Cloud API
19741974
*/
19751975
export class CellsAutoFilterApi {
19761976
/**
@@ -2689,7 +2689,7 @@ export class CellsAutoFilterApi {
26892689

26902690
}
26912691
/**
2692-
* Library for communicating with the Aspose.Words Cloud API
2692+
* Library for communicating with the Aspose.Cells Cloud API
26932693
*/
26942694
export class CellsAutoshapesApi {
26952695
/**
@@ -2792,7 +2792,7 @@ export class CellsAutoshapesApi {
27922792

27932793
}
27942794
/**
2795-
* Library for communicating with the Aspose.Words Cloud API
2795+
* Library for communicating with the Aspose.Cells Cloud API
27962796
*/
27972797
export class CellsChartAreaApi {
27982798
/**
@@ -2944,7 +2944,7 @@ export class CellsChartAreaApi {
29442944

29452945
}
29462946
/**
2947-
* Library for communicating with the Aspose.Words Cloud API
2947+
* Library for communicating with the Aspose.Cells Cloud API
29482948
*/
29492949
export class CellsChartsApi {
29502950
/**
@@ -3582,7 +3582,7 @@ export class CellsChartsApi {
35823582

35833583
}
35843584
/**
3585-
* Library for communicating with the Aspose.Words Cloud API
3585+
* Library for communicating with the Aspose.Cells Cloud API
35863586
*/
35873587
export class CellsConditionalFormattingsApi {
35883588
/**
@@ -4065,7 +4065,7 @@ export class CellsConditionalFormattingsApi {
40654065

40664066
}
40674067
/**
4068-
* Library for communicating with the Aspose.Words Cloud API
4068+
* Library for communicating with the Aspose.Cells Cloud API
40694069
*/
40704070
export class CellsHypelinksApi {
40714071
/**
@@ -4362,7 +4362,7 @@ export class CellsHypelinksApi {
43624362

43634363
}
43644364
/**
4365-
* Library for communicating with the Aspose.Words Cloud API
4365+
* Library for communicating with the Aspose.Cells Cloud API
43664366
*/
43674367
export class CellsListObjectsApi {
43684368
/**
@@ -4794,7 +4794,7 @@ export class CellsListObjectsApi {
47944794

47954795
}
47964796
/**
4797-
* Library for communicating with the Aspose.Words Cloud API
4797+
* Library for communicating with the Aspose.Cells Cloud API
47984798
*/
47994799
export class CellsOleObjectsApi {
48004800
/**
@@ -5069,7 +5069,7 @@ export class CellsOleObjectsApi {
50695069

50705070
}
50715071
/**
5072-
* Library for communicating with the Aspose.Words Cloud API
5072+
* Library for communicating with the Aspose.Cells Cloud API
50735073
*/
50745074
export class CellsPageBreaksApi {
50755075
/**
@@ -5505,7 +5505,7 @@ export class CellsPageBreaksApi {
55055505

55065506
}
55075507
/**
5508-
* Library for communicating with the Aspose.Words Cloud API
5508+
* Library for communicating with the Aspose.Cells Cloud API
55095509
*/
55105510
export class CellsPageSetupApi {
55115511
/**
@@ -5828,7 +5828,7 @@ export class CellsPageSetupApi {
58285828

58295829
}
58305830
/**
5831-
* Library for communicating with the Aspose.Words Cloud API
5831+
* Library for communicating with the Aspose.Cells Cloud API
58325832
*/
58335833
export class CellsPicturesApi {
58345834
/**
@@ -6102,7 +6102,7 @@ export class CellsPicturesApi {
61026102

61036103
}
61046104
/**
6105-
* Library for communicating with the Aspose.Words Cloud API
6105+
* Library for communicating with the Aspose.Cells Cloud API
61066106
*/
61076107
export class CellsPivotTablesApi {
61086108
/**
@@ -7050,7 +7050,7 @@ export class CellsPivotTablesApi {
70507050

70517051
}
70527052
/**
7053-
* Library for communicating with the Aspose.Words Cloud API
7053+
* Library for communicating with the Aspose.Cells Cloud API
70547054
*/
70557055
export class CellsPropertiesApi {
70567056
/**
@@ -7249,7 +7249,7 @@ export class CellsPropertiesApi {
72497249

72507250
}
72517251
/**
7252-
* Library for communicating with the Aspose.Words Cloud API
7252+
* Library for communicating with the Aspose.Cells Cloud API
72537253
*/
72547254
export class CellsRangesApi {
72557255
/**
@@ -7695,7 +7695,7 @@ export class CellsRangesApi {
76957695

76967696
}
76977697
/**
7698-
* Library for communicating with the Aspose.Words Cloud API
7698+
* Library for communicating with the Aspose.Cells Cloud API
76997699
*/
77007700
export class CellsSaveAsApi {
77017701
/**
@@ -7751,7 +7751,7 @@ export class CellsSaveAsApi {
77517751

77527752
}
77537753
/**
7754-
* Library for communicating with the Aspose.Words Cloud API
7754+
* Library for communicating with the Aspose.Cells Cloud API
77557755
*/
77567756
export class CellsShapesApi {
77577757
/**
@@ -8060,7 +8060,7 @@ export class CellsShapesApi {
80608060

80618061
}
80628062
/**
8063-
* Library for communicating with the Aspose.Words Cloud API
8063+
* Library for communicating with the Aspose.Cells Cloud API
80648064
*/
80658065
export class CellsTaskApi {
80668066
/**
@@ -8110,7 +8110,7 @@ export class CellsTaskApi {
81108110

81118111
}
81128112
/**
8113-
* Library for communicating with the Aspose.Words Cloud API
8113+
* Library for communicating with the Aspose.Cells Cloud API
81148114
*/
81158115
export class CellsWorkbookApi {
81168116
/**
@@ -9041,7 +9041,7 @@ export class CellsWorkbookApi {
90419041

90429042
}
90439043
/**
9044-
* Library for communicating with the Aspose.Words Cloud API
9044+
* Library for communicating with the Aspose.Cells Cloud API
90459045
*/
90469046
export class CellsWorksheetValidationsApi {
90479047
/**
@@ -9271,7 +9271,7 @@ export class CellsWorksheetValidationsApi {
92719271

92729272
}
92739273
/**
9274-
* Library for communicating with the Aspose.Words Cloud API
9274+
* Library for communicating with the Aspose.Cells Cloud API
92759275
*/
92769276
export class CellsWorksheetsApi {
92779277
/**
@@ -10724,7 +10724,7 @@ export class CellsWorksheetsApi {
1072410724

1072510725
}
1072610726
/**
10727-
* Library for communicating with the Aspose.Words Cloud API
10727+
* Library for communicating with the Aspose.Cells Cloud API
1072810728
*/
1072910729
export class OAuthApi {
1073010730
/**

src/model/model.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8885,6 +8885,47 @@ export class MHtmlSaveOptions extends SaveOptions {
88858885
}
88868886
}
88878887

8888+
export class MarkdownSaveOptions extends SaveOptions {
8889+
8890+
/**
8891+
* Attribute type map
8892+
*/
8893+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
8894+
{
8895+
name: "encoding",
8896+
baseName: "Encoding",
8897+
type: "string",
8898+
},
8899+
{
8900+
name: "formatStrategy",
8901+
baseName: "FormatStrategy",
8902+
type: "string",
8903+
},
8904+
{
8905+
name: "lineSeparator",
8906+
baseName: "LineSeparator",
8907+
type: "string",
8908+
} ];
8909+
8910+
/**
8911+
* Returns attribute type map
8912+
*/
8913+
public static getAttributeTypeMap() {
8914+
return super.getAttributeTypeMap().concat(MarkdownSaveOptions.attributeTypeMap);
8915+
}
8916+
8917+
public encoding: string;
8918+
8919+
public formatStrategy: string;
8920+
8921+
public lineSeparator: string;
8922+
8923+
public constructor(init?: Partial<MarkdownSaveOptions>) {
8924+
super(init);
8925+
Object.assign(this, init);
8926+
}
8927+
}
8928+
88888929
export class MergedCell {
88898930

88908931
/**
@@ -14376,6 +14417,7 @@ const typeMap = {
1437614417
ListObjects,
1437714418
ListObjectsResponse,
1437814419
MHtmlSaveOptions,
14420+
MarkdownSaveOptions,
1437914421
MergedCell,
1438014422
MergedCellResponse,
1438114423
MergedCells,

test/CellsSaveAsApi.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,36 @@ describe('CellsSaveAsApi', function() {
5959
});
6060
});
6161

62+
describe('cellsSaveAsPostDocumentSaveAsMD', function() {
63+
it('should call cellsSaveAsPostDocumentSaveAsMD successfully', function() {
64+
const storageApi = BaseTest.initializeStorageApi();
65+
const cellsSaveAsApi = BaseTest.initializeCellsSaveAsApi();
66+
const filename = "Book1.xlsx";
67+
return new Promise((resolve) => {
68+
storageApi.PutCreate("Temp/" + filename, null, null, localPath + filename, (responseMessage) => {
69+
expect(responseMessage.status).to.equal("OK");
70+
resolve();
71+
});
72+
})
73+
.then(() => {
74+
var req = new model.CellsSaveAs_PostDocumentSaveAsRequest();
75+
req.name = filename;
76+
var saveOptions = null;
77+
req.saveOptions = saveOptions;
78+
req.newfilename = "newbook.pdf.md";
79+
req.isAutoFitRows = true;
80+
req.isAutoFitColumns = true;
81+
req.folder = "Temp";
82+
83+
return cellsSaveAsApi.cellsSaveAsPostDocumentSaveAs(req)
84+
.then((result) => {
85+
expect(result.body.code).to.equal(200);
86+
expect(result.response.statusCode).to.equal(200);
87+
});
88+
});
89+
});
90+
});
91+
6292
describe('cellsSaveAsPostDocumentSaveAsPDF', function() {
6393
it('should call cellsSaveAsPostDocumentSaveAsPDF successfully', function() {
6494
const storageApi = BaseTest.initializeStorageApi();

test/CellsWorkbookApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe('CellsWorkbookApi', function() {
204204
req.password = null;
205205
req.isAutoFit = true;
206206
req.folder = "Temp";
207-
req.format = "xlsx";
207+
req.format = "md";
208208

209209
return cellsWorkbookApi.cellsWorkbookGetWorkbook(req)
210210
.then((result) => {

test/baseTest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
import * as api from "../src/api";
2626

2727
let storageApi;
28-
28+
/*
2929
const AppSid = "your app sid";
3030
const AppKey = "your app key";
31+
*/
32+
const AppSid = "66164C51-693E-4904-A121-545961673EC1";
33+
const AppKey = "536e76768419db9585afdd37bb5f7533";
3134
const ApiURL = "https://api.aspose.cloud/v1.1"
3235

3336
/**

0 commit comments

Comments
 (0)