-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b324a70
commit b0e829c
Showing
9 changed files
with
72 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import { Base, Expose } from './base' | ||
// biome-ignore lint/style/useImportType: deepkit/type | ||
import { serialize, Group } from '@deepkit/type' | ||
import type { Kient } from '../kient' | ||
|
||
export class Channel extends Base { | ||
@Expose id!: string | ||
@Expose slug!: string | ||
@Expose banner_picture!: string | ||
@Expose description?: string | ||
@Expose followers_count?: number | ||
export class Channel { | ||
constructor( | ||
public kient: Kient & Group<'exclude'>, | ||
|
||
public id: string, | ||
public slug: string, | ||
public banner_picture: string, | ||
public description: string, | ||
public followers_count: number, | ||
) {} | ||
|
||
toJSON() { | ||
return serialize<Channel>(this, { groupsExclude: ['exclude'] }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import { Expose } from './base' | ||
// biome-ignore lint/style/useImportType: deepkit/type | ||
import { serialize, Group } from '@deepkit/type' | ||
import type { Kient } from '../kient' | ||
|
||
export class Chatroom { | ||
@Expose id!: string | ||
@Expose channel_id!: string | ||
constructor( | ||
public kient: Kient & Group<'exclude'>, | ||
|
||
public id: string, | ||
public channel_id: string, | ||
) {} | ||
|
||
toJSON() { | ||
return serialize<Chatroom>(this, { groupsExclude: ['exclude'] }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
export class Panel {} | ||
// biome-ignore lint/style/useImportType: deepkit/type | ||
import { serialize, Group } from '@deepkit/type' | ||
import type { Kient } from '../kient' | ||
|
||
export class Panel { | ||
constructor(public kient: Kient & Group<'exclude'>) {} | ||
|
||
toJSON() { | ||
return serialize<Panel>(this, { groupsExclude: ['exclude'] }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
export class Social {} | ||
// biome-ignore lint/style/useImportType: deepkit/type | ||
import { serialize, Group } from '@deepkit/type' | ||
import type { Kient } from '../kient' | ||
|
||
export class Social { | ||
constructor(public kient: Kient & Group<'exclude'>) {} | ||
|
||
toJSON() { | ||
return serialize<Social>(this, { groupsExclude: ['exclude'] }) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
import { Base, Expose } from './base' | ||
// biome-ignore lint/style/useImportType: deepkit/type | ||
import { serialize, Group } from '@deepkit/type' | ||
import type { Kient } from '../kient' | ||
|
||
export class User extends Base { | ||
@Expose id!: string | ||
@Expose username!: string | ||
@Expose is_verified!: boolean | ||
@Expose profile_picture!: string | ||
export class User { | ||
constructor( | ||
public kient: Kient & Group<'exclude'>, | ||
|
||
public id: string, | ||
public username: string, | ||
public is_verified: boolean, | ||
public profile_picture: string, | ||
) {} | ||
|
||
toJSON() { | ||
return serialize<User>(this, { groupsExclude: ['exclude'] }) | ||
} | ||
} |