@smartico/public-api 0.0.349 → 0.0.351
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 +6 -0
- package/dist/SmarticoLib/index.d.ts +4 -0
- package/dist/WSAPI/WSAPI.d.ts +3 -4
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +11 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/classes/WSAPI.md +3 -4
- package/package.json +1 -1
- package/src/ActivityLog/GetActivityLogResponse.ts +2 -0
- package/src/Base/ClassId.ts +7 -0
- package/src/SmarticoLib/index.ts +4 -0
- package/src/WSAPI/WSAPI.ts +3 -4
package/dist/index.modern.mjs
CHANGED
|
@@ -86,6 +86,12 @@ var ClassId;
|
|
|
86
86
|
ClassId[ClassId["GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE"] = 544] = "GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE";
|
|
87
87
|
ClassId[ClassId["GET_POINT_HISTORY_REQUEST"] = 545] = "GET_POINT_HISTORY_REQUEST";
|
|
88
88
|
ClassId[ClassId["GET_POINT_HISTORY_RESPONSE"] = 546] = "GET_POINT_HISTORY_RESPONSE";
|
|
89
|
+
ClassId[ClassId["GET_AVATARS_LIST_REQUEST"] = 560] = "GET_AVATARS_LIST_REQUEST";
|
|
90
|
+
ClassId[ClassId["GET_AVATARS_LIST_RESPONSE"] = 561] = "GET_AVATARS_LIST_RESPONSE";
|
|
91
|
+
ClassId[ClassId["GET_AVATARS_CUSTOMIZED_REQUEST"] = 562] = "GET_AVATARS_CUSTOMIZED_REQUEST";
|
|
92
|
+
ClassId[ClassId["GET_AVATARS_CUSTOMIZED_RESPONSE"] = 563] = "GET_AVATARS_CUSTOMIZED_RESPONSE";
|
|
93
|
+
ClassId[ClassId["GET_AVATAR_PROMPTS_REQUEST"] = 564] = "GET_AVATAR_PROMPTS_REQUEST";
|
|
94
|
+
ClassId[ClassId["GET_AVATAR_PROMPTS_RESPONSE"] = 565] = "GET_AVATAR_PROMPTS_RESPONSE";
|
|
89
95
|
/*
|
|
90
96
|
!Important, if adding new messages that are 'acting' on behalf of the client,
|
|
91
97
|
you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
|
|
@@ -2242,12 +2248,11 @@ class WSAPI {
|
|
|
2242
2248
|
OCache.clearAll();
|
|
2243
2249
|
}
|
|
2244
2250
|
/** Returns information about current user
|
|
2245
|
-
*
|
|
2251
|
+
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
2246
2252
|
* **Example**:
|
|
2247
2253
|
* ```
|
|
2248
|
-
* _smartico.api.getUserProfile
|
|
2249
|
-
*
|
|
2250
|
-
* });
|
|
2254
|
+
* var p = _smartico.api.getUserProfile);
|
|
2255
|
+
* console.log(p);
|
|
2251
2256
|
* ```
|
|
2252
2257
|
* **Visitor mode: not supported**
|
|
2253
2258
|
* */
|
|
@@ -3483,12 +3488,14 @@ const ActivityLogTransform = items => {
|
|
|
3483
3488
|
return [];
|
|
3484
3489
|
}
|
|
3485
3490
|
return items.map(item => {
|
|
3491
|
+
var _item$type;
|
|
3486
3492
|
const itemTransformed = {
|
|
3487
3493
|
create_date: item.create_date,
|
|
3488
3494
|
user_ext_id: item.user_ext_id,
|
|
3489
3495
|
crm_brand_id: item.crm_brand_id,
|
|
3490
3496
|
source_type_id: item.source_type_id
|
|
3491
3497
|
};
|
|
3498
|
+
item.type = (_item$type = item.type) != null ? _item$type : UserBalanceType.Points;
|
|
3492
3499
|
if (item.type === UserBalanceType.Diamonds || item.type === UserBalanceType.Gems) {
|
|
3493
3500
|
itemTransformed.type = item.type;
|
|
3494
3501
|
itemTransformed.amount = item.amount;
|