From 320d3b3879043992e00fb8d42efb1ba2b5502cae Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Thu, 10 Oct 2024 18:22:25 +0100 Subject: [PATCH] Temporarily remove `lapsed` from Typescript types (#6555) --- frontend/openchat-agent/src/typebox.ts | 4 ---- tsBindings/shared/CommunityMember.ts | 2 +- tsBindings/shared/CommunityMembership.ts | 2 +- tsBindings/shared/GroupMember.ts | 2 +- tsBindings/shared/GroupMembership.ts | 2 +- tsBindings/types.d.ts | 8 ++++---- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/frontend/openchat-agent/src/typebox.ts b/frontend/openchat-agent/src/typebox.ts index a6ce8a8585..ad38680c4e 100644 --- a/frontend/openchat-agent/src/typebox.ts +++ b/frontend/openchat-agent/src/typebox.ts @@ -1338,7 +1338,6 @@ export const CommunityMembership = Type.Object({ role: CommunityRole, rules_accepted: Type.Boolean(), display_name: Type.Optional(Type.String()), - lapsed: Type.Boolean(), }); export type VerifiedCredentialArgumentValue = Static; @@ -4300,7 +4299,6 @@ export const CommunityMember = Type.Object({ role: CommunityRole, display_name: Type.Optional(Type.String()), referred_by: Type.Optional(UserId), - lapsed: Type.Boolean(), }); export type User = Static; @@ -5822,7 +5820,6 @@ export const GroupMember = Type.Object({ user_id: UserId, date_added: Type.BigInt(), role: GroupRole, - lapsed: Type.Boolean(), }); export type MessageUnpinned = Static; @@ -6020,7 +6017,6 @@ export const GroupMembership = Type.Object({ my_metrics: ChatMetrics, latest_threads: Type.Array(GroupCanisterThreadDetails), rules_accepted: Type.Boolean(), - lapsed: Type.Boolean(), }); export type OptionUpdateFrozenGroupInfo = Static; diff --git a/tsBindings/shared/CommunityMember.ts b/tsBindings/shared/CommunityMember.ts index 1457f9af43..0e8ac405d2 100644 --- a/tsBindings/shared/CommunityMember.ts +++ b/tsBindings/shared/CommunityMember.ts @@ -2,4 +2,4 @@ import type { CommunityRole } from "./CommunityRole"; import type { UserId } from "./UserId"; -export type CommunityMember = { user_id: UserId, date_added: bigint, role: CommunityRole, display_name?: string, referred_by?: UserId, lapsed: boolean, }; +export type CommunityMember = { user_id: UserId, date_added: bigint, role: CommunityRole, display_name?: string, referred_by?: UserId, }; diff --git a/tsBindings/shared/CommunityMembership.ts b/tsBindings/shared/CommunityMembership.ts index 55ae33259b..a7c50c5f51 100644 --- a/tsBindings/shared/CommunityMembership.ts +++ b/tsBindings/shared/CommunityMembership.ts @@ -1,4 +1,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { CommunityRole } from "./CommunityRole"; -export type CommunityMembership = { joined: bigint, role: CommunityRole, rules_accepted: boolean, display_name?: string, lapsed: boolean, }; +export type CommunityMembership = { joined: bigint, role: CommunityRole, rules_accepted: boolean, display_name?: string, }; diff --git a/tsBindings/shared/GroupMember.ts b/tsBindings/shared/GroupMember.ts index 83e17ce151..4823db11d5 100644 --- a/tsBindings/shared/GroupMember.ts +++ b/tsBindings/shared/GroupMember.ts @@ -2,4 +2,4 @@ import type { GroupRole } from "./GroupRole"; import type { UserId } from "./UserId"; -export type GroupMember = { user_id: UserId, date_added: bigint, role: GroupRole, lapsed: boolean, }; +export type GroupMember = { user_id: UserId, date_added: bigint, role: GroupRole, }; diff --git a/tsBindings/shared/GroupMembership.ts b/tsBindings/shared/GroupMembership.ts index 03a5bf99aa..8bf8ff2070 100644 --- a/tsBindings/shared/GroupMembership.ts +++ b/tsBindings/shared/GroupMembership.ts @@ -4,4 +4,4 @@ import type { GroupCanisterThreadDetails } from "./GroupCanisterThreadDetails"; import type { GroupRole } from "./GroupRole"; import type { HydratedMention } from "./HydratedMention"; -export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array, rules_accepted: boolean, lapsed: boolean, }; +export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array, rules_accepted: boolean, }; diff --git a/tsBindings/types.d.ts b/tsBindings/types.d.ts index 54ebf2469d..96070059c6 100644 --- a/tsBindings/types.d.ts +++ b/tsBindings/types.d.ts @@ -135,7 +135,7 @@ export type GroupInviteCodeChange = "Enabled" | "Disabled" | "Reset"; export type BotConfig = { is_oc_controlled: boolean, supports_direct_messages: boolean, can_be_added_to_groups: boolean, }; export type Version = number; export type OptionalCommunityPermissions = { change_roles?: CommunityPermissionRole, update_details?: CommunityPermissionRole, invite_users?: CommunityPermissionRole, remove_members?: CommunityPermissionRole, create_public_channel?: CommunityPermissionRole, create_private_channel?: CommunityPermissionRole, manage_user_groups?: CommunityPermissionRole, }; -export type CommunityMembership = { joined: bigint, role: CommunityRole, rules_accepted: boolean, display_name?: string, lapsed: boolean, }; +export type CommunityMembership = { joined: bigint, role: CommunityRole, rules_accepted: boolean, display_name?: string, }; export type VerifiedCredentialArgumentValue = { "String": string } | { "Int": number }; export type VideoCallAccessTokenArgs = { call_type: VideoCallType, }; export type P2PSwapCancelled = { token0_txn_out?: bigint, }; @@ -419,7 +419,7 @@ export type GovernanceProposalsSubtype = { is_nns: boolean, governance_canister_ export type FailedCryptoTransactionNNS = { ledger: TSBytes, token: Cryptocurrency, amount: Tokens, fee: Tokens, from: CryptoAccountNNS, to: CryptoAccountNNS, memo: bigint, created: bigint, transaction_hash: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], error_message: string, }; export type SnsProposal = { id: bigint, action: bigint, proposer: [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], created: bigint, title: string, summary: string, url: string, status: ProposalDecisionStatus, reward_status: ProposalRewardStatus, tally: Tally, deadline: bigint, payload_text_rendering?: string, minimum_yes_proportion_of_total: number, minimum_yes_proportion_of_exercised: number, last_updated: bigint, }; export type UsersBlocked = { user_ids: Array, blocked_by: UserId, }; -export type CommunityMember = { user_id: UserId, date_added: bigint, role: CommunityRole, display_name?: string, referred_by?: UserId, lapsed: boolean, }; +export type CommunityMember = { user_id: UserId, date_added: bigint, role: CommunityRole, display_name?: string, referred_by?: UserId, }; export type User = { user_id: UserId, username: string, }; export type MessageReport = { reported_by: UserId, timestamp: bigint, reason_code: number, notes?: string, }; export type ThreadSummary = { participant_ids: Array, followed_by_me: boolean, reply_count: number, latest_event_index: EventIndex, latest_event_timestamp: bigint, }; @@ -592,7 +592,7 @@ export type Chat = { "Direct": ChatId } | { "Group": ChatId } | { "Channel": [Co export type DeletedBy = { deleted_by: UserId, timestamp: bigint, }; export type CompletedCryptoTransaction = { "NNS": CompletedCryptoTransactionNNS } | { "ICRC1": CompletedCryptoTransactionICRC1 } | { "ICRC2": CompletedCryptoTransactionICRC2 }; export type P2PSwapAccepted = { accepted_by: UserId, token1_txn_in: bigint, }; -export type GroupMember = { user_id: UserId, date_added: bigint, role: GroupRole, lapsed: boolean, }; +export type GroupMember = { user_id: UserId, date_added: bigint, role: GroupRole, }; export type MessageUnpinned = { message_index: MessageIndex, unpinned_by: UserId, due_to_message_deleted: boolean, }; export type TotalVotes = { "Visible": Record> } | { "Anonymous": Record } | { "Hidden": number }; export type MultiUserChat = { "Group": ChatId } | { "Channel": [CommunityId, bigint] }; @@ -616,7 +616,7 @@ export type MemberJoined = { user_id: UserId, invited_by?: UserId, }; export type RoleChanged = { user_ids: Array, changed_by: UserId, old_role: GroupRole, new_role: GroupRole, }; export type GroupVisibilityChanged = { public?: boolean, messages_visible_to_non_members?: boolean, changed_by: UserId, }; export type SelectedGroupUpdates = { timestamp: bigint, last_updated: bigint, latest_event_index: EventIndex, members_added_or_updated: Array, members_removed: Array, blocked_users_added: Array, blocked_users_removed: Array, invited_users?: Array, pinned_messages_added: Array, pinned_messages_removed: Array, chat_rules?: VersionedRules, }; -export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array, rules_accepted: boolean, lapsed: boolean, }; +export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array, rules_accepted: boolean, }; export type OptionUpdateFrozenGroupInfo = "NoChange" | "SetToNone" | { "SetToSome": FrozenGroupInfo }; export type ProposalContent = { governance_canister_id: TSBytes, proposal: Proposal, my_vote?: boolean, }; export type ReplyContext = { chat_if_other?: [Chat, MessageIndex | null], event_index: EventIndex, };