@databutton/firebase-types 1.106.0 → 1.107.0

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.
@@ -41,6 +41,7 @@ export declare enum CollectionName {
41
41
  ACCOUNT_MEMBERS = "members",
42
42
  ACCOUNT_CONFIGS = "configs",
43
43
  ACCOUNT_APPROVAL_REQUESTS = "approval-requests",
44
+ ACCOUNT_INVITES = "account-invites",
44
45
  ROLES = "roles",
45
46
  MESSAGES = "messages",
46
47
  MODULES = "modules",
@@ -236,3 +237,39 @@ export declare enum ProjectEnvConfigEnv {
236
237
  PROD = "prod",
237
238
  APP = "app"
238
239
  }
240
+ export declare enum AccountIndustry {
241
+ AGRICULTURE = "agriculture",
242
+ AUTOMOTIVE = "automotive",
243
+ CONSTRUCTION = "construction",
244
+ EDUCATION = "education",
245
+ ENERGY = "energy",
246
+ FINANCIAL_SERVICES = "financial-services",
247
+ GOVERNMENT = "government",
248
+ HEALTHCARE = "healthcare",
249
+ HOSPITALITY = "hospitality",
250
+ IT_AND_SOFTWARE = "it-and-software",
251
+ LEGAL = "legal",
252
+ LOGISTICS_AND_TRANSPORTATION = "logistics-and-transportation",
253
+ MANUFACTURING = "manufacturing",
254
+ MEDIA_AND_ENTERTAINMENT = "media-and-entertainment",
255
+ NON_PROFIT = "non-profit",
256
+ PROFESSIONAL_SERVICES = "professional-services",
257
+ REAL_ESTATE = "real-estate",
258
+ RETAIL = "retail",
259
+ TELECOMMUNICATIONS = "telecommunications",
260
+ OTHER = "other"
261
+ }
262
+ export declare enum AccountBusinessModel {
263
+ B2B = "b2b",
264
+ B2C = "b2c",
265
+ B2B2C = "b2b2c",
266
+ OTHER = "other"
267
+ }
268
+ export declare enum AccountEmployeeCount {
269
+ COUNT_1_TO_10 = "1-10",
270
+ COUNT_11_TO_50 = "11-50",
271
+ COUNT_51_TO_200 = "51-200",
272
+ COUNT_201_TO_1000 = "201-1000",
273
+ COUNT_1001_TO_5000 = "1001-5000",
274
+ COUNT_5000_PLUS = "5000+"
275
+ }
@@ -42,6 +42,7 @@ export var CollectionName;
42
42
  CollectionName["ACCOUNT_MEMBERS"] = "members";
43
43
  CollectionName["ACCOUNT_CONFIGS"] = "configs";
44
44
  CollectionName["ACCOUNT_APPROVAL_REQUESTS"] = "approval-requests";
45
+ CollectionName["ACCOUNT_INVITES"] = "account-invites";
45
46
  CollectionName["ROLES"] = "roles";
46
47
  CollectionName["MESSAGES"] = "messages";
47
48
  CollectionName["MODULES"] = "modules";
@@ -260,4 +261,43 @@ export var ProjectEnvConfigEnv;
260
261
  ProjectEnvConfigEnv["PROD"] = "prod";
261
262
  ProjectEnvConfigEnv["APP"] = "app";
262
263
  })(ProjectEnvConfigEnv || (ProjectEnvConfigEnv = {}));
