@reekon-tools/boldr-utils 1.4.1 → 1.4.2
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 +12 -0
- package/dist/types/layout.d.ts +6 -4
- package/package.json +1 -1
|
@@ -90,6 +90,10 @@ export interface Folder extends FirestoreDoc {
|
|
|
90
90
|
projectId: string | null;
|
|
91
91
|
type: FolderType;
|
|
92
92
|
}
|
|
93
|
+
export declare enum JobType {
|
|
94
|
+
DEFAULT = "default",
|
|
95
|
+
CUTLIST = "cutlist"
|
|
96
|
+
}
|
|
93
97
|
export interface Job extends FirestoreDoc, Timestamps {
|
|
94
98
|
name: string;
|
|
95
99
|
folderId: string;
|
|
@@ -105,6 +109,7 @@ export interface Job extends FirestoreDoc, Timestamps {
|
|
|
105
109
|
updatedAt: Date;
|
|
106
110
|
};
|
|
107
111
|
areaMapFileId?: string;
|
|
112
|
+
type?: JobType;
|
|
108
113
|
}
|
|
109
114
|
export interface Section {
|
|
110
115
|
id: string;
|
|
@@ -140,7 +145,9 @@ export declare enum ColumnType {
|
|
|
140
145
|
Boolean = "boolean",
|
|
141
146
|
Formula = "formula",
|
|
142
147
|
SingleSelect = "singleSelect",
|
|
143
|
-
MultiSelect = "multiSelect"
|
|
148
|
+
MultiSelect = "multiSelect",
|
|
149
|
+
Angle = "angle",
|
|
150
|
+
ConversionTable = "conversionTable"
|
|
144
151
|
}
|
|
145
152
|
export interface Formula extends FirestoreDoc, Timestamps {
|
|
146
153
|
expression: string;
|
|
@@ -155,10 +162,19 @@ export interface ColumnConfig {
|
|
|
155
162
|
mappings?: Record<string, string>;
|
|
156
163
|
withTolerance?: boolean;
|
|
157
164
|
options?: string[];
|
|
165
|
+
conversions?: Conversion[];
|
|
166
|
+
}
|
|
167
|
+
export interface Conversion {
|
|
168
|
+
label: string;
|
|
169
|
+
value: string;
|
|
158
170
|
}
|
|
159
171
|
export interface Row {
|
|
160
172
|
[key: string]: any;
|
|
161
173
|
}
|
|
174
|
+
export declare enum MeasurementType {
|
|
175
|
+
Angle = "angle",
|
|
176
|
+
Length = "length"
|
|
177
|
+
}
|
|
162
178
|
export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
163
179
|
projectId: string;
|
|
164
180
|
jobId: string;
|
|
@@ -173,6 +189,9 @@ export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
|
173
189
|
relative?: boolean;
|
|
174
190
|
measureBack?: boolean;
|
|
175
191
|
centerFinding?: boolean;
|
|
192
|
+
isCompleted?: boolean;
|
|
193
|
+
type?: MeasurementType;
|
|
194
|
+
note?: string;
|
|
176
195
|
}
|
|
177
196
|
export declare enum Units {
|
|
178
197
|
Centimeters = "cm",
|
package/dist/types/firestore.js
CHANGED
|
@@ -15,6 +15,11 @@ export var FolderType;
|
|
|
15
15
|
FolderType["Project"] = "project";
|
|
16
16
|
FolderType["Job"] = "job";
|
|
17
17
|
})(FolderType || (FolderType = {}));
|
|
18
|
+
export var JobType;
|
|
19
|
+
(function (JobType) {
|
|
20
|
+
JobType["DEFAULT"] = "default";
|
|
21
|
+
JobType["CUTLIST"] = "cutlist";
|
|
22
|
+
})(JobType || (JobType = {}));
|
|
18
23
|
export var ColumnType;
|
|
19
24
|
(function (ColumnType) {
|
|
20
25
|
ColumnType["Text"] = "text";
|
|
@@ -24,7 +29,14 @@ export var ColumnType;
|
|
|
24
29
|
ColumnType["Formula"] = "formula";
|
|
25
30
|
ColumnType["SingleSelect"] = "singleSelect";
|
|
26
31
|
ColumnType["MultiSelect"] = "multiSelect";
|
|
32
|
+
ColumnType["Angle"] = "angle";
|
|
33
|
+
ColumnType["ConversionTable"] = "conversionTable";
|
|
27
34
|
})(ColumnType || (ColumnType = {}));
|
|
35
|
+
export var MeasurementType;
|
|
36
|
+
(function (MeasurementType) {
|
|
37
|
+
MeasurementType["Angle"] = "angle";
|
|
38
|
+
MeasurementType["Length"] = "length";
|
|
39
|
+
})(MeasurementType || (MeasurementType = {}));
|
|
28
40
|
export var Units;
|
|
29
41
|
(function (Units) {
|
|
30
42
|
Units["Centimeters"] = "cm";
|
package/dist/types/layout.d.ts
CHANGED
|
@@ -40,13 +40,15 @@ export interface Layout {
|
|
|
40
40
|
faces: Record<string, Face>;
|
|
41
41
|
backgroundImage?: {
|
|
42
42
|
fileId: string;
|
|
43
|
-
|
|
43
|
+
opacity: number;
|
|
44
|
+
centerWorld: {
|
|
44
45
|
x: number;
|
|
45
46
|
y: number;
|
|
46
47
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
pixelSizeWorld: number;
|
|
49
|
+
widthPx: number;
|
|
50
|
+
heightPx: number;
|
|
51
|
+
rotationRad: number;
|
|
50
52
|
};
|
|
51
53
|
metadata?: {
|
|
52
54
|
projectId?: string;
|