@thatopen/services 0.34.3 → 0.34.4

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.
@@ -15,6 +15,16 @@ declare global {
15
15
  ThatOpenCompany?: Record<string, unknown>;
16
16
  }
17
17
  }
18
+ /** What `GET /item/documents` answers: every document descriptor of a project. */
19
+ type DocumentDescriptors = {
20
+ documents: {
21
+ folderId: string;
22
+ fileId: string;
23
+ versionTag: string | null;
24
+ descriptor: Record<string, unknown>;
25
+ }[];
26
+ unread: number;
27
+ };
18
28
  /**
19
29
  * Minimal shape of an OBC.Components-like object.
20
30
  * Avoids hard-coupling to `@thatopen/components` at the public API level.
@@ -270,15 +280,7 @@ export declare class EngineServicesClient {
270
280
  * `documents` for an item id), which `documents.list()` reads as "ask one
271
281
  * by one".
272
282
  */
273
- listDocumentDescriptors(projectId: string): Promise<{
274
- documents: {
275
- folderId: string;
276
- fileId: string;
277
- versionTag: string | null;
278
- descriptor: Record<string, unknown>;
279
- }[];
280
- unread: number;
281
- }>;
283
+ listDocumentDescriptors(projectId: string): Promise<DocumentDescriptors>;
282
284
  /**
283
285
  * A project's documents as one flat table, for BI and spreadsheets
284
286
  * (`GET /item/export`): a row per file with its folder path, its live
@@ -884,3 +886,4 @@ export declare class EngineServicesClient {
884
886
  success: boolean;
885
887
  }>;
886
888
  }
889
+ export {};