@smartico/public-api 0.0.418 → 0.0.420

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.
Files changed (35) hide show
  1. package/dist/ActivityLog/ActivityLogActivities.d.ts +2 -1
  2. package/dist/ActivityLog/GetActivityLogRequest.d.ts +1 -1
  3. package/dist/ActivityLog/PointChangeSourceType.d.ts +3 -1
  4. package/dist/Base/ClassId.d.ts +1 -0
  5. package/dist/SmarticoAPI.d.ts +4 -4
  6. package/dist/WSAPI/WSAPIMiniGames.d.ts +4 -4
  7. package/dist/WSAPI/WSAPIUser.d.ts +20 -6
  8. package/dist/index.js +51 -25
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.modern.mjs +51 -25
  11. package/dist/index.modern.mjs.map +1 -1
  12. package/docs/api/README.md +5 -0
  13. package/docs/api/classes/WSAPIJackpots.md +3 -1
  14. package/docs/api/classes/WSAPIMiniGames.md +7 -2
  15. package/docs/api/classes/WSAPIUser.md +49 -0
  16. package/docs/api/enumerations/ActivityLogActivities.md +123 -0
  17. package/docs/api/enumerations/PointChangeSourceType.md +6 -0
  18. package/docs/api/interfaces/ActivityLogMeta.md +37 -0
  19. package/docs/api/interfaces/SAWPrizeDropAknowledgeCancelRequest.md +47 -0
  20. package/docs/api/interfaces/SAWPrizeDropAknowledgeCancelResponse.md +41 -0
  21. package/docs/api/interfaces/SAWTemplateUI.md +1 -1
  22. package/docs/api/interfaces/TActivityLogEntry.md +100 -0
  23. package/docs/capabilities/getActivityLogV2.md +62 -0
  24. package/docs/capabilities/getJackpotWinners.md +3 -1
  25. package/docs/capabilities/miniGameWinAcknowledgeRequest.md +1 -1
  26. package/docs/native/PROTOCOL.md +33 -1
  27. package/package.json +1 -1
  28. package/src/ActivityLog/ActivityLogActivities.ts +1 -0
  29. package/src/ActivityLog/GetActivityLogRequest.ts +1 -3
  30. package/src/ActivityLog/PointChangeSourceType.ts +2 -0
  31. package/src/Base/ClassId.ts +2 -0
  32. package/src/SmarticoAPI.ts +11 -2
  33. package/src/WSAPI/WSAPIMiniGames.ts +4 -4
  34. package/src/WSAPI/WSAPIUser.ts +37 -11
  35. package/tsconfig.json +4 -1
@@ -18,5 +18,6 @@ export declare enum ActivityLogActivities {
18
18
  NoPrize = 16,
19
19
  Leaderboard = 17,
20
20
  Tournament = 18,
21
- ClanTournament = 19
21
+ ClanTournament = 19,
22
+ Clan = 20
22
23
  }
@@ -5,6 +5,6 @@ export interface GetActivityLogRequest extends ProtocolMessage {
5
5
  endTimeSeconds: number;
6
6
  limit: number;
7
7
  offset: number;
8
- /** Optional v2 filter — {@link ActivityLogActivities} values to include. */
9
8
  types?: number[];
9
+ src_types?: number[];
10
10
  }
@@ -15,6 +15,8 @@ export declare enum PointChangeSourceType {
15
15
  WinMiniGame = 17,
16
16
  API = 18,
17
17
  DynamicFormula = 19,
18
+ Jackpot = 20,
18
19
  Raffle = 21,
19
- Avatars = 22
20
+ Avatars = 22,
21
+ Clan = 23
20
22
  }
@@ -139,6 +139,7 @@ export declare enum ClassId {
139
139
  BNR_GET_BANNER_CONTENT_RESPONSE = 953,
140
140
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
141
141
  REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
142
+ FORM_SHOW_PUSH = 1050,
142
143
  CLIENT_DEBUG_REQUEST = 77777,
143
144
  UNSUPPORTED_COMMAND = 99999
144
145
  }
@@ -231,9 +231,9 @@ declare class SmarticoAPI {
231
231
  offset: number;
232
232
  limit: number;
233
233
  }): Promise<GetRaffleWonPrizesResponse>;
