Skip to content

Commit

Permalink
Generate typescript on Wed Dec 15 07:18:00 UTC 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 15, 2021
1 parent fbb548a commit 8325ddd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18300,7 +18300,6 @@ export class UserInfo implements TDProtoClass<UserInfo> {

export interface UserWithMeJSON {
/* eslint-disable camelcase */
account: PersonalAccountBillingJSON;
alt_send: boolean;
always_send_pushes: boolean;
asterisk_mention: boolean;
Expand All @@ -18313,6 +18312,7 @@ export interface UserWithMeJSON {
teams: TeamJSON[];
timezone: string;
unread_first: boolean;
account?: PersonalAccountBillingJSON;
default_lang?: string;
email?: string;
family_name?: string;
Expand All @@ -18326,7 +18326,6 @@ export interface UserWithMeJSON {
export class UserWithMe implements TDProtoClass<UserWithMe> {
/**
* Account data with extra information
* @param account Billing personal account
* @param altSend Use Ctrl/Cmd + Enter instead Enter
* @param alwaysSendPushes Send pushes even user is online
* @param asteriskMention Use * as @ for mentions
Expand All @@ -18339,6 +18338,7 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
* @param teams Available teams
* @param timezone Timezone
* @param unreadFirst Show unread chats in chat list first
* @param account Personal account from billing
* @param defaultLang Default language code
* @param email Email for login
* @param familyName Family name
Expand All @@ -18348,7 +18348,6 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
* @param phone Phone for login
*/
constructor (
public account: PersonalAccountBilling,
public altSend: boolean,
public alwaysSendPushes: boolean,
public asteriskMention: boolean,
Expand All @@ -18361,6 +18360,7 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
public teams: Team[],
public timezone: string,
public unreadFirst: boolean,
public account?: PersonalAccountBilling,
public defaultLang?: string,
public email?: string,
public familyName?: string,
Expand All @@ -18372,7 +18372,6 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {

public static fromJSON (raw: UserWithMeJSON): UserWithMe {
return new UserWithMe(
PersonalAccountBilling.fromJSON(raw.account),
raw.alt_send,
raw.always_send_pushes,
raw.asterisk_mention,
Expand All @@ -18385,6 +18384,7 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
raw.teams.map(Team.fromJSON),
raw.timezone,
raw.unread_first,
raw.account && PersonalAccountBilling.fromJSON(raw.account),
raw.default_lang,
raw.email,
raw.family_name,
Expand All @@ -18396,7 +18396,6 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
}

public mappableFields = [
'account',
'altSend',
'alwaysSendPushes',
'asteriskMention',
Expand All @@ -18409,6 +18408,7 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
'teams',
'timezone',
'unreadFirst',
'account',
'defaultLang',
'email',
'familyName',
Expand All @@ -18420,7 +18420,6 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {

readonly #mapper = {
/* eslint-disable camelcase */
account: () => ({ account: this.account.toJSON() }),
altSend: () => ({ alt_send: this.altSend }),
alwaysSendPushes: () => ({ always_send_pushes: this.alwaysSendPushes }),
asteriskMention: () => ({ asterisk_mention: this.asteriskMention }),
Expand All @@ -18433,6 +18432,7 @@ export class UserWithMe implements TDProtoClass<UserWithMe> {
teams: () => ({ teams: this.teams.map(u => u.toJSON()) }),
timezone: () => ({ timezone: this.timezone }),
unreadFirst: () => ({ unread_first: this.unreadFirst }),
account: () => ({ account: this.account?.toJSON() }),
defaultLang: () => ({ default_lang: this.defaultLang }),
email: () => ({ email: this.email }),
familyName: () => ({ family_name: this.familyName }),
Expand Down

0 comments on commit 8325ddd

Please sign in to comment.