@databutton/firebase-types 1.177.1 → 1.178.1
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.
|
@@ -46,6 +46,7 @@ export declare enum CollectionName {
|
|
|
46
46
|
ACCOUNT_APPROVAL_REQUESTS = "approval-requests",
|
|
47
47
|
ACCOUNT_INVITES = "account-invites",
|
|
48
48
|
ACCOUNT_KNOWLEDGE_SUGGESTIONS = "knowledge-suggestions",
|
|
49
|
+
ACCOUNT_ONBOARDING_CHECKLISTS = "onboarding-checklists",
|
|
49
50
|
ACCOUNT_NOTIFICATIONS = "notifications",
|
|
50
51
|
ACCOUNT_NOTIFICATION_GROUPS = "notificationGroups",
|
|
51
52
|
ROLES = "roles",
|
|
@@ -47,6 +47,7 @@ export var CollectionName;
|
|
|
47
47
|
CollectionName["ACCOUNT_APPROVAL_REQUESTS"] = "approval-requests";
|
|
48
48
|
CollectionName["ACCOUNT_INVITES"] = "account-invites";
|
|
49
49
|
CollectionName["ACCOUNT_KNOWLEDGE_SUGGESTIONS"] = "knowledge-suggestions";
|
|
50
|
+
CollectionName["ACCOUNT_ONBOARDING_CHECKLISTS"] = "onboarding-checklists";
|
|
50
51
|
CollectionName["ACCOUNT_NOTIFICATIONS"] = "notifications";
|
|
51
52
|
CollectionName["ACCOUNT_NOTIFICATION_GROUPS"] = "notificationGroups";
|
|
52
53
|
CollectionName["ROLES"] = "roles";
|
|
@@ -336,6 +336,35 @@ type UseSecretApprovalConfig = {
|
|
|
336
336
|
};
|
|
337
337
|
export type UseSecretApprovalRequest = ApprovalRequestBase<"use-secret", UseSecretApprovalConfig>;
|
|
338
338
|
export type ApprovalRequest = AddPermissionApprovalRequest | UseIntegrationApprovalRequest | DeployProjectApprovalRequest | UseSecretApprovalRequest;
|
|
339
|
+
export type ChecklistGroupTarget = {
|
|
340
|
+
kind: "project";
|
|
341
|
+
projectId: string;
|
|
342
|
+
env: "app" | "dev" | "prod";
|
|
343
|
+
} | {
|
|
344
|
+
kind: "integration";
|
|
345
|
+
integrationId: string;
|
|
346
|
+
} | {
|
|
347
|
+
kind: "account";
|
|
348
|
+
};
|
|
349
|
+
export interface ChecklistItem {
|
|
350
|
+
key: string;
|
|
351
|
+
label: string;
|
|
352
|
+
helpText?: string;
|
|
353
|
+
}
|
|
354
|
+
export interface ChecklistGroup {
|
|
355
|
+
id: string;
|
|
356
|
+
title: string;
|
|
357
|
+
description?: string;
|
|
358
|
+
target: ChecklistGroupTarget;
|
|
359
|
+
items: ChecklistItem[];
|
|
360
|
+
}
|
|
361
|
+
export interface OnboardingChecklist {
|
|
362
|
+
name: string;
|
|
363
|
+
intro: string;
|
|
364
|
+
createdBy: PerformedBy;
|
|
365
|
+
updatedBy: PerformedBy;
|
|
366
|
+
groups: ChecklistGroup[];
|
|
367
|
+
}
|
|
339
368
|
export interface KnowledgeSuggestion {
|
|
340
369
|
id: string;
|
|
341
370
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
-
import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode, NotificationType } from "./enums.js";
|
|
3
|
+
import type { AccountRole, CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode, NotificationType } from "./enums.js";
|
|
4
4
|
import type { ApprovalLevel, Datafile, Dataframe, Job, Project, ProjectPermissionName, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
5
5
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
6
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -139,6 +139,58 @@ export type AdminDetachFromParentPayload = {
|
|
|
139
139
|
export type AdminDetachFromParentResult = {
|
|
140
140
|
success: boolean;
|
|
141
141
|
};
|
|
142
|
+
export type AdminEnableSsoPayload = {
|
|
143
|
+
accountId: string;
|
|
144
|
+
organizationId: string;
|
|
145
|
+
emailDomains: string[];
|
|
146
|
+
adminEmail: string;
|
|
147
|
+
connectionName: string;
|
|
148
|
+
provider: "microsoft";
|
|
149
|
+
};
|
|
150
|
+
export type AdminEnableSsoResult = {
|
|
151
|
+
success: boolean;
|
|
152
|
+
};
|
|
153
|
+
export type AdminManageWorkosExtensionPayload = {
|
|
154
|
+
projectId: string;
|
|
155
|
+
enabled: boolean;
|
|
156
|
+
removeStackAuth?: boolean;
|
|
157
|
+
upgradeWorkspace?: boolean;
|
|
158
|
+
};
|
|
159
|
+
export type AdminManageWorkosExtensionResult = {
|
|
160
|
+
success: boolean;
|
|
161
|
+
message: string;
|
|
162
|
+
};
|
|
163
|
+
export type AdminAddAccountMembersPayload = {
|
|
164
|
+
accountId: string;
|
|
165
|
+
emails: string[];
|
|
166
|
+
roles: AccountRole[];
|
|
167
|
+
};
|
|
168
|
+
export type AdminAddAccountMembersResult = {
|
|
169
|
+
added: string[];
|
|
170
|
+
alreadyMember: string[];
|
|
171
|
+
failed: {
|
|
172
|
+
email: string;
|
|
173
|
+
error: string;
|
|
174
|
+
}[];
|
|
175
|
+
};
|
|
176
|
+
export type AdminConnectApiGatewayIntegrationPayload = {
|
|
177
|
+
accountId: string;
|
|
178
|
+
label: string;
|
|
179
|
+
displayName: string;
|
|
180
|
+
gatewayProjectId: string;
|
|
181
|
+
};
|
|
182
|
+
export type AdminConnectApiGatewayIntegrationResult = {
|
|
183
|
+
success: boolean;
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
186
|
+
export type AdminUpdateMemberRolePayload = {
|
|
187
|
+
accountId: string;
|
|
188
|
+
email: string;
|
|
189
|
+
roles: AccountRole[];
|
|
190
|
+
};
|
|
191
|
+
export type AdminUpdateMemberRoleResult = {
|
|
192
|
+
success: boolean;
|
|
193
|
+
};
|
|
142
194
|
export type AdminSearchAccountsPayload = {
|
|
143
195
|
query?: string;
|
|
144
196
|
};
|
|
@@ -181,6 +233,21 @@ export type AdminCallableRequest = {
|
|
|
181
233
|
} | {
|
|
182
234
|
action: "searchAccounts";
|
|
183
235
|
payload: AdminSearchAccountsPayload;
|
|
236
|
+
} | {
|
|
237
|
+
action: "enableSso";
|
|
238
|
+
payload: AdminEnableSsoPayload;
|
|
239
|
+
} | {
|
|
240
|
+
action: "manageWorkosExtension";
|
|
241
|
+
payload: AdminManageWorkosExtensionPayload;
|
|
242
|
+
} | {
|
|
243
|
+
action: "addAccountMembers";
|
|
244
|
+
payload: AdminAddAccountMembersPayload;
|
|
245
|
+
} | {
|
|
246
|
+
action: "connectApiGatewayIntegration";
|
|
247
|
+
payload: AdminConnectApiGatewayIntegrationPayload;
|
|
248
|
+
} | {
|
|
249
|
+
action: "updateMemberRole";
|
|
250
|
+
payload: AdminUpdateMemberRolePayload;
|
|
184
251
|
};
|
|
185
252
|
export type AdminCallableResponse = {
|
|
186
253
|
action: "addCredits";
|
|
@@ -206,6 +273,21 @@ export type AdminCallableResponse = {
|
|
|
206
273
|
} | {
|
|
207
274
|
action: "searchAccounts";
|
|
208
275
|
result: AdminSearchAccountsResult;
|
|
276
|
+
} | {
|
|
277
|
+
action: "enableSso";
|
|
278
|
+
result: AdminEnableSsoResult;
|
|
279
|
+
} | {
|
|
280
|
+
action: "manageWorkosExtension";
|
|
281
|
+
result: AdminManageWorkosExtensionResult;
|
|
282
|
+
} | {
|
|
283
|
+
action: "addAccountMembers";
|
|
284
|
+
result: AdminAddAccountMembersResult;
|
|
285
|
+
} | {
|
|
286
|
+
action: "connectApiGatewayIntegration";
|
|
287
|
+
result: AdminConnectApiGatewayIntegrationResult;
|
|
288
|
+
} | {
|
|
289
|
+
action: "updateMemberRole";
|
|
290
|
+
result: AdminUpdateMemberRoleResult;
|
|
209
291
|
};
|
|
210
292
|
export type CreateBillingPortalSessionRequest = {
|
|
211
293
|
returnUrl: string;
|