Skip to content

Commit ee07c30

Browse files
committed
Updated sources
1 parent 2a415ff commit ee07c30

21 files changed

Lines changed: 1040 additions & 103 deletions

package-lock.json

Lines changed: 934 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groupdocs-conversion-cloud",
3-
"version": "19.5.0",
3+
"version": "20.2.0",
44
"description": "GroupDocs.Conversion Cloud SDK for Node.js",
55
"homepage": "https://products.groupdocs.cloud/conversion",
66
"author": {
@@ -31,19 +31,19 @@
3131
"build:package": "npm pack"
3232
},
3333
"dependencies": {
34+
"@types/request": "^2.48.4",
3435
"request": "^2.81.0",
35-
"request-debug": "^0.2.0",
36-
"@types/request": "*"
36+
"request-debug": "^0.2.0"
3737
},
3838
"devDependencies": {
39-
"@types/chai": "^4.0.10",
39+
"@types/chai": "^4.2.7",
4040
"@types/mocha": "^2.2.44",
41-
"@types/node": "^10.10.1",
41+
"@types/node": "^10.17.13",
4242
"asposestoragecloud": "^1.0.5",
43+
"chai": "^4.2.0",
4344
"mocha": "^4.0.1",
44-
"chai": "^4.1.2",
4545
"ts-node": "^7.0.1",
46-
"tslint": "^5.8.0",
47-
"typescript": "^3.0.3"
46+
"tslint": "^5.20.1",
47+
"typescript": "^3.7.5"
4848
}
4949
}

src/conversion_api.ts

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

Lines changed: 74 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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
@@ -1105,6 +1105,11 @@ export class CsvLoadOptions extends LoadOptions {
11051105
name: "convertDateTimeData",
11061106
baseName: "convertDateTimeData",
11071107
type: "boolean",
1108+
},
1109+
{
1110+
name: "encoding",
1111+
baseName: "encoding",
1112+
type: "string",
11081113
} ];
11091114

11101115
/**
@@ -1139,6 +1144,11 @@ export class CsvLoadOptions extends LoadOptions {
11391144
*/
11401145
public convertDateTimeData: boolean;
11411146

1147+
/**
1148+
* File encoding
1149+
*/
1150+
public encoding: string;
1151+
11421152
public constructor(init?: Partial<CsvLoadOptions>) {
11431153
super(init);
11441154
Object.assign(this, init);
@@ -1218,6 +1228,16 @@ export class EmailLoadOptions extends LoadOptions {
12181228
name: "displayBccEmailAddress",
12191229
baseName: "displayBccEmailAddress",
12201230
type: "boolean",
1231+
},
1232+
{
1233+
name: "timeZoneOffset",
1234+
baseName: "timeZoneOffset",
1235+
type: "string",
1236+
},
1237+
{
1238+
name: "convertAttachments",
1239+
baseName: "convertAttachments",
1240+
type: "boolean",
12211241
} ];
12221242

12231243
/**
@@ -1257,6 +1277,16 @@ export class EmailLoadOptions extends LoadOptions {
12571277
*/
12581278
public displayBccEmailAddress: boolean;
12591279