234
- getActivityLog(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, limit: number, offset: number): Promise<GetActivityLogResponse>;
235
- getActivityLogV2(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, limit: number, offset: number, types?: number[]): Promise<GetActivityLogResponse>;
236
- getActivityLogT(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, from?: number, to?: number): Promise<TActivityLog[]>;
237
- getActivityLogV2T(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, from?: number, to?: number, types?: number[]): Promise<TActivityLogEntry[]>;
234
+ getActivityLog(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, limit: number, offset: number, types?: number[], src_types?: number[]): Promise<GetActivityLogResponse>;
235
+ getActivityLogV2(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, limit: number, offset: number, types?: number[], src_types?: number[]): Promise<GetActivityLogResponse>;
236
+ getActivityLogT(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, from?: number, to?: number, types?: number[], src_types?: number[]): Promise<TActivityLog[]>;
237
+ getActivityLogV2T(user_ext_id: string, startTimeSeconds: number, endTimeSeconds: number, from?: number, to?: number, types?: number[], src_types?: number[]): Promise<TActivityLogEntry[]>;
238
238
  }
239
239
  export { SmarticoAPI, MessageSender };
@@ -496,10 +496,10 @@ export declare class WSAPIMiniGames extends WSAPIRaffles {
496
496
  * (played with `acknowledge: false`), or the
497
497
  * `client_request_id` of a
498
498
  * {@link getMiniGamesHistory} row.
499
- * @param options.lose Optional. When `true`, finalises the spin as
500
- * lost — the prize is not credited and returns
501
- * to the prize pool (see "Finalising as lost").
502
- * Omit (or pass `false`) to deliver the win.
499
+ * @param lose Optional. When `true`, finalises the spin as
500
+ * lost — the prize is not credited and returns
501
+ * to the prize pool (see "Finalising as lost").
502
+ * Omit (or pass `false`) to deliver the win.
503
503
  *
504
504
  * @example
505
505
  * ```ts
@@ -486,13 +486,18 @@ export declare class WSAPIUser extends WSAPIBase {
486
486
  * `from` by 50 between calls. Both `startTimeSeconds` and `endTimeSeconds`
487
487
  * are epoch seconds bounding the window the server scans.
488
488
  *
489
+ * **Filtering** — optional server-side filters (SMR-52608):
490
+ * - `types` — {@link ActivityLogActivities} / `type_id` values (e.g. Points=3, Gems=1)
491
+ * - `src_types` — {@link PointChangeSourceType} / `source_type_id` values
492
+ * Omit both for an unfiltered window.
493
+ *
489
494
  * **Subscription model (`onUpdate`)**
490
495
  * The callback fires when the user's `ach_points_balance`,
491
496
  * `ach_gems_balance`, or `ach_diamonds_balance` changes (i.e. whenever a
492
497
  * wallet event lands). The pushed payload is a FIXED re-fetch of the
493
498
  * **last 10 minutes / first 50 entries** — it does NOT honor the original
494
- * call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to`. Consumers
495
- * maintaining a long historical view must re-call `getActivityLog` with
499
+ * call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to` / filters.
500
+ * Consumers maintaining a long historical view must re-call `getActivityLog` with
496
501
  * their own params after receiving an `onUpdate` notification.
497
502
  *
498
503
  * **Refresh**
@@ -516,6 +521,8 @@ export declare class WSAPIUser extends WSAPIBase {
516
521
  * endTimeSeconds: now,
517
522
  * from: 0,
518
523
  * to: 50,
524
+ * types: [1], // Gems only (ActivityLogActivities.Gems)
525
+ * src_types: [11], // Tournament wins only (PointChangeSourceType.Tournament)
519
526
  * onUpdate: (refreshed) => {
520
527
  * console.log('[smartico] wallet changed — refreshed payload is last 10 min / 50 entries:', refreshed.length, 'rows');
521
528
  * // If the consumer is showing a full 30-day view, re-call getActivityLog with the original params here.
@@ -528,7 +535,7 @@ export declare class WSAPIUser extends WSAPIBase {
528
535
  * }
529
536
  * ```
530
537
  */
531
- getActivityLog({ startTimeSeconds, endTimeSeconds, from, to, onUpdate, }: {
538
+ getActivityLog({ startTimeSeconds, endTimeSeconds, from, to, types, src_types, onUpdate, }: {
532
539
  /** Window start in epoch seconds. */
533
540
  startTimeSeconds: number;
534
541
  /** Window end in epoch seconds. */
@@ -537,6 +544,10 @@ export declare class WSAPIUser extends WSAPIBase {
537
544
  from: number;
538
545
  /** Pagination ceiling (exclusive); server caps `to - from` at 50. */
539
546
  to: number;
547
+ /** Optional — filter by {@link ActivityLogActivities} / `type_id`. */
548
+ types?: number[];
549
+ /** Optional — filter by {@link PointChangeSourceType} / `source_type_id`. */
550
+ src_types?: number[];
540
551
  /** Optional push callback; payload is a fixed 10-min / 50-entry refresh on every wallet change (see Subscription model). */
541
552
  onUpdate?: (data: TActivityLog[]) => void;
542
553
  }): Promise<TActivityLog[]>;
@@ -555,16 +566,19 @@ export declare class WSAPIUser extends WSAPIBase {
555
566
  * **Pagination** — same `from` / `to` offset model as {@link getActivityLog}
556
567
  * (server caps a single response at 50 entries).
557
568
  *
558
- * **Filtering** — pass `types` with {@link ActivityLogActivities} values to
559
- * request a server-side subset (e.g. missions only). Omit for all activity types.
569
+ * **Filtering** — optional server-side filters:
570
+ * - `types` — {@link ActivityLogActivities} values (`type_id`)
571
+ * - `src_types` — {@link PointChangeSourceType} values (`source_type_id`)
572
+ * Omit both for all activity types / sources.
560
573
  *
561
574
  * @returns Array of {@link TActivityLogEntry} ordered newest-first.
562
575
  */
563
- getActivityLogV2({ startTimeSeconds, endTimeSeconds, from, to, types, }: {
576
+ getActivityLogV2({ startTimeSeconds, endTimeSeconds, from, to, types, src_types, }: {
564
577
  startTimeSeconds: number;
565
578
  endTimeSeconds: number;
566
579
  from: number;
567
580
  to: number;
568
581
  types?: number[];
582
+ src_types?: number[];
569
583
  }): Promise<TActivityLogEntry[]>;
570
584
  }
package/dist/index.js CHANGED
@@ -172,6 +172,7 @@ exports.ClassId = void 0;
172
172
  */
173
173
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ"] = 1003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ";
174
174
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP"] = 2003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP";
175
+ ClassId[ClassId["FORM_SHOW_PUSH"] = 1050] = "FORM_SHOW_PUSH";
175
176
  ClassId[ClassId["CLIENT_DEBUG_REQUEST"] = 77777] = "CLIENT_DEBUG_REQUEST";
176
177
  /*
177
178
  !Important, if adding new messages that are 'acting' on behalf of the client,
@@ -3054,13 +3055,18 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3054
3055
  * `from` by 50 between calls. Both `startTimeSeconds` and `endTimeSeconds`
3055
3056
  * are epoch seconds bounding the window the server scans.
3056
3057
  *
3058
+ * **Filtering** — optional server-side filters (SMR-52608):
3059
+ * - `types` — {@link ActivityLogActivities} / `type_id` values (e.g. Points=3, Gems=1)
3060
+ * - `src_types` — {@link PointChangeSourceType} / `source_type_id` values
3061
+ * Omit both for an unfiltered window.
3062
+ *
3057
3063
  * **Subscription model (`onUpdate`)**
3058
3064
  * The callback fires when the user's `ach_points_balance`,
3059
3065
  * `ach_gems_balance`, or `ach_diamonds_balance` changes (i.e. whenever a
3060
3066
  * wallet event lands). The pushed payload is a FIXED re-fetch of the
3061
3067
  * **last 10 minutes / first 50 entries** — it does NOT honor the original
3062
- * call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to`. Consumers
3063
- * maintaining a long historical view must re-call `getActivityLog` with
3068
+ * call's `startTimeSeconds` / `endTimeSeconds` / `from` / `to` / filters.
3069
+ * Consumers maintaining a long historical view must re-call `getActivityLog` with
3064
3070
  * their own params after receiving an `onUpdate` notification.
3065
3071
  *
3066
3072
  * **Refresh**
@@ -3084,6 +3090,8 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3084
3090
  * endTimeSeconds: now,
3085
3091
  * from: 0,
3086
3092
  * to: 50,
3093
+ * types: [1], // Gems only (ActivityLogActivities.Gems)
3094
+ * src_types: [11], // Tournament wins only (PointChangeSourceType.Tournament)
3087
3095
  * onUpdate: (refreshed) => {
3088
3096
  * console.log('[smartico] wallet changed — refreshed payload is last 10 min / 50 entries:', refreshed.length, 'rows');
3089
3097
  * // If the consumer is showing a full 30-day view, re-call getActivityLog with the original params here.
@@ -3102,10 +3110,13 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3102
3110
  endTimeSeconds = _ref.endTimeSeconds,
3103
3111
  from = _ref.from,
3104
3112
  to = _ref.to,
3113
+ types = _ref.types,
3114
+ src_types = _ref.src_types,
3105
3115
  onUpdate = _ref.onUpdate;
3106
3116
  try {
3117
+ var _types$join, _src_types$join;
3107
3118
  var _this7 = this;
3108
- var cacheKey = onUpdateContextKey.ActivityLog + ":" + startTimeSeconds + ":" + endTimeSeconds + ":" + from + ":" + to;
3119
+ var cacheKey = onUpdateContextKey.ActivityLog + ":" + startTimeSeconds + ":" + endTimeSeconds + ":" + from + ":" + to + ":" + ((_types$join = types == null ? void 0 : types.join(',')) != null ? _types$join : '') + ":" + ((_src_types$join = src_types == null ? void 0 : src_types.join(',')) != null ? _src_types$join : '');
3109
3120
  if (typeof onUpdate === 'function') {
3110
3121
  _this7.onUpdateCallback.set(onUpdateContextKey.ActivityLog, onUpdate);
3111
3122
  // Remember the requested window so a push refresh re-fetches THIS window
@@ -3114,11 +3125,13 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3114
3125
  startTimeSeconds: startTimeSeconds,
3115
3126
  endTimeSeconds: endTimeSeconds,
3116
3127
  from: from,
3117
- to: to
3128
+ to: to,
3129
+ types: types,
3130
+ src_types: src_types
3118
3131
  };
3119
3132
  }
3120
3133
  return Promise.resolve(OCache.use(cacheKey, exports.ECacheContext.WSAPI, function () {
3121
- return _this7.api.getActivityLogT(_this7.userExtId, startTimeSeconds, endTimeSeconds, from, to);
3134
+ return _this7.api.getActivityLogT(_this7.userExtId, startTimeSeconds, endTimeSeconds, from, to, types, src_types);
3122
3135
  }, CACHE_DATA_SEC));
3123
3136
  } catch (e) {
3124
3137
  return Promise.reject(e);
@@ -3132,8 +3145,9 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3132
3145
  if (!params) {
3133
3146
  return Promise.resolve();
3134
3147
  }
3135
- return Promise.resolve(_this8.api.getActivityLogT(_this8.userExtId, params.startTimeSeconds, params.endTimeSeconds, params.from, params.to)).then(function (payload) {
3136
- var cacheKey = onUpdateContextKey.ActivityLog + ":" + params.startTimeSeconds + ":" + params.endTimeSeconds + ":" + params.from + ":" + params.to;
3148
+ return Promise.resolve(_this8.api.getActivityLogT(_this8.userExtId, params.startTimeSeconds, params.endTimeSeconds, params.from, params.to, params.types, params.src_types)).then(function (payload) {
3149
+ var _params$types$join, _params$types, _params$src_types$joi, _params$src_types;
3150
+ var cacheKey = onUpdateContextKey.ActivityLog + ":" + params.startTimeSeconds + ":" + params.endTimeSeconds + ":" + params.from + ":" + params.to + ":" + ((_params$types$join = (_params$types = params.types) == null ? void 0 : _params$types.join(',')) != null ? _params$types$join : '') + ":" + ((_params$src_types$joi = (_params$src_types = params.src_types) == null ? void 0 : _params$src_types.join(',')) != null ? _params$src_types$joi : '');
3137
3151
  OCache.set(cacheKey, payload, exports.ECacheContext.WSAPI);
3138
3152
  var onUpdate = _this8.onUpdateCallback.get(onUpdateContextKey.ActivityLog);
3139
3153
  if (typeof onUpdate === 'function') {
@@ -3155,8 +3169,10 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3155
3169
  * **Pagination** — same `from` / `to` offset model as {@link getActivityLog}
3156
3170
  * (server caps a single response at 50 entries).
3157
3171
  *
3158
- * **Filtering** — pass `types` with {@link ActivityLogActivities} values to
3159
- * request a server-side subset (e.g. missions only). Omit for all activity types.
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.
3160
3176
  *
3161
3177
  * @returns Array of {@link TActivityLogEntry} ordered newest-first.
3162
3178
  */
@@ -3166,13 +3182,14 @@ var WSAPIUser = /*#__PURE__*/function (_WSAPIBase) {
3166
3182
  endTimeSeconds = _ref2.endTimeSeconds,
3167
3183
  from = _ref2.from,
3168
3184
  to = _ref2.to,
3169
- types = _ref2.types;
3185
+ types = _ref2.types,
3186
+ src_types = _ref2.src_types;
3170
3187
  try {
3171
- var _types$join;
3188
+ var _types$join2, _src_types$join2;
3172
3189
  var _this9 = this;
3173
- var cacheKey = onUpdateContextKey.ActivityLogV2 + ":" + startTimeSeconds + ":" + endTimeSeconds + ":" + from + ":" + to + ":" + ((_types$join = types == null ? void 0 : types.join(',')) != null ? _types$join : '');
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 : '');
3174
3191
  return Promise.resolve(OCache.use(cacheKey, exports.ECacheContext.WSAPI, function () {
3175
- return _this9.api.getActivityLogV2T(_this9.userExtId, startTimeSeconds, endTimeSeconds, from, to, types);
3192
+ return _this9.api.getActivityLogV2T(_this9.userExtId, startTimeSeconds, endTimeSeconds, from, to, types, src_types);
3176
3193
  }, CACHE_DATA_SEC));
3177
3194
  } catch (e) {
3178
3195
  return Promise.reject(e);
@@ -7783,10 +7800,10 @@ var WSAPIMiniGames = /*#__PURE__*/function (_WSAPIRaffles) {
7783
7800
  * (played with `acknowledge: false`), or the
7784
7801
  * `client_request_id` of a
7785
7802
  * {@link getMiniGamesHistory} row.
7786
- * @param options.lose Optional. When `true`, finalises the spin as
7787
- * lost — the prize is not credited and returns
7788
- * to the prize pool (see "Finalising as lost").
7789
- * Omit (or pass `false`) to deliver the win.
7803
+ * @param lose Optional. When `true`, finalises the spin as
7804
+ * lost — the prize is not credited and returns
7805
+ * to the prize pool (see "Finalising as lost").
7806
+ * Omit (or pass `false`) to deliver the win.
7790
7807
  *
7791
7808
  * @example
7792
7809
  * ```ts
@@ -10361,6 +10378,7 @@ exports.ActivityLogActivities = void 0;
10361
10378
  ActivityLogActivities[ActivityLogActivities["Leaderboard"] = 17] = "Leaderboard";
10362
10379
  ActivityLogActivities[ActivityLogActivities["Tournament"] = 18] = "Tournament";
10363
10380
  ActivityLogActivities[ActivityLogActivities["ClanTournament"] = 19] = "ClanTournament";
10381
+ ActivityLogActivities[ActivityLogActivities["Clan"] = 20] = "Clan";
10364
10382
  })(exports.ActivityLogActivities || (exports.ActivityLogActivities = {}));
10365
10383
 
10366
10384
  exports.UserBalanceType = void 0;
@@ -10445,8 +10463,10 @@ exports.PointChangeSourceType = void 0;
10445
10463
  PointChangeSourceType[PointChangeSourceType["WinMiniGame"] = 17] = "WinMiniGame";
10446
10464
  PointChangeSourceType[PointChangeSourceType["API"] = 18] = "API";
10447
10465
  PointChangeSourceType[PointChangeSourceType["DynamicFormula"] = 19] = "DynamicFormula";
10466
+ PointChangeSourceType[PointChangeSourceType["Jackpot"] = 20] = "Jackpot";
10448
10467
  PointChangeSourceType[PointChangeSourceType["Raffle"] = 21] = "Raffle";
10449
10468
  PointChangeSourceType[PointChangeSourceType["Avatars"] = 22] = "Avatars";
10469
+ PointChangeSourceType[PointChangeSourceType["Clan"] = 23] = "Clan";
10450
10470
  })(exports.PointChangeSourceType || (exports.PointChangeSourceType = {}));
10451
10471
 
10452
10472
  var avatarDefinitionTransform = function avatarDefinitionTransform(items, avatarDomain) {
@@ -12327,21 +12347,25 @@ var SmarticoAPI = /*#__PURE__*/function () {
12327
12347
  return Promise.reject(e);
12328
12348
  }
12329
12349
  };
12330
- _proto.getActivityLog = function getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset) {
12350
+ _proto.getActivityLog = function getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types) {
12331
12351
  try {
12332
12352
  var _this102 = this;
12333
- var message = _this102.buildMessage(user_ext_id, exports.ClassId.GET_POINT_HISTORY_REQUEST, {
12353
+ var message = _this102.buildMessage(user_ext_id, exports.ClassId.GET_POINT_HISTORY_REQUEST, _extends({
12334
12354
  startTimeSeconds: Math.floor(startTimeSeconds),
12335
12355
  endTimeSeconds: Math.floor(endTimeSeconds),
12336
12356
  limit: limit,
12337
12357
  offset: offset
12338
- });
12358
+ }, types ? {
12359
+ types: types
12360
+ } : {}, src_types ? {
12361
+ src_types: src_types
12362
+ } : {}));
12339
12363
  return Promise.resolve(_this102.send(message, exports.ClassId.GET_POINT_HISTORY_RESPONSE));
12340
12364
  } catch (e) {
12341
12365
  return Promise.reject(e);
12342
12366
  }
12343
12367
  };
12344
- _proto.getActivityLogV2 = function getActivityLogV2(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types) {
12368
+ _proto.getActivityLogV2 = function getActivityLogV2(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types) {
12345
12369
  try {
12346
12370
  var _this103 = this;
12347
12371
  var message = _this103.buildMessage(user_ext_id, exports.ClassId.GET_POINT_HISTORY_REQUEST, _extends({
@@ -12351,13 +12375,15 @@ var SmarticoAPI = /*#__PURE__*/function () {
12351
12375
  offset: offset
12352
12376
  }, types ? {
12353
12377
  types: types
12378
+ } : {}, src_types ? {
12379
+ src_types: src_types
12354
12380
  } : {}));
12355
12381
  return Promise.resolve(_this103.send(message, exports.ClassId.GET_POINT_HISTORY_RESPONSE));
12356
12382
  } catch (e) {
12357
12383
  return Promise.reject(e);
12358
12384
  }
12359
12385
  };
12360
- _proto.getActivityLogT = function getActivityLogT(user_ext_id, startTimeSeconds, endTimeSeconds, from, to) {
12386
+ _proto.getActivityLogT = function getActivityLogT(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types, src_types) {
12361
12387
  if (from === void 0) {
12362
12388
  from = 0;
12363
12389
  }
@@ -12368,14 +12394,14 @@ var SmarticoAPI = /*#__PURE__*/function () {
12368
12394
  var _this104 = this;
12369
12395
  var limit = to - from > 50 ? 50 : to - from;
12370
12396
  var offset = from;
12371
- return Promise.resolve(_this104.getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset)).then(function (_this104$getActivityL) {
12397
+ return Promise.resolve(_this104.getActivityLog(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types)).then(function (_this104$getActivityL) {
12372
12398
  return ActivityLogTransform(_this104$getActivityL.logHistory);
12373
12399
  });
12374
12400
  } catch (e) {
12375
12401
  return Promise.reject(e);
12376
12402
  }
12377
12403
  };
12378
- _proto.getActivityLogV2T = function getActivityLogV2T(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types) {
12404
+ _proto.getActivityLogV2T = function getActivityLogV2T(user_ext_id, startTimeSeconds, endTimeSeconds, from, to, types, src_types) {
12379
12405
  if (from === void 0) {
12380
12406
  from = 0;
12381
12407
  }
@@ -12386,7 +12412,7 @@ var SmarticoAPI = /*#__PURE__*/function () {
12386
12412
  var _this105 = this;
12387
12413
  var limit = to - from > 50 ? 50 : to - from;
12388
12414
  var offset = from;
12389
- return Promise.resolve(_this105.getActivityLogV2(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types)).then(function (_this105$getActivityL) {
12415
+ return Promise.resolve(_this105.getActivityLogV2(user_ext_id, startTimeSeconds, endTimeSeconds, limit, offset, types, src_types)).then(function (_this105$getActivityL) {
12390
12416
  return ActivityLogV2Transform(_this105$getActivityL.logHistory);
12391
12417
  });
12392
12418
  } catch (e) {