tas-uell-sdk 0.1.1 → 0.1.3
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/README.md +7 -1
- package/esm2020/lib/components/tas-btn/tas-btn.component.mjs +2 -2
- package/esm2020/lib/components/tas-incoming-appointment/tas-incoming-appointment.component.mjs +41 -28
- package/esm2020/lib/components/tas-videocall/tas-videocall.component.mjs +3 -3
- package/esm2020/lib/interfaces/tas.interfaces.mjs +2 -1
- package/esm2020/lib/services/tas.service.mjs +12 -2
- package/fesm2015/tas-uell-sdk.mjs +55 -31
- package/fesm2015/tas-uell-sdk.mjs.map +1 -1
- package/fesm2020/tas-uell-sdk.mjs +55 -31
- package/fesm2020/tas-uell-sdk.mjs.map +1 -1
- package/lib/components/tas-incoming-appointment/tas-incoming-appointment.component.d.ts +15 -6
- package/lib/interfaces/tas.interfaces.d.ts +7 -1
- package/package.json +2 -2
|
@@ -9,8 +9,10 @@ export declare class TasIncomingAppointmentComponent implements OnInit, OnDestro
|
|
|
9
9
|
tenant: string;
|
|
10
10
|
businessRole: TasBusinessRole;
|
|
11
11
|
currentUser: TasCurrentUser;
|
|
12
|
+
fromDate: string;
|
|
13
|
+
toDate: string;
|
|
12
14
|
enterCall: EventEmitter<TasAppointment>;
|
|
13
|
-
|
|
15
|
+
appointments: TasAppointment[];
|
|
14
16
|
isLoading: boolean;
|
|
15
17
|
hasError: boolean;
|
|
16
18
|
private subscriptions;
|
|
@@ -18,16 +20,23 @@ export declare class TasIncomingAppointmentComponent implements OnInit, OnDestro
|
|
|
18
20
|
ngOnInit(): void;
|
|
19
21
|
ngOnDestroy(): void;
|
|
20
22
|
private loadAppointments;
|
|
21
|
-
onEnterCall(): void;
|
|
23
|
+
onEnterCall(appointment: TasAppointment): void;
|
|
24
|
+
/**
|
|
25
|
+
* Check if tas-btn should be shown for an appointment (CONFIRMED or ACTIVE status)
|
|
26
|
+
*/
|
|
27
|
+
shouldShowTasBtn(appointment: TasAppointment): boolean;
|
|
22
28
|
/**
|
|
23
29
|
* Format date to Spanish format: "Lunes 8 de diciembre"
|
|
24
30
|
*/
|
|
25
|
-
|
|
31
|
+
formatAppointmentDate(appointment: TasAppointment): string;
|
|
26
32
|
/**
|
|
27
33
|
* Format time range: "9:00 - 9:30"
|
|
28
34
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
formatTimeRange(appointment: TasAppointment): string;
|
|
36
|
+
/**
|
|
37
|
+
* Get the other participant in the call (not the current user)
|
|
38
|
+
*/
|
|
39
|
+
getOtherParticipant(appointment: TasAppointment): string;
|
|
31
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<TasIncomingAppointmentComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TasIncomingAppointmentComponent, "tas-incoming-appointment", never, { "roomType": "roomType"; "entityId": "entityId"; "tenant": "tenant"; "businessRole": "businessRole"; "currentUser": "currentUser"; }, { "enterCall": "enterCall"; }, never, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TasIncomingAppointmentComponent, "tas-incoming-appointment", never, { "roomType": "roomType"; "entityId": "entityId"; "tenant": "tenant"; "businessRole": "businessRole"; "currentUser": "currentUser"; "fromDate": "fromDate"; "toDate": "toDate"; }, { "enterCall": "enterCall"; }, never, never>;
|
|
33
42
|
}
|
|
@@ -140,7 +140,12 @@ export interface WaitingRoomUser {
|
|
|
140
140
|
export declare enum AppointmentStatus {
|
|
141
141
|
CONFIRMED = "CONFIRMED",
|
|
142
142
|
CANCELLED = "CANCELLED",
|
|
143
|
-
RESCHEDULED = "RESCHEDULED"
|
|
143
|
+
RESCHEDULED = "RESCHEDULED",
|
|
144
|
+
ACTIVE = "ACTIVE"
|
|
145
|
+
}
|
|
146
|
+
export interface TasParticipant {
|
|
147
|
+
userId: number;
|
|
148
|
+
name: string;
|
|
144
149
|
}
|
|
145
150
|
export interface TasAppointment {
|
|
146
151
|
id: number;
|
|
@@ -154,6 +159,7 @@ export interface TasAppointment {
|
|
|
154
159
|
notes: string;
|
|
155
160
|
entityId: number;
|
|
156
161
|
roomType: TasRoomType;
|
|
162
|
+
participants: TasParticipant[];
|
|
157
163
|
}
|
|
158
164
|
export interface GetAppointmentsRequest {
|
|
159
165
|
fromDate: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tas-uell-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "TAS (Telemedicine Assistance Service) SDK for Angular applications - Video call functionality using TokBox/Vonage",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@ng-bootstrap/ng-bootstrap": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
9
9
|
"@opentok/client": "^2.20.0",
|
|
10
10
|
"interactjs": "^1.10.0",
|
|
11
|
-
"rxjs": "^7.0.0",
|
|
11
|
+
"rxjs": "^6.5.3 || ^7.0.0",
|
|
12
12
|
"bootstrap": "^4.0.0 || ^5.0.0",
|
|
13
13
|
"font-awesome": "^4.7.0"
|
|
14
14
|
},
|