@bcc-code/vue-bcc-chat-ui 1.4.1 → 1.4.2

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.
@@ -1,13 +1,14 @@
1
- export declare const connected: import("vue").ComputedRef<boolean>;
1
+ export declare const setAccessToken: (token: string | null | undefined) => void;
2
+ export declare const refreshConnection: () => Promise<void>;
3
+ export declare const connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
4
+ export declare const disconnect: (connectionName: string | null | undefined) => Promise<any>;
2
5
  export declare const reconnect: () => Promise<boolean>;
3
- export declare const connect: (connectionName?: string | null | undefined) => Promise<boolean>;
4
- export declare const disconnect: (connectionName?: string | null | undefined) => Promise<void>;
5
- export declare const setAccessToken: (token: string) => Promise<void>;
6
6
  declare const _default: {
7
- setAccessToken: (token: string) => Promise<void>;
8
- connect: (connectionName?: string | null | undefined) => Promise<boolean>;
9
- disconnect: (connectionName?: string | null | undefined) => Promise<void>;
7
+ setAccessToken: (token: string | null | undefined) => void;
8
+ connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
9
+ disconnect: (connectionName: string | null | undefined) => Promise<any>;
10
10
  reconnect: () => Promise<boolean>;
11
+ refreshConnection: () => Promise<void>;
11
12
  connected: import("vue").ComputedRef<boolean>;
12
13
  };
13
14
  export default _default;
@@ -15,12 +15,12 @@ export interface MessageInfo {
15
15
  sentAt: Date;
16
16
  }
17
17
  export declare const userChats: Ref<UserChatInfo[]>;
18
- export declare const getGroup: (groupUid: string) => Promise<Group | null>;
18
+ export declare const getGroup: (groupUid: string) => Promise<Group>;
19
19
  export declare const clearGroupChatCount: (groupUid: string) => Promise<void>;
20
20
  export declare const getGroupOnlineCount: (groupUid: string) => Promise<Object | 0>;
21
21
  export declare const getUserChats: () => Promise<Ref<UserChatInfo[]>> | undefined;
22
22
  declare const _default: {
23
- getGroup: (groupUid: string) => Promise<Group | null>;
23
+ getGroup: (groupUid: string) => Promise<Group>;
24
24
  userChats: Ref<UserChatInfo[]>;
25
25
  getUserChats: () => Promise<Ref<UserChatInfo[]>> | undefined;
26
26
  clearGroupChatCount: (groupUid: string) => Promise<void>;
@@ -10,10 +10,8 @@ export * as mobileView from "./mobileView";
10
10
  export * as connection from "./connection";
11
11
  export * as data from "./data";
12
12
  export * as environment from "./environment";
13
- export * as login from "./login";
14
13
  declare const _default: {
15
14
  install: (app: any, options: ChatInstallOptions) => Promise<void>;
16
- initialized: import("vue").ComputedRef<boolean>;
17
15
  environment: {
18
16
  install: (_: any, environment: string) => void;
19
17
  setCurrentEnvironment: (environment: string | null) => import("./environment").ChatEnvironmentConfig;
@@ -29,26 +27,21 @@ declare const _default: {
29
27
  install: (app: any) => Promise<void>;
30
28
  switchView: () => void;
31
29
  isMobileView: any;
32
- watchAndApplyStyle: typeof import("./mobileView").watchAndApplyStyle;
33
30
  };
34
31
  connection: {
35
- setAccessToken: (token: string) => Promise<void>;
36
- connect: (connectionName?: string | null | undefined) => Promise<boolean>;
37
- disconnect: (connectionName?: string | null | undefined) => Promise<void>;
32
+ setAccessToken: (token: string | null | undefined) => void;
33
+ connect: (connectionName: string | null | undefined) => Promise<null | undefined>;
34
+ disconnect: (connectionName: string | null | undefined) => Promise<any>;
38
35
  reconnect: () => Promise<boolean>;
36
+ refreshConnection: () => Promise<void>;
39
37
  connected: import("vue").ComputedRef<boolean>;
40
38
  };
41
39
  data: {
42
- getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group | null>;
40
+ getGroup: (groupUid: string) => Promise<import("@cometchat/chat-sdk-javascript").Group>;
43
41
  userChats: Ref<import("./data").UserChatInfo[]>;
44
42
  getUserChats: () => Promise<Ref<import("./data").UserChatInfo[]>> | undefined;
45
43
  clearGroupChatCount: (groupUid: string) => Promise<void>;
46
44
  getGroupOnlineCount: (groupUid: string) => Promise<Object | 0>;
47
45
  };
48
- login: {
49
- loggedIn: Ref<boolean>;
50
- login: (accessToken?: string | null | undefined) => Promise<boolean | undefined>;
51
- logout: () => Promise<boolean>;
52
- };
53
46
  };
54
47
  export default _default;
@@ -13,6 +13,5 @@ declare const _default: {
13
13
  install: (app: any) => Promise<void>;
14
14
  switchView: () => void;
15
15
  isMobileView: any;
16
- watchAndApplyStyle: typeof watchAndApplyStyle;
17
16
  };
18
17
  export default _default;
@@ -1,2 +1,4 @@
1
- export declare const clearToken: () => Promise<void>;
1
+ export interface TokenResponse {
2
+ token: string;
3
+ }
2
4
  export declare const getToken: (authToken: string, chatApiEndpoint: string) => Promise<string | null>;
@@ -1,6 +1,5 @@
1
1
  export declare const init: () => Promise<void>;
2
2
  declare const _default: {
3
- initialized: import("vue").ComputedRef<boolean>;
4
3
  init: () => Promise<void>;
5
4
  getUIKitSettings: () => import("@cometchat/chat-uikit-vue").UIKitSettings;
6
5
  };