Skip to content

Commit beed1e4

Browse files
committed
PATCH: 2d mask improvment (commit for lib release)
1 parent d5b3c8d commit beed1e4

File tree

12 files changed

+255
-3510
lines changed

12 files changed

+255
-3510
lines changed

package/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ src/models/PatchedGroupRequest.ts
115115
src/models/PatchedIfcAccessTokenRequest.ts
116116
src/models/PatchedLabelRequest.ts
117117
src/models/PatchedLayerRequest.ts
118+
src/models/PatchedMask2DRequest.ts
118119
src/models/PatchedModelRequest.ts
119120
src/models/PatchedPinRequest.ts
120121
src/models/PatchedPositioningPlanRequest.ts

package/src/apis/BcfApi.ts

Lines changed: 0 additions & 630 deletions
Large diffs are not rendered by default.

package/src/apis/CollaborationApi.ts

Lines changed: 2 additions & 1082 deletions
Large diffs are not rendered by default.

package/src/apis/ModelApi.ts

Lines changed: 63 additions & 1582 deletions
Large diffs are not rendered by default.

package/src/apis/SsoApi.ts

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ export class SsoApi extends runtime.BaseAPI {
7575
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
7676
}
7777

78-
if (this.configuration && this.configuration.accessToken) {
79-
// oauth required
80-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
81-
}
82-
83-
if (this.configuration && this.configuration.accessToken) {
84-
// oauth required
85-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
86-
}
87-
8878
if (this.configuration && this.configuration.apiKey) {
8979
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
9080
}
@@ -126,16 +116,6 @@ export class SsoApi extends runtime.BaseAPI {
126116
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
127117
}
128118

129-
if (this.configuration && this.configuration.accessToken) {
130-
// oauth required
131-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
132-
}
133-
134-
if (this.configuration && this.configuration.accessToken) {
135-
// oauth required
136-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
137-
}
138-
139119
if (this.configuration && this.configuration.apiKey) {
140120
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
141121
}
@@ -179,16 +159,6 @@ export class SsoApi extends runtime.BaseAPI {
179159
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
180160
}
181161

182-
if (this.configuration && this.configuration.accessToken) {
183-
// oauth required
184-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
185-
}
186-
187-
if (this.configuration && this.configuration.accessToken) {
188-
// oauth required
189-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
190-
}
191-
192162
if (this.configuration && this.configuration.apiKey) {
193163
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
194164
}
@@ -229,16 +199,6 @@ export class SsoApi extends runtime.BaseAPI {
229199
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
230200
}
231201

232-
if (this.configuration && this.configuration.accessToken) {
233-
// oauth required
234-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
235-
}
236-
237-
if (this.configuration && this.configuration.accessToken) {
238-
// oauth required
239-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
240-
}
241-
242202
if (this.configuration && this.configuration.apiKey) {
243203
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
244204
}
@@ -278,16 +238,6 @@ export class SsoApi extends runtime.BaseAPI {
278238
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
279239
}
280240

281-
if (this.configuration && this.configuration.accessToken) {
282-
// oauth required
283-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
284-
}
285-
286-
if (this.configuration && this.configuration.accessToken) {
287-
// oauth required
288-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
289-
}
290-
291241
if (this.configuration && this.configuration.apiKey) {
292242
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
293243
}
@@ -328,16 +278,6 @@ export class SsoApi extends runtime.BaseAPI {
328278
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
329279
}
330280

331-
if (this.configuration && this.configuration.accessToken) {
332-
// oauth required
333-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
334-
}
335-
336-
if (this.configuration && this.configuration.accessToken) {
337-
// oauth required
338-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
339-
}
340-
341281
if (this.configuration && this.configuration.apiKey) {
342282
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
343283
}

package/src/apis/WebhookApi.ts

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ export class WebhookApi extends runtime.BaseAPI {
126126
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
127127
}
128128

129-
if (this.configuration && this.configuration.accessToken) {
130-
// oauth required
131-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
132-
}
133-
134-
if (this.configuration && this.configuration.accessToken) {
135-
// oauth required
136-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
137-
}
138-
139129
if (this.configuration && this.configuration.apiKey) {
140130
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
141131
}
@@ -183,16 +173,6 @@ export class WebhookApi extends runtime.BaseAPI {
183173
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
184174
}
185175

186-
if (this.configuration && this.configuration.accessToken) {
187-
// oauth required
188-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
189-
}
190-
191-
if (this.configuration && this.configuration.accessToken) {
192-
// oauth required
193-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
194-
}
195-
196176
if (this.configuration && this.configuration.apiKey) {
197177
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
198178
}
@@ -242,16 +222,6 @@ export class WebhookApi extends runtime.BaseAPI {
242222
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
243223
}
244224

245-
if (this.configuration && this.configuration.accessToken) {
246-
// oauth required
247-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
248-
}
249-
250-
if (this.configuration && this.configuration.accessToken) {
251-
// oauth required
252-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
253-
}
254-
255225
if (this.configuration && this.configuration.apiKey) {
256226
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
257227
}
@@ -295,16 +265,6 @@ export class WebhookApi extends runtime.BaseAPI {
295265
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
296266
}
297267

298-
if (this.configuration && this.configuration.accessToken) {
299-
// oauth required
300-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
301-
}
302-
303-
if (this.configuration && this.configuration.accessToken) {
304-
// oauth required
305-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
306-
}
307-
308268
if (this.configuration && this.configuration.apiKey) {
309269
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
310270
}
@@ -352,16 +312,6 @@ export class WebhookApi extends runtime.BaseAPI {
352312
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
353313
}
354314

