@lifeintelligencegroup/ngx-lig-ari
Version:
Life Intelligence Group Artificial Intelligence
113 lines (112 loc) • 4.81 kB
TypeScript
import { OnInit, EventEmitter, NgZone, ElementRef } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { Observable, Subject } from 'rxjs';
import { TextToSpeech } from '@ionic-native/text-to-speech/ngx';
import { ModalController, Platform, IonContent, LoadingController } from '@ionic/angular';
import { IMessageActivity, IMessageActions, IConversationActivities, IAttachmentContentButton } from '../model/conversation.model';
import { NgxLigAriService } from '../services/ngx-lig-ari.service';
import { PubsubService } from '../services/pubsub.service';
import { AriBotService } from '../services/ari-bot.service';
import { LocalstorageService } from '../services/localstorage.service';
import { NetworkServiceService } from '../services/network-service.service';
import { HttpCancelService } from '../services/httpcancel.service';
import { AriSpeechService } from '../services/ari-speech.service';
import { AriConfig } from '../model/ari-bot.mode';
import { CommonService } from '../services/common.service';
import { GoogleEventsAnalyticsService } from '../services/google-analytics.service';
import * as i0 from "@angular/core";
export declare class AriMobileComponent implements OnInit {
private zone;
plt: Platform;
private fb;
private pubsub;
modalController: ModalController;
private loadingController;
private ariBotService;
private ariService;
private commonService;
private localStorage;
private networkService;
private httpCancelService;
private ariSpeechService;
private tts;
private googleEventService;
private config;
ariBotResponse: IConversationActivities;
ariBotResponseActivity: any[];
form: FormGroup;
showCloseButton: boolean;
ariOnClose: EventEmitter<any>;
ariOnResize: EventEmitter<any>;
ariBotResponse$: Observable<IConversationActivities>;
chatIsReady: boolean;
ariConvoScrollArea: any;
ariChatboxContainer: any;
showAri: boolean;
isProfileLoaded: boolean;
isKeyBoardShow: boolean;
showLoading: boolean;
showSplash: boolean;
isAriMuted: boolean;
showVolume: boolean;
ttsSpeech: any;
searchInterval: any;
searchIntervalTime: number;
sizeClass: string;
showError: boolean;
errorResponse: any;
showCardnumbers: number;
_unsubscribe$: Subject<any>;
synth: any;
private ariSubs;
content: IonContent;
coversationList: ElementRef;
slideOpts: {
slidesPerView: number;
spaceBetween: number;
};
get userInput(): import("@angular/forms").AbstractControl;
messageColor: string;
ariCloseByTimeout: boolean;
ariTimeoutMessage: string;
tasksPaginationIndex: number;
tasksPagination: boolean;
activatedByVoice: boolean;
constructor(zone: NgZone, plt: Platform, fb: FormBuilder, pubsub: PubsubService, modalController: ModalController, loadingController: LoadingController, ariBotService: AriBotService, ariService: NgxLigAriService, commonService: CommonService, localStorage: LocalstorageService, networkService: NetworkServiceService, httpCancelService: HttpCancelService, ariSpeechService: AriSpeechService, tts: TextToSpeech, googleEventService: GoogleEventsAnalyticsService, config: AriConfig);
closeTimeoutReminder(): void;
showMoreCards(attachmentLength: any, taskPaginationIndex?: number): void;
private forViewWillLeave;
private readByAri;
get currentSize(): number;
isJson(str: any): boolean;
initAri(): void;
resize(size: any): void;
onStartTalking(): void;
refreshAri(): Promise<void>;
ngOnInit(): void;
ionViewDidEnter(): void;
ionViewWillLeave(): void;
getElements(): void;
scrollToBottom(): void;
trackByConvoId(convo: any): any;
getContentClass(): string;
getChatClass(item: IMessageActivity): "bot-chat-2" | "user-chat-2";
hasButtons(content: any): IAttachmentContentButton[];
hasSuggestedActions(suggestedActions: any): IMessageActions;
hasWasIHelpful(text: any): boolean;
hasAnythingElse(text: any): boolean;
Thankyou(text: any): boolean;
ForWhichGoal(text: any): boolean;
GoalType(text: any): boolean;
sendActionMessage(messageItem: any): void;
sendSelection(action: any): Promise<void>;
sendMessage(action: any): void;
send(): void;
startListening(obj?: any): Promise<void>;
closeAri(): void;
similarity(s1: any, s2: any): number;
editDistance(s1: any, s2: any): any;
muteAri(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AriMobileComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AriMobileComponent, "lib-ari-mobile", never, { "showCloseButton": "showCloseButton"; }, { "ariOnClose": "ariOnClose"; "ariOnResize": "ariOnResize"; }, never, never>;
}