@thatopen/services 0.31.2 → 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.
- package/dist/cli.js +134 -8
- package/dist/cli.js.map +1 -1
- package/dist/core/client.d.ts +16 -0
- package/dist/core/documents.d.ts +3 -3
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1207 -1119
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/core/client.d.ts
CHANGED
|
@@ -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.
|
package/dist/core/documents.d.ts
CHANGED
|
@@ -70,10 +70,10 @@ export interface DocumentInfo {
|
|
|
70
70
|
descriptor: DocumentDescriptor;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* document by.
|
|
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).
|
|
76
75
|
*/
|
|
76
|
+
export declare const stampOf: (item: unknown) => string | undefined;
|
|
77
77
|
export declare class ProjectDocuments {
|
|
78
78
|
#private;
|
|
79
79
|
private readonly client;
|