@reekon-tools/boldr-utils 1.4.6 → 1.4.7

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.
@@ -18,7 +18,7 @@ export const calculateFormula = (formula, formulas, columns, measurements, unit)
18
18
  // Build valueMap from group.columns and measurementMap
19
19
  const valueMap = {};
20
20
  // Map column IDs to their actual measurement values
21
- for (const [columnId, measurementId] of columns.entries()) {
21
+ for (const [columnId, measurementId] of Object.entries(columns)) {
22
22
  const measurement = measurements.find((m) => m.id === measurementId);
23
23
  if (measurement?.value !== undefined) {
24
24
  valueMap[columnId] = measurement.value;
@@ -150,7 +150,7 @@ export interface Job extends FirestoreDoc, Timestamps {
150
150
  areaMapFileId?: string;
151
151
  type?: JobType;
152
152
  }
153
- export interface Section {
153
+ export interface Section extends Timestamps {
154
154
  id: string;
155
155
  name: string;
156
156
  tableConfig: ColumnConfig[];
@@ -199,7 +199,7 @@ export declare enum ColumnType {
199
199
  export interface Formula extends FirestoreDoc, Timestamps {
200
200
  expression: string;
201
201
  name: string;
202
- varaibles: string[];
202
+ variables: string[];
203
203
  variableToColumnMap: Record<string, any>;
204
204
  }
205
205
  export interface ColumnConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",