From 3b761dffbf9ed43e9dc59c15fd460cd8437073d3 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 21 Sep 2023 20:33:14 -0700 Subject: [PATCH 1/2] Add verified for Firefish field --- megalodon/src/entities/field.ts | 3 ++- megalodon/src/firefish/entities/field.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/megalodon/src/entities/field.ts b/megalodon/src/entities/field.ts index 03e4604b0..015744962 100644 --- a/megalodon/src/entities/field.ts +++ b/megalodon/src/entities/field.ts @@ -2,6 +2,7 @@ namespace Entity { export type Field = { name: string value: string - verified_at: string | null + verified_at?: string | null + verified?: boolean | false } } diff --git a/megalodon/src/firefish/entities/field.ts b/megalodon/src/firefish/entities/field.ts index 3f89445ec..66a08f53f 100644 --- a/megalodon/src/firefish/entities/field.ts +++ b/megalodon/src/firefish/entities/field.ts @@ -2,5 +2,6 @@ namespace FirefishEntity { export type Field = { name: string value: string + verified?: boolean } } From c402e232acf4cdda3ae8ac468bfdeda980c5455a Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 21 Sep 2023 23:43:12 -0700 Subject: [PATCH 2/2] update conversion function to apply verified field --- megalodon/src/firefish/api_client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/megalodon/src/firefish/api_client.ts b/megalodon/src/firefish/api_client.ts index 891e8bf0b..fa8ec7cd3 100644 --- a/megalodon/src/firefish/api_client.ts +++ b/megalodon/src/firefish/api_client.ts @@ -459,6 +459,7 @@ namespace FirefishAPI { return { name: f.name, value: f.value, + verified: f.verified, verified_at: null } }