@koredev/kore-web-sdk 10.0.0-rc.8e50d16
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/dist/a.js +2 -0
- package/dist/components/chatwindow/chatWindow.d.ts +249 -0
- package/dist/components/chatwindow/config/kore-config.d.ts +2 -0
- package/dist/components/widgets/config/kore-widgets-config.d.ts +8 -0
- package/dist/components/widgets/kore-widgets.d.ts +113 -0
- package/dist/hot/hot-update.js +47 -0
- package/dist/hot/hot-update.js.map +1 -0
- package/dist/hot/hot-update.json +1 -0
- package/dist/index_esm.d.ts +27 -0
- package/dist/index_plugins/AzureSTT_umd.d.ts +2 -0
- package/dist/index_plugins/AzureTTS_umd.d.ts +2 -0
- package/dist/index_plugins/BrowserTTS_umd.d.ts +2 -0
- package/dist/index_plugins/KoreAWSST_umd.d.ts +2 -0
- package/dist/index_plugins/KoreDesktopNotification_umd.d.ts +2 -0
- package/dist/index_plugins/SearchSuggestions_umd.d.ts +2 -0
- package/dist/index_plugins/WebKitSTT_umd.d.ts +2 -0
- package/dist/index_plugins/agentDesktop_umd.d.ts +2 -0
- package/dist/index_plugins/googleSTT_umd.d.ts +2 -0
- package/dist/index_plugins/googleTTS_umd.d.ts +2 -0
- package/dist/index_plugins/graphTemplates_umd.d.ts +2 -0
- package/dist/index_plugins/korepicker_umd.d.ts +2 -0
- package/dist/index_umd_chat.d.ts +3 -0
- package/dist/index_umd_widgets.d.ts +3 -0
- package/dist/kore-web-sdk.esm.browser.js +1 -0
- package/dist/kore-web-sdk.esm.browser.js.map +1 -0
- package/dist/plugins/agentDesktop/agentdesktop.d.ts +20 -0
- package/dist/plugins/desktopNotifications/desktopnotifications.d.ts +10 -0
- package/dist/plugins/fileUploader/fileUploader.d.ts +144 -0
- package/dist/plugins/graphTemplatesPlugin.d.ts +20 -0
- package/dist/plugins/i18n.d.ts +28 -0
- package/dist/plugins/korePickers.d.ts +172 -0
- package/dist/plugins/searchSuggestions/searchSuggestions.d.ts +75 -0
- package/dist/plugins/speechToText/AzureSTT/AzureSTT.d.ts +19 -0
- package/dist/plugins/speechToText/BaseSTT.d.ts +8 -0
- package/dist/plugins/speechToText/GoogleSTT/GoogleSTT.d.ts +48 -0
- package/dist/plugins/speechToText/GoogleSTT/recorder.d.ts +21 -0
- package/dist/plugins/speechToText/WebKitSTT/WebKitSTT.d.ts +32 -0
- package/dist/plugins/textToSpeech/AzureTTS/AzureTTS.d.ts +22 -0
- package/dist/plugins/textToSpeech/BaseTTS.d.ts +8 -0
- package/dist/plugins/textToSpeech/BrowserTTS/BrowserTTS.d.ts +15 -0
- package/dist/plugins/textToSpeech/GoogleTTS/GoogleTTS.d.ts +32 -0
- package/dist/plugins/textToSpeech/KoreAWSPolly/kore-aws-polly.d.ts +22 -0
- package/dist/templatemanager/templateManager.d.ts +11 -0
- package/dist/templatemanager/templates/advancedListTemplate/advancedListTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/advancedMultiSelect/advancedMultiSelect.d.ts +7 -0
- package/dist/templatemanager/templates/barChartTemplate/barChartTemplate.d.ts +9 -0
- package/dist/templatemanager/templates/button/buttonTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/cardTemplate/cardTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/carouselTemplate/carouselTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/checkBoxesTemplate/checkBoxesTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/clockPicker/clockPicker.d.ts +12 -0
- package/dist/templatemanager/templates/datePicker/datePicker.d.ts +12 -0
- package/dist/templatemanager/templates/dateRangePicker/dateRangePicker.d.ts +12 -0
- package/dist/templatemanager/templates/dropdownTemplate/dropdownTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/formTemplate/formTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/iframeTemplate/iframeTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/likeDislikeTemplate/likeDislikeTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/lineChartTemplate/lineChartTemplate.d.ts +9 -0
- package/dist/templatemanager/templates/listTemplate/listTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/listViewTemplate/listViewTemplate.d.ts +9 -0
- package/dist/templatemanager/templates/listWidgetTemplate/listWidgetTemplate.d.ts +9 -0
- package/dist/templatemanager/templates/messageTemplate/messageTemplate.d.ts +6 -0
- package/dist/templatemanager/templates/miniTableTemplate/miniTableTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/pieChartTemplate/pieChartTemplate.d.ts +9 -0
- package/dist/templatemanager/templates/quickReplyTemplate/quickReplyTemplate.d.ts +11 -0
- package/dist/templatemanager/templates/radioOptionPicker/radioOptionPicker.d.ts +10 -0
- package/dist/templatemanager/templates/ratingTemplate/ratingTemplate.d.ts +8 -0
- package/dist/templatemanager/templates/systemTemplate/systemTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/tableListTemplate/tableListTemplate.d.ts +8 -0
- package/dist/templatemanager/templates/tableTemplate/tableTemplate.d.ts +7 -0
- package/dist/templatemanager/templates/taskPickerTemplate/taskPickerTemplate.d.ts +10 -0
- package/dist/templatemanager/templates/templateAttachment/templateAttachment.d.ts +7 -0
- package/dist/umd/kore-web-sdk-umd-chat.min.js +1 -0
- package/dist/umd/kore-web-sdk-umd-widgets.js +1 -0
- package/dist/umd/plugins/agent-desktop-umd.js +1 -0
- package/dist/umd/plugins/azure-stt-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/azure-tts-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/browser-tts-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/google-stt-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/google-tts-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/kore-desktop-notification-umd.js +1 -0
- package/dist/umd/plugins/kore-graph-templates-plugin-umd.js +1 -0
- package/dist/umd/plugins/kore-picker-plugin-umd.js +1 -0
- package/dist/umd/plugins/koreawspolly-st-umd-plugin-umd.js +1 -0
- package/dist/umd/plugins/search-suggestions-umd.js +1 -0
- package/dist/umd/plugins/webapi-stt-plugin-umd.js +1 -0
- package/dist/utils/EventEmiter.d.ts +11 -0
- package/package.json +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @ignore */
|
|
2
|
+
declare class AgentDesktopPlugin {
|
|
3
|
+
name: any;
|
|
4
|
+
config: any;
|
|
5
|
+
agentDesktopInfo: any;
|
|
6
|
+
$: any;
|
|
7
|
+
isTyping: boolean;
|
|
8
|
+
typingTimer: any;
|
|
9
|
+
stopTypingInterval: number;
|
|
10
|
+
isTabActive: boolean;
|
|
11
|
+
isReadRecipetSent: boolean;
|
|
12
|
+
constructor(config?: any);
|
|
13
|
+
onHostCreate(): void;
|
|
14
|
+
onInit(): void;
|
|
15
|
+
appendVideoAudioElemnts(): void;
|
|
16
|
+
extend(target: any, source: any): any;
|
|
17
|
+
sendStopTypingEvent(): void;
|
|
18
|
+
removeEmptyBubblesInTemplate(): void;
|
|
19
|
+
}
|
|
20
|
+
export default AgentDesktopPlugin;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import './fileUploader.scss';
|
|
2
|
+
declare class KoreFileUploaderPlugin {
|
|
3
|
+
name: string;
|
|
4
|
+
filetypes: any;
|
|
5
|
+
allowedFileTypes: any;
|
|
6
|
+
appConsts: any;
|
|
7
|
+
fileToken: any;
|
|
8
|
+
boundary: any;
|
|
9
|
+
prevRange: any;
|
|
10
|
+
sel1: any;
|
|
11
|
+
fileUploaderCounter: any;
|
|
12
|
+
xhrValue: any;
|
|
13
|
+
xhr: any;
|
|
14
|
+
private _conc;
|
|
15
|
+
private _mdat;
|
|
16
|
+
_fields: any[];
|
|
17
|
+
attachmentFileId: any;
|
|
18
|
+
hostInstance: any;
|
|
19
|
+
ele: any;
|
|
20
|
+
innerText: any;
|
|
21
|
+
config: any;
|
|
22
|
+
options: any;
|
|
23
|
+
$element: any;
|
|
24
|
+
chatInitialize: any;
|
|
25
|
+
constructor();
|
|
26
|
+
onInit(): void;
|
|
27
|
+
bindEvents(): void;
|
|
28
|
+
setCaretEnd(_this: any): void;
|
|
29
|
+
onHostCreate(): void;
|
|
30
|
+
appendFileUploaderElementToChatwindow(): void;
|
|
31
|
+
convertFiles(_this: any, _file: any, customFileName: undefined): void;
|
|
32
|
+
getFileToken(_obj: any, _file: any, recState: any): void;
|
|
33
|
+
getUID(pattern: string | undefined): string;
|
|
34
|
+
getDataURL(src: CanvasImageSource): any;
|
|
35
|
+
acceptAndUploadFile(_this: any, file: Blob, recState: any): void;
|
|
36
|
+
getfileuploadConf(_recState: {
|
|
37
|
+
fileType: any;
|
|
38
|
+
name: any;
|
|
39
|
+
}): any;
|
|
40
|
+
notifyFlie(_this: this, _recState: {
|
|
41
|
+
resulttype: any;
|
|
42
|
+
mediaName: any;
|
|
43
|
+
type: any;
|
|
44
|
+
name: any;
|
|
45
|
+
componentSize: any;
|
|
46
|
+
}, _tofileId: undefined): void;
|
|
47
|
+
onComponentReady(_this: any, data: any): void;
|
|
48
|
+
acceptFileRecording(_this: this, _recState: any, ele: any): void;
|
|
49
|
+
notifyfileCmpntRdy(_this: any, _recState: {
|
|
50
|
+
resulttype: any;
|
|
51
|
+
mediaName: any;
|
|
52
|
+
type: any;
|
|
53
|
+
name: any;
|
|
54
|
+
}, _tofileId: undefined): void;
|
|
55
|
+
initiateRcorder(_recState: any, ele: any): void;
|
|
56
|
+
onFileToUploaded(_this: this, evt: {
|
|
57
|
+
params: any;
|
|
58
|
+
}, _recState: any): void;
|
|
59
|
+
onUploadError(_this: any, evt: any, _recState: any): void;
|
|
60
|
+
onError(): void;
|
|
61
|
+
MultipartData(): void;
|
|
62
|
+
MultipartDataAppend(key: string, value: {
|
|
63
|
+
data: any;
|
|
64
|
+
fileName: any;
|
|
65
|
+
}): void;
|
|
66
|
+
MultipartDatatoString(): string;
|
|
67
|
+
Uploader(element: any, options: any, z: this): void;
|
|
68
|
+
startUpload(_this: {
|
|
69
|
+
options: {
|
|
70
|
+
url: any;
|
|
71
|
+
headers: {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
};
|
|
74
|
+
data: {
|
|
75
|
+
[x: string]: any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}): void;
|
|
79
|
+
startChunksUpload(_this: {
|
|
80
|
+
options: {
|
|
81
|
+
tokenUrl: any;
|
|
82
|
+
headers: {
|
|
83
|
+
[x: string]: any;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}): void;
|
|
87
|
+
getConnection(_this: any): any;
|
|
88
|
+
getHTTPConnecton(): any;
|
|
89
|
+
HttpRequest(): any;
|
|
90
|
+
progressListener(_this: any, evt: any): void;
|
|
91
|
+
loadListener(_this: {
|
|
92
|
+
events: {
|
|
93
|
+
success: {
|
|
94
|
+
params: {
|
|
95
|
+
fileId: any;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
$element: {
|
|
100
|
+
trigger: (arg0: any) => void;
|
|
101
|
+
};
|
|
102
|
+
}, evt: {
|
|
103
|
+
target: {
|
|
104
|
+
response: string;
|
|
105
|
+
};
|
|
106
|
+
}): void;
|
|
107
|
+
errorListener(_this: {
|
|
108
|
+
events: {
|
|
109
|
+
error: {
|
|
110
|
+
params: any;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
$element: {
|
|
114
|
+
trigger: (arg0: any) => void;
|
|
115
|
+
};
|
|
116
|
+
}, evt: any): void;
|
|
117
|
+
initUploadChunk(_this: any): void;
|
|
118
|
+
uploadChunk(_this: {
|
|
119
|
+
options: {
|
|
120
|
+
chunkUrl: any;
|
|
121
|
+
headers: {
|
|
122
|
+
[x: string]: any;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}): void;
|
|
126
|
+
commitFile(_this: {
|
|
127
|
+
options: {
|
|
128
|
+
chunkUrl: string;
|
|
129
|
+
headers: {
|
|
130
|
+
[x: string]: any;
|
|
131
|
+
};
|
|
132
|
+
data: {
|
|
133
|
+
[x: string]: any;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
}): void;
|
|
137
|
+
setOptions(_this: {
|
|
138
|
+
options: any;
|
|
139
|
+
}, opts: any): {
|
|
140
|
+
options: any;
|
|
141
|
+
};
|
|
142
|
+
getTemplateString(): string;
|
|
143
|
+
}
|
|
144
|
+
export default KoreFileUploaderPlugin;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Graph template plugin class
|
|
3
|
+
*
|
|
4
|
+
* @decorator Class
|
|
5
|
+
*/
|
|
6
|
+
declare class GraphTemplatesPlugin {
|
|
7
|
+
name: string;
|
|
8
|
+
config: {
|
|
9
|
+
graphLib: string;
|
|
10
|
+
};
|
|
11
|
+
hostInstance: any;
|
|
12
|
+
constructor(config: any);
|
|
13
|
+
onHostCreate(): void;
|
|
14
|
+
onInit(): void;
|
|
15
|
+
/**
|
|
16
|
+
* To install the pickers templates
|
|
17
|
+
*/
|
|
18
|
+
installPickerTemplates(): void;
|
|
19
|
+
}
|
|
20
|
+
export default GraphTemplatesPlugin;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare class Korei18nPlugin {
|
|
2
|
+
static config: {
|
|
3
|
+
rtlLanguages: string[];
|
|
4
|
+
availableLanguages: string[];
|
|
5
|
+
defaultLanguage: string;
|
|
6
|
+
languageStrings: {
|
|
7
|
+
ar: {
|
|
8
|
+
message: string;
|
|
9
|
+
connecting: string;
|
|
10
|
+
reconnecting: string;
|
|
11
|
+
entertosend: string;
|
|
12
|
+
endofchat: string;
|
|
13
|
+
loadinghistory: string;
|
|
14
|
+
sendText: string;
|
|
15
|
+
closeText: string;
|
|
16
|
+
expandText: string;
|
|
17
|
+
minimizeText: string;
|
|
18
|
+
reconnectText: string;
|
|
19
|
+
attachmentText: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const _default: {
|
|
25
|
+
name: string;
|
|
26
|
+
plugin: typeof Korei18nPlugin;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KorePicker plugin classs
|
|
3
|
+
*
|
|
4
|
+
* @decorator Class
|
|
5
|
+
*/
|
|
6
|
+
declare class KorePickersPlugin {
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* KorePicker configuration
|
|
10
|
+
*/
|
|
11
|
+
config: {
|
|
12
|
+
/**
|
|
13
|
+
* To set the clock widget configuration
|
|
14
|
+
*/
|
|
15
|
+
clock: {
|
|
16
|
+
/**
|
|
17
|
+
* To append clock picker icon to the footer
|
|
18
|
+
*/
|
|
19
|
+
showOnFooter: boolean;
|
|
20
|
+
text: string;
|
|
21
|
+
/**
|
|
22
|
+
* Title to display
|
|
23
|
+
*/
|
|
24
|
+
title: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* To set the daterange widget configurations
|
|
28
|
+
*/
|
|
29
|
+
daterange: {
|
|
30
|
+
/**
|
|
31
|
+
* To append datepicker icon to the footer
|
|
32
|
+
*/
|
|
33
|
+
showOnFooter: boolean;
|
|
34
|
+
text: string;
|
|
35
|
+
/**
|
|
36
|
+
* Title to display
|
|
37
|
+
*/
|
|
38
|
+
title: string;
|
|
39
|
+
/**
|
|
40
|
+
* TO set the format of date
|
|
41
|
+
*/
|
|
42
|
+
format: string;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies start date for range selection
|
|
45
|
+
*/
|
|
46
|
+
startDate: string;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies end date for range selection
|
|
49
|
+
*/
|
|
50
|
+
endDate: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* To set the datepicker widget configuration
|
|
54
|
+
*/
|
|
55
|
+
date: {
|
|
56
|
+
/**
|
|
57
|
+
* To append datepicker icon to the footer
|
|
58
|
+
*/
|
|
59
|
+
showOnFooter: boolean;
|
|
60
|
+
text: string;
|
|
61
|
+
/**
|
|
62
|
+
* Title to display
|
|
63
|
+
*/
|
|
64
|
+
title: string;
|
|
65
|
+
/**
|
|
66
|
+
* Date format
|
|
67
|
+
*/
|
|
68
|
+
format: string;
|
|
69
|
+
/**
|
|
70
|
+
* Specifies start date for selection
|
|
71
|
+
*/
|
|
72
|
+
startDate: string;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies end date for selection
|
|
75
|
+
*/
|
|
76
|
+
endDate: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* To show the task menu
|
|
80
|
+
*/
|
|
81
|
+
task: {
|
|
82
|
+
/**
|
|
83
|
+
* To append task icon to the footer
|
|
84
|
+
*/
|
|
85
|
+
showOnFooter: boolean;
|
|
86
|
+
tasks: {
|
|
87
|
+
/**
|
|
88
|
+
* Title of the task
|
|
89
|
+
*/
|
|
90
|
+
title: string;
|
|
91
|
+
/**
|
|
92
|
+
* Icon for the task
|
|
93
|
+
*/
|
|
94
|
+
icon: string;
|
|
95
|
+
/**
|
|
96
|
+
* To send the payload to the bot
|
|
97
|
+
*/
|
|
98
|
+
postback: {
|
|
99
|
+
/**
|
|
100
|
+
* Message to be displayed after selecting the task
|
|
101
|
+
*/
|
|
102
|
+
title: string;
|
|
103
|
+
/**
|
|
104
|
+
* Value sent to bot as payload
|
|
105
|
+
*/
|
|
106
|
+
value: string;
|
|
107
|
+
};
|
|
108
|
+
}[];
|
|
109
|
+
/**
|
|
110
|
+
* Heading for the task picker
|
|
111
|
+
*/
|
|
112
|
+
heading: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Show the radio options
|
|
116
|
+
*/
|
|
117
|
+
radiooption: {
|
|
118
|
+
/**
|
|
119
|
+
* To append radio option picker icon to the footer
|
|
120
|
+
*/
|
|
121
|
+
showOnFooter: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Heading to be displayed
|
|
124
|
+
*/
|
|
125
|
+
heading: string;
|
|
126
|
+
radioOptions: {
|
|
127
|
+
/**
|
|
128
|
+
* Title for the task
|
|
129
|
+
*/
|
|
130
|
+
title: string;
|
|
131
|
+
/**
|
|
132
|
+
* Description for the task
|
|
133
|
+
*/
|
|
134
|
+
value: string;
|
|
135
|
+
/**
|
|
136
|
+
* Send payload options to the bot
|
|
137
|
+
*/
|
|
138
|
+
postback: {
|
|
139
|
+
/**
|
|
140
|
+
* Message to be displayed after selection of radio option
|
|
141
|
+
*/
|
|
142
|
+
title: string;
|
|
143
|
+
/**
|
|
144
|
+
* Value that is sent to bot as payload
|
|
145
|
+
*/
|
|
146
|
+
value: string;
|
|
147
|
+
};
|
|
148
|
+
}[];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
pickerHTML: any;
|
|
152
|
+
hostInstance: any;
|
|
153
|
+
constructor(pickerConfig: any);
|
|
154
|
+
onHostCreate(): void;
|
|
155
|
+
onInit(): void;
|
|
156
|
+
installPickerTemplates(): void;
|
|
157
|
+
appendPickersToChatWindow(): void;
|
|
158
|
+
appendPickerHTMLtoChatWindowFooter(pickerHTML: any): void;
|
|
159
|
+
getClockPickerTemplateString(): string;
|
|
160
|
+
getDatePickerTemplateString: () => string;
|
|
161
|
+
getDateRangePickerTemplateString: () => string;
|
|
162
|
+
getTaskPickerTemplateString: () => string;
|
|
163
|
+
getRadioOptionPickerTemplateString: () => string;
|
|
164
|
+
bindEvents(element: any): void;
|
|
165
|
+
showClockPicker: (options?: any) => void;
|
|
166
|
+
showDatePicker: (options?: any) => void;
|
|
167
|
+
showDateRangePicker: (options?: any) => void;
|
|
168
|
+
showRadioOptionPicker: (options?: any) => void;
|
|
169
|
+
showTaskPicker: (options?: any) => void;
|
|
170
|
+
extend(target: any, source: any): any;
|
|
171
|
+
}
|
|
172
|
+
export default KorePickersPlugin;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import './searchSuggestions.scss';
|
|
2
|
+
/**
|
|
3
|
+
* Suggestions plugin classs
|
|
4
|
+
*
|
|
5
|
+
* @decorator Class
|
|
6
|
+
*/
|
|
7
|
+
declare class SearchSuggestionsPlugin {
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* Suggestions Plugin configuration
|
|
11
|
+
*/
|
|
12
|
+
config: {
|
|
13
|
+
typeahead: {
|
|
14
|
+
enable: boolean;
|
|
15
|
+
};
|
|
16
|
+
suggestions: {
|
|
17
|
+
enable: boolean;
|
|
18
|
+
querySuggestionsLimit: number;
|
|
19
|
+
};
|
|
20
|
+
botOptions: {
|
|
21
|
+
koreAPIUrl: string;
|
|
22
|
+
API_KEY: string;
|
|
23
|
+
userMailId: string;
|
|
24
|
+
lang: string;
|
|
25
|
+
isDev: boolean;
|
|
26
|
+
};
|
|
27
|
+
containerClasses: {
|
|
28
|
+
chatWindowClass: string;
|
|
29
|
+
chatBodyClass: string;
|
|
30
|
+
chatInputClass: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
options: any;
|
|
34
|
+
containers: any;
|
|
35
|
+
suggestionPSObj: any;
|
|
36
|
+
hostInstance: any;
|
|
37
|
+
enteredQuery: string;
|
|
38
|
+
isQueryEntered: boolean;
|
|
39
|
+
constructor(suggestionConfig: any);
|
|
40
|
+
onHostCreate(): void;
|
|
41
|
+
onInit(): void;
|
|
42
|
+
getAppDetails(): void;
|
|
43
|
+
getWebsdkAPICall(options: any, callback: any): JQuery.jqXHR<any>;
|
|
44
|
+
getAccesToken(): void;
|
|
45
|
+
getSearchInterface(): void;
|
|
46
|
+
getSearchInterfaceAPICall(callback: any): JQuery.jqXHR<any>;
|
|
47
|
+
getJWTGrantAPICall(options: any, callback: any): JQuery.jqXHR<any>;
|
|
48
|
+
getAutoSuggestionTemplate: () => string;
|
|
49
|
+
bindEvents(): void;
|
|
50
|
+
setCaret(): void;
|
|
51
|
+
suggestionSelectedByNavigationKeys(me: any, e: any): void;
|
|
52
|
+
getUpArrowSuggestion(me: any): void;
|
|
53
|
+
getDownArrowSuggestion(me: any): void;
|
|
54
|
+
getPreviouslyEnteredData(me: any): void;
|
|
55
|
+
debounce(func: any, timeout?: number): (...args: any) => void;
|
|
56
|
+
extend(target: any, source: any): any;
|
|
57
|
+
getSuggestionsPayload(query: any): {
|
|
58
|
+
payload: {
|
|
59
|
+
query: any;
|
|
60
|
+
maxNumOfResults: any;
|
|
61
|
+
userId: any;
|
|
62
|
+
streamId: any;
|
|
63
|
+
lang: string;
|
|
64
|
+
isDev: any;
|
|
65
|
+
indexPipelineId: any;
|
|
66
|
+
};
|
|
67
|
+
headers: any;
|
|
68
|
+
};
|
|
69
|
+
getSuggestions(query: any): void;
|
|
70
|
+
bindSuggestionClickEvent(me: any): void;
|
|
71
|
+
getSuggestionsAPICall(query: any, callback: any): JQuery.jqXHR<any>;
|
|
72
|
+
getTypeaHead(suggestions: any): false | undefined;
|
|
73
|
+
appendTypeahead(me: any, $suggest: any, needle: any, suggestions: any): void;
|
|
74
|
+
}
|
|
75
|
+
export default SearchSuggestionsPlugin;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import BaseSTT from '../BaseSTT';
|
|
2
|
+
export interface AzureSTTConfig {
|
|
3
|
+
key: string;
|
|
4
|
+
region: string;
|
|
5
|
+
}
|
|
6
|
+
declare class AzureSTT extends BaseSTT {
|
|
7
|
+
name: string;
|
|
8
|
+
private speechConfig;
|
|
9
|
+
private speechRecognizer;
|
|
10
|
+
config: AzureSTTConfig;
|
|
11
|
+
constructor(mainconfig: AzureSTTConfig);
|
|
12
|
+
onHostCreate(): void;
|
|
13
|
+
onInit(): void;
|
|
14
|
+
onRecordButtonClick(): void;
|
|
15
|
+
stop(): void;
|
|
16
|
+
speechToText(): Promise<unknown>;
|
|
17
|
+
setCaretEnd(_this: any): void;
|
|
18
|
+
}
|
|
19
|
+
export default AzureSTT;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import BaseSTT from "../BaseSTT";
|
|
2
|
+
export interface GoogleSTTConfig {
|
|
3
|
+
key: string;
|
|
4
|
+
languageCode: string;
|
|
5
|
+
}
|
|
6
|
+
declare class GoogleSTT extends BaseSTT {
|
|
7
|
+
name: string;
|
|
8
|
+
gapiLoaded: boolean;
|
|
9
|
+
isRecordingStarted: boolean;
|
|
10
|
+
intervalKey: any;
|
|
11
|
+
config: GoogleSTTConfig;
|
|
12
|
+
constructor(mainconfig: GoogleSTTConfig);
|
|
13
|
+
onHostCreate(): void;
|
|
14
|
+
onInit(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Callback used to update sample UI when transcription completes.
|
|
17
|
+
*
|
|
18
|
+
* @param r The data from the API call containing an array of transcription
|
|
19
|
+
* results.
|
|
20
|
+
*/
|
|
21
|
+
setCaretEnd(_this: any): void;
|
|
22
|
+
uiCallback(r: any): void;
|
|
23
|
+
stop(): void;
|
|
24
|
+
/**
|
|
25
|
+
* Sends a file blob to the speech API endpoint.
|
|
26
|
+
*
|
|
27
|
+
* @param blob the Blob to send.
|
|
28
|
+
* @param encoding the encoding type (e.g. 'flac' or 'LINEAR16').
|
|
29
|
+
* @param rate the encoding rate, ideally 16000.
|
|
30
|
+
*/
|
|
31
|
+
sendBlobToSpeech(blob: any, encoding: any, rate: any): void;
|
|
32
|
+
/**
|
|
33
|
+
* Sends post data to the speech API endpoint.
|
|
34
|
+
*
|
|
35
|
+
* @param bytes The raw data to send.
|
|
36
|
+
* @param encoding The encoding for the data transcribe.
|
|
37
|
+
* @param rate The rate that the data is encoded at.
|
|
38
|
+
* @param callback A function to send result data to.
|
|
39
|
+
*/
|
|
40
|
+
sendBytesToSpeech(bytes: any, encoding: any, rate: any, callback: any): void;
|
|
41
|
+
startGoogleSpeech(rec: any): void;
|
|
42
|
+
successAudioCallback(e: any): void;
|
|
43
|
+
micEnable(): void;
|
|
44
|
+
initializeSTTSpeechRecognition(): void;
|
|
45
|
+
startSTTRecognization(): void;
|
|
46
|
+
onRecordButtonClick(): void;
|
|
47
|
+
}
|
|
48
|
+
export default GoogleSTT;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare class Recorder {
|
|
2
|
+
config: any;
|
|
3
|
+
context: any;
|
|
4
|
+
node: any;
|
|
5
|
+
worker: any;
|
|
6
|
+
recording: boolean;
|
|
7
|
+
currCallback: any;
|
|
8
|
+
configure: any;
|
|
9
|
+
constructor(source: any, cfg: any);
|
|
10
|
+
init(source: any): void;
|
|
11
|
+
record(): void;
|
|
12
|
+
stop(): void;
|
|
13
|
+
clear(): void;
|
|
14
|
+
getBuffer(cb: any): void;
|
|
15
|
+
exportWAV(cb: any, type: any): void;
|
|
16
|
+
exportRAW(cb: any, type: any): void;
|
|
17
|
+
export16kMono(cb: any, type: any): void;
|
|
18
|
+
exportSpeex(cb: any, type: any): void;
|
|
19
|
+
forceDownload(blob: any, filename: any): void;
|
|
20
|
+
}
|
|
21
|
+
export default Recorder;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import BaseSTT from "../BaseSTT";
|
|
2
|
+
export interface WebKitSTTConfig {
|
|
3
|
+
lang: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* WekKitSTT Plugin class
|
|
7
|
+
*
|
|
8
|
+
* @decorator Class
|
|
9
|
+
*/
|
|
10
|
+
declare class WebKitSTT extends BaseSTT {
|
|
11
|
+
name: string;
|
|
12
|
+
config: WebKitSTTConfig;
|
|
13
|
+
recognition: any;
|
|
14
|
+
final_transcript: string | undefined;
|
|
15
|
+
recognizing: any;
|
|
16
|
+
two_line: RegExp;
|
|
17
|
+
one_line: RegExp;
|
|
18
|
+
prevRange: any;
|
|
19
|
+
hostInstance: any;
|
|
20
|
+
constructor(mainconfig: WebKitSTTConfig);
|
|
21
|
+
onHostCreate(): void;
|
|
22
|
+
onInit(): void;
|
|
23
|
+
onRecordButtonClick(): void;
|
|
24
|
+
initializeWebKitSpeechRecognition(): void;
|
|
25
|
+
startWebKitRecognization(): void;
|
|
26
|
+
isChrome(): boolean;
|
|
27
|
+
linebreak(s: string): string;
|
|
28
|
+
capitalize(s: string): string;
|
|
29
|
+
setCaretEnd(_this: any): void;
|
|
30
|
+
stop(): void;
|
|
31
|
+
}
|
|
32
|
+
export default WebKitSTT;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import BaseTTS from '../BaseTTS';
|
|
2
|
+
export interface AzureTTSConfig {
|
|
3
|
+
key: string;
|
|
4
|
+
region: string;
|
|
5
|
+
}
|
|
6
|
+
declare class AzureTTS extends BaseTTS {
|
|
7
|
+
name: string;
|
|
8
|
+
private speechConfig;
|
|
9
|
+
private speechRecognizer;
|
|
10
|
+
private speechSynthesizer;
|
|
11
|
+
config: AzureTTSConfig;
|
|
12
|
+
_txtToSpeak: string;
|
|
13
|
+
player: any;
|
|
14
|
+
constructor(mainconfig: AzureTTSConfig);
|
|
15
|
+
onHostCreate(): void;
|
|
16
|
+
onInit(): void;
|
|
17
|
+
OnSpeakerButtonClick(): void;
|
|
18
|
+
stop(): void;
|
|
19
|
+
textToSpeech(text: string): void;
|
|
20
|
+
setCaretEnd(_this: any): void;
|
|
21
|
+
}
|
|
22
|
+
export default AzureTTS;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseTTS from "../BaseTTS";
|
|
2
|
+
/**
|
|
3
|
+
* Browser TTSPlugin class
|
|
4
|
+
*
|
|
5
|
+
* @decorator Class
|
|
6
|
+
*/
|
|
7
|
+
declare class BrowserTTS extends BaseTTS {
|
|
8
|
+
name: string;
|
|
9
|
+
_ttsConnection: any;
|
|
10
|
+
onHostCreate(): void;
|
|
11
|
+
onInit(): void;
|
|
12
|
+
OnSpeakerButtonClick(): void;
|
|
13
|
+
speakWithWebAPI: (_txtToSpeak: string | undefined) => false | undefined;
|
|
14
|
+
}
|
|
15
|
+
export default BrowserTTS;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import BaseTTS from '../BaseTTS';
|
|
2
|
+
export interface GoogleVoiceConfig {
|
|
3
|
+
languageCode: string;
|
|
4
|
+
name: string;
|
|
5
|
+
ssmlGender: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GoogleAudioConfig {
|
|
8
|
+
audioEncoding: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GoogleTTSConfig {
|
|
11
|
+
key: string;
|
|
12
|
+
region: string;
|
|
13
|
+
voice: GoogleVoiceConfig;
|
|
14
|
+
audioConfig: GoogleAudioConfig;
|
|
15
|
+
}
|
|
16
|
+
declare class GoogleTTS extends BaseTTS {
|
|
17
|
+
name: string;
|
|
18
|
+
config: GoogleTTSConfig;
|
|
19
|
+
_txtToSpeak: string;
|
|
20
|
+
isPlaying: boolean;
|
|
21
|
+
audioInterval: any;
|
|
22
|
+
currentAudio: any;
|
|
23
|
+
constructor(mainconfig: GoogleTTSConfig);
|
|
24
|
+
onHostCreate(): void;
|
|
25
|
+
onInit(): void;
|
|
26
|
+
listenChangesinArray(arr: any, callback: any): void;
|
|
27
|
+
OnSpeakerButtonClick(): void;
|
|
28
|
+
stop(): void;
|
|
29
|
+
textToSpeech(text: string): Promise<Response>;
|
|
30
|
+
setCaretEnd(_this: any): void;
|
|
31
|
+
}
|
|
32
|
+
export default GoogleTTS;
|