@reekon-tools/boldr-utils 1.4.1 → 1.4.3
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 +23 -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;
|
|
@@ -132,6 +137,9 @@ export interface Group extends FirestoreDoc, Timestamps {
|
|
|
132
137
|
};
|
|
133
138
|
};
|
|
134
139
|
diagramFileId?: string;
|
|
140
|
+
formula?: any;
|
|
141
|
+
isCompleted?: boolean;
|
|
142
|
+
type?: string;
|
|
135
143
|
}
|
|
136
144
|
export declare enum ColumnType {
|
|
137
145
|
Text = "text",
|
|
@@ -140,7 +148,9 @@ export declare enum ColumnType {
|
|
|
140
148
|
Boolean = "boolean",
|
|
141
149
|
Formula = "formula",
|
|
142
150
|
SingleSelect = "singleSelect",
|
|
143
|
-
MultiSelect = "multiSelect"
|
|
151
|
+
MultiSelect = "multiSelect",
|
|
152
|
+
Angle = "angle",
|
|
153
|
+
ConversionTable = "conversionTable"
|
|
144
154
|
}
|
|
145
155
|
export interface Formula extends FirestoreDoc, Timestamps {
|
|
146
156
|
expression: string;
|
|
@@ -155,10 +165,19 @@ export interface ColumnConfig {
|
|
|
155
165
|
mappings?: Record<string, string>;
|
|
156
166
|
withTolerance?: boolean;
|
|
157
167
|
options?: string[];
|
|
168
|
+
conversions?: Conversion[];
|
|
169
|
+
}
|
|
170
|
+
export interface Conversion {
|
|
171
|
+
label: string;
|
|
172
|
+
value: string;
|
|
158
173
|
}
|
|
159
174
|
export interface Row {
|
|
160
175
|
[key: string]: any;
|
|
161
176
|
}
|
|
177
|
+
export declare enum MeasurementType {
|
|
178
|
+
Angle = "angle",
|
|
179
|
+
Length = "length"
|
|
180
|
+
}
|
|
162
181
|
export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
163
182
|
projectId: string;
|
|
164
183
|
jobId: string;
|
|
@@ -173,6 +192,9 @@ export interface Measurement extends FirestoreDoc, Timestamps, CreatedBy {
|
|
|
173
192
|
relative?: boolean;
|
|
174
193
|
measureBack?: boolean;
|
|
175
194
|
centerFinding?: boolean;
|
|
195
|
+
isCompleted?: boolean;
|
|
196
|
+
type?: MeasurementType;
|
|
197
|
+
note?: string;
|
|
176
198
|
}
|
|
177
199
|
export declare enum Units {
|
|
178
200
|
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;
|