bimplus-websdk 1.0.38 → 1.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimplus-websdk",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "bim+ websdk",
5
5
  "types": "types/bimplus-websdk.d.ts",
6
6
  "keywords": [
@@ -25,6 +25,7 @@ declare module 'bimplus-websdk' {
25
25
  export interface AuthorizeData {
26
26
  access_token: string;
27
27
  }
28
+
28
29
  export class Authorize {
29
30
  constructor(api: Api);
30
31
 
@@ -64,6 +65,7 @@ declare module 'bimplus-websdk' {
64
65
  name: string;
65
66
  preferedLanguage: string;
66
67
  }
68
+
67
69
  export class User {
68
70
  constructor(api: Api);
69
71
 
@@ -177,11 +179,6 @@ declare module 'bimplus-websdk' {
177
179
  download: boolean;
178
180
  }
179
181
 
180
- export type ChangedBy = {
181
- id: string;
182
- email: string;
183
- }
184
-
185
182
  export type GetAttachmentResponse = {
186
183
  id: string;
187
184
  objectIds: string[];
@@ -260,6 +257,33 @@ declare module 'bimplus-websdk' {
260
257
  tokensInvalidated?: string;
261
258
  }
262
259
 
260
+ export interface Attachment {
261
+ id: string;
262
+ objectIds: string[];
263
+ name: string;
264
+ fileName: string;
265
+ type: string;
266
+ size: number;
267
+ createdAt: string;
268
+ creator: Author;
269
+ changed: string;
270
+ changedFile: string;
271
+ changedBy: ChangedBy;
272
+ attachmentType: string;
273
+ sizeMB: string;
274
+ version: number;
275
+ relatedId: string;
276
+ release: boolean;
277
+ recycleBin: boolean;
278
+ }
279
+
280
+ export interface ChangedBy {
281
+ id: string;
282
+ email: string;
283
+ firstname: string;
284
+ lastname: string;
285
+ }
286
+
263
287
  export interface ObjectData {
264
288
  id: string;
265
289
  elementtyp?: string;
@@ -325,7 +349,7 @@ declare module 'bimplus-websdk' {
325
349
 
326
350
  export class Objects {
327
351
  constructor(api: Api);
328
- get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined);
352
+ get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined): Promise<ObjectProperties>;
329
353
  getTopology(objectId: string, revision: number | undefined, hideElements: boolean, shortInfo: boolean, batch: string | undefined): Promise<ObjectTopologyResponse>;
330
354
  getComplexPropertiesTopology(objectId: string, revision: number | undefined): Promise<ObjectComplexPropertyTopologyResponse>;
331
355
  getHyperlinks(objectId: string): Promise<HyperlinksResponse>;
@@ -376,7 +400,7 @@ declare module 'bimplus-websdk' {
376
400
 
377
401
  export interface SelectionObjectTopologyStructure {
378
402
  layers: SelectionObjectLayer[];
379
- structures: Topology[];
403
+ structures: Topology[] | string[];
380
404
  }
381
405
 
382
406
  export interface SelectionObject {
@@ -460,6 +484,17 @@ declare module 'bimplus-websdk' {
460
484
  delete(id: string): Promise<void>;
461
485
  }
462
486
 
487
+ export interface Coloring {
488
+ }
489
+
490
+ export interface SelectedInfo {
491
+ }
492
+
493
+ export interface ViewBox {
494
+ }
495
+
496
+ export interface ObjectProperties {
497
+ }
463
498
 
464
499
  export class Api {
465
500
  constructor(config: ApiConfig);