mezon-js 2.9.93 → 2.9.94
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 +9 -6
- package/client.ts +3 -2
- package/dist/api.gen.d.ts +2 -1
- package/dist/client.d.ts +1 -1
- package/dist/mezon-js.cjs.js +4 -3
- package/dist/mezon-js.esm.mjs +4 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -2416,6 +2416,8 @@ export interface ApiWalletLedger {
|
|
2416
2416
|
//
|
2417
2417
|
id?: string;
|
2418
2418
|
//
|
2419
|
+
transaction_id?: string;
|
2420
|
+
//
|
2419
2421
|
user_id?: string;
|
2420
2422
|
//
|
2421
2423
|
value?: number;
|
@@ -9682,16 +9684,17 @@ pushPubKey(bearerToken: string,
|
|
9682
9684
|
}
|
9683
9685
|
|
9684
9686
|
/** Get user status */
|
9685
|
-
listWalletLedger(
|
9686
|
-
|
9687
|
-
|
9688
|
-
|
9689
|
-
|
9690
|
-
|
9687
|
+
listWalletLedger(bearerToken: string,
|
9688
|
+
limit?:number,
|
9689
|
+
cursor?:string,
|
9690
|
+
transactionId?:string,
|
9691
|
+
options: any = {}): Promise<ApiWalletLedgerList> {
|
9692
|
+
|
9691
9693
|
const urlPath = "/v2/walletledger";
|
9692
9694
|
const queryParams = new Map<string, any>();
|
9693
9695
|
queryParams.set("limit", limit);
|
9694
9696
|
queryParams.set("cursor", cursor);
|
9697
|
+
queryParams.set("transaction_id", transactionId);
|
9695
9698
|
|
9696
9699
|
let bodyJson: string = "";
|
9697
9700
|
|
package/client.ts
CHANGED
@@ -4795,7 +4795,8 @@ export class Client {
|
|
4795
4795
|
async listWalletLedger(
|
4796
4796
|
session: Session,
|
4797
4797
|
limit?: number,
|
4798
|
-
cursor?: string
|
4798
|
+
cursor?: string,
|
4799
|
+
transactionId?: string
|
4799
4800
|
): Promise<ApiWalletLedgerList> {
|
4800
4801
|
if (
|
4801
4802
|
this.autoRefreshSession &&
|
@@ -4806,7 +4807,7 @@ export class Client {
|
|
4806
4807
|
}
|
4807
4808
|
|
4808
4809
|
return this.apiClient
|
4809
|
-
.listWalletLedger(session.token, limit, cursor)
|
4810
|
+
.listWalletLedger(session.token, limit, cursor, transactionId)
|
4810
4811
|
.then((response: ApiWalletLedgerList) => {
|
4811
4812
|
return Promise.resolve(response);
|
4812
4813
|
});
|
package/dist/api.gen.d.ts
CHANGED
@@ -1404,6 +1404,7 @@ export interface ApiVoiceChannelUserList {
|
|
1404
1404
|
export interface ApiWalletLedger {
|
1405
1405
|
create_time?: string;
|
1406
1406
|
id?: string;
|
1407
|
+
transaction_id?: string;
|
1407
1408
|
user_id?: string;
|
1408
1409
|
value?: number;
|
1409
1410
|
}
|
@@ -1931,7 +1932,7 @@ export declare class MezonApi {
|
|
1931
1932
|
/** Update user status */
|
1932
1933
|
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
|
1933
1934
|
/** Get user status */
|
1934
|
-
listWalletLedger(bearerToken: string, limit?: number, cursor?: string, options?: any): Promise<ApiWalletLedgerList>;
|
1935
|
+
listWalletLedger(bearerToken: string, limit?: number, cursor?: string, transactionId?: string, options?: any): Promise<ApiWalletLedgerList>;
|
1935
1936
|
/** create webhook */
|
1936
1937
|
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
|
1937
1938
|
/** update webhook name by id */
|
package/dist/client.d.ts
CHANGED
@@ -631,5 +631,5 @@ export declare class Client {
|
|
631
631
|
listPTTChannelUsers(session: Session, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiPTTChannelUserList>;
|
632
632
|
getCustomDisplay(session: Session): Promise<ApiCustomDisplay>;
|
633
633
|
updateCustomDisplay(session: Session, request: ApiCustomDisplay): Promise<boolean>;
|
634
|
-
listWalletLedger(session: Session, limit?: number, cursor?: string): Promise<ApiWalletLedgerList>;
|
634
|
+
listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string): Promise<ApiWalletLedgerList>;
|
635
635
|
}
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -6145,11 +6145,12 @@ var MezonApi = class {
|
|
6145
6145
|
]);
|
6146
6146
|
}
|
6147
6147
|
/** Get user status */
|
6148
|
-
listWalletLedger(bearerToken, limit, cursor, options = {}) {
|
6148
|
+
listWalletLedger(bearerToken, limit, cursor, transactionId, options = {}) {
|
6149
6149
|
const urlPath = "/v2/walletledger";
|
6150
6150
|
const queryParams = /* @__PURE__ */ new Map();
|
6151
6151
|
queryParams.set("limit", limit);
|
6152
6152
|
queryParams.set("cursor", cursor);
|
6153
|
+
queryParams.set("transaction_id", transactionId);
|
6153
6154
|
let bodyJson = "";
|
6154
6155
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
6155
6156
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -10415,12 +10416,12 @@ var Client = class {
|
|
10415
10416
|
});
|
10416
10417
|
}
|
10417
10418
|
//**list wallet ledger */
|
10418
|
-
listWalletLedger(session, limit, cursor) {
|
10419
|
+
listWalletLedger(session, limit, cursor, transactionId) {
|
10419
10420
|
return __async(this, null, function* () {
|
10420
10421
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10421
10422
|
yield this.sessionRefresh(session);
|
10422
10423
|
}
|
10423
|
-
return this.apiClient.listWalletLedger(session.token, limit, cursor).then((response) => {
|
10424
|
+
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId).then((response) => {
|
10424
10425
|
return Promise.resolve(response);
|
10425
10426
|
});
|
10426
10427
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -6115,11 +6115,12 @@ var MezonApi = class {
|
|
6115
6115
|
]);
|
6116
6116
|
}
|
6117
6117
|
/** Get user status */
|
6118
|
-
listWalletLedger(bearerToken, limit, cursor, options = {}) {
|
6118
|
+
listWalletLedger(bearerToken, limit, cursor, transactionId, options = {}) {
|
6119
6119
|
const urlPath = "/v2/walletledger";
|
6120
6120
|
const queryParams = /* @__PURE__ */ new Map();
|
6121
6121
|
queryParams.set("limit", limit);
|
6122
6122
|
queryParams.set("cursor", cursor);
|
6123
|
+
queryParams.set("transaction_id", transactionId);
|
6123
6124
|
let bodyJson = "";
|
6124
6125
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
6125
6126
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -10385,12 +10386,12 @@ var Client = class {
|
|
10385
10386
|
});
|
10386
10387
|
}
|
10387
10388
|
//**list wallet ledger */
|
10388
|
-
listWalletLedger(session, limit, cursor) {
|
10389
|
+
listWalletLedger(session, limit, cursor, transactionId) {
|
10389
10390
|
return __async(this, null, function* () {
|
10390
10391
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10391
10392
|
yield this.sessionRefresh(session);
|
10392
10393
|
}
|
10393
|
-
return this.apiClient.listWalletLedger(session.token, limit, cursor).then((response) => {
|
10394
|
+
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId).then((response) => {
|
10394
10395
|
return Promise.resolve(response);
|
10395
10396
|
});
|
10396
10397
|
});
|