chore(release): @rudder/sdk 0.2.0, CurrencyBalance and balances/items, regenerated module client fixture
This commit is contained in:
@@ -2,11 +2,11 @@ import { describe, it, expect } from 'vitest';
|
||||
import { freshPlayer } from './_setup/harness.js';
|
||||
|
||||
describe('e2e-prod: player', () => {
|
||||
it('device login yields a profile with a player id wallets array and counters', async () => {
|
||||
it('device login yields a profile with a player id and balances and items arrays', async () => {
|
||||
const client = await freshPlayer();
|
||||
const profile = await client.player.reload();
|
||||
expect(profile.player?.id).toBeTruthy();
|
||||
expect(Array.isArray(profile.wallets)).toBe(true);
|
||||
expect(profile).toHaveProperty('counters');
|
||||
expect(Array.isArray(profile.balances)).toBe(true);
|
||||
expect(Array.isArray(profile.items)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Vendored
+10
-7
@@ -11,26 +11,29 @@ export interface RudderModuleCaller {
|
||||
|
||||
export type RudderKernelError =
|
||||
| "call_depth_exceeded"
|
||||
| "catalog_invalid_field"
|
||||
| "catalog_not_found"
|
||||
| "catalog_ref_invalid"
|
||||
| "conflict"
|
||||
| "counter_only_increment"
|
||||
| "counter_above_max"
|
||||
| "counter_below_min"
|
||||
| "currency_unknown"
|
||||
| "dependency_not_declared"
|
||||
| "forbidden"
|
||||
| "function_not_callable"
|
||||
| "function_not_found"
|
||||
| "insufficient_funds"
|
||||
| "insufficient_items"
|
||||
| "internal"
|
||||
| "invalid_parameters"
|
||||
| "module_not_installed"
|
||||
| "player_not_found"
|
||||
| "player_required"
|
||||
| "primitive_not_declared"
|
||||
| "regen_insufficient"
|
||||
| "reserved_event"
|
||||
| "resource_invalid_field"
|
||||
| "resource_invalid_ref"
|
||||
| "resource_not_found"
|
||||
| "row_not_found"
|
||||
| "row_referenced"
|
||||
| "sorted_set_order_changed"
|
||||
| "storage_key_limit_exceeded"
|
||||
| "unique_violation"
|
||||
| "unknown_operation"
|
||||
| "version_conflict"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user