@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/types.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- export declare type SurveyTaskStatus = "incomplete" | "closed" | "complete";
2
- export declare type SortOrder = "descending" | "ascending";
3
- export declare type EventName = "applicationDidBecomeVisible" | "surveyDidFinish" | "externalAccountSyncComplete" | "tokenWillExpire";
4
- export declare type DeviceDataNamespace = "Project" | "Fitbit" | "AppleHealth" | "GoogleFit" | "AirNowApi" | "WeatherBit" | "Garmin" | "Omron";
5
- export declare type DeviceDataV2Namespace = "Fitbit" | "AppleHealth";
6
- export declare type DeviceDataV2AggregateIntervalType = "Minutes" | "Hours" | "Days" | "Weeks" | "Months";
7
- export declare type ExternalAccountStatus = "unauthorized" | "fetchComplete" | "error" | "fetchingData";
8
- export declare type NotificationType = "Sms" | "Push" | "Email";
9
- export declare type NotificationStatusCode = "Succeeded" | "Unsubscribed" | "MissingContactInfo" | "NoRegisteredMobileDevice" | "NoAssociatedUser" | "ServiceError";
10
- export declare type StatusBarStyle = "lightContent" | "darkContent" | "default";
11
- export declare type InboxItemType = 'message' | 'survey' | 'resource';
12
- export declare type InboxItemStatus = 'incomplete' | 'closed' | 'complete';
13
- export declare type InboxItemSortColumn = 'insertedDate' | 'dueDate' | 'endDate';
14
- export declare type InboxItemUpdate = 'markRead';
15
- export declare type InboxItemUpdateStatus = 'success' | 'noChange' | 'error';
16
- export declare type SurveyMode = "Design" | "Preview" | "Survey";
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: string;
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;