@playcademy/sdk 0.0.1-beta.14 → 0.0.1-beta.16

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.
@@ -147,41 +147,33 @@ export declare class PlaycademyClient {
147
147
  createCurrency: (props: InsertCurrency) => Promise<{
148
148
  symbol: string | null;
149
149
  id: string;
150
- displayName: string;
151
150
  createdAt: Date;
152
151
  updatedAt: Date | null;
153
- internalName: string;
154
- imageUrl: string | null;
152
+ itemId: string;
155
153
  isPrimary: boolean;
156
154
  }>;
157
155
  getCurrency: (currencyId: string) => Promise<{
158
156
  symbol: string | null;
159
157
  id: string;
160
- displayName: string;
161
158
  createdAt: Date;
162
159
  updatedAt: Date | null;
163
- internalName: string;
164
- imageUrl: string | null;
160
+ itemId: string;
165
161
  isPrimary: boolean;
166
162
  }>;
167
163
  listCurrencies: () => Promise<{
168
164
  symbol: string | null;
169
165
  id: string;
170
- displayName: string;
171
166
  createdAt: Date;
172
167
  updatedAt: Date | null;
173
- internalName: string;
174
- imageUrl: string | null;
168
+ itemId: string;
175
169
  isPrimary: boolean;
176
170
  }[]>;
177
171
  updateCurrency: (currencyId: string, props: UpdateCurrency) => Promise<{
178
172
  symbol: string | null;
179
173
  id: string;
180
- displayName: string;
181
174
  createdAt: Date;
182
175
  updatedAt: Date | null;
183
- internalName: string;
184
- imageUrl: string | null;
176
+ itemId: string;
185
177
  isPrimary: boolean;
186
178
  }>;
187
179
  deleteCurrency: (currencyId: string) => Promise<void>;
@@ -193,7 +185,7 @@ export declare class PlaycademyClient {
193
185
  updatedAt: Date | null;
194
186
  itemId: string;
195
187
  currencyId: string;
196
- priceAmount: string;
188
+ price: number;
197
189
  sellBackPercentage: number | null;
198
190
  stock: number | null;
199
191
  isActive: boolean;
@@ -206,7 +198,7 @@ export declare class PlaycademyClient {
206
198
  updatedAt: Date | null;
207
199
  itemId: string;
208
200
  currencyId: string;
209
- priceAmount: string;
201
+ price: number;
210
202
  sellBackPercentage: number | null;
211
203
  stock: number | null;
212
204
  isActive: boolean;
@@ -219,7 +211,7 @@ export declare class PlaycademyClient {
219
211
  updatedAt: Date | null;
220
212
  itemId: string;
221
213
  currencyId: string;
222
- priceAmount: string;
214
+ price: number;
223
215
  sellBackPercentage: number | null;
224
216
  stock: number | null;
225
217
  isActive: boolean;
@@ -232,7 +224,7 @@ export declare class PlaycademyClient {
232
224
  updatedAt: Date | null;
233
225
  itemId: string;
234
226
  currencyId: string;
235
- priceAmount: string;
227
+ price: number;
236
228
  sellBackPercentage: number | null;
237
229
  stock: number | null;
238
230
  isActive: boolean;
package/dist/types.d.ts CHANGED
@@ -42,9 +42,10 @@ export type InventoryMutationResponse = {
42
42
  };
43
43
  export interface ShopDisplayItem extends Item {
44
44
  listingId: string;
45
- shopPrice: string;
45
+ shopPrice: number;
46
46
  currencyId: string;
47
47
  currencySymbol?: string | null;
48
+ currencyDisplayName?: string | null;
48
49
  currencyImageUrl?: string | null;
49
50
  stock?: number | null;
50
51
  sellBackPercentage?: number | null;
@@ -59,5 +60,6 @@ export interface UserCurrencyInfo {
59
60
  export interface ShopViewResponse {
60
61
  shopItems: ShopDisplayItem[];
61
62
  userCurrencies: UserCurrencyInfo[];
63
+ activeListings: ShopListing[];
62
64
  }
63
65
  export type { User, InventoryItemWithItem, Game, ManifestV1, DeveloperKey, DeveloperStatusResponse, MapElement, Item, InsertItem, UpdateItem, Currency, InsertCurrency, UpdateCurrency, ShopListing, InsertShopListing, UpdateShopListing, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@playcademy/sdk",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.14",
4
+ "version": "0.0.1-beta.16",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./dist/runtime.js",