@playbasis-ai/qwikcard-sdk 2.3.12 → 2.3.13

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/CHANGELOG.md CHANGED
@@ -55,6 +55,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55
55
 
56
56
  - Updated README event list with XP values from the QwikCard rulebook.
57
57
 
58
+ ## [2.3.13] - 2026-01-29
59
+
60
+ ### Fixed
61
+
62
+ - Support `items` responses for quests, badges, and rewards to avoid empty dashboards.
63
+
58
64
  ## [2.3.11] - 2026-01-29
59
65
 
60
66
  ### Changed
@@ -131,11 +131,11 @@ export class PlaybasisClient {
131
131
  // ─────────────────────────────────────────────────────────────────────────
132
132
  async getQuests() {
133
133
  const data = await this.request('GET', '/quests');
134
- return data.quests || [];
134
+ return data.quests || data.items || [];
135
135
  }
136
136
  async getPlayerQuests(playerId) {
137
137
  const data = await this.request('GET', `/players/${encodeURIComponent(playerId)}/quests`);
138
- return data.quests || [];
138
+ return data.quests || data.items || [];
139
139
  }
140
140
  async getQuestProgress(playerId, questId) {
141
141
  const data = await this.request('GET', `/players/${encodeURIComponent(playerId)}/quests/${encodeURIComponent(questId)}`);
@@ -146,18 +146,18 @@ export class PlaybasisClient {
146
146
  // ─────────────────────────────────────────────────────────────────────────
147
147
  async getBadges() {
148
148
  const data = await this.request('GET', '/badges');
149
- return data.badges || [];
149
+ return data.badges || data.items || [];
150
150
  }
151
151
  async getPlayerBadges(playerId) {
152
152
  const data = await this.request('GET', `/players/${encodeURIComponent(playerId)}/badges`);
153
- return data.badges || [];
153
+ return data.badges || data.items || [];
154
154
  }
155
155
  // ─────────────────────────────────────────────────────────────────────────
156
156
  // Rewards
157
157
  // ─────────────────────────────────────────────────────────────────────────
158
158
  async getRewards() {
159
159
  const data = await this.request('GET', '/rewards');
160
- return data.rewards || [];
160
+ return data.rewards || data.items || [];
161
161
  }
162
162
  async redeemReward(playerId, rewardId) {
163
163
  const idempotencyKey = `reward-${playerId}-${rewardId}-${this.generateId()}`;
@@ -1 +1 @@
1
- {"version":3,"file":"widgetAssets.d.ts","sourceRoot":"","sources":["../../src/web/widgetAssets.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,aAAa,uyk8BAAqxj8B,CAAC;AAChzj8B,eAAO,MAAM,UAAU,u4xEAAu4xE,CAAC"}
1
+ {"version":3,"file":"widgetAssets.d.ts","sourceRoot":"","sources":["../../src/web/widgetAssets.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAC1C,eAAO,MAAM,aAAa,uyk8BACgt+6B,CAAC;AAC3u+6B,eAAO,MAAM,UAAU,u4xEACuxxE,CAAC"}