@databutton/firebase-types 1.105.1 → 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,6 +35,17 @@ export interface PublicUsername {
|
|
|
35
35
|
slug: string;
|
|
36
36
|
claimedAt: Timestamp;
|
|
37
37
|
}
|
|
38
|
+
export interface AccountCompanyMetadata {
|
|
39
|
+
logoUrl: string | null;
|
|
40
|
+
website: string | null;
|
|
41
|
+
description: string | null;
|
|
42
|
+
industry: AccountIndustry | null;
|
|
43
|
+
businessModel: AccountBusinessModel | null;
|
|
44
|
+
headquartersCountry: string | null;
|
|
45
|
+
operatingRegions: string[] | null;
|
|
46
|
+
employeeCount: AccountEmployeeCount | null;
|
|
47
|
+
yearFounded: number | null;
|
|
48
|
+
}
|
|
38
49
|
export interface Account {
|
|
39
50
|
createdBy: PerformedBy;
|
|
40
51
|
lastUpdatedBy: PerformedBy;
|
|
@@ -69,6 +80,11 @@ export interface Account {
|
|
|
69
80
|
* Account level custom instructions. Will be applied to system prompt in all projects created in this account.
|
|
70
81
|
*/
|
|
71
82
|
customInstructions?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Optional company metadata to provide context about the customer organization.
|
|
85
|
+
* Surfaced to agents across all apps in the account.
|
|
86
|
+
*/
|
|
87
|
+
companyMetadata?: AccountCompanyMetadata;
|
|
72
88
|
/**
|
|
73
89
|
* Identifier for the special account wide project for knowledgebase
|
|
74
90
|
* @deprecated This field is being deprecated in favor of userAccountLevelProjectIds with a special key for the knowledge base project, to allow multiple special projects per account in the future
|
|
@@ -698,6 +714,21 @@ export interface ProjectInvitation {
|
|
|
698
714
|
email: string;
|
|
699
715
|
};
|
|
700
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
|
+
}
|
|
701
732
|
export interface UserAppInvitation {
|
|
702
733
|
project: {
|
|
703
734
|
id: string;
|