@d4l/collect-lib 1.5.0 → 1.6.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/README.md +8 -7
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -299,13 +299,14 @@ Update the types by running `yarn run readme:update`.
|
|
|
299
299
|
|
|
300
300
|
### Display
|
|
301
301
|
|
|
302
|
-
| Properties | Required | Type
|
|
303
|
-
| ----------- | -------- |
|
|
304
|
-
| name | true | string
|
|
305
|
-
| programName | true | string
|
|
306
|
-
| displayType | true | 'report' / 'recommendation'
|
|
307
|
-
| frequency | true | [TaskFrequency](#TaskFrequency)
|
|
308
|
-
| content | true | [DisplayContent](#DisplayContent)
|
|
302
|
+
| Properties | Required | Type | Description |
|
|
303
|
+
| ----------- | -------- | --------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
304
|
+
| name | true | string | Primary identifier. Assumption: survey and display names are collectively unique |
|
|
305
|
+
| programName | true | string | The name of the program the display belongs to |
|
|
306
|
+
| displayType | true | 'report' / 'recommendation' | The type of the display (report or recommendation) |
|
|
307
|
+
| frequency | true | [TaskFrequency](#TaskFrequency) | Defines in which frequency the questionnaire occurs |
|
|
308
|
+
| content | true | [DisplayContent](#DisplayContent) | Defines the texts, images and icons that need to be displayed for the display |
|
|
309
|
+
| charts | false | { [key in ProgramDeviceType]?: ProgramDevicesDataType[] } | List of devices and their data types that are relevant for the display |
|
|
309
310
|
|
|
310
311
|
#### DisplayContent
|
|
311
312
|
|
package/dist/index.d.mts
CHANGED
|
@@ -76,6 +76,9 @@ type Display = {
|
|
|
76
76
|
displayType: DisplayType;
|
|
77
77
|
frequency: TaskFrequency;
|
|
78
78
|
content: DisplayContent;
|
|
79
|
+
charts?: {
|
|
80
|
+
[key in ProgramDeviceType]?: ProgramDevicesDataType[];
|
|
81
|
+
};
|
|
79
82
|
};
|
|
80
83
|
type DisplayType = 'report' | 'recommendation' | 'end-of-participation';
|
|
81
84
|
type DisplayContent = {
|
|
@@ -84,9 +87,6 @@ type DisplayContent = {
|
|
|
84
87
|
message: TranslatedString;
|
|
85
88
|
};
|
|
86
89
|
blocks?: DisplayContentBlock[];
|
|
87
|
-
charts?: {
|
|
88
|
-
[key in ProgramDeviceType]?: ProgramDevicesDataType[];
|
|
89
|
-
};
|
|
90
90
|
};
|
|
91
91
|
type DisplayContentBlock = {
|
|
92
92
|
image?: string;
|
|
@@ -115,7 +115,7 @@ interface SeenDisplay {
|
|
|
115
115
|
*/
|
|
116
116
|
content?: DisplayContent;
|
|
117
117
|
}
|
|
118
|
-
type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `
|
|
118
|
+
type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `charts.${ProgramDeviceType}` | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
|
|
119
119
|
|
|
120
120
|
interface EligibilityScore {
|
|
121
121
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,9 @@ type Display = {
|
|
|
76
76
|
displayType: DisplayType;
|
|
77
77
|
frequency: TaskFrequency;
|
|
78
78
|
content: DisplayContent;
|
|
79
|
+
charts?: {
|
|
80
|
+
[key in ProgramDeviceType]?: ProgramDevicesDataType[];
|
|
81
|
+
};
|
|
79
82
|
};
|
|
80
83
|
type DisplayType = 'report' | 'recommendation' | 'end-of-participation';
|
|
81
84
|
type DisplayContent = {
|
|
@@ -84,9 +87,6 @@ type DisplayContent = {
|
|
|
84
87
|
message: TranslatedString;
|
|
85
88
|
};
|
|
86
89
|
blocks?: DisplayContentBlock[];
|
|
87
|
-
charts?: {
|
|
88
|
-
[key in ProgramDeviceType]?: ProgramDevicesDataType[];
|
|
89
|
-
};
|
|
90
90
|
};
|
|
91
91
|
type DisplayContentBlock = {
|
|
92
92
|
image?: string;
|
|
@@ -115,7 +115,7 @@ interface SeenDisplay {
|
|
|
115
115
|
*/
|
|
116
116
|
content?: DisplayContent;
|
|
117
117
|
}
|
|
118
|
-
type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `
|
|
118
|
+
type DisplayPath = `content.${DisplayContentPath}` | `content.blocks.${number}.image` | `content.blocks.${number}.text` | 'content.blocks' | `charts.${ProgramDeviceType}` | 'name' | `frequency.${keyof TaskFrequency}` | 'frequency';
|
|
119
119
|
|
|
120
120
|
interface EligibilityScore {
|
|
121
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.
|
|
5165
|
-
tokenEndpoint: "https://api.dexcom.
|
|
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.
|
|
5170
|
-
tokenEndpoint: "https://sandbox-api.dexcom.
|
|
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
|
};
|