mezon-js 2.7.94 → 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 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.
@@ -1329,7 +1337,7 @@ export interface ApiSetMuteNotificationRequest {
1329
1337
  /** */
1330
1338
  export interface ApiSetNotificationRequest {
1331
1339
  //
1332
- channel_id?: string;
1340
+ channel_category_id?: string;
1333
1341
  //
1334
1342
  notification_type?: number;
1335
1343
  //
@@ -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 = "";
@@ -4865,7 +4875,7 @@ export class MezonApi {
4865
4875
 
4866
4876
  /** set notification user channel. */
4867
4877
  setNotificationCategorySetting(bearerToken: string,
4868
- body:ApiSetDefaultNotificationRequest,
4878
+ body:ApiSetNotificationRequest,
4869
4879
  options: any = {}): Promise<any> {
4870
4880
 
4871
4881
  if (body === null || body === undefined) {
@@ -4935,7 +4945,7 @@ export class MezonApi {
4935
4945
  /** notification selected */
4936
4946
  getNotificationCategorySetting(bearerToken: string,
4937
4947
  categoryId?:string,
4938
- options: any = {}): Promise<ApiNotificationSetting> {
4948
+ options: any = {}): Promise<ApiNotificationUserChannel> {
4939
4949
 
4940
4950
  const urlPath = "/v2/notificationusercategory/get";
4941
4951
  const queryParams = new Map<string, any>();
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;
@@ -766,7 +770,7 @@ export interface ApiSetMuteNotificationRequest {
766
770
  }
767
771
  /** */
768
772
  export interface ApiSetNotificationRequest {
769
- channel_id?: string;
773
+ channel_category_id?: string;
770
774
  notification_type?: number;
771
775
  time_mute?: string;
772
776
  }
@@ -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. */
@@ -1118,11 +1122,11 @@ export declare class MezonApi {
1118
1122
  /** set notification user channel. */
1119
1123
  setNotificationClanSetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: any): Promise<any>;
1120
1124
  /** set notification user channel. */
1121
- setNotificationCategorySetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: any): Promise<any>;
1125
+ setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
1122
1126
  /** */
1123
1127
  deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<any>;
1124
1128
  /** notification selected */
1125
- getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationSetting>;
1129
+ getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationUserChannel>;
1126
1130
  /** */
1127
1131
  deleteNotificationChannel(bearerToken: string, channelId?: string, options?: any): Promise<any>;
1128
1132
  /** notification selected */
@@ -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);
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.94",
3
+ "version": "2.7.96",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },