@d4l/collect-lib 1.34.1 → 1.35.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 +5 -5
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -342,11 +342,11 @@ Update the types by running `yarn run readme:update`.
|
|
|
342
342
|
|
|
343
343
|
#### SurveyMultiplex
|
|
344
344
|
|
|
345
|
-
| Properties
|
|
346
|
-
|
|
|
347
|
-
|
|
|
348
|
-
|
|
|
349
|
-
| placeholder
|
|
345
|
+
| Properties | Required | Type | Description |
|
|
346
|
+
| ----------- | -------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
347
|
+
| source | true | object | Defines the source of the multiplexing. The keys of the object are the questionnaire names and the values are the linkIds of the questions whose answers will be used for multiplexing. The answers to these questions will be used to fill the placeholder. |
|
|
348
|
+
| lookup | true | `all` or `latest` | Defines how the answers of the source questions will be looked up. `latest` means only the latest iteration of the source questionnaires will be used, `all` means all iterations of the source questionnaires will be used. |
|
|
349
|
+
| placeholder | true | string | Placeholder text to be replaced with answers from the specified linkIds |
|
|
350
350
|
|
|
351
351
|
### Routine
|
|
352
352
|
|
package/dist/index.d.mts
CHANGED
|
@@ -80,8 +80,10 @@ type SurveyContent = {
|
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
type SurveyMultiplex = {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
source: {
|
|
84
|
+
[key: string]: string[];
|
|
85
|
+
};
|
|
86
|
+
lookup: 'all' | 'latest';
|
|
85
87
|
placeholder: string;
|
|
86
88
|
};
|
|
87
89
|
type SurveyContentPath = RecursiveKeyOf<SurveyContent>;
|
package/dist/index.d.ts
CHANGED
|
@@ -80,8 +80,10 @@ type SurveyContent = {
|
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
type SurveyMultiplex = {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
source: {
|
|
84
|
+
[key: string]: string[];
|
|
85
|
+
};
|
|
86
|
+
lookup: 'all' | 'latest';
|
|
85
87
|
placeholder: string;
|
|
86
88
|
};
|
|
87
89
|
type SurveyContentPath = RecursiveKeyOf<SurveyContent>;
|