@databutton/firebase-types 1.106.0 → 1.108.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,8 @@ 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",
|
|
45
|
+
ACCOUNT_KNOWLEDGE_SUGGESTIONS = "knowledge-suggestions",
|
|
44
46
|
ROLES = "roles",
|
|
45
47
|
MESSAGES = "messages",
|
|
46
48
|
MODULES = "modules",
|
|
@@ -236,3 +238,39 @@ export declare enum ProjectEnvConfigEnv {
|
|
|
236
238
|
PROD = "prod",
|
|
237
239
|
APP = "app"
|
|
238
240
|
}
|
|
241
|
+
export declare enum AccountIndustry {
|
|
242
|
+
AGRICULTURE = "agriculture",
|
|
243
|
+
AUTOMOTIVE = "automotive",
|
|
244
|
+
CONSTRUCTION = "construction",
|
|
245
|
+
EDUCATION = "education",
|
|
246
|
+
ENERGY = "energy",
|
|
247
|
+
FINANCIAL_SERVICES = "financial-services",
|
|
248
|
+
GOVERNMENT = "government",
|
|
249
|
+
HEALTHCARE = "healthcare",
|
|
250
|
+
HOSPITALITY = "hospitality",
|
|
251
|
+
IT_AND_SOFTWARE = "it-and-software",
|
|
252
|
+
LEGAL = "legal",
|
|
253
|
+
LOGISTICS_AND_TRANSPORTATION = "logistics-and-transportation",
|
|
254
|
+
MANUFACTURING = "manufacturing",
|
|
255
|
+
MEDIA_AND_ENTERTAINMENT = "media-and-entertainment",
|
|
256
|
+
NON_PROFIT = "non-profit",
|
|
257
|
+
PROFESSIONAL_SERVICES = "professional-services",
|
|
258
|
+
REAL_ESTATE = "real-estate",
|
|
259
|
+
RETAIL = "retail",
|
|
260
|
+
TELECOMMUNICATIONS = "telecommunications",
|
|
261
|
+
OTHER = "other"
|
|
262
|
+
}
|
|
263
|
+
export declare enum AccountBusinessModel {
|
|
264
|
+
B2B = "b2b",
|
|
265
|
+
B2C = "b2c",
|
|
266
|
+
B2B2C = "b2b2c",
|
|
267
|
+
OTHER = "other"
|
|
268
|
+
}
|
|
269
|
+
export declare enum AccountEmployeeCount {
|
|
270
|
+
COUNT_1_TO_10 = "1-10",
|
|
271
|
+
COUNT_11_TO_50 = "11-50",
|
|
272
|
+
COUNT_51_TO_200 = "51-200",
|
|
273
|
+
COUNT_201_TO_1000 = "201-1000",
|
|
274
|
+
COUNT_1001_TO_5000 = "1001-5000",
|
|
275
|
+
COUNT_5000_PLUS = "5000+"
|
|
276
|
+
}
|
|
@@ -42,6 +42,8 @@ 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";
|
|
46
|
+
CollectionName["ACCOUNT_KNOWLEDGE_SUGGESTIONS"] = "knowledge-suggestions";
|
|
45
47
|
CollectionName["ROLES"] = "roles";
|
|
46
48
|
CollectionName["MESSAGES"] = "messages";
|
|
47
49
|
CollectionName["MODULES"] = "modules";
|
|
@@ -260,4 +262,43 @@ export var ProjectEnvConfigEnv;
|
|
|
260
262
|
ProjectEnvConfigEnv["PROD"] = "prod";
|
|
261
263
|
ProjectEnvConfigEnv["APP"] = "app";
|
|
262
264
|
})(ProjectEnvConfigEnv || (ProjectEnvConfigEnv = {}));
|
|
265
|
+
export var AccountIndustry;
|
|
266
|
+
(function (AccountIndustry) {
|
|
267
|
+
AccountIndustry["AGRICULTURE"] = "agriculture";
|
|
268
|
+
AccountIndustry["AUTOMOTIVE"] = "automotive";
|
|
269
|
+
AccountIndustry["CONSTRUCTION"] = "construction";
|
|
270
|
+
AccountIndustry["EDUCATION"] = "education";
|
|
271
|
+
AccountIndustry["ENERGY"] = "energy";
|
|
272
|
+
AccountIndustry["FINANCIAL_SERVICES"] = "financial-services";
|
|
273
|
+
AccountIndustry["GOVERNMENT"] = "government";
|
|
274
|
+
AccountIndustry["HEALTHCARE"] = "healthcare";
|
|
275
|
+
AccountIndustry["HOSPITALITY"] = "hospitality";
|
|
276
|
+
AccountIndustry["IT_AND_SOFTWARE"] = "it-and-software";
|
|
277
|
+
AccountIndustry["LEGAL"] = "legal";
|
|
278
|
+
AccountIndustry["LOGISTICS_AND_TRANSPORTATION"] = "logistics-and-transportation";
|
|
279
|
+
AccountIndustry["MANUFACTURING"] = "manufacturing";
|
|
280
|
+
AccountIndustry["MEDIA_AND_ENTERTAINMENT"] = "media-and-entertainment";
|
|
281
|
+
AccountIndustry["NON_PROFIT"] = "non-profit";
|
|
282
|
+
AccountIndustry["PROFESSIONAL_SERVICES"] = "professional-services";
|
|
283
|
+
AccountIndustry["REAL_ESTATE"] = "real-estate";
|
|
284
|
+
AccountIndustry["RETAIL"] = "retail";
|
|
285
|
+
AccountIndustry["TELECOMMUNICATIONS"] = "telecommunications";
|
|
286
|
+
AccountIndustry["OTHER"] = "other";
|
|
287
|
+
})(AccountIndustry || (AccountIndustry = {}));
|
|
288
|
+
export var AccountBusinessModel;
|
|
289
|
+
(function (AccountBusinessModel) {
|
|
290
|
+
AccountBusinessModel["B2B"] = "b2b";
|
|
291
|
+
AccountBusinessModel["B2C"] = "b2c";
|
|
292
|
+
AccountBusinessModel["B2B2C"] = "b2b2c";
|
|
293
|
+
AccountBusinessModel["OTHER"] = "other";
|
|
294
|
+
})(AccountBusinessModel || (AccountBusinessModel = {}));
|
|
295
|
+
export var AccountEmployeeCount;
|
|
296
|
+
(function (AccountEmployeeCount) {
|
|
297
|
+
AccountEmployeeCount["COUNT_1_TO_10"] = "1-10";
|
|
298
|
+
AccountEmployeeCount["COUNT_11_TO_50"] = "11-50";
|
|
299
|
+
AccountEmployeeCount["COUNT_51_TO_200"] = "51-200";
|
|
300
|
+
AccountEmployeeCount["COUNT_201_TO_1000"] = "201-1000";
|
|
301
|
+
AccountEmployeeCount["COUNT_1001_TO_5000"] = "1001-5000";
|
|
302
|
+
AccountEmployeeCount["COUNT_5000_PLUS"] = "5000+";
|
|
303
|
+
})(AccountEmployeeCount || (AccountEmployeeCount = {}));
|
|
263
304
|
//# 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;
|
|
@@ -201,6 +198,17 @@ type UseSecretApprovalConfig = {
|
|
|
201
198
|
};
|
|
202
199
|
export type UseSecretApprovalRequest = ApprovalRequestBase<"use-secret", UseSecretApprovalConfig>;
|
|
203
200
|
export type ApprovalRequest = AddPermissionApprovalRequest | UseIntegrationApprovalRequest | DeployProjectApprovalRequest | UseSecretApprovalRequest;
|
|
201
|
+
export interface KnowledgeSuggestion {
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
content: string;
|
|
205
|
+
type: string;
|
|
206
|
+
metadata: Record<string, unknown>;
|
|
207
|
+
reason: string;
|
|
208
|
+
timestamp: string;
|
|
209
|
+
sourceProjectId: string;
|
|
210
|
+
createdBy: PerformedBy;
|
|
211
|
+
}
|
|
204
212
|
/**
|
|
205
213
|
* A list of account IDs that the user is at least a member of
|
|
206
214
|
*/
|
|
@@ -717,6 +725,21 @@ export interface ProjectInvitation {
|
|
|
717
725
|
email: string;
|
|
718
726
|
};
|
|
719
727
|
}
|
|
728
|
+
export interface AccountInvitation {
|
|
729
|
+
accountId: string;
|
|
730
|
+
accountName: string;
|
|
731
|
+
state: "pending" | "accepted";
|
|
732
|
+
roles: AccountRole[];
|
|
733
|
+
from: {
|
|
734
|
+
userId: string;
|
|
735
|
+
email: string;
|
|
736
|
+
};
|
|
737
|
+
to: {
|
|
738
|
+
email: string;
|
|
739
|
+
};
|
|
740
|
+
createdAt: Timestamp;
|
|
741
|
+
acceptedAt: Timestamp | null;
|
|
742
|
+
}
|
|
720
743
|
export interface UserAppInvitation {
|
|
721
744
|
project: {
|
|
722
745
|
id: string;
|