1280+
/**
1281+
* Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the localtime and UTC.
1282+
*/
1283+
public timeZoneOffset: string;
1284+
1285+
/**
1286+
* Option to convert attachments in source email or not. Default: false.
1287+
*/
1288+
public convertAttachments: boolean;
1289+
12601290
public constructor(init?: Partial<EmailLoadOptions>) {
12611291
super(init);
12621292
Object.assign(this, init);
@@ -1740,8 +1770,8 @@ export class PdfConvertOptions extends ConvertOptions {
17401770
type: "boolean",
17411771
},
17421772
{
1743-
name: "hideMenubar",
1744-
baseName: "hideMenubar",
1773+
name: "hideMenuBar",
1774+
baseName: "hideMenuBar",
17451775
type: "boolean",
17461776
},
17471777
{
@@ -1769,21 +1799,6 @@ export class PdfConvertOptions extends ConvertOptions {
17691799
baseName: "pageMode",
17701800
type: "PdfConvertOptions.PageModeEnum",
17711801
},
1772-
{
1773-
name: "bookmarksOutlineLevel",
1774-
baseName: "bookmarksOutlineLevel",
1775-
type: "number",
1776-
},
1777-
{
1778-
name: "headingsOutlineLevels",
1779-
baseName: "headingsOutlineLevels",
1780-
type: "number",
1781-
},
1782-
{
1783-
name: "expandedOutlineLevels",
1784-
baseName: "expandedOutlineLevels",
1785-
type: "number",
1786-
},
17871802
{
17881803
name: "rotate",
17891804
baseName: "rotate",
@@ -1920,7 +1935,7 @@ export class PdfConvertOptions extends ConvertOptions {
19201935
/**
19211936
* Specify whether menu bar should be hidden when document is active. Default: false.
19221937
*/
1923-
public hideMenubar: boolean;
1938+
public hideMenuBar: boolean;
19241939

19251940
/**
19261941
* Specifying whether toolbar should be hidden when document is active. Default: false.
@@ -1947,21 +1962,6 @@ export class PdfConvertOptions extends ConvertOptions {
19471962
*/
19481963
public pageMode: PdfConvertOptions.PageModeEnum;
19491964

1950-
/**
1951-
* Specifies the default level in the document outline at which to display Word bookmarks. Default is 0. Valid range is 0 to 9.
1952-
*/
1953-
public bookmarksOutlineLevel: number;
1954-
1955-
/**
1956-
* Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the document outline. Default is 0. Valid range is 0 to 9.
1957-
*/
1958-
public headingsOutlineLevels: number;
1959-
1960-
/**
1961-
* Specifies how many levels in the document outline to show expanded when the file is viewed. Default is 0. Valid range is 0 to 9. Note that this options will not work when saving to XPS.
1962-
*/
1963-
public expandedOutlineLevels: number;
1964-
19651965
/**
19661966
* Rotate page
19671967
*/
@@ -2539,6 +2539,11 @@ export class TxtLoadOptions extends LoadOptions {
25392539
name: "leadingSpacesOptions",
25402540
baseName: "leadingSpacesOptions",
25412541
type: "TxtLoadOptions.LeadingSpacesOptionsEnum",
2542+
},
2543+
{
2544+
name: "encoding",
2545+
baseName: "encoding",
2546+
type: "string",
25422547
} ];
25432548

25442549
/**
@@ -2563,6 +2568,11 @@ export class TxtLoadOptions extends LoadOptions {
25632568
*/
25642569
public leadingSpacesOptions: TxtLoadOptions.LeadingSpacesOptionsEnum;
25652570

2571+
/**
2572+
* Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.
2573+
*/
2574+
public encoding: string;
2575+
25662576
public constructor(init?: Partial<TxtLoadOptions>) {
25672577
super(init);
25682578
Object.assign(this, init);
@@ -2706,6 +2716,21 @@ export class WordProcessingLoadOptions extends LoadOptions {
27062716
name: "hideComments",
27072717
baseName: "hideComments",
27082718
type: "boolean",
2719+
},
2720+
{
2721+
name: "bookmarksOutlineLevel",
2722+
baseName: "bookmarksOutlineLevel",
2723+
type: "number",
2724+
},
2725+
{
2726+
name: "headingsOutlineLevels",
2727+
baseName: "headingsOutlineLevels",
2728+
type: "number",
2729+
},
2730+
{
2731+
name: "expandedOutlineLevels",
2732+
baseName: "expandedOutlineLevels",
2733+
type: "number",
27092734
} ];
27102735

27112736
/**
@@ -2745,6 +2770,21 @@ export class WordProcessingLoadOptions extends LoadOptions {
27452770
*/
27462771
public hideComments: boolean;
27472772

2773+
/**
2774+
* Specifies the default level in the document outline at which to display Word bookmarks. Default is 0. Valid range is 0 to 9.
2775+
*/
2776+
public bookmarksOutlineLevel: number;
2777+
2778+
/**
2779+
* Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the document outline. Default is 0. Valid range is 0 to 9.
2780+
*/
2781+
public headingsOutlineLevels: number;
2782+
2783+
/**
2784+
* Specifies how many levels in the document outline to show expanded when the file is viewed. Default is 0. Valid range is 0 to 9. Note that this options will not work when saving to XPS.
2785+
*/
2786+
public expandedOutlineLevels: number;
2787+
27482788
public constructor(init?: Partial<WordProcessingLoadOptions>) {
27492789
super(init);
27502790
Object.assign(this, init);

src/package_version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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
@@ -25,4 +25,4 @@
2525
/**
2626
* Package version
2727
*/
28-
export const PackageVersion: string = "19.5.0";
28+
export const PackageVersion: string = "20.2.0";

test/api/test_auth_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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/api/test_conversion_api.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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
@@ -26,7 +26,12 @@ import { expect } from "chai";
2626
import "mocha";
2727
import * as TestContext from "../test_context";
2828
import { TestFile } from "../test_file";
29-
import { GetSupportedConversionTypesRequest, GetDocumentMetadataRequest, ConvertDocumentRequest, ConvertSettings, DocxConvertOptions } from "../../src/model";
29+
import { GetSupportedConversionTypesRequest,
30+
GetDocumentMetadataRequest,
31+
ConvertDocumentRequest,
32+
ConvertSettings,
33+
PdfConvertOptions,
34+
JpgConvertOptions } from "../../src/model";
3035

3136
describe("test_conversion_api", () => {
3237

@@ -71,16 +76,16 @@ describe("test_conversion_api", () => {
7176

7277
it("convert document", () => {
7378
const api = TestContext.getConvertApi();
74-
var options = new DocxConvertOptions();
79+
var options = new JpgConvertOptions();
7580
var settings = new ConvertSettings();
7681
settings.filePath = TestFile.FourPagesDocx.GetPath();
77-
settings.format = "pdf";
82+
settings.format = "jpg";
7883
settings.outputPath = TestContext.OUT_FOLDER;
7984
settings.convertOptions = options;
8085
var request = new ConvertDocumentRequest(settings);
8186
return api.convertDocument(request)
8287
.then((result) => {
83-
expect(result.length).equal(1);
88+
expect(result.length).equal(4);
8489
expect(result[0].size).greaterThan(0);
8590
});
8691
});
@@ -90,7 +95,7 @@ describe("test_conversion_api", () => {
9095

9196
it("convert document download", () => {
9297
const api = TestContext.getConvertApi();
93-
var options = new DocxConvertOptions();
98+
var options = new PdfConvertOptions();
9499
var settings = new ConvertSettings();
95100
settings.filePath =TestFile.FourPagesDocx.GetPath();
96101
settings.format = "pdf";

test/api/test_file_api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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/api/test_folder_api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2019 Aspose Pty Ltd
4+
* Copyright (c) 2003-2020 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
@@ -47,7 +47,7 @@ describe("folder_api", () => {
4747
describe("test_folder_api", () => {
4848

4949
it("TestGetFilesList", async () => {
50-
var request = new GetFilesListRequest("cad");
50+
var request = new GetFilesListRequest("WordProcessing");
5151
var response = await TestContext.getFolderApi().getFilesList(request);
5252
expect(response.value.length).greaterThan(0);
5353
});

test/api/test_storage_api.ts

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