@tuki-io/tuki-widgets 0.0.190 → 0.0.192

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.
Files changed (30) hide show
  1. package/esm2020/user-creation/src/app.constants.mjs +9 -2
  2. package/esm2020/user-creation/src/interfaces/user-creation-wizard.interfaces.mjs +19 -0
  3. package/esm2020/user-creation/src/shared/material.module.mjs +35 -7
  4. package/esm2020/user-creation/src/shared/services/user-creation-api.service.mjs +42 -19
  5. package/esm2020/user-creation/src/user-creation.module.mjs +4 -1
  6. package/esm2020/user-creation/src/utils/app-loader/app-loader.mjs +14 -0
  7. package/esm2020/user-creation/src/utils/build-savable-end-user.mjs +147 -0
  8. package/esm2020/user-creation/src/utils/validation.mjs +14 -0
  9. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.mjs +429 -20
  10. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component.mjs +3 -3
  11. package/esm2020/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.mjs +80 -34
  12. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.mjs +61 -11
  13. package/esm2020/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.mjs +509 -130
  14. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs +1446 -300
  15. package/fesm2015/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  16. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs +1408 -287
  17. package/fesm2020/tuki-io-tuki-widgets-user-creation.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/user-creation/src/app.constants.d.ts +7 -0
  20. package/user-creation/src/interfaces/user-creation-wizard.interfaces.d.ts +483 -0
  21. package/user-creation/src/shared/material.module.d.ts +5 -1
  22. package/user-creation/src/shared/services/user-creation-api.service.d.ts +8 -2
  23. package/user-creation/src/user-creation.module.d.ts +11 -10
  24. package/user-creation/src/utils/app-loader/app-loader.d.ts +6 -0
  25. package/user-creation/src/utils/build-savable-end-user.d.ts +23 -0
  26. package/user-creation/src/utils/validation.d.ts +4 -0
  27. package/user-creation/src/widgets/user-creation-wizard/components/user-details-step/user-details-step.component.d.ts +75 -7
  28. package/user-creation/src/widgets/user-creation-wizard/components/user-template-step/user-template-step.component.d.ts +11 -4
  29. package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.component.d.ts +13 -0
  30. package/user-creation/src/widgets/user-creation-wizard/user-creation-wizard.service.d.ts +57 -56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuki-io/tuki-widgets",
3
- "version": "0.0.190",
3
+ "version": "0.0.192",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
@@ -5,8 +5,15 @@ export declare const API: {
5
5
  DEVICE_TYPES: string;
6
6
  SITE_SETTINGS: string;
7
7
  VM_USER_TEMPLATES: string;
8
+ EXISTING_USERS: string;
8
9
  USER_TEMPLATES_UPLOAD_LIST: string;
9
10
  USER_TEMPLATE_TOKEN: string;
11
+ AVAILABLE_DN_IN_RANGES: string;
12
+ USER_CHECK_ID_EXISTING: string;
13
+ LDAP_USERS: string;
14
+ USERS: string;
15
+ CREATE_NEW_USER_FROM_TEMPLATE: string;
16
+ DEVICE_DEFAULTS: string;
10
17
  };
