Skip to content

Commit

Permalink
Temporarily remove lapsed from Typescript types (#6555)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 10, 2024
1 parent 8d32390 commit 320d3b3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions frontend/openchat-agent/src/typebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof VerifiedCredentialArgumentValue>;
Expand Down Expand Up @@ -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<typeof User>;
Expand Down Expand Up @@ -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<typeof MessageUnpinned>;
Expand Down Expand Up @@ -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<typeof OptionUpdateFrozenGroupInfo>;
Expand Down
2 changes: 1 addition & 1 deletion tsBindings/shared/CommunityMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, };
2 changes: 1 addition & 1 deletion tsBindings/shared/CommunityMembership.ts
Original file line number Diff line number Diff line change
@@ -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, };
2 changes: 1 addition & 1 deletion tsBindings/shared/GroupMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, };
2 changes: 1 addition & 1 deletion tsBindings/shared/GroupMembership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HydratedMention>, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array<GroupCanisterThreadDetails>, rules_accepted: boolean, lapsed: boolean, };
export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array<HydratedMention>, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array<GroupCanisterThreadDetails>, rules_accepted: boolean, };
8 changes: 4 additions & 4 deletions tsBindings/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, };
Expand Down Expand Up @@ -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<UserId>, 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<UserId>, followed_by_me: boolean, reply_count: number, latest_event_index: EventIndex, latest_event_timestamp: bigint, };
Expand Down Expand Up @@ -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<number, Array<UserId>> } | { "Anonymous": Record<number, number> } | { "Hidden": number };
export type MultiUserChat = { "Group": ChatId } | { "Channel": [CommunityId, bigint] };
Expand All @@ -616,7 +616,7 @@ export type MemberJoined = { user_id: UserId, invited_by?: UserId, };
export type RoleChanged = { user_ids: Array<UserId>, 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<GroupMember>, members_removed: Array<UserId>, blocked_users_added: Array<UserId>, blocked_users_removed: Array<UserId>, invited_users?: Array<UserId>, pinned_messages_added: Array<MessageIndex>, pinned_messages_removed: Array<MessageIndex>, chat_rules?: VersionedRules, };
export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array<HydratedMention>, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array<GroupCanisterThreadDetails>, rules_accepted: boolean, lapsed: boolean, };
export type GroupMembership = { joined: bigint, role: GroupRole, mentions: Array<HydratedMention>, notifications_muted: boolean, my_metrics: ChatMetrics, latest_threads: Array<GroupCanisterThreadDetails>, 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, };
Expand Down

0 comments on commit 320d3b3

Please sign in to comment.