@bcc-code/vue-bcc-chat-ui 4.3.0 → 4.4.0

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,24 +1,4 @@
1
- export type Log = {
2
- logUid: string;
3
- message: String;
4
- severity: LogSeverity;
5
- userMetadata?: Record<string, any>;
6
- timestamp: string;
7
- };
8
- export declare enum LogSeverity {
9
- DEBUG = "Debug",
10
- INFO = "Info",
11
- WARN = "Warn",
12
- ERROR = "Error"
13
- }
14
- export interface LogEntry {
15
- logUid: string;
16
- correlationUid?: string;
17
- message: string;
18
- severity: LogSeverity;
19
- userMetadata?: Record<string, any>;
20
- timestamp: string;
21
- }
1
+ import { LogEntry } from './types';
22
2
  declare class Logger {
23
3
  #private;
24
4
  constructor();
@@ -1,6 +1,5 @@
1
1
  import { BaseMessage, Group } from '@cometchat/chat-sdk-javascript';
2
2
  import { Ref } from 'vue';
3
- import { LogEntry } from './logger';
4
3
  export interface ChatInstallOptions {
5
4
  environment: Environment;
6
5
  language?: Language;
@@ -8,6 +7,7 @@ export interface ChatInstallOptions {
8
7
  accessToken?: Ref<string | null | undefined> | null | undefined | string;
9
8
  loggerCallback?: (entry: LogEntry) => void;
10
9
  }
10
+ export * from './logger';
11
11
  export interface ChatInstance {
12
12
  componentId: string;
13
13
  replyToMessage: BaseMessage | null;
@@ -73,3 +73,17 @@ export interface DispatchData {
73
73
  messageId: number;
74
74
  }
75
75
  export type ThemeMode = 'dark' | 'light';
76
+ export type LogEntry = {
77
+ logUid: string;
78
+ correlationUid?: string;
79
+ message: String;
80
+ severity: LogSeverity;
81
+ userMetadata?: Record<string, any>;
82
+ timestamp: string;
83
+ };
84
+ export declare enum LogSeverity {
85
+ DEBUG = "Debug",
86
+ INFO = "Info",
87
+ WARN = "Warn",
88
+ ERROR = "Error"
89
+ }