bimplus-websdk 1.0.29 → 1.0.31

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.
@@ -1,420 +1,426 @@
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 GetAttachmentResponse = {
174
- id: string;
175
- objectIds: string[];
176
- name: string;
177
- fileName: string;
178
- type: string;
179
- size: number;
180
- createdAt: string;
181
- changed: string;
182
- changedFile: string;
183
- changedBy: {
184
- id: string;
185
- email: string;
186
- };
187
- hash: string;
188
- attachmentType: string;
189
- classification: string;
190
- tag: string;
191
- sizeMB: string;
192
- version: number;
193
- relatedId: string;
194
- rights: {
195
- update: boolean;
196
- share: boolean;
197
- delete: boolean;
198
- download: boolean;
199
- };
200
- release: boolean;
201
- }
202
-
203
- type HyperlinksResponse = Hyperlink[];
204
- type AttachmentLinksResponse = AttachmentLink[];
205
- type AttachmentResponse = Attachment[];
206
-
207
- export type PostAttachmentResponse = {
208
- id: string;
209
- objectIds: string[];
210
- name: string;
211
- fileName: string;
212
- type: string;
213
- size: number;
214
- createdAt: string,
215
- creator: Author;
216
- changedFile: string,
217
- hash: string,
218
- attachmentType: string;
219
- classification: string;
220
- tag: string;
221
- sizeMB: string;
222
- version: number;
223
- relatedId: string;
224
- release: boolean;
225
- }
226
-
227
- type CommentsResponse = CommentResponse[];
228
-
229
- export interface CommentResponse {
230
- id: string;
231
- issueId?: string;
232
- status?: string | null;
233
- verbalStatus?: string | null;
234
- parentId?: string;
235
- text?: string;
236
- createdAt?: string;
237
- modifiedAt?: string;
238
- author?: Author;
239
- }
240
-
241
- export interface Author {
242
- id?: string;
243
- email?: string;
244
- status?: string | null;
245
- firstname?: string;
246
- lastname?: string;
247
- company?: string;
248
- fullname?: string;
249
- displayname?: string;
250
- shortdisplayname?: string;
251
- preferedLanguage?: string | null;
252
- updated?: string;
253
- tokensInvalidated?: string;
254
- }
255
-
256
- export class Objects {
257
- constructor(api: Api);
258
- get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined);
259
- getTopology(objectId: string, revision: number | undefined, hideElements: boolean, shortInfo: boolean, batch: string | undefined): Promise<ObjectTopologyResponse>;
260
- getComplexPropertiesTopology(objectId: string, revision: number | undefined): Promise<ObjectComplexPropertyTopologyResponse>;
261
- getHyperlinks(objectId: string): Promise<HyperlinksResponse>;
262
- postHyperlink(objectId: string, data: string): Promise<Hyperlink>;
263
- getAttachmentLinks(objectId: string): Promise<AttachmentLinksResponse>;
264
- postAttachmentLink(objectId: string, data: string): Promise<AttachmentLink>;
265
- postComment(objectId: string, data: string): Promise<CommentResponse>;
266
- getComments(objectId: string): Promise<CommentsResponse>;
267
- postAttachment(objectId: string, data: FormData, uploadProgress: () => void, documentFolderId: string): Promise<PostAttachmentResponse>;
268
- getAttachments(objectId: string): Promise<AttachmentResponse>;
269
- }
270
-
271
- export class Attachments {
272
- constructor(api: Api);
273
- delete(id:string, version?: number): Promise<void>;
274
- get(id: string): Promise<GetAttachmentResponse>;
275
- }
276
-
277
- export interface SelectionObjectTopologyNode {
278
- id: string;
279
- visible: boolean;
280
- opaque: boolean;
281
- opacity: number;
282
- }
283
-
284
- export interface SelectionObjectLayer {
285
- revision: number;
286
- id: string;
287
- name?: string;
288
- divisionId: string;
289
- divisionName?: string;
290
- visible?: boolean;
291
- opaque?: boolean;
292
- opacity?: number;
293
- valid?: boolean;
294
- }
295
-
296
- export interface SelectionObjectTopology {
297
- topology: SelectionObjectTopologyNode[];
298
- layers: SelectionObjectLayer[];
299
- }
300
-
301
- export interface SelectionObjectTopologyStructure {
302
- layers: SelectionObjectLayer[];
303
- structures: string[];
304
- }
305
-
306
- export interface SelectionObject {
307
- id?: string;
308
- projectid: string;
309
- divisionid?: string;
310
- singleuse: boolean;
311
- revisionnr?: string;
312
- type: string;
313
- elements?: string[];
314
- revisionelements?: string[];
315
- filter?: string;
316
- topology?: SelectionObjectTopology;
317
- topologyStructure?: SelectionObjectTopologyStructure
318
- }
319
-
320
- export interface ExportObject {
321
- description: string;
322
- id?: string;
323
- name: string;
324
- projectId: string;
325
- singleUse: boolean;
326
- selection: SelectionObject
327
- }
328
-
329
- export class ExportService {
330
- constructor(api: Api);
331
- createExportSelection(projectId: Guid, data: string): Promise<ExportObject>;
332
- }
333
-
334
- export interface StructureNode {
335
- id: string;
336
- parent?: string;
337
- name: string;
338
- type: string;
339
- children?: StructureNode[];
340
- lastTopologyId?: string;
341
- count: number;
342
- level: number;
343
- nodeInfo: string;
344
- hasGeometry?: boolean;
345
- }
346
-
347
- export interface ObjectFilterStructureResponse {
348
- structure: StructureNode;
349
- structureDepth: number;
350
- }
351
-
352
- export class PrivacyTexts {
353
- constructor(api: Api);
354
- get(lang: string | undefined, type: string | undefined): Promise<HTML>;
355
- }
356
-
357
- export interface IDBCache {
358
- data: string;
359
-
360
- clear(): void;
361
- }
362
-
363
- export class Hyperlinks {
364
- constructor(api: Api);
365
- delete(id: string): Promise<void>;
366
- }
367
-
368
- export class AttachmentLink {
369
- id: string;
370
- name: string;
371
- fileName:string
372
- size:number;
373
- link:string;
374
- version:number;
375
- fileNameShort:string;
376
- extension:string;
377
- objectIds:string[];
378
- sizeMB: string
379
- }
380
-
381
- export class Comments {
382
- constructor(api: Api);
383
- delete(id: string): Promise<void>;
384
- }
385
-
386
-
387
- export class Api {
388
- constructor(config: ApiConfig);
389
-
390
- // Define methods and properties of the Teams class here
391
-
392
- authorize: Authorize;
393
- teams: Teams;
394
- user: User;
395
- projects: Projects;
396
- connexis: Connexis;
397
- objectFilters: ObjectFilters;
398
- objects: Objects;
399
- attachments: Attachments;
400
- exportService: ExportService;
401
- terms: PrivacyTexts;
402
- imprints: PrivacyTexts;
403
- dataProtection: PrivacyTexts;
404
- hyperlinks: Hyperlinks;
405
- comments: Comments;
406
-
407
- setAccessToken(token: AccessToken): void;
408
- getAccessToken(): AccessToken | null;
409
-
410
- setTokenType(tokenType: AccessTokenType): void;
411
- getTokenType(): AccessTokenType | null;
412
-
413
- setAccessTokenAndType(token: AccessToken, tokenType: AccessTokenType): void;
414
- getAccessTokenAndType(): { token: AccessToken | null, tokenType: AccessTokenType | null }
415
-
416
- setTeamSlug(slug: TeamSlug): void;
417
- getCache(): IDBCache;
418
- getApiTeamUrl(): string;
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
+ hyperlinks?: Hyperlink[];
244
+ }
245
+
246
+ export interface Author {
247
+ id?: string;
248
+ email?: string;
249
+ status?: string | null;
250
+ firstname?: string;
251
+ lastname?: string;
252
+ company?: string;
253
+ fullname?: string;
254
+ displayname?: string;
255
+ shortdisplayname?: string;
256
+ preferedLanguage?: string | null;
257
+ updated?: string;
258
+ tokensInvalidated?: string;
259
+ }
260
+
261
+ export class Objects {
262
+ constructor(api: Api);
263
+ get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined);
264
+ getTopology(objectId: string, revision: number | undefined, hideElements: boolean, shortInfo: boolean, batch: string | undefined): Promise<ObjectTopologyResponse>;
265
+ getComplexPropertiesTopology(objectId: string, revision: number | undefined): Promise<ObjectComplexPropertyTopologyResponse>;
266
+ getHyperlinks(objectId: string): Promise<HyperlinksResponse>;
267
+ postHyperlink(objectId: string, data: string): Promise<Hyperlink>;
268
+ getAttachmentLinks(objectId: string): Promise<AttachmentLinksResponse>;
269
+ postAttachmentLink(objectId: string, data: string): Promise<AttachmentLink>;
270
+ deleteAttachmentLink(objectId: string,AttachmentLinkId:string): Promise<void>;
271
+ postComment(objectId: string, data: string): Promise<CommentResponse>;
272
+ getComments(objectId: string): Promise<CommentsResponse>;
273
+ postAttachment(objectId: string, data: FormData, uploadProgress: () => void, documentFolderId: string): Promise<PostAttachmentResponse>;
274
+ getAttachments(objectId: string): Promise<AttachmentResponse>;
275
+ }
276
+
277
+ export class Attachments {
278
+ constructor(api: Api);
279
+ delete(id:string, version?: number): Promise<void>;
280
+ get(id: string): Promise<GetAttachmentResponse>;
281
+ }
282
+
283
+ export interface SelectionObjectTopologyNode {
284
+ id: string;
285
+ visible: boolean;
286
+ opaque: boolean;
287
+ opacity: number;
288
+ }
289
+
290
+ export interface SelectionObjectLayer {
291
+ revision: number;
292
+ id: string;
293
+ name?: string;
294
+ divisionId: string;
295
+ divisionName?: string;
296
+ visible?: boolean;
297
+ opaque?: boolean;
298
+ opacity?: number;
299
+ valid?: boolean;
300
+ }
301
+
302
+ export interface SelectionObjectTopology {
303
+ topology: SelectionObjectTopologyNode[];
304
+ layers: SelectionObjectLayer[];
305
+ }
306
+
307
+ export interface SelectionObjectTopologyStructure {
308
+ layers: SelectionObjectLayer[];
309
+ structures: string[];
310
+ }
311
+
312
+ export interface SelectionObject {
313
+ id?: string;
314
+ projectid: string;
315
+ divisionid?: string;
316
+ singleuse: boolean;
317
+ revisionnr?: string;
318
+ type: string;
319
+ elements?: string[];
320
+ revisionelements?: string[];
321
+ filter?: string;
322
+ topology?: SelectionObjectTopology;
323
+ topologyStructure?: SelectionObjectTopologyStructure
324
+ }
325
+
326
+ export interface ExportObject {
327
+ description: string;
328
+ id?: string;
329
+ name: string;
330
+ projectId: string;
331
+ singleUse: boolean;
332
+ selection: SelectionObject
333
+ }
334
+
335
+ export class ExportService {
336
+ constructor(api: Api);
337
+ createExportSelection(projectId: Guid, data: string): Promise<ExportObject>;
338
+ }
339
+
340
+ export interface StructureNode {
341
+ id: string;
342
+ parent?: string;
343
+ name: string;
344
+ type: string;
345
+ children?: StructureNode[];
346
+ lastTopologyId?: string;
347
+ count: number;
348
+ level: number;
349
+ nodeInfo: string;
350
+ hasGeometry?: boolean;
351
+ }
352
+
353
+ export interface ObjectFilterStructureResponse {
354
+ structure: StructureNode;
355
+ structureDepth: number;
356
+ }
357
+
358
+ export class PrivacyTexts {
359
+ constructor(api: Api);
360
+ get(lang: string | undefined, type: string | undefined): Promise<HTML>;
361
+ }
362
+
363
+ export interface IDBCache {
364
+ data: string;
365
+
366
+ clear(): void;
367
+ }
368
+
369
+ export class Hyperlinks {
370
+ constructor(api: Api);
371
+ delete(id: string): Promise<void>;
372
+ }
373
+
374
+ export class AttachmentLink {
375
+ id: string;
376
+ name: string;
377
+ fileName:string
378
+ size:number;
379
+ link:string;
380
+ version:number;
381
+ fileNameShort:string;
382
+ extension:string;
383
+ objectIds:string[];
384
+ sizeMB: string
385
+ }
386
+
387
+ export class Comments {
388
+ constructor(api: Api);
389
+ delete(id: string): Promise<void>;
390
+ }
391
+
392
+
393
+ export class Api {
394
+ constructor(config: ApiConfig);
395
+
396
+ // Define methods and properties of the Teams class here
397
+
398
+ authorize: Authorize;
399
+ teams: Teams;
400
+ user: User;
401
+ projects: Projects;
402
+ connexis: Connexis;
403
+ objectFilters: ObjectFilters;
404
+ objects: Objects;
405
+ attachments: Attachments;
406
+ exportService: ExportService;
407
+ terms: PrivacyTexts;
408
+ imprints: PrivacyTexts;
409
+ dataProtection: PrivacyTexts;
410
+ hyperlinks: Hyperlinks;
411
+ comments: Comments;
412
+
413
+ setAccessToken(token: AccessToken): void;
414
+ getAccessToken(): AccessToken | null;
415
+
416
+ setTokenType(tokenType: AccessTokenType): void;
417
+ getTokenType(): AccessTokenType | null;
418
+
419
+ setAccessTokenAndType(token: AccessToken, tokenType: AccessTokenType): void;
420
+ getAccessTokenAndType(): { token: AccessToken | null, tokenType: AccessTokenType | null }
421
+
422
+ setTeamSlug(slug: TeamSlug): void;
423
+ getCache(): IDBCache;
424
+ getApiTeamUrl(): string;
425
+ }
426
+ }