@databutton/firebase-types 1.0.6 → 1.0.8
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.
|
@@ -3,6 +3,18 @@ import { Timestamp } from "firebase/firestore";
|
|
|
3
3
|
* Types here should reflect data format stored in firestore and
|
|
4
4
|
* either be backwards-compatible or migrated when needed
|
|
5
5
|
*/
|
|
6
|
+
interface PerformerBase {
|
|
7
|
+
timestamp: Timestamp;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PerformedByUser extends PerformerBase {
|
|
11
|
+
type: "user";
|
|
12
|
+
name: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface PerformedBySystem extends PerformerBase {
|
|
15
|
+
type: "system";
|
|
16
|
+
}
|
|
17
|
+
export declare type PerformedBy = PerformedByUser | PerformedBySystem;
|
|
6
18
|
export interface Profile {
|
|
7
19
|
displayName: string;
|
|
8
20
|
email: string;
|
|
@@ -19,6 +31,7 @@ export interface App {
|
|
|
19
31
|
createdAt: Timestamp;
|
|
20
32
|
variant: "streamlit";
|
|
21
33
|
markedForDeletionAt: Timestamp | null;
|
|
34
|
+
markedForDeletionBy?: PerformedBy | null;
|
|
22
35
|
shortUrl: string;
|
|
23
36
|
category: string | null;
|
|
24
37
|
}
|
|
@@ -28,6 +41,7 @@ export interface Job {
|
|
|
28
41
|
createdBy: string;
|
|
29
42
|
createdAt: Timestamp;
|
|
30
43
|
markedForDeletionAt: Timestamp | null;
|
|
44
|
+
markedForDeletionBy?: PerformedBy | null;
|
|
31
45
|
category: string | null;
|
|
32
46
|
}
|
|
33
47
|
export interface CodeBlock {
|
|
@@ -37,6 +51,7 @@ export interface CodeBlock {
|
|
|
37
51
|
}
|
|
38
52
|
export interface CodeBlockVersion {
|
|
39
53
|
code: string;
|
|
54
|
+
createdBy?: PerformedBy;
|
|
40
55
|
createdAtUtc: Timestamp;
|
|
41
56
|
version: string;
|
|
42
57
|
description: string;
|
|
@@ -70,6 +85,7 @@ export interface Dataframe {
|
|
|
70
85
|
size: string;
|
|
71
86
|
sizeInMb: string;
|
|
72
87
|
markedForDeletionAt?: Timestamp | null;
|
|
88
|
+
markedForDeletionBy?: PerformedBy | null;
|
|
73
89
|
}
|
|
74
90
|
export interface Viewer {
|
|
75
91
|
userId: string | null;
|
|
@@ -129,6 +145,7 @@ export interface Project {
|
|
|
129
145
|
createdAt: Timestamp;
|
|
130
146
|
isPublic: boolean;
|
|
131
147
|
markedForDeletionAt: Timestamp | null;
|
|
148
|
+
markedForDeletionBy?: PerformedBy | null;
|
|
132
149
|
members: string[];
|
|
133
150
|
name: string;
|
|
134
151
|
owner: string;
|
|
@@ -148,3 +165,4 @@ export interface Project {
|
|
|
148
165
|
deployCurrentDeployedId?: string;
|
|
149
166
|
deployLastDeploymentSuccess?: boolean;
|
|
150
167
|
}
|
|
168
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databutton/firebase-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/types/published/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"shell": "yarn build && firebase functions:shell",
|
|
26
26
|
"start": "yarn shell",
|
|
27
27
|
"firebase": "firebase",
|
|
28
|
-
"emulate:firestore": "firebase emulators:start --only firestore --project test",
|
|
29
|
-
"test:rules": "firebase emulators:exec --only firestore 'jest ./test/firestore-rules'",
|
|
30
|
-
"test": "jest ./test/firestore-rules",
|
|
28
|
+
"emulate:firestore": "firebase emulators:start --only firestore,auth --project test",
|
|
29
|
+
"test:rules": "firebase emulators:exec --only firestore,auth 'jest ./test/firestore-rules'",
|
|
30
|
+
"test": "FIREBASE_AUTH_EMULATOR_HOST=\"localhost:9099\" jest ./test/firestore-rules",
|
|
31
31
|
"deploy:rules": "firebase deploy --only firestore:rules",
|
|
32
32
|
"deploy:functions": "firebase deploy --only functions --debug",
|
|
33
33
|
"export:config": "firebase functions:config:get > .runtimeconfig.json",
|