11
18
  export declare const USER_CREATION_TYPES: {
12
19
  CUCM: string;
@@ -0,0 +1,483 @@
1
+ export interface LdapUserRow {
2
+ userId: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string;
6
+ }
7
+ export type LdapQueryType = 'userId' | 'firstName' | 'lastName';
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 UserDetailsLineFormValue {
32
+ lineNumber: string;
33
+ number: string;
34
+ routePartition: string;
35
+ }
36
+ export interface UserDetailsDeviceFormValue {
37
+ deviceType: string;
38
+ protocol: string;
39
+ buttonTemplate: string;
40
+ name: string;
41
+ }
42
+ export interface UserDetailsFormValue {
43
+ userId: string;
44
+ firstName: string;
45
+ lastName: string;
46
+ email: string;
47
+ lines: UserDetailsLineFormValue[];
48
+ devices: UserDetailsDeviceFormValue[];
49
+ deviceProfiles: UserDetailsDeviceFormValue[];
50
+ }
51
+ export interface LineOption {
52
+ number: string;
53
+ did: string;
54
+ css: string;
55
+ description: string;
56
+ }
57
+ export interface SelectedLineRow {
58
+ lineNumber: string | null;
59
+ routePartitionName: string | null;
60
+ }
61
+ export interface DeviceEntry {
62
+ deviceType: string;
63
+ protocol: string;
64
+ buttonTemplate: string;
65
+ name: string;
66
+ }
67
+ export interface TemplateLineLike {
68
+ directoryNumber?: {
69
+ directoryNumber?: string;
70
+ routePartitionName?: string | null;
71
+ templateDirectoryNumber?: string | null;
72
+ };
73
+ description?: string | null;
74
+ callingSearchSpace?: string | {
75
+ name?: string | null;
76
+ } | null;
77
+ didPatterns?: Array<{
78
+ pattern?: string | null;
79
+ }> | null;
80
+ }
81
+ export interface TemplateDeviceLike {
82
+ deviceType?: string | null;
83
+ protocol?: string | null;
84
+ buttonTemplate?: string | null;
85
+ name?: string | null;
86
+ lineAssociations?: Array<{
87
+ directoryNumber?: {
88
+ directoryNumber?: string;
89
+ routePartitionName?: string | null;
90
+ templateDirectoryNumber?: string | null;
91
+ } | null;
92
+ }>;
93
+ }
94
+ export interface TemplateEndUserLike {
95
+ userid?: string | null;
96
+ firstName?: string | null;
97
+ lastName?: string | null;
98
+ email?: string | null;
99
+ lines?: TemplateLineLike[] | null;
100
+ devices?: TemplateDeviceLike[] | null;
101
+ }
102
+ export interface UserTemplateInterface {
103
+ id: number;
104
+ name: string;
105
+ description: string;
106
+ createOrUpload: string | null;
107
+ userTemplateSettings: UserTemplateSetting[];
108
+ customerId: number;
109
+ userRequiredFields: string[];
110
+ deviceRequiredFields: string[];
111
+ udpRequiredFields: string[];
112
+ lineRequiredFields: string[];
113
+ endUser: EndUserInterface;
114
+ type: string;
115
+ globalTemplate: boolean;
116
+ }
117
+ export interface UserTemplateSetting {
118
+ }
119
+ export interface EndUserInterface {
120
+ userid: string | null;
121
+ email: string | null;
122
+ firstName: string | null;
123
+ lastName: string | null;
124
+ domain: string | null;
125
+ customerId: number | null;
126
+ department: string | null;
127
+ userProfile: string | null;
128
+ manager: string | null;
129
+ enableMobileVoiceAccess: boolean | null;
130
+ associatedPc: string | null;
131
+ userLocale: string | null;
132
+ digestCredentials: string | null;
133
+ middleName: string | null;
134
+ title: string | null;
135
+ telephoneNumber: string | null;
136
+ homeNumber: string | null;
137
+ mobileNumber: string | null;
138
+ pagerNumber: string | null;
139
+ displayName: string | null;
140
+ directoryUri: string | null;
141
+ presenceGroup: string | null;
142
+ subscribeCss: string | null;
143
+ allowDeviceControlFromCti: boolean | null;
144
+ enableCrossClusterEm: boolean | null;
145
+ mlppUserIdNumber: string | null;
146
+ mlppPrecedencePattern: string | null;
147
+ createUserMode: boolean;
148
+ enableMobility: boolean | null;
149
+ devices: DeviceInterface[];
150
+ deviceProfiles: DeviceInterface[];
151
+ lines: LineInterface[];
152
+ singleNumberReach?: {
153
+ associatedLines?: LineInterface[] | null;
154
+ remoteDestinations?: {
155
+ lineAssociations?: LineInterface[] | null;
156
+ }[] | null;
157
+ remoteDestinationProfileName?: string | null;
158
+ } | null;
159
+ primaryLineReference: unknown | null;
160
+ voicemail: unknown | null;
161
+ features: Feature[];
162
+ migrationVmUnchanged: boolean | null;
163
+ migrationImPUnchanged: boolean | null;
164
+ ucServiceProfile: string | null;
165
+ telecomManagerRule: boolean;
166
+ userTemplateUdpDeviceTypesRules: UserTemplateUdpDeviceTypesRule[];
167
+ ldapIntegrated?: boolean | null;
168
+ }
169
+ export interface CallInfoDisplay {
170
+ callerName?: string | null;
171
+ callerNumber?: string | null;
172
+ redirectedNumber?: string | null;
173
+ dialedNumber?: string | null;
174
+ }
175
+ export interface DidPattern {
176
+ calledPartyTransformationMask?: string | null;
177
+ pattern?: string | null;
178
+ }
179
+ export interface DeviceInterface {
180
+ deviceType: string | null;
181
+ protocol: string | null;
182
+ name: string | null;
183
+ newName: string | null;
184
+ prefix: string | null;
185
+ description?: string | null;
186
+ buttonTemplate: string | null;
187
+ location: string | null;
188
+ devicePoolName: string | null;
189
+ softkeyTemplate: string | null;
190
+ entityChangeType: string | null;
191
+ createDeviceMode?: boolean;
192
+ callingSearchSpaceName: string | null;
193
+ commonPhoneConfigName: string | null;
194
+ securityProfile: string | null;
195
+ userLocale: string | null;
196
+ networkLocale: string | null;
197
+ enabledExtensionMobility: boolean | null;
198
+ firstExpansionModule: string | null;
199
+ secondExpansionModule: string | null;
200
+ withUdp: boolean;
201
+ lineAssociations: LineAssociation[];
202
+ sipProfile: string | null;
203
+ subscribeCallingSearchSpaceName: string | null;
204
+ extraOptions: DeviceExtraOptions;
205
+ userDeviceType: string | null;
206
+ builtInBridge: string | null;
207
+ services: Service[];
208
+ speedDials: SpeedDial[];
209
+ busyLampFields: BusyLampField[];
210
+ webexUUID: string | null;
211
+ pkid: string | null;
212
+ }
213
+ export interface LineAssociation {
214
+ linePkid: string | null;
215
+ index: number;
216
+ position: string | null;
217
+ directoryNumber: DirectoryNumber;
218
+ e164Mask: string | null;
219
+ textLabel: string | null;
220
+ displayLabel: string | null;
221
+ displayLabelAscii: string | null;
222
+ maxNumberOfCalls: number | null;
223
+ busyTrigger: number | null;
224
+ recordingOption: string | null;
225
+ recordingProfile: string | null;
226
+ recordingMediaSource: string | null;
227
+ visualMWI: boolean | null;
228
+ audibleMWI: boolean | null;
229
+ ringSetting_idle: string | null;
230
+ ringSetting_active: string | null;
231
+ pickupAAS_idle: string | null;
232
+ pickupAAS_active: string | null;
233
+ monitorCSS: string | null;
234
+ logMissedCall: boolean | string | null;
235
+ callInfoDisplay: CallInfoDisplay | string | null;
236
+ lineLocalId: string;
237
+ didPattern: DidPattern | string | null;
238
+ entityChangeType?: string | null;
239
+ sharedDevices: SharedDevice[];
240
+ sharedUsers: SharedUser[];
241
+ ownerUserId: string[];
242
+ associated: boolean;
243
+ patternUsage: string | null;
244
+ alertingName: string | null;
245
+ populateWithDid: boolean;
246
+ }
247
+ export interface DirectoryNumber {
248
+ directoryNumber: string;
249
+ templateDirectoryNumber?: string;
250
+ routePartitionName: string;
251
+ pkid?: string | null;
252
+ dnType?: string | null;
253
+ subType?: string | null;
254
+ displayValue?: string;
255
+ }
256
+ export interface DeviceExtraOptions {
257
+ mediaResourceGroupList: string | null;
258
+ userHoldMOHAudioSourceId: string | null;
259
+ userHoldMOHAudioSourceName: string | null;
260
+ networkMOHAudioSourceId: string | null;
261
+ networkMOHAudioSourceName: string | null;
262
+ aarCss: string | null;
263
+ aarGroup: string | null;
264
+ privacy: string | null;
265
+ deviceMobilityMode: string | null;
266
+ mobilityUserId: string | null;
267
+ phonePersonalization: string | null;
268
+ servicesProvisioning: string | null;
269
+ phoneLoadName: string | null;
270
+ phoneIdleBLFAlertSetting: string | null;
271
+ phoneBusyBLFAlertSetting: string | null;
272
+ useTrustedRelayPoint: boolean | null;
273
+ alwaysUsePrimeLine: boolean | null;
274
+ alwaysUsePrimeLineForVoiceMessage: boolean | null;
275
+ geolocation: string | null;
276
+ ignorePresentationIndicators: boolean | null;
277
+ loggedIntoHuntGroup: boolean | null;
278
+ enabledExtensionMobility: boolean | null;
279
+ remoteDevice: string | null;
280
+ protectedDevice: boolean | null;
281
+ hotlineDevice: boolean;
282
+ commonDeviceConfigName: string | null;
283
+ useDevicePoolCgpnIngressDN: boolean | null;
284
+ cgpnIngressDN: string | null;
285
+ useDevicePoolCgpnTransformCss: boolean | null;
286
+ cgpnTransformationCss: string | null;
287
+ packetCaptureMode: string | null;
288
+ packetCaptureDuration: number | null;
289
+ blfPresenceGroup: string | null;
290
+ sipDialRules: string | null;
291
+ mtpPreferredOriginatingCodec: string | null;
292
+ rerouteCss: string | null;
293
+ subscribeCss: string | null;
294
+ digestUser: string | null;
295
+ mtpRequired: boolean | null;
296
+ unattendedPort: boolean | null;
297
+ requireDtmfReception: boolean | null;
298
+ informationUrl: string | null;
299
+ directoryUrl: string | null;
300
+ messagesUrl: string | null;
301
+ servicesUrl: string | null;
302
+ authenticationUrl: string | null;
303
+ proxyServerUrl: string | null;
304
+ idleUrl: string | null;
305
+ idleTimeout: number | null;
306
+ secureAuthenticationUrl: string | null;
307
+ secureDirectoryUrl: string | null;
308
+ secureIdleUrl: string | null;
309
+ secureInformationUrl: string | null;
310
+ secureMessageUrl: string | null;
311
+ secureServicesUrl: string | null;
312
+ mlppDomain: string | null;
313
+ mlppIndication: string | null;
314
+ mlppPreemption: string | null;
315
+ confidentialAccessMode: string | null;
316
+ confidentialAccessLevel: string | null;
317
+ confidentialAccessLevelName: string | null;
318
+ doNotDisturb: boolean | null;
319
+ dndOption: string | null;
320
+ dndIncomingCallAlert: string | null;
321
+ disableSpeakerphone: boolean | null;
322
+ disableSpeakerphoneAndHeadset: boolean | null;
323
+ forwardingDelay: number | null;
324
+ pcPort: boolean | null;
325
+ settingsAccess: string | null;
326
+ gratuitousARP: boolean | null;
327
+ pcVoiceVlanAccess: string | null;
328
+ videoCapabilities: string | null;
329
+ webAccess: boolean | null;
330
+ daysDisplayNotActive: number | null;
331
+ displayOnTime: string | null;
332
+ displayOnDuration: number | null;
333
+ displayIdleTimeout: number | null;
334
+ wirelessHeadsetHookswitchControl: boolean | null;
335
+ minRingVolume: number | null;
336
+ showAllCallsOnPL: boolean | null;
337
+ lineMode: string | null;
338
+ latentCapabilityRegistration: boolean | null;
339
+ actionableAlert: boolean | null;
340
+ revertToAllCalls: boolean | null;
341
+ widebandHeadsetUIControl: boolean | null;
342
+ widebandHeadset: boolean | null;
343
+ authentication802: boolean | null;
344
+ spanToPcPort: boolean | null;
345
+ headsetMonitor: boolean | null;
346
+ headsetRecording: boolean | null;
347
+ updatedFields: string[];
348
+ enableCdpSwPort: boolean | null;
349
+ enableCdpPcPort: boolean | null;
350
+ enableLldpPcPort: boolean | null;
351
+ defaultWallpaperFile: string | null;
352
+ analogGatewayPortInformation: string | null;
353
+ loadServer: string | null;
354
+ peerFirmwareSharing: string | null;
355
+ }
356
+ export interface LineInterface {
357
+ directoryNumber: DirectoryNumber;
358
+ callingSearchSpace: string | null;
359
+ description: string | null;
360
+ localId: string;
361
+ entityChangeType: string | null;
362
+ alertingName: string | null;
363
+ asciiAlertingName: string | null;
364
+ callForwardAll: CallForward;
365
+ callForwardAllSecondaryCSS: CallForward;
366
+ callForwardBusyInternal: CallForward;
367
+ callForwardBusyExternal: CallForward;
368
+ callForwardNoAnswerInternal: CallForward;
369
+ callForwardNoAnswerExternal: CallForward;
370
+ callForwardNoCoverageInternal: CallForward;
371
+ callForwardNoCoverageExternal: CallForward;
372
+ callForwardOnCTIFailure: CallForward;
373
+ callForwardUnregisteredInternal: CallForward;
374
+ callForwardUnregisteredExternal: CallForward;
375
+ voiceMailProfile: string | null;
376
+ noAnswerRingDuration: number | null;
377
+ autoAnswer: string | null;
378
+ callPickupGroup: string | null;
379
+ aarSettings: AarSettings;
380
+ parkMonitoringInternal: string | null;
381
+ parkMonitoringExternal: string | null;
382
+ urgentPriority: string | null;
383
+ blfPresenceGroup: string | null;
384
+ userHoldMOHAudioSourceId: string | null;
385
+ userHoldMOHAudioSourceName: string | null;
386
+ networkMOHAudioSourceId: string | null;
387
+ networkMOHAudioSourceName: string | null;
388
+ rejectAnonymousCall: boolean | null;
389
+ enterpriseAltNum: string | null;
390
+ e164AltNum: string | null;
391
+ directoryUris: string[];
392
+ callForwardAlternateParty: CallForward;
393
+ mlppNoAnswerRingDuration: number | null;
394
+ confidentialAccessMode: string | null;
395
+ confidentialAccessLevel: string | null;
396
+ confidentialAccessLevelName: string | null;
397
+ callControlAgentProfile: string | null;
398
+ holdReversionRingDuration: number | null;
399
+ holdReversionNotificationInterval: number | null;
400
+ partyEntranceTone: string | null;
401
+ pstnFailover: string | null;
402
+ newToUser: boolean | null;
403
+ didPatterns: string[];
404
+ }
405
+ export interface CallForward {
406
+ forwardToVoiceMail: boolean | null;
407
+ destination: string | null;
408
+ callingSearchSpace: string | null;
409
+ duration: number | null;
410
+ }
411
+ export interface AarSettings {
412
+ aarDestinationMask: string | null;
413
+ aarGroup: string | null;
414
+ aarVoiceMailEnabled: boolean | null;
415
+ aarKeepCallHistory: boolean | null;
416
+ }
417
+ export interface DeviceProfile {
418
+ }
419
+ export interface Feature {
420
+ }
421
+ export interface UserTemplateUdpDeviceTypesRule {
422
+ }
423
+ export interface SharedDevice {
424
+ }
425
+ export interface SharedUser {
426
+ }
427
+ export interface Service {
428
+ }
429
+ export interface SpeedDial {
430
+ }
431
+ export interface BusyLampField {
432
+ }
433
+ export declare enum DnRangeType {
434
+ extension = "EXTENSION",
435
+ cpg = "CPG",
436
+ callpark = "CALLPARK",
437
+ huntgroup = "HUNTGROUP",
438
+ meetme = "MEETME",
439
+ did = "DID"
440
+ }
441
+ export interface DnRangeInterface {
442
+ from: string;
443
+ to: string;
444
+ prefix: string;
445
+ routePartition: string;
446
+ dnType: DnRangeType;
447
+ tempIdx: number;
448
+ }
449
+ export interface AvailablePhoneNumberRangeInterface {
450
+ phoneNumberRange: DnRangeInterface;
451
+ usedNumbers: string[];
452
+ requestedNumber: string;
453
+ unUsedNumbersWithDids: any[];
454
+ }
455
+ export interface AvailableRangeInterface {
456
+ availableNumberList: AvailablePhoneNumberRangeInterface[];
457
+ }
458
+ export declare enum UserViewType {
459
+ details = 0,
460
+ devices = 1,
461
+ lines = 2,
462
+ snr = 3,
463
+ features = 4,
464
+ overview = 5
465
+ }
466
+ export interface ListUserInterface {
467
+ userid: string;
468
+ firstName?: string;
469
+ lastName?: string;
470
+ email?: string;
471
+ telephoneNumber?: string;
472
+ viewMode?: UserViewType;
473
+ devices: DeviceInterface[];
474
+ deviceProfiles: DeviceInterface[];
475
+ lines?: LineInterface[];
476
+ siteId?: number;
477
+ siteName?: string;
478
+ checked?: boolean;
479
+ }
480
+ export interface LdapUsersTableResponse {
481
+ total: number;
482
+ pageData: ListUserInterface[];
483
+ }
@@ -8,8 +8,12 @@ import * as i6 from "@angular/material/icon";
8
8
  import * as i7 from "@angular/material/form-field";
9
9
  import * as i8 from "@angular/material/input";
10
10
  import * as i9 from "@angular/material/select";
11
+ import * as i10 from "@angular/material/autocomplete";
12
+ import * as i11 from "@angular/material/progress-spinner";
13
+ import * as i12 from "@angular/material/paginator";
14
+ import * as i13 from "@angular/material/chips";
11
15
  export declare class MaterialModule {
12
16
  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]>;
17
+ 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 i10.MatAutocompleteModule, typeof i11.MatProgressSpinnerModule, typeof i12.MatPaginatorModule, typeof i13.MatChipsModule], [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 i10.MatAutocompleteModule, typeof i11.MatProgressSpinnerModule, typeof i12.MatPaginatorModule, typeof i13.MatChipsModule]>;
14
18
  static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
