@use-stall/types 0.3.12 → 0.3.13
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/package.json +1 -1
- package/src/organizations.d.ts +11 -2
package/package.json
CHANGED
package/src/organizations.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export interface OrganizationDBConfig {
|
|
2
|
+
refresh_token?: string; // gsheets only — stored encrypted
|
|
3
|
+
database_url?: string; // postgres only — stored encrypted
|
|
4
|
+
spreadsheet_id?: string; // gsheets only — stored after first seed, stored encrypted
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface OrganizationDBType {
|
|
8
|
+
type: "default" | "postgres" | "gsheets";
|
|
9
|
+
config: OrganizationDBConfig;
|
|
10
|
+
}
|
|
2
11
|
|
|
3
12
|
export interface OrganizationType {
|
|
4
13
|
id: string;
|
|
@@ -23,7 +32,7 @@ export interface OrganizationType {
|
|
|
23
32
|
emails: string[]; // Other email addresses with access, the primary one is the one with matching the owner uid
|
|
24
33
|
created_at: number;
|
|
25
34
|
updated_at: number;
|
|
26
|
-
|
|
35
|
+
db: OrganizationDBType;
|
|
27
36
|
timezone: string;
|
|
28
37
|
onboarded: boolean;
|
|
29
38
|
country: string;
|