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

hyperledger / identus-edge-agent-sdk-ts / 9860119558

09 Jul 2024 03:42PM UTC coverage: 71.499%. Remained the same
9860119558

push

github

web-flow
fix: escape the `<->` sequence to fix the build error in the identus-… (#248)

Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>

1355 of 2085 branches covered (64.99%)

Branch coverage included in aggregate %.

2719 of 3613 relevant lines covered (75.26%)

22.33 hits per line

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

0.0
/src/edge-agent/protocols/ProtocolTypes.ts
1
export enum ProtocolType {
2
  DidcommBasicMessage = "https://didcomm.org/basicmessage/2.0/message",
3
  DidcommMediationRequest = "https://didcomm.org/coordinate-mediation/2.0/mediate-request",
4
  DidcommMediationGrant = "https://didcomm.org/coordinate-mediation/2.0/mediate-grant",
5
  DidcommMediationDeny = "https://didcomm.org/coordinate-mediation/2.0/mediate-deny",
6
  DidcommMediationKeysUpdate = "https://didcomm.org/coordinate-mediation/2.0/keylist-update",
7
  DidcommPresentation = "https://didcomm.atalaprism.io/present-proof/3.0/presentation",
8
  DidcommRequestPresentation = "https://didcomm.atalaprism.io/present-proof/3.0/request-presentation",
9
  DidcommProposePresentation = "https://didcomm.atalaprism.io/present-proof/3.0/propose-presentation",
10
  DidcommCredentialPreview = "https://didcomm.org/issue-credential/3.0/credential-preview",
11
  DidcommIssueCredential = "https://didcomm.org/issue-credential/3.0/issue-credential",
12
  DidcommOfferCredential = "https://didcomm.org/issue-credential/3.0/offer-credential",
13
  DidcommProposeCredential = "https://didcomm.org/issue-credential/3.0/propose-credential",
14
  DidcommRequestCredential = "https://didcomm.org/issue-credential/3.0/request-credential",
15
  DidcommconnectionRequest = "https://atalaprism.io/mercury/connections/1.0/request",
16
  DidcommconnectionResponse = "https://atalaprism.io/mercury/connections/1.0/response",
17
  Didcomminvitation = "https://didcomm.org/out-of-band/2.0/invitation",
18
  PrismOnboarding = "https://atalaprism.io/did-request",
19
  PickupRequest = "https://didcomm.org/messagepickup/3.0/delivery-request",
20
  PickupDelivery = "https://didcomm.org/messagepickup/3.0/delivery",
21
  PickupStatus = "https://didcomm.org/messagepickup/3.0/status",
22
  PickupReceived = "https://didcomm.org/messagepickup/3.0/messages-received",
23
  LiveDeliveryChange = "https://didcomm.org/messagepickup/3.0/live-delivery-change",
24
  PrismRevocation = "https://atalaprism.io/revocation_notification/1.0/revoke"
25
}
26

27
export function findProtocolTypeByValue(string: string): ProtocolType {
28
  const values = Object.values(ProtocolType) as string[];
×
29
  for (const value of values) {
×
30
    if (value === string) {
×
31
      return ProtocolType[value as keyof typeof ProtocolType];
×
32
    }
33
  }
34
  throw new Error("Unknown invitation type error.");
×
35
}
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

© 2025 Coveralls, Inc