• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 12008121450

25 Nov 2024 10:30AM UTC coverage: 89.972% (+0.5%) from 89.483%
12008121450

Pull #2063

github

PooyaRaki
refactor typing of notification controller
Pull Request #2063: Notification migration

2770 of 3454 branches covered (80.2%)

Branch coverage included in aggregate %.

186 of 224 new or added lines in 17 files covered. (83.04%)

1 existing line in 1 file now uncovered.

9566 of 10257 relevant lines covered (93.26%)

427.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/domain/interfaces/notifications.datasource.interface.ts
1
import type { UpsertSubscriptionsDto } from '@/routes/notifications/v1/entities/upsert-subscriptions.dto.entity';
2
import type { NotificationType } from '@/domain/notifications/v2/entities/notification-type.entity';
3
import type { UUID } from 'crypto';
4

UNCOV
5
export const INotificationsDatasource = Symbol('INotificationsDatasource');
×
6

7
export interface INotificationsDatasource {
8
  upsertSubscriptions(args: {
9
    signerAddress?: `0x${string}`;
10
    upsertSubscriptionsDto: UpsertSubscriptionsDto;
11
  }): Promise<{
12
    deviceUuid: UUID;
13
  }>;
14

15
  getSafeSubscription(args: {
16
    signerAddress: `0x${string}`;
17
    deviceUuid: UUID;
18
    chainId: string;
19
    safeAddress: `0x${string}`;
20
  }): Promise<Array<NotificationType>>;
21

22
  getSubscribersBySafe(args: {
23
    chainId: string;
24
    safeAddress: `0x${string}`;
25
  }): Promise<
26
    Array<{
27
      subscriber: `0x${string}` | null;
28
      deviceUuid: UUID;
29
      cloudMessagingToken: string;
30
    }>
31
  >;
32

33
  deleteSubscription(args: {
34
    deviceUuid: UUID;
35
    chainId: string;
36
    safeAddress: `0x${string}`;
37
  }): Promise<void>;
38

39
  deleteDevice(deviceUuid: UUID): Promise<void>;
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc