@smartico/public-api 0.0.420 → 0.0.422
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/README.md +14 -0
- package/dist/ActivityLog/ActivityLogActivities.d.ts +1 -1
- package/dist/ActivityLog/ActivityLogEntry.d.ts +35 -17
- package/dist/ActivityLog/ActivityLogMeta.d.ts +31 -0
- package/dist/ActivityLog/GetActivityLogRequest.d.ts +2 -0
- package/dist/ActivityLog/GetActivityLogResponse.d.ts +1 -2
- package/dist/Jackpots/JackPotWinPushWinner.d.ts +34 -0
- package/dist/Jackpots/JackPotWinner.d.ts +3 -1
- package/dist/Jackpots/JackpotContributionRule.d.ts +23 -0
- package/dist/Jackpots/JackpotDetails.d.ts +8 -0
- package/dist/Jackpots/JackpotPot.d.ts +4 -2
- package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -2
- package/dist/Jackpots/JackpotWinPush.d.ts +14 -2
- package/dist/Jackpots/index.d.ts +2 -0
- package/dist/SmarticoAPI.d.ts +1 -3
- package/dist/WSAPI/WSAPIBase.d.ts +0 -1
- package/dist/WSAPI/WSAPIJackpots.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +19 -17
- package/dist/WSAPI/WSAPIUser.d.ts +11 -36
- package/dist/index.js +36 -128
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +34 -100
- package/dist/index.modern.mjs.map +1 -1
- package/docs/Callbacks.md +1 -1
- package/docs/api/README.md +4 -4
- package/docs/api/classes/WSAPIJackpots.md +2 -0
- package/docs/api/classes/WSAPIUser.md +30 -59
- package/docs/api/documents/Callbacks.md +1 -1
- package/docs/api/enumerations/ActivityLogActivities.md +1 -1
- package/docs/api/enumerations/PointChangeSourceType.md +6 -0
- package/docs/api/interfaces/ActivityLogEntry.md +124 -0
- package/docs/api/interfaces/ActivityLogMeta.md +100 -0
- package/docs/api/interfaces/JackPotWinPushWinner.md +103 -0
- package/docs/api/interfaces/JackPotWinner.md +9 -1
- package/docs/api/interfaces/JackpotContributionRule.md +49 -0
- package/docs/api/interfaces/JackpotDetails.md +24 -0
- package/docs/api/interfaces/JackpotPot.md +9 -1
- package/docs/api/interfaces/JackpotPublicMeta.md +12 -2
- package/docs/api/interfaces/JackpotWinPush.md +14 -1
- package/docs/api/interfaces/TActivityLog.md +70 -2
- package/docs/api/type-aliases/TActivityLogEntry.md +7 -0
- package/docs/capabilities/_responses/gamePickGetActiveRound.json +37 -37
- package/docs/capabilities/_responses/gamePickGetActiveRounds.json +37 -131
- package/docs/capabilities/_responses/gamePickGetBoard.json +25 -14
- package/docs/capabilities/_responses/gamePickGetGameInfo.json +93 -79
- package/docs/capabilities/_responses/gamePickGetHistory.json +37 -131
- package/docs/capabilities/_responses/gamePickGetUserInfo.json +5 -5
- package/docs/capabilities/_responses/getActivityLog.json +106 -1
- package/docs/capabilities/_responses/getAvatarsCustomized.json +4 -4
- package/docs/capabilities/_responses/getAvatarsList.json +2 -2
- package/docs/capabilities/_responses/getBadges.json +27 -29
- package/docs/capabilities/_responses/getBonuses.json +1 -18
- package/docs/capabilities/_responses/getClanInfo.json +13 -13
- package/docs/capabilities/_responses/getClans.json +6 -6
- package/docs/capabilities/_responses/getCurrentLevel.json +12 -12
- package/docs/capabilities/_responses/getInboxMessageBody.json +2 -2
- package/docs/capabilities/_responses/getInboxMessages.json +6 -6
- package/docs/capabilities/_responses/getInboxUnreadCount.json +1 -1
- package/docs/capabilities/_responses/getJackpotWinners.json +14 -14
- package/docs/capabilities/_responses/getLeaderBoard.json +8 -8
- package/docs/capabilities/_responses/getMiniGames.json +92 -90
- package/docs/capabilities/_responses/getMiniGamesHistory.json +874 -1
- package/docs/capabilities/_responses/getMissions.json +2 -2
- package/docs/capabilities/_responses/getRaffleDrawRun.json +7 -7
- package/docs/capabilities/_responses/getRaffleDrawRunsHistory.json +6 -6
- package/docs/capabilities/_responses/getRaffles.json +14 -14
- package/docs/capabilities/_responses/getStorePurchasedItems.json +5 -5
- package/docs/capabilities/_responses/getTournamentInstanceInfo.json +100 -53
- package/docs/capabilities/_responses/getTournamentsList.json +12 -12
- package/docs/capabilities/_responses/getTranslations.json +1 -1
- package/docs/capabilities/_responses/getUserProfile.json +10 -10
- package/docs/capabilities/_responses/jackpotGet.json +33 -34
- package/docs/capabilities/gamePickGetActiveRound.md +22 -23
- package/docs/capabilities/gamePickGetActiveRounds.md +22 -23
- package/docs/capabilities/gamePickGetBoard.md +14 -14
- package/docs/capabilities/gamePickGetGameInfo.md +24 -44
- package/docs/capabilities/gamePickGetHistory.md +22 -23
- package/docs/capabilities/gamePickGetUserInfo.md +5 -5
- package/docs/capabilities/getActivityLog.md +69 -9
- package/docs/capabilities/getAvatarsCustomized.md +3 -3
- package/docs/capabilities/getBadges.md +13 -14
- package/docs/capabilities/getBonuses.md +2 -17
- package/docs/capabilities/getClanInfo.md +8 -8
- package/docs/capabilities/getClans.md +4 -4
- package/docs/capabilities/getCurrentLevel.md +12 -12
- package/docs/capabilities/getInboxMessageBody.md +2 -2
- package/docs/capabilities/getInboxMessages.md +3 -3
- package/docs/capabilities/getInboxUnreadCount.md +6 -0
- package/docs/capabilities/getJackpotWinners.md +9 -8
- package/docs/capabilities/getLeaderBoard.md +5 -5
- package/docs/capabilities/getMiniGames.md +35 -37
- package/docs/capabilities/getMiniGamesHistory.md +83 -2
- package/docs/capabilities/getMissions.md +1 -1
- package/docs/capabilities/getRaffleDrawRun.md +7 -7
- package/docs/capabilities/getRaffleDrawRunsHistory.md +3 -3
- package/docs/capabilities/getRaffles.md +8 -8
- package/docs/capabilities/getStorePurchasedItems.md +2 -2
- package/docs/capabilities/getTournamentInstanceInfo.md +45 -37
- package/docs/capabilities/getTournamentsList.md +6 -6
- package/docs/capabilities/getTranslations.md +1 -1
- package/docs/capabilities/getUserProfile.md +10 -10
- package/docs/capabilities/jackpotGet.md +56 -28
- package/docs/capabilities/jackpotOptIn.md +2 -0
- package/docs/capabilities/smarticoCallbacks.md +1 -1
- package/docs/native/PROTOCOL.md +141 -18
- package/docs/ui/jackpots/UIGuide_jackpotGet.md +1 -1
- package/docs/ui/user/UIGuide_getActivityLog.md +4 -2
- package/package.json +4 -3
- package/scripts/capture-responses-browser.mjs +8 -1
- package/src/ActivityLog/ActivityLogActivities.ts +1 -1
- package/src/ActivityLog/ActivityLogEntry.ts +33 -21
- package/src/ActivityLog/ActivityLogMeta.ts +31 -0
- package/src/ActivityLog/GetActivityLogRequest.ts +2 -0
- package/src/ActivityLog/GetActivityLogResponse.ts +23 -49
- package/src/Jackpots/JackPotWinPushWinner.ts +35 -0
- package/src/Jackpots/JackPotWinner.ts +3 -1
- package/src/Jackpots/JackpotContributionRule.ts +25 -0
- package/src/Jackpots/JackpotDetails.ts +8 -0
- package/src/Jackpots/JackpotPot.ts +4 -2
- package/src/Jackpots/JackpotPublicMeta.ts +6 -2
- package/src/Jackpots/JackpotWinPush.ts +14 -2
- package/src/Jackpots/index.ts +2 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +1 -0
- package/src/SmarticoAPI.ts +1 -44
- package/src/WSAPI/WSAPIBase.ts +0 -1
- package/src/WSAPI/WSAPIJackpots.ts +2 -0
- package/src/WSAPI/WSAPITypes.ts +20 -18
- package/src/WSAPI/WSAPIUser.ts +10 -53
- package/docs/api/interfaces/GemsDiamondsLog.md +0 -45
- package/docs/api/interfaces/PointsLog.md +0 -45
- package/docs/api/interfaces/TActivityLogEntry.md +0 -100
- package/docs/api/type-aliases/ActivityLogEntry.md +0 -3
- package/docs/capabilities/getActivityLogV2.md +0 -62
package/dist/index.js
CHANGED
|
@@ -516,6 +516,7 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
516
516
|
earliest_expiration_dt: r.earliest_expiration_dt,
|
|
517
517
|
latest_expiration_dt: r.latest_expiration_dt,
|
|
518
518
|
steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
|
|
519
|
+
min_steps_to_finish_game: r.saw_template_ui_definition.min_steps_to_finish_game,
|
|
519
520
|
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
520
521
|
saw_template_ui_definition: r.saw_template_ui_definition
|
|
521
522
|
}, r.saw_game_type_id === exports.SAWGameType.LootboxCalendarDays || r.saw_game_type_id === exports.SAWGameType.LootboxWeekdays ? {
|
|
@@ -2234,7 +2235,6 @@ var onUpdateContextKey;
|
|
|
2234
2235
|
onUpdateContextKey["CurrentLevel"] = "currentLevel";
|
|
2235
2236
|
onUpdateContextKey["InboxUnreadCount"] = "inboxUnreadCount";
|
|
2236
2237
|
onUpdateContextKey["ActivityLog"] = "activityLog";
|
|
2237
|
-
onUpdateContextKey["ActivityLogV2"] = "activityLogV2";
|
|
2238
2238
|
onUpdateContextKey["AvatarsList"] = "avatarsList";
|
|
2239
2239
|
onUpdateContextKey["AvatarsCustomized"] = "avatarsCustomized";
|
|
2240
2240
|
onUpdateContextKey["AvatarPrompts"] = "avatarPrompts";
|
|
@@ -3034,15 +3034,16 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
3037
|
-
* Returns the user's
|
|
3038
|
-
*
|
|
3039
|
-
*
|
|
3040
|
-
*
|
|
3037
|
+
* Returns the user's activity history within the requested time window,
|
|
3038
|
+
* ordered newest-first. Today that is primarily wallet changes (points /
|
|
3039
|
+
* gems / diamonds); when the server starts returning richer activity rows
|
|
3040
|
+
* (missions, badges, levels, …), the same method surfaces them via optional
|
|
3041
|
+
* fields on {@link TActivityLog} — no separate call, same wire CID.
|
|
3041
3042
|
*
|
|
3042
|
-
*
|
|
3043
|
-
*
|
|
3044
|
-
*
|
|
3045
|
-
*
|
|
3043
|
+
* Existing wallet fields (`type`, `amount`, `balance`, `source_type_id`, …)
|
|
3044
|
+
* stay stable. Clients that only read those keep working; clients that want
|
|
3045
|
+
* the fuller feed can also read `activity_type_id`, `meta`,
|
|
3046
|
+
* `source_entity_*`, and `is_wallet_entry` when present.
|
|
3046
3047
|
*
|
|
3047
3048
|
* @remarks
|
|
3048
3049
|
* **Preconditions**
|
|
@@ -3055,7 +3056,7 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3055
3056
|
* `from` by 50 between calls. Both `startTimeSeconds` and `endTimeSeconds`
|
|
3056
3057
|
* are epoch seconds bounding the window the server scans.
|
|
3057
3058
|
*
|
|
3058
|
-
* **Filtering** — optional server-side filters
|
|
3059
|
+
* **Filtering** — optional server-side filters:
|
|
3059
3060
|
* - `types` — {@link ActivityLogActivities} / `type_id` values (e.g. Points=3, Gems=1)
|
|
3060
3061
|
* - `src_types` — {@link PointChangeSourceType} / `source_type_id` values
|
|
3061
3062
|
* Omit both for an unfiltered window.
|
|
@@ -3157,43 +3158,6 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3157
3158
|
} catch (e) {
|
|
3158
3159
|
return Promise.reject(e);
|
|
3159
3160
|
}
|
|
3160
|
-
}
|
|
3161
|
-
/**
|
|
3162
|
-
* Returns the full activity log (v2) — wallet changes **and** non-wallet
|
|
3163
|
-
* activities (missions, badges, levels, tournaments, avatars, …).
|
|
3164
|
-
*
|
|
3165
|
-
* **Backwards compatibility**: existing integrations should keep using
|
|
3166
|
-
* {@link getActivityLog}, which returns wallet-only {@link TActivityLog}
|
|
3167
|
-
* rows with the original field contract unchanged.
|
|
3168
|
-
*
|
|
3169
|
-
* **Pagination** — same `from` / `to` offset model as {@link getActivityLog}
|
|
3170
|
-
* (server caps a single response at 50 entries).
|
|
3171
|
-
*
|
|
3172
|
-
* **Filtering** — optional server-side filters:
|
|
3173
|
-
* - `types` — {@link ActivityLogActivities} values (`type_id`)
|
|
3174
|
-
* - `src_types` — {@link PointChangeSourceType} values (`source_type_id`)
|
|
3175
|
-
* Omit both for all activity types / sources.
|
|
3176
|
-
*
|
|
3177
|
-
* @returns Array of {@link TActivityLogEntry} ordered newest-first.
|
|
3178
|
-
*/
|
|
3179
|
-
;
|
|
3180
|
-
_proto.getActivityLogV2 = function getActivityLogV2(_ref2) {
|
|
3181
|
-
var startTimeSeconds = _ref2.startTimeSeconds,
|
|
3182
|
-
endTimeSeconds = _ref2.endTimeSeconds,
|
|
3183
|
-
from = _ref2.from,
|
|
3184
|
-
to = _ref2.to,
|
|
3185
|
-
types = _ref2.types,
|
|
3186
|
-
src_types = _ref2.src_types;
|
|
3187
|
-
try {
|
|
3188
|
-
var _types$join2, _src_types$join2;
|
|
3189
|
-
var _this9 = this;
|
|
3190
|
-
var cacheKey = onUpdateContextKey.ActivityLogV2 + ":" + startTimeSeconds + ":" + endTimeSeconds + ":" + from + ":" + to + ":" + ((_types$join2 = types == null ? void 0 : types.join(',')) != null ? _types$join2 : '') + ":" + ((_src_types$join2 = src_types == null ? void 0 : src_types.join(',')) != null ? _src_types$join2 : '');
|
|
3191
|
-
return Promise.resolve(OCache.use(cacheKey, exports.ECacheContext.WSAPI, function () {
|
|
3192
|
-
return _this9.api.getActivityLogV2T(_this9.userExtId, startTimeSeconds, endTimeSeconds, from, to, types, src_types);
|
|
3193
|
-
}, CACHE_DATA_SEC));
|
|
3194
|
-
} catch (e) {
|
|
3195
|
-
return Promise.reject(e);
|
|
3196
|
-
}
|
|
3197
3161
|
};
|
|
3198
3162
|
return WSAPIUser;
|
|
3199
3163
|
}(WSAPIBase);
|
|
@@ -6234,6 +6198,8 @@ var WSAPIJackpots = /*#__PURE__*/function (_WSAPIClans) {
|
|
|
6234
6198
|
* - The jackpot must currently be active and the user must be in its
|
|
6235
6199
|
* eligibility segment. Ineligible jackpots are filtered out of
|
|
6236
6200
|
* {@link jackpotGet} entirely, so a card the user sees is opt-in-able.
|
|
6201
|
+
* - Skip the opt-in CTA when the template reports `is_auto_opt_in: true` —
|
|
6202
|
+
* eligible users are enrolled automatically and there is nothing to join.
|
|
6237
6203
|
*
|
|
6238
6204
|
* **Error handling**
|
|
6239
6205
|
* The server returns a non-zero `errCode` with a human-readable `errMsg`
|
|
@@ -10356,7 +10322,7 @@ exports.BonusStatus = void 0;
|
|
|
10356
10322
|
BonusStatus[BonusStatus["EXPIRED"] = 6] = "EXPIRED";
|
|
10357
10323
|
})(exports.BonusStatus || (exports.BonusStatus = {}));
|
|
10358
10324
|
|
|
10359
|
-
/** Activity-log entry type as returned on the
|
|
10325
|
+
/** Activity-log entry type as returned on the wire (`type_id`). */
|
|
10360
10326
|
exports.ActivityLogActivities = void 0;
|
|
10361
10327
|
(function (ActivityLogActivities) {
|
|
10362
10328
|
ActivityLogActivities[ActivityLogActivities["Gems"] = 1] = "Gems";
|
|
@@ -10389,59 +10355,38 @@ exports.UserBalanceType = void 0;
|
|
|
10389
10355
|
})(exports.UserBalanceType || (exports.UserBalanceType = {}));
|
|
10390
10356
|
|
|
10391
10357
|
var ActivityLogTransform = function ActivityLogTransform(items) {
|
|
10392
|
-
if (!items) {
|
|
10393
|
-
return [];
|
|
10394
|
-
}
|
|
10395
|
-
return items.map(function (item) {
|
|
10396
|
-
var _item$create_date$sec, _item$create_date, _item$type;
|
|
10397
|
-
var itemTransformed = {
|
|
10398
|
-
create_date: (_item$create_date$sec = (_item$create_date = item.create_date) == null ? void 0 : _item$create_date.seconds) != null ? _item$create_date$sec : item.create_date,
|
|
10399
|
-
user_ext_id: item.user_ext_id,
|
|
10400
|
-
crm_brand_id: item.crm_brand_id,
|
|
10401
|
-
source_type_id: item.source_type_id
|
|
10402
|
-
};
|
|
10403
|
-
item.type = (_item$type = item.type) != null ? _item$type : exports.UserBalanceType.Points;
|
|
10404
|
-
if (item.type === exports.UserBalanceType.Diamonds || item.type === exports.UserBalanceType.Gems) {
|
|
10405
|
-
itemTransformed.type = item.type;
|
|
10406
|
-
itemTransformed.amount = item.amount;
|
|
10407
|
-
itemTransformed.balance = item.balance;
|
|
10408
|
-
}
|
|
10409
|
-
if (item.type === exports.UserBalanceType.Points) {
|
|
10410
|
-
itemTransformed.type = exports.UserBalanceType.Points;
|
|
10411
|
-
itemTransformed.amount = item.points_collected;
|
|
10412
|
-
itemTransformed.balance = item.user_points_balance;
|
|
10413
|
-
itemTransformed.total_ever = item.user_points_ever;
|
|
10414
|
-
}
|
|
10415
|
-
return itemTransformed;
|
|
10416
|
-
});
|
|
10417
|
-
};
|
|
10418
|
-
var ActivityLogV2Transform = function ActivityLogV2Transform(items) {
|
|
10419
10358
|
if (!items) {
|
|
10420
10359
|
return [];
|
|
10421
10360
|
}
|
|
10422
10361
|
return items.map(function (r) {
|
|
10423
|
-
var _r$create_date$second, _r$create_date, _r$
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
var
|
|
10362
|
+
var _r$type_id, _r$ctx_meta, _r$create_date$second, _r$create_date, _r$amount, _r$user_points_balanc, _r$ctx_, _r$source_entity_name, _r$source_ref_id;
|
|
10363
|
+
// The wire sends the activity kind as `type` (an ActivityLogActivities value).
|
|
10364
|
+
// `type_id` is accepted as an alias so an older/newer server spelling still maps.
|
|
10365
|
+
var activityTypeId = (_r$type_id = r.type_id) != null ? _r$type_id : r.type;
|
|
10366
|
+
var isGems = activityTypeId === exports.ActivityLogActivities.Gems;
|
|
10367
|
+
var isDiamonds = activityTypeId === exports.ActivityLogActivities.Diamonds;
|
|
10368
|
+
var meta = (_r$ctx_meta = r.ctx_meta) != null ? _r$ctx_meta : r.context_value_meta;
|
|
10369
|
+
return {
|
|
10427
10370
|
create_date: (_r$create_date$second = (_r$create_date = r.create_date) == null ? void 0 : _r$create_date.seconds) != null ? _r$create_date$second : r.create_date,
|
|
10428
10371
|
user_ext_id: r.user_ext_id,
|
|
10429
|
-
|
|
10372
|
+
// Sent as a string on the wire.
|
|
10373
|
+
crm_brand_id: Number(r.crm_brand_id),
|
|
10430
10374
|
type: isGems ? exports.UserBalanceType.Gems : isDiamonds ? exports.UserBalanceType.Diamonds : exports.UserBalanceType.Points,
|
|
10431
|
-
amount
|
|
10375
|
+
// `amount` carries the real delta; `points_collected` is a `-1` placeholder on points rows.
|
|
10376
|
+
amount: (_r$amount = r.amount) != null ? _r$amount : r.points_collected,
|
|
10432
10377
|
balance: (_r$user_points_balanc = r.user_points_balance) != null ? _r$user_points_balanc : r.balance,
|
|
10433
10378
|
total_ever: r.user_points_ever,
|
|
10434
10379
|
source_type_id: r.source_type_id,
|
|
10435
|
-
activity_type_id:
|
|
10436
|
-
context_value_1: r.context_value_1,
|
|
10437
|
-
meta:
|
|
10438
|
-
|
|
10380
|
+
activity_type_id: activityTypeId,
|
|
10381
|
+
context_value_1: (_r$ctx_ = r.ctx_1) != null ? _r$ctx_ : r.context_value_1,
|
|
10382
|
+
meta: meta,
|
|
10383
|
+
// Entity name travels inside the context meta, not as a top-level field.
|
|
10384
|
+
source_entity_name: (_r$source_entity_name = r.source_entity_name) != null ? _r$source_entity_name : meta == null ? void 0 : meta.name,
|
|
10439
10385
|
source_entity_id: r.source_entity_id,
|
|
10440
|
-
source_reference_id: r.source_reference_id,
|
|
10386
|
+
source_reference_id: (_r$source_ref_id = r.source_ref_id) != null ? _r$source_ref_id : r.source_reference_id,
|
|
10441
10387
|
source_root_id: r.source_root_id,
|
|
10442
|
-
is_wallet_entry:
|
|
10388
|
+
is_wallet_entry: activityTypeId == null || activityTypeId === exports.ActivityLogActivities.Gems || activityTypeId === exports.ActivityLogActivities.Diamonds || activityTypeId === exports.ActivityLogActivities.Points
|
|
10443
10389
|
};
|
|
10444
|
-
return x;
|
|
10445
10390
|
});
|
|
10446
10391
|
};
|
|
10447
10392
|
|
|
@@ -12365,24 +12310,6 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
12365
12310
|
return Promise.reject(e);
|
|
12366
12311
|
}
|
|
12367
12312
|
};
|
|
12368
|
-
_proto.getActivityLogV2 = function getActivityLogV2(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types) {
|
|
12369
|
-
try {
|
|
12370
|
-
var _this103 = this;
|
|
12371
|
-
var message = _this103.buildMessage(user_ext_id, exports.ClassId.GET_POINT_HISTORY_REQUEST, _extends({
|
|
12372
|
-
startTimeSeconds: Math.floor(startTimeSeconds),
|
|
12373
|
-
endTimeSeconds: Math.floor(endTimeSeconds),
|
|
12374
|
-
limit: limit,
|
|
12375
|
-
offset: offset
|
|
12376
|
-
}, types ? {
|
|
12377
|
-
types: types
|
|
12378
|
-
} : {}, src_types ? {
|
|
12379
|
-
src_types: src_types
|
|
12380
|
-
} : {}));
|
|
12381
|
-
return Promise.resolve(_this103.send(message, exports.ClassId.GET_POINT_HISTORY_RESPONSE));
|
|
12382
|
-
} catch (e) {
|
|
12383
|
-
return Promise.reject(e);
|
|
12384
|
-
}
|
|
12385
|
-
};
|
|
12386
12313
|
_proto.getActivityLogT = function getActivityLogT(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types, src_types) {
|
|
12387
12314
|
if (from === void 0) {
|
|
12388
12315
|
from = 0;
|
|
@@ -12391,29 +12318,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
12391
12318
|
to = 50;
|
|
12392
12319
|
}
|
|
12393
12320
|
try {
|
|
12394
|
-
var
|
|
12395
|
-
var limit = to - from > 50 ? 50 : to - from;
|
|
12396
|
-
var offset = from;
|
|
12397
|
-
return Promise.resolve(_this104.getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types)).then(function (_this104$getActivityL) {
|
|
12398
|
-
return ActivityLogTransform(_this104$getActivityL.logHistory);
|
|
12399
|
-
});
|
|
12400
|
-
} catch (e) {
|
|
12401
|
-
return Promise.reject(e);
|
|
12402
|
-
}
|
|
12403
|
-
};
|
|
12404
|
-
_proto.getActivityLogV2T = function getActivityLogV2T(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types, src_types) {
|
|
12405
|
-
if (from === void 0) {
|
|
12406
|
-
from = 0;
|
|
12407
|
-
}
|
|
12408
|
-
if (to === void 0) {
|
|
12409
|
-
to = 50;
|
|
12410
|
-
}
|
|
12411
|
-
try {
|
|
12412
|
-
var _this105 = this;
|
|
12321
|
+
var _this103 = this;
|
|
12413
12322
|
var limit = to - from > 50 ? 50 : to - from;
|
|
12414
12323
|
var offset = from;
|
|
12415
|
-
return Promise.resolve(
|
|
12416
|
-
return
|
|
12324
|
+
return Promise.resolve(_this103.getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types)).then(function (_this103$getActivityL) {
|
|
12325
|
+
return ActivityLogTransform(_this103$getActivityL.logHistory);
|
|
12417
12326
|
});
|
|
12418
12327
|
} catch (e) {
|
|
12419
12328
|
return Promise.reject(e);
|
|
@@ -13065,7 +12974,6 @@ exports.JoinClanErrorCode = void 0;
|
|
|
13065
12974
|
|
|
13066
12975
|
exports.AchCategoryTransform = AchCategoryTransform;
|
|
13067
12976
|
exports.ActivityLogTransform = ActivityLogTransform;
|
|
13068
|
-
exports.ActivityLogV2Transform = ActivityLogV2Transform;
|
|
13069
12977
|
exports.AllRoundsGameBoardID = AllRoundsGameBoardID;
|
|
13070
12978
|
exports.BonusItemsTransform = BonusItemsTransform;
|
|
13071
12979
|
exports.CookieStore = CookieStore;
|