@careevolution/mydatahelps-js 3.17.1-mdhai.1 → 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 CHANGED
@@ -1,14 +1,11 @@
1
1
  import "../MyDataHelps.css";
2
- import * as Model from "./types.js";
3
- import { StringMap } from "./types.js";
2
+ import * as Model from "./types";
3
+ import { StringMap } from "./types";
4
4
  export declare class MyDataHelps {
5
5
  baseUrl: string;
6
6
  language: string;
7
7
  token: Model.Token;
8
8
  tokenExpires: number;
9
- graph: any;
10
- initializeAssistant(): Promise<void>;
11
- addUserMessage(userMessage: string, onEvent: (event: any) => void): Promise<void>;
12
9
  startSurvey(surveyName: string): void;
13
10
  completeStep(answer: any): void;
14
11
  querySurveyAnswers(queryParameters: Model.SurveyAnswersQuery): Promise<Model.SurveyAnswersPage>;
@@ -34,7 +31,7 @@ export declare class MyDataHelps {
34
31
  triggerEvent(event: Model.EventData): void;
35
32
  setActionResult(data: Model.EventData): void;
36
33
  getParticipantInfo(): Promise<Model.ParticipantInfo>;
37
- persistParticipantInfo(demographics: Model.ParticipantDemographics, customFields: StringMap): Promise<Model.ParticipantInfo>;
34
+ persistParticipantInfo(demographics: Partial<Model.ParticipantDemographics>, customFields: StringMap): Promise<Model.ParticipantInfo>;
38
35
  getProjectInfo(): Promise<Model.ProjectInfo>;
39
36
  getDeviceDataPoint(id: Model.Guid): Promise<Model.DeviceDataPoint>;
40
37
  deleteDeviceDataPoint(id: Model.Guid): Promise<void>;
@@ -58,7 +55,7 @@ export declare class MyDataHelps {
58
55
  getFileDownloadUrl(key: string): Promise<Model.DownloadedFile>;
59
56
  deleteFile(key: string): Promise<void>;
60
57
  connect(): Promise<void>;
61
- setParticipantAccessToken(token: Model.Token, baseUrl: string): void;
58
+ setParticipantAccessToken(token: Model.Token, baseUrl?: string): void;
62
59
  isStandaloneMode(): boolean;
63
60
  enableStandaloneMode(): void;
64
61
  setStatusBarStyle(style: Model.StatusBarStyle): void;
@@ -86,7 +83,6 @@ export declare class MyDataHelps {
86
83
  private refreshTokenPromise;
87
84
  private standaloneMode;
88
85
  private nextMessageID;
89
- private getBaseUrl;
90
86
  private makeUrl;
91
87
  private makeRequest;
92
88
  private getSupportedLanguage;
@@ -100,4 +96,4 @@ export declare class MyDataHelps {
100
96
  }
101
97
  declare const mdh: MyDataHelps;
102
98
  export default mdh;
103
- export * from './types.js';
99
+ export * from './types';