feat: add profile redeem code flow
This commit is contained in:
@@ -57,7 +57,8 @@ export type ProfileWalletLedgerEntry = {
|
||||
| 'invite_invitee_reward'
|
||||
| 'points_recharge'
|
||||
| 'asset_generation_consume'
|
||||
| 'asset_generation_refund';
|
||||
| 'asset_generation_refund'
|
||||
| 'redeem_code_reward';
|
||||
createdAt: string;
|
||||
};
|
||||
|
||||
@@ -159,6 +160,16 @@ export type RedeemProfileReferralInviteCodeResponse = {
|
||||
inviterBalanceAfter: number;
|
||||
};
|
||||
|
||||
export type RedeemProfileRewardCodeRequest = {
|
||||
code: string;
|
||||
};
|
||||
|
||||
export type RedeemProfileRewardCodeResponse = {
|
||||
walletBalance: number;
|
||||
amountGranted: number;
|
||||
ledgerEntry: ProfileWalletLedgerEntry;
|
||||
};
|
||||
|
||||
export type ProfilePlayedWorkSummary = {
|
||||
worldKey: string;
|
||||
ownerUserId: string | null;
|
||||
|
||||
Reference in New Issue
Block a user