@databutton/firebase-types 1.139.0 → 1.140.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.
@@ -36,6 +36,17 @@ export interface AccountNotificationGroup {
36
36
  createdBy: PerformedBy;
37
37
  lastUpdatedBy: PerformedBy;
38
38
  }
39
+ /**
40
+ * Controls when a subscribed notification group receives notifications for a project.
41
+ * - "all": always notified
42
+ * - "member-triggered": notified only when one of its members is the direct addressee
43
+ * - "off": subscribed but muted
44
+ */
45
+ export type NotificationGroupMode = "all" | "member-triggered" | "off";
46
+ export interface SubscribedNotificationGroup {
47
+ groupId: string;
48
+ mode: NotificationGroupMode;
49
+ }
39
50
  export interface Notification {
40
51
  createdBy: PerformedBy;
41
52
  createdAt: Timestamp;
@@ -1439,8 +1450,8 @@ export interface Project {
1439
1450
  notificationSettings?: {
1440
1451
  /** When true, all maintainers receive notifications even if a specific userId is also targeted. */
1441
1452
  sendToAllMaintainers?: boolean;
1442
- /** IDs of account-level notification groups subscribed to this project's notifications. */
1443
- subscribedGroupIds?: string[];
1453
+ /** Notification groups subscribed to this project, each with an individual delivery mode. */
1454
+ subscribedGroups?: SubscribedNotificationGroup[];
1444
1455
  };
1445
1456
  permittedUsers?: Record<ProjectPermissionName, string[]>;
1446
1457
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.139.0",
3
+ "version": "1.140.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {