Skip to content

Commit 171eeba

Browse files
committed
Updated sources
1 parent 77a224b commit 171eeba

17 files changed

+837
-1170
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groupdocs-conversion-cloud",
3-
"version": "21.12.0",
3+
"version": "22.3.0",
44
"description": "GroupDocs.Conversion Cloud SDK for Node.js",
55
"homepage": "https://products.groupdocs.cloud/conversion",
66
"author": {
@@ -40,7 +40,7 @@
4040
"@types/mocha": "^5.2.7",
4141
"@types/node": "^12.0.8",
4242
"chai": "^4.2.0",
43-
"mocha": "^7.0.1",
43+
"mocha": "^9.2.1",
4444
"ts-node": "^8.6.2",
4545
"tslint": "^5.17.0",
4646
"typescript": "^3.7.5"

src/api_client.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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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

src/api_error.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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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

src/auth.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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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

src/configuration.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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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

src/conversion_api.ts

Lines changed: 9 additions & 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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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
@@ -161,6 +161,14 @@ export class ConvertApi {
161161
};
162162
}
163163

164+
if (requestObj.loadOptions !== undefined) {
165+
formParams.loadOptions = JSON.stringify(requestObj.loadOptions);
166+
}
167+
168+
if (requestObj.convertOptions !== undefined) {
169+
formParams.convertOptions = JSON.stringify(requestObj.convertOptions);
170+
}
171+
164172
const requestOptions: request.Options = {
165173
method: "PUT",
166174
qs: queryParameters,

src/model.ts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2003-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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
@@ -656,7 +656,11 @@ export class LoadOptions {
656656
* Attribute type map
657657
*/
658658
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
659-
];
659+
{
660+
name: "format",
661+
baseName: "format",
662+
type: "string",
663+
} ];
660664

661665
/**
662666
* Returns attribute type map
@@ -665,6 +669,11 @@ export class LoadOptions {
665669
return LoadOptions.attributeTypeMap;
666670
}
667671

672+
/**
673+
* The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
674+
*/
675+
public format: string;
676+
668677
public constructor(init?: Partial<LoadOptions>) {
669678

670679
Object.assign(this, init);
@@ -6932,12 +6941,24 @@ export class ConvertDocumentDirectRequest {
69326941
* Number of pages to convert
69336942
*/
69346943
public pagesCount: number;
6944+
6945+
/**
6946+
* Input file load options
6947+
*/
6948+
public loadOptions: LoadOptions;
6949+
6950+
/**
6951+
* Conversion options
6952+
*/
6953+
public convertOptions: ConvertOptions;
69356954

6936-
public constructor(format: string, file: Buffer, fromPage?: number, pagesCount?: number) {
6955+
public constructor(format: string, file: Buffer, fromPage?: number, pagesCount?: number, loadOptions?: LoadOptions, convertOptions?: ConvertOptions) {
69376956
this.format = format;
69386957
this.file = file;
69396958
this.fromPage = fromPage;
69406959
this.pagesCount = pagesCount;
6960+
this.loadOptions = loadOptions;
6961+
this.convertOptions = convertOptions;
69416962
}
69426963
}
69436964

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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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
@@ -25,4 +25,4 @@
2525
/**
2626
* Package version
2727
*/
28-
export const PackageVersion: string = "21.12.0";
28+
export const PackageVersion: string = "22.3.0";

src/serializer.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-2021 Aspose Pty Ltd
4+
* Copyright (c) 2003-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

0 commit comments

Comments
 (0)