Skip to content

Commit

Permalink
Updated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
product-team committed Mar 31, 2020
1 parent f355101 commit ddf246e
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 42 deletions.
87 changes: 49 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
}
}
135 changes: 135 additions & 0 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<FieldLabel>) {

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.
*/
Expand Down Expand Up @@ -1238,6 +1306,16 @@ export class EmailLoadOptions extends LoadOptions {
name: "convertAttachments",
baseName: "convertAttachments",
type: "boolean",
},
{
name: "fieldLabels",
baseName: "fieldLabels",
type: "Array<FieldLabel>",
},
{
name: "preserveOriginalDate",
baseName: "preserveOriginalDate",
type: "boolean",
} ];

/**
Expand Down Expand Up @@ -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<FieldLabel>;

/**
* 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<EmailLoadOptions>) {
super(init);
Object.assign(this, init);
Expand Down Expand Up @@ -1357,6 +1445,11 @@ export class HtmlConvertOptions extends ConvertOptions {
baseName: "fixedLayout",
type: "boolean",
},
{
name: "fixedLayoutShowBorders",
baseName: "fixedLayoutShowBorders",
type: "boolean",
},
{
name: "zoom",
baseName: "zoom",
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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<HtmlLoadOptions>) {
super(init);
Object.assign(this, init);
}
}

/**
* Options for to Image conversion
*/
Expand Down Expand Up @@ -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,
Expand All @@ -6443,6 +6576,7 @@ const typeMap = {
DiscUsage,
DocumentMetadata,
ErrorDetails,
FieldLabel,
FileVersions,
FilesList,
FilesUploadResult,
Expand All @@ -6460,6 +6594,7 @@ const typeMap = {
EmailLoadOptions,
FileVersion,
HtmlConvertOptions,
HtmlLoadOptions,
ImageConvertOptions,
ImageLoadOptions,
OneLoadOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/package_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
/**
* Package version
*/
export const PackageVersion: string = "20.2.0";
export const PackageVersion: string = "20.3.0";

0 comments on commit ddf246e

Please sign in to comment.