@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.50 → 0.0.1-alpha.53
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/contact-method-list.js +111 -0
- package/dist/contact-method-list.js.map +1 -0
- package/dist/contact-method.js +119 -77
- package/dist/contact-method.js.map +1 -1
- package/dist/entry-handler.d.ts +2 -0
- package/dist/feedback-list.js +20 -55
- package/dist/feedback-list.js.map +1 -1
- package/dist/http-client.d.ts +42 -0
- package/dist/index.js +5 -1173
- package/dist/index.js.map +1 -1
- package/dist/index2.js +914 -0
- package/dist/index2.js.map +1 -0
- package/dist/no-good-alternative.js +20 -7
- package/dist/no-good-alternative.js.map +1 -1
- package/dist/notification-list.js +74 -0
- package/dist/notification-list.js.map +1 -0
- package/dist/provider.d.ts +25 -0
- package/dist/store.d.ts +15 -0
- package/dist/styles.js +13 -0
- package/dist/styles.js.map +1 -0
- package/dist/types.d.ts +78 -0
- package/dist/ui/contact-method-list.d.ts +10 -0
- package/dist/ui/contact-method.d.ts +9 -0
- package/dist/ui/feedback-list.d.ts +1 -1
- package/dist/ui/notification-list.d.ts +11 -0
- package/dist/ui/styles.d.ts +1 -0
- package/dist/utils.d.ts +26 -2
- package/package.json +10 -10
- package/dist/client/chat.client.d.ts +0 -13
- package/dist/client/contact-method.client.d.ts +0 -35
- package/dist/client/http.client.d.ts +0 -26
- package/dist/client/middleware.client.d.ts +0 -14
- package/dist/contract/custom-component/contact-method-item.d.ts +0 -11
- package/dist/contract/custom-component/contact-method-list.d.ts +0 -8
- package/dist/contract/custom-component/contact-method.d.ts +0 -3
- package/dist/contract/custom-component/entry-context.d.ts +0 -5
- package/dist/contract/enum/server-entry-type.enum.d.ts +0 -7
- package/dist/contract/model/conversation-api-model/list.model.d.ts +0 -5
- package/dist/contract/model/conversation-api-model/message.model.d.ts +0 -7
- package/dist/contract/model/http/action.model.d.ts +0 -3
- package/dist/contract/model/http/client-action.model.d.ts +0 -4
- package/dist/contract/model/http/client-envelope.model.d.ts +0 -9
- package/dist/contract/model/http/connect-options.model.d.ts +0 -5
- package/dist/contract/model/http/global-state.model.d.ts +0 -8
- package/dist/contract/model/http/http-client-options.model.d.ts +0 -5
- package/dist/contract/model/http/server-entry.model.d.ts +0 -11
- package/dist/contract/model/http/server-envelope.model.d.ts +0 -10
- package/dist/contract/model/middleware/aggregator-state.model.d.ts +0 -4
- package/dist/contract/model/shared/loose-object.model.d.ts +0 -3
- package/dist/helper/chat.helper.d.ts +0 -8
- package/dist/helper/http.helper.d.ts +0 -13
- package/dist/helper/middleware.helper.d.ts +0 -12
- package/dist/helper/store.helper.d.ts +0 -23
- package/dist/interface/entry.interface.d.ts +0 -23
- package/dist/interface/middleware/paging.interface.d.ts +0 -4
- package/dist/interface/middleware/processor.interface.d.ts +0 -10
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface PropsType {
|
|
3
|
-
contactMethod: any;
|
|
4
|
-
type: any;
|
|
5
|
-
expanded?: boolean;
|
|
6
|
-
className?: any;
|
|
7
|
-
entry?: any;
|
|
8
|
-
embeded: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const ContactMethodItem: React.FC<PropsType>;
|
|
11
|
-
export default ContactMethodItem;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LooseObject } from "../shared/loose-object.model";
|
|
2
|
-
import { ClientAction } from "./client-action.model";
|
|
3
|
-
export interface ClientEnvelope {
|
|
4
|
-
command?: LooseObject;
|
|
5
|
-
action?: ClientAction;
|
|
6
|
-
globalState?: LooseObject;
|
|
7
|
-
localState?: LooseObject;
|
|
8
|
-
clientId?: string;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ClientEnvelope } from "./client-envelope.model";
|
|
2
|
-
import { GlobalState } from "./global-state.model";
|
|
3
|
-
import { ServerEntry } from "./server-entry.model";
|
|
4
|
-
export interface ServerEnvelope {
|
|
5
|
-
clientId: string | undefined;
|
|
6
|
-
entries: ServerEntry[];
|
|
7
|
-
globalState: GlobalState;
|
|
8
|
-
resolveCommand?: string;
|
|
9
|
-
clientEnvelope: ClientEnvelope;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class HttpHelper {
|
|
2
|
-
static fetchOptions: {
|
|
3
|
-
method: string;
|
|
4
|
-
headers: {
|
|
5
|
-
Accept: string;
|
|
6
|
-
'Content-Type': string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
static combineUrl(basePath: string, path: string): string;
|
|
10
|
-
static managedSubdomainSuffixes: string[];
|
|
11
|
-
static parseSubdomain: (input: string) => string;
|
|
12
|
-
static getCredentials(): string | undefined;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Message } from '../contract/model/conversation-api-model/message.model';
|
|
2
|
-
export declare class MiddlewareHelper {
|
|
3
|
-
private static sessionMessageStorageVariable;
|
|
4
|
-
private static container;
|
|
5
|
-
private static widget;
|
|
6
|
-
static setContainer(container: any): void;
|
|
7
|
-
static setWidget(widget: any): void;
|
|
8
|
-
static getContainer(): any;
|
|
9
|
-
static getWidget(): any;
|
|
10
|
-
static setEntrySessionStorage: (messages: Message[]) => Promise<void>;
|
|
11
|
-
static getEntrySessionStorage(): Promise<any>;
|
|
12
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Message } from '../contract/model/conversation-api-model/message.model';
|
|
2
|
-
import { ClientAction } from '../contract/model/http/client-action.model';
|
|
3
|
-
import { GlobalState } from '../contract/model/http/global-state.model';
|
|
4
|
-
import { ServerEntry } from '../contract/model/http/server-entry.model';
|
|
5
|
-
import { LooseObject } from '../contract/model/shared/loose-object.model';
|
|
6
|
-
export declare class StoreHelper {
|
|
7
|
-
private static messageStore;
|
|
8
|
-
private static globalState;
|
|
9
|
-
constructor();
|
|
10
|
-
static insertOrUpdateMessageArrayStore(messageArray: Message[], entry?: any): Promise<void>;
|
|
11
|
-
static insertMessageToStore(message: Message): void;
|
|
12
|
-
private static updateMessageInStore;
|
|
13
|
-
static checkIdInMessageStore(id: string): boolean;
|
|
14
|
-
static getLocalState(action: string): LooseObject | undefined;
|
|
15
|
-
static getGlobalState(): GlobalState;
|
|
16
|
-
static setGlobalState(state: GlobalState): Promise<void>;
|
|
17
|
-
static getAction(action: string): ClientAction;
|
|
18
|
-
static getCommand(text: string): LooseObject;
|
|
19
|
-
static getEntry(action: string): ServerEntry | undefined;
|
|
20
|
-
static getMessage(id: string): Message | undefined;
|
|
21
|
-
static getEntryStore(): ServerEntry[];
|
|
22
|
-
static rehydrateState(): Promise<void>;
|
|
23
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Container } from '@webprovisions/platform';
|
|
2
|
-
import { Message } from '../contract/model/conversation-api-model/message.model';
|
|
3
|
-
import { ServerEntry } from '../contract/model/http/server-entry.model';
|
|
4
|
-
export default class EntryInterface {
|
|
5
|
-
private container;
|
|
6
|
-
private helpActionKey;
|
|
7
|
-
private nextActionKey;
|
|
8
|
-
private contactMethodClient;
|
|
9
|
-
static pagingAmount: number | undefined;
|
|
10
|
-
constructor(container: Container);
|
|
11
|
-
transform(entry: ServerEntry, feedbackEntry?: ServerEntry): Promise<Message | undefined>;
|
|
12
|
-
transformContactMethod(entry: ServerEntry): Promise<any>;
|
|
13
|
-
transformArray(entryArray: ServerEntry[]): Promise<Message[]>;
|
|
14
|
-
getUserMessage(action: string): Promise<string | undefined>;
|
|
15
|
-
private listTransform;
|
|
16
|
-
private getContentText;
|
|
17
|
-
private textTransform;
|
|
18
|
-
private getListActions;
|
|
19
|
-
private getListType;
|
|
20
|
-
private getTitleFromEntry;
|
|
21
|
-
private getTitleFromList;
|
|
22
|
-
private addFeedbackToEntry;
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ServerEntry } from '../../contract/model/http/server-entry.model';
|
|
2
|
-
export default class ProcessorInterface {
|
|
3
|
-
process(entries: ServerEntry[]): ServerEntry[];
|
|
4
|
-
processUpdate(entry: ServerEntry | undefined, updateEntryArray: ServerEntry[]): ServerEntry[];
|
|
5
|
-
private handleActionUpdateOrInsert;
|
|
6
|
-
private deletePaging;
|
|
7
|
-
private delete;
|
|
8
|
-
private merge;
|
|
9
|
-
private moveLoader;
|
|
10
|
-
}
|