Skip to content

Commit

Permalink
Finish rename
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Feb 8, 2024
1 parent 87f2544 commit f3fb509
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/external_app/external_messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface EMOutgoingMessageConfigGet extends EMMessage {
}

interface EMOutgoingMessageScanBarCode extends EMMessage {
type: "qr_code/scan";
type: "bar_code/scan";
title: string;
description: string;
alternative_option_label?: string;
Expand All @@ -55,7 +55,7 @@ type EMOutgoingMessageWithAnswer = {
request: EMOutgoingMessageConfigGet;
response: ExternalConfig;
};
"qr_code/scan": {
"bar_code/scan": {
request: EMOutgoingMessageScanBarCode;
response:
| EMIncomingMessageBarCodeResponseCanceled
Expand Down Expand Up @@ -183,7 +183,7 @@ export interface EMIncomingMessageBarCodeResponseAlternativeOptions {
export interface EMIncomingMessageBarCodeResponseScanResult {
action: "scan_result";
// A string decoded from the barcode data.
result: string;
rawValue: string;
// https://developer.mozilla.org/en-US/docs/Web/API/Barcode_Detection_API#supported_barcode_formats
format:
| "aztec"
Expand Down Expand Up @@ -224,7 +224,7 @@ export interface ExternalConfig {
canCommissionMatter: boolean;
canImportThreadCredentials: boolean;
hasAssist: boolean;
hasQRScanner: number;
hasBarCodeScanner: number;
}

export class ExternalMessaging {
Expand Down

0 comments on commit f3fb509

Please sign in to comment.