@smartico/public-api 0.0.347 → 0.0.348
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/Base/ClassId.d.ts +4 -0
- package/dist/WSAPI/WSAPI.d.ts +2 -2
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +6 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/classes/WSAPI.md +2 -2
- package/package.json +1 -1
- package/src/Base/ClassId.ts +5 -0
- package/src/WSAPI/WSAPI.ts +2 -2
|
@@ -123,7 +123,7 @@ ___
|
|
|
123
123
|
|
|
124
124
|
▸ **getMissions**(`«destructured»?`): `Promise`\<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
125
125
|
|
|
126
|
-
Returns all the missions
|
|
126
|
+
Returns all the missions configured for the current user (server-side scoped, not filtered by Widget visibility).
|
|
127
127
|
The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
128
128
|
Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
129
129
|
The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
|
|
@@ -418,7 +418,7 @@ ___
|
|
|
418
418
|
|
|
419
419
|
▸ **getMiniGames**(`«destructured»?`): `Promise`\<[`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]\>
|
|
420
420
|
|
|
421
|
-
Returns the list of mini-games
|
|
421
|
+
Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
422
422
|
The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
423
423
|
The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
424
424
|
|
package/package.json
CHANGED
package/src/Base/ClassId.ts
CHANGED
|
@@ -173,6 +173,11 @@ export enum ClassId {
|
|
|
173
173
|
RAF_CLAIM_PRIZE_REQUEST = 906,
|
|
174
174
|
*/
|
|
175
175
|
|
|
176
|
+
BNR_GET_BANNER_PLACEMENTS_REQUEST = 950,
|
|
177
|
+
BNR_GET_BANNER_PLACEMENTS_RESPONSE = 951,
|
|
178
|
+
BNR_GET_BANNER_CONTENT_REQUEST = 952,
|
|
179
|
+
BNR_GET_BANNER_CONTENT_RESPONSE = 953,
|
|
180
|
+
|
|
176
181
|
/*
|
|
177
182
|
!Important, if adding new messages that are 'acting' on behalf of the client,
|
|
178
183
|
you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -250,7 +250,7 @@ export class WSAPI {
|
|
|
250
250
|
return OCache.use(onUpdateContextKey.CurrentLevel, ECacheContext.WSAPI, () => this.api.getLevelCurrent(null), CACHE_DATA_SEC);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
/** Returns all the missions
|
|
253
|
+
/** Returns all the missions configured for the current user (server-side scoped, not filtered by Widget visibility).
|
|
254
254
|
* The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
255
255
|
* Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
256
256
|
* The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
|
|
@@ -523,7 +523,7 @@ export class WSAPI {
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
|
-
* Returns the list of mini-games
|
|
526
|
+
* Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
527
527
|
* The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
528
528
|
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
529
529
|
*
|