stream-chat
Advanced tools
Comparing version 5.5.0 to 5.6.0
@@ -825,10 +825,3 @@ /// <reference types="node" /> | ||
} & { | ||
args?: string | undefined; /** | ||
* connectUser - Set the current user and open a WebSocket connection | ||
* | ||
* @param {OwnUserResponse<ChannelType, CommandType, UserType> | UserResponse<UserType>} user Data about this user. IE {name: "john"} | ||
* @param {TokenOrProvider} userTokenOrProvider Token or provider | ||
* | ||
* @return {ConnectAPIResponse<ChannelType, CommandType, UserType>} Returns a promise that resolves when the connection is setup | ||
*/ | ||
args?: string | undefined; | ||
channel?: import("./types").ChannelResponse<ChannelType, CommandType, UserType> | undefined; | ||
@@ -835,0 +828,0 @@ cid?: string | undefined; |
@@ -126,3 +126,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
created_at?: string; | ||
review_details?: Object; | ||
details?: Object; | ||
review_result?: string; | ||
@@ -773,2 +773,3 @@ reviewed_at?: string; | ||
export declare type FlagReportsFiltersOptions = { | ||
channel_cid?: string; | ||
is_reviewed?: boolean; | ||
@@ -779,2 +780,3 @@ message_id?: string; | ||
reviewed_by?: string; | ||
team?: string; | ||
user_id?: string; | ||
@@ -793,2 +795,6 @@ }; | ||
} & { | ||
channel_cid?: RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['channel_cid']>, '$eq' | '$in'>> | PrimitiveFilter<FlagReportsFiltersOptions['channel_cid']>; | ||
} & { | ||
team?: RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['team']>, '$eq' | '$in'>> | PrimitiveFilter<FlagReportsFiltersOptions['team']>; | ||
} & { | ||
[Key in keyof Omit<FlagReportsFiltersOptions, 'report_id' | 'user_id' | 'message_id' | 'review_result' | 'reviewed_by'>]: RequireOnlyOne<QueryFilter<FlagReportsFiltersOptions[Key]>> | PrimitiveFilter<FlagReportsFiltersOptions[Key]>; | ||
@@ -997,5 +1003,7 @@ }>; | ||
fields?: Field[]; | ||
file_size?: number | string; | ||
footer?: string; | ||
footer_icon?: string; | ||
image_url?: string; | ||
mime_type?: string; | ||
og_scrape_url?: string; | ||
@@ -1002,0 +1010,0 @@ original_height?: number; |
{ | ||
"name": "stream-chat", | ||
"version": "5.5.0", | ||
"version": "5.6.0", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -51,2 +51,3 @@ "author": "GetStream", | ||
"@babel/core": "^7.16.0", | ||
"@babel/eslint-parser": "^7.17.0", | ||
"@babel/node": "^7.16.0", | ||
@@ -66,2 +67,3 @@ "@babel/plugin-proposal-class-properties": "^7.16.0", | ||
"@rollup/plugin-node-resolve": "^11.2.0", | ||
"@rollup/plugin-replace": "^3.0.1", | ||
"@types/babel__core": "^7.1.16", | ||
@@ -83,3 +85,2 @@ "@types/base64-js": "^1.3.0", | ||
"@typescript-eslint/parser": "^4.17.0", | ||
"babel-eslint": "^10.1.0", | ||
"chai": "^4.3.4", | ||
@@ -104,3 +105,2 @@ "chai-arrays": "^2.2.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-replace": "^2.1.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
@@ -107,0 +107,0 @@ "sinon": "^12.0.1", |
@@ -921,2 +921,3 @@ import { ChannelState } from './channel_state'; | ||
if (message.silent) return false; | ||
if (message.parent_id && !message.show_in_channel) return false; | ||
if (message.user?.id === this.getClient().userID) return false; | ||
@@ -923,0 +924,0 @@ if (message.user?.id && this.getClient().userMuteStatus(message.user.id)) return false; |
@@ -174,2 +174,4 @@ import axios, { AxiosRequestConfig, CancelTokenSource } from 'axios'; | ||
this.connectionID = event.connection_id; | ||
// @ts-expect-error | ||
this.client.dispatchEvent(event); | ||
this._poll(); | ||
@@ -176,0 +178,0 @@ if (reconnect) { |
@@ -165,3 +165,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
created_at?: string; | ||
review_details?: Object; | ||
details?: Object; | ||
review_result?: string; | ||
@@ -1093,2 +1093,3 @@ reviewed_at?: string; | ||
export type FlagReportsFiltersOptions = { | ||
channel_cid?: string; | ||
is_reviewed?: boolean; | ||
@@ -1099,2 +1100,3 @@ message_id?: string; | ||
reviewed_by?: string; | ||
team?: string; | ||
user_id?: string; | ||
@@ -1125,2 +1127,10 @@ }; | ||
} & { | ||
channel_cid?: | ||
| RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['channel_cid']>, '$eq' | '$in'>> | ||
| PrimitiveFilter<FlagReportsFiltersOptions['channel_cid']>; | ||
} & { | ||
team?: | ||
| RequireOnlyOne<Pick<QueryFilter<FlagReportsFiltersOptions['team']>, '$eq' | '$in'>> | ||
| PrimitiveFilter<FlagReportsFiltersOptions['team']>; | ||
} & { | ||
[Key in keyof Omit< | ||
@@ -1440,5 +1450,7 @@ FlagReportsFiltersOptions, | ||
fields?: Field[]; | ||
file_size?: number | string; | ||
footer?: string; | ||
footer_icon?: string; | ||
image_url?: string; | ||
mime_type?: string; | ||
og_scrape_url?: string; | ||
@@ -1445,0 +1457,0 @@ original_height?: number; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4242293
47455