@databutton/firebase-types 1.157.0 → 1.158.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,20 @@ 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
|
+
extraCreditsInCents: number | null;
|
|
152
|
+
};
|
|
153
|
+
export type AdminSearchAccountsResult = {
|
|
154
|
+
accounts: AdminAccountRow[];
|
|
155
|
+
};
|
|
142
156
|
export type AdminCallableRequest = {
|
|
143
157
|
action: "addCredits";
|
|
144
158
|
payload: AdminAddCreditsPayload;
|
|
@@ -160,6 +174,9 @@ export type AdminCallableRequest = {
|
|
|
160
174
|
} | {
|
|
161
175
|
action: "detachFromParent";
|
|
162
176
|
payload: AdminDetachFromParentPayload;
|
|
177
|
+
} | {
|
|
178
|
+
action: "searchAccounts";
|
|
179
|
+
payload: AdminSearchAccountsPayload;
|
|
163
180
|
};
|
|
164
181
|
export type AdminCallableResponse = {
|
|
165
182
|
action: "addCredits";
|
|
@@ -182,6 +199,9 @@ export type AdminCallableResponse = {
|
|
|
182
199
|
} | {
|
|
183
200
|
action: "detachFromParent";
|
|
184
201
|
result: AdminDetachFromParentResult;
|
|
202
|
+
} | {
|
|
203
|
+
action: "searchAccounts";
|
|
204
|
+
result: AdminSearchAccountsResult;
|
|
185
205
|
};
|
|
186
206
|
export type CreateBillingPortalSessionRequest = {
|
|
187
207
|
returnUrl: string;
|