-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement more PubKey Profiles features
- Loading branch information
Showing
56 changed files
with
1,684 additions
and
103 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './lib/entity/api-pubkey-profile.entity' | ||
export * from './lib/api-profile.data-access.module' | ||
export * from './lib/api-profile.service' |
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
37 changes: 37 additions & 0 deletions
37
libs/api/profile/data-access/src/lib/entity/api-pubkey-profile.entity.ts
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Field, Int, ObjectType } from '@nestjs/graphql' | ||
|
||
@ObjectType() | ||
export class PubkeyProfile { | ||
@Field(() => Int) | ||
bump!: number | ||
|
||
@Field() | ||
username!: string | ||
|
||
@Field() | ||
avatarUrl?: string | ||
|
||
@Field() | ||
feePayer!: string | ||
|
||
@Field(() => [String]) | ||
authorities!: string[] | ||
|
||
@Field(() => [PubkeyProfileIdentity]) | ||
identities!: PubkeyProfileIdentity[] | ||
|
||
@Field() | ||
publicKey!: string | ||
} | ||
|
||
@ObjectType() | ||
export class PubkeyProfileIdentity { | ||
@Field() | ||
provider!: string | ||
|
||
@Field() | ||
providerId!: string | ||
|
||
@Field() | ||
name!: string | ||
} |
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
Oops, something went wrong.