@databutton/firebase-types 1.13.12 → 1.13.14

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.
@@ -36,6 +36,50 @@ export interface Profile {
36
36
  migratedToProfileRef?: string;
37
37
  migratedFromProfileRef?: string;
38
38
  }
39
+ /**
40
+ * Subcollection under projects
41
+ *
42
+ * Every project contains 1 multipage app which in turn contains 0-n pages.
43
+ */
44
+ export interface MultipageApp {
45
+ /**
46
+ * Autogenerated short-url for this multipage app (/v/something)
47
+ */
48
+ shortUrl: string;
49
+ /**
50
+ * Where or not this multipage app should be accessible by link
51
+ */
52
+ isPublic: boolean;
53
+ }
54
+ /**
55
+ * Subcollection under multipage-apps
56
+ */
57
+ export interface MultipageAppPage {
58
+ /**
59
+ * Name of the page
60
+ */
61
+ name: string;
62
+ /**
63
+ * Slug for the page. Used for URLs
64
+ */
65
+ slug: string;
66
+ /**
67
+ * Ref to the code block representing this page
68
+ */
69
+ codeBlockRef: string;
70
+ createdBy: PerformedBy;
71
+ markedForDeletionBy: PerformedBy | null;
72
+ /**
73
+ * Used to indicate if this page should be hidden from the navbar
74
+ */
75
+ hidden: boolean;
76
+ /**
77
+ * Used for ordering pages in the navbar.
78
+ *
79
+ * TODO: Figure out if this should be stored at the multipage app level
80
+ */
81
+ sequence: number;
82
+ }
39
83
  export interface App {
40
84
  name: string;
41
85
  slug: string;
@@ -74,7 +118,7 @@ export interface Job {
74
118
  category: string | null;
75
119
  }
76
120
  export interface CodeBlock {
77
- type: "app" | "job" | "module";
121
+ type: "app" | "job" | "module" | "page";
78
122
  createdAtUtc: Timestamp;
79
123
  componentId: string;
80
124
  controlTakenBy?: PerformedBy | null;
@@ -257,6 +301,7 @@ export interface Project {
257
301
  }
258
302
  export interface ProjectTemplate {
259
303
  createdBy: PerformedBy;
304
+ hasDeletionProtection?: boolean;
260
305
  illustrationSrc?: string | null;
261
306
  lastUpdatedBy: PerformedBy;
262
307
  basedOnProjectId: string;
@@ -269,6 +314,10 @@ export interface ProjectTemplate {
269
314
  name: string;
270
315
  code: string;
271
316
  }[];
317
+ multipageAppPages?: {
318
+ name: string;
319
+ code: string;
320
+ }[];
272
321
  jobs: {
273
322
  name: string;
274
323
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.13.12",
3
+ "version": "1.13.14",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "scripts": {
24
- "cli": "ts-node-esm functions/cli/main.ts",
24
+ "cli": "ts-node-esm -T functions/cli/main.ts",
25
25
  "cli:login": "gcloud iam service-accounts keys create ~/.config/gcloud/databutton-firebase-cli.json --iam-account=firebase-adminsdk-4ay2f@databutton.iam.gserviceaccount.com",
26
26
  "lint": "rome check functions test",
27
27
  "format": "rome format functions test",