diff --git a/package-lock.json b/package-lock.json index 8737448..1fa7d86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "groupdocs-conversion-cloud", - "version": "20.2.0", + "version": "20.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -13,14 +13,20 @@ "@babel/highlight": "^7.8.3" } }, + "@babel/helper-validator-identifier": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.0.tgz", + "integrity": "sha512-6G8bQKjOh+of4PV/ThDm/rRqlU7+IGoJuofpagU5GlEl29Vv0RGqqt86ZGRV8ZuSOY3o+8yXl5y782SMcG7SHw==", + "dev": true + }, "@babel/highlight": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", - "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", + "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", "dev": true, "requires": { + "@babel/helper-validator-identifier": "^7.9.0", "chalk": "^2.0.0", - "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, @@ -139,6 +145,25 @@ "safer-buffer": "~2.1.0" } }, + "asposestoragecloud": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/asposestoragecloud/-/asposestoragecloud-1.0.5.tgz", + "integrity": "sha1-KEbQoYfrd1/eDWokyo0Q6kwz91Q=", + "dev": true, + "requires": { + "combined-stream": "~1.0.5", + "isstream": "~0.1.2", + "node-uuid": "~1.4.3" + }, + "dependencies": { + "node-uuid": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.8.tgz", + "integrity": "sha1-sEDrCSOWivq/jTL7HxfxFn/auQc=", + "dev": true + } + } + }, "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", @@ -359,6 +384,12 @@ "delayed-stream": "~1.0.0" } }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -479,12 +510,6 @@ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -587,9 +612,9 @@ } }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -1140,9 +1165,9 @@ "dev": true }, "resolve": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz", - "integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.1.tgz", + "integrity": "sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w==", "dev": true, "requires": { "path-parse": "^1.0.6" @@ -1299,15 +1324,15 @@ } }, "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==", "dev": true }, "tslint": { - "version": "5.20.1", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz", - "integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.0.tgz", + "integrity": "sha512-fXjYd/61vU6da04E505OZQGb2VCN2Mq3doeWcOIryuG+eqdmFUXTYVwdhnbEu2k46LNLgUYt9bI5icQze/j0bQ==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -1321,22 +1346,8 @@ "mkdirp": "^0.5.1", "resolve": "^1.3.2", "semver": "^5.3.0", - "tslib": "^1.8.0", + "tslib": "^1.10.0", "tsutils": "^2.29.0" - }, - "dependencies": { - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - } } }, "tsutils": { diff --git a/package.json b/package.json index 5bfc13d..a29f58a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "groupdocs-conversion-cloud", - "version": "20.2.0", + "version": "20.3.0", "description": "GroupDocs.Conversion Cloud SDK for Node.js", "homepage": "https://products.groupdocs.cloud/conversion", "author": { @@ -39,10 +39,11 @@ "@types/chai": "^4.2.9", "@types/mocha": "^2.2.44", "@types/node": "^10.17.15", + "asposestoragecloud": "^1.0.5", "chai": "^4.2.0", "mocha": "^7.0.1", "ts-node": "^8.6.2", - "tslint": "^5.20.1", + "tslint": "^6.1.0", "typescript": "^3.7.5" } -} +} \ No newline at end of file diff --git a/src/model.ts b/src/model.ts index 92aa923..eee6e49 100644 --- a/src/model.ts +++ b/src/model.ts @@ -412,6 +412,74 @@ export class ErrorDetails { } } +/** + * Represents field label + */ +// tslint:disable: completed-docs +export class FieldLabel { + + /** + * Attribute type map + */ + public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + name: "field", + baseName: "field", + type: "FieldLabel.FieldEnum", + }, + { + name: "label", + baseName: "label", + type: "string", + } ]; + + /** + * Returns attribute type map + */ + public static getAttributeTypeMap() { + return FieldLabel.attributeTypeMap; + } + + /** + * The field name + */ + public field: FieldLabel.FieldEnum; + + /** + * The label e.g. \"Sender\" + */ + public label: string; + + public constructor(init?: Partial) { + + Object.assign(this, init); + } +} + +// tslint:disable:quotemark +// tslint:disable-next-line:no-namespace +export namespace FieldLabel { + export enum FieldEnum { + Start = 'Start' as any, + TabField = 'TabField' as any, + Subject = 'Subject' as any, + ShowTimeAs = 'ShowTimeAs' as any, + Sent = 'Sent' as any, + RequiredAttendees = 'RequiredAttendees' as any, + RecurrencePattern = 'RecurrencePattern' as any, + Recurrence = 'Recurrence' as any, + PageHeader = 'PageHeader' as any, + Organizer = 'Organizer' as any, + Location = 'Location' as any, + Importance = 'Importance' as any, + From = 'From' as any, + End = 'End' as any, + Bcc = 'Bcc' as any, + Attachments = 'Attachments' as any, + To = 'To' as any, + } +} +// tslint:enable:quotemark /** * File versions FileVersion. */ @@ -1238,6 +1306,16 @@ export class EmailLoadOptions extends LoadOptions { name: "convertAttachments", baseName: "convertAttachments", type: "boolean", + }, + { + name: "fieldLabels", + baseName: "fieldLabels", + type: "Array", + }, + { + name: "preserveOriginalDate", + baseName: "preserveOriginalDate", + type: "boolean", } ]; /** @@ -1287,6 +1365,16 @@ export class EmailLoadOptions extends LoadOptions { */ public convertAttachments: boolean; + /** + * The mapping between email message field and field text representation + */ + public fieldLabels: Array; + + /** + * Defines whether need to keep original date header string in mail message when saving or not (Default value is true) + */ + public preserveOriginalDate: boolean; + public constructor(init?: Partial) { super(init); Object.assign(this, init); @@ -1357,6 +1445,11 @@ export class HtmlConvertOptions extends ConvertOptions { baseName: "fixedLayout", type: "boolean", }, + { + name: "fixedLayoutShowBorders", + baseName: "fixedLayoutShowBorders", + type: "boolean", + }, { name: "zoom", baseName: "zoom", @@ -1385,6 +1478,11 @@ export class HtmlConvertOptions extends ConvertOptions { */ public fixedLayout: boolean; + /** + * Show page borders when converting to fixed layout. Default is True + */ + public fixedLayoutShowBorders: boolean; + /** * Specifies the zoom level in percentage. Default is 100. */ @@ -1401,6 +1499,40 @@ export class HtmlConvertOptions extends ConvertOptions { } } +/** + * Html document load options + */ +// tslint:disable: completed-docs +export class HtmlLoadOptions extends LoadOptions { + + /** + * Attribute type map + */ + public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + name: "pageNumbering", + baseName: "pageNumbering", + type: "boolean", + } ]; + + /** + * Returns attribute type map + */ + public static getAttributeTypeMap() { + return super.getAttributeTypeMap().concat(HtmlLoadOptions.attributeTypeMap); + } + + /** + * Enable or disable generation of page numbering in converted document. Default: false + */ + public pageNumbering: boolean; + + public constructor(init?: Partial) { + super(init); + Object.assign(this, init); + } +} + /** * Options for to Image conversion */ @@ -6423,6 +6555,7 @@ export namespace TifConvertOptions { } // tslint:enable:quotemark const enumsMap = { + "FieldLabel.FieldEnum": FieldLabel.FieldEnum, "ImageConvertOptions.FlipModeEnum": ImageConvertOptions.FlipModeEnum, "PdfConvertOptions.PdfFormatEnum": PdfConvertOptions.PdfFormatEnum, "PdfConvertOptions.DirectionEnum": PdfConvertOptions.DirectionEnum, @@ -6443,6 +6576,7 @@ const typeMap = { DiscUsage, DocumentMetadata, ErrorDetails, + FieldLabel, FileVersions, FilesList, FilesUploadResult, @@ -6460,6 +6594,7 @@ const typeMap = { EmailLoadOptions, FileVersion, HtmlConvertOptions, + HtmlLoadOptions, ImageConvertOptions, ImageLoadOptions, OneLoadOptions, diff --git a/src/package_version.ts b/src/package_version.ts index 31c521d..f43e082 100644 --- a/src/package_version.ts +++ b/src/package_version.ts @@ -25,4 +25,4 @@ /** * Package version */ -export const PackageVersion: string = "20.2.0"; +export const PackageVersion: string = "20.3.0";