@thatopen/services 0.30.0 → 0.32.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 +79 -31
- package/dist/cli.js.map +1 -1
- package/dist/core/builtin-recipes/shapes-to-families.d.ts +3 -1
- package/dist/core/client.d.ts +0 -19
- package/dist/core/documents.d.ts +13 -7
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1722 -1620
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,9 @@ export declare function roomsFromShapes(shapes: SourceShapes, fileId: string): {
|
|
|
52
52
|
number: string;
|
|
53
53
|
name: string;
|
|
54
54
|
}[];
|
|
55
|
-
|
|
55
|
+
/** An element's enclosed volume (m³), its triangles placed: the divergence sum. */
|
|
56
|
+
export declare function volumeOf(shapes: SourceShapes, gid: string, only?: number): number;
|
|
57
|
+
export declare function pointsOf(shapes: SourceShapes, gid: string, only?: number): number[][];
|
|
56
58
|
/**
|
|
57
59
|
* 🔴 A WALL WHOSE TOP THE FILE SHOWS CUT BY A ROOF, ATTACHED TO IT (21-10: racbasic's partitions under its roof stood
|
|
58
60
|
* flat-topped, 6-30 % more wall than the IFC, because the converter had not said they were attached). The wall's top
|
package/dist/core/client.d.ts
CHANGED
|
@@ -707,25 +707,6 @@ export declare class EngineServicesClient {
|
|
|
707
707
|
url: string;
|
|
708
708
|
expiresAt: string;
|
|
709
709
|
}>;
|
|
710
|
-
/**
|
|
711
|
-
* A short-lived presigned URL for a file's own content (one version of it),
|
|
712
|
-
* fetched straight from storage with HTTP `Range` requests: how a streamed
|
|
713
|
-
* model's bundle is read by pieces. The same as
|
|
714
|
-
* {@link getHiddenFileSignedUrl}, for a regular file. Storage serves ONE
|
|
715
|
-
* range per request: ask several pieces in parallel, not in one request.
|
|
716
|
-
*
|
|
717
|
-
* @param fileId - The file's item id.
|
|
718
|
-
* @param options - `versionTag` (default: the latest), `expiresIn` in
|
|
719
|
-
* seconds (60–3600, default 900).
|
|
720
|
-
* @returns `{ url, expiresAt }`.
|
|
721
|
-
*/
|
|
722
|
-
getFileSignedUrl(fileId: string, options?: {
|
|
723
|
-
versionTag?: string;
|
|
724
|
-
expiresIn?: number;
|
|
725
|
-
}): Promise<{
|
|
726
|
-
url: string;
|
|
727
|
-
expiresAt: string;
|
|
728
|
-
}>;
|
|
729
710
|
/**
|
|
730
711
|
* Batch variant of {@link getHiddenFileSignedUrl}. Mints presigned URLs for
|
|
731
712
|
* many hidden files in one request.
|
package/dist/core/documents.d.ts
CHANGED
|
@@ -4,8 +4,19 @@ import { EngineServicesClient } from './client';
|
|
|
4
4
|
export interface DocumentView {
|
|
5
5
|
/** The view file's item id — ids survive renames, names do not. */
|
|
6
6
|
fileId: string;
|
|
7
|
-
/** Lowercase format name: 'frag', 'ifc', 'potree', 'pdf'… */
|
|
7
|
+
/** Lowercase format name: 'frag', 'ifc', 'potree', 'pdf', 'tostrm'… */
|
|
8
8
|
format: string;
|
|
9
|
+
/**
|
|
10
|
+
* A view stored as a HIDDEN file of `fileId`'s item, read by pieces with
|
|
11
|
+
* `getHiddenFileSignedUrl`: a streamed model's TOSTRM1 bundle hangs from
|
|
12
|
+
* its .frag (`format: 'tostrm'`).
|
|
13
|
+
*/
|
|
14
|
+
hiddenId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The version of `fileId` the view was made from. A view whose versionTag
|
|
17
|
+
* is not the file's current one is stale: open another view, or remake it.
|
|
18
|
+
*/
|
|
19
|
+
versionTag?: string;
|
|
9
20
|
}
|
|
10
21
|
/**
|
|
11
22
|
* What a document IS, for a person: the first thing every documents menu
|
|
@@ -13,7 +24,7 @@ export interface DocumentView {
|
|
|
13
24
|
* with (Antonio, 21-10: «que pueda ser cualquier cosa es confuso»). The
|
|
14
25
|
* format stays a property of the document's files; it is not its type.
|
|
15
26
|
*/
|
|
16
|
-
export type DocumentType = 'bim' | 'drawings' | 'reality' | 'generic';
|
|
27
|
+
export type DocumentType = 'bim' | 'drawings' | 'reality' | 'coordination' | 'generic';
|
|
17
28
|
/** Every document type, with the words and the icon every app shows for it. */
|
|
18
29
|
export declare const DOCUMENT_TYPES: Record<DocumentType, {
|
|
19
30
|
label: string;
|
|
@@ -58,11 +69,6 @@ export interface DocumentInfo {
|
|
|
58
69
|
folderId: string;
|
|
59
70
|
descriptor: DocumentDescriptor;
|
|
60
71
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Documents of one project. Get it from {@link EngineServicesClient.documents}.
|
|
63
|
-
* Every method takes the document's FOLDER id — the id interfaces know the
|
|
64
|
-
* document by.
|
|
65
|
-
*/
|
|
66
72
|
export declare class ProjectDocuments {
|
|
67
73
|
#private;
|
|
68
74
|
private readonly client;
|