@reekon-tools/boldr-utils 1.5.3 → 1.6.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.
@@ -59,7 +59,6 @@ export interface OrganizationMember extends FirestoreDoc {
59
59
  export interface Project extends FirestoreDoc, Timestamps {
60
60
  name: string;
61
61
  description: string;
62
- imageUrl: string | null;
63
62
  streetAddress: string;
64
63
  city: string;
65
64
  zipCode: string;
@@ -104,7 +103,8 @@ export declare enum FileUploadType {
104
103
  Background = "background",
105
104
  LayoutGroup = "layoutGroup",
106
105
  Calculator = "calculator",
107
- Conversion = "conversion"
106
+ Conversion = "conversion",
107
+ Note = "note"
108
108
  }
109
109
  export interface AnnotationFileData {
110
110
  fileType: 'sketch' | 'document';
@@ -136,6 +136,11 @@ export interface ConversionFileData {
136
136
  inputValue: string;
137
137
  outputValue: number;
138
138
  }
139
+ export interface NoteFileData {
140
+ contentJson: string;
141
+ plainText?: string;
142
+ version?: number;
143
+ }
139
144
  interface FileUploadBase {
140
145
  id: string;
141
146
  name: string;
@@ -159,6 +164,9 @@ export type FileUpload = FileUploadBase & ({
159
164
  } | {
160
165
  type: FileUploadType.Conversion;
161
166
  fileData: ConversionFileData;
167
+ } | {
168
+ type: FileUploadType.Note;
169
+ fileData: NoteFileData;
162
170
  } | {
163
171
  type: FileUploadType.Background;
164
172
  fileData?: undefined;
@@ -23,6 +23,7 @@ export var FileUploadType;
23
23
  FileUploadType["LayoutGroup"] = "layoutGroup";
24
24
  FileUploadType["Calculator"] = "calculator";
25
25
  FileUploadType["Conversion"] = "conversion";
26
+ FileUploadType["Note"] = "note";
26
27
  })(FileUploadType || (FileUploadType = {}));
27
28
  export var GroupType;
28
29
  (function (GroupType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.5.3",
3
+ "version": "1.6.0",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",