Skip to content

Commit df9e925

Browse files
committed
Generated Model v18.9
1 parent 582fd90 commit df9e925

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+161
-137
lines changed

src/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class OAuth implements IAuthentication {
7171
const requestOptions: request.Options = {
7272
method: "POST",
7373
json: true,
74-
uri: configuration.baseUrl.replace("/v1.1", "") + "/oauth2/token",
74+
uri: configuration.baseUrl.replace("/v2.0", "") + "/oauth2/token",
7575
form: {
7676
grant_type: "client_credentials",
7777
client_id: configuration.appSID,
@@ -93,7 +93,7 @@ export class OAuth implements IAuthentication {
9393
const requestOptions: request.Options = {
9494
method: "POST",
9595
json: true,
96-
uri: configuration.baseUrl.replace("/v1.1", "") + "/oauth2/token",
96+
uri: configuration.baseUrl.replace("/v2.0", "") + "/oauth2/token",
9797
form: {
9898
grant_type: "refresh_token",
9999
refresh_token: this.refreshToken,

src/models/annotation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
import { VerticalAlignment } from "./verticalAlignment";
2323
import { HorizontalAlignment } from "./horizontalAlignment";
24+
import { RectanglePdf } from "./rectanglePdf";
25+
import { AnnotationFlags } from "./annotationFlags";
2426
import { LinkElement } from "./linkElement";
2527

2628
/**

src/models/annotationFlags.ts

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,16 @@
1919
*
2020
*/
2121

22-
23-
/**
24-
* A set of flags specifying various characteristics of the annotation.
25-
*/
26-
export class AnnotationFlags {
27-
28-
static discriminator = undefined;
29-
30-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31-
];
32-
33-
static getAttributeTypeMap() {
34-
return AnnotationFlags.attributeTypeMap;
35-
}
22+
export enum AnnotationFlags {
23+
Default = 'Default',
24+
Invisible = 'Invisible',
25+
Hidden = 'Hidden',
26+
Print = 'Print',
27+
NoZoom = 'NoZoom',
28+
NoRotate = 'NoRotate',
29+
NoView = 'NoView',
30+
ReadOnly = 'ReadOnly',
31+
Locked = 'Locked',
32+
ToggleNoView = 'ToggleNoView',
33+
LockedContents = 'LockedContents',
3634
}
37-
38-

src/models/annotationInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*
2020
*/
2121

22+
import { AnnotationType } from "./annotationType";
2223
import { Annotation } from "./annotation";
2324

2425
/**

src/models/annotationState.ts

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,13 @@
1919
*
2020
*/
2121

22-
23-
/**
24-
* The enumeration of states to which the original annotation can be set.
25-
*/
26-
export class AnnotationState {
27-
28-
static discriminator = undefined;
29-
30-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31-
];
32-
33-
static getAttributeTypeMap() {
34-
return AnnotationState.attributeTypeMap;
35-
}
22+
export enum AnnotationState {
23+
Undefined = 'Undefined',
24+
Marked = 'Marked',
25+
Unmarked = 'Unmarked',
26+
Accepted = 'Accepted',
27+
Rejected = 'Rejected',
28+
Cancelled = 'Cancelled',
29+
Completed = 'Completed',
30+
None = 'None',
3631
}
37-
38-

src/models/annotationType.ts

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,33 @@
1919
*
2020
*/
2121

22-
23-
/**
24-
*
25-
*/
26-
export class AnnotationType {
27-
28-
static discriminator = undefined;
29-
30-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
31-
];
32-
33-
static getAttributeTypeMap() {
34-
return AnnotationType.attributeTypeMap;
35-
}
22+
export enum AnnotationType {
23+
Text = 'Text',
24+
Circle = 'Circle',
25+
Polygon = 'Polygon',
26+
PolyLine = 'PolyLine',
27+
Line = 'Line',
28+
Square = 'Square',
29+
FreeText = 'FreeText',
30+
Highlight = 'Highlight',
31+
Underline = 'Underline',
32+
Squiggly = 'Squiggly',
33+
StrikeOut = 'StrikeOut',
34+
Caret = 'Caret',
35+
Ink = 'Ink',
36+
Link = 'Link',
37+
Popup = 'Popup',
38+
FileAttachment = 'FileAttachment',
39+
Sound = 'Sound',
40+
Movie = 'Movie',
41+
Screen = 'Screen',
42+
Widget = 'Widget',
43+
Watermark = 'Watermark',
44+
TrapNet = 'TrapNet',
45+
PrinterMark = 'PrinterMark',
46+
Redaction = 'Redaction',
47+
Stamp = 'Stamp',
48+
RichMedia = 'RichMedia',
49+
Unknown = 'Unknown',
50+
PDF3D = 'PDF3D',
3651
}
37-
38-

src/models/annotationsInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*
2020
*/
2121

22+
import { AnnotationInfo } from "./annotationInfo";
2223
import { LinkElement } from "./linkElement";
2324

2425
/**

src/models/annotationsInfoResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*
2020
*/
2121

22+
import { AnnotationsInfo } from "./annotationsInfo";
23+
import { AsposeResponse } from "./asposeResponse";
2224

2325
export class AnnotationsInfoResponse extends AsposeResponse {
2426
'annotations': AnnotationsInfo;

src/models/attachmentResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*/
2121

2222
import { Attachment } from "./attachment";
23+
import { AsposeResponse } from "./asposeResponse";
2324

2425
export class AttachmentResponse extends AsposeResponse {
2526
'attachment': Attachment;

src/models/attachmentsResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*/
2121

2222
import { Attachments } from "./attachments";
23+
import { AsposeResponse } from "./asposeResponse";
2324

2425
export class AttachmentsResponse extends AsposeResponse {
2526
'attachments': Attachments;

0 commit comments

Comments
 (0)