mezon-js 2.10.71 → 2.10.73
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +12 -13
- package/client.ts +4 -3
- package/dist/api.gen.d.ts +2 -3
- 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
@@ -2521,9 +2521,7 @@ export interface ApiWalletLedger {
|
|
2521
2521
|
/** */
|
2522
2522
|
export interface ApiWalletLedgerList {
|
2523
2523
|
//
|
2524
|
-
|
2525
|
-
//
|
2526
|
-
prev_cursor?: string;
|
2524
|
+
count?: number;
|
2527
2525
|
//
|
2528
2526
|
wallet_ledger?: Array<ApiWalletLedger>;
|
2529
2527
|
}
|
@@ -9845,25 +9843,26 @@ export class MezonApi {
|
|
9845
9843
|
}
|
9846
9844
|
|
9847
9845
|
/** Get user status */
|
9848
|
-
listWalletLedger(
|
9849
|
-
|
9850
|
-
|
9851
|
-
|
9852
|
-
|
9853
|
-
|
9854
|
-
|
9846
|
+
listWalletLedger(bearerToken: string,
|
9847
|
+
limit?:number,
|
9848
|
+
cursor?:string,
|
9849
|
+
transactionId?:string,
|
9850
|
+
page?:number,
|
9851
|
+
options: any = {}): Promise<ApiWalletLedgerList> {
|
9852
|
+
|
9855
9853
|
const urlPath = "/v2/walletledger";
|
9856
9854
|
const queryParams = new Map<string, any>();
|
9857
9855
|
queryParams.set("limit", limit);
|
9858
9856
|
queryParams.set("cursor", cursor);
|
9859
9857
|
queryParams.set("transaction_id", transactionId);
|
9858
|
+
queryParams.set("page", page);
|
9860
9859
|
|
9861
|
-
let bodyJson: string = "";
|
9860
|
+
let bodyJson : string = "";
|
9862
9861
|
|
9863
9862
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
9864
9863
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
9865
9864
|
if (bearerToken) {
|
9866
|
-
|
9865
|
+
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
9867
9866
|
}
|
9868
9867
|
|
9869
9868
|
return Promise.race([
|
@@ -9880,7 +9879,7 @@ export class MezonApi {
|
|
9880
9879
|
setTimeout(reject, this.timeoutMs, "Request timed out.")
|
9881
9880
|
),
|
9882
9881
|
]);
|
9883
|
-
|
9882
|
+
}
|
9884
9883
|
|
9885
9884
|
/** create webhook */
|
9886
9885
|
generateWebhook(
|
package/client.ts
CHANGED
@@ -180,7 +180,7 @@ export enum ChannelType {
|
|
180
180
|
CHANNEL_TYPE_THREAD = 7,
|
181
181
|
CHANNEL_TYPE_APP = 8,
|
182
182
|
CHANNEL_TYPE_ANNOUNCEMENT = 9,
|
183
|
-
CHANNEL_TYPE_MEZON_VOICE = 10
|
183
|
+
CHANNEL_TYPE_MEZON_VOICE = 10
|
184
184
|
}
|
185
185
|
export enum ChannelStreamMode {
|
186
186
|
STREAM_MODE_CHANNEL = 2,
|
@@ -4768,7 +4768,8 @@ export class Client {
|
|
4768
4768
|
session: Session,
|
4769
4769
|
limit?: number,
|
4770
4770
|
cursor?: string,
|
4771
|
-
transactionId?: string
|
4771
|
+
transactionId?: string,
|
4772
|
+
page?: number
|
4772
4773
|
): Promise<ApiWalletLedgerList> {
|
4773
4774
|
if (
|
4774
4775
|
this.autoRefreshSession &&
|
@@ -4779,7 +4780,7 @@ export class Client {
|
|
4779
4780
|
}
|
4780
4781
|
|
4781
4782
|
return this.apiClient
|
4782
|
-
.listWalletLedger(session.token, limit, cursor, transactionId)
|
4783
|
+
.listWalletLedger(session.token, limit, cursor, transactionId, page)
|
4783
4784
|
.then((response: ApiWalletLedgerList) => {
|
4784
4785
|
return Promise.resolve(response);
|
4785
4786
|
});
|
package/dist/api.gen.d.ts
CHANGED
@@ -1458,8 +1458,7 @@ export interface ApiWalletLedger {
|
|
1458
1458
|
}
|
1459
1459
|
/** */
|
1460
1460
|
export interface ApiWalletLedgerList {
|
1461
|
-
|
1462
|
-
prev_cursor?: string;
|
1461
|
+
count?: number;
|
1463
1462
|
wallet_ledger?: Array<ApiWalletLedger>;
|
1464
1463
|
}
|
1465
1464
|
/** */
|
@@ -1978,7 +1977,7 @@ export declare class MezonApi {
|
|
1978
1977
|
/** Update user status */
|
1979
1978
|
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
|
1980
1979
|
/** Get user status */
|
1981
|
-
listWalletLedger(bearerToken: string, limit?: number, cursor?: string, transactionId?: string, options?: any): Promise<ApiWalletLedgerList>;
|
1980
|
+
listWalletLedger(bearerToken: string, limit?: number, cursor?: string, transactionId?: string, page?: number, options?: any): Promise<ApiWalletLedgerList>;
|
1982
1981
|
/** create webhook */
|
1983
1982
|
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
|
1984
1983
|
/** update webhook name by id */
|
package/dist/client.d.ts
CHANGED
@@ -633,7 +633,7 @@ export declare class Client {
|
|
633
633
|
updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
634
634
|
updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
635
635
|
getUserStatus(session: Session): Promise<ApiUserStatus>;
|
636
|
-
listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string): Promise<ApiWalletLedgerList>;
|
636
|
+
listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string, page?: number): Promise<ApiWalletLedgerList>;
|
637
637
|
listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
|
638
638
|
createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|
639
639
|
getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -6230,12 +6230,13 @@ var MezonApi = class {
|
|
6230
6230
|
]);
|
6231
6231
|
}
|
6232
6232
|
/** Get user status */
|
6233
|
-
listWalletLedger(bearerToken, limit, cursor, transactionId, options = {}) {
|
6233
|
+
listWalletLedger(bearerToken, limit, cursor, transactionId, page, options = {}) {
|
6234
6234
|
const urlPath = "/v2/walletledger";
|
6235
6235
|
const queryParams = /* @__PURE__ */ new Map();
|
6236
6236
|
queryParams.set("limit", limit);
|
6237
6237
|
queryParams.set("cursor", cursor);
|
6238
6238
|
queryParams.set("transaction_id", transactionId);
|
6239
|
+
queryParams.set("page", page);
|
6239
6240
|
let bodyJson = "";
|
6240
6241
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
6241
6242
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -10568,12 +10569,12 @@ var Client = class {
|
|
10568
10569
|
});
|
10569
10570
|
}
|
10570
10571
|
//**list wallet ledger */
|
10571
|
-
listWalletLedger(session, limit, cursor, transactionId) {
|
10572
|
+
listWalletLedger(session, limit, cursor, transactionId, page) {
|
10572
10573
|
return __async(this, null, function* () {
|
10573
10574
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10574
10575
|
yield this.sessionRefresh(session);
|
10575
10576
|
}
|
10576
|
-
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId).then((response) => {
|
10577
|
+
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId, page).then((response) => {
|
10577
10578
|
return Promise.resolve(response);
|
10578
10579
|
});
|
10579
10580
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -6196,12 +6196,13 @@ var MezonApi = class {
|
|
6196
6196
|
]);
|
6197
6197
|
}
|
6198
6198
|
/** Get user status */
|
6199
|
-
listWalletLedger(bearerToken, limit, cursor, transactionId, options = {}) {
|
6199
|
+
listWalletLedger(bearerToken, limit, cursor, transactionId, page, options = {}) {
|
6200
6200
|
const urlPath = "/v2/walletledger";
|
6201
6201
|
const queryParams = /* @__PURE__ */ new Map();
|
6202
6202
|
queryParams.set("limit", limit);
|
6203
6203
|
queryParams.set("cursor", cursor);
|
6204
6204
|
queryParams.set("transaction_id", transactionId);
|
6205
|
+
queryParams.set("page", page);
|
6205
6206
|
let bodyJson = "";
|
6206
6207
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
6207
6208
|
const fetchOptions = buildFetchOptions("GET", options, bodyJson);
|
@@ -10534,12 +10535,12 @@ var Client = class {
|
|
10534
10535
|
});
|
10535
10536
|
}
|
10536
10537
|
//**list wallet ledger */
|
10537
|
-
listWalletLedger(session, limit, cursor, transactionId) {
|
10538
|
+
listWalletLedger(session, limit, cursor, transactionId, page) {
|
10538
10539
|
return __async(this, null, function* () {
|
10539
10540
|
if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
|
10540
10541
|
yield this.sessionRefresh(session);
|
10541
10542
|
}
|
10542
|
-
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId).then((response) => {
|
10543
|
+
return this.apiClient.listWalletLedger(session.token, limit, cursor, transactionId, page).then((response) => {
|
10543
10544
|
return Promise.resolve(response);
|
10544
10545
|
});
|
10545
10546
|
});
|