@reekon-tools/boldr-utils 1.3.0 → 1.3.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 +45 -2
- package/dist/types/firestore.js +5 -1
- package/package.json +1 -1
|
@@ -15,12 +15,23 @@ export interface Organization extends FirestoreDoc, Timestamps {
|
|
|
15
15
|
}
|
|
16
16
|
export declare enum OrganizationRole {
|
|
17
17
|
Admin = "admin",
|
|
18
|
-
|
|
18
|
+
Full = "full",
|
|
19
|
+
Contributor = "contributor",
|
|
20
|
+
Viewer = "viewer"
|
|
19
21
|
}
|
|
20
22
|
export declare enum InvitationStatus {
|
|
21
23
|
Pending = "pending",
|
|
22
24
|
Accepted = "accepted"
|
|
23
25
|
}
|
|
26
|
+
export interface Notification extends FirestoreDoc, Timestamps {
|
|
27
|
+
userId: string;
|
|
28
|
+
type: 'invitation';
|
|
29
|
+
organizationId: string;
|
|
30
|
+
senderId: string;
|
|
31
|
+
role: OrganizationRole;
|
|
32
|
+
message: string;
|
|
33
|
+
status: InvitationStatus;
|
|
34
|
+
}
|
|
24
35
|
export interface Invitation extends FirestoreDoc, Timestamps {
|
|
25
36
|
delivery?: unknown;
|
|
26
37
|
invitationCode: string;
|
|
@@ -52,6 +63,22 @@ export interface Project extends FirestoreDoc, Timestamps {
|
|
|
52
63
|
zipCode: string;
|
|
53
64
|
state: string;
|
|
54
65
|
}
|
|
66
|
+
export interface Template {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
diagramFileId: string | null;
|
|
71
|
+
diagramUrl: string;
|
|
72
|
+
tableConfig: ColumnConfig[];
|
|
73
|
+
tolerances?: {
|
|
74
|
+
[key: string]: {
|
|
75
|
+
min: number;
|
|
76
|
+
max: number;
|
|
77
|
+
target: number;
|
|
78
|
+
deviation: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
55
82
|
export declare enum FolderType {
|
|
56
83
|
Project = "project",
|
|
57
84
|
Job = "job"
|
|
@@ -85,13 +112,26 @@ export interface Group extends FirestoreDoc, Timestamps {
|
|
|
85
112
|
name: string;
|
|
86
113
|
sortIndex: number;
|
|
87
114
|
columns: Record<string, any>;
|
|
115
|
+
groupIndex: number;
|
|
116
|
+
descriptions?: Record<string, string>;
|
|
117
|
+
tolerances?: {
|
|
118
|
+
[key: string]: {
|
|
119
|
+
min: number;
|
|
120
|
+
max: number;
|
|
121
|
+
target: number;
|
|
122
|
+
deviation: number;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
diagramFileId?: string;
|
|
88
126
|
}
|
|
89
127
|
export declare enum ColumnType {
|
|
90
128
|
Text = "text",
|
|
91
129
|
Number = "number",
|
|
92
130
|
Measurement = "measurement",
|
|
93
131
|
Boolean = "boolean",
|
|
94
|
-
Formula = "formula"
|
|
132
|
+
Formula = "formula",
|
|
133
|
+
SingleSelect = "singleSelect",
|
|
134
|
+
MultiSelect = "multiSelect"
|
|
95
135
|
}
|
|
96
136
|
export interface Formula extends FirestoreDoc, Timestamps {
|
|
97
137
|
expression: string;
|
|
@@ -104,6 +144,8 @@ export interface ColumnConfig {
|
|
|
104
144
|
type: ColumnType;
|
|
105
145
|
formulaId?: string;
|
|
106
146
|
mappings?: Record<string, string>;
|
|
147
|
+
withTolerance?: boolean;
|
|
148
|
+
options?: string[];
|
|
107
149
|
}
|
|
108
150
|
export interface Row {
|
|
109
151
|
[key: string]: any;
|
|
@@ -155,5 +197,6 @@ export interface UserDocument extends FirestoreDoc, Timestamps {
|
|
|
155
197
|
fractionalTolerance: FractionalTolerance;
|
|
156
198
|
showWizard: boolean;
|
|
157
199
|
printLabelSize: string;
|
|
200
|
+
printLogoFileId: string;
|
|
158
201
|
}
|
|
159
202
|
export {};
|
package/dist/types/firestore.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export var OrganizationRole;
|
|
2
2
|
(function (OrganizationRole) {
|
|
3
3
|
OrganizationRole["Admin"] = "admin";
|
|
4
|
-
OrganizationRole["
|
|
4
|
+
OrganizationRole["Full"] = "full";
|
|
5
|
+
OrganizationRole["Contributor"] = "contributor";
|
|
6
|
+
OrganizationRole["Viewer"] = "viewer";
|
|
5
7
|
})(OrganizationRole || (OrganizationRole = {}));
|
|
6
8
|
export var InvitationStatus;
|
|
7
9
|
(function (InvitationStatus) {
|
|
@@ -20,6 +22,8 @@ export var ColumnType;
|
|
|
20
22
|
ColumnType["Measurement"] = "measurement";
|
|
21
23
|
ColumnType["Boolean"] = "boolean";
|
|
22
24
|
ColumnType["Formula"] = "formula";
|
|
25
|
+
ColumnType["SingleSelect"] = "singleSelect";
|
|
26
|
+
ColumnType["MultiSelect"] = "multiSelect";
|
|
23
27
|
})(ColumnType || (ColumnType = {}));
|
|
24
28
|
export var Units;
|
|
25
29
|
(function (Units) {
|