@databutton/firebase-types 1.83.1 → 1.83.3
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.
|
@@ -105,7 +105,7 @@ export var DatabuttonIdPrefix;
|
|
|
105
105
|
DatabuttonIdPrefix["LAUNCH_WAITLIST"] = "lw";
|
|
106
106
|
DatabuttonIdPrefix["MODULE"] = "mo";
|
|
107
107
|
DatabuttonIdPrefix["NOTEBOOK"] = "nb";
|
|
108
|
-
DatabuttonIdPrefix["
|
|
108
|
+
DatabuttonIdPrefix["ACCOUNT"] = "acc";
|
|
109
109
|
DatabuttonIdPrefix["FRONTEND_PACKAGES"] = "fp";
|
|
110
110
|
DatabuttonIdPrefix["PROJECT_BUILD"] = "pb";
|
|
111
111
|
DatabuttonIdPrefix["PROJECT_DEPLOYMENT"] = "pd";
|
|
@@ -35,9 +35,10 @@ export interface PublicUsername {
|
|
|
35
35
|
slug: string;
|
|
36
36
|
claimedAt: Timestamp;
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface Account {
|
|
39
39
|
createdBy: PerformedBy;
|
|
40
40
|
lastUpdatedBy: PerformedBy;
|
|
41
|
+
name: string;
|
|
41
42
|
/**
|
|
42
43
|
* Owner ID of the account (a user ID)
|
|
43
44
|
*/
|
|
@@ -46,6 +47,11 @@ export interface AccountBase {
|
|
|
46
47
|
* Whether the account has a valid plan (regardless of credits left)
|
|
47
48
|
*/
|
|
48
49
|
hasValidPlan: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Parent account ID if the account is a sub-account
|
|
52
|
+
* For example used for consolidated billing, quota management and audit logs
|
|
53
|
+
*/
|
|
54
|
+
parentId: string | null;
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
57
|
* A list of account IDs that the user is at least a member of
|
|
@@ -53,21 +59,6 @@ export interface AccountBase {
|
|
|
53
59
|
export interface AccountList {
|
|
54
60
|
accountIds: string[];
|
|
55
61
|
}
|
|
56
|
-
export interface PersonalAccount extends AccountBase {
|
|
57
|
-
type: "personal";
|
|
58
|
-
}
|
|
59
|
-
export interface OrganizationAccount extends AccountBase {
|
|
60
|
-
type: "organization";
|
|
61
|
-
/**
|
|
62
|
-
* Name of the account
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* Parent account ID if the account is a sub-account
|
|
67
|
-
* For example used for consolidated billing, quota management and audit logs
|
|
68
|
-
*/
|
|
69
|
-
parentId: string | null;
|
|
70
|
-
}
|
|
71
62
|
export interface AccountMember {
|
|
72
63
|
createdBy: PerformedBy;
|
|
73
64
|
lastUpdatedBy: PerformedBy;
|
|
@@ -76,7 +67,6 @@ export interface AccountMember {
|
|
|
76
67
|
export interface AccountMemberRole {
|
|
77
68
|
createdBy: PerformedBy;
|
|
78
69
|
}
|
|
79
|
-
export type Account = PersonalAccount | OrganizationAccount;
|
|
80
70
|
export type ToSVersion = "2024-02-13";
|
|
81
71
|
export interface Profile {
|
|
82
72
|
displayName: string;
|