mezon-js 2.10.20 → 2.10.21
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 +11 -6
- package/dist/api.gen.d.ts +3 -1
- package/dist/mezon-js.cjs.js +2 -1
- package/dist/mezon-js.esm.mjs +2 -1
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -206,6 +206,8 @@ export interface MezonUpdateEventBody {
|
|
206
206
|
channel_id?: string;
|
207
207
|
//
|
208
208
|
clan_id?: string;
|
209
|
+
//
|
210
|
+
creator_id?: string;
|
209
211
|
//
|
210
212
|
description?: string;
|
211
213
|
//
|
@@ -1177,6 +1179,8 @@ export interface ApiDeleteChannelDescRequest {
|
|
1177
1179
|
export interface ApiDeleteEventRequest {
|
1178
1180
|
//
|
1179
1181
|
clan_id?: string;
|
1182
|
+
//
|
1183
|
+
creator_id?: string;
|
1180
1184
|
//The id of a event.
|
1181
1185
|
event_id?: string;
|
1182
1186
|
}
|
@@ -6559,12 +6563,12 @@ export class MezonApi {
|
|
6559
6563
|
}
|
6560
6564
|
|
6561
6565
|
/** Delete a event by ID. */
|
6562
|
-
deleteEvent(
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6566
|
+
deleteEvent(bearerToken: string,
|
6567
|
+
eventId:string,
|
6568
|
+
clanId?:string,
|
6569
|
+
creatorId?:string,
|
6570
|
+
options: any = {}): Promise<any> {
|
6571
|
+
|
6568
6572
|
if (eventId === null || eventId === undefined) {
|
6569
6573
|
throw new Error(
|
6570
6574
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -6576,6 +6580,7 @@ export class MezonApi {
|
|
6576
6580
|
);
|
6577
6581
|
const queryParams = new Map<string, any>();
|
6578
6582
|
queryParams.set("clan_id", clanId);
|
6583
|
+
queryParams.set("creator_id", creatorId);
|
6579
6584
|
|
6580
6585
|
let bodyJson: string = "";
|
6581
6586
|
|
package/dist/api.gen.d.ts
CHANGED
@@ -121,6 +121,7 @@ export interface MezonUpdateEventBody {
|
|
121
121
|
address?: string;
|
122
122
|
channel_id?: string;
|
123
123
|
clan_id?: string;
|
124
|
+
creator_id?: string;
|
124
125
|
description?: string;
|
125
126
|
end_time?: string;
|
126
127
|
logo?: string;
|
@@ -675,6 +676,7 @@ export interface ApiDeleteChannelDescRequest {
|
|
675
676
|
/** */
|
676
677
|
export interface ApiDeleteEventRequest {
|
677
678
|
clan_id?: string;
|
679
|
+
creator_id?: string;
|
678
680
|
event_id?: string;
|
679
681
|
}
|
680
682
|
/** Delete a role the user has access to. */
|
@@ -1790,7 +1792,7 @@ export declare class MezonApi {
|
|
1790
1792
|
/** Update fields in a given event. */
|
1791
1793
|
updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: any): Promise<any>;
|
1792
1794
|
/** Delete a event by ID. */
|
1793
|
-
deleteEvent(bearerToken: string, eventId: string, clanId?: string, options?: any): Promise<any>;
|
1795
|
+
deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, options?: any): Promise<any>;
|
1794
1796
|
/** Update fields in a given event. */
|
1795
1797
|
updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: any): Promise<any>;
|
1796
1798
|
/** Delete one or more users by ID or username. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -3708,7 +3708,7 @@ var MezonApi = class {
|
|
3708
3708
|
]);
|
3709
3709
|
}
|
3710
3710
|
/** Delete a event by ID. */
|
3711
|
-
deleteEvent(bearerToken, eventId, clanId, options = {}) {
|
3711
|
+
deleteEvent(bearerToken, eventId, clanId, creatorId, options = {}) {
|
3712
3712
|
if (eventId === null || eventId === void 0) {
|
3713
3713
|
throw new Error(
|
3714
3714
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -3720,6 +3720,7 @@ var MezonApi = class {
|
|
3720
3720
|
);
|
3721
3721
|
const queryParams = /* @__PURE__ */ new Map();
|
3722
3722
|
queryParams.set("clan_id", clanId);
|
3723
|
+
queryParams.set("creator_id", creatorId);
|
3723
3724
|
let bodyJson = "";
|
3724
3725
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
3725
3726
|
const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -3674,7 +3674,7 @@ var MezonApi = class {
|
|
3674
3674
|
]);
|
3675
3675
|
}
|
3676
3676
|
/** Delete a event by ID. */
|
3677
|
-
deleteEvent(bearerToken, eventId, clanId, options = {}) {
|
3677
|
+
deleteEvent(bearerToken, eventId, clanId, creatorId, options = {}) {
|
3678
3678
|
if (eventId === null || eventId === void 0) {
|
3679
3679
|
throw new Error(
|
3680
3680
|
"'eventId' is a required parameter but is null or undefined."
|
@@ -3686,6 +3686,7 @@ var MezonApi = class {
|
|
3686
3686
|
);
|
3687
3687
|
const queryParams = /* @__PURE__ */ new Map();
|
3688
3688
|
queryParams.set("clan_id", clanId);
|
3689
|
+
queryParams.set("creator_id", creatorId);
|
3689
3690
|
let bodyJson = "";
|
3690
3691
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
3691
3692
|
const fetchOptions = buildFetchOptions("DELETE", options, bodyJson);
|