@d4l/collect-lib 1.20.1 → 1.22.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 CHANGED
@@ -41,7 +41,7 @@ Update the types by running `yarn run readme:update`.
41
41
  | content | true | [ProgramContent](#ProgramContent) | Contains all the relevant content properties of the program. |
42
42
  | endDate | false | ISO 8601 date with timezone | Date the program should finish for all users. |
43
43
  | tags | false | [ProgramTag](#ProgramTag)[] | List of supported tags including their configuration |
44
- | publishedAt | true | ISO 8601 date with timezone | Date the program was published (used to determine program state). |
44
+ | publishedAt | false | ISO 8601 date with timezone | Date the program was published (used to determine program state). |
45
45
  | featured | true | [ProgramFeatured](#ProgramFeatured) | Describes the featured state of the program. |
46
46
  | theme | false | 'D4L', 'GREEN', 'PURPLE', 'OLIVE' or 'BLUE' | The theme to be used for the program in the app |
47
47
 
@@ -132,32 +132,91 @@ Update the types by running `yarn run readme:update`.
132
132
 
133
133
  ### StepCondition
134
134
 
135
- | Properties | Required | Type | Description |
136
- | ------------ | -------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
137
- | type | true | [ConditionType](#ConditionType) | Type of the condition (determines which other attributes are applicable) |
138
- | surveyName | false | string | required for condition type `survey` and `question` |
139
- | routineName | false | string | required for condition type `routine` |
140
- | linkID | false | string | required for condition type `question` |
141
- | questionType | false | `coding`, `date` | required for condition type `question` - defines the data type of the referred to question |
142
- | operand | false | string | required for condition type `question` (unless operator is `exists`). Used as `<answer>` `<operator>` `<operand>`. |
143
- | operator | false | `exists`,`=`,`!=`,`>`,`<`,`>=`,`<=` | Required for condition type `question`. Used as `<answer>` `<operator>` `<operand>`. |
144
- | offset | false | ISO 8601 duration string | Defines the offset between the answer date and the current date. For question type `coding` only impacts the start/end date calculation. For type `offset` impacts the `item`. For type `consent`, this is applied to the date of the consent grant |
145
- | item | false | StepCondition | Required for condition type `not` and `offset`. |
146
- | items | false | StepCondition[] | Required for condition type `and` and `or`. List of conditions that are combined with the respective operator. |
147
- | sorting | false | `earliest`, `latest` | Used for condition type `and` and `or`. Determines which resulting dates of the items gets picked. Defaults to `earliest` for `or` and `latest` for `and`. |
148
- | consentKey | false | string | Required for condition type `consent`. Reference to the consent that must have been granted to fulfill the condition. |
149
-
150
- #### ConditionType
151
-
152
- | Type | Description |
153
- | -------- | ----------------------------------------------------------------------------------- |
154
- | question | Condition that requires a specific answer from a previous survey |
155
- | survey | Condition that requires a previous survey to have been completed |
156
- | routine | Condition that requires a previous routine to have been completed |
157
- | and | Condition that requires all subconditions to be fulfilled |
158
- | or | Condition that requires one subcondition to be fulfilled |
159
- | offset | Condition that adds a date offset to the fulfillment date of the given subcondition |
160
- | consent | Condition that require a specific consent to be given |
135
+ #### Base
136
+
137
+ | Properties | Required | Type | Description |
138
+ | ---------- | -------- | ------------------------------- | ----------------------------------------------------------------------------- |
139
+ | type | true | [ConditionType](#ConditionType) | Type of the condition (determines which other attributes are applicable) |
140
+ | offset | false | ISO 8601 duration string | Adds additional offset duration to conditions outcome. (e.g. x plus two days) |
141
+
142
+ #### DateCondition
143
+
144
+ | Properties | Required | Type | Description |
145
+ | ---------- | -------- | ------------------- | --------------------------------------------------------------- |
146
+ | type | true | `date` | Condition that requires a date to have passed |
147
+ | date | true | string (YYYY-MM-DD) | Timestamp that needs to be passed for the condition to be true. |
148
+
149
+ #### QuestionCondition
150
+
151
+ | Properties | Required | Type | Description |
152
+ | ------------ | -------- | ----------------------------------- | ------------------------------------------------------------------------------- |
153
+ | type | true | `question` | Condition that requires a specific answer from a previous survey |
154
+ | questionType | true | `coding` | Condition that uses authored date of the response fulfilling the code condition |
155
+ | surveyName | true | string | Identifier of the survey |
156
+ | linkID | true | string | Identifier of the question |
157
+ | operand | false | string | (unless operator is `exists`). Used as `<answer>` `<operator>` `<operand>`. |
158
+ | operator | true | `exists`,`=`,`!=`,`>`,`<`,`>=`,`<=` | Used as `<answer>` `<operator>` `<operand>`. |
159
+
160
+ #### QuestionCondition
161
+
162
+ | Properties | Required | Type | Description |
163
+ | ------------ | -------- | ---------- | --------------------------------------------------------------------- |
164
+ | type | true | `question` | Condition that requires a specific answer from a previous survey |
165
+ | questionType | true | `date` | Condition that uses the answer of a date question as fulfillment date |
166
+ | surveyName | true | string | Identifier of the survey |
167
+ | linkID | true | string | Identifier of the question |
168
+
169
+ #### SurveyCondition
170
+
171
+ | Properties | Required | Type | Description |
172
+ | ---------- | -------- | -------- | ---------------------------------------------------------------- |
173
+ | type | true | `survey` | Condition that requires a previous survey to have been completed |
174
+ | surveyName | true | string | Identifier of the survey |
175
+
176
+ #### RoutineCondition
177
+
178
+ | Properties | Required | Type | Description |
179
+ | ----------- | -------- | --------- | ----------------------------------------------------------------- |
180
+ | type | true | `routine` | Condition that requires a previous routine to have been completed |
181
+ | routineName | true | string | Identifier of the routine |
182
+
183
+ #### ConsentCondition
184
+
185
+ | Properties | Required | Type | Description |
186
+ | ---------- | -------- | --------- | ------------------------------------------------------------------------------ |
187
+ | type | true | `consent` | Condition that require a specific consent to be given |
188
+ | consentKey | true | string | Reference to the consent that must have been granted to fulfill the condition. |
189
+
190
+ #### ResponseCondition
191
+
192
+ | Properties | Required | Type | Description |
193
+ | ------------ | -------- | ---------- | -------------------------------------------------------------------------------- |
194
+ | type | true | `response` | Condition that require a specific response to be received |
195
+ | responseName | true | string | Reference to the response that must have been received to fulfill the condition. |
196
+
197
+ #### AndCondition
198
+
199
+ | Properties | Required | Type | Description |
200
+ | ---------- | -------- | -------------------- | -------------------------------------------------------------------------------- |
201
+ | type | true | `and` | Condition that requires all subconditions to be fulfilled |
202
+ | items | true | StepCondition[] | List of conditions that must all be fulfilled. |
203
+ | sorting | false | `earliest`, `latest` | Determines which resulting dates of the items gets picked. Defaults to `latest`. |
204
+
205
+ #### OrCondition
206
+
207
+ | Properties | Required | Type | Description |
208
+ | ---------- | -------- | -------------------- | ---------------------------------------------------------------------------------- |
209
+ | type | true | `or` | Condition that requires one subcondition to be fulfilled |
210
+ | items | true | StepCondition[] | List of conditions where at least one must be fulfilled. |
211
+ | sorting | false | `earliest`, `latest` | Determines which resulting dates of the items gets picked. Defaults to `earliest`. |
212
+
213
+ #### OffsetCondition
214
+
215
+ | Properties | Required | Type | Description |
216
+ | ---------- | -------- | ------------------------ | ----------------------------------------------------------------------------------- |
217
+ | type | true | `offset` | Condition that adds a date offset to the fulfillment date of the given subcondition |
218
+ | offset | true | ISO 8601 duration string | Offset as duration, can be negative. |
219
+ | item | true | StepCondition | Condition to apply the additional offset to. |
161
220
 
162
221
  ### ProgramDonation
163
222
 
@@ -228,6 +287,7 @@ Update the types by running `yarn run readme:update`.
228
287
  | content | true | [SurveyContent](#SurveyContent) | Defines the texts, images and icons that need to be displayed for the survey |
229
288
  | reminder | false | [TaskReminder](#TaskReminder) | Defines if and when a reminder should be sent for the task (only for one-time and recurring tasks) |
230
289
  | template | false | string | Name of the template used for the questionnaire (templated surveys don't allow questions to be changed) |
290
+ | publishedAt | false | ISO 8601 date with timezone | Date the survey was published. |
231
291
 
232
292
  #### TaskFrequency
233
293
 
@@ -252,6 +312,7 @@ Update the types by running `yarn run readme:update`.
252
312
 
253
313
  | Properties | Required | Type | Description |
254
314
  | --------------- | -------- | --------------------------------------------- | ---------------------------------------------------------------------------------- |
315
+ | eligibility | false | boolean | Indicates if the scoring is suitable for eligibility. |
255
316
  | scores | true | object | Defines how the questions will be scored |
256
317
  | scores.valueset | false | {valuesetURL: {answerCode: score}} | For questions that use valuesets scores are assigned to each code of the valuesets |
257
318
  | scores.number | false | {linkId: [ScoreThreshold](#ScoreThreshold)[]} | For numeric questions we define scoring conditions per question |
@@ -302,6 +363,7 @@ Update the types by running `yarn run readme:update`.
302
363
  | devices | true | string[] | Lists the devices used in the routine |
303
364
  | duration | ISO 8601 duration String | Defines the duration of the routine |
304
365
  | reminder | false | [TaskReminder](#TaskReminder) | Defines if and when a reminder should be sent for the task (only for one-time and recurring tasks) |
366
+ | publishedAt | false | ISO 8601 date with timezone | Date the routine was published. |
305
367
 
306
368
  #### ProgramDevice
307
369
 
@@ -341,6 +403,7 @@ Update the types by running `yarn run readme:update`.
341
403
  | frequency | true | [TaskFrequency](#TaskFrequency) | Defines in which frequency the questionnaire occurs |
342
404
  | content | true | [DisplayContent](#DisplayContent) | Defines the texts, images and icons that need to be displayed for the display |
343
405
  | charts | false | { [key in ProgramDeviceType]?: ProgramDevicesDataType[] } | List of devices and their data types that are relevant for the display |
406
+ | publishedAt | false | ISO 8601 date with timezone | Date the display was published. |
344
407
 
345
408
  #### DisplayContent
346
409
 
package/dist/index.d.mts CHANGED
@@ -32,6 +32,7 @@ type Survey = {
32
32
  content: SurveyContent;
33
33
  reminder?: TaskReminder;
34
34
  template?: string;
35
+ publishedAt?: string;
35
36
  };
36
37
  type TaskFrequency = {
37
38
  type: FrequencyType;
@@ -47,6 +48,7 @@ type TaskReminder = {
47
48
  frequency: ReminderFrequencyType;
48
49
  };
49
50
  type SurveyScoring = {
51
+ eligibility?: boolean;
50
52
  scores: {
51
53
  valueset?: {
52
54
  [valuesetURL: string]: {
@@ -84,6 +86,7 @@ type Display = {
84
86
  charts?: {
85
87
  [key in ProgramDeviceType]?: ProgramDevicesDataType[];
86
88
  };
89
+ publishedAt?: string;
87
90
  };
88
91
  type DisplayType = 'report' | 'recommendation' | 'end-of-participation';
89
92
  type DisplayContent = {
@@ -155,6 +158,27 @@ interface SeenMessage {
155
158
  blocks?: ContentBlock[];
156
159
  }
157
160
 
161
+ interface Notification {
162
+ name: string;
163
+ programName: string;
164
+ recipients?: string[];
165
+ notificationKey: string;
166
+ createdAt?: string;
167
+ updatedAt?: string;
168
+ sentAt?: string;
169
+ }
170
+ type ResponseTimes = {
171
+ [key: string]: Date | null;
172
+ };
173
+ interface NotificationRecipient {
174
+ notificationName: string;
175
+ programName: string;
176
+ subjectID: string;
177
+ sentAt?: string;
178
+ pushedAt?: string;
179
+ readAt?: string;
180
+ }
181
+
158
182
  interface QuestionnaireScore {
159
183
  /**
160
184
  * The actual survey name
@@ -260,21 +284,61 @@ type ProgramSensorStep = ProgramStepBase & {
260
284
  type: 'sensor';
261
285
  devices: ProgramDevice[];
262
286
  };
263
- type StepCondition = {
287
+ type StepCondition = DateCondition | CodeQuestionCondition | DateQuestionCondition | SurveyCondition | RoutineCondition | ConsentCondition | ResponseCondition | AndCondition | OrCondition | OffsetCondition;
288
+ type StepConditionBase = {
264
289
  type: ConditionType;
265
- surveyName?: string;
266
- routineName?: string;
267
- linkID?: string;
268
- questionType?: ConditionQuestionType;
269
- operand?: string;
270
- operator?: ConditionOperatorType;
271
290
  offset?: string;
272
- item?: StepCondition;
273
- items?: StepCondition[];
291
+ };
292
+ type DateCondition = StepConditionBase & {
293
+ type: 'date';
294
+ date: string;
295
+ };
296
+ type CodeQuestionCondition = StepConditionBase & {
297
+ type: 'question';
298
+ questionType: 'coding';
299
+ surveyName: string;
300
+ linkID: string;
301
+ operand?: string;
302
+ operator: ConditionOperatorType;
303
+ };
304
+ type DateQuestionCondition = StepConditionBase & {
305
+ type: 'question';
306
+ questionType: 'date';
307
+ surveyName: string;
308
+ linkID: string;
309
+ };
310
+ type SurveyCondition = StepConditionBase & {
311
+ type: 'survey';
312
+ surveyName: string;
313
+ };
314
+ type RoutineCondition = StepConditionBase & {
315
+ type: 'routine';
316
+ routineName: string;
317
+ };
318
+ type ConsentCondition = StepConditionBase & {
319
+ type: 'consent';
320
+ consentKey: string;
321
+ };
322
+ type ResponseCondition = StepConditionBase & {
323
+ type: 'response';
324
+ responseName: string;
325
+ };
326
+ type AndCondition = StepConditionBase & {
327
+ type: 'and';
328
+ items: StepCondition[];
274
329
  sorting?: ConditionSorting;
275
- consentKey?: string;
276
330
  };
277
- type ConditionType = 'question' | 'survey' | 'routine' | 'and' | 'or' | 'offset' | 'consent';
331
+ type OrCondition = StepConditionBase & {
332
+ type: 'or';
333
+ items: StepCondition[];
334
+ sorting?: ConditionSorting;
335
+ };
336
+ type OffsetCondition = StepConditionBase & {
337
+ type: 'offset';
338
+ offset: string;
339
+ item: StepCondition;
340
+ };
341
+ type ConditionType = 'date' | 'question' | 'survey' | 'routine' | 'and' | 'or' | 'offset' | 'consent' | 'response';
278
342
  type ConditionQuestionType = 'coding' | 'date';
279
343
  type ConditionOperatorType = fhir5.QuestionnaireItemEnableWhen['operator'];
280
344
  type ConditionSorting = 'earliest' | 'latest';
@@ -356,7 +420,7 @@ type ReponseValue = {
356
420
  };
357
421
  type QuestionInputType = 'decimal' | 'date' | 'year' | 'single-select' | 'multi-select' | 'scale-ordinal' | 'scale-numeric' | 'string' | 'text';
358
422
 
359
- type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepState' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
423
+ type DEVICE_ANNOTATION_DATA_TYPE = 'header' | 'flag' | 'any' | 'timestamp' | 'heartRate' | 'eulerAngles' | 'acceleration' | 'freeAcceleration' | 'angularSpeed' | 'angularVelocity' | 'magneticField' | 'distance' | 'remoteDistance' | 'rssi' | 'beaconId' | 'caloriesTotal' | 'distanceTotal' | 'speed' | 'motionCadence' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'vo2max' | 'stepsTotal' | 'runningStepsTotal' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'dailyElevationGain' | 'activityDetection' | 'egvs' | 'ecg' | 'spo2' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'skinTemperature' | 'sleepLevel' | 'duration' | 'respiratoryRate' | 'hrv' | 'calories' | 'steps' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepState' | 'sleepStage' | 'normalWalkingEnergyExpenditure' | 'normalWalkingEnergyExpenditurePerHour' | 'intensityEnergyExpenditure' | 'intensityEnergyExpenditurePerHour' | 'totalEnergyExpenditurePerHour' | 'fatBurned' | 'fatBurnedPerHour' | 'metabolicEquivalent' | 'minimumMetabolicEquivalent' | 'maximumMetabolicEquivalent' | 'averageMetabolicEquivalent' | 'durationOfNormalWalkingEpisodes' | 'durationOfIntensityWalkingEpisodes';
360
424
  type DEVICE_ANNOTATION_DATA_FORMAT = 'bitmask' | 'boolean' | 'unsignedInt' | 'signedInt' | 'signedBigInt' | 'float32' | 'float64' | 'byte';
361
425
  type DEVICE_ANNOTATION = DEVICE_ANNOTATION_ITEM[];
362
426
  interface DEVICE_ANNOTATION_ITEM {
@@ -431,7 +495,7 @@ interface BleDeviceMetaLabel {
431
495
  type DEVICE_KEY = DEVICE_KEY_BLE | DEVICE_KEY_API | DEVICE_KEY_SDK | DEVICE_KEY_INTERNAL;
432
496
  type DEVICE_KEY_BLE = 'DOT' | 'OH1' | 'H10' | 'EstimoteUWB' | 'TicWatchE2' | 'PixelWatch1' | 'GalaxyWatch6';
433
497
  type DEVICE_KEY_API = 'FITBIT' | 'DEXCOM' | 'dexcom_g4' | 'dexcom_g5' | 'dexcom_g6' | 'dexcom_g6+' | 'dexcom_g7';
434
- type DEVICE_KEY_SDK = 'AppleHealth';
498
+ type DEVICE_KEY_SDK = 'AppleHealth' | 'HealthConnect';
435
499
  type DEVICE_KEY_INTERNAL = 'INTERNAL' | 'internal_accelerometer' | 'internal_gyroscope' | 'internal_magnetometer' | 'internal_beacon_sensing';
436
500
  type DEVICE_MOVELLA_PAYLOAD_MODES = 'completeEuler' | 'customMode1' | 'rateQuantities';
437
501
  type DEVICE_SIGNAL_TYPE = 'heartRate' | 'imu' | 'beacon' | 'beaconUWB' | 'beaconRemoteUWB' | 'rssiScan' | 'physicalActivityMonitoring' | 'customPassiveMonitoring' | 'activeSamsungSDKMonitoring' | 'passiveSamsungSDKMonitoring' | 'accelerometer' | 'gyroscope' | 'magnetometer' | 'egvs' | 'hrv' | 'respiratoryRate' | 'steps' | 'calories' | 'sleep' | 'skinTemperature' | 'spo2' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepAnalysis';
@@ -520,6 +584,7 @@ type Routine = {
520
584
  devices: ProgramDevice[];
521
585
  duration?: string;
522
586
  reminder?: TaskReminder;
587
+ publishedAt?: string;
523
588
  };
524
589
  type ProgramDevice = {
525
590
  type: ProgramDeviceType;
@@ -531,7 +596,7 @@ type ProgramDevice = {
531
596
  clientID?: string;
532
597
  clientTarget?: ProgramClientTarget;
533
598
  };
534
- type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GalaxyWatch6' | 'PixelWatch1' | 'AppleHealth';
599
+ type ProgramDeviceType = 'EstimoteUWB' | 'DEXCOM' | 'DOT' | 'H10' | 'OH1' | 'INTERNAL' | 'FITBIT' | 'GalaxyWatch6' | 'PixelWatch1' | 'AppleHealth' | 'HealthConnect';
535
600
  type ProgramDevicesDataType = 'distance' | 'rssi' | 'eulerAngles' | 'freeAcceleration' | 'angularVelocity' | 'heartRate' | 'hrv' | 'internal_gyroscope' | 'internal_accelerometer' | 'internal_magnetometer' | 'internal_beacon_sensing' | 'acceleration' | 'angularSpeed' | 'magneticField' | 'stepsTotal' | 'caloriesTotal' | 'distanceTotal' | 'floorsTotal' | 'absoluteElevation' | 'positiveElevationTotal' | 'negativeElevationTotal' | 'minSpeed' | 'maxSpeed' | 'averageSpeed' | 'speed' | 'vo2max' | 'motionCadence' | 'minMotionCadence' | 'maxMotionCadence' | 'averageMotionCadence' | 'dailySteps' | 'dailyDistance' | 'dailyCalories' | 'dailyFloors' | 'activityDetection' | 'egvs' | 'samsungSdkHeartRate' | 'interbeatInterval' | 'skinTemperature' | 'ppgGreen' | 'ppgRed' | 'ppgInfrared' | 'ecg' | 'spo2' | 'steps' | 'calories' | 'sleep' | 'respiratoryRate' | 'stepCount' | 'walkingAndRunningDistance' | 'activeEnergy' | 'sleepAnalysis';
536
601
  type ProgramDevicesLabel = {
537
602
  name: string;
@@ -711,6 +776,19 @@ declare const APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS: {
711
776
  [key in DEVICE_SIGNAL_TYPE]?: DEVICE_ANNOTATION;
712
777
  };
713
778
 
779
+ declare const HEALTH_CONNECT_ANNOTATION_ITEM_STEPS: DEVICE_ANNOTATION_ITEM;
780
+ declare const HEALTH_CONNECT_STEPS_ANNOTATION: DEVICE_ANNOTATION;
781
+ type HealthConnectSleepStages = 'unknown' | 'awake' | 'sleeping' | 'awakeOutOfBed' | 'sleepingLight' | 'sleepingDeep' | 'sleepingRem' | 'awakeInBed';
782
+ declare const HEALTH_CONNECT_SLEEP_STAGE_MAP: {
783
+ [key in HealthConnectSleepStages]: number;
784
+ };
785
+ declare const HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE: DEVICE_ANNOTATION_ITEM;
786
+ declare const HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION: DEVICE_ANNOTATION_ITEM;
787
+ declare const HEALTH_CONNECT_SLEEP_ANNOTATION: DEVICE_ANNOTATION;
788
+ declare const HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS: {
789
+ [key in DEVICE_SIGNAL_TYPE]?: DEVICE_ANNOTATION;
790
+ };
791
+
714
792
  declare function generateFHIRConsent(id: string, consent: Consent, decision: fhir5.Consent['decision'], start: string, end?: string): fhir5.Consent;
715
793
 
716
794
  declare const SliderMinLabelExtension = "http://fhir.data4life.care/StructureDefinition/slider-label-min";
@@ -1231,31 +1309,53 @@ declare const isYearString: (year: string) => boolean;
1231
1309
 
1232
1310
  declare const isScoreEligible: (step: ProgramEligibilityStep, score?: number) => boolean;
1233
1311
 
1312
+ type GuardParameters = {
1313
+ multiAnswers?: MultiAnswers;
1314
+ consentTimes?: ConsentTimes;
1315
+ routineTimes?: RoutineTimes;
1316
+ responseTimes?: ResponseTimes;
1317
+ };
1318
+ type GuardContext = {
1319
+ guard: Guard;
1320
+ surveyNames?: string[];
1321
+ routineNames?: string[];
1322
+ consentKeys?: string[];
1323
+ responseNames?: string[];
1324
+ };
1234
1325
  /**
1235
1326
  * Checks if a given condition is fulfilled by evaluating the answers of a questionnaire response.
1236
1327
  */
1237
1328
  interface Guard {
1238
1329
  /**
1239
1330
  * Evaluates if the guard is fulfilled with the given answers
1331
+ * Used for questionnaire conditions (FHIR based)
1240
1332
  * @param answers Dictionary of question id -> answers value
1241
1333
  */
1242
1334
  evaluate(answers: Answers): boolean;
1243
1335
  /**
1244
1336
  * Evaluates if the guard is fulfilled and returns since when it counts as fulfilled.
1245
1337
  * Returns null if it is not fulfilled
1246
- * Requires surveyName to be defined to use the correct answers for evaluation.
1247
- * @param multiAnswers Dictionary of surveyName -> Answers, date of the response
1248
- * @param consentTimes Dictionary of consentKey -> date of the given consent (or null)
1249
- * @param routineTimes Dictionary of routine names -> date when the last recording for the routine was done (or null)
1338
+ * Used for step conditions
1339
+ * @param params map of parameters to calculate fulfillment
1250
1340
  */
1251
- getFulfillmentDate(multiAnswers: MultiAnswers, consentTimes?: ConsentTimes, routineTimes?: RoutineTimes): Date | null;
1341
+ getFulfillmentDate(params: GuardParameters): Date | null;
1342
+ }
1343
+ declare class AnswerCodeGuard implements Guard {
1344
+ surveyName?: string;
1345
+ questionID: string;
1346
+ operand?: string;
1347
+ operator: ConditionOperatorType;
1348
+ offset: Duration;
1349
+ constructor(questionID: string, operator: ConditionOperatorType, operand?: string, surveyName?: string, offset?: string);
1350
+ evaluate(answers: Answers): boolean;
1351
+ getFulfillmentDate(params: GuardParameters): Date | null;
1252
1352
  }
1253
1353
  /**
1254
1354
  * Assumption: Date answers in the questionnaire are formatted like this: YYYY-MM-DD
1255
1355
  * For questionnaires returns the evaluation of <answer> <operator> <operand>.
1256
1356
  * For steps returns the <answer>+<offset> of the answer
1257
1357
  */
1258
- declare class DateCondition implements Guard {
1358
+ declare class AnswerDateGuard implements Guard {
1259
1359
  surveyName?: string;
1260
1360
  questionID: string;
1261
1361
  operand?: Date;
@@ -1263,56 +1363,46 @@ declare class DateCondition implements Guard {
1263
1363
  offset: Duration;
1264
1364
  constructor(questionID: string, operand: string, operator: ConditionOperatorType, surveyName?: string, offset?: string);
1265
1365
  evaluate(answers: Answers): boolean;
1266
- getFulfillmentDate(multiAnswers: MultiAnswers): Date | null;
1366
+ getFulfillmentDate(params: GuardParameters): Date | null;
1267
1367
  }
1268
1368
  /**
1269
1369
  * Wrapper around the constructor for the creation of the stepcondition version
1270
1370
  * Does not need operator and operand as it just returns a given date answer
1271
1371
  */
1272
- declare const newStepDateCondtion: (questionID: string, surveyName: string, offset?: string) => DateCondition;
1372
+ declare const newStepDateGuard: (questionID: string, surveyName: string, offset?: string) => AnswerDateGuard;
1273
1373
  /**
1274
1374
  * Assumption: Year answers in the questionnaire are formatted like this: YYYY
1275
1375
  */
1276
- declare class YearCondition implements Guard {
1376
+ declare class YearGuard implements Guard {
1277
1377
  questionID: string;
1278
1378
  operand?: number;
1279
1379
  operator: ConditionOperatorType;
1280
1380
  constructor(questionID: string, operand: string, operator: ConditionOperatorType);
1281
1381
  evaluate(answers: Answers): boolean;
1282
- getFulfillmentDate(_multiAnswers: MultiAnswers): Date | null;
1283
- }
1284
- declare class AnswerCodeCondition implements Guard {
1285
- surveyName?: string;
1286
- questionID: string;
1287
- operand?: string;
1288
- operator: ConditionOperatorType;
1289
- offset: Duration;
1290
- constructor(questionID: string, operand: string, operator: ConditionOperatorType, surveyName?: string, offset?: string);
1291
- evaluate(answers: Answers): boolean;
1292
- getFulfillmentDate(multiAnswers: MultiAnswers): Date | null;
1382
+ getFulfillmentDate(_params: GuardParameters): Date | null;
1293
1383
  }
1294
- declare class DecimalCondition implements Guard {
1384
+ declare class DecimalGuard implements Guard {
1295
1385
  questionID: string;
1296
1386
  operand?: number;
1297
1387
  operator: ConditionOperatorType;
1298
1388
  constructor(questionID: string, operand: fhir5.QuestionnaireItemEnableWhen['answerDecimal'], operator: ConditionOperatorType);
1299
1389
  evaluate(answers: Answers): boolean;
1300
- getFulfillmentDate(_multiAnswers: MultiAnswers): Date | null;
1390
+ getFulfillmentDate(_params: GuardParameters): Date | null;
1301
1391
  }
1302
- declare class ExistsCondition implements Guard {
1392
+ declare class ExistsGuard implements Guard {
1303
1393
  questionID: string;
1304
1394
  constructor(questionID: string);
1305
1395
  evaluate(answers: Answers): boolean;
1306
- getFulfillmentDate(_multiAnswers: MultiAnswers): Date | null;
1396
+ getFulfillmentDate(_params: GuardParameters): Date | null;
1307
1397
  }
1308
1398
  /**
1309
1399
  * Checks if a condition is true or false
1310
1400
  */
1311
- declare class BoolCondition implements Guard {
1401
+ declare class BoolGuard implements Guard {
1312
1402
  condition: boolean;
1313
1403
  constructor(condition: boolean);
1314
1404
  evaluate(_answers: Answers): boolean;
1315
- getFulfillmentDate(_multiAnswers: MultiAnswers): Date | null;
1405
+ getFulfillmentDate(_params: GuardParameters): Date | null;
1316
1406
  }
1317
1407
  /**
1318
1408
  * Combines a set of Guards with AND
@@ -1322,7 +1412,7 @@ declare class Conjunction implements Guard {
1322
1412
  sorting: ConditionSorting;
1323
1413
  constructor(conditions: Guard[], sorting?: ConditionSorting);
1324
1414
  evaluate(answers: Answers): boolean;
1325
- getFulfillmentDate(multiAnswers: MultiAnswers, consentTimes?: ConsentTimes): Date | null;
1415
+ getFulfillmentDate(params: GuardParameters): Date | null;
1326
1416
  }
1327
1417
  /**
1328
1418
  * Combines a set of Guards with OR
@@ -1332,7 +1422,7 @@ declare class Disjunction implements Guard {
1332
1422
  sorting: ConditionSorting;
1333
1423
  constructor(conditions: Guard[], sorting?: ConditionSorting);
1334
1424
  evaluate(answers: Answers): boolean;
1335
- getFulfillmentDate(multiAnswers: MultiAnswers, consentTimes?: ConsentTimes): Date | null;
1425
+ getFulfillmentDate(params: GuardParameters): Date | null;
1336
1426
  }
1337
1427
  /**
1338
1428
  * Adds an offset to getFulfillmentDate of the encapsuled item.
@@ -1343,42 +1433,57 @@ declare class Offset implements Guard {
1343
1433
  offset: Duration;
1344
1434
  constructor(condition: Guard, offset?: string);
1345
1435
  evaluate(answers: Answers): boolean;
1346
- getFulfillmentDate(multiAnswers: MultiAnswers, consentTimes?: ConsentTimes): Date | null;
1436
+ getFulfillmentDate(params: GuardParameters): Date | null;
1347
1437
  }
1348
- declare class ConsentCondition implements Guard {
1438
+ declare class ConsentGuard implements Guard {
1349
1439
  consentKey: string;
1350
1440
  offset: Duration;
1351
1441
  constructor(consentKey: string, offset?: string);
1352
1442
  evaluate(_answers: Answers): boolean;
1353
- getFulfillmentDate(_multiAnswers: MultiAnswers, consentTimes: ConsentTimes): Date | null;
1443
+ getFulfillmentDate(params: GuardParameters): Date | null;
1354
1444
  }
1355
1445
  /**
1356
1446
  * Checks if the survey was answered
1357
1447
  */
1358
- declare class SurveyCondition implements Guard {
1448
+ declare class SurveyGuard implements Guard {
1359
1449
  surveyName: string;
1360
1450
  offset: Duration;
1361
1451
  constructor(surveyName: string, offset?: string);
1362
1452
  evaluate(_answers: Answers): boolean;
1363
- getFulfillmentDate(multiAnswers: MultiAnswers): Date | null;
1453
+ getFulfillmentDate(params: GuardParameters): Date | null;
1364
1454
  }
1365
1455
  /**
1366
1456
  * Checks if a routine was recorded
1367
1457
  */
1368
- declare class RoutineCondition implements Guard {
1458
+ declare class RoutineGuard implements Guard {
1369
1459
  routineName: string;
1370
1460
  offset: Duration;
1371
1461
  constructor(routineName: string, offset?: string);
1372
1462
  evaluate(_answers: Answers): boolean;
1373
- getFulfillmentDate(_multiAnswers: MultiAnswers, _consentTimes: ConsentTimes, routineTimes: RoutineTimes): Date | null;
1463
+ getFulfillmentDate(params: GuardParameters): Date | null;
1464
+ }
1465
+ /**
1466
+ * Checks if a response of a certain name was received
1467
+ */
1468
+ declare class ResponseGuard implements Guard {
1469
+ responseName: string;
1470
+ offset: Duration;
1471
+ constructor(responseName: string, offset?: string);
1472
+ evaluate(_answers: Answers): boolean;
1473
+ getFulfillmentDate(params: GuardParameters): Date | null;
1474
+ }
1475
+ /**
1476
+ * Checks if a given date has passed
1477
+ */
1478
+ declare class DateGuard implements Guard {
1479
+ date: Date;
1480
+ offset: Duration;
1481
+ constructor(date: string, offset?: string);
1482
+ evaluate(_answers: Answers): boolean;
1483
+ getFulfillmentDate(_params: GuardParameters): Date | null;
1374
1484
  }
1375
1485
  declare const generateQuestionGuard: (enableWhen: fhir5.QuestionnaireItemEnableWhen[] | undefined, enableBehavior: fhir5.QuestionnaireItem["enableBehavior"]) => Guard | undefined;
1376
- declare const generateStepGuard: (cond: StepCondition) => {
1377
- guard: Guard;
1378
- surveyNames: string[];
1379
- routineNames: string[];
1380
- consentKeys: string[];
1381
- };
1486
+ declare const generateStepGuard: (cond: StepCondition) => GuardContext;
1382
1487
 
1383
1488
  declare const ULID_REGEX: RegExp;
1384
1489
  declare const UUID_REGEX: RegExp;
@@ -1414,4 +1519,4 @@ declare const API_TARGET_MAP: {
1414
1519
  };
1415
1520
  };
1416
1521
 
1417
- export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type Answer, AnswerCodeCondition, type Answers, AppIDNamingSystem, type AppleHealthSleepStates, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolCondition, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, ConsentCondition, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CryptoModule, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, DateCondition, DecimalCondition, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsCondition, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FrequencySubset, type FrequencyType, type Guard, IMUAnnotation, type InternalDeviceConfig, InternalSensorAnnotationTypes, KeyHandler, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, ObservationTypeSystem, Offset, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ReminderFrequencyType, type ReponseValue, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseMinimal, type RestorationSize, type Routine, RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderMaxLabelExtension, SliderMinLabelExtension, SliderStepSizeExtension, type StepCondition, type StringTemplater, StudyNameSystem, type Survey, SurveyCondition, type SurveyContent, type SurveyContentPath, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type TaskReminder, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearCondition, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isNotAfterEndDate, isNotBeforeStartDate, isScoreEligible, isYearString, newStepDateCondtion, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };
1522
+ export { ANDROID_SENSORS_CONSTANT_NAMES, type API, type APIConfig, type APIDeviceConfig, API_TARGET_MAP, APPLE_HEALTH_ACTIVE_ENERGY_ANNOTATION, APPLE_HEALTH_ANNOTATION_ITEM_ACTIVE_ENERGY, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_DURATION, APPLE_HEALTH_ANNOTATION_ITEM_SLEEP_STATE, APPLE_HEALTH_ANNOTATION_ITEM_STEP_COUNT, APPLE_HEALTH_ANNOTATION_ITEM_WALKING_RUNNING_DISTANCE, APPLE_HEALTH_SIGNAL_TYPE_ANNOTATIONS, APPLE_HEALTH_SLEEP_ANALYSIS_ANNOTATION, APPLE_HEALTH_SLEEP_STATE_MAP, APPLE_HEALTH_STEP_COUNT_ANNOTATION, APPLE_HEALTH_WALKING_RUNNING_DISTANCE_ANNOTATION, ASMSECGMeasurementAnnotation, ASMSSpO2MeasurementAnnotation, type AndCondition, type Answer, AnswerCodeGuard, AnswerDateGuard, type Answers, AppIDNamingSystem, type AppleHealthSleepStates, type BLEDeviceConfig, BLE_ASMS_ANNOTATION_ITEM_ECG, BLE_ASMS_ANNOTATION_ITEM_SPO2, BLE_CPMS_ANNOTATION_ITEM_ACTIVITY_TYPE, BLE_CPMS_ANNOTATION_ITEM_DAILY_CALORIES, BLE_CPMS_ANNOTATION_ITEM_DAILY_DISTANCE, BLE_CPMS_ANNOTATION_ITEM_DAILY_ELEVATION_GAIN, BLE_CPMS_ANNOTATION_ITEM_DAILY_FLOORS, BLE_CPMS_ANNOTATION_ITEM_DAILY_STEPS, BLE_PAMS_ANNOTATION_ITEM_ABSOLUTE_ELEVATION, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_AVERAGE_SPEED, BLE_PAMS_ANNOTATION_ITEM_BYTE, BLE_PAMS_ANNOTATION_ITEM_CALORIES_TOTAL, BLE_PAMS_ANNOTATION_ITEM_DISTANCE_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FLAGS_16, BLE_PAMS_ANNOTATION_ITEM_FLAGS_24, BLE_PAMS_ANNOTATION_ITEM_FLAGS_32, BLE_PAMS_ANNOTATION_ITEM_FLAGS_8, BLE_PAMS_ANNOTATION_ITEM_FLOORS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_FOUR_BYTES, BLE_PAMS_ANNOTATION_ITEM_HEADER, BLE_PAMS_ANNOTATION_ITEM_HEART_RATE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MAXIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_MINIMUM_SPEED, BLE_PAMS_ANNOTATION_ITEM_MOTION_CADENCE, BLE_PAMS_ANNOTATION_ITEM_NEGATIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_POSITIVE_ELEVATION_GAIN, BLE_PAMS_ANNOTATION_ITEM_RUNNING_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_SPEED, BLE_PAMS_ANNOTATION_ITEM_STEPS_TOTAL, BLE_PAMS_ANNOTATION_ITEM_THREE_BYTES, BLE_PAMS_ANNOTATION_ITEM_TWO_BYTES, BLE_PAMS_ANNOTATION_ITEM_VO2_MAX, BLE_PSMS_ANNOTATION_ITEM_HEART_RATE, BLE_PSMS_ANNOTATION_ITEM_IBI, BLE_PSMS_ANNOTATION_ITEM_PPG_GREEN, BLE_PSMS_ANNOTATION_ITEM_PPG_IR, BLE_PSMS_ANNOTATION_ITEM_PPG_RED, BLE_PSMS_ANNOTATION_ITEM_SKIN_TEMPERATURE, type BaseDeviceConfig, type BleDeviceMetaLabel, BoolGuard, CPMSHealthServicesActivityDetectionAnnotation, CPMSHealthServicesPassiveDataAnnotation, type CodeQuestionCondition, CommunicationTypeSystem, type ComparisonOperator, type ConditionOperatorType, type ConditionQuestionType, type ConditionSorting, type ConditionType, Conjunction, type Consent, type ConsentCondition, ConsentGuard, ConsentNameSystem, type ConsentPath, type ConsentTimes, ConsentVersionSystem, type ContentBlock, type Converter, type CryptoModule, CustomExtensionDate, CustomExtensionStudyName, CustomQuestionSystem, type DEVICE_ANNOTATION, type DEVICE_ANNOTATION_DATA_FORMAT, type DEVICE_ANNOTATION_DATA_TYPE, DEVICE_ANNOTATION_HEARTRATE, type DEVICE_ANNOTATION_ITEM, DEVICE_ANNOTATION_ITEM_ACCELERATION, DEVICE_ANNOTATION_ITEM_ANGULAR_SPEED, DEVICE_ANNOTATION_ITEM_BEACON_ID, DEVICE_ANNOTATION_ITEM_DISTANCE, DEVICE_ANNOTATION_ITEM_EGVS, DEVICE_ANNOTATION_ITEM_HEARTRATE, DEVICE_ANNOTATION_ITEM_MAGNETIC_FIELD, DEVICE_ANNOTATION_ITEM_REMOTE_DISTANCE, DEVICE_ANNOTATION_ITEM_RSSI, DEVICE_ANNOTATION_ITEM_UNIX_TIMESTAMP, DEVICE_ANNOTATION_TIMESTAMP_NOTE, DEVICE_ANNOTATION_TIMESTAMP_SIZE, DEVICE_ANNOTATION_TIMESTAMP_UNIT, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_DATA_TYPES_FLAG, DEVICE_D4L_COMPANION_ANNOTATION_ITEM_TIMESTAMP, DEVICE_DISPLAY_LABEL_CODING, type DEVICE_KEY, type DEVICE_KEY_API, type DEVICE_KEY_BLE, type DEVICE_KEY_INTERNAL, type DEVICE_KEY_SDK, DEVICE_KEY_TO_NAME, DEVICE_LABEL_CODING, type DEVICE_MOVELLA_PAYLOAD_MODES, DEVICE_OUTPUT_RATE_CODING, DEVICE_SENSOR_DELAY_CODING, type DEVICE_SIGNAL_TYPE, type DateBlurringFunction, type DateCondition, DateGuard, type DateQuestionCondition, DecimalGuard, type DeviceConfig, type DeviceName, Disjunction, type Display, type DisplayContent, type DisplayContentPath, type DisplayPath, type DisplayType, type DonationRecord, DonationSDK, type DonorIdentity, ERROR_CODES, ExistsGuard, type ExtendedProgramDevicesDataType, FITBIT_ANNOTATION_ITEM_BREATHING_RATE, FITBIT_ANNOTATION_ITEM_CALORIES, FITBIT_ANNOTATION_ITEM_HEART_RATE, FITBIT_ANNOTATION_ITEM_HEART_RATE_VARIABILITY, FITBIT_ANNOTATION_ITEM_SKIN_TEMPERATURE, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL, FITBIT_ANNOTATION_ITEM_SLEEP_LEVEL_DURATION, FITBIT_ANNOTATION_ITEM_SPO2, FITBIT_ANNOTATION_ITEM_STEPS, FITBIT_BREATHING_RATE_ANNOTATION, FITBIT_CALORIES_ANNOTATION, FITBIT_HEART_RATE_ANNOTATION, FITBIT_HEART_RATE_VARIABILITY_ANNOTATION, FITBIT_SIGNAL_TYPE_ANNOTATIONS, FITBIT_SKIN_TEMPERATURE_ANNOTATION, FITBIT_SLEEP_ANNOTATION, FITBIT_SLEEP_LEVEL_MAP, FITBIT_SPO2_ANNOTATION, FITBIT_STEPS_ANNOTATION, type FitbitSleepLevelTypes, type FrequencySubset, type FrequencyType, type Guard, type GuardContext, type GuardParameters, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_DURATION, HEALTH_CONNECT_ANNOTATION_ITEM_SLEEP_STAGE, HEALTH_CONNECT_ANNOTATION_ITEM_STEPS, HEALTH_CONNECT_SIGNAL_TYPE_ANNOTATIONS, HEALTH_CONNECT_SLEEP_ANNOTATION, HEALTH_CONNECT_SLEEP_STAGE_MAP, HEALTH_CONNECT_STEPS_ANNOTATION, type HealthConnectSleepStages, IMUAnnotation, type InternalDeviceConfig, InternalSensorAnnotationTypes, KeyHandler, MaxValueExtension, MeasurementTypeSystem, type Message, type MessagePath, type MessageRecipient, MinLengthExtension, MinValueExtension, type MultiAnswers, type Notification, type NotificationRecipient, ObservationTypeSystem, Offset, type OffsetCondition, type OrCondition, PAMSCardioVascularActivityAnnotation, PAMSGeneralActivityInstantaneousAnnotation, PAMSGeneralActivitySummaryAnnotation, PAMSStepCounterActivitySummaryAnnotation, PSMSHeartRateAnnotation, PSMSPPGGreenAnnotation, PSMSPPGIRAnnotation, PSMSPPGRedAnnotation, PSMSSkinTemperatureAnnotation, type PreviewTimeSeriesItem, type Program, type ProgramAnonymization, type ProgramClientTarget, type ProgramConsentStep, type ProgramContact, type ProgramContent, type ProgramContentPath, type ProgramDevice, type ProgramDeviceType, type ProgramDevicesDataType, type ProgramDevicesLabel, type ProgramDisplayStep, type ProgramDonation, type ProgramEligibilityStep, type ProgramFeatured, type ProgramRoutineStep, type ProgramSensorStep, type ProgramStep, type ProgramStepBase, type ProgramStepType, type ProgramSurveyStep, type ProgramTag, type ProgramTokenStep, type ProgramType, QItemControlDefinition, type QuestionInputType, type QuestionnaireResponse, type QuestionnaireScore, RECORDING_MODEL_CURRENT_VERSION, RECORDING_SIGNAL_MODEL_CURRENT_VERSION, type RecordState, type Recording, type RecordingSignal, type RecordingSignalItem, type RecordingSignalPreview, type RecordingSignalWithId, type RecordingTag, type RecursiveKeyOf, RelativeMaxValueExtension, RelativeMinValueExtension, type ReminderFrequencyType, type ReponseValue, type ResearchSubject, type ResearchSubjectProgress, type ResearchSubjectProgressState, type ResponseCondition, ResponseGuard, type ResponseMinimal, type ResponseTimes, type RestorationSize, type Routine, type RoutineCondition, type RoutineContent, type RoutineContentPath, type RoutineContentStep, RoutineGuard, RoutineIsPassiveExtension, type RoutineTimes, type SDKDeviceConfig, type SDKInterface, SIGNAL_DURATION_CODING, type ScoreThreshold, type SeenDisplay, type SeenMessage, SensorIdentifierSystem, SensorSettingsSystem, SensorTypeSystem, SignalIDSystem, type SkippedStep, SliderMaxLabelExtension, SliderMinLabelExtension, SliderStepSizeExtension, type StepCondition, type StepConditionBase, type StringTemplater, StudyNameSystem, type Survey, type SurveyCondition, type SurveyContent, type SurveyContentPath, SurveyGuard, type SurveyScoring, type Tag, type TagEffectiveType, type TaskFrequency, type TaskReminder, type Threshold, TimeFuncs, type TimeWindow, TokenNamingSystem, type TranslatedString, ULID_REGEX, ULIDtoUUID, UUID_REGEX, UUIDtoULID, WORDLIST_LANGUAGES, WearOS3AnnotationMap, WebConverter, type WordListLanguage, YearGuard, binaryStringToUint8Array, calculateQuestionnaireScoreRange, calculateScoreRangeForItem, capitalizeFirstLetter, dayFormat, extractWordsFromRecoveryPhrase, generateFHIRConsent, generateFHIRQuestionnaireScore, generateFHIRRecordingBundle, generateFHIRResearchSubject, generateFHIRResponse, generateFHIRSeenDisplay, generateFHIRSeenMessage, generateFHIRTag, generateQuestionGuard, generateStepGuard, generateUrn, get, getLanguageOfPassPhrase, getMovellaAnnotation, getText, getTimeFuncs, indexArrayBy, isBeforeStartDate, isNotAfterEndDate, isNotBeforeStartDate, isScoreEligible, isYearString, newStepDateGuard, overwriteTime, stringToDate, stringToYear, timezonelessDate, toDeviceConfig, toQuestionnaireResponseItem, uint8ArrayToBinaryString, utf8ToUint8Array, wordlists };