@reekon-tools/boldr-utils 1.4.34 → 1.5.1
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 +19 -24
- package/dist/types/firestore.js +1 -6
- package/package.json +1 -1
|
@@ -103,7 +103,8 @@ export declare enum FileUploadType {
|
|
|
103
103
|
Template = "template",
|
|
104
104
|
Background = "background",
|
|
105
105
|
LayoutGroup = "layoutGroup",
|
|
106
|
-
Calculator = "calculator"
|
|
106
|
+
Calculator = "calculator",
|
|
107
|
+
Conversion = "conversion"
|
|
107
108
|
}
|
|
108
109
|
export interface AnnotationFileData {
|
|
109
110
|
fileType: 'sketch' | 'document';
|
|
@@ -122,12 +123,22 @@ export interface LayoutGroupFileData {
|
|
|
122
123
|
layoutCount?: number;
|
|
123
124
|
thumbnailBase64?: string;
|
|
124
125
|
}
|
|
126
|
+
export interface ConversionUnitRef {
|
|
127
|
+
name: string;
|
|
128
|
+
base: string;
|
|
129
|
+
symbol: string;
|
|
130
|
+
displayType?: 'decimal' | 'fractional' | 'lbs/oz';
|
|
131
|
+
}
|
|
132
|
+
export interface ConversionFileData {
|
|
133
|
+
unitBase: string;
|
|
134
|
+
inputUnit: ConversionUnitRef;
|
|
135
|
+
outputUnit: ConversionUnitRef;
|
|
136
|
+
inputValue: string;
|
|
137
|
+
outputValue: number;
|
|
138
|
+
}
|
|
125
139
|
interface FileUploadBase {
|
|
126
140
|
id: string;
|
|
127
141
|
name: string;
|
|
128
|
-
projectId: string;
|
|
129
|
-
jobId: string;
|
|
130
|
-
groupId: string;
|
|
131
142
|
folderPath: string;
|
|
132
143
|
thumbnailUrl: string | null;
|
|
133
144
|
createdBy?: {
|
|
@@ -148,6 +159,9 @@ export type FileUpload = FileUploadBase & ({
|
|
|
148
159
|
} | {
|
|
149
160
|
type: FileUploadType.LayoutGroup;
|
|
150
161
|
fileData?: LayoutGroupFileData;
|
|
162
|
+
} | {
|
|
163
|
+
type: FileUploadType.Conversion;
|
|
164
|
+
fileData: ConversionFileData;
|
|
151
165
|
} | {
|
|
152
166
|
type: FileUploadType.Background;
|
|
153
167
|
fileData?: undefined;
|
|
@@ -155,22 +169,10 @@ export type FileUpload = FileUploadBase & ({
|
|
|
155
169
|
type: FileUploadType.Template;
|
|
156
170
|
fileData?: undefined;
|
|
157
171
|
});
|
|
158
|
-
export declare enum FolderType {
|
|
159
|
-
Project = "project",
|
|
160
|
-
Job = "job",
|
|
161
|
-
Template = "template"
|
|
162
|
-
}
|
|
163
|
-
export interface ProjectFolder extends FirestoreDoc, Timestamps {
|
|
164
|
-
name: string;
|
|
165
|
-
parentFolderId: string | null;
|
|
166
|
-
projectId: string;
|
|
167
|
-
}
|
|
168
172
|
export interface Folder extends FirestoreDoc, Timestamps {
|
|
169
173
|
name: string;
|
|
170
174
|
index: number;
|
|
171
175
|
parentFolderId?: string | null;
|
|
172
|
-
projectId: string | null;
|
|
173
|
-
type: FolderType;
|
|
174
176
|
isPublic?: boolean;
|
|
175
177
|
starred?: boolean;
|
|
176
178
|
}
|
|
@@ -182,7 +184,6 @@ export interface Job extends FirestoreDoc, Timestamps {
|
|
|
182
184
|
name: string;
|
|
183
185
|
folderId: string;
|
|
184
186
|
progress: number;
|
|
185
|
-
projectId: string;
|
|
186
187
|
lastAccessed: Date;
|
|
187
188
|
toleranceConfig?: {
|
|
188
189
|
thresholds: {
|
|
@@ -202,13 +203,9 @@ export interface Section extends Timestamps {
|
|
|
202
203
|
name: string;
|
|
203
204
|
tableConfig: ColumnConfig[];
|
|
204
205
|
measurements: string[];
|
|
205
|
-
projectId: string;
|
|
206
|
-
jobId: string;
|
|
207
206
|
isTemplate?: boolean;
|
|
208
207
|
}
|
|
209
208
|
export interface Group extends FirestoreDoc, Timestamps {
|
|
210
|
-
projectId: string;
|
|
211
|
-
jobId: string;
|
|
212
209
|
sectionId: string;
|
|
213
210
|
name: string;
|
|
214
211
|
sortIndex: number;
|
|
@@ -305,9 +302,6 @@ export declare enum MeasurementType {
|
|
|
305
302
|
Length = "length"
|
|
306
303
|
}
|
|
307
304
|
export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
308
|
-
projectId: string;
|
|
309
|
-
jobId: string;
|
|
310
|
-
groupId: string;
|
|
311
305
|
sectionId: string;
|
|
312
306
|
value: number;
|
|
313
307
|
index: number;
|
|
@@ -321,6 +315,7 @@ export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
|
321
315
|
isCompleted?: boolean;
|
|
322
316
|
type?: MeasurementType;
|
|
323
317
|
note?: string;
|
|
318
|
+
deviceMeasurementNumber?: number;
|
|
324
319
|
fileId?: string | null;
|
|
325
320
|
}
|
|
326
321
|
export interface Label extends FirestoreDoc, Timestamps {
|
package/dist/types/firestore.js
CHANGED
|
@@ -22,13 +22,8 @@ export var FileUploadType;
|
|
|
22
22
|
FileUploadType["Background"] = "background";
|
|
23
23
|
FileUploadType["LayoutGroup"] = "layoutGroup";
|
|
24
24
|
FileUploadType["Calculator"] = "calculator";
|
|
25
|
+
FileUploadType["Conversion"] = "conversion";
|
|
25
26
|
})(FileUploadType || (FileUploadType = {}));
|
|
26
|
-
export var FolderType;
|
|
27
|
-
(function (FolderType) {
|
|
28
|
-
FolderType["Project"] = "project";
|
|
29
|
-
FolderType["Job"] = "job";
|
|
30
|
-
FolderType["Template"] = "template";
|
|
31
|
-
})(FolderType || (FolderType = {}));
|
|
32
27
|
export var GroupType;
|
|
33
28
|
(function (GroupType) {
|
|
34
29
|
GroupType["LIST"] = "list";
|