mezon-js 2.9.61 → 2.9.62
Sign up to get free protection for your applications and to get access to all the features.
- package/client.ts +9 -2
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +1 -0
- package/package.json +1 -1
- package/socket.ts +2 -0
package/client.ts
CHANGED
@@ -4360,7 +4360,14 @@ export class Client {
|
|
4360
4360
|
});
|
4361
4361
|
}
|
4362
4362
|
|
4363
|
-
async listAuditLog(
|
4363
|
+
async listAuditLog(
|
4364
|
+
session: Session,
|
4365
|
+
actionLog?:string,
|
4366
|
+
userId?:string,
|
4367
|
+
clanId?:string,
|
4368
|
+
page?:number,
|
4369
|
+
pageSize?:number,
|
4370
|
+
) : Promise<MezonapiListAuditLog> {
|
4364
4371
|
if (
|
4365
4372
|
this.autoRefreshSession &&
|
4366
4373
|
session.refresh_token &&
|
@@ -4370,7 +4377,7 @@ export class Client {
|
|
4370
4377
|
}
|
4371
4378
|
|
4372
4379
|
return this.apiClient
|
4373
|
-
.listAuditLog(session.token)
|
4380
|
+
.listAuditLog(session.token, actionLog, userId, clanId, page, pageSize)
|
4374
4381
|
.then((response: MezonapiListAuditLog) => {
|
4375
4382
|
return response;
|
4376
4383
|
});
|
package/dist/client.d.ts
CHANGED
@@ -602,5 +602,5 @@ export declare class Client {
|
|
602
602
|
getPubKeys(session: Session, userIds: Array<string>): Promise<ApiGetPubKeysResponse>;
|
603
603
|
pushPubKey(session: Session, PK: ApiPubKey): Promise<ApiGetPubKeysResponse>;
|
604
604
|
getKeyServer(session: Session): Promise<ApiGetKeyServerResp>;
|
605
|
-
listAuditLog(session: Session): Promise<MezonapiListAuditLog>;
|
605
|
+
listAuditLog(session: Session, actionLog?: string, userId?: string, clanId?: string, page?: number, pageSize?: number): Promise<MezonapiListAuditLog>;
|
606
606
|
}
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -9340,12 +9340,12 @@ var Client = class {
|
|
9340
9340
|
});
|
9341
9341
|
});
|
9342
9342
|
}
|
9343
|
-
listAuditLog(session) {
|
9343
|
+
listAuditLog(session, actionLog, userId, clanId, page, pageSize) {
|
9344
9344
|
return __async(this, null, function* () {
|
9345
9345
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
9346
9346
|
yield this.sessionRefresh(session);
|
9347
9347
|
}
|
9348
|
-
return this.apiClient.listAuditLog(session.token).then((response) => {
|
9348
|
+
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, page, pageSize).then((response) => {
|
9349
9349
|
return response;
|
9350
9350
|
});
|
9351
9351
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -9311,12 +9311,12 @@ var Client = class {
|
|
9311
9311
|
});
|
9312
9312
|
});
|
9313
9313
|
}
|
9314
|
-
listAuditLog(session) {
|
9314
|
+
listAuditLog(session, actionLog, userId, clanId, page, pageSize) {
|
9315
9315
|
return __async(this, null, function* () {
|
9316
9316
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
9317
9317
|
yield this.sessionRefresh(session);
|
9318
9318
|
}
|
9319
|
-
return this.apiClient.listAuditLog(session.token).then((response) => {
|
9319
|
+
return this.apiClient.listAuditLog(session.token, actionLog, userId, clanId, page, pageSize).then((response) => {
|
9320
9320
|
return response;
|
9321
9321
|
});
|
9322
9322
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -690,6 +690,7 @@ export interface Socket {
|
|
690
690
|
onstreamingchannelleaved: (streaming_leaved_event: StreamingLeavedEvent) => void;
|
691
691
|
onpermissionset: (permission_set_event: PermissionSet) => void;
|
692
692
|
onpermissionchanged: (permission_changed_event: PermissionChangedEvent) => void;
|
693
|
+
ontokensent: (token: TokenSentEvent) => void;
|
693
694
|
}
|
694
695
|
/** Reports an error received from a socket message. */
|
695
696
|
export interface SocketError {
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -1004,6 +1004,8 @@ export interface Socket {
|
|
1004
1004
|
onpermissionset: (permission_set_event: PermissionSet) => void;
|
1005
1005
|
|
1006
1006
|
onpermissionchanged: (permission_changed_event: PermissionChangedEvent) => void;
|
1007
|
+
|
1008
|
+
ontokensent: (token: TokenSentEvent) => void;
|
1007
1009
|
}
|
1008
1010
|
|
1009
1011
|
/** Reports an error received from a socket message. */
|