15
19
  }
@@ -1,5 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
- import { Site, SiteDefaults, SiteInterface, UserTemplateInterface } from "../../classes/site";
2
+ import { Site, SiteDefaults, SiteInterface } from "../../classes/site";
3
+ import { UserTemplateInterface } from "../../interfaces/user-creation-wizard.interfaces";
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class UserCreationApiService {
5
6
  private _allSites;
@@ -12,13 +13,18 @@ export declare class UserCreationApiService {
12
13
  getSitesList(): void;
13
14
  checkControlHubIntegration(customerId: string): Observable<any>;
14
15
  getAllCustomerSites(customerId: string, onlySitesWithLocation?: boolean): Observable<Site[]>;
15
- getSiteData(siteId: number): Observable<[SiteInterface, string[], SiteDefaults, void]>;
16
+ getSiteAllData(siteId: number): Observable<any>;
16
17
  getSite(siteId: number, isEdit?: boolean): Observable<SiteInterface>;
17
18
  getDeviceTypes(siteId: number | string): Observable<string[]>;
18
19
  getSiteDefaults(siteId: number, directAccess: boolean, sharedLineSiteIds?: string): Observable<SiteDefaults>;
19
20
  getVoiceMailUserTemplates(siteId: number): Observable<void>;
20
21
  fetchAllUserTemplates(siteId: number): Observable<UserTemplateInterface[]>;
21
22
  getUserTemplateToken(id: string, customerId: string): Observable<any>;
23
+ getAvailableDnInRanges(siteId: string, params: any): any;
24
+ getLdapUsers(siteId: string, params: any): Observable<any>;
25
+ checkUserIdExisting(siteId: string, userId: string): Observable<any>;
26
+ saveTemplateUser(user: any, templateId: string, siteId: string): Observable<any>;
27
+ getDeviceDefaults(siteId: string, deviceType: string): Observable<any>;
22
28
  static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationApiService, never>;
23
29
  static ɵprov: i0.ɵɵInjectableDeclaration<UserCreationApiService>;
24
30
  }
@@ -6,18 +6,19 @@ import * as i2 from "./widgets/user-creation-wizard/components/user-template-ste
6
6
  import * as i3 from "./shared/components/notification/notification.component";
7
7
  import * as i4 from "./widgets/user-creation-wizard/components/user-details-step/user-details-step.component";
8
8
  import * as i5 from "./widgets/user-creation-wizard/components/user-overview-step/user-overview-step.component";
9
- import * as i6 from "./shared/pipes/truncate.pipe";
10
- import * as i7 from "@angular/common";
11
- import * as i8 from "./shared/shared.module";
12
- import * as i9 from "./shared/material.module";
13
- import * as i10 from "@angular/material/stepper";
14
- import * as i11 from "@angular/material/expansion";
15
- import * as i12 from "@angular/forms";
16
- import * as i13 from "@angular/material/radio";
17
- import * as i14 from "@ngx-translate/core";
9
+ import * as i6 from "./utils/app-loader/app-loader";
10
+ import * as i7 from "./shared/pipes/truncate.pipe";
11
+ import * as i8 from "@angular/common";
12
+ import * as i9 from "./shared/shared.module";
13
+ import * as i10 from "./shared/material.module";
14
+ import * as i11 from "@angular/material/stepper";
15
+ import * as i12 from "@angular/material/expansion";
16
+ import * as i13 from "@angular/forms";
17
+ import * as i14 from "@angular/material/radio";
18
+ import * as i15 from "@ngx-translate/core";
18
19
  export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
19
20
  export declare class UserCreationModule {
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<UserCreationModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.NotificationsComponent, typeof i4.UserDetailsStepComponent, typeof i5.UserOverviewStepComponent, typeof i6.TruncatePipe], [typeof i7.CommonModule, typeof i8.SharedModule, typeof i9.MaterialModule, typeof i10.MatStepperModule, typeof i11.MatExpansionModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.MatRadioModule, typeof i14.TranslateModule], [typeof i1.UserCreationWizardComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserCreationModule, [typeof i1.UserCreationWizardComponent, typeof i2.UserTemplateStepComponent, typeof i3.NotificationsComponent, typeof i4.UserDetailsStepComponent, typeof i5.UserOverviewStepComponent, typeof i6.AppLoaderComponent, typeof i7.TruncatePipe], [typeof i8.CommonModule, typeof i9.SharedModule, typeof i10.MaterialModule, typeof i11.MatStepperModule, typeof i12.MatExpansionModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.MatRadioModule, typeof i15.TranslateModule], [typeof i1.UserCreationWizardComponent]>;
22
23
  static ɵinj: i0.ɵɵInjectorDeclaration<UserCreationModule>;
23
24
  }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AppLoaderComponent {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppLoaderComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppLoaderComponent, "app-loader", never, {}, {}, never, never, false, never>;
6
+ }
@@ -0,0 +1,23 @@
1
+ import { DeviceInterface, EndUserInterface, LineInterface, UserDetailsForm } from '../interfaces/user-creation-wizard.interfaces';
2
+ export declare const ENTITY_CHANGE_TYPE: {
3
+ readonly ADDED: "added";
4
+ readonly UPDATED: "updated";
5
+ readonly EXISTING: "existing";
6
+ readonly REMOVED: "removed";
7
+ };
8
+ export interface CallInfoDisplayPayload {
9
+ callerName?: string | null;
10
+ callerNumber?: string | null;
11
+ redirectedNumber?: string | null;
12
+ dialedNumber?: string | null;
13
+ }
14
+ export interface DidPatternPayload {
15
+ calledPartyTransformationMask?: string | null;
16
+ pattern?: string | null;
17
+ [key: string]: unknown;
18
+ }
19
+ export interface BuildSavableEndUserOptions {
20
+ resolveDeviceName?: (index: number, device: DeviceInterface) => string;
21
+ resolveDeviceProfileName?: (index: number, device: DeviceInterface) => string;
22
+ }
23
+ export declare function buildSavableEndUser(endUser: EndUserInterface, lines: LineInterface[], devices: DeviceInterface[], deviceProfiles: DeviceInterface[], form: UserDetailsForm, options?: BuildSavableEndUserOptions): EndUserInterface;
@@ -0,0 +1,4 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const Validation: {
3
+ macAddress(): ValidatorFn;
4
+ };