-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParticipantGroups.ts
62 lines (54 loc) · 1.36 KB
/
ParticipantGroups.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import carpCommon from '@cachet/carp-common';
import cdk = carpCommon.dk;
import UUID = cdk.cachet.carp.common.application.UUID;
export interface ParticipantGroups {
groups: ParticipantGroup[];
groupStatuses: any[];
}
export interface ParticipantGroup {
participantGroupId: string;
deploymentStatus: DeploymentStatus;
participants: ParticipantData[];
}
export interface DeploymentStatus {
createdOn: string;
startedOn: string;
stoppedOn: string;
studyDeploymentId: string;
deviceStatusList: DeviceStatus[];
participantStatusList: ParticipantStatus[];
__type: string;
}
export interface DeviceStatus {
canBeDeployed: boolean;
device: Device;
remainingDevicesToRegisterToObtainDeployment: string[];
remainingDevicesToRegisterBeforeDeployment: string[];
lastDataUploadDate: Date;
lastDataUploadStatus: string;
__type: string;
}
export interface Device {
isPrimaryDevice: boolean;
roleName: string;
__type: string;
}
export interface ParticipantData {
participantId: string;
firstName: string;
lastName: string;
email: string;
role: string;
dateOfLastDataUpload: Date;
}
export interface ParticipantStatus {
participantId: string;
assignedParticipantRoles: {
roleNames: string[];
};
assignedPrimaryDeviceRoleNames: string[];
}
export interface InactiveDeployment {
deploymentId: UUID;
dateOfLastDataUpload: Date;
}