@tuki-io/tuki-widgets 0.0.219-dev.22 → 0.0.219-dev.24
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/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +6 -4
- package/esm2020/user-device-manage/src/classes/simplified-user.mjs +1 -1
- package/esm2020/user-manage/src/app.constants.mjs +7 -1
- package/esm2020/user-manage/src/classes/simplified-user.mjs +4 -3
- package/esm2020/user-manage/src/device-list/device-row/device-row.component.mjs +6 -4
- package/esm2020/user-manage/src/material.module.mjs +14 -7
- package/esm2020/user-manage/src/services/dcp-api.service.mjs +79 -0
- package/esm2020/user-manage/src/services/user.service.mjs +50 -9
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +52 -21
- package/esm2020/user-manage/src/user-manage.module.mjs +4 -1
- package/esm2020/users-list/src/classes/simlified-user.mjs +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +5 -3
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +197 -34
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +5 -3
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +196 -34
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +1 -1
- package/user-device-manage/src/classes/simplified-user.d.ts +1 -1
- package/user-manage/src/app.constants.d.ts +6 -0
- package/user-manage/src/classes/simplified-user.d.ts +4 -1
- package/user-manage/src/material.module.d.ts +2 -1
- package/user-manage/src/services/dcp-api.service.d.ts +21 -0
- package/user-manage/src/services/user.service.d.ts +7 -1
- package/user-manage/src/user-manage-widget.component.d.ts +9 -2
- package/users-list/src/classes/simlified-user.d.ts +1 -1
package/package.json
CHANGED
|
@@ -20,6 +20,11 @@ export declare const API: {
|
|
|
20
20
|
UPDATE_LINE_FIELDS: string;
|
|
21
21
|
UPDATE_DEVICE_FIELDS: string;
|
|
22
22
|
TRANSLATION_PATTERN_CUCM: string;
|
|
23
|
+
LEAN_USER_CONVERSATION_START: string;
|
|
24
|
+
LEAN_USER_DEVICES_CONVERSATION_START: string;
|
|
25
|
+
LEAN_USER_LINES_CONVERSATION_START: string;
|
|
26
|
+
LEAN_USER_SNR_CONVERSATION_START: string;
|
|
27
|
+
UPDATE_LEAN_USER_FIELDS: string;
|
|
23
28
|
};
|
|
24
29
|
export declare const REGEX_PATTERN: {
|
|
25
30
|
EMAIL: string;
|
|
@@ -32,3 +37,4 @@ export declare const PAGINATION_SIZE_OPTIONS: number[];
|
|
|
32
37
|
export declare const CUCS_TO_IGNORE: number[];
|
|
33
38
|
export declare const CUCMS_TO_IGNORE: number[];
|
|
34
39
|
export declare const RECORDING_MEDIA_SOURCE: string[];
|
|
40
|
+
export declare const ON_PREM_ID = 2542;
|
|
@@ -38,10 +38,13 @@ export declare class SimplifiedUser {
|
|
|
38
38
|
devices: Device[];
|
|
39
39
|
viewMode: string;
|
|
40
40
|
hasModifiedCache: boolean;
|
|
41
|
-
|
|
41
|
+
newUserid: string;
|
|
42
42
|
editMode: boolean;
|
|
43
43
|
ldapIntegrated: boolean;
|
|
44
44
|
lines?: LineInterface[];
|
|
45
|
+
leanUserDetailsToken?: string;
|
|
46
|
+
leanUserLinesToken?: string;
|
|
47
|
+
leanUserSNRToken?: string;
|
|
45
48
|
form: FormGroup;
|
|
46
49
|
constructor(user?: any, isLdap?: boolean);
|
|
47
50
|
getLineVal(lineAssociation: LineAssociation | LineAssociationInterface, lines: any, token: string): any;
|
|
@@ -21,8 +21,9 @@ import * as i19 from "@angular/material/checkbox";
|
|
|
21
21
|
import * as i20 from "@angular/material/slide-toggle";
|
|
22
22
|
import * as i21 from "@angular/material/table";
|
|
23
23
|
import * as i22 from "@angular/material/paginator";
|
|
24
|
+
import * as i23 from "@angular/material/menu";
|
|
24
25
|
export declare class MaterialModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.DragDropModule, typeof i2.MatButtonModule, typeof i3.MatListModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatExpansionModule, typeof i6.MatInputModule, typeof i6.MatInputModule, typeof i3.MatListModule, typeof i7.MatTreeModule, typeof i7.MatTreeModule, typeof i8.MatNativeDateModule, typeof i9.MatDatepickerModule, typeof i10.MatTooltipModule, typeof i11.MatAutocompleteModule, typeof i12.MatChipsModule, typeof i13.MatSidenavModule, typeof i14.MatFormFieldModule, typeof i15.MatStepperModule, typeof i16.MatTabsModule, typeof i17.MatCardModule, typeof i18.MatSelectModule, typeof i19.MatCheckboxModule, typeof i20.MatSlideToggleModule, typeof i21.MatTableModule, typeof i22.MatPaginatorModule], [typeof i1.DragDropModule, typeof i2.MatButtonModule, typeof i3.MatListModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatExpansionModule, typeof i6.MatInputModule, typeof i6.MatInputModule, typeof i3.MatListModule, typeof i7.MatTreeModule, typeof i7.MatTreeModule, typeof i8.MatNativeDateModule, typeof i9.MatDatepickerModule, typeof i10.MatTooltipModule, typeof i11.MatAutocompleteModule, typeof i12.MatChipsModule, typeof i13.MatSidenavModule, typeof i14.MatFormFieldModule, typeof i15.MatStepperModule, typeof i16.MatTabsModule, typeof i17.MatCardModule, typeof i19.MatCheckboxModule, typeof i18.MatSelectModule, typeof i20.MatSlideToggleModule, typeof i4.MatProgressSpinnerModule, typeof i21.MatTableModule, typeof i22.MatPaginatorModule]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.DragDropModule, typeof i2.MatButtonModule, typeof i3.MatListModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatExpansionModule, typeof i6.MatInputModule, typeof i6.MatInputModule, typeof i3.MatListModule, typeof i7.MatTreeModule, typeof i7.MatTreeModule, typeof i8.MatNativeDateModule, typeof i9.MatDatepickerModule, typeof i10.MatTooltipModule, typeof i11.MatAutocompleteModule, typeof i12.MatChipsModule, typeof i13.MatSidenavModule, typeof i14.MatFormFieldModule, typeof i15.MatStepperModule, typeof i16.MatTabsModule, typeof i17.MatCardModule, typeof i18.MatSelectModule, typeof i19.MatCheckboxModule, typeof i20.MatSlideToggleModule, typeof i21.MatTableModule, typeof i22.MatPaginatorModule, typeof i23.MatMenuModule], [typeof i1.DragDropModule, typeof i2.MatButtonModule, typeof i3.MatListModule, typeof i4.MatProgressSpinnerModule, typeof i5.MatExpansionModule, typeof i6.MatInputModule, typeof i6.MatInputModule, typeof i3.MatListModule, typeof i7.MatTreeModule, typeof i7.MatTreeModule, typeof i8.MatNativeDateModule, typeof i9.MatDatepickerModule, typeof i10.MatTooltipModule, typeof i11.MatAutocompleteModule, typeof i12.MatChipsModule, typeof i13.MatSidenavModule, typeof i14.MatFormFieldModule, typeof i15.MatStepperModule, typeof i16.MatTabsModule, typeof i17.MatCardModule, typeof i19.MatCheckboxModule, typeof i18.MatSelectModule, typeof i20.MatSlideToggleModule, typeof i4.MatProgressSpinnerModule, typeof i21.MatTableModule, typeof i22.MatPaginatorModule, typeof i23.MatMenuModule]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TableDataInterface } from '../classes/table-data';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DcpApiService {
|
|
6
|
+
private httpClient;
|
|
7
|
+
token: any;
|
|
8
|
+
apiUrl: string;
|
|
9
|
+
constructor(httpClient: HttpClient);
|
|
10
|
+
fetch(url: string, params?: any, cache?: boolean): Observable<Object>;
|
|
11
|
+
post(url: string, body: any, params?: {}): any;
|
|
12
|
+
postExtended(url: string, body?: null, params?: {}, headers?: {}): Observable<import("@angular/common/http").HttpResponse<Object>>;
|
|
13
|
+
put(url: string, body?: any, params?: {}): Observable<Object>;
|
|
14
|
+
delete(url: string, params?: {}): Observable<Object>;
|
|
15
|
+
fetchPagination(url: string, pageSize: number, pageNumber: number, additionalParams?: {}, cache?: boolean): Observable<TableDataInterface>;
|
|
16
|
+
private prepareEncodedParams;
|
|
17
|
+
private getHeaders;
|
|
18
|
+
private getParameterByName;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DcpApiService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DcpApiService>;
|
|
21
|
+
}
|
|
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { SimplifiedUser } from '../classes/simplified-user';
|
|
4
4
|
import { APIService } from './api.service';
|
|
5
|
+
import { DcpApiService } from './dcp-api.service';
|
|
5
6
|
import { LineAssociation } from '../classes/line-association';
|
|
6
7
|
import { LineAssociationInterface } from '../classes/line-association-interface';
|
|
7
8
|
import { LineService } from './line.service';
|
|
@@ -9,6 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class UserService implements OnInit {
|
|
10
11
|
private apiService;
|
|
11
12
|
private lineService;
|
|
13
|
+
private dcpApiService;
|
|
12
14
|
siteId: number;
|
|
13
15
|
userId: string;
|
|
14
16
|
dataPending: boolean;
|
|
@@ -20,7 +22,7 @@ export declare class UserService implements OnInit {
|
|
|
20
22
|
onUserLineSaved$: Subject<any>;
|
|
21
23
|
get lineAssociation(): LineAssociation | LineAssociationInterface;
|
|
22
24
|
get originLineAssociation(): LineAssociation | LineAssociationInterface;
|
|
23
|
-
constructor(apiService: APIService, lineService: LineService);
|
|
25
|
+
constructor(apiService: APIService, lineService: LineService, dcpApiService: DcpApiService);
|
|
24
26
|
ngOnInit(): void;
|
|
25
27
|
fetchUserToken(siteId: number, userId: string, isLdap?: boolean, isSetNewTokenOnly?: boolean): any;
|
|
26
28
|
fetchWebexUserToken(customerId: string, userId: string): any;
|
|
@@ -42,6 +44,10 @@ export declare class UserService implements OnInit {
|
|
|
42
44
|
setSimplifiedUser(user: any, isLdap?: boolean): void;
|
|
43
45
|
private handleSaveUserResponse;
|
|
44
46
|
getPrimaryLineDevice(primaryLineReferenceDirectoryNumber: string): any;
|
|
47
|
+
fetchLeanUserConversationById(id: string, siteId?: number): import("rxjs").Observable<Object>;
|
|
48
|
+
fetchLeanUserDevicesConversationById(id: string, siteId?: number): import("rxjs").Observable<Object>;
|
|
49
|
+
fetchLeanUserLinesConversationById(id: string, siteId: number): import("rxjs").Observable<Object>;
|
|
50
|
+
fetchLeanUserSNRConversationById(id: string, siteId?: number): import("rxjs").Observable<Object>;
|
|
45
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
46
52
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
47
53
|
}
|
|
@@ -5,10 +5,12 @@ import { APIService } from "./services/api.service";
|
|
|
5
5
|
import { LineAssociation } from './classes/line-association';
|
|
6
6
|
import { LineAssociationInterface } from './classes/line-association-interface';
|
|
7
7
|
import { Device } from './classes/device';
|
|
8
|
+
import { DcpApiService } from './services/dcp-api.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class UserManageWidgetComponent implements OnInit {
|
|
10
11
|
userService: UserService;
|
|
11
12
|
private apiService;
|
|
13
|
+
private dcpApiService;
|
|
12
14
|
dataPending: boolean;
|
|
13
15
|
onSave: EventEmitter<string>;
|
|
14
16
|
onChange: EventEmitter<string>;
|
|
@@ -16,6 +18,7 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
16
18
|
goBack: EventEmitter<any>;
|
|
17
19
|
token: string;
|
|
18
20
|
host: string;
|
|
21
|
+
dcpHost: string;
|
|
19
22
|
siteId: number;
|
|
20
23
|
userId: string;
|
|
21
24
|
deviceName: string;
|
|
@@ -25,8 +28,11 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
25
28
|
get userName(): string;
|
|
26
29
|
get lineAssociation(): LineAssociation | LineAssociationInterface | undefined;
|
|
27
30
|
get primaryLineReference(): string | undefined;
|
|
31
|
+
get webexUUID(): string | null;
|
|
28
32
|
private readonly router;
|
|
29
|
-
|
|
33
|
+
private readonly location;
|
|
34
|
+
readonly ON_PREM_ID = 2542;
|
|
35
|
+
constructor(userService: UserService, apiService: APIService, dcpApiService: DcpApiService);
|
|
30
36
|
ngOnInit(): void;
|
|
31
37
|
onDeviceSelect(device: Device): void;
|
|
32
38
|
onGoBack(): void;
|
|
@@ -39,8 +45,9 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
39
45
|
private digestCredentialsHandler;
|
|
40
46
|
private getData;
|
|
41
47
|
private setCookie;
|
|
48
|
+
private updateUrlIfUserIdChanged;
|
|
42
49
|
private validateUserId;
|
|
43
50
|
save(): void;
|
|
44
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserManageWidgetComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserManageWidgetComponent, "app-user-manage-widget", never, { "token": "token"; "host": "host"; "siteId": "siteId"; "userId": "userId"; "deviceName": "deviceName"; "isLdap": "isLdap"; }, { "onSave": "onSave"; "onChange": "onChange"; "selectDevice": "selectDevice"; "goBack": "goBack"; }, never, never, false, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserManageWidgetComponent, "app-user-manage-widget", never, { "token": "token"; "host": "host"; "dcpHost": "dcpHost"; "siteId": "siteId"; "userId": "userId"; "deviceName": "deviceName"; "isLdap": "isLdap"; }, { "onSave": "onSave"; "onChange": "onChange"; "selectDevice": "selectDevice"; "goBack": "goBack"; }, never, never, false, never>;
|
|
46
53
|
}
|