mezon-js 2.10.67 → 2.10.69
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/api.gen.ts +13 -19
- package/client.ts +7 -8
- package/dist/api.gen.d.ts +3 -7
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +12 -3
- package/dist/mezon-js.esm.mjs +12 -3
- package/dist/socket.d.ts +5 -0
- package/package.json +1 -1
- package/socket.ts +16 -0
package/api.gen.ts
CHANGED
@@ -709,6 +709,8 @@ export interface ApiChannelDescList {
|
|
709
709
|
channeldesc?: Array<ApiChannelDescription>;
|
710
710
|
//The cursor to send when retrieving the next page, if any.
|
711
711
|
next_cursor?: string;
|
712
|
+
//
|
713
|
+
page?: number;
|
712
714
|
//The cursor to send when retrieving the previous page, if any.
|
713
715
|
prev_cursor?: string;
|
714
716
|
}
|
@@ -1424,6 +1426,8 @@ export interface ApiHashtagDmList {
|
|
1424
1426
|
|
1425
1427
|
/** Add link invite users to. */
|
1426
1428
|
export interface ApiInviteUserRes {
|
1429
|
+
//
|
1430
|
+
channel_desc?: ApiChannelDescription;
|
1427
1431
|
//id channel to add link to.
|
1428
1432
|
channel_id?: string;
|
1429
1433
|
//
|
@@ -1517,16 +1521,6 @@ export interface ApiMessageDeleted {
|
|
1517
1521
|
message_id?: string;
|
1518
1522
|
}
|
1519
1523
|
|
1520
|
-
/** */
|
1521
|
-
export interface ApiListThreadDecs {
|
1522
|
-
//
|
1523
|
-
limit?: number;
|
1524
|
-
//
|
1525
|
-
list_thread?: Array<ApiChannelDescription>;
|
1526
|
-
//
|
1527
|
-
page?: number;
|
1528
|
-
}
|
1529
|
-
|
1530
1524
|
/** */
|
1531
1525
|
export interface ApiListUserActivity {
|
1532
1526
|
//
|
@@ -4817,13 +4811,14 @@ export class MezonApi {
|
|
4817
4811
|
}
|
4818
4812
|
|
4819
4813
|
/** */
|
4820
|
-
getChannelCanvasList(
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4814
|
+
getChannelCanvasList(
|
4815
|
+
bearerToken: string,
|
4816
|
+
channelId: string,
|
4817
|
+
clanId?: string,
|
4818
|
+
limit?: number,
|
4819
|
+
page?: number,
|
4820
|
+
options: any = {}
|
4821
|
+
): Promise<ApiChannelCanvasListResponse> {
|
4827
4822
|
if (channelId === null || channelId === undefined) {
|
4828
4823
|
throw new Error(
|
4829
4824
|
"'channelId' is a required parameter but is null or undefined."
|
@@ -9479,7 +9474,7 @@ export class MezonApi {
|
|
9479
9474
|
threadId?: string,
|
9480
9475
|
page?: number,
|
9481
9476
|
options: any = {}
|
9482
|
-
): Promise<
|
9477
|
+
): Promise<ApiChannelDescList> {
|
9483
9478
|
if (channelId === null || channelId === undefined) {
|
9484
9479
|
throw new Error(
|
9485
9480
|
"'channelId' is a required parameter but is null or undefined."
|
@@ -9519,7 +9514,6 @@ export class MezonApi {
|
|
9519
9514
|
),
|
9520
9515
|
]);
|
9521
9516
|
}
|
9522
|
-
|
9523
9517
|
/** Update fields in a given category. */
|
9524
9518
|
updateCategory(
|
9525
9519
|
bearerToken: string,
|
package/client.ts
CHANGED
@@ -158,7 +158,6 @@ import {
|
|
158
158
|
ApiSdTopic,
|
159
159
|
ApiSFUChannelUserList,
|
160
160
|
MezonUpdateEventBody,
|
161
|
-
ApiListThreadDecs,
|
162
161
|
} from "./api.gen";
|
163
162
|
|
164
163
|
import { Session } from "./session";
|
@@ -4073,7 +4072,7 @@ export class Client {
|
|
4073
4072
|
clanId?: string,
|
4074
4073
|
threadId?: string,
|
4075
4074
|
page?: number
|
4076
|
-
): Promise<
|
4075
|
+
): Promise<ApiChannelDescList> {
|
4077
4076
|
if (
|
4078
4077
|
this.autoRefreshSession &&
|
4079
4078
|
session.refresh_token &&
|
@@ -4092,16 +4091,16 @@ export class Client {
|
|
4092
4091
|
threadId,
|
4093
4092
|
page
|
4094
4093
|
)
|
4095
|
-
.then((response:
|
4096
|
-
var result:
|
4097
|
-
|
4094
|
+
.then((response: ApiChannelDescList) => {
|
4095
|
+
var result: ApiChannelDescList = {
|
4096
|
+
channeldesc: [],
|
4098
4097
|
};
|
4099
4098
|
|
4100
|
-
if (response.
|
4099
|
+
if (response.channeldesc == null) {
|
4101
4100
|
return Promise.resolve(result);
|
4102
4101
|
}
|
4103
4102
|
|
4104
|
-
result.
|
4103
|
+
result.channeldesc = response.channeldesc;
|
4105
4104
|
return Promise.resolve(result);
|
4106
4105
|
});
|
4107
4106
|
}
|
@@ -4191,7 +4190,7 @@ export class Client {
|
|
4191
4190
|
result.clan_id = response.clan_id;
|
4192
4191
|
result.channel_id = response.channel_id;
|
4193
4192
|
result.channel_canvases = response.channel_canvases;
|
4194
|
-
result.count = response.count
|
4193
|
+
result.count = response.count;
|
4195
4194
|
return Promise.resolve(result);
|
4196
4195
|
});
|
4197
4196
|
}
|
package/dist/api.gen.d.ts
CHANGED
@@ -414,6 +414,7 @@ export interface ApiChannelDescList {
|
|
414
414
|
cacheable_cursor?: string;
|
415
415
|
channeldesc?: Array<ApiChannelDescription>;
|
416
416
|
next_cursor?: string;
|
417
|
+
page?: number;
|
417
418
|
prev_cursor?: string;
|
418
419
|
}
|
419
420
|
/** */
|
@@ -818,6 +819,7 @@ export interface ApiHashtagDmList {
|
|
818
819
|
}
|
819
820
|
/** Add link invite users to. */
|
820
821
|
export interface ApiInviteUserRes {
|
822
|
+
channel_desc?: ApiChannelDescription;
|
821
823
|
channel_id?: string;
|
822
824
|
channel_label?: string;
|
823
825
|
clan_id?: string;
|
@@ -874,12 +876,6 @@ export interface ApiMessageDeleted {
|
|
874
876
|
message_id?: string;
|
875
877
|
}
|
876
878
|
/** */
|
877
|
-
export interface ApiListThreadDecs {
|
878
|
-
limit?: number;
|
879
|
-
list_thread?: Array<ApiChannelDescription>;
|
880
|
-
page?: number;
|
881
|
-
}
|
882
|
-
/** */
|
883
879
|
export interface ApiListUserActivity {
|
884
880
|
activities?: Array<ApiUserActivity>;
|
885
881
|
}
|
@@ -1972,7 +1968,7 @@ export declare class MezonApi {
|
|
1972
1968
|
/** Update a system messages. */
|
1973
1969
|
updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: any): Promise<any>;
|
1974
1970
|
/** List user channels */
|
1975
|
-
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: any): Promise<
|
1971
|
+
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: any): Promise<ApiChannelDescList>;
|
1976
1972
|
/** Update fields in a given category. */
|
1977
1973
|
updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: any): Promise<any>;
|
1978
1974
|
/** Update channel private. */
|
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, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, ApiSFUChannelUserList, MezonUpdateEventBody
|
16
|
+
import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, ApiSFUChannelUserList, MezonUpdateEventBody } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -602,7 +602,7 @@ export declare class Client {
|
|
602
602
|
getPermissionByRoleIdChannelId(session: Session, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
|
603
603
|
markAsRead(session: Session, request: ApiMarkAsReadRequest): Promise<any>;
|
604
604
|
/** List Threads. */
|
605
|
-
listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<
|
605
|
+
listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<ApiChannelDescList>;
|
606
606
|
leaveThread(session: Session, channelId: string): Promise<any>;
|
607
607
|
getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channel_label?: string): Promise<ApiChannelSettingListResponse>;
|
608
608
|
getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -7304,6 +7304,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7304
7304
|
this.onuserchannelremoved(
|
7305
7305
|
message.user_channel_removed_event
|
7306
7306
|
);
|
7307
|
+
} else if (message.remove_friend) {
|
7308
|
+
this.onremovefriend(
|
7309
|
+
message.remove_friend
|
7310
|
+
);
|
7307
7311
|
} else if (message.user_clan_removed_event) {
|
7308
7312
|
this.onuserclanremoved(
|
7309
7313
|
message.user_clan_removed_event
|
@@ -7466,6 +7470,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7466
7470
|
console.log(user);
|
7467
7471
|
}
|
7468
7472
|
}
|
7473
|
+
onremovefriend(user) {
|
7474
|
+
if (this.verbose && window && window.console) {
|
7475
|
+
console.log(user);
|
7476
|
+
}
|
7477
|
+
}
|
7469
7478
|
onuserclanremoved(user) {
|
7470
7479
|
if (this.verbose && window && window.console) {
|
7471
7480
|
console.log(user);
|
@@ -10202,12 +10211,12 @@ var Client = class {
|
|
10202
10211
|
page
|
10203
10212
|
).then((response) => {
|
10204
10213
|
var result = {
|
10205
|
-
|
10214
|
+
channeldesc: []
|
10206
10215
|
};
|
10207
|
-
if (response.
|
10216
|
+
if (response.channeldesc == null) {
|
10208
10217
|
return Promise.resolve(result);
|
10209
10218
|
}
|
10210
|
-
result.
|
10219
|
+
result.channeldesc = response.channeldesc;
|
10211
10220
|
return Promise.resolve(result);
|
10212
10221
|
});
|
10213
10222
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7269,6 +7269,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7269
7269
|
this.onuserchannelremoved(
|
7270
7270
|
message.user_channel_removed_event
|
7271
7271
|
);
|
7272
|
+
} else if (message.remove_friend) {
|
7273
|
+
this.onremovefriend(
|
7274
|
+
message.remove_friend
|
7275
|
+
);
|
7272
7276
|
} else if (message.user_clan_removed_event) {
|
7273
7277
|
this.onuserclanremoved(
|
7274
7278
|
message.user_clan_removed_event
|
@@ -7431,6 +7435,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7431
7435
|
console.log(user);
|
7432
7436
|
}
|
7433
7437
|
}
|
7438
|
+
onremovefriend(user) {
|
7439
|
+
if (this.verbose && window && window.console) {
|
7440
|
+
console.log(user);
|
7441
|
+
}
|
7442
|
+
}
|
7434
7443
|
onuserclanremoved(user) {
|
7435
7444
|
if (this.verbose && window && window.console) {
|
7436
7445
|
console.log(user);
|
@@ -10167,12 +10176,12 @@ var Client = class {
|
|
10167
10176
|
page
|
10168
10177
|
).then((response) => {
|
10169
10178
|
var result = {
|
10170
|
-
|
10179
|
+
channeldesc: []
|
10171
10180
|
};
|
10172
|
-
if (response.
|
10181
|
+
if (response.channeldesc == null) {
|
10173
10182
|
return Promise.resolve(result);
|
10174
10183
|
}
|
10175
|
-
result.
|
10184
|
+
result.channeldesc = response.channeldesc;
|
10176
10185
|
return Promise.resolve(result);
|
10177
10186
|
});
|
10178
10187
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -511,6 +511,9 @@ export interface UserEmojiUsage {
|
|
511
511
|
clan_id: string;
|
512
512
|
create_time: string;
|
513
513
|
}
|
514
|
+
export interface RemoveFriend {
|
515
|
+
user_id: string;
|
516
|
+
}
|
514
517
|
export interface AddUserEmojiUsageEvent {
|
515
518
|
emoji_id: string;
|
516
519
|
clan_id: string;
|
@@ -742,6 +745,7 @@ export interface Socket {
|
|
742
745
|
onuserprofileupdate: (user: UserProfileUpdatedEvent) => void;
|
743
746
|
/** Receive channel removed user event */
|
744
747
|
onuserchannelremoved: (user: UserChannelRemovedEvent) => void;
|
748
|
+
onremovefriend: (user: RemoveFriend) => void;
|
745
749
|
/** Receive clan removed user event */
|
746
750
|
onuserclanremoved: (user: UserClanRemovedEvent) => void;
|
747
751
|
onvoicestarted: (voice: VoiceStartedEvent) => void;
|
@@ -818,6 +822,7 @@ export declare class DefaultSocket implements Socket {
|
|
818
822
|
onuserclanadded(user: AddClanUserEvent): void;
|
819
823
|
onuserprofileupdate(user: UserProfileUpdatedEvent): void;
|
820
824
|
onuserchannelremoved(user: UserChannelRemovedEvent): void;
|
825
|
+
onremovefriend(user: RemoveFriend): void;
|
821
826
|
onuserclanremoved(user: UserClanRemovedEvent): void;
|
822
827
|
onnotification(notification: Notification): void;
|
823
828
|
onstatuspresence(statusPresence: StatusPresenceEvent): void;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -755,6 +755,10 @@ export interface UserEmojiUsage {
|
|
755
755
|
clan_id: string;
|
756
756
|
create_time: string;
|
757
757
|
}
|
758
|
+
export interface RemoveFriend {
|
759
|
+
//
|
760
|
+
user_id: string;
|
761
|
+
}
|
758
762
|
|
759
763
|
export interface AddUserEmojiUsageEvent {
|
760
764
|
emoji_id: string;
|
@@ -1189,6 +1193,8 @@ export interface Socket {
|
|
1189
1193
|
/** Receive channel removed user event */
|
1190
1194
|
onuserchannelremoved: (user: UserChannelRemovedEvent) => void;
|
1191
1195
|
|
1196
|
+
onremovefriend: (user: RemoveFriend) => void;
|
1197
|
+
|
1192
1198
|
/** Receive clan removed user event */
|
1193
1199
|
onuserclanremoved: (user: UserClanRemovedEvent) => void;
|
1194
1200
|
|
@@ -1498,6 +1504,10 @@ export class DefaultSocket implements Socket {
|
|
1498
1504
|
this.onuserchannelremoved(
|
1499
1505
|
<UserChannelRemovedEvent>message.user_channel_removed_event
|
1500
1506
|
);
|
1507
|
+
} else if (message.remove_friend) {
|
1508
|
+
this.onremovefriend(
|
1509
|
+
<RemoveFriend>message.remove_friend
|
1510
|
+
);
|
1501
1511
|
} else if (message.user_clan_removed_event) {
|
1502
1512
|
this.onuserclanremoved(
|
1503
1513
|
<UserClanRemovedEvent>message.user_clan_removed_event
|
@@ -1679,6 +1689,12 @@ export class DefaultSocket implements Socket {
|
|
1679
1689
|
}
|
1680
1690
|
}
|
1681
1691
|
|
1692
|
+
onremovefriend(user: RemoveFriend) {
|
1693
|
+
if (this.verbose && window && window.console) {
|
1694
|
+
console.log(user);
|
1695
|
+
}
|
1696
|
+
}
|
1697
|
+
|
1682
1698
|
onuserclanremoved(user: UserClanRemovedEvent) {
|
1683
1699
|
if (this.verbose && window && window.console) {
|
1684
1700
|
console.log(user);
|