bimplus-websdk 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -118
- package/clean +3 -3
- package/dist/bimplus-websdk.js +1 -1
- package/eslint.config.mjs +35 -35
- package/install +3 -3
- package/jsinspect +20 -20
- package/package.json +70 -70
- package/reinstall +4 -4
- package/types/bimplus-websdk.d.ts +425 -420
|
@@ -1,420 +1,425 @@
|
|
|
1
|
-
declare module 'bimplus-websdk' {
|
|
2
|
-
|
|
3
|
-
export type HTML = string;
|
|
4
|
-
export type Guid = string;
|
|
5
|
-
export type ProjectId = Guid;
|
|
6
|
-
export type ModelId = Guid;
|
|
7
|
-
export type LayerId = Guid;
|
|
8
|
-
export type DivisionTopologyId = Guid;
|
|
9
|
-
export type RevisionId = string;
|
|
10
|
-
export type VisualObjectId = string;
|
|
11
|
-
|
|
12
|
-
export type TeamSlug = string;
|
|
13
|
-
export type AccessToken = string;
|
|
14
|
-
export type AccessTokenType = string;
|
|
15
|
-
|
|
16
|
-
export function createDefaultConfig(env?: string): ApiConfig;
|
|
17
|
-
|
|
18
|
-
export interface ApiConfig {
|
|
19
|
-
protocol: string;
|
|
20
|
-
host: string;
|
|
21
|
-
version?: string;
|
|
22
|
-
cache?: boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface AuthorizeData {
|
|
26
|
-
access_token: string;
|
|
27
|
-
}
|
|
28
|
-
export class Authorize {
|
|
29
|
-
constructor(api: Api);
|
|
30
|
-
|
|
31
|
-
// Define methods and properties of the Teams class here
|
|
32
|
-
|
|
33
|
-
post(username: string, password: string, applicationId: string): Promise<AuthorizeData>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface TeamData {
|
|
37
|
-
slug: string;
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface Subscription {
|
|
43
|
-
settingName?: string;
|
|
44
|
-
expirationDate?: string;
|
|
45
|
-
id?: string;
|
|
46
|
-
teamId?: string;
|
|
47
|
-
value?: string;
|
|
48
|
-
status?: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class Teams {
|
|
52
|
-
constructor(api: Api);
|
|
53
|
-
|
|
54
|
-
slug: string;
|
|
55
|
-
|
|
56
|
-
// Define methods and properties of the Teams class here
|
|
57
|
-
|
|
58
|
-
get(teamId?: string, filterEmpty?: boolean): Promise<TeamData[]>;
|
|
59
|
-
getAccountSettings(teamId?: string): Promise<Array<Subscription>>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface UserData {
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
preferedLanguage: string;
|
|
66
|
-
}
|
|
67
|
-
export class User {
|
|
68
|
-
constructor(api: Api);
|
|
69
|
-
|
|
70
|
-
// Define methods and properties of the Teams class here
|
|
71
|
-
|
|
72
|
-
get(token: AccessToken | null): Promise<UserData>;
|
|
73
|
-
put(userdata): Promise<UserData>;
|
|
74
|
-
getSubscriptions(): Promise<Array<Subscription>>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
type AdditionalParams = {
|
|
78
|
-
[key: string]: string; // This allows key-value pairs as in json string
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface Project {
|
|
82
|
-
id: ProjectId;
|
|
83
|
-
name: string;
|
|
84
|
-
teamSlug: TeamSlug;
|
|
85
|
-
teamName: string | undefined;
|
|
86
|
-
rights: object;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export class Projects {
|
|
90
|
-
constructor(api: Api);
|
|
91
|
-
get(id?: ProjectId, noDisciplines?: boolean, teamSlug?: TeamSlug, alsoRecycleBin?: boolean, additionalParams?: AdditionalParams): Promise<Project | Project[]>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface ConnexisData {
|
|
95
|
-
projectId: ProjectId,
|
|
96
|
-
modelId: ModelId,
|
|
97
|
-
elements: Guid[];
|
|
98
|
-
settings: {
|
|
99
|
-
connectionMethod: string;
|
|
100
|
-
createRevision?: boolean;
|
|
101
|
-
designCode: string;
|
|
102
|
-
replace: string;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface Sds2ConnexisData {
|
|
107
|
-
SDS2: ConnexisData;
|
|
108
|
-
}
|
|
109
|
-
// export interface IdeaStaticaConnexisData {
|
|
110
|
-
// IdeaStatica: ConnexisData;
|
|
111
|
-
// }
|
|
112
|
-
|
|
113
|
-
export class Connexis {
|
|
114
|
-
constructor(api: Api);
|
|
115
|
-
post(data: Sds2ConnexisData /* | IdeaStaticaConnexisData */) : Promise<void>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface ObjectFilter {
|
|
119
|
-
id?: string
|
|
120
|
-
module: string
|
|
121
|
-
category: string
|
|
122
|
-
disciplineID: string
|
|
123
|
-
name: string
|
|
124
|
-
filterString: string
|
|
125
|
-
isDefault: boolean
|
|
126
|
-
disableSortByModels: boolean
|
|
127
|
-
readableValues?: Record<string, string>
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export type ObjectFiltersResponse = Array<ObjectFilter>;
|
|
131
|
-
|
|
132
|
-
export class ObjectFilters {
|
|
133
|
-
constructor(api: Api);
|
|
134
|
-
get(layerId: Guid | undefined, projectId: Guid | undefined): Promise<ObjectFiltersResponse>
|
|
135
|
-
getSelectionFilteredObjects(selectionId: Guid, filterId: Guid, properties: boolean | undefined, topology: boolean | undefined): Promise<ObjectFilterStructureResponse>
|
|
136
|
-
post(data: string, projectId: string): Promise<ObjectFilter>;
|
|
137
|
-
delete(id: string) : void;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface ObjectsTopologyNode { }
|
|
141
|
-
|
|
142
|
-
export interface ObjectTopologyResponse {
|
|
143
|
-
id: string;
|
|
144
|
-
children?: ObjectsTopologyNode[];
|
|
145
|
-
ifcType?: string;
|
|
146
|
-
ifcId?: string;
|
|
147
|
-
elementTypeId?: string;
|
|
148
|
-
isChild?: boolean;
|
|
149
|
-
parent: string;
|
|
150
|
-
name: string;
|
|
151
|
-
type: string;
|
|
152
|
-
layerid?: string;
|
|
153
|
-
number: number;
|
|
154
|
-
level: number;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export type ObjectComplexPropertyTopologyResponse = ObjectTopologyResponse;
|
|
158
|
-
|
|
159
|
-
interface Hyperlink {
|
|
160
|
-
id: string;
|
|
161
|
-
objectId: string;
|
|
162
|
-
orderNumber: number;
|
|
163
|
-
name: string;
|
|
164
|
-
url: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface Attachment {
|
|
168
|
-
id: string;
|
|
169
|
-
fileName: string;
|
|
170
|
-
size: number;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export type
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
id:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export interface
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
export
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
export
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export class
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
1
|
+
declare module 'bimplus-websdk' {
|
|
2
|
+
|
|
3
|
+
export type HTML = string;
|
|
4
|
+
export type Guid = string;
|
|
5
|
+
export type ProjectId = Guid;
|
|
6
|
+
export type ModelId = Guid;
|
|
7
|
+
export type LayerId = Guid;
|
|
8
|
+
export type DivisionTopologyId = Guid;
|
|
9
|
+
export type RevisionId = string;
|
|
10
|
+
export type VisualObjectId = string;
|
|
11
|
+
|
|
12
|
+
export type TeamSlug = string;
|
|
13
|
+
export type AccessToken = string;
|
|
14
|
+
export type AccessTokenType = string;
|
|
15
|
+
|
|
16
|
+
export function createDefaultConfig(env?: string): ApiConfig;
|
|
17
|
+
|
|
18
|
+
export interface ApiConfig {
|
|
19
|
+
protocol: string;
|
|
20
|
+
host: string;
|
|
21
|
+
version?: string;
|
|
22
|
+
cache?: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AuthorizeData {
|
|
26
|
+
access_token: string;
|
|
27
|
+
}
|
|
28
|
+
export class Authorize {
|
|
29
|
+
constructor(api: Api);
|
|
30
|
+
|
|
31
|
+
// Define methods and properties of the Teams class here
|
|
32
|
+
|
|
33
|
+
post(username: string, password: string, applicationId: string): Promise<AuthorizeData>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface TeamData {
|
|
37
|
+
slug: string;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface Subscription {
|
|
43
|
+
settingName?: string;
|
|
44
|
+
expirationDate?: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
teamId?: string;
|
|
47
|
+
value?: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class Teams {
|
|
52
|
+
constructor(api: Api);
|
|
53
|
+
|
|
54
|
+
slug: string;
|
|
55
|
+
|
|
56
|
+
// Define methods and properties of the Teams class here
|
|
57
|
+
|
|
58
|
+
get(teamId?: string, filterEmpty?: boolean): Promise<TeamData[]>;
|
|
59
|
+
getAccountSettings(teamId?: string): Promise<Array<Subscription>>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface UserData {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
preferedLanguage: string;
|
|
66
|
+
}
|
|
67
|
+
export class User {
|
|
68
|
+
constructor(api: Api);
|
|
69
|
+
|
|
70
|
+
// Define methods and properties of the Teams class here
|
|
71
|
+
|
|
72
|
+
get(token: AccessToken | null): Promise<UserData>;
|
|
73
|
+
put(userdata): Promise<UserData>;
|
|
74
|
+
getSubscriptions(): Promise<Array<Subscription>>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type AdditionalParams = {
|
|
78
|
+
[key: string]: string; // This allows key-value pairs as in json string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Project {
|
|
82
|
+
id: ProjectId;
|
|
83
|
+
name: string;
|
|
84
|
+
teamSlug: TeamSlug;
|
|
85
|
+
teamName: string | undefined;
|
|
86
|
+
rights: object;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class Projects {
|
|
90
|
+
constructor(api: Api);
|
|
91
|
+
get(id?: ProjectId, noDisciplines?: boolean, teamSlug?: TeamSlug, alsoRecycleBin?: boolean, additionalParams?: AdditionalParams): Promise<Project | Project[]>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface ConnexisData {
|
|
95
|
+
projectId: ProjectId,
|
|
96
|
+
modelId: ModelId,
|
|
97
|
+
elements: Guid[];
|
|
98
|
+
settings: {
|
|
99
|
+
connectionMethod: string;
|
|
100
|
+
createRevision?: boolean;
|
|
101
|
+
designCode: string;
|
|
102
|
+
replace: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface Sds2ConnexisData {
|
|
107
|
+
SDS2: ConnexisData;
|
|
108
|
+
}
|
|
109
|
+
// export interface IdeaStaticaConnexisData {
|
|
110
|
+
// IdeaStatica: ConnexisData;
|
|
111
|
+
// }
|
|
112
|
+
|
|
113
|
+
export class Connexis {
|
|
114
|
+
constructor(api: Api);
|
|
115
|
+
post(data: Sds2ConnexisData /* | IdeaStaticaConnexisData */) : Promise<void>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface ObjectFilter {
|
|
119
|
+
id?: string
|
|
120
|
+
module: string
|
|
121
|
+
category: string
|
|
122
|
+
disciplineID: string
|
|
123
|
+
name: string
|
|
124
|
+
filterString: string
|
|
125
|
+
isDefault: boolean
|
|
126
|
+
disableSortByModels: boolean
|
|
127
|
+
readableValues?: Record<string, string>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type ObjectFiltersResponse = Array<ObjectFilter>;
|
|
131
|
+
|
|
132
|
+
export class ObjectFilters {
|
|
133
|
+
constructor(api: Api);
|
|
134
|
+
get(layerId: Guid | undefined, projectId: Guid | undefined): Promise<ObjectFiltersResponse>
|
|
135
|
+
getSelectionFilteredObjects(selectionId: Guid, filterId: Guid, properties: boolean | undefined, topology: boolean | undefined): Promise<ObjectFilterStructureResponse>
|
|
136
|
+
post(data: string, projectId: string): Promise<ObjectFilter>;
|
|
137
|
+
delete(id: string) : void;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface ObjectsTopologyNode { }
|
|
141
|
+
|
|
142
|
+
export interface ObjectTopologyResponse {
|
|
143
|
+
id: string;
|
|
144
|
+
children?: ObjectsTopologyNode[];
|
|
145
|
+
ifcType?: string;
|
|
146
|
+
ifcId?: string;
|
|
147
|
+
elementTypeId?: string;
|
|
148
|
+
isChild?: boolean;
|
|
149
|
+
parent: string;
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
layerid?: string;
|
|
153
|
+
number: number;
|
|
154
|
+
level: number;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type ObjectComplexPropertyTopologyResponse = ObjectTopologyResponse;
|
|
158
|
+
|
|
159
|
+
interface Hyperlink {
|
|
160
|
+
id: string;
|
|
161
|
+
objectId: string;
|
|
162
|
+
orderNumber: number;
|
|
163
|
+
name: string;
|
|
164
|
+
url: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface Attachment {
|
|
168
|
+
id: string;
|
|
169
|
+
fileName: string;
|
|
170
|
+
size: number;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export type Rights = {
|
|
174
|
+
update: boolean;
|
|
175
|
+
share: boolean;
|
|
176
|
+
delete: boolean;
|
|
177
|
+
download: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type ChangedBy = {
|
|
181
|
+
id: string;
|
|
182
|
+
email: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type GetAttachmentResponse = {
|
|
186
|
+
id: string;
|
|
187
|
+
objectIds: string[];
|
|
188
|
+
name: string;
|
|
189
|
+
fileName: string;
|
|
190
|
+
type: string;
|
|
191
|
+
size: number;
|
|
192
|
+
createdAt: string;
|
|
193
|
+
changed: string;
|
|
194
|
+
changedFile: string;
|
|
195
|
+
changedBy: ChangedBy;
|
|
196
|
+
hash: string;
|
|
197
|
+
attachmentType: string;
|
|
198
|
+
classification: string;
|
|
199
|
+
tag: string;
|
|
200
|
+
sizeMB: string;
|
|
201
|
+
version: number;
|
|
202
|
+
relatedId: string;
|
|
203
|
+
rights: Rights;
|
|
204
|
+
release: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type HyperlinksResponse = Hyperlink[];
|
|
208
|
+
type AttachmentLinksResponse = AttachmentLink[];
|
|
209
|
+
type AttachmentResponse = Attachment[];
|
|
210
|
+
|
|
211
|
+
export type PostAttachmentResponse = {
|
|
212
|
+
id: string;
|
|
213
|
+
objectIds: string[];
|
|
214
|
+
name: string;
|
|
215
|
+
fileName: string;
|
|
216
|
+
type: string;
|
|
217
|
+
size: number;
|
|
218
|
+
createdAt: string,
|
|
219
|
+
creator: Author;
|
|
220
|
+
changedFile: string,
|
|
221
|
+
hash: string,
|
|
222
|
+
attachmentType: string;
|
|
223
|
+
classification: string;
|
|
224
|
+
tag: string;
|
|
225
|
+
sizeMB: string;
|
|
226
|
+
version: number;
|
|
227
|
+
relatedId: string;
|
|
228
|
+
release: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
type CommentsResponse = CommentResponse[];
|
|
232
|
+
|
|
233
|
+
export interface CommentResponse {
|
|
234
|
+
id: string;
|
|
235
|
+
issueId?: string;
|
|
236
|
+
status?: string | null;
|
|
237
|
+
verbalStatus?: string | null;
|
|
238
|
+
parentId?: string;
|
|
239
|
+
text?: string;
|
|
240
|
+
createdAt?: string;
|
|
241
|
+
modifiedAt?: string;
|
|
242
|
+
author?: Author;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Author {
|
|
246
|
+
id?: string;
|
|
247
|
+
email?: string;
|
|
248
|
+
status?: string | null;
|
|
249
|
+
firstname?: string;
|
|
250
|
+
lastname?: string;
|
|
251
|
+
company?: string;
|
|
252
|
+
fullname?: string;
|
|
253
|
+
displayname?: string;
|
|
254
|
+
shortdisplayname?: string;
|
|
255
|
+
preferedLanguage?: string | null;
|
|
256
|
+
updated?: string;
|
|
257
|
+
tokensInvalidated?: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export class Objects {
|
|
261
|
+
constructor(api: Api);
|
|
262
|
+
get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined);
|
|
263
|
+
getTopology(objectId: string, revision: number | undefined, hideElements: boolean, shortInfo: boolean, batch: string | undefined): Promise<ObjectTopologyResponse>;
|
|
264
|
+
getComplexPropertiesTopology(objectId: string, revision: number | undefined): Promise<ObjectComplexPropertyTopologyResponse>;
|
|
265
|
+
getHyperlinks(objectId: string): Promise<HyperlinksResponse>;
|
|
266
|
+
postHyperlink(objectId: string, data: string): Promise<Hyperlink>;
|
|
267
|
+
getAttachmentLinks(objectId: string): Promise<AttachmentLinksResponse>;
|
|
268
|
+
postAttachmentLink(objectId: string, data: string): Promise<AttachmentLink>;
|
|
269
|
+
deleteAttachmentLink(objectId: string,AttachmentLinkId:string): Promise<void>;
|
|
270
|
+
postComment(objectId: string, data: string): Promise<CommentResponse>;
|
|
271
|
+
getComments(objectId: string): Promise<CommentsResponse>;
|
|
272
|
+
postAttachment(objectId: string, data: FormData, uploadProgress: () => void, documentFolderId: string): Promise<PostAttachmentResponse>;
|
|
273
|
+
getAttachments(objectId: string): Promise<AttachmentResponse>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export class Attachments {
|
|
277
|
+
constructor(api: Api);
|
|
278
|
+
delete(id:string, version?: number): Promise<void>;
|
|
279
|
+
get(id: string): Promise<GetAttachmentResponse>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface SelectionObjectTopologyNode {
|
|
283
|
+
id: string;
|
|
284
|
+
visible: boolean;
|
|
285
|
+
opaque: boolean;
|
|
286
|
+
opacity: number;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface SelectionObjectLayer {
|
|
290
|
+
revision: number;
|
|
291
|
+
id: string;
|
|
292
|
+
name?: string;
|
|
293
|
+
divisionId: string;
|
|
294
|
+
divisionName?: string;
|
|
295
|
+
visible?: boolean;
|
|
296
|
+
opaque?: boolean;
|
|
297
|
+
opacity?: number;
|
|
298
|
+
valid?: boolean;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface SelectionObjectTopology {
|
|
302
|
+
topology: SelectionObjectTopologyNode[];
|
|
303
|
+
layers: SelectionObjectLayer[];
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface SelectionObjectTopologyStructure {
|
|
307
|
+
layers: SelectionObjectLayer[];
|
|
308
|
+
structures: string[];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface SelectionObject {
|
|
312
|
+
id?: string;
|
|
313
|
+
projectid: string;
|
|
314
|
+
divisionid?: string;
|
|
315
|
+
singleuse: boolean;
|
|
316
|
+
revisionnr?: string;
|
|
317
|
+
type: string;
|
|
318
|
+
elements?: string[];
|
|
319
|
+
revisionelements?: string[];
|
|
320
|
+
filter?: string;
|
|
321
|
+
topology?: SelectionObjectTopology;
|
|
322
|
+
topologyStructure?: SelectionObjectTopologyStructure
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export interface ExportObject {
|
|
326
|
+
description: string;
|
|
327
|
+
id?: string;
|
|
328
|
+
name: string;
|
|
329
|
+
projectId: string;
|
|
330
|
+
singleUse: boolean;
|
|
331
|
+
selection: SelectionObject
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export class ExportService {
|
|
335
|
+
constructor(api: Api);
|
|
336
|
+
createExportSelection(projectId: Guid, data: string): Promise<ExportObject>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface StructureNode {
|
|
340
|
+
id: string;
|
|
341
|
+
parent?: string;
|
|
342
|
+
name: string;
|
|
343
|
+
type: string;
|
|
344
|
+
children?: StructureNode[];
|
|
345
|
+
lastTopologyId?: string;
|
|
346
|
+
count: number;
|
|
347
|
+
level: number;
|
|
348
|
+
nodeInfo: string;
|
|
349
|
+
hasGeometry?: boolean;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface ObjectFilterStructureResponse {
|
|
353
|
+
structure: StructureNode;
|
|
354
|
+
structureDepth: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export class PrivacyTexts {
|
|
358
|
+
constructor(api: Api);
|
|
359
|
+
get(lang: string | undefined, type: string | undefined): Promise<HTML>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface IDBCache {
|
|
363
|
+
data: string;
|
|
364
|
+
|
|
365
|
+
clear(): void;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export class Hyperlinks {
|
|
369
|
+
constructor(api: Api);
|
|
370
|
+
delete(id: string): Promise<void>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export class AttachmentLink {
|
|
374
|
+
id: string;
|
|
375
|
+
name: string;
|
|
376
|
+
fileName:string
|
|
377
|
+
size:number;
|
|
378
|
+
link:string;
|
|
379
|
+
version:number;
|
|
380
|
+
fileNameShort:string;
|
|
381
|
+
extension:string;
|
|
382
|
+
objectIds:string[];
|
|
383
|
+
sizeMB: string
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export class Comments {
|
|
387
|
+
constructor(api: Api);
|
|
388
|
+
delete(id: string): Promise<void>;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
export class Api {
|
|
393
|
+
constructor(config: ApiConfig);
|
|
394
|
+
|
|
395
|
+
// Define methods and properties of the Teams class here
|
|
396
|
+
|
|
397
|
+
authorize: Authorize;
|
|
398
|
+
teams: Teams;
|
|
399
|
+
user: User;
|
|
400
|
+
projects: Projects;
|
|
401
|
+
connexis: Connexis;
|
|
402
|
+
objectFilters: ObjectFilters;
|
|
403
|
+
objects: Objects;
|
|
404
|
+
attachments: Attachments;
|
|
405
|
+
exportService: ExportService;
|
|
406
|
+
terms: PrivacyTexts;
|
|
407
|
+
imprints: PrivacyTexts;
|
|
408
|
+
dataProtection: PrivacyTexts;
|
|
409
|
+
hyperlinks: Hyperlinks;
|
|
410
|
+
comments: Comments;
|
|
411
|
+
|
|
412
|
+
setAccessToken(token: AccessToken): void;
|
|
413
|
+
getAccessToken(): AccessToken | null;
|
|
414
|
+
|
|
415
|
+
setTokenType(tokenType: AccessTokenType): void;
|
|
416
|
+
getTokenType(): AccessTokenType | null;
|
|
417
|
+
|
|
418
|
+
setAccessTokenAndType(token: AccessToken, tokenType: AccessTokenType): void;
|
|
419
|
+
getAccessTokenAndType(): { token: AccessToken | null, tokenType: AccessTokenType | null }
|
|
420
|
+
|
|
421
|
+
setTeamSlug(slug: TeamSlug): void;
|
|
422
|
+
getCache(): IDBCache;
|
|
423
|
+
getApiTeamUrl(): string;
|
|
424
|
+
}
|
|
425
|
+
}
|