mezon-js 2.9.38 → 2.9.40
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +38 -8
- package/dist/api.gen.d.ts +19 -1
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -778,6 +778,8 @@ export interface ApiChannelSettingItem {
|
|
778
778
|
//
|
779
779
|
id?: string;
|
780
780
|
//
|
781
|
+
last_sent_message?: ApiChannelMessageHeader;
|
782
|
+
//
|
781
783
|
meeting_code?: string;
|
782
784
|
//
|
783
785
|
message_count?: string;
|
@@ -1661,6 +1663,35 @@ export interface ApiPinMessagesList {
|
|
1661
1663
|
pin_messages_list?: Array<ApiPinMessage>;
|
1662
1664
|
}
|
1663
1665
|
|
1666
|
+
/** */
|
1667
|
+
export interface ApiRegistFcmDeviceTokenResponse {
|
1668
|
+
//
|
1669
|
+
device_id?: string;
|
1670
|
+
//
|
1671
|
+
platform?: string;
|
1672
|
+
//
|
1673
|
+
token?: string;
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
/** */
|
1677
|
+
export interface ApiRegisterStreamingChannelRequest {
|
1678
|
+
//
|
1679
|
+
channel_id?: string;
|
1680
|
+
//
|
1681
|
+
clan_id?: string;
|
1682
|
+
}
|
1683
|
+
|
1684
|
+
/** */
|
1685
|
+
export interface ApiRegisterStreamingChannelResponse {
|
1686
|
+
//
|
1687
|
+
channel_id?: string;
|
1688
|
+
//
|
1689
|
+
clan_id?: string;
|
1690
|
+
//
|
1691
|
+
streaming_url?: string;
|
1692
|
+
}
|
1693
|
+
|
1694
|
+
|
1664
1695
|
/** Storage objects to get. */
|
1665
1696
|
export interface ApiReadStorageObjectId {
|
1666
1697
|
//The collection which stores the object.
|
@@ -5056,20 +5087,19 @@ export class MezonApi {
|
|
5056
5087
|
}
|
5057
5088
|
|
5058
5089
|
/** regist fcm device token */
|
5059
|
-
registFCMDeviceToken(
|
5060
|
-
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
|
5065
|
-
): Promise<any> {
|
5090
|
+
registFCMDeviceToken(bearerToken: string,
|
5091
|
+
token?:string,
|
5092
|
+
deviceId?:string,
|
5093
|
+
platform?:string,
|
5094
|
+
options: any = {}): Promise<ApiRegistFcmDeviceTokenResponse> {
|
5095
|
+
|
5066
5096
|
const urlPath = "/v2/devicetoken";
|
5067
5097
|
const queryParams = new Map<string, any>();
|
5068
5098
|
queryParams.set("token", token);
|
5069
5099
|
queryParams.set("device_id", deviceId);
|
5070
5100
|
queryParams.set("platform", platform);
|
5071
5101
|
|
5072
|
-
let bodyJson: string = "";
|
5102
|
+
let bodyJson : string = "";
|
5073
5103
|
|
5074
5104
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
5075
5105
|
const fetchOptions = buildFetchOptions("POST", options, bodyJson);
|
package/dist/api.gen.d.ts
CHANGED
@@ -448,6 +448,7 @@ export interface ApiChannelSettingItem {
|
|
448
448
|
channel_type?: number;
|
449
449
|
creator_id?: string;
|
450
450
|
id?: string;
|
451
|
+
last_sent_message?: ApiChannelMessageHeader;
|
451
452
|
meeting_code?: string;
|
452
453
|
message_count?: string;
|
453
454
|
parent_id?: string;
|
@@ -964,6 +965,23 @@ export interface ApiPinMessageRequest {
|
|
964
965
|
export interface ApiPinMessagesList {
|
965
966
|
pin_messages_list?: Array<ApiPinMessage>;
|
966
967
|
}
|
968
|
+
/** */
|
969
|
+
export interface ApiRegistFcmDeviceTokenResponse {
|
970
|
+
device_id?: string;
|
971
|
+
platform?: string;
|
972
|
+
token?: string;
|
973
|
+
}
|
974
|
+
/** */
|
975
|
+
export interface ApiRegisterStreamingChannelRequest {
|
976
|
+
channel_id?: string;
|
977
|
+
clan_id?: string;
|
978
|
+
}
|
979
|
+
/** */
|
980
|
+
export interface ApiRegisterStreamingChannelResponse {
|
981
|
+
channel_id?: string;
|
982
|
+
clan_id?: string;
|
983
|
+
streaming_url?: string;
|
984
|
+
}
|
967
985
|
/** Storage objects to get. */
|
968
986
|
export interface ApiReadStorageObjectId {
|
969
987
|
collection?: string;
|
@@ -1426,7 +1444,7 @@ export declare class MezonApi {
|
|
1426
1444
|
/** */
|
1427
1445
|
deleteCategoryOrder(bearerToken: string, clanId: string, options?: any): Promise<any>;
|
1428
1446
|
/** regist fcm device token */
|
1429
|
-
registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, options?: any): Promise<
|
1447
|
+
registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, options?: any): Promise<ApiRegistFcmDeviceTokenResponse>;
|
1430
1448
|
/** close direct message. */
|
1431
1449
|
closeDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: any): Promise<any>;
|
1432
1450
|
/** open direct message. */
|