@resolveio/client-lib-core 21.2.16 → 21.3.1
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { OnDestroy, OnInit, ElementRef, AfterViewInit, QueryList, ChangeDetectorRef,
|
|
4
|
+
import { OnDestroy, OnInit, Type, ElementRef, EventEmitter, AfterViewInit, QueryList, ChangeDetectorRef, PipeTransform, OnChanges, ModuleWithProviders, Renderer2, NgZone, SimpleChanges } from '@angular/core';
|
|
5
5
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
6
6
|
import * as i1$1 from '@angular/forms';
|
|
7
7
|
import { FormControl, FormGroup, AbstractControl, FormBuilder } from '@angular/forms';
|
|
8
8
|
import * as i2 from 'ngx-toastr';
|
|
9
9
|
import { ToastrService, ActiveToast } from 'ngx-toastr';
|
|
10
10
|
import * as i3 from '@angular/router';
|
|
11
|
-
import { Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot
|
|
11
|
+
import { Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
12
12
|
import { HttpClient } from '@angular/common/http';
|
|
13
13
|
import * as i4 from '@ng-bootstrap/ng-bootstrap';
|
|
14
14
|
import { NgbModal, NgbModalOptions, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
@@ -95,6 +95,8 @@ interface UserModel extends CollectionDocument {
|
|
|
95
95
|
username: string;
|
|
96
96
|
email: string;
|
|
97
97
|
fullname: string;
|
|
98
|
+
id_client?: string;
|
|
99
|
+
idClient?: string;
|
|
98
100
|
active: boolean;
|
|
99
101
|
phonenumber: string;
|
|
100
102
|
readonly: boolean;
|
|
@@ -737,6 +739,8 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
737
739
|
showNavbarModule: boolean;
|
|
738
740
|
publicProgram: boolean;
|
|
739
741
|
showSupport: boolean;
|
|
742
|
+
aiAssistantEnabled: boolean;
|
|
743
|
+
aiTerminalComponent: Type<unknown> | null;
|
|
740
744
|
el_navBarMain: ElementRef;
|
|
741
745
|
el_navBarModule: ElementRef;
|
|
742
746
|
year: string;
|
|
@@ -758,6 +762,8 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
758
762
|
collapsableMenu: boolean;
|
|
759
763
|
fontSize: number;
|
|
760
764
|
openedWindow: boolean;
|
|
765
|
+
aiAssistantOpen: boolean;
|
|
766
|
+
aiAssistantAppId: string;
|
|
761
767
|
isOffline: boolean;
|
|
762
768
|
foundUpdate: boolean;
|
|
763
769
|
orientation: string;
|
|
@@ -768,6 +774,9 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
768
774
|
private isRoleGateEnabled;
|
|
769
775
|
getNavbarModuleHeight(): any;
|
|
770
776
|
private updateStandaloneNavigation;
|
|
777
|
+
toggleAiAssistant(): void;
|
|
778
|
+
closeAiAssistant(): void;
|
|
779
|
+
private resolveAiAssistantAppId;
|
|
771
780
|
onPushBackButton(): void;
|
|
772
781
|
onPushReloadButton(): void;
|
|
773
782
|
onPushForwardButton(): void;
|
|
@@ -775,7 +784,7 @@ declare class CoreComponent extends BaseComponent implements OnInit {
|
|
|
775
784
|
closeNav(): void;
|
|
776
785
|
private isStandaloneMode;
|
|
777
786
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreComponent, never>;
|
|
778
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; }, {}, never, never, false, never>;
|
|
787
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; "aiAssistantEnabled": { "alias": "aiAssistantEnabled"; "required": false; }; "aiTerminalComponent": { "alias": "aiTerminalComponent"; "required": false; }; }, {}, never, never, false, never>;
|
|
779
788
|
}
|
|
780
789
|
|
|
781
790
|
declare class HomeComponent extends BaseComponent implements OnInit {
|
|
@@ -797,6 +806,41 @@ declare class HomeComponent extends BaseComponent implements OnInit {
|
|
|
797
806
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "resolveio-home", never, {}, {}, never, never, false, never>;
|
|
798
807
|
}
|
|
799
808
|
|
|
809
|
+
type AiTerminalConfig$1 = {
|
|
810
|
+
mode?: string;
|
|
811
|
+
model?: string;
|
|
812
|
+
guardrails?: boolean;
|
|
813
|
+
allowUploads?: boolean;
|
|
814
|
+
showAdvanced?: boolean;
|
|
815
|
+
showToolMessages?: boolean;
|
|
816
|
+
deleteFilesAfterRun?: boolean;
|
|
817
|
+
systemPrompt?: string;
|
|
818
|
+
[key: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
declare class AiAssistantComponent {
|
|
821
|
+
private router;
|
|
822
|
+
idClient: string;
|
|
823
|
+
idApp: string;
|
|
824
|
+
title: string;
|
|
825
|
+
open: boolean;
|
|
826
|
+
supportTicketRoute: string;
|
|
827
|
+
supportTicketEnabled: boolean;
|
|
828
|
+
config: Partial<AiTerminalConfig$1> | null;
|
|
829
|
+
terminalComponent: Type<unknown> | null;
|
|
830
|
+
closed: EventEmitter<void>;
|
|
831
|
+
terminalOutlet?: any;
|
|
832
|
+
constructor(router: Router);
|
|
833
|
+
get terminalConfig(): AiTerminalConfig$1;
|
|
834
|
+
closePanel(): void;
|
|
835
|
+
openSupportTicket(): void;
|
|
836
|
+
handleBackdropClick(event: MouseEvent): void;
|
|
837
|
+
private buildSupportTicketSummary;
|
|
838
|
+
private sanitizeSummary;
|
|
839
|
+
private truncate;
|
|
840
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent, never>;
|
|
841
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "rio-ai-assistant", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "supportTicketRoute": { "alias": "supportTicketRoute"; "required": false; }; "supportTicketEnabled": { "alias": "supportTicketEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; "terminalComponent": { "alias": "terminalComponent"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
|
|
842
|
+
}
|
|
843
|
+
|
|
800
844
|
declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
801
845
|
private _services;
|
|
802
846
|
private auth;
|
|
@@ -810,6 +854,7 @@ declare class NavbarMainComponent extends BaseComponent implements OnInit, After
|
|
|
810
854
|
publicProgram: boolean;
|
|
811
855
|
digitalSign: boolean;
|
|
812
856
|
showSupport: boolean;
|
|
857
|
+
aiToggle: EventEmitter<void>;
|
|
813
858
|
user: UserModel;
|
|
814
859
|
collapseShowing: boolean;
|
|
815
860
|
client: string;
|
|
@@ -834,6 +879,7 @@ declare class NavbarMainComponent extends BaseComponent implements OnInit, After
|
|
|
834
879
|
stopScrollLeft(): void;
|
|
835
880
|
scrollLeftOnce(): void;
|
|
836
881
|
handleNavLinkClick(event: MouseEvent): void;
|
|
882
|
+
toggleAiAssistant(event?: MouseEvent): void;
|
|
837
883
|
calculateDropdownsLeft(): boolean;
|
|
838
884
|
isInRole(role: any): boolean;
|
|
839
885
|
isSuperAdmin(): any;
|
|
@@ -843,7 +889,7 @@ declare class NavbarMainComponent extends BaseComponent implements OnInit, After
|
|
|
843
889
|
isCustomer(): boolean;
|
|
844
890
|
getWindowWidth(): number;
|
|
845
891
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavbarMainComponent, never>;
|
|
846
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarMainComponent, "navbar-main", never, { "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "digitalSign": { "alias": "digitalSign"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; }, {}, never, never, false, never>;
|
|
892
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavbarMainComponent, "navbar-main", never, { "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "digitalSign": { "alias": "digitalSign"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; }, { "aiToggle": "aiToggle"; }, never, never, false, never>;
|
|
847
893
|
}
|
|
848
894
|
|
|
849
895
|
declare class NavbarModuleComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
@@ -967,7 +1013,7 @@ declare class CoreServicesModule {
|
|
|
967
1013
|
|
|
968
1014
|
declare class CoreShellModule {
|
|
969
1015
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreShellModule, never>;
|
|
970
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreShellModule, [typeof CoreComponent, typeof HomeComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective], [typeof i2$1.CommonModule, typeof i3.RouterModule, typeof PipeModule, typeof i4.NgbModalModule, typeof CoreServicesModule], [typeof CoreComponent, typeof HomeComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective]>;
|
|
1016
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreShellModule, [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective], [typeof i2$1.CommonModule, typeof i3.RouterModule, typeof PipeModule, typeof i4.NgbModalModule, typeof CoreServicesModule], [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective]>;
|
|
971
1017
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreShellModule>;
|
|
972
1018
|
}
|
|
973
1019
|
|
|
@@ -1871,191 +1917,6 @@ declare class CanDeactivateGuard {
|
|
|
1871
1917
|
static ɵprov: i0.ɵɵInjectableDeclaration<CanDeactivateGuard>;
|
|
1872
1918
|
}
|
|
1873
1919
|
|
|
1874
|
-
declare class SupportTicketService {
|
|
1875
|
-
selectedSupportTicket: BehaviorSubject<string>;
|
|
1876
|
-
constructor();
|
|
1877
|
-
setSelectedSupportTicket(id: string): void;
|
|
1878
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketService, never>;
|
|
1879
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SupportTicketService>;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
interface SupportTicketModel extends CollectionDocument {
|
|
1883
|
-
type: SupportTicketType;
|
|
1884
|
-
priority: SupportTicketPriority;
|
|
1885
|
-
issue: string;
|
|
1886
|
-
support_ticket_number: number;
|
|
1887
|
-
support_ticket_number_string: string;
|
|
1888
|
-
status: SupportTicketStatus;
|
|
1889
|
-
substatus: SupportTicketSubstatus;
|
|
1890
|
-
client: string;
|
|
1891
|
-
id_client: string;
|
|
1892
|
-
messages: SupportTicketMessageModel[];
|
|
1893
|
-
date_created: Date;
|
|
1894
|
-
date_created_string: string;
|
|
1895
|
-
id_user_created: string;
|
|
1896
|
-
user_created: string;
|
|
1897
|
-
billable: boolean;
|
|
1898
|
-
date_investigation?: Date;
|
|
1899
|
-
date_closed?: Date;
|
|
1900
|
-
files: string[];
|
|
1901
|
-
current_watchers: SupportTicketWatchersModel[];
|
|
1902
|
-
client_user: SupportTicketClientUserModel;
|
|
1903
|
-
users_assigned: SupportTicketUserAssignedModel[];
|
|
1904
|
-
estimated_billable_hours?: number;
|
|
1905
|
-
billable_hours?: number;
|
|
1906
|
-
bill_description: string;
|
|
1907
|
-
tasks: SupportTicketTaskModel[];
|
|
1908
|
-
notes: SupportTicketNoteModel[];
|
|
1909
|
-
}
|
|
1910
|
-
interface SupportTicketClientUserModel {
|
|
1911
|
-
id_user: string;
|
|
1912
|
-
user: string;
|
|
1913
|
-
email: string;
|
|
1914
|
-
}
|
|
1915
|
-
type SupportTicketPriority = 'High' | 'Low';
|
|
1916
|
-
type SupportTicketType = 'System Impairment' | 'Request New Feature' | 'General Inquery' | 'New Build';
|
|
1917
|
-
type SupportTicketStatus = 'Opened' | 'Review' | 'Closed';
|
|
1918
|
-
type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';
|
|
1919
|
-
interface SupportTicketMessageModel {
|
|
1920
|
-
message: string;
|
|
1921
|
-
id_user: string;
|
|
1922
|
-
user: string;
|
|
1923
|
-
date: Date;
|
|
1924
|
-
type: SupportTicketMessageType;
|
|
1925
|
-
}
|
|
1926
|
-
type SupportTicketMessageType = 'ResolveIO' | 'Client';
|
|
1927
|
-
interface SupportTicketWatchersModel {
|
|
1928
|
-
user: string;
|
|
1929
|
-
id_user: string;
|
|
1930
|
-
email: string;
|
|
1931
|
-
}
|
|
1932
|
-
interface SupportTicketTaskModel {
|
|
1933
|
-
description: string;
|
|
1934
|
-
completed: boolean;
|
|
1935
|
-
id_user: string;
|
|
1936
|
-
user: string;
|
|
1937
|
-
date_created: Date;
|
|
1938
|
-
date_completed?: Date;
|
|
1939
|
-
}
|
|
1940
|
-
interface SupportTicketNoteModel {
|
|
1941
|
-
description: string;
|
|
1942
|
-
id_user: string;
|
|
1943
|
-
user: string;
|
|
1944
|
-
date_created: Date;
|
|
1945
|
-
}
|
|
1946
|
-
interface SupportTicketUserAssignedModel {
|
|
1947
|
-
id_user: string;
|
|
1948
|
-
user: string;
|
|
1949
|
-
date_created: Date;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
declare class SupportTicketComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
1953
|
-
private _sts;
|
|
1954
|
-
private _services;
|
|
1955
|
-
selectedResolveIOSupport$: Subscription;
|
|
1956
|
-
menuData: NavbarModel;
|
|
1957
|
-
constructor(_sts: SupportTicketService, _services: ProviderService);
|
|
1958
|
-
ngOnInit(): void;
|
|
1959
|
-
ngOnDestroy(): void;
|
|
1960
|
-
selectedResolveIOSupportChanged(id: string): void;
|
|
1961
|
-
setResolveIOSupportModuleMenuData(id?: string, st?: SupportTicketModel): void;
|
|
1962
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketComponent, never>;
|
|
1963
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupportTicketComponent, "resolveio-support-ticket", never, {}, {}, never, never, false, never>;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
declare class SupportTicketListComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
1967
|
-
private _sts;
|
|
1968
|
-
private _route;
|
|
1969
|
-
private _services;
|
|
1970
|
-
route$: Subscription;
|
|
1971
|
-
support_tickets: SupportTicketModel;
|
|
1972
|
-
subscription$: Subscription[];
|
|
1973
|
-
columns: Array<DatatableColumn>;
|
|
1974
|
-
tableData: DatatableModel;
|
|
1975
|
-
totalItems: number;
|
|
1976
|
-
constructor(_sts: SupportTicketService, _route: ActivatedRoute, _services: ProviderService);
|
|
1977
|
-
ngOnInit(): void;
|
|
1978
|
-
ngOnDestroy(): void;
|
|
1979
|
-
onQueryDataChanged(): void;
|
|
1980
|
-
queryData(): void;
|
|
1981
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketListComponent, never>;
|
|
1982
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupportTicketListComponent, "resolveio-support-ticket-list", never, {}, {}, never, never, false, never>;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
declare class SupportTicketNewComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
1986
|
-
private _sts;
|
|
1987
|
-
private _cd;
|
|
1988
|
-
private _services;
|
|
1989
|
-
private _ds;
|
|
1990
|
-
fileUpload: any;
|
|
1991
|
-
subscription$: Subscription[];
|
|
1992
|
-
form: FormGroup;
|
|
1993
|
-
disableFormButton: boolean;
|
|
1994
|
-
submit: boolean;
|
|
1995
|
-
constructor(_sts: SupportTicketService, _cd: ChangeDetectorRef, _services: ProviderService, _ds: DialogService);
|
|
1996
|
-
ngOnInit(): void;
|
|
1997
|
-
ngOnDestroy(): void;
|
|
1998
|
-
canDeactivate(): boolean;
|
|
1999
|
-
onTypeChange(): void;
|
|
2000
|
-
submitForm(form: any): void;
|
|
2001
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketNewComponent, never>;
|
|
2002
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupportTicketNewComponent, "resolveio-support-ticket-new", never, {}, {}, never, never, false, never>;
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
declare class SupportTicketDetailComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
2006
|
-
private _route;
|
|
2007
|
-
private _sts;
|
|
2008
|
-
private _services;
|
|
2009
|
-
private _ds;
|
|
2010
|
-
fileUpload: any;
|
|
2011
|
-
subscription$: Subscription[];
|
|
2012
|
-
id: string;
|
|
2013
|
-
data: SupportTicketModel;
|
|
2014
|
-
files: FileModel[];
|
|
2015
|
-
constructor(_route: ActivatedRoute, _sts: SupportTicketService, _services: ProviderService, _ds: DialogService);
|
|
2016
|
-
ngOnInit(): void;
|
|
2017
|
-
ngOnDestroy(): void;
|
|
2018
|
-
onFileAdded(file: FileModel): void;
|
|
2019
|
-
onFilesRemoved(file: FileModel): void;
|
|
2020
|
-
edit(): void;
|
|
2021
|
-
newMessage(): void;
|
|
2022
|
-
editMessage(index: any): void;
|
|
2023
|
-
deleteMessage(index: any): void;
|
|
2024
|
-
isMyMessage(message: any): boolean;
|
|
2025
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketDetailComponent, never>;
|
|
2026
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupportTicketDetailComponent, "resolveio-support-ticket-detail", never, {}, {}, never, never, false, never>;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
declare class SupportTicketEditComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
2030
|
-
private _route;
|
|
2031
|
-
private _sts;
|
|
2032
|
-
private _services;
|
|
2033
|
-
private _ds;
|
|
2034
|
-
fileUpload: any;
|
|
2035
|
-
selectType: any;
|
|
2036
|
-
id: string;
|
|
2037
|
-
data: SupportTicketModel;
|
|
2038
|
-
subscription$: Subscription[];
|
|
2039
|
-
form: FormGroup;
|
|
2040
|
-
disableFormButton: boolean;
|
|
2041
|
-
constructor(_route: ActivatedRoute, _sts: SupportTicketService, _services: ProviderService, _ds: DialogService);
|
|
2042
|
-
ngOnInit(): void;
|
|
2043
|
-
ngOnDestroy(): void;
|
|
2044
|
-
loadForm(): void;
|
|
2045
|
-
onTypeChange(): void;
|
|
2046
|
-
submitForm(form: any): void;
|
|
2047
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketEditComponent, never>;
|
|
2048
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SupportTicketEditComponent, "resolveio-support-ticket-edit", never, {}, {}, never, never, false, never>;
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
declare class SupportTicketModule {
|
|
2052
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SupportTicketModule, never>;
|
|
2053
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SupportTicketModule, [typeof SupportTicketComponent, typeof SupportTicketListComponent, typeof SupportTicketNewComponent, typeof SupportTicketDetailComponent, typeof SupportTicketEditComponent], [typeof SharedModule, typeof i3.RouterModule, typeof DatatableModule, typeof FileModule, typeof i4.NgbAccordionModule], never>;
|
|
2054
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SupportTicketModule>;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
declare const SupportTicketRouting: ModuleWithProviders<Route>;
|
|
2058
|
-
|
|
2059
1920
|
declare function type<T>(label: T | ''): T;
|
|
2060
1921
|
|
|
2061
1922
|
declare function round(value: any, precision?: number): number;
|
|
@@ -2122,6 +1983,169 @@ declare class DateShortcutModule {
|
|
|
2122
1983
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateShortcutModule>;
|
|
2123
1984
|
}
|
|
2124
1985
|
|
|
1986
|
+
type AiTerminalMode = 'openai' | 'codex';
|
|
1987
|
+
interface AiTerminalMethodNames {
|
|
1988
|
+
conversationCreate?: string;
|
|
1989
|
+
conversationUpdate?: string;
|
|
1990
|
+
conversationDelete?: string;
|
|
1991
|
+
runOpenAI?: string;
|
|
1992
|
+
uploadOpenAI?: string;
|
|
1993
|
+
runCodex?: string;
|
|
1994
|
+
uploadCodex?: string;
|
|
1995
|
+
deployTest?: string;
|
|
1996
|
+
conversationsPublication?: string;
|
|
1997
|
+
messagesPublication?: string;
|
|
1998
|
+
}
|
|
1999
|
+
interface AiTerminalConfig {
|
|
2000
|
+
mode?: AiTerminalMode;
|
|
2001
|
+
branchEnabled?: boolean;
|
|
2002
|
+
showAdvanced?: boolean;
|
|
2003
|
+
showToolMessages?: boolean;
|
|
2004
|
+
allowUploads?: boolean;
|
|
2005
|
+
maxFileMb?: number;
|
|
2006
|
+
maxTotalMb?: number;
|
|
2007
|
+
guardrails?: boolean;
|
|
2008
|
+
deleteFilesAfterRun?: boolean;
|
|
2009
|
+
systemPrompt?: string;
|
|
2010
|
+
userPromptTemplate?: string;
|
|
2011
|
+
responseFormat?: string;
|
|
2012
|
+
model?: string;
|
|
2013
|
+
temperature?: number;
|
|
2014
|
+
maxTokens?: number;
|
|
2015
|
+
profileId?: string;
|
|
2016
|
+
methodNames?: AiTerminalMethodNames;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
type AiTerminalConversationStatus = 'active' | 'archived';
|
|
2020
|
+
interface AiTerminalConversationModel {
|
|
2021
|
+
_id?: string;
|
|
2022
|
+
id_client?: string;
|
|
2023
|
+
id_app?: string;
|
|
2024
|
+
title?: string;
|
|
2025
|
+
mode?: AiTerminalMode;
|
|
2026
|
+
branch_enabled?: boolean;
|
|
2027
|
+
branch_name?: string;
|
|
2028
|
+
status?: AiTerminalConversationStatus;
|
|
2029
|
+
profile_id?: string;
|
|
2030
|
+
metadata?: Record<string, any>;
|
|
2031
|
+
last_message_at?: Date;
|
|
2032
|
+
last_message_id?: string;
|
|
2033
|
+
createdAt?: Date;
|
|
2034
|
+
updatedAt?: Date;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
type AiTerminalMessageRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
2038
|
+
interface AiTerminalAttachmentModel {
|
|
2039
|
+
id?: string;
|
|
2040
|
+
name?: string;
|
|
2041
|
+
type?: string;
|
|
2042
|
+
size?: number;
|
|
2043
|
+
local_path?: string;
|
|
2044
|
+
}
|
|
2045
|
+
interface AiTerminalMessageUsage {
|
|
2046
|
+
model?: string;
|
|
2047
|
+
input_tokens?: number;
|
|
2048
|
+
output_tokens?: number;
|
|
2049
|
+
total_tokens?: number;
|
|
2050
|
+
cost_estimate?: number;
|
|
2051
|
+
}
|
|
2052
|
+
interface AiTerminalMessageModel {
|
|
2053
|
+
_id?: string;
|
|
2054
|
+
id_conversation: string;
|
|
2055
|
+
role: AiTerminalMessageRole;
|
|
2056
|
+
content: string;
|
|
2057
|
+
metadata?: Record<string, any>;
|
|
2058
|
+
usage?: AiTerminalMessageUsage;
|
|
2059
|
+
attachments?: AiTerminalAttachmentModel[];
|
|
2060
|
+
createdAt?: Date;
|
|
2061
|
+
updatedAt?: Date;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
declare class AiTerminalService {
|
|
2065
|
+
private provider;
|
|
2066
|
+
constructor(provider: ProviderService);
|
|
2067
|
+
call<T>(method: string, ...parameters: any[]): Promise<T>;
|
|
2068
|
+
subscribe<T>(publication: string, ...parameters: any[]): Observable<T>;
|
|
2069
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalService, never>;
|
|
2070
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AiTerminalService>;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
|
|
2074
|
+
private terminal;
|
|
2075
|
+
idClient: string;
|
|
2076
|
+
idApp: string;
|
|
2077
|
+
title: string;
|
|
2078
|
+
config: AiTerminalConfig | null;
|
|
2079
|
+
conversationStatus: AiTerminalConversationStatus;
|
|
2080
|
+
messageLimit: number;
|
|
2081
|
+
placeholder: string;
|
|
2082
|
+
messageScroll?: ElementRef<HTMLDivElement>;
|
|
2083
|
+
conversations: AiTerminalConversationModel[];
|
|
2084
|
+
messages: AiTerminalMessageModel[];
|
|
2085
|
+
activeConversationId: string;
|
|
2086
|
+
activeConversation: AiTerminalConversationModel | null;
|
|
2087
|
+
messageText: string;
|
|
2088
|
+
pendingFiles: File[];
|
|
2089
|
+
isSending: boolean;
|
|
2090
|
+
isDeployingTest: boolean;
|
|
2091
|
+
isLoading: boolean;
|
|
2092
|
+
errorMessage: string;
|
|
2093
|
+
infoMessage: string;
|
|
2094
|
+
editingConversationId: string;
|
|
2095
|
+
editingTitle: string;
|
|
2096
|
+
private conversationsSub?;
|
|
2097
|
+
private messagesSub?;
|
|
2098
|
+
constructor(terminal: AiTerminalService);
|
|
2099
|
+
ngOnInit(): void;
|
|
2100
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2101
|
+
ngOnDestroy(): void;
|
|
2102
|
+
isCodexMode(): boolean;
|
|
2103
|
+
showAdvanced(): boolean;
|
|
2104
|
+
showToolMessages(): boolean;
|
|
2105
|
+
allowUploads(): boolean;
|
|
2106
|
+
maxFileMb(): number;
|
|
2107
|
+
maxTotalMb(): number;
|
|
2108
|
+
deleteFilesAfterRun(): boolean;
|
|
2109
|
+
totalTokens(): number;
|
|
2110
|
+
filteredMessages(): AiTerminalMessageModel[];
|
|
2111
|
+
formatFileSize(bytes?: number): string;
|
|
2112
|
+
trackByConversation(index: number, convo: AiTerminalConversationModel): string;
|
|
2113
|
+
trackByMessage(index: number, message: AiTerminalMessageModel): string;
|
|
2114
|
+
createConversation(): Promise<void>;
|
|
2115
|
+
setActiveConversation(conversation: AiTerminalConversationModel): void;
|
|
2116
|
+
startRename(conversation: AiTerminalConversationModel): void;
|
|
2117
|
+
cancelRename(): void;
|
|
2118
|
+
saveRename(conversation: AiTerminalConversationModel): Promise<void>;
|
|
2119
|
+
deleteConversation(conversation: AiTerminalConversationModel): Promise<void>;
|
|
2120
|
+
sendMessage(): Promise<void>;
|
|
2121
|
+
deployTest(): Promise<void>;
|
|
2122
|
+
handleFileSelect(event: Event): void;
|
|
2123
|
+
removePendingFile(index: number): void;
|
|
2124
|
+
clearComposer(): void;
|
|
2125
|
+
private resolveConfig;
|
|
2126
|
+
private resolveMode;
|
|
2127
|
+
private resolveBranchEnabled;
|
|
2128
|
+
private methodNames;
|
|
2129
|
+
private subscribeConversations;
|
|
2130
|
+
private filterConversations;
|
|
2131
|
+
private ensureActiveConversation;
|
|
2132
|
+
private subscribeMessages;
|
|
2133
|
+
private uploadPendingFiles;
|
|
2134
|
+
private readFileAsBase64;
|
|
2135
|
+
private afterRunResponse;
|
|
2136
|
+
private ensureConversationId;
|
|
2137
|
+
private scrollToBottom;
|
|
2138
|
+
private unsubscribeAll;
|
|
2139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalComponent, never>;
|
|
2140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiTerminalComponent, "rio-ai-terminal", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; "conversationStatus": { "alias": "conversationStatus"; "required": false; }; "messageLimit": { "alias": "messageLimit"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
declare class AiTerminalModule {
|
|
2144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalModule, never>;
|
|
2145
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AiTerminalModule, [typeof AiTerminalComponent], [typeof SharedModule], [typeof AiTerminalComponent]>;
|
|
2146
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AiTerminalModule>;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2125
2149
|
declare class SchedulerComponent extends BaseComponent implements AfterViewInit, OnDestroy {
|
|
2126
2150
|
private _services;
|
|
2127
2151
|
today: Date;
|
|
@@ -2272,5 +2296,5 @@ declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
|
2272
2296
|
|
|
2273
2297
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
2274
2298
|
|
|
2275
|
-
export { AccountManagerService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission,
|
|
2276
|
-
export type { ActiveClientSubscriptionModel, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel,
|
|
2299
|
+
export { AccountManagerService, AiAssistantComponent, AiTerminalComponent, AiTerminalModule, AiTerminalService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
|
|
2300
|
+
export type { ActiveClientSubscriptionModel, AiTerminalAttachmentModel, AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
|