@playcademy/sdk 0.0.1-beta.25 → 0.0.1-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { User, InventoryItemWithItem, Game, DeveloperKey, DeveloperStatusResponse, MapElement, Item, InsertItem, ManifestV1, UpdateItem, Currency, InsertCurrency, UpdateCurrency, ShopListing, InsertShopListing, UpdateShopListing, UserLevel, LevelConfig, XPAddResult, UserLevelWithConfig, XPActionInput } from '@playcademy/types';
1
+ export type * from '@playcademy/data/types';
2
2
  export { CURRENCIES, BADGES } from '@playcademy/data/constants';
3
+ export type { PlaycademyClient } from './core/client';
3
4
  export interface ClientConfig {
4
5
  baseUrl: string;
5
6
  token?: string;
@@ -33,11 +34,6 @@ export type GameContextPayload = {
33
34
  export type EventListeners = {
34
35
  [E in keyof ClientEvents]?: Array<(payload: ClientEvents[E]) => void>;
35
36
  };
36
- export type GameWithManifest = Game & {
37
- manifest: ManifestV1;
38
- };
39
- export type DeveloperStatusValue = DeveloperStatusResponse['status'];
40
- export type GameState = Record<string, unknown>;
41
37
  export type LoginResponse = {
42
38
  token: string;
43
39
  };
@@ -51,32 +47,3 @@ export type StartSessionResponse = {
51
47
  export type InventoryMutationResponse = {
52
48
  newTotal: number;
53
49
  };
54
- export interface ShopDisplayItem extends Item {
55
- listingId: string;
56
- shopPrice: number;
57
- currencyId: string;
58
- currencySymbol?: string | null;
59
- currencyDisplayName?: string | null;
60
- currencyImageUrl?: string | null;
61
- stock?: number | null;
62
- sellBackPercentage?: number | null;
63
- }
64
- export interface UserCurrencyInfo {
65
- id: string;
66
- balance: number;
67
- symbol?: string | null;
68
- imageUrl?: string | null;
69
- isPrimary: boolean;
70
- }
71
- export interface CurrencyInfo {
72
- id: string;
73
- symbol?: string | null;
74
- imageUrl?: string | null;
75
- displayName?: string | null;
76
- isPrimary: boolean;
77
- }
78
- export interface ShopViewResponse {
79
- shopItems: ShopDisplayItem[];
80
- currencies: CurrencyInfo[];
81
- }
82
- export type { User, InventoryItemWithItem, Game, ManifestV1, DeveloperKey, DeveloperStatusResponse, MapElement, Item, InsertItem, UpdateItem, Currency, InsertCurrency, UpdateCurrency, ShopListing, InsertShopListing, UpdateShopListing, UserLevel, LevelConfig, XPAddResult, UserLevelWithConfig, XPActionInput, };