mezon-js 2.7.97 → 2.7.98
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 +1 -1
- package/client.ts +2 -2
- package/dist/api.gen.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +3 -3
- package/dist/mezon-js.esm.mjs +3 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -4737,8 +4737,8 @@ export class MezonApi {
|
|
4737
4737
|
|
4738
4738
|
/** Fetch list of notifications. */
|
4739
4739
|
listNotifications(bearerToken: string,
|
4740
|
+
clanId:string,
|
4740
4741
|
limit?:number,
|
4741
|
-
clanId?:string,
|
4742
4742
|
cacheableCursor?:string,
|
4743
4743
|
options: any = {}): Promise<ApiNotificationList> {
|
4744
4744
|
|
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
@@ -1116,7 +1116,7 @@ export declare class MezonApi {
|
|
1116
1116
|
/** Delete one or more notifications for the current user. */
|
1117
1117
|
deleteNotifications(bearerToken: string, ids?: Array<string>, options?: any): Promise<any>;
|
1118
1118
|
/** Fetch list of notifications. */
|
1119
|
-
listNotifications(bearerToken: string,
|
1119
|
+
listNotifications(bearerToken: string, clanId: string, limit?: number, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
|
1120
1120
|
/** notification selected */
|
1121
1121
|
getNotificationChannelSetting(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1122
1122
|
/** 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. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -3072,7 +3072,7 @@ var MezonApi = class {
|
|
3072
3072
|
]);
|
3073
3073
|
}
|
3074
3074
|
/** Fetch list of notifications. */
|
3075
|
-
listNotifications(bearerToken,
|
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: []
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -3043,7 +3043,7 @@ var MezonApi = class {
|
|
3043
3043
|
]);
|
3044
3044
|
}
|
3045
3045
|
/** Fetch list of notifications. */
|
3046
|
-
listNotifications(bearerToken,
|
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: []
|