mezon-js 2.10.45 → 2.10.46
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 +10 -0
- package/client.ts +3 -2
- package/dist/api.gen.d.ts +5 -1
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +4 -3
- package/dist/mezon-js.esm.mjs +4 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -207,6 +207,8 @@ export interface MezonUpdateEventBody {
|
|
207
207
|
//
|
208
208
|
channel_id?: string;
|
209
209
|
//
|
210
|
+
channel_voice_id?: string;
|
211
|
+
//
|
210
212
|
clan_id?: string;
|
211
213
|
//
|
212
214
|
creator_id?: string;
|
@@ -1131,6 +1133,8 @@ export interface ApiCreateEventRequest {
|
|
1131
1133
|
title?: string;
|
1132
1134
|
//
|
1133
1135
|
channel_id?: string;
|
1136
|
+
//
|
1137
|
+
action?: number;
|
1134
1138
|
}
|
1135
1139
|
|
1136
1140
|
/** Create a event within clan. */
|
@@ -1187,6 +1191,8 @@ export interface ApiDeleteChannelDescRequest {
|
|
1187
1191
|
|
1188
1192
|
/** */
|
1189
1193
|
export interface ApiDeleteEventRequest {
|
1194
|
+
//
|
1195
|
+
channel_id?: string;
|
1190
1196
|
//
|
1191
1197
|
clan_id?: string;
|
1192
1198
|
//
|
@@ -1306,6 +1312,8 @@ export interface ApiEventManagement {
|
|
1306
1312
|
create_time?: string;
|
1307
1313
|
//
|
1308
1314
|
channel_id?: string;
|
1315
|
+
//
|
1316
|
+
event_status?: number;
|
1309
1317
|
}
|
1310
1318
|
|
1311
1319
|
/** */
|
@@ -6598,6 +6606,7 @@ export class MezonApi {
|
|
6598
6606
|
clanId?: string,
|
6599
6607
|
creatorId?: string,
|
6600
6608
|
eventLabel?: string,
|
6609
|
+
channelId?: string,
|
6601
6610
|
options: any = {}
|
6602
6611
|
): Promise<any> {
|
6603
6612
|
if (eventId === null || eventId === undefined) {
|
@@ -6613,6 +6622,7 @@ export class MezonApi {
|
|
6613
6622
|
queryParams.set("clan_id", clanId);
|
6614
6623
|
queryParams.set("creator_id", creatorId);
|
6615
6624
|
queryParams.set("event_label", eventLabel);
|
6625
|
+
queryParams.set("channel_id", channelId);
|
6616
6626
|
|
6617
6627
|
let bodyJson: string = "";
|
6618
6628
|
|
package/client.ts
CHANGED
@@ -1205,7 +1205,8 @@ export class Client {
|
|
1205
1205
|
eventId: string,
|
1206
1206
|
clanId: string,
|
1207
1207
|
creatorId: string,
|
1208
|
-
eventLabel?: string
|
1208
|
+
eventLabel?: string,
|
1209
|
+
channelId?: string
|
1209
1210
|
): Promise<boolean> {
|
1210
1211
|
if (
|
1211
1212
|
this.autoRefreshSession &&
|
@@ -1216,7 +1217,7 @@ export class Client {
|
|
1216
1217
|
}
|
1217
1218
|
|
1218
1219
|
return this.apiClient
|
1219
|
-
.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel)
|
1220
|
+
.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId)
|
1220
1221
|
.then((response: any) => {
|
1221
1222
|
return response !== undefined;
|
1222
1223
|
});
|
package/dist/api.gen.d.ts
CHANGED
@@ -121,6 +121,7 @@ export interface MezonUpdateEventBody {
|
|
121
121
|
event_id?: string;
|
122
122
|
address?: string;
|
123
123
|
channel_id?: string;
|
124
|
+
channel_voice_id?: string;
|
124
125
|
clan_id?: string;
|
125
126
|
creator_id?: string;
|
126
127
|
description?: string;
|
@@ -648,6 +649,7 @@ export interface ApiCreateEventRequest {
|
|
648
649
|
start_time?: string;
|
649
650
|
title?: string;
|
650
651
|
channel_id?: string;
|
652
|
+
action?: number;
|
651
653
|
}
|
652
654
|
/** Create a event within clan. */
|
653
655
|
export interface ApiUpdateEventRequest {
|
@@ -680,6 +682,7 @@ export interface ApiDeleteChannelDescRequest {
|
|
680
682
|
}
|
681
683
|
/** */
|
682
684
|
export interface ApiDeleteEventRequest {
|
685
|
+
channel_id?: string;
|
683
686
|
clan_id?: string;
|
684
687
|
creator_id?: string;
|
685
688
|
event_id?: string;
|
@@ -749,6 +752,7 @@ export interface ApiEventManagement {
|
|
749
752
|
user_ids?: Array<string>;
|
750
753
|
create_time?: string;
|
751
754
|
channel_id?: string;
|
755
|
+
event_status?: number;
|
752
756
|
}
|
753
757
|
/** */
|
754
758
|
export interface ApiListFavoriteChannelResponse {
|
@@ -1805,7 +1809,7 @@ export declare class MezonApi {
|
|
1805
1809
|
/** Update fields in a given event. */
|
1806
1810
|
updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: any): Promise<any>;
|
1807
1811
|
/** Delete a event by ID. */
|
1808
|
-
deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, options?: any): Promise<any>;
|
1812
|
+
deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, channelId?: string, options?: any): Promise<any>;
|
1809
1813
|
/** Update fields in a given event. */
|
1810
1814
|
updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: any): Promise<any>;
|
1811
1815
|
/** Delete one or more users by ID or username. */
|
package/dist/client.d.ts
CHANGED
@@ -400,7 +400,7 @@ export declare class Client {
|
|
400
400
|
/** Delete a role by ID. */
|
401
401
|
deleteRole(session: Session, roleId: string, clanId: string, roleLabel?: string): Promise<boolean>;
|
402
402
|
/** Delete a event by ID. */
|
403
|
-
deleteEvent(session: Session, eventId: string, clanId: string, creatorId: string, eventLabel?: string): Promise<boolean>;
|
403
|
+
deleteEvent(session: Session, eventId: string, clanId: string, creatorId: string, eventLabel?: string, channelId?: string): Promise<boolean>;
|
404
404
|
/** update user a event by ID. */
|
405
405
|
updateEventUser(session: Session, request: ApiDeleteEventRequest): Promise<boolean>;
|
406
406
|
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -3711,7 +3711,7 @@ var MezonApi = class {
|
|
3711
3711
|
]);
|
3712
3712
|
}
|
3713
3713
|
/** Delete a event by ID. */
|
3714
|
-
deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, options = {}) {
|
3714
|
+
deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, channelId, options = {}) {
|
3715
3715
|
if (eventId === null || eventId === void 0) {
|
3716
3716
|
throw new Error(
|
3717
3717
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -3725,6 +3725,7 @@ var MezonApi = class {
|
|
3725
3725
|
queryParams.set("clan_id", clanId);
|
3726
3726
|
queryParams.set("creator_id", creatorId);
|
3727
3727
|
queryParams.set("event_label", eventLabel);
|
3728
|
+
queryParams.set("channel_id", channelId);
|
3728
3729
|
let bodyJson = "";
|
3729
3730
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
3730
3731
|
const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
|
@@ -8485,12 +8486,12 @@ var Client = class {
|
|
8485
8486
|
});
|
8486
8487
|
}
|
8487
8488
|
/** Delete a event by ID. */
|
8488
|
-
deleteEvent(session, eventId, clanId, creatorId, eventLabel) {
|
8489
|
+
deleteEvent(session, eventId, clanId, creatorId, eventLabel, channelId) {
|
8489
8490
|
return __async(this, null, function* () {
|
8490
8491
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
8491
8492
|
yield this.sessionRefresh(session);
|
8492
8493
|
}
|
8493
|
-
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel).then((response) => {
|
8494
|
+
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
|
8494
8495
|
return response !== void 0;
|
8495
8496
|
});
|
8496
8497
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -3677,7 +3677,7 @@ var MezonApi = class {
|
|
3677
3677
|
]);
|
3678
3678
|
}
|
3679
3679
|
/** Delete a event by ID. */
|
3680
|
-
deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, options = {}) {
|
3680
|
+
deleteEvent(bearerToken, eventId, clanId, creatorId, eventLabel, channelId, options = {}) {
|
3681
3681
|
if (eventId === null || eventId === void 0) {
|
3682
3682
|
throw new Error(
|
3683
3683
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -3691,6 +3691,7 @@ var MezonApi = class {
|
|
3691
3691
|
queryParams.set("clan_id", clanId);
|
3692
3692
|
queryParams.set("creator_id", creatorId);
|
3693
3693
|
queryParams.set("event_label", eventLabel);
|
3694
|
+
queryParams.set("channel_id", channelId);
|
3694
3695
|
let bodyJson = "";
|
3695
3696
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
3696
3697
|
const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
|
@@ -8451,12 +8452,12 @@ var Client = class {
|
|
8451
8452
|
});
|
8452
8453
|
}
|
8453
8454
|
/** Delete a event by ID. */
|
8454
|
-
deleteEvent(session, eventId, clanId, creatorId, eventLabel) {
|
8455
|
+
deleteEvent(session, eventId, clanId, creatorId, eventLabel, channelId) {
|
8455
8456
|
return __async(this, null, function* () {
|
8456
8457
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
8457
8458
|
yield this.sessionRefresh(session);
|
8458
8459
|
}
|
8459
|
-
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel).then((response) => {
|
8460
|
+
return this.apiClient.deleteEvent(session.token, eventId, clanId, creatorId, eventLabel, channelId).then((response) => {
|
8460
8461
|
return response !== void 0;
|
8461
8462
|
});
|
8462
8463
|
});
|