@databutton/firebase-types 1.157.0 → 1.159.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.
|
@@ -139,6 +139,21 @@ export type AdminDetachFromParentPayload = {
|
|
|
139
139
|
export type AdminDetachFromParentResult = {
|
|
140
140
|
success: boolean;
|
|
141
141
|
};
|
|
142
|
+
export type AdminSearchAccountsPayload = {
|
|
143
|
+
query?: string;
|
|
144
|
+
};
|
|
145
|
+
export type AdminAccountRow = {
|
|
146
|
+
id: string;
|
|
147
|
+
name: string;
|
|
148
|
+
subdomain: string | null;
|
|
149
|
+
hasSso: boolean;
|
|
150
|
+
monthlyCreditsUsedInCents: number | null;
|
|
151
|
+
creditsPerBillingPeriodInCents: number | null;
|
|
152
|
+
extraCreditsInCents: number | null;
|
|
153
|
+
};
|
|
154
|
+
export type AdminSearchAccountsResult = {
|
|
155
|
+
accounts: AdminAccountRow[];
|
|
156
|
+
};
|
|
142
157
|
export type AdminCallableRequest = {
|
|
143
158
|
action: "addCredits";
|
|
144
159
|
payload: AdminAddCreditsPayload;
|
|
@@ -160,6 +175,9 @@ export type AdminCallableRequest = {
|
|
|
160
175
|
} | {
|
|
161
176
|
action: "detachFromParent";
|
|
162
177
|
payload: AdminDetachFromParentPayload;
|
|
178
|
+
} | {
|
|
179
|
+
action: "searchAccounts";
|
|
180
|
+
payload: AdminSearchAccountsPayload;
|
|
163
181
|
};
|
|
164
182
|
export type AdminCallableResponse = {
|
|
165
183
|
action: "addCredits";
|
|
@@ -182,6 +200,9 @@ export type AdminCallableResponse = {
|
|
|
182
200
|
} | {
|
|
183
201
|
action: "detachFromParent";
|
|
184
202
|
result: AdminDetachFromParentResult;
|
|
203
|
+
} | {
|
|
204
|
+
action: "searchAccounts";
|
|
205
|
+
result: AdminSearchAccountsResult;
|
|
185
206
|
};
|
|
186
207
|
export type CreateBillingPortalSessionRequest = {
|
|
187
208
|
returnUrl: string;
|