264
+ export var AccountIndustry;
265
+ (function (AccountIndustry) {
266
+ AccountIndustry["AGRICULTURE"] = "agriculture";
267
+ AccountIndustry["AUTOMOTIVE"] = "automotive";
268
+ AccountIndustry["CONSTRUCTION"] = "construction";
269
+ AccountIndustry["EDUCATION"] = "education";
270
+ AccountIndustry["ENERGY"] = "energy";
271
+ AccountIndustry["FINANCIAL_SERVICES"] = "financial-services";
272
+ AccountIndustry["GOVERNMENT"] = "government";
273
+ AccountIndustry["HEALTHCARE"] = "healthcare";
274
+ AccountIndustry["HOSPITALITY"] = "hospitality";
275
+ AccountIndustry["IT_AND_SOFTWARE"] = "it-and-software";
276
+ AccountIndustry["LEGAL"] = "legal";
277
+ AccountIndustry["LOGISTICS_AND_TRANSPORTATION"] = "logistics-and-transportation";
278
+ AccountIndustry["MANUFACTURING"] = "manufacturing";
279
+ AccountIndustry["MEDIA_AND_ENTERTAINMENT"] = "media-and-entertainment";
280
+ AccountIndustry["NON_PROFIT"] = "non-profit";
281
+ AccountIndustry["PROFESSIONAL_SERVICES"] = "professional-services";
282
+ AccountIndustry["REAL_ESTATE"] = "real-estate";
283
+ AccountIndustry["RETAIL"] = "retail";
284
+ AccountIndustry["TELECOMMUNICATIONS"] = "telecommunications";
285
+ AccountIndustry["OTHER"] = "other";
286
+ })(AccountIndustry || (AccountIndustry = {}));
287
+ export var AccountBusinessModel;
288
+ (function (AccountBusinessModel) {
289
+ AccountBusinessModel["B2B"] = "b2b";
290
+ AccountBusinessModel["B2C"] = "b2c";
291
+ AccountBusinessModel["B2B2C"] = "b2b2c";
292
+ AccountBusinessModel["OTHER"] = "other";
293
+ })(AccountBusinessModel || (AccountBusinessModel = {}));
294
+ export var AccountEmployeeCount;
295
+ (function (AccountEmployeeCount) {
296
+ AccountEmployeeCount["COUNT_1_TO_10"] = "1-10";
297
+ AccountEmployeeCount["COUNT_11_TO_50"] = "11-50";
298
+ AccountEmployeeCount["COUNT_51_TO_200"] = "51-200";
299
+ AccountEmployeeCount["COUNT_201_TO_1000"] = "201-1000";
300
+ AccountEmployeeCount["COUNT_1001_TO_5000"] = "1001-5000";
301
+ AccountEmployeeCount["COUNT_5000_PLUS"] = "5000+";
302
+ })(AccountEmployeeCount || (AccountEmployeeCount = {}));
263
303
  //# sourceMappingURL=enums.js.map
@@ -1,7 +1,7 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { JsonObject, Primitive } from "type-fest";
3
3
  import type { ProjectMigration } from "../internal/enums.js";
4
- import type { AccountRole, ConfigTypes, TaskPriority, TaskRelation, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
4
+ import type { AccountBusinessModel, AccountEmployeeCount, AccountIndustry, AccountRole, ConfigTypes, TaskPriority, TaskRelation, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
5
5
  /**
6
6
  * Types here should reflect data format stored in firestore and
7
7
  * either be backwards-compatible or migrated when needed
@@ -35,9 +35,6 @@ export interface PublicUsername {
35
35
  slug: string;
36
36
  claimedAt: Timestamp;
37
37
  }
38
- export type AccountIndustry = "agriculture" | "automotive" | "construction" | "education" | "energy" | "financial-services" | "government" | "healthcare" | "hospitality" | "it-and-software" | "legal" | "logistics-and-transportation" | "manufacturing" | "media-and-entertainment" | "non-profit" | "professional-services" | "real-estate" | "retail" | "telecommunications" | "other";
39
- export type AccountBusinessModel = "b2b" | "b2c" | "b2b2c" | "other";
40
- export type AccountEmployeeCount = "1-10" | "11-50" | "51-200" | "201-1000" | "1001-5000" | "5000+";
41
38
  export interface AccountCompanyMetadata {
42
39
  logoUrl: string | null;
43
40
  website: string | null;
@@ -717,6 +714,21 @@ export interface ProjectInvitation {
717
714
  email: string;
718
715
  };
719
716
  }
717
+ export interface AccountInvitation {
718
+ accountId: string;
719
+ accountName: string;
720
+ state: "pending" | "accepted";
721
+ roles: AccountRole[];
722
+ from: {
723
+ userId: string;
724
+ email: string;
725
+ };
726
+ to: {
727
+ email: string;
728
+ };
729
+ createdAt: Timestamp;
730
+ acceptedAt: Timestamp | null;
731
+ }
720
732
  export interface UserAppInvitation {
721
733
  project: {
722
734
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.106.0",
3
+ "version": "1.107.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {