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

hyperledger-identus / sdk-ts / 16248854303

13 Jul 2025 11:57AM UTC coverage: 72.59% (+0.007%) from 72.583%
16248854303

Pull #453

github

web-flow
Merge 85751e0d9 into 0aaf408ba
Pull Request #453: fix: improve documentation

1340 of 2043 branches covered (65.59%)

Branch coverage included in aggregate %.

15 of 23 new or added lines in 6 files covered. (65.22%)

6 existing lines in 1 file now uncovered.

3096 of 4068 relevant lines covered (76.11%)

44.41 hits per line

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

20.0
/src/plugins/internal/oea/protocols/RevocationNotfiication.ts
1
import { DID, Message } from "../../../../domain";
2
import { isNil, isString } from "../../../../utils";
3
import { OEA } from "../types";
4

5
/**
6
 * No specification available
7
 */
8

9
export interface PrismRevocationBody {
10
    issueCredentialProtocolThreadId: string;
11
    comment?: string;
12
}
13

14
export class RevocationNotification {
15
    public static type = OEA.ProtocolIds.PrismRevocation;
43✔
16

17
    constructor(
18
        public body: PrismRevocationBody,
1✔
19
        public from: DID,
1✔
20
        public to: DID
1✔
21
    ) { }
22

23
    makeMessage(): Message {
NEW
24
        const body = JSON.stringify(this.body);
×
NEW
25
        const message = new Message(
×
26
            body,
27
            undefined,
28
            RevocationNotification.type,
29
            this.from,
30
            this.to
31
        );
NEW
32
        return message;
×
33
    }
34

35
    static fromMessage(message: Message): RevocationNotification {
NEW
36
        if (!message.from || !message.to) {
×
NEW
37
            throw new Error("Invalid RevocationNotificationMessage (from or to) are undefined or invalid.");
×
38
        }
39

NEW
40
        if (isNil(message.body.issueCredentialProtocolThreadId) || !isString(message.body.issueCredentialProtocolThreadId)) {
×
NEW
41
            throw new Error("Invalid PrismRevocation message");
×
42
        }
43

NEW
44
        return new RevocationNotification(
×
45
            message.body as PrismRevocationBody,
46
            message.from,
47
            message.to
48
        );
49
    }
50
}
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