@databutton/firebase-types 1.72.109 → 1.72.111

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.
@@ -100,3 +100,27 @@ export declare enum DatabuttonIdPrefix {
100
100
  ANONYMOUS_USER = "an",
101
101
  MESSAGE = "me"
102
102
  }
103
+ export declare enum ThirdPartyStorageName {
104
+ FIREBASE = "firebase",
105
+ SUPABASE = "supabase",
106
+ AWS_S3 = "aws-s3",
107
+ GOOGLE_CLOUD_STORAGE = "google-cloud-storage"
108
+ }
109
+ export declare enum ThirdPartyPaymentsName {
110
+ STRIPE = "stripe",
111
+ LEMON_SQUEEZY = "lemonsqueezy"
112
+ }
113
+ export declare enum ThirdPartyDatabaseName {
114
+ FIRESTORE = "firestore",
115
+ SUPABASE = "supabase"
116
+ }
117
+ export declare enum ThirdPartyAuthName {
118
+ FIREBASE = "firebase",
119
+ SUPABASE = "supabase"
120
+ }
121
+ export declare enum ThirdPartyServiceCategory {
122
+ AUTH = "auth",
123
+ DATABASE = "database",
124
+ PAYMENTS = "payments",
125
+ STORAGE = "storage"
126
+ }
@@ -102,4 +102,33 @@ export var DatabuttonIdPrefix;
102
102
  DatabuttonIdPrefix["ANONYMOUS_USER"] = "an";
103
103
  DatabuttonIdPrefix["MESSAGE"] = "me";
104
104
  })(DatabuttonIdPrefix = DatabuttonIdPrefix || (DatabuttonIdPrefix = {}));
105
+ export var ThirdPartyStorageName;
106
+ (function (ThirdPartyStorageName) {
107
+ ThirdPartyStorageName["FIREBASE"] = "firebase";
108
+ ThirdPartyStorageName["SUPABASE"] = "supabase";
109
+ ThirdPartyStorageName["AWS_S3"] = "aws-s3";
110
+ ThirdPartyStorageName["GOOGLE_CLOUD_STORAGE"] = "google-cloud-storage";
111
+ })(ThirdPartyStorageName = ThirdPartyStorageName || (ThirdPartyStorageName = {}));
112
+ export var ThirdPartyPaymentsName;
113
+ (function (ThirdPartyPaymentsName) {
114
+ ThirdPartyPaymentsName["STRIPE"] = "stripe";
115
+ ThirdPartyPaymentsName["LEMON_SQUEEZY"] = "lemonsqueezy";
116
+ })(ThirdPartyPaymentsName = ThirdPartyPaymentsName || (ThirdPartyPaymentsName = {}));
117
+ export var ThirdPartyDatabaseName;
118
+ (function (ThirdPartyDatabaseName) {
119
+ ThirdPartyDatabaseName["FIRESTORE"] = "firestore";
120
+ ThirdPartyDatabaseName["SUPABASE"] = "supabase";
121
+ })(ThirdPartyDatabaseName = ThirdPartyDatabaseName || (ThirdPartyDatabaseName = {}));
122
+ export var ThirdPartyAuthName;
123
+ (function (ThirdPartyAuthName) {
124
+ ThirdPartyAuthName["FIREBASE"] = "firebase";
125
+ ThirdPartyAuthName["SUPABASE"] = "supabase";
126
+ })(ThirdPartyAuthName = ThirdPartyAuthName || (ThirdPartyAuthName = {}));
127
+ export var ThirdPartyServiceCategory;
128
+ (function (ThirdPartyServiceCategory) {
129
+ ThirdPartyServiceCategory["AUTH"] = "auth";
130
+ ThirdPartyServiceCategory["DATABASE"] = "database";
131
+ ThirdPartyServiceCategory["PAYMENTS"] = "payments";
132
+ ThirdPartyServiceCategory["STORAGE"] = "storage";
133
+ })(ThirdPartyServiceCategory = ThirdPartyServiceCategory || (ThirdPartyServiceCategory = {}));
105
134
  //# sourceMappingURL=enums.js.map
@@ -1,5 +1,6 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { JsonObject, Primitive } from "type-fest";
3
+ import type { ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName } from "./enums.js";
3
4
  /**
4
5
  * Types here should reflect data format stored in firestore and
5
6
  * either be backwards-compatible or migrated when needed
@@ -793,6 +794,19 @@ export interface ChakraTheme extends BaseTheme {
793
794
  type: "chakra";
794
795
  }
795
796
  export type ProjectTheme = ShadcnTheme | ChakraTheme;
797
+ export type ThirdPartyService = {
798
+ category: ThirdPartyServiceCategory.AUTH;
799
+ name: ThirdPartyAuthName;
800
+ } | {
801
+ category: ThirdPartyServiceCategory.DATABASE;
802
+ name: ThirdPartyDatabaseName;
803
+ } | {
804
+ category: ThirdPartyServiceCategory.PAYMENTS;
805
+ name: ThirdPartyPaymentsName;
806
+ } | {
807
+ category: ThirdPartyServiceCategory.STORAGE;
808
+ name: ThirdPartyStorageName;
809
+ };
796
810
  export interface Project {
797
811
  createdAt: Timestamp;
798
812
  createdBy?: PerformedBy;
@@ -810,6 +824,11 @@ export interface Project {
810
824
  customInstructions: string;
811
825
  strictMode?: boolean | null;
812
826
  };
827
+ /**
828
+ * Select services during the project creation flow
829
+ * Used for tools and prompts++
830
+ */
831
+ thirdPartyServices?: ThirdPartyService[];
813
832
  buildingStage?: ProjectBuildStage;
814
833
  lifeStage: ProjectLifeStage;
815
834
  lifeStageUpdatedBy: PerformedBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.72.109",
3
+ "version": "1.72.111",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {