@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.55 → 0.0.1-alpha.59
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/client/chat.client.d.ts +16 -0
- package/dist/client/contact-method.client.d.ts +25 -0
- package/dist/client/http.client.d.ts +23 -0
- package/dist/client/middleware.client.d.ts +14 -0
- package/dist/contact-method.15886c3d.js +66 -0
- package/dist/contact-method.15886c3d.js.map +1 -0
- package/dist/contract/custom-component/contact-method-item.d.ts +8 -0
- package/dist/contract/custom-component/contact-method-list.d.ts +7 -0
- package/dist/contract/custom-component/contact-method.d.ts +3 -0
- package/dist/contract/enum/server-entry-type.enum.d.ts +7 -0
- package/dist/contract/model/conversation-api-model/list.model.d.ts +5 -0
- package/dist/contract/model/conversation-api-model/message.model.d.ts +7 -0
- package/dist/contract/model/http/action.model.d.ts +3 -0
- package/dist/contract/model/http/client-action.model.d.ts +4 -0
- package/dist/contract/model/http/client-envelope.model.d.ts +9 -0
- package/dist/contract/model/http/connect-options.model.d.ts +5 -0
- package/dist/contract/model/http/global-state.model.d.ts +8 -0
- package/dist/contract/model/http/http-client-options.model.d.ts +5 -0
- package/dist/contract/model/http/server-entry.model.d.ts +11 -0
- package/dist/contract/model/http/server-envelope.model.d.ts +10 -0
- package/dist/contract/model/middleware/aggregator-state.model.d.ts +4 -0
- package/dist/contract/model/shared/loose-object.model.d.ts +3 -0
- package/dist/helper/chat.helper.d.ts +8 -0
- package/dist/helper/http.helper.d.ts +13 -0
- package/dist/helper/middleware.helper.d.ts +12 -0
- package/dist/helper/store.helper.d.ts +22 -0
- package/dist/index.js +671 -5
- package/dist/index.js.map +1 -1
- package/dist/interface/entry.interface.d.ts +20 -0
- package/dist/interface/middleware/paging.interface.d.ts +4 -0
- package/dist/interface/middleware/processor.interface.d.ts +10 -0
- package/package.json +12 -11
- package/dist/contact-method-list.js +0 -112
- package/dist/contact-method-list.js.map +0 -1
- package/dist/contact-method.js +0 -154
- package/dist/contact-method.js.map +0 -1
- package/dist/entry-handler.d.ts +0 -2
- package/dist/feedback-list.js +0 -72
- package/dist/feedback-list.js.map +0 -1
- package/dist/http-client.d.ts +0 -42
- package/dist/index2.js +0 -917
- package/dist/index2.js.map +0 -1
- package/dist/no-good-alternative.js +0 -46
- package/dist/no-good-alternative.js.map +0 -1
- package/dist/notification-list.js +0 -74
- package/dist/notification-list.js.map +0 -1
- package/dist/provider.d.ts +0 -25
- package/dist/store.d.ts +0 -15
- package/dist/styles.js +0 -13
- package/dist/styles.js.map +0 -1
- package/dist/types.d.ts +0 -79
- package/dist/ui/contact-method-list.d.ts +0 -10
- package/dist/ui/contact-method.d.ts +0 -9
- package/dist/ui/feedback-list.d.ts +0 -8
- package/dist/ui/no-good-alternative.d.ts +0 -6
- package/dist/ui/notification-list.d.ts +0 -11
- package/dist/ui/styles.d.ts +0 -1
- package/dist/utils.d.ts +0 -26
package/dist/http-client.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Container, EventManager } from '@webprovisions/platform';
|
|
2
|
-
import Store from './store';
|
|
3
|
-
import { MessageGroup } from './types';
|
|
4
|
-
declare class HttpClient {
|
|
5
|
-
private endpoint;
|
|
6
|
-
private events;
|
|
7
|
-
private store;
|
|
8
|
-
private container;
|
|
9
|
-
private globalState;
|
|
10
|
-
private clientId;
|
|
11
|
-
private entries;
|
|
12
|
-
constructor(endpoint: string, events: EventManager, store: Store, container: Container);
|
|
13
|
-
start(): Promise<MessageGroup[]>;
|
|
14
|
-
sendMessage(message: string): Promise<MessageGroup[]>;
|
|
15
|
-
helpAction(): Promise<MessageGroup[]>;
|
|
16
|
-
nextAction(group: MessageGroup): Promise<{
|
|
17
|
-
meta: {
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
};
|
|
20
|
-
items: {
|
|
21
|
-
message: any[];
|
|
22
|
-
id: string;
|
|
23
|
-
groupId: string;
|
|
24
|
-
isUser: boolean;
|
|
25
|
-
}[];
|
|
26
|
-
id: string;
|
|
27
|
-
isUser: boolean;
|
|
28
|
-
writer?: any;
|
|
29
|
-
} | undefined>;
|
|
30
|
-
showContactMethodAction(data: {
|
|
31
|
-
contactMethod: any;
|
|
32
|
-
actionKey: string;
|
|
33
|
-
entryId: string;
|
|
34
|
-
}): Promise<MessageGroup[] | undefined>;
|
|
35
|
-
defaultAction(action: string): Promise<MessageGroup[] | undefined>;
|
|
36
|
-
private createInitialEnvelope;
|
|
37
|
-
private postEnvelope;
|
|
38
|
-
private handleResponse;
|
|
39
|
-
private getHttpOptions;
|
|
40
|
-
private getEntryOfAction;
|
|
41
|
-
}
|
|
42
|
-
export default HttpClient;
|