feat!: balances and items replace the wallet in the player profile
This commit is contained in:
@@ -5,7 +5,7 @@ import type { PlayerProfile } from '../generated/player.js';
|
||||
|
||||
/**
|
||||
* PlayerDomain — the observable player profile (player, identities,
|
||||
* wallets, counters).
|
||||
* balances, items).
|
||||
* Synced under revision key `profile`.
|
||||
*/
|
||||
export class PlayerDomain extends SyncedState<PlayerProfile> {
|
||||
|
||||
+12
-7
@@ -1,5 +1,15 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface Balance {
|
||||
"balance"?: number;
|
||||
"currency"?: string;
|
||||
}
|
||||
|
||||
export interface InventoryStack {
|
||||
"item"?: string;
|
||||
"quantity"?: number;
|
||||
}
|
||||
|
||||
export interface Player {
|
||||
"avatarUrl"?: string;
|
||||
"createdAt"?: string;
|
||||
@@ -11,10 +21,10 @@ export interface Player {
|
||||
}
|
||||
|
||||
export interface PlayerProfile {
|
||||
"counters"?: { [key: string]: number };
|
||||
"balances"?: Balance[];
|
||||
"identities"?: PlayerProfileIdentity[];
|
||||
"items"?: InventoryStack[];
|
||||
"player"?: Player;
|
||||
"wallets"?: Wallet[];
|
||||
}
|
||||
|
||||
export interface PlayerProfileIdentity {
|
||||
@@ -23,8 +33,3 @@ export interface PlayerProfileIdentity {
|
||||
"subject": string;
|
||||
}
|
||||
|
||||
export interface Wallet {
|
||||
"balance"?: number;
|
||||
"currency"?: string;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ export type { StorageDomain } from './domains/StorageDomain.js';
|
||||
|
||||
// Generated wire types — the shapes returned by the observable state and
|
||||
// handles, so consumers can name them instead of re-declaring mirrors.
|
||||
export type { Player, PlayerProfile, PlayerProfileIdentity, Wallet } from './generated/player.js';
|
||||
export type { Balance, InventoryStack, Player, PlayerProfile, PlayerProfileIdentity } from './generated/player.js';
|
||||
export type { CatalogCurrency } from './generated/catalog.js';
|
||||
export type { StorageItem, GetStorageResponse } from './generated/storage.js';
|
||||
export type { ModuleErrorResponse } from './generated/modules.js';
|
||||
|
||||
Reference in New Issue
Block a user