mezon-js 2.14.32 → 2.14.33
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/client.ts +141 -61
- package/dist/client.d.ts +3 -3
- package/dist/mezon-js.cjs.js +90 -20
- package/dist/mezon-js.esm.mjs +90 -20
- package/package.json +1 -1
package/client.ts
CHANGED
|
@@ -171,6 +171,8 @@ import {
|
|
|
171
171
|
ApiMessageMention,
|
|
172
172
|
ApiMessageAttachment,
|
|
173
173
|
ApiMessageRef,
|
|
174
|
+
ApiChannelCanvasDetailResponse,
|
|
175
|
+
ApiListFavoriteChannelResponse,
|
|
174
176
|
} from "./api.gen";
|
|
175
177
|
import { PinMessagesList } from "./api/api";
|
|
176
178
|
|
|
@@ -3161,18 +3163,22 @@ export class Client {
|
|
|
3161
3163
|
return this.apiClient
|
|
3162
3164
|
.listApps(session.token)
|
|
3163
3165
|
.then((response: ApiAppList) => {
|
|
3164
|
-
response.apps?.map(a => {
|
|
3166
|
+
response.apps?.map((a) => {
|
|
3165
3167
|
return {
|
|
3166
3168
|
...a,
|
|
3167
3169
|
id: String(a.id),
|
|
3168
|
-
creator_id: String(a.creator_id)
|
|
3169
|
-
}
|
|
3170
|
+
creator_id: String(a.creator_id),
|
|
3171
|
+
};
|
|
3170
3172
|
});
|
|
3171
3173
|
return Promise.resolve(response);
|
|
3172
3174
|
});
|
|
3173
3175
|
}
|
|
3174
3176
|
|
|
3175
|
-
async addAppToClan(
|
|
3177
|
+
async addAppToClan(
|
|
3178
|
+
session: Session,
|
|
3179
|
+
appId: string,
|
|
3180
|
+
clanId: string,
|
|
3181
|
+
): Promise<Boolean> {
|
|
3176
3182
|
if (
|
|
3177
3183
|
this.autoRefreshSession &&
|
|
3178
3184
|
session.refresh_token &&
|
|
@@ -3202,13 +3208,13 @@ export class Client {
|
|
|
3202
3208
|
return this.apiClient
|
|
3203
3209
|
.getSystemMessagesList(session.token)
|
|
3204
3210
|
.then((response: ApiSystemMessagesList) => {
|
|
3205
|
-
response.system_messages_list?.map(s => {
|
|
3211
|
+
response.system_messages_list?.map((s) => {
|
|
3206
3212
|
return {
|
|
3207
3213
|
...s,
|
|
3208
3214
|
id: String(s.id),
|
|
3209
3215
|
channel_id: String(s.channel_id),
|
|
3210
|
-
clan_id: String(s.clan_id)
|
|
3211
|
-
}
|
|
3216
|
+
clan_id: String(s.clan_id),
|
|
3217
|
+
};
|
|
3212
3218
|
});
|
|
3213
3219
|
return Promise.resolve(response);
|
|
3214
3220
|
});
|
|
@@ -3233,8 +3239,8 @@ export class Client {
|
|
|
3233
3239
|
...response,
|
|
3234
3240
|
id: String(response.id),
|
|
3235
3241
|
channel_id: String(response.channel_id),
|
|
3236
|
-
clan_id: String(response.clan_id)
|
|
3237
|
-
}
|
|
3242
|
+
clan_id: String(response.clan_id),
|
|
3243
|
+
};
|
|
3238
3244
|
return Promise.resolve(result);
|
|
3239
3245
|
});
|
|
3240
3246
|
}
|
|
@@ -3435,11 +3441,11 @@ export class Client {
|
|
|
3435
3441
|
return this.apiClient
|
|
3436
3442
|
.getChannelCategoryNotiSettingsList(session.token, clanId)
|
|
3437
3443
|
.then((response: ApiNotificationChannelCategorySettingList) => {
|
|
3438
|
-
response.notification_channel_category_settings_list?.map(n => {
|
|
3444
|
+
response.notification_channel_category_settings_list?.map((n) => {
|
|
3439
3445
|
return {
|
|
3440
3446
|
...n,
|
|
3441
|
-
id: String(n.id)
|
|
3442
|
-
}
|
|
3447
|
+
id: String(n.id),
|
|
3448
|
+
};
|
|
3443
3449
|
});
|
|
3444
3450
|
return Promise.resolve(response);
|
|
3445
3451
|
});
|
|
@@ -3463,8 +3469,8 @@ export class Client {
|
|
|
3463
3469
|
var result = {
|
|
3464
3470
|
...response,
|
|
3465
3471
|
id: String(response.id),
|
|
3466
|
-
channel_id: String(response.channel_id)
|
|
3467
|
-
}
|
|
3472
|
+
channel_id: String(response.channel_id),
|
|
3473
|
+
};
|
|
3468
3474
|
return Promise.resolve(result);
|
|
3469
3475
|
});
|
|
3470
3476
|
}
|
|
@@ -3487,8 +3493,8 @@ export class Client {
|
|
|
3487
3493
|
var result = {
|
|
3488
3494
|
...response,
|
|
3489
3495
|
id: String(response.id),
|
|
3490
|
-
channel_id: String(response.channel_id)
|
|
3491
|
-
}
|
|
3496
|
+
channel_id: String(response.channel_id),
|
|
3497
|
+
};
|
|
3492
3498
|
return Promise.resolve(result);
|
|
3493
3499
|
});
|
|
3494
3500
|
}
|
|
@@ -3510,8 +3516,8 @@ export class Client {
|
|
|
3510
3516
|
.then((response: ApiNotificationSetting) => {
|
|
3511
3517
|
var result = {
|
|
3512
3518
|
...response,
|
|
3513
|
-
id: String(response.id)
|
|
3514
|
-
}
|
|
3519
|
+
id: String(response.id),
|
|
3520
|
+
};
|
|
3515
3521
|
return Promise.resolve(result);
|
|
3516
3522
|
});
|
|
3517
3523
|
}
|
|
@@ -3535,8 +3541,8 @@ export class Client {
|
|
|
3535
3541
|
...response,
|
|
3536
3542
|
id: String(response.id),
|
|
3537
3543
|
channel_id: String(response.channel_id),
|
|
3538
|
-
user_id: String(response.user_id)
|
|
3539
|
-
}
|
|
3544
|
+
user_id: String(response.user_id),
|
|
3545
|
+
};
|
|
3540
3546
|
return Promise.resolve(result);
|
|
3541
3547
|
});
|
|
3542
3548
|
}
|
|
@@ -3553,7 +3559,7 @@ export class Client {
|
|
|
3553
3559
|
return this.apiClient
|
|
3554
3560
|
.listChannelByUserId(session.token)
|
|
3555
3561
|
.then((response: ApiChannelDescList) => {
|
|
3556
|
-
response.channeldesc?.map(c => {
|
|
3562
|
+
response.channeldesc?.map((c) => {
|
|
3557
3563
|
return {
|
|
3558
3564
|
...c,
|
|
3559
3565
|
clan_id: String(c.clan_id),
|
|
@@ -3561,8 +3567,8 @@ export class Client {
|
|
|
3561
3567
|
creator_id: String(c.creator_id),
|
|
3562
3568
|
category_id: String(c.category_id),
|
|
3563
3569
|
parent_id: String(c.parent_id),
|
|
3564
|
-
app_id: String(c.app_id)
|
|
3565
|
-
}
|
|
3570
|
+
app_id: String(c.app_id),
|
|
3571
|
+
};
|
|
3566
3572
|
});
|
|
3567
3573
|
return Promise.resolve(response);
|
|
3568
3574
|
});
|
|
@@ -3587,8 +3593,8 @@ export class Client {
|
|
|
3587
3593
|
var result = {
|
|
3588
3594
|
...response,
|
|
3589
3595
|
channel_id: String(response.channel_id),
|
|
3590
|
-
user_ids: response.user_ids?.map(u => String(u))
|
|
3591
|
-
}
|
|
3596
|
+
user_ids: response.user_ids?.map((u) => String(u)),
|
|
3597
|
+
};
|
|
3592
3598
|
return Promise.resolve(result);
|
|
3593
3599
|
});
|
|
3594
3600
|
}
|
|
@@ -3607,13 +3613,13 @@ export class Client {
|
|
|
3607
3613
|
return this.apiClient
|
|
3608
3614
|
.getListEmojisByUserId(session.token)
|
|
3609
3615
|
.then((response: ApiEmojiListedResponse) => {
|
|
3610
|
-
response.emoji_list?.map(e => {
|
|
3616
|
+
response.emoji_list?.map((e) => {
|
|
3611
3617
|
return {
|
|
3612
3618
|
...e,
|
|
3613
3619
|
clan_id: String(e.clan_id),
|
|
3614
3620
|
creator_id: String(e.creator_id),
|
|
3615
3621
|
id: String(e.id),
|
|
3616
|
-
}
|
|
3622
|
+
};
|
|
3617
3623
|
});
|
|
3618
3624
|
return Promise.resolve(response);
|
|
3619
3625
|
});
|
|
@@ -3631,12 +3637,12 @@ export class Client {
|
|
|
3631
3637
|
return this.apiClient
|
|
3632
3638
|
.emojiRecentList(session.token)
|
|
3633
3639
|
.then((response: ApiEmojiRecentList) => {
|
|
3634
|
-
response.emoji_recents?.map(e => {
|
|
3640
|
+
response.emoji_recents?.map((e) => {
|
|
3635
3641
|
return {
|
|
3636
3642
|
...e,
|
|
3637
3643
|
emoji_id: String(e.emoji_id),
|
|
3638
|
-
emoji_recents_id: String(e.emoji_recents_id)
|
|
3639
|
-
}
|
|
3644
|
+
emoji_recents_id: String(e.emoji_recents_id),
|
|
3645
|
+
};
|
|
3640
3646
|
});
|
|
3641
3647
|
return Promise.resolve(response);
|
|
3642
3648
|
});
|
|
@@ -3655,7 +3661,15 @@ export class Client {
|
|
|
3655
3661
|
|
|
3656
3662
|
return this.apiClient
|
|
3657
3663
|
.getListStickersByUserId(session.token)
|
|
3658
|
-
.then((response:
|
|
3664
|
+
.then((response: ApiStickerListedResponse) => {
|
|
3665
|
+
response.stickers?.map((s) => {
|
|
3666
|
+
return {
|
|
3667
|
+
...s,
|
|
3668
|
+
clan_id: String(s.clan_id),
|
|
3669
|
+
creator_id: String(s.creator_id),
|
|
3670
|
+
id: String(s.id),
|
|
3671
|
+
};
|
|
3672
|
+
});
|
|
3659
3673
|
return Promise.resolve(response);
|
|
3660
3674
|
});
|
|
3661
3675
|
}
|
|
@@ -3695,8 +3709,20 @@ export class Client {
|
|
|
3695
3709
|
.listRoles(session.token, clanId, limit, state, cursor)
|
|
3696
3710
|
.then((response: ApiRoleListEventResponse) => {
|
|
3697
3711
|
var result: ApiRoleListEventResponse = {
|
|
3698
|
-
|
|
3699
|
-
|
|
3712
|
+
...response,
|
|
3713
|
+
clan_id: String(clanId),
|
|
3714
|
+
roles: {
|
|
3715
|
+
...response.roles,
|
|
3716
|
+
roles: response.roles?.roles?.map((r) => {
|
|
3717
|
+
return {
|
|
3718
|
+
...r,
|
|
3719
|
+
id: String(r.id),
|
|
3720
|
+
clan_id: String(r.clan_id),
|
|
3721
|
+
creator_id: String(r.creator_id),
|
|
3722
|
+
channel_ids: r.channel_ids?.map((c) => String(c)),
|
|
3723
|
+
};
|
|
3724
|
+
}),
|
|
3725
|
+
},
|
|
3700
3726
|
};
|
|
3701
3727
|
|
|
3702
3728
|
return Promise.resolve(result);
|
|
@@ -3720,9 +3746,16 @@ export class Client {
|
|
|
3720
3746
|
.listUserPermissionInChannel(session.token, clanId, channelId)
|
|
3721
3747
|
.then((response: ApiUserPermissionInChannelListResponse) => {
|
|
3722
3748
|
var result: ApiUserPermissionInChannelListResponse = {
|
|
3723
|
-
clan_id: clanId,
|
|
3724
|
-
channel_id: channelId,
|
|
3725
|
-
permissions:
|
|
3749
|
+
clan_id: String(clanId),
|
|
3750
|
+
channel_id: String(channelId),
|
|
3751
|
+
permissions: {
|
|
3752
|
+
...response.permissions,
|
|
3753
|
+
permissions: response.permissions?.permissions?.map((p) => {
|
|
3754
|
+
return {
|
|
3755
|
+
id: String(p.id),
|
|
3756
|
+
};
|
|
3757
|
+
}),
|
|
3758
|
+
},
|
|
3726
3759
|
};
|
|
3727
3760
|
|
|
3728
3761
|
return Promise.resolve(result);
|
|
@@ -3749,7 +3782,14 @@ export class Client {
|
|
|
3749
3782
|
var result: ApiPermissionRoleChannelListEventResponse = {
|
|
3750
3783
|
role_id: roleId,
|
|
3751
3784
|
channel_id: channelId,
|
|
3752
|
-
permission_role_channel: response.permission_role_channel
|
|
3785
|
+
permission_role_channel: response.permission_role_channel?.map(
|
|
3786
|
+
(p) => {
|
|
3787
|
+
return {
|
|
3788
|
+
...p,
|
|
3789
|
+
permission_id: String(p.permission_id),
|
|
3790
|
+
};
|
|
3791
|
+
},
|
|
3792
|
+
),
|
|
3753
3793
|
user_id: userId,
|
|
3754
3794
|
};
|
|
3755
3795
|
|
|
@@ -3813,7 +3853,16 @@ export class Client {
|
|
|
3813
3853
|
return Promise.resolve(result);
|
|
3814
3854
|
}
|
|
3815
3855
|
|
|
3816
|
-
result.channeldesc = response.channeldesc
|
|
3856
|
+
result.channeldesc = response.channeldesc?.map((c) => {
|
|
3857
|
+
return {
|
|
3858
|
+
...c,
|
|
3859
|
+
clan_id: String(c.clan_id),
|
|
3860
|
+
channel_id: String(c.channel_id),
|
|
3861
|
+
category_id: String(c.category_id),
|
|
3862
|
+
creator_id: String(c.creator_id),
|
|
3863
|
+
parent_id: String(c.parent_id),
|
|
3864
|
+
};
|
|
3865
|
+
});
|
|
3817
3866
|
return Promise.resolve(result);
|
|
3818
3867
|
});
|
|
3819
3868
|
}
|
|
@@ -3873,8 +3922,22 @@ export class Client {
|
|
|
3873
3922
|
page,
|
|
3874
3923
|
channelLabel,
|
|
3875
3924
|
)
|
|
3876
|
-
.then((response:
|
|
3877
|
-
|
|
3925
|
+
.then((response: ApiChannelSettingListResponse) => {
|
|
3926
|
+
var result = {
|
|
3927
|
+
...response,
|
|
3928
|
+
clan_id: clanId,
|
|
3929
|
+
channel_setting_list: response.channel_setting_list?.map((c) => {
|
|
3930
|
+
return {
|
|
3931
|
+
...c,
|
|
3932
|
+
category_id: String(c.category_id),
|
|
3933
|
+
parent_id: String(c.parent_id),
|
|
3934
|
+
creator_id: String(c.creator_id),
|
|
3935
|
+
id: String(c.id),
|
|
3936
|
+
user_ids: c.user_ids?.map((u) => String(u)),
|
|
3937
|
+
};
|
|
3938
|
+
}),
|
|
3939
|
+
};
|
|
3940
|
+
return Promise.resolve(result);
|
|
3878
3941
|
});
|
|
3879
3942
|
}
|
|
3880
3943
|
|
|
@@ -3896,19 +3959,16 @@ export class Client {
|
|
|
3896
3959
|
return this.apiClient
|
|
3897
3960
|
.getChannelCanvasList(session.token, channelId, clanId, limit, page)
|
|
3898
3961
|
.then((response: ApiChannelCanvasListResponse) => {
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
result.channel_canvases = response.channel_canvases;
|
|
3910
|
-
result.count = response.count;
|
|
3911
|
-
return Promise.resolve(result);
|
|
3962
|
+
response.channel_id = channelId;
|
|
3963
|
+
response.clan_id = clanId;
|
|
3964
|
+
response.channel_canvases?.map((c) => {
|
|
3965
|
+
return {
|
|
3966
|
+
...c,
|
|
3967
|
+
id: String(c.id),
|
|
3968
|
+
creator_id: String(c.creator_id),
|
|
3969
|
+
};
|
|
3970
|
+
});
|
|
3971
|
+
return Promise.resolve(response);
|
|
3912
3972
|
});
|
|
3913
3973
|
}
|
|
3914
3974
|
|
|
@@ -3917,7 +3977,7 @@ export class Client {
|
|
|
3917
3977
|
id: string,
|
|
3918
3978
|
clanId?: string,
|
|
3919
3979
|
channelId?: string,
|
|
3920
|
-
): Promise<
|
|
3980
|
+
): Promise<ApiChannelCanvasDetailResponse> {
|
|
3921
3981
|
if (
|
|
3922
3982
|
this.autoRefreshSession &&
|
|
3923
3983
|
session.refresh_token &&
|
|
@@ -3928,8 +3988,14 @@ export class Client {
|
|
|
3928
3988
|
|
|
3929
3989
|
return this.apiClient
|
|
3930
3990
|
.getChannelCanvasDetail(session.token, id, clanId, channelId)
|
|
3931
|
-
.then((response:
|
|
3932
|
-
|
|
3991
|
+
.then((response: ApiChannelCanvasDetailResponse) => {
|
|
3992
|
+
var result = {
|
|
3993
|
+
...response,
|
|
3994
|
+
id: String(response.id),
|
|
3995
|
+
creator_id: String(response.creator_id),
|
|
3996
|
+
editor_id: String(response.editor_id),
|
|
3997
|
+
};
|
|
3998
|
+
return Promise.resolve(result);
|
|
3933
3999
|
});
|
|
3934
4000
|
}
|
|
3935
4001
|
|
|
@@ -4017,7 +4083,10 @@ export class Client {
|
|
|
4017
4083
|
});
|
|
4018
4084
|
}
|
|
4019
4085
|
|
|
4020
|
-
async getListFavoriteChannel(
|
|
4086
|
+
async getListFavoriteChannel(
|
|
4087
|
+
session: Session,
|
|
4088
|
+
clanId: string,
|
|
4089
|
+
): Promise<ApiListFavoriteChannelResponse> {
|
|
4021
4090
|
if (
|
|
4022
4091
|
this.autoRefreshSession &&
|
|
4023
4092
|
session.refresh_token &&
|
|
@@ -4028,10 +4097,12 @@ export class Client {
|
|
|
4028
4097
|
|
|
4029
4098
|
return this.apiClient
|
|
4030
4099
|
.getListFavoriteChannel(session.token, clanId)
|
|
4031
|
-
.then((response:
|
|
4100
|
+
.then((response: ApiListFavoriteChannelResponse) => {
|
|
4101
|
+
response.channel_ids?.map((c) => String(c));
|
|
4032
4102
|
return response;
|
|
4033
4103
|
});
|
|
4034
4104
|
}
|
|
4105
|
+
|
|
4035
4106
|
/** List activity */
|
|
4036
4107
|
async listActivity(session: Session): Promise<ApiListUserActivity> {
|
|
4037
4108
|
if (
|
|
@@ -4042,9 +4113,18 @@ export class Client {
|
|
|
4042
4113
|
await this.sessionRefresh(session);
|
|
4043
4114
|
}
|
|
4044
4115
|
|
|
4045
|
-
return this.apiClient
|
|
4046
|
-
|
|
4047
|
-
|
|
4116
|
+
return this.apiClient
|
|
4117
|
+
.listActivity(session.token)
|
|
4118
|
+
.then((response: ApiListUserActivity) => {
|
|
4119
|
+
response.activities?.map((a) => {
|
|
4120
|
+
return {
|
|
4121
|
+
...a,
|
|
4122
|
+
user_id: String(a.user_id),
|
|
4123
|
+
application_id: String(a.application_id),
|
|
4124
|
+
};
|
|
4125
|
+
});
|
|
4126
|
+
return response;
|
|
4127
|
+
});
|
|
4048
4128
|
}
|
|
4049
4129
|
|
|
4050
4130
|
async createActiviy(
|
package/dist/client.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { ApiAccount, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiForSaleItemList, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ApiLogedDeviceList, ChannelMessage } from "./api.gen";
|
|
16
|
+
import { ApiAccount, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiForSaleItemList, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ApiLogedDeviceList, ChannelMessage, ApiChannelCanvasDetailResponse, ApiListFavoriteChannelResponse } from "./api.gen";
|
|
17
17
|
import { Session } from "./session";
|
|
18
18
|
import { Socket } from "./socket";
|
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
|
@@ -420,12 +420,12 @@ export declare class Client {
|
|
|
420
420
|
leaveThread(session: Session, clanId: string, channelId: string): Promise<any>;
|
|
421
421
|
getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channelLabel?: string): Promise<ApiChannelSettingListResponse>;
|
|
422
422
|
getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
|
|
423
|
-
getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<
|
|
423
|
+
getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<ApiChannelCanvasDetailResponse>;
|
|
424
424
|
editChannelCanvases(session: Session, request: ApiEditChannelCanvasRequest): Promise<any>;
|
|
425
425
|
deleteChannelCanvas(session: Session, canvasId: string, clanId?: string, channelId?: string): Promise<any>;
|
|
426
426
|
addFavoriteChannel(session: Session, channelId: string, clanId: string): Promise<ApiAddFavoriteChannelResponse>;
|
|
427
427
|
removeFavoriteChannel(session: Session, clanId: string, channelId: string): Promise<any>;
|
|
428
|
-
getListFavoriteChannel(session: Session, clanId: string): Promise<
|
|
428
|
+
getListFavoriteChannel(session: Session, clanId: string): Promise<ApiListFavoriteChannelResponse>;
|
|
429
429
|
/** List activity */
|
|
430
430
|
listActivity(session: Session): Promise<ApiListUserActivity>;
|
|
431
431
|
createActiviy(session: Session, request: ApiCreateActivityRequest): Promise<ApiUserActivity>;
|
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -44275,6 +44275,14 @@ var Client = class {
|
|
|
44275
44275
|
await this.sessionRefresh(session);
|
|
44276
44276
|
}
|
|
44277
44277
|
return this.apiClient.getListStickersByUserId(session.token).then((response) => {
|
|
44278
|
+
response.stickers?.map((s) => {
|
|
44279
|
+
return {
|
|
44280
|
+
...s,
|
|
44281
|
+
clan_id: String(s.clan_id),
|
|
44282
|
+
creator_id: String(s.creator_id),
|
|
44283
|
+
id: String(s.id)
|
|
44284
|
+
};
|
|
44285
|
+
});
|
|
44278
44286
|
return Promise.resolve(response);
|
|
44279
44287
|
});
|
|
44280
44288
|
}
|
|
@@ -44292,8 +44300,20 @@ var Client = class {
|
|
|
44292
44300
|
}
|
|
44293
44301
|
return this.apiClient.listRoles(session.token, clanId, limit, state, cursor).then((response) => {
|
|
44294
44302
|
var result = {
|
|
44295
|
-
|
|
44296
|
-
|
|
44303
|
+
...response,
|
|
44304
|
+
clan_id: String(clanId),
|
|
44305
|
+
roles: {
|
|
44306
|
+
...response.roles,
|
|
44307
|
+
roles: response.roles?.roles?.map((r) => {
|
|
44308
|
+
return {
|
|
44309
|
+
...r,
|
|
44310
|
+
id: String(r.id),
|
|
44311
|
+
clan_id: String(r.clan_id),
|
|
44312
|
+
creator_id: String(r.creator_id),
|
|
44313
|
+
channel_ids: r.channel_ids?.map((c) => String(c))
|
|
44314
|
+
};
|
|
44315
|
+
})
|
|
44316
|
+
}
|
|
44297
44317
|
};
|
|
44298
44318
|
return Promise.resolve(result);
|
|
44299
44319
|
});
|
|
@@ -44304,9 +44324,16 @@ var Client = class {
|
|
|
44304
44324
|
}
|
|
44305
44325
|
return this.apiClient.listUserPermissionInChannel(session.token, clanId, channelId).then((response) => {
|
|
44306
44326
|
var result = {
|
|
44307
|
-
clan_id: clanId,
|
|
44308
|
-
channel_id: channelId,
|
|
44309
|
-
permissions:
|
|
44327
|
+
clan_id: String(clanId),
|
|
44328
|
+
channel_id: String(channelId),
|
|
44329
|
+
permissions: {
|
|
44330
|
+
...response.permissions,
|
|
44331
|
+
permissions: response.permissions?.permissions?.map((p) => {
|
|
44332
|
+
return {
|
|
44333
|
+
id: String(p.id)
|
|
44334
|
+
};
|
|
44335
|
+
})
|
|
44336
|
+
}
|
|
44310
44337
|
};
|
|
44311
44338
|
return Promise.resolve(result);
|
|
44312
44339
|
});
|
|
@@ -44319,7 +44346,14 @@ var Client = class {
|
|
|
44319
44346
|
var result = {
|
|
44320
44347
|
role_id: roleId,
|
|
44321
44348
|
channel_id: channelId,
|
|
44322
|
-
permission_role_channel: response.permission_role_channel
|
|
44349
|
+
permission_role_channel: response.permission_role_channel?.map(
|
|
44350
|
+
(p) => {
|
|
44351
|
+
return {
|
|
44352
|
+
...p,
|
|
44353
|
+
permission_id: String(p.permission_id)
|
|
44354
|
+
};
|
|
44355
|
+
}
|
|
44356
|
+
),
|
|
44323
44357
|
user_id: userId
|
|
44324
44358
|
};
|
|
44325
44359
|
return Promise.resolve(result);
|
|
@@ -44353,7 +44387,16 @@ var Client = class {
|
|
|
44353
44387
|
if (response.channeldesc == null) {
|
|
44354
44388
|
return Promise.resolve(result);
|
|
44355
44389
|
}
|
|
44356
|
-
result.channeldesc = response.channeldesc
|
|
44390
|
+
result.channeldesc = response.channeldesc?.map((c) => {
|
|
44391
|
+
return {
|
|
44392
|
+
...c,
|
|
44393
|
+
clan_id: String(c.clan_id),
|
|
44394
|
+
channel_id: String(c.channel_id),
|
|
44395
|
+
category_id: String(c.category_id),
|
|
44396
|
+
creator_id: String(c.creator_id),
|
|
44397
|
+
parent_id: String(c.parent_id)
|
|
44398
|
+
};
|
|
44399
|
+
});
|
|
44357
44400
|
return Promise.resolve(result);
|
|
44358
44401
|
});
|
|
44359
44402
|
}
|
|
@@ -44382,7 +44425,21 @@ var Client = class {
|
|
|
44382
44425
|
page,
|
|
44383
44426
|
channelLabel
|
|
44384
44427
|
).then((response) => {
|
|
44385
|
-
|
|
44428
|
+
var result = {
|
|
44429
|
+
...response,
|
|
44430
|
+
clan_id: clanId,
|
|
44431
|
+
channel_setting_list: response.channel_setting_list?.map((c) => {
|
|
44432
|
+
return {
|
|
44433
|
+
...c,
|
|
44434
|
+
category_id: String(c.category_id),
|
|
44435
|
+
parent_id: String(c.parent_id),
|
|
44436
|
+
creator_id: String(c.creator_id),
|
|
44437
|
+
id: String(c.id),
|
|
44438
|
+
user_ids: c.user_ids?.map((u) => String(u))
|
|
44439
|
+
};
|
|
44440
|
+
})
|
|
44441
|
+
};
|
|
44442
|
+
return Promise.resolve(result);
|
|
44386
44443
|
});
|
|
44387
44444
|
}
|
|
44388
44445
|
async getChannelCanvasList(session, channelId, clanId, limit, page) {
|
|
@@ -44390,17 +44447,16 @@ var Client = class {
|
|
|
44390
44447
|
await this.sessionRefresh(session);
|
|
44391
44448
|
}
|
|
44392
44449
|
return this.apiClient.getChannelCanvasList(session.token, channelId, clanId, limit, page).then((response) => {
|
|
44393
|
-
|
|
44394
|
-
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
|
|
44401
|
-
|
|
44402
|
-
|
|
44403
|
-
return Promise.resolve(result);
|
|
44450
|
+
response.channel_id = channelId;
|
|
44451
|
+
response.clan_id = clanId;
|
|
44452
|
+
response.channel_canvases?.map((c) => {
|
|
44453
|
+
return {
|
|
44454
|
+
...c,
|
|
44455
|
+
id: String(c.id),
|
|
44456
|
+
creator_id: String(c.creator_id)
|
|
44457
|
+
};
|
|
44458
|
+
});
|
|
44459
|
+
return Promise.resolve(response);
|
|
44404
44460
|
});
|
|
44405
44461
|
}
|
|
44406
44462
|
async getChannelCanvasDetail(session, id, clanId, channelId) {
|
|
@@ -44408,7 +44464,13 @@ var Client = class {
|
|
|
44408
44464
|
await this.sessionRefresh(session);
|
|
44409
44465
|
}
|
|
44410
44466
|
return this.apiClient.getChannelCanvasDetail(session.token, id, clanId, channelId).then((response) => {
|
|
44411
|
-
|
|
44467
|
+
var result = {
|
|
44468
|
+
...response,
|
|
44469
|
+
id: String(response.id),
|
|
44470
|
+
creator_id: String(response.creator_id),
|
|
44471
|
+
editor_id: String(response.editor_id)
|
|
44472
|
+
};
|
|
44473
|
+
return Promise.resolve(result);
|
|
44412
44474
|
});
|
|
44413
44475
|
}
|
|
44414
44476
|
async editChannelCanvases(session, request) {
|
|
@@ -44452,6 +44514,7 @@ var Client = class {
|
|
|
44452
44514
|
await this.sessionRefresh(session);
|
|
44453
44515
|
}
|
|
44454
44516
|
return this.apiClient.getListFavoriteChannel(session.token, clanId).then((response) => {
|
|
44517
|
+
response.channel_ids?.map((c) => String(c));
|
|
44455
44518
|
return response;
|
|
44456
44519
|
});
|
|
44457
44520
|
}
|
|
@@ -44461,6 +44524,13 @@ var Client = class {
|
|
|
44461
44524
|
await this.sessionRefresh(session);
|
|
44462
44525
|
}
|
|
44463
44526
|
return this.apiClient.listActivity(session.token).then((response) => {
|
|
44527
|
+
response.activities?.map((a) => {
|
|
44528
|
+
return {
|
|
44529
|
+
...a,
|
|
44530
|
+
user_id: String(a.user_id),
|
|
44531
|
+
application_id: String(a.application_id)
|
|
44532
|
+
};
|
|
44533
|
+
});
|
|
44464
44534
|
return response;
|
|
44465
44535
|
});
|
|
44466
44536
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
|
@@ -44240,6 +44240,14 @@ var Client = class {
|
|
|
44240
44240
|
await this.sessionRefresh(session);
|
|
44241
44241
|
}
|
|
44242
44242
|
return this.apiClient.getListStickersByUserId(session.token).then((response) => {
|
|
44243
|
+
response.stickers?.map((s) => {
|
|
44244
|
+
return {
|
|
44245
|
+
...s,
|
|
44246
|
+
clan_id: String(s.clan_id),
|
|
44247
|
+
creator_id: String(s.creator_id),
|
|
44248
|
+
id: String(s.id)
|
|
44249
|
+
};
|
|
44250
|
+
});
|
|
44243
44251
|
return Promise.resolve(response);
|
|
44244
44252
|
});
|
|
44245
44253
|
}
|
|
@@ -44257,8 +44265,20 @@ var Client = class {
|
|
|
44257
44265
|
}
|
|
44258
44266
|
return this.apiClient.listRoles(session.token, clanId, limit, state, cursor).then((response) => {
|
|
44259
44267
|
var result = {
|
|
44260
|
-
|
|
44261
|
-
|
|
44268
|
+
...response,
|
|
44269
|
+
clan_id: String(clanId),
|
|
44270
|
+
roles: {
|
|
44271
|
+
...response.roles,
|
|
44272
|
+
roles: response.roles?.roles?.map((r) => {
|
|
44273
|
+
return {
|
|
44274
|
+
...r,
|
|
44275
|
+
id: String(r.id),
|
|
44276
|
+
clan_id: String(r.clan_id),
|
|
44277
|
+
creator_id: String(r.creator_id),
|
|
44278
|
+
channel_ids: r.channel_ids?.map((c) => String(c))
|
|
44279
|
+
};
|
|
44280
|
+
})
|
|
44281
|
+
}
|
|
44262
44282
|
};
|
|
44263
44283
|
return Promise.resolve(result);
|
|
44264
44284
|
});
|
|
@@ -44269,9 +44289,16 @@ var Client = class {
|
|
|
44269
44289
|
}
|
|
44270
44290
|
return this.apiClient.listUserPermissionInChannel(session.token, clanId, channelId).then((response) => {
|
|
44271
44291
|
var result = {
|
|
44272
|
-
clan_id: clanId,
|
|
44273
|
-
channel_id: channelId,
|
|
44274
|
-
permissions:
|
|
44292
|
+
clan_id: String(clanId),
|
|
44293
|
+
channel_id: String(channelId),
|
|
44294
|
+
permissions: {
|
|
44295
|
+
...response.permissions,
|
|
44296
|
+
permissions: response.permissions?.permissions?.map((p) => {
|
|
44297
|
+
return {
|
|
44298
|
+
id: String(p.id)
|
|
44299
|
+
};
|
|
44300
|
+
})
|
|
44301
|
+
}
|
|
44275
44302
|
};
|
|
44276
44303
|
return Promise.resolve(result);
|
|
44277
44304
|
});
|
|
@@ -44284,7 +44311,14 @@ var Client = class {
|
|
|
44284
44311
|
var result = {
|
|
44285
44312
|
role_id: roleId,
|
|
44286
44313
|
channel_id: channelId,
|
|
44287
|
-
permission_role_channel: response.permission_role_channel
|
|
44314
|
+
permission_role_channel: response.permission_role_channel?.map(
|
|
44315
|
+
(p) => {
|
|
44316
|
+
return {
|
|
44317
|
+
...p,
|
|
44318
|
+
permission_id: String(p.permission_id)
|
|
44319
|
+
};
|
|
44320
|
+
}
|
|
44321
|
+
),
|
|
44288
44322
|
user_id: userId
|
|
44289
44323
|
};
|
|
44290
44324
|
return Promise.resolve(result);
|
|
@@ -44318,7 +44352,16 @@ var Client = class {
|
|
|
44318
44352
|
if (response.channeldesc == null) {
|
|
44319
44353
|
return Promise.resolve(result);
|
|
44320
44354
|
}
|
|
44321
|
-
result.channeldesc = response.channeldesc
|
|
44355
|
+
result.channeldesc = response.channeldesc?.map((c) => {
|
|
44356
|
+
return {
|
|
44357
|
+
...c,
|
|
44358
|
+
clan_id: String(c.clan_id),
|
|
44359
|
+
channel_id: String(c.channel_id),
|
|
44360
|
+
category_id: String(c.category_id),
|
|
44361
|
+
creator_id: String(c.creator_id),
|
|
44362
|
+
parent_id: String(c.parent_id)
|
|
44363
|
+
};
|
|
44364
|
+
});
|
|
44322
44365
|
return Promise.resolve(result);
|
|
44323
44366
|
});
|
|
44324
44367
|
}
|
|
@@ -44347,7 +44390,21 @@ var Client = class {
|
|
|
44347
44390
|
page,
|
|
44348
44391
|
channelLabel
|
|
44349
44392
|
).then((response) => {
|
|
44350
|
-
|
|
44393
|
+
var result = {
|
|
44394
|
+
...response,
|
|
44395
|
+
clan_id: clanId,
|
|
44396
|
+
channel_setting_list: response.channel_setting_list?.map((c) => {
|
|
44397
|
+
return {
|
|
44398
|
+
...c,
|
|
44399
|
+
category_id: String(c.category_id),
|
|
44400
|
+
parent_id: String(c.parent_id),
|
|
44401
|
+
creator_id: String(c.creator_id),
|
|
44402
|
+
id: String(c.id),
|
|
44403
|
+
user_ids: c.user_ids?.map((u) => String(u))
|
|
44404
|
+
};
|
|
44405
|
+
})
|
|
44406
|
+
};
|
|
44407
|
+
return Promise.resolve(result);
|
|
44351
44408
|
});
|
|
44352
44409
|
}
|
|
44353
44410
|
async getChannelCanvasList(session, channelId, clanId, limit, page) {
|
|
@@ -44355,17 +44412,16 @@ var Client = class {
|
|
|
44355
44412
|
await this.sessionRefresh(session);
|
|
44356
44413
|
}
|
|
44357
44414
|
return this.apiClient.getChannelCanvasList(session.token, channelId, clanId, limit, page).then((response) => {
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44365
|
-
|
|
44366
|
-
|
|
44367
|
-
|
|
44368
|
-
return Promise.resolve(result);
|
|
44415
|
+
response.channel_id = channelId;
|
|
44416
|
+
response.clan_id = clanId;
|
|
44417
|
+
response.channel_canvases?.map((c) => {
|
|
44418
|
+
return {
|
|
44419
|
+
...c,
|
|
44420
|
+
id: String(c.id),
|
|
44421
|
+
creator_id: String(c.creator_id)
|
|
44422
|
+
};
|
|
44423
|
+
});
|
|
44424
|
+
return Promise.resolve(response);
|
|
44369
44425
|
});
|
|
44370
44426
|
}
|
|
44371
44427
|
async getChannelCanvasDetail(session, id, clanId, channelId) {
|
|
@@ -44373,7 +44429,13 @@ var Client = class {
|
|
|
44373
44429
|
await this.sessionRefresh(session);
|
|
44374
44430
|
}
|
|
44375
44431
|
return this.apiClient.getChannelCanvasDetail(session.token, id, clanId, channelId).then((response) => {
|
|
44376
|
-
|
|
44432
|
+
var result = {
|
|
44433
|
+
...response,
|
|
44434
|
+
id: String(response.id),
|
|
44435
|
+
creator_id: String(response.creator_id),
|
|
44436
|
+
editor_id: String(response.editor_id)
|
|
44437
|
+
};
|
|
44438
|
+
return Promise.resolve(result);
|
|
44377
44439
|
});
|
|
44378
44440
|
}
|
|
44379
44441
|
async editChannelCanvases(session, request) {
|
|
@@ -44417,6 +44479,7 @@ var Client = class {
|
|
|
44417
44479
|
await this.sessionRefresh(session);
|
|
44418
44480
|
}
|
|
44419
44481
|
return this.apiClient.getListFavoriteChannel(session.token, clanId).then((response) => {
|
|
44482
|
+
response.channel_ids?.map((c) => String(c));
|
|
44420
44483
|
return response;
|
|
44421
44484
|
});
|
|
44422
44485
|
}
|
|
@@ -44426,6 +44489,13 @@ var Client = class {
|
|
|
44426
44489
|
await this.sessionRefresh(session);
|
|
44427
44490
|
}
|
|
44428
44491
|
return this.apiClient.listActivity(session.token).then((response) => {
|
|
44492
|
+
response.activities?.map((a) => {
|
|
44493
|
+
return {
|
|
44494
|
+
...a,
|
|
44495
|
+
user_id: String(a.user_id),
|
|
44496
|
+
application_id: String(a.application_id)
|
|
44497
|
+
};
|
|
44498
|
+
});
|
|
44429
44499
|
return response;
|
|
44430
44500
|
});
|
|
44431
44501
|
}
|