@tuki-io/tuki-widgets 0.0.166 → 0.0.167
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/di2mt/shared/services/api.service.mjs +3 -3
- package/esm2020/user-creation/public-api.mjs +13 -0
- package/esm2020/user-creation/src/app.constants.mjs +16 -0
- package/esm2020/user-creation/src/classes/site.mjs +53 -0
- package/esm2020/user-creation/src/shared/api/api.service.mjs +86 -0
- package/esm2020/user-creation/src/shared/material.module.mjs +76 -0
- package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +112 -0
- package/esm2020/user-creation/src/shared/services/utils.mjs +19 -0
- package/esm2020/user-creation/src/shared/shared.module.mjs +33 -0
- package/esm2020/user-creation/src/user-creation.module.mjs +69 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +23 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.mjs +19 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +114 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +60 -0
- package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +273 -0
- package/esm2020/user-creation/tuki-io-tuki-widgets-user-creation.mjs +5 -0
- package/esm2020/users-list/src/components/table-toolbar/table-toolbar.component.mjs +9 -3
- package/esm2020/users-list/src/users-list.component.mjs +9 -3
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +2 -2
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +919 -0
- package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +16 -4
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +2 -2
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +915 -0
- package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -0
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +16 -4
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +9 -1
- package/user-creation/index.d.ts +5 -0
- package/user-creation/public-api.d.ts +2 -0
- package/user-creation/src/app.constants.d.ts +15 -0
- package/user-creation/src/classes/site.d.ts +203 -0
- package/user-creation/src/shared/api/api.service.d.ts +20 -0
- package/user-creation/src/shared/material.module.d.ts +15 -0
- package/user-creation/src/shared/services/user-creation-api.service.d.ts +24 -0
- package/user-creation/src/shared/services/utils.d.ts +1 -0
- package/user-creation/src/shared/shared.module.d.ts +10 -0
- package/user-creation/src/user-creation.module.d.ts +17 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.d.ts +8 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.d.ts +11 -0
- package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +37 -0
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +18 -0
- package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.d.ts +87 -0
- package/users-list/src/components/table-toolbar/table-toolbar.component.d.ts +3 -1
- package/users-list/src/users-list.component.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuki-io/tuki-widgets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.167",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.0",
|
|
6
6
|
"@angular/core": "^15.2.0",
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
"node": "./fesm2015/tuki-io-tuki-widgets-di2mt.mjs",
|
|
45
45
|
"default": "./fesm2020/tuki-io-tuki-widgets-di2mt.mjs"
|
|
46
46
|
},
|
|
47
|
+
"./user-creation": {
|
|
48
|
+
"types": "./user-creation/index.d.ts",
|
|
49
|
+
"esm2020": "./esm2020/user-creation/tuki-io-tuki-widgets-user-creation.mjs",
|
|
50
|
+
"es2020": "./fesm2020/tuki-io-tuki-widgets-user-creation.mjs",
|
|
51
|
+
"es2015": "./fesm2015/tuki-io-tuki-widgets-user-creation.mjs",
|
|
52
|
+
"node": "./fesm2015/tuki-io-tuki-widgets-user-creation.mjs",
|
|
53
|
+
"default": "./fesm2020/tuki-io-tuki-widgets-user-creation.mjs"
|
|
54
|
+
},
|
|
47
55
|
"./user-device-manage": {
|
|
48
56
|
"types": "./user-device-manage/index.d.ts",
|
|
49
57
|
"esm2020": "./esm2020/user-device-manage/tuki-io-tuki-widgets-user-device-manage.mjs",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const API: {
|
|
2
|
+
WEBEX_CHECK_CONTROL_HUB_INTEGRATION: string;
|
|
3
|
+
SITES: string;
|
|
4
|
+
SITE: string;
|
|
5
|
+
DEVICE_TYPES: string;
|
|
6
|
+
SITE_SETTINGS: string;
|
|
7
|
+
VM_USER_TEMPLATES: string;
|
|
8
|
+
USER_TEMPLATES_UPLOAD_LIST: string;
|
|
9
|
+
USER_TEMPLATE_TOKEN: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const USER_CREATION_TYPES: {
|
|
12
|
+
CUCM: string;
|
|
13
|
+
MT: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const MAX_INTEGER = 2147483647;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { FormGroup } from "@angular/forms";
|
|
2
|
+
export interface SiteInterface {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
country: any;
|
|
6
|
+
locationName: string;
|
|
7
|
+
isAfterTtu: boolean;
|
|
8
|
+
shortName: string;
|
|
9
|
+
ttuEnableDate?: string;
|
|
10
|
+
cucm: any;
|
|
11
|
+
cuc: any;
|
|
12
|
+
hasActivated?: boolean;
|
|
13
|
+
deactivateDate?: string;
|
|
14
|
+
siteUniqueId?: number;
|
|
15
|
+
form: FormGroup;
|
|
16
|
+
initForm: () => void;
|
|
17
|
+
getSavableData: () => void;
|
|
18
|
+
getId: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare class Site implements SiteInterface {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
country: any;
|
|
24
|
+
locationName: string;
|
|
25
|
+
isAfterTtu: boolean;
|
|
26
|
+
shortName: string;
|
|
27
|
+
ttuEnableDate?: string;
|
|
28
|
+
cucm: any;
|
|
29
|
+
cuc: any;
|
|
30
|
+
hasActivated?: boolean;
|
|
31
|
+
deactivateDate?: string;
|
|
32
|
+
address1?: string;
|
|
33
|
+
address2?: string;
|
|
34
|
+
city?: string;
|
|
35
|
+
state?: string;
|
|
36
|
+
zipCode?: string;
|
|
37
|
+
form: FormGroup;
|
|
38
|
+
constructor(site?: SiteInterface);
|
|
39
|
+
initForm(): void;
|
|
40
|
+
getSavableData(): any;
|
|
41
|
+
getId(): number;
|
|
42
|
+
}
|
|
43
|
+
export interface SiteTemplateInterface {
|
|
44
|
+
id: number;
|
|
45
|
+
routePartitionFilter: string | string[];
|
|
46
|
+
devicePoolFilter: string | string[];
|
|
47
|
+
cssFilter: string | string[] | undefined;
|
|
48
|
+
voicemailProfileFilter: string | string[];
|
|
49
|
+
lineCss: string;
|
|
50
|
+
deviceCss: string;
|
|
51
|
+
callForwardAllCss: string;
|
|
52
|
+
location: string;
|
|
53
|
+
voicemailUserTemplate: string;
|
|
54
|
+
routePartition: string;
|
|
55
|
+
devicePool: string;
|
|
56
|
+
voicemailProfile: string;
|
|
57
|
+
externalCallerId: string;
|
|
58
|
+
huntPilotPartition: string;
|
|
59
|
+
callPickupGroupPartition: string;
|
|
60
|
+
meetMeConferencePartition: string;
|
|
61
|
+
callParkPartition: string;
|
|
62
|
+
userLocale: string;
|
|
63
|
+
networkLocale: string;
|
|
64
|
+
cucmGroup: string;
|
|
65
|
+
softkeyTemplates: string;
|
|
66
|
+
phoneButtonTemplate: string;
|
|
67
|
+
phoneSecurityProfile: string;
|
|
68
|
+
sipProfile: string;
|
|
69
|
+
rdpCss: string;
|
|
70
|
+
rdpRerouteCss: string;
|
|
71
|
+
commonPhoneProfile: string;
|
|
72
|
+
subscribeCss: string;
|
|
73
|
+
enableEm: boolean | string;
|
|
74
|
+
forwardHuntBusyCSS: string;
|
|
75
|
+
forwardHuntNoAnswerCSS: string;
|
|
76
|
+
forwardBusyInternalCss: string;
|
|
77
|
+
forwardBusyExternalCss: string;
|
|
78
|
+
forwardNoAnswerInternalCss: string;
|
|
79
|
+
forwardNoAnswerExternalCss: string;
|
|
80
|
+
forwardNoCoverageInternalCss: string;
|
|
81
|
+
forwardNoCoverageExternalCss: string;
|
|
82
|
+
forwardOnCtiFailureCss: string;
|
|
83
|
+
forwardUnregisteredInternalCss: string;
|
|
84
|
+
forwardUnregisteredExternalCss: string;
|
|
85
|
+
rdpExternalCallerId: string;
|
|
86
|
+
noAnswerRingDuration: string;
|
|
87
|
+
ucServiceProfile: string;
|
|
88
|
+
phoneSystem: string;
|
|
89
|
+
maxNumberOfCalls: string;
|
|
90
|
+
busyTrigger: string;
|
|
91
|
+
didPartition: string;
|
|
92
|
+
didCss: string;
|
|
93
|
+
vossCompatibilitySiteCode: string;
|
|
94
|
+
vossCompatibilityRidCode: string;
|
|
95
|
+
dialPlanType: string;
|
|
96
|
+
emService: string;
|
|
97
|
+
emergencyPartition?: string;
|
|
98
|
+
cucPartition: string;
|
|
99
|
+
alertingName?: string;
|
|
100
|
+
displayCallerId?: string;
|
|
101
|
+
lineTextLabel?: string;
|
|
102
|
+
textLabel?: string;
|
|
103
|
+
internalTranslationPartition?: string;
|
|
104
|
+
internalTranslationCss?: string;
|
|
105
|
+
plarCss?: string;
|
|
106
|
+
lineDescription?: string;
|
|
107
|
+
deviceDescription?: string;
|
|
108
|
+
sharedSitesCssFilter?: string[];
|
|
109
|
+
sharedSitesRPFilter?: string[];
|
|
110
|
+
reroutingCss?: string;
|
|
111
|
+
udpDeviceType: string;
|
|
112
|
+
udpDeviceProtocol: string;
|
|
113
|
+
udpButtonTemplate: string;
|
|
114
|
+
userUserLocale: string;
|
|
115
|
+
userAccessControlGroups?: string;
|
|
116
|
+
}
|
|
117
|
+
export declare class SiteDefaults implements SiteTemplateInterface {
|
|
118
|
+
id: number;
|
|
119
|
+
routePartitionFilter: string[];
|
|
120
|
+
devicePoolFilter: string[];
|
|
121
|
+
cssFilter: string[];
|
|
122
|
+
voicemailProfileFilter: string[];
|
|
123
|
+
lineCss: string;
|
|
124
|
+
deviceCss: string;
|
|
125
|
+
callForwardAllCss: string;
|
|
126
|
+
location: string;
|
|
127
|
+
voicemailUserTemplate: string;
|
|
128
|
+
routePartition: string;
|
|
129
|
+
devicePool: string;
|
|
130
|
+
voicemailProfile: string;
|
|
131
|
+
externalCallerId: string;
|
|
132
|
+
huntPilotPartition: string;
|
|
133
|
+
callPickupGroupPartition: string;
|
|
134
|
+
meetMeConferencePartition: string;
|
|
135
|
+
callParkPartition: string;
|
|
136
|
+
userLocale: string;
|
|
137
|
+
networkLocale: string;
|
|
138
|
+
cucmGroup: string;
|
|
139
|
+
softkeyTemplates: string;
|
|
140
|
+
phoneButtonTemplate: string;
|
|
141
|
+
phoneSecurityProfile: string;
|
|
142
|
+
sipProfile: string;
|
|
143
|
+
rdpCss: string;
|
|
144
|
+
rdpRerouteCss: string;
|
|
145
|
+
commonPhoneProfile: string;
|
|
146
|
+
subscribeCss: string;
|
|
147
|
+
enableEm: boolean;
|
|
148
|
+
forwardHuntBusyCSS: string;
|
|
149
|
+
forwardHuntNoAnswerCSS: string;
|
|
150
|
+
forwardBusyInternalCss: string;
|
|
151
|
+
forwardBusyExternalCss: string;
|
|
152
|
+
forwardNoAnswerInternalCss: string;
|
|
153
|
+
forwardNoAnswerExternalCss: string;
|
|
154
|
+
forwardNoCoverageInternalCss: string;
|
|
155
|
+
forwardNoCoverageExternalCss: string;
|
|
156
|
+
forwardOnCtiFailureCss: string;
|
|
157
|
+
forwardUnregisteredInternalCss: string;
|
|
158
|
+
forwardUnregisteredExternalCss: string;
|
|
159
|
+
rdpExternalCallerId: string;
|
|
160
|
+
noAnswerRingDuration: string;
|
|
161
|
+
ucServiceProfile: string;
|
|
162
|
+
phoneSystem: string;
|
|
163
|
+
maxNumberOfCalls: string;
|
|
164
|
+
busyTrigger: string;
|
|
165
|
+
didPartition: string;
|
|
166
|
+
didCss: string;
|
|
167
|
+
vossCompatibilitySiteCode: string;
|
|
168
|
+
vossCompatibilityRidCode: string;
|
|
169
|
+
dialPlanType: string;
|
|
170
|
+
emService: string;
|
|
171
|
+
cucPartition: string;
|
|
172
|
+
alertingName?: string;
|
|
173
|
+
displayCallerId?: string;
|
|
174
|
+
textLabel?: string;
|
|
175
|
+
internalTranslationPartition?: string;
|
|
176
|
+
internalTranslationCss?: string;
|
|
177
|
+
plarCss?: string;
|
|
178
|
+
lineDescription?: string;
|
|
179
|
+
deviceDescription?: string;
|
|
180
|
+
sharedSitesCssFilter: string[];
|
|
181
|
+
sharedSitesRPFilter: string[];
|
|
182
|
+
udpDeviceType: string;
|
|
183
|
+
udpDeviceProtocol: string;
|
|
184
|
+
udpButtonTemplate: string;
|
|
185
|
+
userUserLocale: string;
|
|
186
|
+
userAccessControlGroups?: string;
|
|
187
|
+
constructor(siteDefaults?: SiteTemplateInterface, isSharedLineSite?: boolean);
|
|
188
|
+
}
|
|
189
|
+
export interface UserTemplateInterface {
|
|
190
|
+
id: number;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
customerId: number;
|
|
194
|
+
endUser: any;
|
|
195
|
+
userRequiredFields?: string[];
|
|
196
|
+
deviceRequiredFields?: string[];
|
|
197
|
+
lineRequiredFields?: string[];
|
|
198
|
+
editMode?: boolean;
|
|
199
|
+
isChanged?: boolean;
|
|
200
|
+
type?: string;
|
|
201
|
+
ownerType?: string;
|
|
202
|
+
globalTemplate?: boolean;
|
|
203
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class APIService {
|
|
5
|
+
private httpClient;
|
|
6
|
+
token: any;
|
|
7
|
+
apiUrl: string;
|
|
8
|
+
constructor(httpClient: HttpClient);
|
|
9
|
+
fetch(url: string, params?: any, cache?: boolean): Observable<any>;
|
|
10
|
+
post(url: string, body: any, params?: {}): Observable<any>;
|
|
11
|
+
postExtended(url: string, body?: null, params?: {}, headers?: {}): Observable<import("@angular/common/http").HttpResponse<Object>>;
|
|
12
|
+
put(url: string, body?: null, params?: {}): Observable<Object>;
|
|
13
|
+
delete(url: string, params?: {}): Observable<Object>;
|
|
14
|
+
fetchPagination(url: string, pageSize: number, pageNumber: number, additionalParams?: {}, cache?: boolean): Observable<any>;
|
|
15
|
+
private prepareEncodedParams;
|
|
16
|
+
private getHeaders;
|
|
17
|
+
private getParameterByName;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<APIService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<APIService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/material/progress-bar";
|
|
3
|
+
import * as i2 from "@angular/material/tooltip";
|
|
4
|
+
import * as i3 from "@angular/material/table";
|
|
5
|
+
import * as i4 from "@angular/material/checkbox";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/icon";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@angular/material/select";
|
|
11
|
+
export declare class MaterialModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.MatProgressBarModule, typeof i2.MatTooltipModule, typeof i3.MatTableModule, typeof i4.MatCheckboxModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatSelectModule], [typeof i1.MatProgressBarModule, typeof i2.MatTooltipModule, typeof i3.MatTableModule, typeof i4.MatCheckboxModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatSelectModule]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Site, SiteDefaults, SiteInterface, UserTemplateInterface } from "../../classes/site";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UserCreationApiService {
|
|
5
|
+
private _allSites;
|
|
6
|
+
private readonly sitesListSubject$;
|
|
7
|
+
readonly sitesList$: Observable<Site[]>;
|
|
8
|
+
private readonly templatesListSubject$;
|
|
9
|
+
readonly templatesList$: Observable<UserTemplateInterface[]>;
|
|
10
|
+
private apiService;
|
|
11
|
+
constructor();
|
|
12
|
+
getSitesList(): void;
|
|
13
|
+
checkControlHubIntegration(customerId: string): Observable<any>;
|
|
14
|
+
getAllCustomerSites(customerId: string, onlySitesWithLocation?: boolean): Observable<Site[]>;
|
|
15
|
+
getSiteData(siteId: number): Observable<[SiteInterface, string[], SiteDefaults, void]>;
|
|
16
|
+
getSite(siteId: number, isEdit?: boolean): Observable<SiteInterface>;
|
|
17
|
+
getDeviceTypes(siteId: number | string): Observable<string[]>;
|
|
18
|
+
getSiteDefaults(siteId: number, directAccess: boolean, sharedLineSiteIds?: string): Observable<SiteDefaults>;
|
|
19
|
+
getVoiceMailUserTemplates(siteId: number): Observable<void>;
|
|
20
|
+
fetchAllUserTemplates(siteId: number): Observable<UserTemplateInterface[]>;
|
|
21
|
+
getUserTemplateToken(id: string, customerId: string): Observable<any>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationApiService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserCreationApiService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSavableData: (model: any, exclude?: Array<string>) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./material.module";
|
|
4
|
+
import * as i3 from "ng-apexcharts";
|
|
5
|
+
import * as i4 from "@angular/common/http";
|
|
6
|
+
export declare class SharedModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule, typeof i2.MaterialModule, typeof i3.NgApexchartsModule, typeof i4.HttpClientModule], [typeof i2.MaterialModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./widgets/user-creation-wizard/user-creation-wizard.component";
|
|
3
|
+
import * as i2 from "./widgets/user-creation-wizard/components/user-template-step/user-template-step.component";
|
|
4
|
+
import * as i3 from "./widgets/user-creation-wizard/components/user-details-step/user-details-step.component";
|
|
5
|
+
import * as i4 from "./widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "./shared/shared.module";
|
|
8
|
+
import * as i7 from "./shared/material.module";
|
|
9
|
+
import * as i8 from "@angular/material/stepper";
|
|
10
|
+
import * as i9 from "@angular/material/expansion";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@angular/material/radio";
|
|
13
|
+
export declare class UserCreationModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.UserDetailsStepComponent, typeof i4.UserOverviewStepComponent], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.MaterialModule, typeof i8.MatStepperModule, typeof i9.MatExpansionModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.MatRadioModule], [typeof i1.UserCreationWizardComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserCreationModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserDetailsStepComponent {
|
|
4
|
+
userCreationWizardService: UserCreationWizardService;
|
|
5
|
+
constructor(userCreationWizardService: UserCreationWizardService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserDetailsStepComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserDetailsStepComponent, "tk-user-details-step", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserOverviewStepComponent {
|
|
4
|
+
userCreationWizardService: UserCreationWizardService;
|
|
5
|
+
readonly USER_DETAILS_COLS: string[];
|
|
6
|
+
readonly LINES_COLS: string[];
|
|
7
|
+
readonly DEVICES_COLS: string[];
|
|
8
|
+
constructor(userCreationWizardService: UserCreationWizardService);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserOverviewStepComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserOverviewStepComponent, "tk-user-overview-step", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UserCreationWizardService } from "../../user-creation-wizard.service";
|
|
2
|
+
import { FormBuilder, FormControl } from "@angular/forms";
|
|
3
|
+
import { UserCreationApiService } from "../../../../shared/services/user-creation-api.service";
|
|
4
|
+
import { UserTemplateInterface } from "../../../../classes/site";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UserTemplateStepComponent {
|
|
7
|
+
userCreationWizardService: UserCreationWizardService;
|
|
8
|
+
private readonly userCreationService;
|
|
9
|
+
private readonly fb;
|
|
10
|
+
customerId: number;
|
|
11
|
+
formGroup: import("@angular/forms").FormGroup<{
|
|
12
|
+
userType: FormControl<string | null>;
|
|
13
|
+
siteId: FormControl<null>;
|
|
14
|
+
userTemplateId: FormControl<string | null>;
|
|
15
|
+
}>;
|
|
16
|
+
userCreationType: string;
|
|
17
|
+
readonly USER_CREATION_TYPES: {
|
|
18
|
+
CUCM: string;
|
|
19
|
+
MT: string;
|
|
20
|
+
};
|
|
21
|
+
readonly defaultTemplateName = "User 8851 Office";
|
|
22
|
+
readonly fallbackTemplateId = "-1";
|
|
23
|
+
private readonly destroy$;
|
|
24
|
+
readonly sitesList$: import("rxjs").Observable<import("../../../../classes/site").Site[]>;
|
|
25
|
+
readonly templatesList$: import("rxjs").Observable<UserTemplateInterface[]>;
|
|
26
|
+
isTemplateSelectable: boolean;
|
|
27
|
+
templates: UserTemplateInterface[];
|
|
28
|
+
readonly templateToggleFormControl: FormControl<boolean | null>;
|
|
29
|
+
constructor(userCreationWizardService: UserCreationWizardService, userCreationService: UserCreationApiService, fb: FormBuilder);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
reseFieldstForm(): void;
|
|
32
|
+
private getData;
|
|
33
|
+
private getSites;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserTemplateStepComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserTemplateStepComponent, "tk-user-template-step", never, { "customerId": "customerId"; }, {}, never, never, false, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UserCreationWizardComponent implements OnInit, OnDestroy {
|
|
4
|
+
private readonly apiService;
|
|
5
|
+
title: string;
|
|
6
|
+
token: string;
|
|
7
|
+
customerId: number;
|
|
8
|
+
cancel: EventEmitter<void>;
|
|
9
|
+
submit: EventEmitter<void>;
|
|
10
|
+
isSubmitting: boolean;
|
|
11
|
+
private submitTimerId;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onCancel(): void;
|
|
14
|
+
onSubmit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserCreationWizardComponent, "tk-user-creation-wizard", never, { "title": "title"; "token": "token"; "customerId": "customerId"; }, { "cancel": "cancel"; "submit": "submit"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface LdapUserRow {
|
|
3
|
+
userId: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OverviewUserRow extends LdapUserRow {
|
|
9
|
+
userTemplate: string;
|
|
10
|
+
}
|
|
11
|
+
export interface OverviewLineRow {
|
|
12
|
+
number: string;
|
|
13
|
+
did: string;
|
|
14
|
+
routePartitionName: string;
|
|
15
|
+
css: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
18
|
+
export interface OverviewDeviceRow {
|
|
19
|
+
name: string;
|
|
20
|
+
deviceType: string;
|
|
21
|
+
lines: string;
|
|
22
|
+
description: string;
|
|
23
|
+
}
|
|
24
|
+
export type UserCreationType = 'CUCM' | 'MT';
|
|
25
|
+
export interface UserDetailsForm {
|
|
26
|
+
userId: string;
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
email: string;
|
|
30
|
+
}
|
|
31
|
+
export interface LineOption {
|
|
32
|
+
number: string;
|
|
33
|
+
did: string;
|
|
34
|
+
css: string;
|
|
35
|
+
description: string;
|
|
36
|
+
}
|
|
37
|
+
export interface SelectedLineRow {
|
|
38
|
+
lineNumber: string | null;
|
|
39
|
+
routePartitionName: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface DeviceEntry {
|
|
42
|
+
deviceType: string;
|
|
43
|
+
protocol: string;
|
|
44
|
+
buttonTemplate: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class UserCreationWizardService {
|
|
48
|
+
private readonly api;
|
|
49
|
+
readonly ldapTableColumns: string[];
|
|
50
|
+
readonly userCreationTypes: UserCreationType[];
|
|
51
|
+
siteOptions: string[];
|
|
52
|
+
templateOptions: string[];
|
|
53
|
+
lineOptions: LineOption[];
|
|
54
|
+
routePartitionOptions: string[];
|
|
55
|
+
deviceRows: number[];
|
|
56
|
+
ldapUsers: LdapUserRow[];
|
|
57
|
+
overviewUsers: OverviewUserRow[];
|
|
58
|
+
overviewLines: OverviewLineRow[];
|
|
59
|
+
overviewDevices: OverviewDeviceRow[];
|
|
60
|
+
userDetailsForm: UserDetailsForm;
|
|
61
|
+
lineSelections: SelectedLineRow[];
|
|
62
|
+
deviceEntries: DeviceEntry[];
|
|
63
|
+
selectedSite: string | null;
|
|
64
|
+
selectedTemplate: string | null;
|
|
65
|
+
selectedUserCreationType: UserCreationType;
|
|
66
|
+
constructor();
|
|
67
|
+
setSelectedSite(site: string | null): void;
|
|
68
|
+
setSelectedTemplate(template: string | null): void;
|
|
69
|
+
resetTemplateDrivenData(): void;
|
|
70
|
+
applyTemplateTokenPayload(payload: any): void;
|
|
71
|
+
setSelectedUserCreationType(type: UserCreationType): void;
|
|
72
|
+
setUserDetailsField(field: keyof UserDetailsForm, value: string): void;
|
|
73
|
+
setLineSelection(index: number, lineNumber: string | null): void;
|
|
74
|
+
setRoutePartitionSelection(index: number, routePartitionName: string | null): void;
|
|
75
|
+
setDeviceName(index: number, name: string): void;
|
|
76
|
+
loadPlaceholderData(): void;
|
|
77
|
+
private rebuildOverviewUsers;
|
|
78
|
+
private rebuildOverviewLines;
|
|
79
|
+
private rebuildOverviewDevices;
|
|
80
|
+
private extractTemplateFromTokenPayload;
|
|
81
|
+
private uniqueByNumber;
|
|
82
|
+
private uniqueStrings;
|
|
83
|
+
private valueToString;
|
|
84
|
+
loadDataFromApi(): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationWizardService, never>;
|
|
86
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserCreationWizardService>;
|
|
87
|
+
}
|
|
@@ -5,9 +5,11 @@ export declare class TableToolbarComponent {
|
|
|
5
5
|
totalUsersCount: number;
|
|
6
6
|
readonly searchChange: EventEmitter<string>;
|
|
7
7
|
readonly searchByType: EventEmitter<USER_TYPES_TYPE>;
|
|
8
|
+
readonly addUser: EventEmitter<void>;
|
|
8
9
|
private timerId;
|
|
9
10
|
onSearchInputChange(event: Event): void;
|
|
10
11
|
onTypeChange(event: Event): void;
|
|
12
|
+
onAddUser(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableToolbarComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; "searchByType": "searchByType"; }, never, never, false, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbarComponent, "tk-users-table-toolbar", never, { "totalUsersCount": "totalUsersCount"; }, { "searchChange": "searchChange"; "searchByType": "searchByType"; "addUser": "addUser"; }, never, never, false, never>;
|
|
13
15
|
}
|
|
@@ -24,6 +24,7 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
openUser: EventEmitter<any>;
|
|
25
25
|
userMoved: EventEmitter<any>;
|
|
26
26
|
switchToWizard: EventEmitter<any>;
|
|
27
|
+
createUserRequested: EventEmitter<void>;
|
|
27
28
|
host: string;
|
|
28
29
|
dataPending: boolean;
|
|
29
30
|
moveInProgressUserId: string;
|
|
@@ -61,6 +62,7 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
61
62
|
runMoveUserToMT(): void;
|
|
62
63
|
searchUsers(token: string, type?: USER_TYPES_TYPE): void;
|
|
63
64
|
searchByType(userType: USER_TYPES_TYPE): void;
|
|
65
|
+
onCreateUserRequested(): void;
|
|
64
66
|
private filterByToken;
|
|
65
67
|
private filterByType;
|
|
66
68
|
onFirmwareUpgradeClicked(user: ListUser): void;
|
|
@@ -68,5 +70,5 @@ export declare class UsersListComponent implements OnInit, OnDestroy {
|
|
|
68
70
|
private setUserPendingStatus;
|
|
69
71
|
private setOriginalUserStatus;
|
|
70
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersListComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "app-users-list", never, { "token": "token"; "customerId": "customerId"; "siteId": "siteId"; "host": "host"; }, { "openUser": "openUser"; "userMoved": "userMoved"; "switchToWizard": "switchToWizard"; }, never, never, false, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersListComponent, "app-users-list", never, { "token": "token"; "customerId": "customerId"; "siteId": "siteId"; "host": "host"; }, { "openUser": "openUser"; "userMoved": "userMoved"; "switchToWizard": "switchToWizard"; "createUserRequested": "createUserRequested"; }, never, never, false, never>;
|
|
72
74
|
}
|