@smartico/public-api 0.0.349 → 0.0.350
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 +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +9 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/classes/WSAPI.md +3 -4
- package/package.json +1 -1
- package/src/Base/ClassId.ts +7 -0
- package/src/SmarticoLib/index.ts +4 -0
- package/src/WSAPI/WSAPI.ts +3 -4
package/dist/Base/ClassId.d.ts
CHANGED
|
@@ -70,6 +70,12 @@ export declare enum ClassId {
|
|
|
70
70
|
GET_RELATED_ACH_N_TOURNAMENTS_RESPONSE = 544,
|
|
71
71
|
GET_POINT_HISTORY_REQUEST = 545,
|
|
72
72
|
GET_POINT_HISTORY_RESPONSE = 546,
|
|
73
|
+
GET_AVATARS_LIST_REQUEST = 560,
|
|
74
|
+
GET_AVATARS_LIST_RESPONSE = 561,
|
|
75
|
+
GET_AVATARS_CUSTOMIZED_REQUEST = 562,
|
|
76
|
+
GET_AVATARS_CUSTOMIZED_RESPONSE = 563,
|
|
77
|
+
GET_AVATAR_PROMPTS_REQUEST = 564,
|
|
78
|
+
GET_AVATAR_PROMPTS_RESPONSE = 565,
|
|
73
79
|
GET_BONUSES_REQUEST = 600,
|
|
74
80
|
GET_BONUSES_RESPONSE = 601,
|
|
75
81
|
CLAIM_BONUS_REQUEST = 602,
|
|
@@ -185,6 +185,10 @@ declare enum ClassId {
|
|
|
185
185
|
ACHIEVEMENT_CLAIM_PRIZE_RESPONSE = 540,
|
|
186
186
|
ACH_SHOP_ITEM_HISTORY_REQUEST = 541,
|
|
187
187
|
ACH_SHOP_ITEM_HISTORY_RESPONSE = 542,
|
|
188
|
+
GET_AVATARS_LIST_REQUEST = 560,
|
|
189
|
+
GET_AVATARS_LIST_RESPONSE = 561,
|
|
190
|
+
GET_AVATAR_PROMPTS_REQUEST = 564,
|
|
191
|
+
GET_AVATAR_PROMPTS_RESPONSE = 565,
|
|
188
192
|
GET_BONUSES_REQUEST = 600,
|
|
189
193
|
GET_BONUSES_RESPONSE = 601,
|
|
190
194
|
CLAIM_BONUS_REQUEST = 602,
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -17,12 +17,11 @@ export declare class WSAPI {
|
|
|
17
17
|
/** @private */
|
|
18
18
|
clearCaches(): void;
|
|
19
19
|
/** Returns information about current user
|
|
20
|
-
*
|
|
20
|
+
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
21
21
|
* **Example**:
|
|
22
22
|
* ```
|
|
23
|
-
* _smartico.api.getUserProfile
|
|
24
|
-
*
|
|
25
|
-
* });
|
|
23
|
+
* var p = _smartico.api.getUserProfile);
|
|
24
|
+
* console.log(p);
|
|
26
25
|
* ```
|
|
27
26
|
* **Visitor mode: not supported**
|
|
28
27
|
* */
|
package/dist/index.js
CHANGED
|
@@ -86,6 +86,12 @@ exports.ClassId = void 0;
|
|
|
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
|
|
@@ -2274,12 +2280,11 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2274
2280
|
OCache.clearAll();
|
|
2275
2281
|
}
|
|
2276
2282
|
/** Returns information about current user
|
|
2277
|
-
*
|
|
2283
|
+
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
2278
2284
|
* **Example**:
|
|
2279
2285
|
* ```
|
|
2280
|
-
* _smartico.api.getUserProfile
|
|
2281
|
-
*
|
|
2282
|
-
* });
|
|
2286
|
+
* var p = _smartico.api.getUserProfile);
|
|
2287
|
+
* console.log(p);
|
|
2283
2288
|
* ```
|
|
2284
2289
|
* **Visitor mode: not supported**
|
|
2285
2290
|
* */;
|