@smartico/public-api 0.0.356 → 0.0.357

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.
@@ -3031,7 +3031,7 @@ class WSAPI {
3031
3031
  *
3032
3032
  * **Example**:
3033
3033
  * ```
3034
- * _smartico.api.getGamePickActiveRounds({
3034
+ * _smartico.api.gamePickGetActiveRounds({
3035
3035
  * saw_template_id: 1083,
3036
3036
  * }).then((result) => {
3037
3037
  * console.log(result.data); // GamePickRound[]
@@ -3043,7 +3043,7 @@ class WSAPI {
3043
3043
  *
3044
3044
  * **Visitor mode: not supported**
3045
3045
  */
3046
- async getGamePickActiveRounds(props) {
3046
+ async gamePickGetActiveRounds(props) {
3047
3047
  if (!props.saw_template_id) {
3048
3048
  throw new Error('saw_template_id is required');
3049
3049
  }
@@ -3058,12 +3058,12 @@ class WSAPI {
3058
3058
  *
3059
3059
  * **Response** `GamesApiResponse<GamePickRound>`:
3060
3060
  * - `errCode` - 0 on success
3061
- * - `data` - Single round object with the same structure as in `getGamePickActiveRounds`,
3061
+ * - `data` - Single round object with the same structure as in `gamePickGetActiveRounds`,
3062
3062
  * including `events[]` with full event details, user selections, and resolution info
3063
3063
  *
3064
3064
  * **Example**:
3065
3065
  * ```
3066
- * _smartico.api.getGamePickActiveRound({
3066
+ * _smartico.api.gamePickGetActiveRound({
3067
3067
  * saw_template_id: 1083,
3068
3068
  * round_id: 31652,
3069
3069
  * }).then((result) => {
@@ -3074,7 +3074,7 @@ class WSAPI {
3074
3074
  *
3075
3075
  * **Visitor mode: not supported**
3076
3076
  */
3077
- async getGamePickActiveRound(props) {
3077
+ async gamePickGetActiveRound(props) {
3078
3078
  if (!props.saw_template_id) {
3079
3079
  throw new Error('saw_template_id is required');
3080
3080
  }
@@ -3092,12 +3092,12 @@ class WSAPI {
3092
3092
  * **Response** `GamesApiResponse<GamePickRound[]>`:
3093
3093
  * - `errCode` - 0 on success
3094
3094
  * - `data` - Array of rounds ordered by `round_row_id` descending (newest first).
3095
- * Each round has the same structure as in `getGamePickActiveRounds`, including resolved events
3095
+ * Each round has the same structure as in `gamePickGetActiveRounds`, including resolved events
3096
3096
  * with `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) and `resolution_score`
3097
3097
  *
3098
3098
  * **Example**:
3099
3099
  * ```
3100
- * _smartico.api.getGamePickHistory({
3100
+ * _smartico.api.gamePickGetHistory({
3101
3101
  * saw_template_id: 1083,
3102
3102
  * }).then((result) => {
3103
3103
  * result.data.forEach(round => {
@@ -3108,7 +3108,7 @@ class WSAPI {
3108
3108
  *
3109
3109
  * **Visitor mode: not supported**
3110
3110
  */
3111
- async getGamePickHistory(props) {
3111
+ async gamePickGetHistory(props) {
3112
3112
  if (!props.saw_template_id) {
3113
3113
  throw new Error('saw_template_id is required');
3114
3114
  }
@@ -3135,7 +3135,7 @@ class WSAPI {
3135
3135
  *
3136
3136
  * **Example**:
3137
3137
  * ```
3138
- * _smartico.api.getGamePickBoard({
3138
+ * _smartico.api.gamePickGetBoard({
3139
3139
  * saw_template_id: 1083,
3140
3140
  * round_id: 31652,
3141
3141
  * }).then((result) => {
@@ -3146,7 +3146,7 @@ class WSAPI {
3146
3146
  *
3147
3147
  * **Visitor mode: not supported**
3148
3148
  */
3149
- async getGamePickBoard(props) {
3149
+ async gamePickGetBoard(props) {
3150
3150
  if (!props.saw_template_id) {
3151
3151
  throw new Error('saw_template_id is required');
3152
3152
  }
@@ -3163,7 +3163,7 @@ class WSAPI {
3163
3163
  * Predictions can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3164
3164
  *
3165
3165
  * @param props.saw_template_id - The ID of the MatchX game template
3166
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3166
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3167
3167
  * and modified with user predictions. Each event needs: `gp_event_id`, `team1_user_selection`, `team2_user_selection`
3168
3168
  *
3169
3169
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3173,7 +3173,7 @@ class WSAPI {
3173
3173
  *
3174
3174
  * **Example**:
3175
3175
  * ```
3176
- * _smartico.api.getGamePickActiveRound({
3176
+ * _smartico.api.gamePickGetActiveRound({
3177
3177
  * saw_template_id: 1190,
3178
3178
  * round_id: 38665,
3179
3179
  * }).then((roundData) => {
@@ -3183,7 +3183,7 @@ class WSAPI {
3183
3183
  * team1_user_selection: 1,
3184
3184
  * team2_user_selection: 0,
3185
3185
  * }));
3186
- * _smartico.api.submitGamePickSelection({
3186
+ * _smartico.api.gamePickSubmitSelection({
3187
3187
  * saw_template_id: 1190,
3188
3188
  * round: round,
3189
3189
  * }).then((result) => {
@@ -3194,7 +3194,7 @@ class WSAPI {
3194
3194
  *
3195
3195
  * **Visitor mode: not supported**
3196
3196
  */
3197
- async submitGamePickSelection(props) {
3197
+ async gamePickSubmitSelection(props) {
3198
3198
  var _props$round;
3199
3199
  if (!props.saw_template_id) {
3200
3200
  throw new Error('saw_template_id is required');
@@ -3212,7 +3212,7 @@ class WSAPI {
3212
3212
  * Answers can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3213
3213
  *
3214
3214
  * @param props.saw_template_id - The ID of the Quiz game template
3215
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3215
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3216
3216
  * and modified with user answers. Each event needs: `gp_event_id`, `user_selection`
3217
3217
  *
3218
3218
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3222,7 +3222,7 @@ class WSAPI {
3222
3222
  *
3223
3223
  * **Example**:
3224
3224
  * ```
3225
- * _smartico.api.getGamePickActiveRound({
3225
+ * _smartico.api.gamePickGetActiveRound({
3226
3226
  * saw_template_id: 1183,
3227
3227
  * round_id: 37974,
3228
3228
  * }).then((roundData) => {
@@ -3231,7 +3231,7 @@ class WSAPI {
3231
3231
  * gp_event_id: e.gp_event_id,
3232
3232
  * user_selection: 'x',
3233
3233
  * }));
3234
- * _smartico.api.submitGamePickSelectionQuiz({
3234
+ * _smartico.api.gamePickSubmitSelectionQuiz({
3235
3235
  * saw_template_id: 1183,
3236
3236
  * round: round,
3237
3237
  * }).then((result) => {
@@ -3242,7 +3242,7 @@ class WSAPI {
3242
3242
  *
3243
3243
  * **Visitor mode: not supported**
3244
3244
  */
3245
- async submitGamePickSelectionQuiz(props) {
3245
+ async gamePickSubmitSelectionQuiz(props) {
3246
3246
  var _props$round2;
3247
3247
  if (!props.saw_template_id) {
3248
3248
  throw new Error('saw_template_id is required');
@@ -3274,7 +3274,7 @@ class WSAPI {
3274
3274
  *
3275
3275
  * **Example**:
3276
3276
  * ```
3277
- * _smartico.api.getGamePickUserInfo({
3277
+ * _smartico.api.gamePickGetUserInfo({
3278
3278
  * saw_template_id: 1083,
3279
3279
  * }).then((result) => {
3280
3280
  * console.log(result.data.public_username, result.data.ach_points_balance);
@@ -3283,7 +3283,7 @@ class WSAPI {
3283
3283
  *
3284
3284
  * **Visitor mode: not supported**
3285
3285
  */
3286
- async getGamePickUserInfo(props) {
3286
+ async gamePickGetUserInfo(props) {
3287
3287
  if (!props.saw_template_id) {
3288
3288
  throw new Error('saw_template_id is required');
3289
3289
  }
@@ -3312,7 +3312,7 @@ class WSAPI {
3312
3312
  *
3313
3313
  * **Example**:
3314
3314
  * ```
3315
- * _smartico.api.getGamePickGameInfo({
3315
+ * _smartico.api.gamePickGetGameInfo({
3316
3316
  * saw_template_id: 1189,
3317
3317
  * }).then((result) => {
3318
3318
  * console.log(result.data.sawTemplate.saw_template_ui_definition.name);
@@ -3323,7 +3323,7 @@ class WSAPI {
3323
3323
  *
3324
3324
  * **Visitor mode: not supported**
3325
3325
  */
3326
- async getGamePickGameInfo(props) {
3326
+ async gamePickGetGameInfo(props) {
3327
3327
  if (!props.saw_template_id) {
3328
3328
  throw new Error('saw_template_id is required');
3329
3329
  }
@@ -3332,7 +3332,7 @@ class WSAPI {
3332
3332
  /**
3333
3333
  * Returns round data with events and picks for a specific user (identified by their internal user ID).
3334
3334
  * Useful for viewing another user's predictions from the leaderboard.
3335
- * The `int_user_id` can be obtained from the `getGamePickBoard` response (`users[].int_user_id`).
3335
+ * The `int_user_id` can be obtained from the `gamePickGetBoard` response (`users[].int_user_id`).
3336
3336
  *
3337
3337
  * @param props.saw_template_id - The ID of the MatchX or Quiz game template
3338
3338
  * @param props.round_id - The round to get info for
@@ -3341,13 +3341,13 @@ class WSAPI {
3341
3341
  * **Response** `GamesApiResponse<GamePickRound>`:
3342
3342
  * - `errCode` - 0 on success
3343
3343
  * - `data` - Round object with the target user's selections.
3344
- * Same structure as `getGamePickActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3344
+ * Same structure as `gamePickGetActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3345
3345
  * fields on events reflect the specified user's picks instead of the current user's.
3346
3346
  * Events also include `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) showing how each prediction was scored
3347
3347
  *
3348
3348
  * **Example**:
3349
3349
  * ```
3350
- * _smartico.api.getGamePickRoundInfoForUser({
3350
+ * _smartico.api.gamePickGetRoundInfoForUser({
3351
3351
  * saw_template_id: 1083,
3352
3352
  * round_id: 31652,
3353
3353
  * int_user_id: 65653810,
@@ -3360,7 +3360,7 @@ class WSAPI {
3360
3360
  *
3361
3361
  * **Visitor mode: not supported**
3362
3362
  */
3363
- async getGamePickRoundInfoForUser(props) {
3363
+ async gamePickGetRoundInfoForUser(props) {
3364
3364
  if (!props.saw_template_id) {
3365
3365
  throw new Error('saw_template_id is required');
3366
3366
  }