@tuki-io/tuki-widgets 0.0.219-dev.47 → 0.0.219-dev.48
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/locations/src/location-confirm-dialog/location-confirm-dialog.component.mjs +2 -2
- package/esm2020/locations/src/locations.component.mjs +5 -5
- package/esm2020/workspaces/src/app.constants.mjs +5 -2
- package/esm2020/workspaces/src/components/workspaces-table/workspaces-table.component.mjs +13 -3
- package/esm2020/workspaces/src/services/workspace-detail.service.mjs +21 -11
- package/esm2020/workspaces/src/services/workspaces.service.mjs +4 -2
- package/esm2020/workspaces/src/types/workspace.mjs +1 -1
- package/esm2020/workspaces/src/utils/workspace-name.mjs +8 -0
- package/esm2020/workspaces/src/workspaces.component.mjs +14 -6
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs +6 -6
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs +57 -19
- package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs +6 -6
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs +56 -18
- package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
- package/package.json +1 -1
- package/workspaces/src/app.constants.d.ts +4 -1
- package/workspaces/src/components/workspaces-table/workspaces-table.component.d.ts +2 -0
- package/workspaces/src/services/workspace-detail.service.d.ts +4 -1
- package/workspaces/src/types/workspace.d.ts +181 -0
- package/workspaces/src/utils/workspace-name.d.ts +1 -0
- package/workspaces/src/workspaces.component.d.ts +2 -0
|
@@ -27,10 +27,12 @@ export declare class WorkspacesTableComponent {
|
|
|
27
27
|
toggleRow(workspaceId: string): void;
|
|
28
28
|
isSelected(workspaceId: string): boolean;
|
|
29
29
|
onOpenWorkspace(workspace: Workspace, connectionType?: WorkspaceConnectionType): void;
|
|
30
|
+
canOpenWorkspace(workspace: Workspace): boolean;
|
|
30
31
|
private resolveConnectionType;
|
|
31
32
|
onAddDevice(workspace: Workspace, event: Event): void;
|
|
32
33
|
onPage(event: PageEvent): void;
|
|
33
34
|
getDeviceIcon(model?: string): string;
|
|
35
|
+
getDisplayName(workspace: Workspace): string;
|
|
34
36
|
isPending(workspaceId: string): boolean;
|
|
35
37
|
isMoveToMTDisabled(workspace: Workspace): boolean;
|
|
36
38
|
isEnableWebexCallingDisabled(workspace: Workspace): boolean;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ApiWebexService } from './api-webex.service';
|
|
3
|
+
import { APIService } from './api.service';
|
|
3
4
|
import { Workspace, WorkspaceConnectionType, WorkspaceDetails } from '../types/workspace';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class WorkspaceDetailService {
|
|
7
|
+
private apiService;
|
|
6
8
|
private apiWebexService;
|
|
7
|
-
constructor(apiWebexService: ApiWebexService);
|
|
9
|
+
constructor(apiService: APIService, apiWebexService: ApiWebexService);
|
|
8
10
|
getByWorkspace(workspace: Workspace, connectionType: WorkspaceConnectionType, customerId: string | number): Observable<WorkspaceDetails>;
|
|
9
11
|
private getWebexDetails;
|
|
10
12
|
private toWebexDetails;
|
|
11
13
|
private getCucmDetails;
|
|
14
|
+
private toCucmDetails;
|
|
12
15
|
private buildUrl;
|
|
13
16
|
private buildIssues;
|
|
14
17
|
private formatTimestamp;
|
|
@@ -124,6 +124,7 @@ export interface Workspace {
|
|
|
124
124
|
typeLabel: string;
|
|
125
125
|
capacity: number | null;
|
|
126
126
|
location: string;
|
|
127
|
+
siteId: number | null;
|
|
127
128
|
devices: WorkspaceDevice[];
|
|
128
129
|
scheduling: string;
|
|
129
130
|
callingLicense: string;
|
|
@@ -233,3 +234,183 @@ export interface WebexCallerIdResponse {
|
|
|
233
234
|
locationNumber: string | null;
|
|
234
235
|
tollFreeLocationNumber: boolean;
|
|
235
236
|
}
|
|
237
|
+
export interface CucmCallInfoDisplay {
|
|
238
|
+
callerName: string;
|
|
239
|
+
callerNumber: string;
|
|
240
|
+
redirectedNumber: string;
|
|
241
|
+
dialedNumber: string;
|
|
242
|
+
}
|
|
243
|
+
export interface CucmLineAssociation {
|
|
244
|
+
linePkid: string | null;
|
|
245
|
+
index: number | null;
|
|
246
|
+
position: number | null;
|
|
247
|
+
directoryNumber: WorkspaceAssociatedDirectoryNumber;
|
|
248
|
+
e164Mask: string | null;
|
|
249
|
+
textLabel: string | null;
|
|
250
|
+
displayLabel: string | null;
|
|
251
|
+
displayLabelAscii: string | null;
|
|
252
|
+
maxNumberOfCalls: number | null;
|
|
253
|
+
busyTrigger: number | null;
|
|
254
|
+
recordingOption: string | null;
|
|
255
|
+
recordingProfile: string | null;
|
|
256
|
+
recordingMediaSource: string | null;
|
|
257
|
+
visualMWI: string | null;
|
|
258
|
+
audibleMWI: string | null;
|
|
259
|
+
ringSetting_idle: string | null;
|
|
260
|
+
ringSetting_active: string | null;
|
|
261
|
+
pickupAAS_idle: string | null;
|
|
262
|
+
pickupAAS_active: string | null;
|
|
263
|
+
monitorCSS: string | null;
|
|
264
|
+
logMissedCall: string | null;
|
|
265
|
+
callInfoDisplay: CucmCallInfoDisplay;
|
|
266
|
+
lineLocalId: string | null;
|
|
267
|
+
didPattern: unknown | null;
|
|
268
|
+
sharedDevices: unknown[];
|
|
269
|
+
sharedUsers: unknown[];
|
|
270
|
+
ownerUserId: unknown[];
|
|
271
|
+
associated: unknown | null;
|
|
272
|
+
patternUsage: unknown | null;
|
|
273
|
+
alertingName: string | null;
|
|
274
|
+
populateWithDid: boolean;
|
|
275
|
+
}
|
|
276
|
+
export interface CucmService {
|
|
277
|
+
name: string;
|
|
278
|
+
telecasterServiceName: string;
|
|
279
|
+
}
|
|
280
|
+
export interface CucmDeviceDetails extends Omit<WorkspaceDeviceRecord, 'lineAssociations' | 'services'> {
|
|
281
|
+
lineAssociations: CucmLineAssociation[];
|
|
282
|
+
services: CucmService[];
|
|
283
|
+
}
|
|
284
|
+
export interface CucmCallForwardSetting {
|
|
285
|
+
forwardToVoiceMail: boolean | null;
|
|
286
|
+
destination: string | null;
|
|
287
|
+
callingSearchSpace: string | null;
|
|
288
|
+
duration: number | null;
|
|
289
|
+
}
|
|
290
|
+
export interface CucmAarSettings {
|
|
291
|
+
aarDestinationMask: string | null;
|
|
292
|
+
aarGroup: string | null;
|
|
293
|
+
aarVoiceMailEnabled: boolean;
|
|
294
|
+
aarKeepCallHistory: boolean;
|
|
295
|
+
}
|
|
296
|
+
export interface CucmParkMonitoring {
|
|
297
|
+
destination: string | null;
|
|
298
|
+
callingSearchSpace: string | null;
|
|
299
|
+
voiceMail: boolean;
|
|
300
|
+
}
|
|
301
|
+
export interface CucmDidPattern {
|
|
302
|
+
pkid: string | null;
|
|
303
|
+
pattern: string | null;
|
|
304
|
+
newPattern: string | null;
|
|
305
|
+
calledPartyTransformationMask: string | null;
|
|
306
|
+
description: string | null;
|
|
307
|
+
useOriginatorCss: unknown | null;
|
|
308
|
+
callingSearchSpaceName: string | null;
|
|
309
|
+
routePartitionName: string | null;
|
|
310
|
+
newRoutePartitionName: string | null;
|
|
311
|
+
urgentPriority: boolean;
|
|
312
|
+
outgoingCalls: unknown | null;
|
|
313
|
+
}
|
|
314
|
+
export interface CucmLineDetails {
|
|
315
|
+
directoryNumber: WorkspaceAssociatedDirectoryNumber;
|
|
316
|
+
pkid: string | null;
|
|
317
|
+
description: string | null;
|
|
318
|
+
entityChangeType: string | null;
|
|
319
|
+
alertingName: string | null;
|
|
320
|
+
asciiAlertingName: string | null;
|
|
321
|
+
callingSearchSpace: string | null;
|
|
322
|
+
callForwardAll: CucmCallForwardSetting;
|
|
323
|
+
callForwardAllSecondaryCSS: CucmCallForwardSetting;
|
|
324
|
+
callForwardBusyInternal: CucmCallForwardSetting;
|
|
325
|
+
callForwardBusyExternal: CucmCallForwardSetting;
|
|
326
|
+
callForwardNoAnswerInternal: CucmCallForwardSetting;
|
|
327
|
+
callForwardNoAnswerExternal: CucmCallForwardSetting;
|
|
328
|
+
callForwardNoCoverageInternal: CucmCallForwardSetting;
|
|
329
|
+
callForwardNoCoverageExternal: CucmCallForwardSetting;
|
|
330
|
+
callForwardOnCTIFailure: CucmCallForwardSetting;
|
|
331
|
+
callForwardUnregisteredInternal: CucmCallForwardSetting;
|
|
332
|
+
callForwardUnregisteredExternal: CucmCallForwardSetting;
|
|
333
|
+
callForwardAlternateParty: CucmCallForwardSetting;
|
|
334
|
+
voiceMailProfile: string | null;
|
|
335
|
+
noAnswerRingDuration: number | null;
|
|
336
|
+
autoAnswer: string | null;
|
|
337
|
+
callPickupGroup: string | null;
|
|
338
|
+
aarSettings: CucmAarSettings;
|
|
339
|
+
parkMonitoringInternal: CucmParkMonitoring;
|
|
340
|
+
parkMonitoringExternal: CucmParkMonitoring;
|
|
341
|
+
urgentPriority: boolean;
|
|
342
|
+
blfPresenceGroup: string | null;
|
|
343
|
+
userHoldMOHAudioSourceId: string | null;
|
|
344
|
+
userHoldMOHAudioSourceName: string | null;
|
|
345
|
+
networkMOHAudioSourceId: string | null;
|
|
346
|
+
networkMOHAudioSourceName: string | null;
|
|
347
|
+
rejectAnonymousCall: boolean;
|
|
348
|
+
enterpriseAltNum: unknown | null;
|
|
349
|
+
e164AltNum: unknown | null;
|
|
350
|
+
directoryUris: unknown[];
|
|
351
|
+
mlppNoAnswerRingDuration: number | null;
|
|
352
|
+
confidentialAccessMode: unknown | null;
|
|
353
|
+
confidentialAccessLevel: unknown | null;
|
|
354
|
+
confidentialAccessLevelName: unknown | null;
|
|
355
|
+
callControlAgentProfile: unknown | null;
|
|
356
|
+
holdReversionRingDuration: number | null;
|
|
357
|
+
holdReversionNotificationInterval: number | null;
|
|
358
|
+
partyEntranceTone: string | null;
|
|
359
|
+
pstnFailover: string | null;
|
|
360
|
+
localId: string | null;
|
|
361
|
+
customerId: number;
|
|
362
|
+
cucmId: number;
|
|
363
|
+
siteId: number;
|
|
364
|
+
siteName: string | null;
|
|
365
|
+
location: string | null;
|
|
366
|
+
locationNames: string[];
|
|
367
|
+
selectedIndex: number;
|
|
368
|
+
didPatterns: CucmDidPattern[];
|
|
369
|
+
mappedDids: string[];
|
|
370
|
+
selectedLinesGeneralSettings: unknown[];
|
|
371
|
+
selectedLinesAssociatedSettings: unknown[];
|
|
372
|
+
selectedLinesMultipleCalls: unknown[];
|
|
373
|
+
selectedLinesCallRecordings: unknown[];
|
|
374
|
+
selectedLinesAdditionalSettings: unknown[];
|
|
375
|
+
selectedLinesForwardCalls: unknown[];
|
|
376
|
+
newToUser: boolean;
|
|
377
|
+
plarDestinationNumber: string | null;
|
|
378
|
+
prefixDigits: string | null;
|
|
379
|
+
plarDescription: string | null;
|
|
380
|
+
plarCss: string | null;
|
|
381
|
+
plarRoutePartition: string | null;
|
|
382
|
+
plarEnabled: boolean;
|
|
383
|
+
}
|
|
384
|
+
export interface CucmWorkspaceDetailsResponse {
|
|
385
|
+
device: CucmDeviceDetails;
|
|
386
|
+
lines: CucmLineDetails[];
|
|
387
|
+
site: WorkspaceSite | null;
|
|
388
|
+
workspaceDevices: WorkspaceDeviceAssociation[];
|
|
389
|
+
}
|
|
390
|
+
export interface CucmSiteCucInfo {
|
|
391
|
+
id: number;
|
|
392
|
+
name: string;
|
|
393
|
+
}
|
|
394
|
+
export interface CucmSiteCucmInfo {
|
|
395
|
+
platformType: string;
|
|
396
|
+
id: number;
|
|
397
|
+
name: string;
|
|
398
|
+
}
|
|
399
|
+
export interface CucmSiteResponse {
|
|
400
|
+
id: number;
|
|
401
|
+
name: string;
|
|
402
|
+
shortName: string;
|
|
403
|
+
address2: string | null;
|
|
404
|
+
address3: string | null;
|
|
405
|
+
country: string | null;
|
|
406
|
+
cuc: CucmSiteCucInfo | null;
|
|
407
|
+
cucm: CucmSiteCucmInfo | null;
|
|
408
|
+
hasActivated: boolean;
|
|
409
|
+
hqStatus: boolean;
|
|
410
|
+
isAfterTtu: boolean;
|
|
411
|
+
locationName: string;
|
|
412
|
+
prefetchDn: boolean;
|
|
413
|
+
settings: unknown[];
|
|
414
|
+
state: string | null;
|
|
415
|
+
timezone: string | null;
|
|
416
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withoutSep(name: string): string;
|
|
@@ -47,7 +47,9 @@ export declare class WorkspacesComponent implements OnInit, OnDestroy {
|
|
|
47
47
|
ngOnDestroy(): void;
|
|
48
48
|
get typeOptions(): string[];
|
|
49
49
|
get locationOptions(): string[];
|
|
50
|
+
private get filteredWorkspacesAll();
|
|
50
51
|
get filteredWorkspaces(): Workspace[];
|
|
52
|
+
get filteredTotal(): number;
|
|
51
53
|
selectTab(tab: WorkspacesTab): void;
|
|
52
54
|
onOpenWorkspace({ id, connectionType }: WorkspaceOpenEvent): void;
|
|
53
55
|
onBackToList(): void;
|