@thatopen/services 0.32.0 → 0.33.0

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.
@@ -258,6 +258,22 @@ export declare class EngineServicesClient {
258
258
  */
259
259
  projectId?: string;
260
260
  }): Promise<Item[]>;
261
+ /**
262
+ * Every document descriptor of a project in one request, read by the
263
+ * platform (`GET /item/documents`). Throws a {@link RequestError} like any
264
+ * request; a platform from before the route answers 404 (or 400, taking
265
+ * `documents` for an item id), which `documents.list()` reads as "ask one
266
+ * by one".
267
+ */
268
+ listDocumentDescriptors(projectId: string): Promise<{
269
+ documents: {
270
+ folderId: string;
271
+ fileId: string;
272
+ versionTag: string | null;
273
+ descriptor: Record<string, unknown>;
274
+ }[];
275
+ unread: number;
276
+ }>;
261
277
  /**
262
278
  * Gets a single file by ID, optionally including version history.
263
279
  * @param fileId - The file's unique identifier.
@@ -69,6 +69,11 @@ export interface DocumentInfo {
69
69
  folderId: string;
70
70
  descriptor: DocumentDescriptor;
71
71
  }
72
+ /**
73
+ * Which version a listed file is at, as its listing says: what tells a kept read from a stale one. Its newest
74
+ * version's tag (the item's `updatedAt` does not move when a version is added, measured on DEV, 23-10).
75
+ */
76
+ export declare const stampOf: (item: unknown) => string | undefined;
72
77
  export declare class ProjectDocuments {
73
78
  #private;
74
79
  private readonly client;