355-
if (this.configuration && this.configuration.accessToken) {
356-
// oauth required
357-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
358-
}
359-
360-
if (this.configuration && this.configuration.accessToken) {
361-
// oauth required
362-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
363-
}
364-
365315
if (this.configuration && this.configuration.apiKey) {
366316
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
367317
}
@@ -406,16 +356,6 @@ export class WebhookApi extends runtime.BaseAPI {
406356
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
407357
}
408358

409-
if (this.configuration && this.configuration.accessToken) {
410-
// oauth required
411-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
412-
}
413-
414-
if (this.configuration && this.configuration.accessToken) {
415-
// oauth required
416-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
417-
}
418-
419359
if (this.configuration && this.configuration.apiKey) {
420360
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
421361
}
@@ -460,16 +400,6 @@ export class WebhookApi extends runtime.BaseAPI {
460400
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
461401
}
462402

463-
if (this.configuration && this.configuration.accessToken) {
464-
// oauth required
465-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
466-
}
467-
468-
if (this.configuration && this.configuration.accessToken) {
469-
// oauth required
470-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
471-
}
472-
473403
if (this.configuration && this.configuration.apiKey) {
474404
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
475405
}
@@ -510,16 +440,6 @@ export class WebhookApi extends runtime.BaseAPI {
510440
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
511441
}
512442

513-
if (this.configuration && this.configuration.accessToken) {
514-
// oauth required
515-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
516-
}
517-
518-
if (this.configuration && this.configuration.accessToken) {
519-
// oauth required
520-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
521-
}
522-
523443
if (this.configuration && this.configuration.apiKey) {
524444
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
525445
}
@@ -574,16 +494,6 @@ export class WebhookApi extends runtime.BaseAPI {
574494
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
575495
}
576496

577-
if (this.configuration && this.configuration.accessToken) {
578-
// oauth required
579-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
580-
}
581-
582-
if (this.configuration && this.configuration.accessToken) {
583-
// oauth required
584-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
585-
}
586-
587497
if (this.configuration && this.configuration.apiKey) {
588498
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
589499
}
@@ -635,16 +545,6 @@ export class WebhookApi extends runtime.BaseAPI {
635545
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
636546
}
637547

638-
if (this.configuration && this.configuration.accessToken) {
639-
// oauth required
640-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
641-
}
642-
643-
if (this.configuration && this.configuration.accessToken) {
644-
// oauth required
645-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
646-
}
647-
648548
if (this.configuration && this.configuration.apiKey) {
649549
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
650550
}
@@ -696,16 +596,6 @@ export class WebhookApi extends runtime.BaseAPI {
696596
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
697597
}
698598

699-
if (this.configuration && this.configuration.accessToken) {
700-
// oauth required
701-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
702-
}
703-
704-
if (this.configuration && this.configuration.accessToken) {
705-
// oauth required
706-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
707-
}
708-
709599
if (this.configuration && this.configuration.apiKey) {
710600
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
711601
}
@@ -753,16 +643,6 @@ export class WebhookApi extends runtime.BaseAPI {
753643
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // ApiKey authentication
754644
}
755645

756-
if (this.configuration && this.configuration.accessToken) {
757-
// oauth required
758-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
759-
}
760-
761-
if (this.configuration && this.configuration.accessToken) {
762-
// oauth required
763-
headerParameters["Authorization"] = await this.configuration.accessToken("BIMData_Connect", []);
764-
}
765-
766646
if (this.configuration && this.configuration.apiKey) {
767647
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // Bearer authentication
768648
}

package/src/models/Mask2D.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@ export interface Mask2D {
3131
* @memberof Mask2D
3232
*/
3333
crop_path: Array<Array<number>>;
34+
/**
35+
* Whether the mask is grayscale
36+
* @type {boolean}
37+
* @memberof Mask2D
38+
*/
39+
grayscale?: boolean;
40+
/**
41+
* Opacity of the mask (0-1)
42+
* @type {number}
43+
* @memberof Mask2D
44+
*/
45+
opacity?: number | null;
46+
/**
47+
* Brightness of the mask
48+
* @type {number}
49+
* @memberof Mask2D
50+
*/
51+
brightness?: number | null;
52+
/**
53+
* Contrast of the mask
54+
* @type {number}
55+
* @memberof Mask2D
56+
*/
57+
contrast?: number | null;
3458
/**
3559
* Creation date
3660
* @type {Date}
@@ -57,6 +81,10 @@ export function Mask2DFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ma
5781

5882
'id': json['id'],
5983
'crop_path': json['crop_path'],
84+
'grayscale': !exists(json, 'grayscale') ? undefined : json['grayscale'],
85+
'opacity': !exists(json, 'opacity') ? undefined : json['opacity'],
86+
'brightness': !exists(json, 'brightness') ? undefined : json['brightness'],
87+
'contrast': !exists(json, 'contrast') ? undefined : json['contrast'],
6088
'created_at': (new Date(json['created_at'])),
6189
'updated_at': (new Date(json['updated_at'])),
6290
};
@@ -72,6 +100,10 @@ export function Mask2DToJSON(value?: Mask2D | null): any {
72100
return {
73101

74102
'crop_path': value.crop_path,
103+
'grayscale': value.grayscale,
104+
'opacity': value.opacity,
105+
'brightness': value.brightness,
106+
'contrast': value.contrast,
75107
};
76108
}
77109

0 commit comments

Comments
 (0)