mezon-js 2.7.95 → 2.7.96
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/dist/api.gen.d.ts +5 -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
@@ -1004,6 +1004,14 @@ export interface ApiMessageRef {
|
|
1004
1004
|
|
1005
1005
|
/** A notification in the server. */
|
1006
1006
|
export interface ApiNotification {
|
1007
|
+
//
|
1008
|
+
avatar_url?: string;
|
1009
|
+
//
|
1010
|
+
channel_id?: string;
|
1011
|
+
//
|
1012
|
+
channel_type?: string;
|
1013
|
+
//
|
1014
|
+
clan_id?: string;
|
1007
1015
|
//Category code for this notification.
|
1008
1016
|
code?: number;
|
1009
1017
|
//Content of the notification in JSON.
|
@@ -4726,12 +4734,14 @@ export class MezonApi {
|
|
4726
4734
|
/** Fetch list of notifications. */
|
4727
4735
|
listNotifications(bearerToken: string,
|
4728
4736
|
limit?:number,
|
4737
|
+
clanId?:string,
|
4729
4738
|
cacheableCursor?:string,
|
4730
4739
|
options: any = {}): Promise<ApiNotificationList> {
|
4731
4740
|
|
4732
4741
|
const urlPath = "/v2/notification";
|
4733
4742
|
const queryParams = new Map<string, any>();
|
4734
4743
|
queryParams.set("limit", limit);
|
4744
|
+
queryParams.set("clan_id", clanId);
|
4735
4745
|
queryParams.set("cacheable_cursor", cacheableCursor);
|
4736
4746
|
|
4737
4747
|
let bodyJson : string = "";
|
package/dist/api.gen.d.ts
CHANGED
@@ -577,6 +577,10 @@ export interface ApiMessageRef {
|
|
577
577
|
}
|
578
578
|
/** A notification in the server. */
|
579
579
|
export interface ApiNotification {
|
580
|
+
avatar_url?: string;
|
581
|
+
channel_id?: string;
|
582
|
+
channel_type?: string;
|
583
|
+
clan_id?: string;
|
580
584
|
code?: number;
|
581
585
|
content?: string;
|
582
586
|
create_time?: string;
|
@@ -1110,7 +1114,7 @@ export declare class MezonApi {
|
|
1110
1114
|
/** Delete one or more notifications for the current user. */
|
1111
1115
|
deleteNotifications(bearerToken: string, ids?: Array<string>, options?: any): Promise<any>;
|
1112
1116
|
/** Fetch list of notifications. */
|
1113
|
-
listNotifications(bearerToken: string, limit?: number, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
|
1117
|
+
listNotifications(bearerToken: string, limit?: number, clanId?: string, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
|
1114
1118
|
/** notification selected */
|
1115
1119
|
getNotificationChannelSetting(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1116
1120
|
/** set notification user channel. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -3072,10 +3072,11 @@ var MezonApi = class {
|
|
3072
3072
|
]);
|
3073
3073
|
}
|
3074
3074
|
/** Fetch list of notifications. */
|
3075
|
-
listNotifications(bearerToken, limit, cacheableCursor, options = {}) {
|
3075
|
+
listNotifications(bearerToken, limit, clanId, cacheableCursor, options = {}) {
|
3076
3076
|
const urlPath = "/v2/notification";
|
3077
3077
|
const queryParams = /* @__PURE__ */ new Map();
|
3078
3078
|
queryParams.set("limit", limit);
|
3079
|
+
queryParams.set("clan_id", clanId);
|
3079
3080
|
queryParams.set("cacheable_cursor", cacheableCursor);
|
3080
3081
|
let bodyJson = "";
|
3081
3082
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -3043,10 +3043,11 @@ var MezonApi = class {
|
|
3043
3043
|
]);
|
3044
3044
|
}
|
3045
3045
|
/** Fetch list of notifications. */
|
3046
|
-
listNotifications(bearerToken, limit, cacheableCursor, options = {}) {
|
3046
|
+
listNotifications(bearerToken, limit, clanId, cacheableCursor, options = {}) {
|
3047
3047
|
const urlPath = "/v2/notification";
|
3048
3048
|
const queryParams = /* @__PURE__ */ new Map();
|
3049
3049
|
queryParams.set("limit", limit);
|
3050
|
+
queryParams.set("clan_id", clanId);
|
3050
3051
|
queryParams.set("cacheable_cursor", cacheableCursor);
|
3051
3052
|
let bodyJson = "";
|
3052
3053
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|