@tuki-io/tuki-widgets 0.0.219-dev.45 → 0.0.219-dev.47
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/locations.component.mjs +2 -2
- package/esm2020/locations/src/services/locations.service.mjs +1 -3
- package/esm2020/workspaces/src/app.constants.mjs +10 -1
- package/esm2020/workspaces/src/components/workspace-detail/workspace-detail.component.mjs +9 -4
- package/esm2020/workspaces/src/components/workspaces-table/workspaces-table.component.mjs +3 -3
- package/esm2020/workspaces/src/services/workspace-detail.service.mjs +80 -22
- package/esm2020/workspaces/src/services/workspaces.service.mjs +23 -10
- package/esm2020/workspaces/src/types/workspace.mjs +1 -1
- package/esm2020/workspaces/src/workspaces.component.mjs +7 -6
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs +1 -3
- package/fesm2015/tuki-io-tuki-widgets-locations.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs +116 -41
- package/fesm2015/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs +1 -3
- package/fesm2020/tuki-io-tuki-widgets-locations.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs +122 -40
- package/fesm2020/tuki-io-tuki-widgets-workspaces.mjs.map +1 -1
- package/package.json +1 -1
- package/workspaces/src/app.constants.d.ts +8 -0
- package/workspaces/src/components/workspace-detail/workspace-detail.component.d.ts +2 -1
- package/workspaces/src/services/workspace-detail.service.d.ts +11 -2
- package/workspaces/src/services/workspaces.service.d.ts +1 -1
- package/workspaces/src/types/workspace.d.ts +69 -0
|
@@ -9,6 +9,7 @@ export declare class WorkspaceDetailComponent implements OnInit {
|
|
|
9
9
|
private location;
|
|
10
10
|
workspace: Workspace;
|
|
11
11
|
connectionType: WorkspaceConnectionType;
|
|
12
|
+
customerId: string;
|
|
12
13
|
back: EventEmitter<void>;
|
|
13
14
|
activeTab: WorkspaceDetailTab;
|
|
14
15
|
details: WorkspaceDetails | null;
|
|
@@ -20,5 +21,5 @@ export declare class WorkspaceDetailComponent implements OnInit {
|
|
|
20
21
|
onBack(): void;
|
|
21
22
|
private updateUrl;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceDetailComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceDetailComponent, "tk-workspace-detail", never, { "workspace": "workspace"; "connectionType": "connectionType"; }, { "back": "back"; }, never, never, false, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkspaceDetailComponent, "tk-workspace-detail", never, { "workspace": "workspace"; "connectionType": "connectionType"; "customerId": "customerId"; }, { "back": "back"; }, never, never, false, never>;
|
|
24
25
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { ApiWebexService } from './api-webex.service';
|
|
3
|
+
import { Workspace, WorkspaceConnectionType, WorkspaceDetails } from '../types/workspace';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class WorkspaceDetailService {
|
|
5
|
-
|
|
6
|
+
private apiWebexService;
|
|
7
|
+
constructor(apiWebexService: ApiWebexService);
|
|
8
|
+
getByWorkspace(workspace: Workspace, connectionType: WorkspaceConnectionType, customerId: string | number): Observable<WorkspaceDetails>;
|
|
9
|
+
private getWebexDetails;
|
|
10
|
+
private toWebexDetails;
|
|
11
|
+
private getCucmDetails;
|
|
12
|
+
private buildUrl;
|
|
13
|
+
private buildIssues;
|
|
14
|
+
private formatTimestamp;
|
|
6
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspaceDetailService, never>;
|
|
7
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkspaceDetailService>;
|
|
8
17
|
}
|
|
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class WorkspacesService {
|
|
6
6
|
private apiService;
|
|
7
7
|
constructor(apiService: APIService);
|
|
8
|
-
fetchWorkspaces(customerId: string | number
|
|
8
|
+
fetchWorkspaces(customerId: string | number): Observable<WorkspacesPage>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkspacesService, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkspacesService>;
|
|
11
11
|
}
|
|
@@ -155,6 +155,8 @@ export interface WorkspaceCallingDetails {
|
|
|
155
155
|
routePartition: string;
|
|
156
156
|
callingSearchSpace: string;
|
|
157
157
|
securityProfile: string;
|
|
158
|
+
externalCallerIdName?: string;
|
|
159
|
+
externalCallerIdNumber?: string;
|
|
158
160
|
}
|
|
159
161
|
export interface WorkspaceDetails {
|
|
160
162
|
issues: WorkspaceIssue[];
|
|
@@ -163,4 +165,71 @@ export interface WorkspaceDetails {
|
|
|
163
165
|
schedulingConfigured: boolean;
|
|
164
166
|
plannedMaintenanceEnabled: boolean;
|
|
165
167
|
notes: string | null;
|
|
168
|
+
capacity?: number | null;
|
|
169
|
+
}
|
|
170
|
+
export interface WebexWorkspaceDeviceSummary {
|
|
171
|
+
deviceId: string;
|
|
172
|
+
mac: string;
|
|
173
|
+
model: string;
|
|
174
|
+
registered: string | null;
|
|
175
|
+
}
|
|
176
|
+
export interface WebexWorkspaceDetailsResponse {
|
|
177
|
+
customerId: number;
|
|
178
|
+
capacity: number | null;
|
|
179
|
+
devices: WebexWorkspaceDeviceSummary[];
|
|
180
|
+
extensions: string[];
|
|
181
|
+
licenseName: string;
|
|
182
|
+
locationId: string;
|
|
183
|
+
locationName: string;
|
|
184
|
+
sipAddress: string;
|
|
185
|
+
type: string;
|
|
186
|
+
workspaceId: string;
|
|
187
|
+
workspaceName: string;
|
|
188
|
+
}
|
|
189
|
+
export interface WebexNumberLocation {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
orgId: string;
|
|
193
|
+
address: string | null;
|
|
194
|
+
announcementLanguage: string | null;
|
|
195
|
+
city: string | null;
|
|
196
|
+
country: string | null;
|
|
197
|
+
emailLanguage: string | null;
|
|
198
|
+
postalCode: string | null;
|
|
199
|
+
preferredLanguage: string | null;
|
|
200
|
+
state: string | null;
|
|
201
|
+
timeZone: string | null;
|
|
202
|
+
}
|
|
203
|
+
export interface WebexNumberOrganization {
|
|
204
|
+
id: string;
|
|
205
|
+
name: string;
|
|
206
|
+
}
|
|
207
|
+
export interface WebexPhoneNumber {
|
|
208
|
+
esn: string | null;
|
|
209
|
+
extension: string | null;
|
|
210
|
+
external: string | null;
|
|
211
|
+
primary: boolean;
|
|
212
|
+
workspace?: {
|
|
213
|
+
id: string;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export interface WebexNumbersResponse {
|
|
217
|
+
phoneNumbers: WebexPhoneNumber[];
|
|
218
|
+
location: WebexNumberLocation;
|
|
219
|
+
organization: WebexNumberOrganization;
|
|
220
|
+
}
|
|
221
|
+
export interface WebexCallerIdResponse {
|
|
222
|
+
types: string[];
|
|
223
|
+
selected: string;
|
|
224
|
+
blockInForwardCallsEnabled: boolean;
|
|
225
|
+
customExternalCallerIdName: string | null;
|
|
226
|
+
customNumber: string | null;
|
|
227
|
+
customerNumber: string | null;
|
|
228
|
+
directNumber: string | null;
|
|
229
|
+
displayDetail: string | null;
|
|
230
|
+
displayName: string | null;
|
|
231
|
+
externalCallerIdNamePolicy: string | null;
|
|
232
|
+
locationExternalCallerIdName: string | null;
|
|
233
|
+
locationNumber: string | null;
|
|
234
|
+
tollFreeLocationNumber: boolean;
|
|
166
235
|
}
|