@smartico/public-api 0.0.420 → 0.0.421
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/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 +17 -17
- package/dist/WSAPI/WSAPIUser.d.ts +11 -36
- package/dist/index.js +35 -128
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +33 -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/SmarticoAPI.ts +1 -44
- package/src/WSAPI/WSAPIBase.ts +0 -1
- package/src/WSAPI/WSAPIJackpots.ts +2 -0
- package/src/WSAPI/WSAPITypes.ts +18 -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
|
@@ -2234,7 +2234,6 @@ var onUpdateContextKey;
|
|
|
2234
2234
|
onUpdateContextKey["CurrentLevel"] = "currentLevel";
|
|
2235
2235
|
onUpdateContextKey["InboxUnreadCount"] = "inboxUnreadCount";
|
|
2236
2236
|
onUpdateContextKey["ActivityLog"] = "activityLog";
|
|
2237
|
-
onUpdateContextKey["ActivityLogV2"] = "activityLogV2";
|
|
2238
2237
|
onUpdateContextKey["AvatarsList"] = "avatarsList";
|
|
2239
2238
|
onUpdateContextKey["AvatarsCustomized"] = "avatarsCustomized";
|
|
2240
2239
|
onUpdateContextKey["AvatarPrompts"] = "avatarPrompts";
|
|
@@ -3034,15 +3033,16 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3034
3033
|
}
|
|
3035
3034
|
}
|
|
3036
3035
|
/**
|
|
3037
|
-
* Returns the user's
|
|
3038
|
-
*
|
|
3039
|
-
*
|
|
3040
|
-
*
|
|
3036
|
+
* Returns the user's activity history within the requested time window,
|
|
3037
|
+
* ordered newest-first. Today that is primarily wallet changes (points /
|
|
3038
|
+
* gems / diamonds); when the server starts returning richer activity rows
|
|
3039
|
+
* (missions, badges, levels, …), the same method surfaces them via optional
|
|
3040
|
+
* fields on {@link TActivityLog} — no separate call, same wire CID.
|
|
3041
3041
|
*
|
|
3042
|
-
*
|
|
3043
|
-
*
|
|
3044
|
-
*
|
|
3045
|
-
*
|
|
3042
|
+
* Existing wallet fields (`type`, `amount`, `balance`, `source_type_id`, …)
|
|
3043
|
+
* stay stable. Clients that only read those keep working; clients that want
|
|
3044
|
+
* the fuller feed can also read `activity_type_id`, `meta`,
|
|
3045
|
+
* `source_entity_*`, and `is_wallet_entry` when present.
|
|
3046
3046
|
*
|
|
3047
3047
|
* @remarks
|
|
3048
3048
|
* **Preconditions**
|
|
@@ -3055,7 +3055,7 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3055
3055
|
* `from` by 50 between calls. Both `startTimeSeconds` and `endTimeSeconds`
|
|
3056
3056
|
* are epoch seconds bounding the window the server scans.
|
|
3057
3057
|
*
|
|
3058
|
-
* **Filtering** — optional server-side filters
|
|
3058
|
+
* **Filtering** — optional server-side filters:
|
|
3059
3059
|
* - `types` — {@link ActivityLogActivities} / `type_id` values (e.g. Points=3, Gems=1)
|
|
3060
3060
|
* - `src_types` — {@link PointChangeSourceType} / `source_type_id` values
|
|
3061
3061
|
* Omit both for an unfiltered window.
|
|
@@ -3157,43 +3157,6 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
|
|
|
3157
3157
|
} catch (e) {
|
|
3158
3158
|
return Promise.reject(e);
|
|
3159
3159
|
}
|
|
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
3160
|
};
|
|
3198
3161
|
return WSAPIUser;
|
|
3199
3162
|
}(WSAPIBase);
|
|
@@ -6234,6 +6197,8 @@ var WSAPIJackpots = /*#__PURE__*/function (_WSAPIClans) {
|
|
|
6234
6197
|
* - The jackpot must currently be active and the user must be in its
|
|
6235
6198
|
* eligibility segment. Ineligible jackpots are filtered out of
|
|
6236
6199
|
* {@link jackpotGet} entirely, so a card the user sees is opt-in-able.
|
|
6200
|
+
* - Skip the opt-in CTA when the template reports `is_auto_opt_in: true` —
|
|
6201
|
+
* eligible users are enrolled automatically and there is nothing to join.
|
|
6237
6202
|
*
|
|
6238
6203
|
* **Error handling**
|
|
6239
6204
|
* The server returns a non-zero `errCode` with a human-readable `errMsg`
|
|
@@ -10356,7 +10321,7 @@ exports.BonusStatus = void 0;
|
|
|
10356
10321
|
BonusStatus[BonusStatus["EXPIRED"] = 6] = "EXPIRED";
|
|
10357
10322
|
})(exports.BonusStatus || (exports.BonusStatus = {}));
|
|
10358
10323
|
|
|
10359
|
-
/** Activity-log entry type as returned on the
|
|
10324
|
+
/** Activity-log entry type as returned on the wire (`type_id`). */
|
|
10360
10325
|
exports.ActivityLogActivities = void 0;
|
|
10361
10326
|
(function (ActivityLogActivities) {
|
|
10362
10327
|
ActivityLogActivities[ActivityLogActivities["Gems"] = 1] = "Gems";
|
|
@@ -10389,59 +10354,38 @@ exports.UserBalanceType = void 0;
|
|
|
10389
10354
|
})(exports.UserBalanceType || (exports.UserBalanceType = {}));
|
|
10390
10355
|
|
|
10391
10356
|
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
10357
|
if (!items) {
|
|
10420
10358
|
return [];
|
|
10421
10359
|
}
|
|
10422
10360
|
return items.map(function (r) {
|
|
10423
|
-
var _r$create_date$second, _r$create_date, _r$
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
var
|
|
10361
|
+
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;
|
|
10362
|
+
// The wire sends the activity kind as `type` (an ActivityLogActivities value).
|
|
10363
|
+
// `type_id` is accepted as an alias so an older/newer server spelling still maps.
|
|
10364
|
+
var activityTypeId = (_r$type_id = r.type_id) != null ? _r$type_id : r.type;
|
|
10365
|
+
var isGems = activityTypeId === exports.ActivityLogActivities.Gems;
|
|
10366
|
+
var isDiamonds = activityTypeId === exports.ActivityLogActivities.Diamonds;
|
|
10367
|
+
var meta = (_r$ctx_meta = r.ctx_meta) != null ? _r$ctx_meta : r.context_value_meta;
|
|
10368
|
+
return {
|
|
10427
10369
|
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
10370
|
user_ext_id: r.user_ext_id,
|
|
10429
|
-
|
|
10371
|
+
// Sent as a string on the wire.
|
|
10372
|
+
crm_brand_id: Number(r.crm_brand_id),
|
|
10430
10373
|
type: isGems ? exports.UserBalanceType.Gems : isDiamonds ? exports.UserBalanceType.Diamonds : exports.UserBalanceType.Points,
|
|
10431
|
-
amount
|
|
10374
|
+
// `amount` carries the real delta; `points_collected` is a `-1` placeholder on points rows.
|
|
10375
|
+
amount: (_r$amount = r.amount) != null ? _r$amount : r.points_collected,
|
|
10432
10376
|
balance: (_r$user_points_balanc = r.user_points_balance) != null ? _r$user_points_balanc : r.balance,
|
|
10433
10377
|
total_ever: r.user_points_ever,
|
|
10434
10378
|
source_type_id: r.source_type_id,
|
|
10435
|
-
activity_type_id:
|
|
10436
|
-
context_value_1: r.context_value_1,
|
|
10437
|
-
meta:
|
|
10438
|
-
|
|
10379
|
+
activity_type_id: activityTypeId,
|
|
10380
|
+
context_value_1: (_r$ctx_ = r.ctx_1) != null ? _r$ctx_ : r.context_value_1,
|
|
10381
|
+
meta: meta,
|
|
10382
|
+
// Entity name travels inside the context meta, not as a top-level field.
|
|
10383
|
+
source_entity_name: (_r$source_entity_name = r.source_entity_name) != null ? _r$source_entity_name : meta == null ? void 0 : meta.name,
|
|
10439
10384
|
source_entity_id: r.source_entity_id,
|
|
10440
|
-
source_reference_id: r.source_reference_id,
|
|
10385
|
+
source_reference_id: (_r$source_ref_id = r.source_ref_id) != null ? _r$source_ref_id : r.source_reference_id,
|
|
10441
10386
|
source_root_id: r.source_root_id,
|
|
10442
|
-
is_wallet_entry:
|
|
10387
|
+
is_wallet_entry: activityTypeId == null || activityTypeId === exports.ActivityLogActivities.Gems || activityTypeId === exports.ActivityLogActivities.Diamonds || activityTypeId === exports.ActivityLogActivities.Points
|
|
10443
10388
|
};
|
|
10444
|
-
return x;
|
|
10445
10389
|
});
|
|
10446
10390
|
};
|
|
10447
10391
|
|
|
@@ -12365,24 +12309,6 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
12365
12309
|
return Promise.reject(e);
|
|
12366
12310
|
}
|
|
12367
12311
|
};
|
|
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
12312
|
_proto.getActivityLogT = function getActivityLogT(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types, src_types) {
|
|
12387
12313
|
if (from === void 0) {
|
|
12388
12314
|
from = 0;
|
|
@@ -12391,29 +12317,11 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
12391
12317
|
to = 50;
|
|
12392
12318
|
}
|
|
12393
12319
|
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;
|
|
12320
|
+
var _this103 = this;
|
|
12413
12321
|
var limit = to - from > 50 ? 50 : to - from;
|
|
12414
12322
|
var offset = from;
|
|
12415
|
-
return Promise.resolve(
|
|
12416
|
-
return
|
|
12323
|
+
return Promise.resolve(_this103.getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types)).then(function (_this103$getActivityL) {
|
|
12324
|
+
return ActivityLogTransform(_this103$getActivityL.logHistory);
|
|
12417
12325
|
});
|
|
12418
12326
|
} catch (e) {
|
|
12419
12327
|
return Promise.reject(e);
|
|
@@ -13065,7 +12973,6 @@ exports.JoinClanErrorCode = void 0;
|
|
|
13065
12973
|
|
|
13066
12974
|
exports.AchCategoryTransform = AchCategoryTransform;
|
|
13067
12975
|
exports.ActivityLogTransform = ActivityLogTransform;
|
|
13068
|
-
exports.ActivityLogV2Transform = ActivityLogV2Transform;
|
|
13069
12976
|
exports.AllRoundsGameBoardID = AllRoundsGameBoardID;
|
|
13070
12977
|
exports.BonusItemsTransform = BonusItemsTransform;
|
|
13071
12978
|
exports.CookieStore = CookieStore;
|