@databutton/firebase-types 0.0.4 → 1.0.3

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.
@@ -1,2 +1 @@
1
- export * from "./types";
2
1
  export * from "./persisted";
@@ -108,3 +108,43 @@ export interface RunLog {
108
108
  msg: string;
109
109
  time: admin.firestore.Timestamp;
110
110
  }
111
+ export interface ProjectInvitation {
112
+ project: {
113
+ id: string;
114
+ name: string;
115
+ };
116
+ state: "pending" | "withdrawn" | "accepted" | "cancelled";
117
+ createdAt: admin.firestore.Timestamp;
118
+ acceptedAt: admin.firestore.Timestamp | null;
119
+ role: "member";
120
+ from: {
121
+ userId: string;
122
+ email: string;
123
+ };
124
+ to: {
125
+ email: string;
126
+ };
127
+ }
128
+ export interface Project {
129
+ createdAt: admin.firestore.Timestamp;
130
+ isPublic: boolean;
131
+ markedForDeletionAt: admin.firestore.Timestamp | null;
132
+ members: string[];
133
+ name: string;
134
+ owner: string;
135
+ projectCardColor: string;
136
+ projectUrl: string;
137
+ current_deployment_id?: string;
138
+ shouldShowStartGuide?: boolean;
139
+ about?: string;
140
+ githubUrl?: string;
141
+ isShowcase?: boolean;
142
+ last_deployed?: admin.firestore.Timestamp;
143
+ schema?: "2022-08-22" | null;
144
+ devxUrl?: string;
145
+ prodxUrl?: string;
146
+ deployIsInProgress?: boolean;
147
+ deployFinishedAt?: admin.firestore.Timestamp;
148
+ deployCurrentDeployedId?: string;
149
+ deployLastDeploymentSuccess?: boolean;
150
+ }
package/package.json CHANGED
@@ -1,14 +1,19 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "0.0.4",
4
- "main": "",
3
+ "version": "1.0.3",
4
+ "main": "lib/index.js",
5
5
  "types": "lib/types/published/index.d.ts",
6
6
  "files": [
7
7
  "lib/types/published/**/*.d.ts"
8
8
  ],
9
+ "release": {
10
+ "branches": [
11
+ "main"
12
+ ]
13
+ },
9
14
  "scripts": {
10
15
  "lint": "eslint --ext .js,.ts .",
11
- "prepublish": "tsc",
16
+ "prepublishOnly": "tsc && rm lib/index.js",
12
17
  "build": "tsc",
13
18
  "execute": "ts-node functions/run.ts",
14
19
  "serve": "yarn build && firebase emulators:start --only functions",
@@ -22,7 +27,8 @@
22
27
  "deploy:functions": "firebase deploy --only functions --debug",
23
28
  "export:config": "firebase functions:config:get > .runtimeconfig.json",
24
29
  "logs": "firebase functions:log",
25
- "jest": "jest"
30
+ "jest": "jest",
31
+ "semantic-release": "semantic-release"
26
32
  },
27
33
  "engines": {
28
34
  "node": "16"
@@ -64,6 +70,14 @@
64
70
  "jest": "28.1.3",
65
71
  "ts-jest": "28.0.8",
66
72
  "ts-node": "10.9.1",
67
- "typescript": "4.8.4"
73
+ "typescript": "4.8.4",
74
+ "semantic-release": "19.0.5"
75
+ },
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "https://github.com/databutton/databutton-firebase.git"
79
+ },
80
+ "publishConfig": {
81
+ "access": "public"
68
82
  }
69
83
  }
@@ -1,41 +0,0 @@
1
- import * as admin from "firebase-admin";
2
- export interface Project {
3
- createdAt: admin.firestore.Timestamp;
4
- isPublic: boolean;
5
- markedForDeletionAt: admin.firestore.Timestamp | null;
6
- members: string[];
7
- name: string;
8
- owner: string;
9
- projectCardColor: string;
10
- projectUrl: string;
11
- current_deployment_id?: string;
12
- shouldShowStartGuide?: boolean;
13
- about?: string;
14
- githubUrl?: string;
15
- isShowcase?: boolean;
16
- last_deployed?: admin.firestore.Timestamp;
17
- schema?: "2022-08-22" | null;
18
- devxUrl?: string;
19
- prodxUrl?: string;
20
- deployIsInProgress?: boolean;
21
- deployFinishedAt?: admin.firestore.Timestamp;
22
- deployCurrentDeployedId?: string;
23
- deployLastDeploymentSuccess?: boolean;
24
- }
25
- export interface ProjectInvitation {
26
- project: {
27
- id: string;
28
- name: string;
29
- };
30
- state: "pending" | "withdrawn" | "accepted" | "cancelled";
31
- createdAt: admin.firestore.Timestamp;
32
- acceptedAt: admin.firestore.Timestamp | null;
33
- role: "member";
34
- from: {
35
- userId: string;
36
- email: string;
37
- };
38
- to: {
39
- email: string;
40
- };
41
- }