@d4l/collect-lib 1.4.0 → 1.5.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/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d4l/collect-lib",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",