@d4l/collect-lib 1.4.0 → 1.5.1

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/dist/index.d.mts CHANGED
@@ -84,6 +84,9 @@ type DisplayContent = {
84
84
  message: TranslatedString;
85
85
  };
86
86
  blocks?: DisplayContentBlock[];
87
+ charts?: {
88
+ [key in ProgramDeviceType]?: ProgramDevicesDataType[];
89
+ };
87
90
  };
88
91
  type DisplayContentBlock = {
89
92
  image?: string;
@@ -112,7 +115,7 @@ interface SeenDisplay {
112
115
  */
113
116
  content?: DisplayContent;
114
117
  }
115
- type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
118
+ type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `content.charts.${ProgramDeviceType}` | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
116
119
 
117
120
  interface EligibilityScore {
118
121
  /**
package/dist/index.d.ts CHANGED
@@ -84,6 +84,9 @@ type DisplayContent = {
84
84
  message: TranslatedString;
85
85
  };
86
86
  blocks?: DisplayContentBlock[];
87
+ charts?: {
88
+ [key in ProgramDeviceType]?: ProgramDevicesDataType[];
89
+ };
87
90
  };
88
91
  type DisplayContentBlock = {
89
92
  image?: string;
@@ -112,7 +115,7 @@ interface SeenDisplay {
112
115
  */
113
116
  content?: DisplayContent;
114
117
  }
115
- type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
118
+ type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `content.charts.${ProgramDeviceType}` | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
116
119
 
117
120
  interface EligibilityScore {
118
121
  /**
package/dist/index.js CHANGED
@@ -5161,13 +5161,13 @@ function generateFHIRTag(id, code, date, labels, stringTemplater) {
5161
5161
  var API_TARGET_MAP = {
5162
5162
  DEXCOM: {
5163
5163
  prod: {
5164
- loginEndpoint: "https://api.dexcom.com/v2/oauth2/login",
5165
- tokenEndpoint: "https://api.dexcom.com/v2/oauth2/token",
5164
+ loginEndpoint: "https://api.dexcom.eu/v2/oauth2/login",
5165
+ tokenEndpoint: "https://api.dexcom.eu/v2/oauth2/token",
5166
5166
  dataEndpoint: "https://api.dexcom.eu/v3/users/self"
5167
5167
  },
5168
5168
  sandbox: {
5169
- loginEndpoint: "https://sandbox-api.dexcom.com/v2/oauth2/login",
5170
- tokenEndpoint: "https://sandbox-api.dexcom.com/v2/oauth2/token",
5169
+ loginEndpoint: "https://sandbox-api.dexcom.eu/v2/oauth2/login",
5170
+ tokenEndpoint: "https://sandbox-api.dexcom.eu/v2/oauth2/token",
5171
5171
  dataEndpoint: "https://sandbox-api.dexcom.eu/v3/users/self"
5172
5172
  }
5173
5173
  },
@@ -5175,13 +5175,13 @@ var API_TARGET_MAP = {
5175
5175
  prod: {
5176
5176
  loginEndpoint: "https://www.fitbit.com/oauth2/authorize",
5177
5177
  tokenEndpoint: "https://api.fitbit.com/oauth2/token",
5178
- dataEndpoint: "https://api.fitbit.com/"
5178
+ dataEndpoint: "https://api.fitbit.com"
5179
5179
  },
5180
5180
  sandbox: {
5181
5181
  // Doesnt actually have a sandbox
5182
5182
  loginEndpoint: "https://www.fitbit.com/oauth2/authorize",
5183
5183
  tokenEndpoint: "https://api.fitbit.com/oauth2/token",
5184
- dataEndpoint: "https://api.fitbit.com/"
5184
+ dataEndpoint: "https://api.fitbit.com"
5185
5185
  }
5186
5186
  }
5187
5187
  };