@thatopen/services 0.34.3 → 0.34.5
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 +72 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/client.d.ts +30 -9
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2306 -2242
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/core/client.d.ts
CHANGED
|
@@ -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
|
|
@@ -573,6 +575,24 @@ export declare class EngineServicesClient {
|
|
|
573
575
|
}[]): Promise<{
|
|
574
576
|
components: TComponents;
|
|
575
577
|
}>;
|
|
578
|
+
/**
|
|
579
|
+
* 🔴 ONE LOADING SCREEN (Jesús 4-11: opening an app showed three, one after
|
|
580
|
+
* the other). The platform keeps its own until the app says it is loaded,
|
|
581
|
+
* and `setup` said so as soon as the components were made: the app's own
|
|
582
|
+
* screens (its configuration, its viewer) then showed behind. Whatever is
|
|
583
|
+
* still getting the app ready holds the word back with this, and lets it go
|
|
584
|
+
* once it is: the platform's screen, the only one, stays until then.
|
|
585
|
+
*
|
|
586
|
+
* Returns the release; each is let go once. Held or not, the word goes 12 s
|
|
587
|
+
* after this client was made at the latest, before the platform's own
|
|
588
|
+
* deadline (15 s) calls the app dead.
|
|
589
|
+
*/
|
|
590
|
+
holdAppLoaded(maxMs?: number): () => void;
|
|
591
|
+
/**
|
|
592
|
+
* The app's shell saying it is ready to be looked at: the hold `setup` took
|
|
593
|
+
* for it, let go. Nothing if it took none.
|
|
594
|
+
*/
|
|
595
|
+
appReady(): void;
|
|
576
596
|
/**
|
|
577
597
|
* Reports an error to the platform via the {@link AppEventOrchestrator.appError} callback.
|
|
578
598
|
* @param code - Numeric error code.
|
|
@@ -884,3 +904,4 @@ export declare class EngineServicesClient {
|
|
|
884
904
|
success: boolean;
|
|
885
905
|
}>;
|
|
886
906
|
}
|
|
907
|
+
export {};
|