Skip to content

Commit 68b9b35

Browse files
committed
Discriminator field removed from model constructors
1 parent 4241e4f commit 68b9b35

File tree

191 files changed

+1203
-344
lines changed

Some content is hidden

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

191 files changed

+1203
-344
lines changed

src/model/ai-bcr-image-storage-file.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@ export class AiBcrImageStorageFile extends model.AiBcrImage {
5959
* @param file Image location
6060
*/
6161
public constructor(
62+
6263
isSingle?: boolean,
63-
file?: model.StorageFileLocation) {
64+
file?: model.StorageFileLocation
65+
) {
6466
super();
6567
this.isSingle = isSingle;
6668
this.file = file;
69+
6770
}
6871
}
6972

73+
74+

src/model/ai-bcr-image.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,14 @@ export class AiBcrImage {
5858
* @param isSingle Determines that image contains single VCard or more.
5959
*/
6060
public constructor(
61-
isSingle?: boolean) {
61+
62+
isSingle?: boolean
63+
) {
6264

6365
this.isSingle = isSingle;
66+
6467
}
6568
}
6669

70+
71+

src/model/ai-bcr-options.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@ export class AiBcrOptions {
6868
* @param countries Comma-separated codes of countries.
6969
*/
7070
public constructor(
71+
7172
languages?: string,
72-
countries?: string) {
73+
countries?: string
74+
) {
7375

7476
this.languages = languages;
7577
this.countries = countries;
78+
7679
}
7780
}
7881

82+
83+

src/model/ai-bcr-parse-storage-request.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,18 @@ export class AiBcrParseStorageRequest {
7878
* @param options Recognition options.
7979
*/
8080
public constructor(
81+
8182
outFolder?: model.StorageFolderLocation,
8283
images?: Array< model.AiBcrImageStorageFile >,
83-
options?: model.AiBcrOptions) {
84+
options?: model.AiBcrOptions
85+
) {
8486

8587
this.outFolder = outFolder;
8688
this.images = images;
8789
this.options = options;
90+
8891
}
8992
}
9093

94+
95+

src/model/ai-name-component-list.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ export class AiNameComponentList extends model.ListResponseOfAiNameComponent {
5050
* @param value
5151
*/
5252
public constructor(
53-
value?: Array< model.AiNameComponent >) {
53+
54+
value?: Array< model.AiNameComponent >
55+
) {
5456
super();
5557
this.value = value;
58+
5659
}
5760
}
5861

62+
63+

src/model/ai-name-component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,20 @@ export class AiNameComponent {
8888
* @param position Component position from 0
8989
*/
9090
public constructor(
91+
9192
value?: string,
9293
category?: string,
9394
score?: number,
94-
position?: number) {
95+
position?: number
96+
) {
9597

9698
this.value = value;
9799
this.category = category;
98100
this.score = score;
99101
this.position = position;
102+
100103
}
101104
}
102105

106+
107+

src/model/ai-name-cultural-context.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,22 @@ export class AiNameCulturalContext {
9898
* @param style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
9999
*/
100100
public constructor(
101+
101102
language?: string,
102103
location?: string,
103104
script?: string,
104105
encoding?: string,
105-
style?: string) {
106+
style?: string
107+
) {
106108

107109
this.language = language;
108110
this.location = location;
109111
this.script = script;
110112
this.encoding = encoding;
111113
this.style = style;
114+
112115
}
113116
}
114117

118+
119+

src/model/ai-name-extracted-component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@ export class AiNameExtractedComponent {
6868
* @param value Extracted value
6969
*/
7070
public constructor(
71+
7172
category?: string,
72-
value?: string) {
73+
value?: string
74+
) {
7375

7476
this.category = category;
7577
this.value = value;
78+
7679
}
7780
}
7881

82+
83+

src/model/ai-name-extracted-list.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ export class AiNameExtractedList extends model.ListResponseOfAiNameExtracted {
5050
* @param value
5151
*/
5252
public constructor(
53-
value?: Array< model.AiNameExtracted >) {
53+
54+
value?: Array< model.AiNameExtracted >
55+
) {
5456
super();
5557
this.value = value;
58+
5659
}
5760
}
5861

62+
63+

src/model/ai-name-extracted.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@ export class AiNameExtracted {
6868
* @param score Extracted name score
6969
*/
7070
public constructor(
71+
7172
name?: Array< model.AiNameExtractedComponent >,
72-
score?: number) {
73+
score?: number
74+
) {
7375

7476
this.name = name;
7577
this.score = score;
78+
7679
}
7780
}
7881

82+
83+

0 commit comments

Comments
 (0)