Skip to content

Commit 709681b

Browse files
committed
Updated sources
1 parent aa06733 commit 709681b

5 files changed

Lines changed: 66 additions & 10 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "groupdocs-conversion-cloud",
3-
"version": "23.9.0",
3+
"version": "23.10.0",
44
"description": "GroupDocs.Conversion Cloud SDK for Node.js",
55
"homepage": "https://products.groupdocs.cloud/conversion",
66
"author": {

src/conversion_api.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,27 @@ export class LicenseApi {
742742
return Promise.resolve(result);
743743
}
744744

745+
/**
746+
* Get license information
747+
* @param requestObj contains request parameters
748+
*/
749+
public async getLicenseInfo(): Promise<model.LicenseInfo> {
750+
751+
const localVarPath = this.configuration.getServerUrl() + "/conversion/license";
752+
const queryParameters: any = {};
753+
754+
const requestOptions: axios.AxiosRequestConfig = {
755+
method: "GET",
756+
params: queryParameters,
757+
url: localVarPath,
758+
responseType: "json",
759+
};
760+
761+
const response = await invokeApiMethod(requestOptions, this.configuration);
762+
const result = Serializer.deserialize(response.data, "LicenseInfo");
763+
return Promise.resolve(result);
764+
}
765+
745766
}
746767
/**
747768
* GroupDocs.Conversion Cloud API

src/model.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,40 @@ export class FilesUploadResult {
747747
}
748748
}
749749

750+
/**
751+
* Current license information
752+
*/
753+
// tslint:disable: completed-docs
754+
export class LicenseInfo {
755+
756+
/**
757+
* Attribute type map
758+
*/
759+
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
760+
{
761+
name: "isLicensed",
762+
baseName: "isLicensed",
763+
type: "boolean",
764+
} ];
765+
766+
/**
767+
* Returns attribute type map
768+
*/
769+
public static getAttributeTypeMap() {
770+
return LicenseInfo.attributeTypeMap;
771+
}
772+
773+
/**
774+
* True, if license was applied and valid, otherwise False
775+
*/
776+
public isLicensed: boolean;
777+
778+
public constructor(init?: Partial<LicenseInfo>) {
779+
780+
Object.assign(this, init);
781+
}
782+
}
783+
750784
/**
751785
* Load document options
752786
*/
@@ -6711,6 +6745,7 @@ const typeMap = {
67116745
FileVersions,
67126746
FilesList,
67136747
FilesUploadResult,
6748+
LicenseInfo,
67146749
LoadOptions,
67156750
ModelError,
67166751
ObjectExist,

src/package_version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
/**
2626
* Package version
2727
*/
28-
export const PackageVersion: string = "23.9.0";
28+
export const PackageVersion: string = "23.10.0";

0 commit comments

Comments
 (0)