@careevolution/mydatahelps-js 3.17.0 → 3.18.0
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/MyDataHelps.d.ts +4 -5
- package/MyDataHelps.js +304 -276
- package/MyDataHelps.min.js +1 -1
- package/MyDataHelps.min.js.map +1 -1
- package/assets/MyDataHelps-CJt5Kdo2.css +1 -0
- package/assets/MyDataHelps.min-CJt5Kdo2.css +1 -0
- package/package.json +9 -6
- package/types.d.ts +31 -17
package/types.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
1
|
+
export type SurveyTaskStatus = "incomplete" | "closed" | "complete";
|
|
2
|
+
export type SortOrder = "descending" | "ascending";
|
|
3
|
+
export type EventName = "applicationDidBecomeVisible" | "surveyDidFinish" | "externalAccountSyncComplete" | "tokenWillExpire";
|
|
4
|
+
export type DeviceDataNamespace = "Project" | "Fitbit" | "AppleHealth" | "GoogleFit" | "AirNowApi" | "WeatherBit" | "Garmin" | "Omron";
|
|
5
|
+
export type DeviceDataV2Namespace = "Fitbit" | "AppleHealth";
|
|
6
|
+
export type DeviceDataV2AggregateIntervalType = "Minutes" | "Hours" | "Days" | "Weeks" | "Months";
|
|
7
|
+
export type ExternalAccountStatus = "unauthorized" | "fetchComplete" | "error" | "fetchingData";
|
|
8
|
+
export type NotificationType = "Sms" | "Push" | "Email";
|
|
9
|
+
export type NotificationStatusCode = "Succeeded" | "Unsubscribed" | "MissingContactInfo" | "NoRegisteredMobileDevice" | "NoAssociatedUser" | "ServiceError";
|
|
10
|
+
export type StatusBarStyle = "lightContent" | "darkContent" | "default";
|
|
11
|
+
export type InboxItemType = 'message' | 'survey' | 'resource';
|
|
12
|
+
export type InboxItemStatus = 'incomplete' | 'closed' | 'complete';
|
|
13
|
+
export type InboxItemSortColumn = 'insertedDate' | 'dueDate' | 'endDate';
|
|
14
|
+
export type InboxItemUpdate = 'markRead';
|
|
15
|
+
export type InboxItemUpdateStatus = 'success' | 'noChange' | 'error';
|
|
16
|
+
export type SurveyMode = "Design" | "Preview" | "Survey";
|
|
17
17
|
export interface Guid extends String {
|
|
18
18
|
}
|
|
19
19
|
export interface StringMap {
|
|
@@ -165,7 +165,7 @@ export interface SurveyTask {
|
|
|
165
165
|
endDate?: string;
|
|
166
166
|
status: SurveyTaskStatus;
|
|
167
167
|
hasSavedProgress: boolean;
|
|
168
|
-
dueDate
|
|
168
|
+
dueDate?: string;
|
|
169
169
|
insertedDate: string;
|
|
170
170
|
modifiedDate: string;
|
|
171
171
|
}
|
|
@@ -326,6 +326,20 @@ export interface DeviceDataV2Aggregate {
|
|
|
326
326
|
[key: string]: number;
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
+
export interface DeviceDataV2DailySleepPage {
|
|
330
|
+
sleepStageSummaries: DeviceDataV2DailySleep[];
|
|
331
|
+
nextPageID?: string;
|
|
332
|
+
}
|
|
333
|
+
export interface DeviceDataV2DailySleep {
|
|
334
|
+
participantID: Guid;
|
|
335
|
+
participantIdentifier: string;
|
|
336
|
+
namespace: DeviceDataV2Namespace;
|
|
337
|
+
type: string;
|
|
338
|
+
date: string;
|
|
339
|
+
value: string;
|
|
340
|
+
duration: string;
|
|
341
|
+
source?: string;
|
|
342
|
+
}
|
|
329
343
|
export interface SurveyAnswersQuery extends QueryParameters {
|
|
330
344
|
surveyResultID?: string;
|
|
331
345
|
surveyID?: string;
|