@reekon-tools/boldr-utils 1.4.33 → 1.5.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.
@@ -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;
@@ -172,6 +186,7 @@ export interface Folder extends FirestoreDoc, Timestamps {
172
186
  projectId: string | null;
173
187
  type: FolderType;
174
188
  isPublic?: boolean;
189
+ starred?: boolean;
175
190
  }
176
191
  export declare enum GroupType {
177
192
  LIST = "list",
@@ -181,7 +196,6 @@ export interface Job extends FirestoreDoc, Timestamps {
181
196
  name: string;
182
197
  folderId: string;
183
198
  progress: number;
184
- projectId: string;
185
199
  lastAccessed: Date;
186
200
  toleranceConfig?: {
187
201
  thresholds: {
@@ -194,19 +208,16 @@ export interface Job extends FirestoreDoc, Timestamps {
194
208
  areaMapFileId?: string;
195
209
  address?: string;
196
210
  description?: string;
211
+ starred?: boolean;
197
212
  }
198
213
  export interface Section extends Timestamps {
199
214
  id: string;
200
215
  name: string;
201
216
  tableConfig: ColumnConfig[];
202
217
  measurements: string[];
203
- projectId: string;
204
- jobId: string;
205
218
  isTemplate?: boolean;
206
219
  }
207
220
  export interface Group extends FirestoreDoc, Timestamps {
208
- projectId: string;
209
- jobId: string;
210
221
  sectionId: string;
211
222
  name: string;
212
223
  sortIndex: number;
@@ -303,9 +314,6 @@ export declare enum MeasurementType {
303
314
  Length = "length"
304
315
  }
305
316
  export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
306
- projectId: string;
307
- jobId: string;
308
- groupId: string;
309
317
  sectionId: string;
310
318
  value: number;
311
319
  index: number;
@@ -319,6 +327,7 @@ export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
319
327
  isCompleted?: boolean;
320
328
  type?: MeasurementType;
321
329
  note?: string;
330
+ deviceMeasurementNumber?: number;
322
331
  fileId?: string | null;
323
332
  }
324
333
  export interface Label extends FirestoreDoc, Timestamps {
@@ -22,6 +22,7 @@ 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
27
  export var FolderType;
27
28
  (function (FolderType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.4.33",
3
+ "version": "1.5.0",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",