@reekon-tools/boldr-utils 1.4.31 → 1.4.32
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/types/firestore.d.ts +20 -1
- package/dist/types/firestore.js +1 -0
- package/package.json +1 -1
|
@@ -103,6 +103,7 @@ export declare enum FileUploadType {
|
|
|
103
103
|
Template = "template",
|
|
104
104
|
Background = "background",
|
|
105
105
|
LayoutGroup = "layoutGroup",
|
|
106
|
+
Layout = "layout",
|
|
106
107
|
Calculator = "calculator"
|
|
107
108
|
}
|
|
108
109
|
export interface AnnotationFileData {
|
|
@@ -118,6 +119,18 @@ export interface CalculatorFileData {
|
|
|
118
119
|
columns: Record<string, any>;
|
|
119
120
|
isCompleted: boolean;
|
|
120
121
|
}
|
|
122
|
+
export interface LayoutFileData {
|
|
123
|
+
points: Record<string, any>;
|
|
124
|
+
edges: Record<string, any>;
|
|
125
|
+
faces: Record<string, any>;
|
|
126
|
+
floorLevel?: number;
|
|
127
|
+
labelScale?: number;
|
|
128
|
+
lastModified?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface LayoutGroupFileData {
|
|
131
|
+
layoutCount?: number;
|
|
132
|
+
thumbnailBase64?: string;
|
|
133
|
+
}
|
|
121
134
|
interface FileUploadBase {
|
|
122
135
|
id: string;
|
|
123
136
|
name: string;
|
|
@@ -134,6 +147,8 @@ interface FileUploadBase {
|
|
|
134
147
|
createdAt?: Date;
|
|
135
148
|
layoutGroupId?: string | null;
|
|
136
149
|
layoutId?: string | null;
|
|
150
|
+
measurementRefs?: string[];
|
|
151
|
+
parentLayoutGroupId?: string | null;
|
|
137
152
|
}
|
|
138
153
|
export type FileUpload = FileUploadBase & ({
|
|
139
154
|
type: FileUploadType.Annotation;
|
|
@@ -141,9 +156,12 @@ export type FileUpload = FileUploadBase & ({
|
|
|
141
156
|
} | {
|
|
142
157
|
type: FileUploadType.Calculator;
|
|
143
158
|
fileData: CalculatorFileData;
|
|
159
|
+
} | {
|
|
160
|
+
type: FileUploadType.Layout;
|
|
161
|
+
fileData: LayoutFileData;
|
|
144
162
|
} | {
|
|
145
163
|
type: FileUploadType.LayoutGroup;
|
|
146
|
-
fileData?:
|
|
164
|
+
fileData?: LayoutGroupFileData;
|
|
147
165
|
} | {
|
|
148
166
|
type: FileUploadType.Background;
|
|
149
167
|
fileData?: undefined;
|
|
@@ -315,6 +333,7 @@ export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
|
315
333
|
isCompleted?: boolean;
|
|
316
334
|
type?: MeasurementType;
|
|
317
335
|
note?: string;
|
|
336
|
+
fileId?: string | null;
|
|
318
337
|
}
|
|
319
338
|
export interface Label extends FirestoreDoc, Timestamps {
|
|
320
339
|
name: string;
|
package/dist/types/firestore.js
CHANGED
|
@@ -21,6 +21,7 @@ export var FileUploadType;
|
|
|
21
21
|
FileUploadType["Template"] = "template";
|
|
22
22
|
FileUploadType["Background"] = "background";
|
|
23
23
|
FileUploadType["LayoutGroup"] = "layoutGroup";
|
|
24
|
+
FileUploadType["Layout"] = "layout";
|
|
24
25
|
FileUploadType["Calculator"] = "calculator";
|
|
25
26
|
})(FileUploadType || (FileUploadType = {}));
|
|
26
27
|
export var FolderType;
|