@careevolution/mydatahelps-js 3.1.0 → 3.2.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 CHANGED
@@ -29,7 +29,7 @@ export declare class MyDataHelps {
29
29
  getProjectInfo(): Promise<Model.ProjectInfo>;
30
30
  queryDeviceData(queryParameters: Model.DeviceDataPointQuery): Promise<Model.DeviceDataPointsPage>;
31
31
  persistDeviceData(deviceDataPoints: Model.PersistableDeviceDataPoint[]): Promise<void>;
32
- getExternalAccountProviders(search: string, category: string, pageSize: number, pageNumber: number): Promise<Model.ExternalAccountProvidersPage>;
32
+ getExternalAccountProviders(search: string | null, category: string | null, pageSize: number, pageNumber: number): Promise<Model.ExternalAccountProvidersPage>;
33
33
  connectExternalAccount(externalAccountProviderID: number): void;
34
34
  getExternalAccounts(): Promise<Model.ExternalAccount[]>;
35
35
  refreshExternalAccount(accountID: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careevolution/mydatahelps-js",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "MyDataHelps client to be used by external applications for integrations inside the MyDataHelps platform",
5
5
  "type": "module",
6
6
  "types": "MyDataHelps.d.ts",
package/types.d.ts CHANGED
@@ -47,15 +47,11 @@ export interface ProjectInfo {
47
47
  learnMoreTitle: string;
48
48
  }
49
49
  export interface DeviceInfo {
50
- offset: string;
51
- device: {
52
- identifier: Guid;
53
- platform: string;
54
- properties: {
55
- [key: string]: string;
56
- };
50
+ identifier: Guid;
51
+ platform: string;
52
+ properties: {
53
+ [key: string]: string;
57
54
  };
58
- timeZone: string;
59
55
  }
60
56
  export interface ParticipantInfo {
61
57
  participantID: Guid;
@@ -101,8 +97,6 @@ export interface NotificationsPage {
101
97
  }
102
98
  export interface Notification {
103
99
  id: Guid;
104
- participantID: Guid;
105
- participantIdentifier: string;
106
100
  identifier: string;
107
101
  contentVersion?: number;
108
102
  sentDate: string;
@@ -123,18 +117,16 @@ export interface SurveyTaskQueryParameters extends QueryParameters {
123
117
  sortOrder?: SortOrder;
124
118
  }
125
119
  export interface SurveyTasksPage {
126
- notifications: SurveyTask[];
120
+ surveyTasks: SurveyTask[];
127
121
  nextPageID?: Guid;
128
122
  }
129
123
  export interface SurveyTask {
130
124
  id: Guid;
131
- participantID: Guid;
132
- participantIdentifier: string;
133
125
  linkIdentifier: string;
134
126
  surveyID: Guid;
135
- surveyName?: string;
136
- surveyDisplayName: string;
137
- surveyDescription: string;
127
+ surveyName: string;
128
+ surveyDisplayName?: string;
129
+ surveyDescription?: string;
138
130
  startDate?: string;
139
131
  endDate?: string;
140
132
  status: SurveyTaskStatus;
@@ -154,8 +146,6 @@ export interface DeviceDataPointsPage {
154
146
  nextPageID?: Guid;
155
147
  }
156
148
  export interface PersistableDeviceDataPoint {
157
- participantID?: Guid;
158
- participantIdentifier: string;
159
149
  identifier: string;
160
150
  type: string;
161
151
  value: string;
@@ -169,14 +159,14 @@ export interface PersistableDeviceDataPoint {
169
159
  [key: string]: any;
170
160
  };
171
161
  };
172
- startDate?: Date;
173
- observationDate?: Date;
162
+ startDate?: string;
163
+ observationDate?: string;
174
164
  }
175
165
  export interface DeviceDataPoint extends PersistableDeviceDataPoint {
176
166
  id: Guid;
177
167
  namespace: DeviceDataNamespace;
178
168
  limit?: number;
179
- deviceDataContextID: string;
169
+ deviceDataContextID?: string;
180
170
  insertedDate: string;
181
171
  modifiedDate: string;
182
172
  }
@@ -206,7 +196,6 @@ export interface SurveyAnswersPage {
206
196
  }
207
197
  export interface SurveyAnswer {
208
198
  id: Guid;
209
- participantID: Guid;
210
199
  surveyResultID: Guid;
211
200
  surveyID: Guid;
212
201
  surveyVersion: number;