mezon-js 2.7.97 → 2.7.99

Sign up to get free protection for your applications and to get access to all the features.
package/api.gen.ts CHANGED
@@ -22,6 +22,8 @@ export interface ChannelUserListChannelUser {
22
22
 
23
23
  /** A single user-role pair. */
24
24
  export interface ClanUserListClanUser {
25
+ //from the `nick_name` field in the `clan_desc_profile` table.
26
+ nick_name?: string;
25
27
  //Their relationship to the role.
26
28
  role_id?: string;
27
29
  //User.
@@ -4737,8 +4739,8 @@ export class MezonApi {
4737
4739
 
4738
4740
  /** Fetch list of notifications. */
4739
4741
  listNotifications(bearerToken: string,
4742
+ clanId:string,
4740
4743
  limit?:number,
4741
- clanId?:string,
4742
4744
  cacheableCursor?:string,
4743
4745
  options: any = {}): Promise<ApiNotificationList> {
4744
4746
 
package/client.ts CHANGED
@@ -1598,13 +1598,13 @@ export class Client {
1598
1598
  }
1599
1599
 
1600
1600
  /** Fetch list of notifications. */
1601
- async listNotifications(session: Session, limit?: number, cacheableCursor?: string): Promise<NotificationList> {
1601
+ async listNotifications(session: Session, clanId: string, limit?: number, cacheableCursor?: string): Promise<NotificationList> {
1602
1602
  if (this.autoRefreshSession && session.refresh_token &&
1603
1603
  session.isexpired((Date.now() + this.expiredTimespanMs)/1000)) {
1604
1604
  await this.sessionRefresh(session);
1605
1605
  }
1606
1606
 
1607
- return this.apiClient.listNotifications(session.token, limit, cacheableCursor).then((response: ApiNotificationList) => {
1607
+ return this.apiClient.listNotifications(session.token, clanId, limit, cacheableCursor).then((response: ApiNotificationList) => {
1608
1608
  var result: NotificationList = {
1609
1609
  cacheable_cursor: response.cacheable_cursor,
1610
1610
  notifications: [],
package/dist/api.gen.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface ChannelUserListChannelUser {
9
9
  }
10
10
  /** A single user-role pair. */
11
11
  export interface ClanUserListClanUser {
12
+ nick_name?: string;
12
13
  role_id?: string;
13
14
  user?: ApiUser;
14
15
  }
@@ -1116,7 +1117,7 @@ export declare class MezonApi {
1116
1117
  /** Delete one or more notifications for the current user. */
1117
1118
  deleteNotifications(bearerToken: string, ids?: Array<string>, options?: any): Promise<any>;
1118
1119
  /** Fetch list of notifications. */
1119
- listNotifications(bearerToken: string, limit?: number, clanId?: string, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
1120
+ listNotifications(bearerToken: string, clanId: string, limit?: number, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
1120
1121
  /** notification selected */
1121
1122
  getNotificationChannelSetting(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
1122
1123
  /** set notification user channel. */
package/dist/client.d.ts CHANGED
@@ -494,7 +494,7 @@ export declare class Client {
494
494
  /** List all friends for the current user. */
495
495
  listFriends(session: Session, state?: number, limit?: number, cursor?: string): Promise<Friends>;
496
496
  /** Fetch list of notifications. */
497
- listNotifications(session: Session, limit?: number, cacheableCursor?: string): Promise<NotificationList>;
497
+ listNotifications(session: Session, clanId: string, limit?: number, cacheableCursor?: string): Promise<NotificationList>;
498
498
  /** List storage objects. */
499
499
  listStorageObjects(session: Session, collection: string, userId?: string, limit?: number, cursor?: string): Promise<StorageObjectList>;
500
500
  /** Fetch storage objects. */
@@ -3072,7 +3072,7 @@ var MezonApi = class {
3072
3072
  ]);
3073
3073
  }
3074
3074
  /** Fetch list of notifications. */
3075
- listNotifications(bearerToken, limit, clanId, cacheableCursor, options = {}) {
3075
+ listNotifications(bearerToken, clanId, limit, cacheableCursor, options = {}) {
3076
3076
  const urlPath = "/v2/notification";
3077
3077
  const queryParams = /* @__PURE__ */ new Map();
3078
3078
  queryParams.set("limit", limit);
@@ -6191,12 +6191,12 @@ var Client = class {
6191
6191
  });
6192
6192
  }
6193
6193
  /** Fetch list of notifications. */
6194
- listNotifications(session, limit, cacheableCursor) {
6194
+ listNotifications(session, clanId, limit, cacheableCursor) {
6195
6195
  return __async(this, null, function* () {
6196
6196
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6197
6197
  yield this.sessionRefresh(session);
6198
6198
  }
6199
- return this.apiClient.listNotifications(session.token, limit, cacheableCursor).then((response) => {
6199
+ return this.apiClient.listNotifications(session.token, clanId, limit, cacheableCursor).then((response) => {
6200
6200
  var result = {
6201
6201
  cacheable_cursor: response.cacheable_cursor,
6202
6202
  notifications: []
@@ -3043,7 +3043,7 @@ var MezonApi = class {
3043
3043
  ]);
3044
3044
  }
3045
3045
  /** Fetch list of notifications. */
3046
- listNotifications(bearerToken, limit, clanId, cacheableCursor, options = {}) {
3046
+ listNotifications(bearerToken, clanId, limit, cacheableCursor, options = {}) {
3047
3047
  const urlPath = "/v2/notification";
3048
3048
  const queryParams = /* @__PURE__ */ new Map();
3049
3049
  queryParams.set("limit", limit);
@@ -6162,12 +6162,12 @@ var Client = class {
6162
6162
  });
6163
6163
  }
6164
6164
  /** Fetch list of notifications. */
6165
- listNotifications(session, limit, cacheableCursor) {
6165
+ listNotifications(session, clanId, limit, cacheableCursor) {
6166
6166
  return __async(this, null, function* () {
6167
6167
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
6168
6168
  yield this.sessionRefresh(session);
6169
6169
  }
6170
- return this.apiClient.listNotifications(session.token, limit, cacheableCursor).then((response) => {
6170
+ return this.apiClient.listNotifications(session.token, clanId, limit, cacheableCursor).then((response) => {
6171
6171
  var result = {
6172
6172
  cacheable_cursor: response.cacheable_cursor,
6173
6173
  notifications: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.7.97",
3
+ "version": "2.7.99",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },