@databutton/firebase-types 1.56.15 → 1.56.18
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/README.md +0 -49
- package/lib/types/published/persisted.d.ts +9 -3
- package/package.json +2 -80
package/README.md
CHANGED
|
@@ -1,50 +1 @@
|
|
|
1
|
-
# Databutton Firebase
|
|
2
|
-
|
|
3
|
-
This repo contains firestore types, functions and rules for Databutton.
|
|
4
|
-
|
|
5
|
-
## Contributing
|
|
6
|
-
|
|
7
|
-
This repo runs TypeScript and is a pure ESM project. This basically means that you have to write `import x from 'x';` and you can no longer write `const x = require('x');`
|
|
8
|
-
|
|
9
|
-
In addition, all imports needs to be relative paths and include file-ending (.js). This is also the case when importing TypeScript files because the imports are used after the TypeScript has been transpiled into JavaScript.
|
|
10
|
-
|
|
11
|
-
For more info, check out this [guide on writing pure ESM packages](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
|
|
12
|
-
|
|
13
|
-
### Developing
|
|
14
|
-
|
|
15
|
-
```sh
|
|
16
|
-
yarn install
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Running tests
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
yarn test:rules
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Linting
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
yarn lint
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Running locally
|
|
32
|
-
|
|
33
|
-
*Note:* You need Google Credentials
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
yarn shell
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Execute firebase scripts (for migration etch.)
|
|
40
|
-
|
|
41
|
-
Set up GOOGLE_APPLICATION_CREDENTIALS from the following guide: <https://firebase.google.com/docs/admin/setup#initialize-sdk> and add the environment variable to the file `<PROJECT_ROOT>/.env`
|
|
42
|
-
|
|
43
|
-
Modify the `src/run.ts`-file to do what you want.
|
|
44
|
-
|
|
45
|
-
Execute the script running this command
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
yarn execute
|
|
49
|
-
```
|
|
50
1
|
|
|
@@ -571,6 +571,7 @@ export interface ProjectTemplate {
|
|
|
571
571
|
devxRequirementsId: string;
|
|
572
572
|
} | null;
|
|
573
573
|
targetPoolSize?: number;
|
|
574
|
+
variant?: "streamlit" | "beyond-streamlit";
|
|
574
575
|
}
|
|
575
576
|
export interface Requirements {
|
|
576
577
|
createdBy: PerformedBy;
|
|
@@ -862,16 +863,21 @@ export interface WorkspaceConfig {
|
|
|
862
863
|
active: string;
|
|
863
864
|
latest: string;
|
|
864
865
|
minimum: string;
|
|
866
|
+
beyond?: string;
|
|
867
|
+
[key: string]: string | undefined;
|
|
865
868
|
}
|
|
866
869
|
export interface DbtnControllerRequirements {
|
|
867
870
|
databutton: string;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
watchdog
|
|
871
|
+
ipykernel?: string;
|
|
872
|
+
streamlit?: string;
|
|
873
|
+
watchdog?: string;
|
|
874
|
+
fastapi?: string;
|
|
875
|
+
"uvicorn[standard]"?: string;
|
|
871
876
|
}
|
|
872
877
|
export interface WorkspaceConfigVersion {
|
|
873
878
|
devxVersion: string;
|
|
874
879
|
dbtnControlledRequirements: DbtnControllerRequirements;
|
|
880
|
+
dbtnControlledRequirementsTxt?: string;
|
|
875
881
|
}
|
|
876
882
|
export interface UsageRecordBase {
|
|
877
883
|
customerId: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databutton/firebase-types",
|
|
3
|
-
"version": "1.56.
|
|
4
|
-
"main": "
|
|
3
|
+
"version": "1.56.18",
|
|
4
|
+
"main": "lib/types/published/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "18"
|
|
@@ -21,84 +21,6 @@
|
|
|
21
21
|
"@semantic-release/github"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"cli:local": "ts-node-esm -T local-scripts/main.ts",
|
|
26
|
-
"cli": "ts-node-esm -T functions/cli/main.ts",
|
|
27
|
-
"cli:login": "gcloud iam service-accounts keys create ~/.config/gcloud/databutton-firebase-cli.json --iam-account=firebase-adminsdk-4ay2f@databutton.iam.gserviceaccount.com",
|
|
28
|
-
"lint": "biome check functions test && tsc --noEmit",
|
|
29
|
-
"format": "biome format functions test",
|
|
30
|
-
"ts-lint": "tsc --noEmit",
|
|
31
|
-
"prepublishOnly": "tsc && rm lib/index.js",
|
|
32
|
-
"build": "tsc",
|
|
33
|
-
"execute": "LOCAL=true ts-node-esm functions/run.ts",
|
|
34
|
-
"serve": "yarn build && firebase emulators:start --only functions",
|
|
35
|
-
"shell": "yarn build && firebase functions:shell",
|
|
36
|
-
"start": "yarn shell",
|
|
37
|
-
"firebase": "firebase",
|
|
38
|
-
"emulate:firestore": "firebase emulators:start --only firestore,auth --project test",
|
|
39
|
-
"test:rules": "firebase emulators:exec --only firestore,auth 'jest ./test/firestore-rules --runInBand --silent'",
|
|
40
|
-
"test": "jest ./test/firestore-rules --runInBand",
|
|
41
|
-
"deploy:rules": "firebase deploy --only firestore:rules",
|
|
42
|
-
"deploy:functions": "firebase deploy --only functions",
|
|
43
|
-
"export:config": "firebase functions:config:get > .runtimeconfig.json",
|
|
44
|
-
"export:indexes": "firebase firestore:indexes",
|
|
45
|
-
"logs": "firebase functions:log",
|
|
46
|
-
"jest": "jest",
|
|
47
|
-
"semantic-release": "semantic-release"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@google-cloud/bigquery": "^6.2.0",
|
|
51
|
-
"@google-cloud/trace-agent": "^7.1.2",
|
|
52
|
-
"@linear/sdk": "7.0.1",
|
|
53
|
-
"@segment/analytics-node": "^1.1.0",
|
|
54
|
-
"@sendgrid/mail": "7.7.0",
|
|
55
|
-
"@sentry/node": "7.66.0",
|
|
56
|
-
"@sentry/tracing": "7.66.0",
|
|
57
|
-
"@slack/web-api": "6.9.0",
|
|
58
|
-
"capture-website": "3.2.0",
|
|
59
|
-
"cors": "2.8.5",
|
|
60
|
-
"firebase": "9.23.0",
|
|
61
|
-
"firebase-admin": "11.11.0",
|
|
62
|
-
"firebase-functions": "4.4.1",
|
|
63
|
-
"google-auth-library": "^8.6.0",
|
|
64
|
-
"intercom-client": "3.2.1",
|
|
65
|
-
"ky": "0.33.3",
|
|
66
|
-
"ky-universal": "0.12.0",
|
|
67
|
-
"lodash": "4.17.21",
|
|
68
|
-
"nanoid": "4.0.2",
|
|
69
|
-
"stripe": "^12.8.0",
|
|
70
|
-
"uuid": "8.3.2"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@biomejs/biome": "1.1.2",
|
|
74
|
-
"@firebase/rules-unit-testing": "2.0.7",
|
|
75
|
-
"@sentry/types": "7.66.0",
|
|
76
|
-
"@types/analytics-node": "3.1.12",
|
|
77
|
-
"@types/archiver": "5.3.3",
|
|
78
|
-
"@types/cli-progress": "^3.11.0",
|
|
79
|
-
"@types/diff": "5.0.5",
|
|
80
|
-
"@types/inquirer": "9.0.4",
|
|
81
|
-
"@types/jest": "29.5.5",
|
|
82
|
-
"@types/lodash": "4.14.199",
|
|
83
|
-
"@types/node": "18.18.4",
|
|
84
|
-
"@types/uuid": "8.3.4",
|
|
85
|
-
"ansi-escapes": "6.2.0",
|
|
86
|
-
"archiver": "^5.3.1",
|
|
87
|
-
"cli-progress": "^3.12.0",
|
|
88
|
-
"diff": "5.1.0",
|
|
89
|
-
"dotenv": "16.3.1",
|
|
90
|
-
"firebase-functions-test": "3.1.0",
|
|
91
|
-
"firebase-tools": "11.30.0",
|
|
92
|
-
"inquirer": "9.2.11",
|
|
93
|
-
"jest": "29.7.0",
|
|
94
|
-
"p-queue": "^7.3.4",
|
|
95
|
-
"semantic-release": "19.0.5",
|
|
96
|
-
"ts-jest": "29.1.1",
|
|
97
|
-
"ts-node": "10.9.1",
|
|
98
|
-
"type-fest": "3.13.1",
|
|
99
|
-
"typescript": "4.9.5",
|
|
100
|
-
"url-slug": "3.0.6"
|
|
101
|
-
},
|
|
102
24
|
"repository": {
|
|
103
25
|
"type": "git",
|
|
104
26
|
"url": "https://github.com/databutton/databutton-firebase.git"
|