@tuki-io/tuki-widgets 0.0.219-dev.23 → 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-manage/src/services/dcp-api.service.mjs +79 -0
- package/esm2020/user-manage/src/services/user.service.mjs +9 -7
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +45 -19
- package/esm2020/user-manage/src/user-manage.module.mjs +4 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +124 -21
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +123 -21
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/package.json +1 -1
- package/user-manage/src/services/dcp-api.service.d.ts +21 -0
- package/user-manage/src/services/user.service.d.ts +3 -1
- package/user-manage/src/user-manage-widget.component.d.ts +7 -2
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -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;
|
|
@@ -27,8 +30,9 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
27
30
|
get primaryLineReference(): string | undefined;
|
|
28
31
|
get webexUUID(): string | null;
|
|
29
32
|
private readonly router;
|
|
33
|
+
private readonly location;
|
|
30
34
|
readonly ON_PREM_ID = 2542;
|
|
31
|
-
constructor(userService: UserService, apiService: APIService);
|
|
35
|
+
constructor(userService: UserService, apiService: APIService, dcpApiService: DcpApiService);
|
|
32
36
|
ngOnInit(): void;
|
|
33
37
|
onDeviceSelect(device: Device): void;
|
|
34
38
|
onGoBack(): void;
|
|
@@ -41,8 +45,9 @@ export declare class UserManageWidgetComponent implements OnInit {
|
|
|
41
45
|
private digestCredentialsHandler;
|
|
42
46
|
private getData;
|
|
43
47
|
private setCookie;
|
|
48
|
+
private updateUrlIfUserIdChanged;
|
|
44
49
|
private validateUserId;
|
|
45
50
|
save(): void;
|
|
46
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserManageWidgetComponent, never>;
|
|
47
|
-
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>;
|
|
48
53
|
}
|