@databutton/firebase-types 1.156.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.
|
@@ -126,6 +126,33 @@ export type AdminNullOutPlanPayload = {
|
|
|
126
126
|
export type AdminNullOutPlanResult = {
|
|
127
127
|
success: boolean;
|
|
128
128
|
};
|
|
129
|
+
export type AdminAttachToParentPayload = {
|
|
130
|
+
accountId: string;
|
|
131
|
+
parentId: string;
|
|
132
|
+
};
|
|
133
|
+
export type AdminAttachToParentResult = {
|
|
134
|
+
success: boolean;
|
|
135
|
+
};
|
|
136
|
+
export type AdminDetachFromParentPayload = {
|
|
137
|
+
accountId: string;
|
|
138
|
+
};
|
|
139
|
+
export type AdminDetachFromParentResult = {
|
|
140
|
+
success: boolean;
|
|
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
|
+
};
|
|
129
156
|
export type AdminCallableRequest = {
|
|
130
157
|
action: "addCredits";
|
|
131
158
|
payload: AdminAddCreditsPayload;
|
|
@@ -141,6 +168,15 @@ export type AdminCallableRequest = {
|
|
|
141
168
|
} | {
|
|
142
169
|
action: "nullOutPlan";
|
|
143
170
|
payload: AdminNullOutPlanPayload;
|
|
171
|
+
} | {
|
|
172
|
+
action: "attachToParent";
|
|
173
|
+
payload: AdminAttachToParentPayload;
|
|
174
|
+
} | {
|
|
175
|
+
action: "detachFromParent";
|
|
176
|
+
payload: AdminDetachFromParentPayload;
|
|
177
|
+
} | {
|
|
178
|
+
action: "searchAccounts";
|
|
179
|
+
payload: AdminSearchAccountsPayload;
|
|
144
180
|
};
|
|
145
181
|
export type AdminCallableResponse = {
|
|
146
182
|
action: "addCredits";
|
|
@@ -157,6 +193,15 @@ export type AdminCallableResponse = {
|
|
|
157
193
|
} | {
|
|
158
194
|
action: "nullOutPlan";
|
|
159
195
|
result: AdminNullOutPlanResult;
|
|
196
|
+
} | {
|
|
197
|
+
action: "attachToParent";
|
|
198
|
+
result: AdminAttachToParentResult;
|
|
199
|
+
} | {
|
|
200
|
+
action: "detachFromParent";
|
|
201
|
+
result: AdminDetachFromParentResult;
|
|
202
|
+
} | {
|
|
203
|
+
action: "searchAccounts";
|
|
204
|
+
result: AdminSearchAccountsResult;
|
|
160
205
|
};
|
|
161
206
|
export type CreateBillingPortalSessionRequest = {
|
|
162
207
|
returnUrl: string;
|