mezon-js 2.9.39 → 2.9.40

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 CHANGED
@@ -1663,6 +1663,35 @@ export interface ApiPinMessagesList {
1663
1663
  pin_messages_list?: Array<ApiPinMessage>;
1664
1664
  }
1665
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
+
1666
1695
  /** Storage objects to get. */
1667
1696
  export interface ApiReadStorageObjectId {
1668
1697
  //The collection which stores the object.
@@ -5058,20 +5087,19 @@ export class MezonApi {
5058
5087
  }
5059
5088
 
5060
5089
  /** regist fcm device token */
5061
- registFCMDeviceToken(
5062
- bearerToken: string,
5063
- token?: string,
5064
- deviceId?: string,
5065
- platform?: string,
5066
- options: any = {}
5067
- ): Promise<any> {
5090
+ registFCMDeviceToken(bearerToken: string,
5091
+ token?:string,
5092
+ deviceId?:string,
5093
+ platform?:string,
5094
+ options: any = {}): Promise<ApiRegistFcmDeviceTokenResponse> {
5095
+
5068
5096
  const urlPath = "/v2/devicetoken";
5069
5097
  const queryParams = new Map<string, any>();
5070
5098
  queryParams.set("token", token);
5071
5099
  queryParams.set("device_id", deviceId);
5072
5100
  queryParams.set("platform", platform);
5073
5101
 
5074
- let bodyJson: string = "";
5102
+ let bodyJson : string = "";
5075
5103
 
5076
5104
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5077
5105
  const fetchOptions = buildFetchOptions("POST", options, bodyJson);
package/dist/api.gen.d.ts CHANGED
@@ -965,6 +965,23 @@ export interface ApiPinMessageRequest {
965
965
  export interface ApiPinMessagesList {
966
966
  pin_messages_list?: Array<ApiPinMessage>;
967
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
+ }
968
985
  /** Storage objects to get. */
969
986
  export interface ApiReadStorageObjectId {
970
987
  collection?: string;
@@ -1427,7 +1444,7 @@ export declare class MezonApi {
1427
1444
  /** */
1428
1445
  deleteCategoryOrder(bearerToken: string, clanId: string, options?: any): Promise<any>;
1429
1446
  /** regist fcm device token */
1430
- registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, options?: any): Promise<any>;
1447
+ registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, options?: any): Promise<ApiRegistFcmDeviceTokenResponse>;
1431
1448
  /** close direct message. */
1432
1449
  closeDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: any): Promise<any>;
1433
1450
  /** open direct message. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.9.39",
4
+ "version": "2.9.40",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"