@databutton/firebase-types 1.92.9 → 1.92.10
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
|
-
import type { TimeGranularity, TimeRangeFilter } from "../../accounts/handle-generate-usage-report.js";
|
|
3
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
4
3
|
import type { CreateProjectErrorCode } from "./enums.js";
|
|
5
4
|
import type { Datafile, Dataframe, Job, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
@@ -342,6 +341,20 @@ export type DiagnosticsRequest = {
|
|
|
342
341
|
export type DiagnosticsResponse = {
|
|
343
342
|
success: boolean;
|
|
344
343
|
};
|
|
344
|
+
export declare enum TimeRangeFilter {
|
|
345
|
+
QTD = "QTD",
|
|
346
|
+
MTD = "MTD",
|
|
347
|
+
WTD = "WTD",
|
|
348
|
+
"7D" = "7D",
|
|
349
|
+
"30D" = "30D",
|
|
350
|
+
"3M" = "3M"
|
|
351
|
+
}
|
|
352
|
+
export declare enum TimeGranularity {
|
|
353
|
+
HOUR = "HOUR",
|
|
354
|
+
DAY = "DAY",
|
|
355
|
+
WEEK = "WEEK",
|
|
356
|
+
MONTH = "MONTH"
|
|
357
|
+
}
|
|
345
358
|
export type GenerateUsageReportRequest = {
|
|
346
359
|
accountId: string;
|
|
347
360
|
timeRangeFilter: TimeRangeFilter;
|
|
@@ -373,4 +386,20 @@ export type GenerateUsageReportResponse = {
|
|
|
373
386
|
credits: number;
|
|
374
387
|
}[];
|
|
375
388
|
};
|
|
389
|
+
export type InviteMemberToAccountRequest = {
|
|
390
|
+
accountId: string;
|
|
391
|
+
email: string;
|
|
392
|
+
};
|
|
393
|
+
export type InviteMemberToAccountResponse = {
|
|
394
|
+
statusCode: number;
|
|
395
|
+
message: string;
|
|
396
|
+
};
|
|
397
|
+
export type RemoveMemberFromAccountRequest = {
|
|
398
|
+
accountId: string;
|
|
399
|
+
memberId: string;
|
|
400
|
+
};
|
|
401
|
+
export type RemoveMemberFromAccountResponse = {
|
|
402
|
+
statusCode: number;
|
|
403
|
+
message: string;
|
|
404
|
+
};
|
|
376
405
|
export {};
|
|
@@ -10,4 +10,20 @@ export var CustomDomainFailureCode;
|
|
|
10
10
|
CustomDomainFailureCode["DOMAIN_NEEDS_MIGRATION"] = "DOMAIN_NEEDS_MIGRATION";
|
|
11
11
|
CustomDomainFailureCode["UNSUPPORTED_TOP_LEVEL_DOMAIN"] = "UNSUPPORTED_TOP_LEVEL_DOMAIN";
|
|
12
12
|
})(CustomDomainFailureCode || (CustomDomainFailureCode = {}));
|
|
13
|
+
export var TimeRangeFilter;
|
|
14
|
+
(function (TimeRangeFilter) {
|
|
15
|
+
TimeRangeFilter["QTD"] = "QTD";
|
|
16
|
+
TimeRangeFilter["MTD"] = "MTD";
|
|
17
|
+
TimeRangeFilter["WTD"] = "WTD";
|
|
18
|
+
TimeRangeFilter["7D"] = "7D";
|
|
19
|
+
TimeRangeFilter["30D"] = "30D";
|
|
20
|
+
TimeRangeFilter["3M"] = "3M";
|
|
21
|
+
})(TimeRangeFilter || (TimeRangeFilter = {}));
|
|
22
|
+
export var TimeGranularity;
|
|
23
|
+
(function (TimeGranularity) {
|
|
24
|
+
TimeGranularity["HOUR"] = "HOUR";
|
|
25
|
+
TimeGranularity["DAY"] = "DAY";
|
|
26
|
+
TimeGranularity["WEEK"] = "WEEK";
|
|
27
|
+
TimeGranularity["MONTH"] = "MONTH";
|
|
28
|
+
})(TimeGranularity || (TimeGranularity = {}));
|
|
13
29
|
//# sourceMappingURL=requests.js.map
|