|
1049 | 1049 | }, |
1050 | 1050 | "value": { |
1051 | 1051 | "type": "string" |
| 1052 | + }, |
| 1053 | + "cohortValues": { |
| 1054 | + "type": "object", |
| 1055 | + "patternProperties": { |
| 1056 | + "^(.*)$": { |
| 1057 | + "type": "string" |
| 1058 | + } |
| 1059 | + }, |
| 1060 | + "title": "CohortValues" |
1052 | 1061 | } |
1053 | 1062 | }, |
1054 | 1063 | "required": ["id", "type", "scope", "definition", "value"] |
|
2197 | 2206 | }, |
2198 | 2207 | "timeoutSeconds": { |
2199 | 2208 | "type": "number" |
| 2209 | + }, |
| 2210 | + "autoTransferConfig": { |
| 2211 | + "anyOf": [ |
| 2212 | + { |
| 2213 | + "anyOf": [ |
| 2214 | + { |
| 2215 | + "additionalProperties": false, |
| 2216 | + "type": "object", |
| 2217 | + "properties": { |
| 2218 | + "type": { |
| 2219 | + "const": "default", |
| 2220 | + "type": "string" |
| 2221 | + }, |
| 2222 | + "autoCohortParticipantConfig": { |
| 2223 | + "$ref": "#/$defs/CohortParticipantConfig" |
| 2224 | + }, |
| 2225 | + "minParticipants": { |
| 2226 | + "minimum": 1, |
| 2227 | + "type": "number" |
| 2228 | + }, |
| 2229 | + "maxParticipants": { |
| 2230 | + "minimum": 1, |
| 2231 | + "type": "number" |
| 2232 | + } |
| 2233 | + }, |
| 2234 | + "required": [ |
| 2235 | + "type", |
| 2236 | + "autoCohortParticipantConfig", |
| 2237 | + "minParticipants", |
| 2238 | + "maxParticipants" |
| 2239 | + ], |
| 2240 | + "title": "DefaultStageConfig" |
| 2241 | + }, |
| 2242 | + { |
| 2243 | + "$ref": "#/$defs/SurveyStageConfig" |
| 2244 | + }, |
| 2245 | + { |
| 2246 | + "additionalProperties": false, |
| 2247 | + "type": "object", |
| 2248 | + "properties": { |
| 2249 | + "type": { |
| 2250 | + "const": "condition", |
| 2251 | + "type": "string" |
| 2252 | + }, |
| 2253 | + "autoCohortParticipantConfig": { |
| 2254 | + "$ref": "#/$defs/CohortParticipantConfig" |
| 2255 | + }, |
| 2256 | + "transferGroups": { |
| 2257 | + "minItems": 1, |
| 2258 | + "type": "array", |
| 2259 | + "items": { |
| 2260 | + "additionalProperties": false, |
| 2261 | + "type": "object", |
| 2262 | + "properties": { |
| 2263 | + "id": { |
| 2264 | + "minLength": 1, |
| 2265 | + "type": "string" |
| 2266 | + }, |
| 2267 | + "name": { |
| 2268 | + "minLength": 1, |
| 2269 | + "type": "string" |
| 2270 | + }, |
| 2271 | + "composition": { |
| 2272 | + "minItems": 1, |
| 2273 | + "type": "array", |
| 2274 | + "items": { |
| 2275 | + "additionalProperties": false, |
| 2276 | + "type": "object", |
| 2277 | + "properties": { |
| 2278 | + "id": { |
| 2279 | + "minLength": 1, |
| 2280 | + "type": "string" |
| 2281 | + }, |
| 2282 | + "condition": { |
| 2283 | + "title": "Condition", |
| 2284 | + "anyOf": [ |
| 2285 | + { |
| 2286 | + "$ref": "#/$defs/ComparisonCondition" |
| 2287 | + }, |
| 2288 | + { |
| 2289 | + "$ref": "#/$defs/ConditionGroup" |
| 2290 | + } |
| 2291 | + ] |
| 2292 | + }, |
| 2293 | + "minCount": { |
| 2294 | + "minimum": 1, |
| 2295 | + "type": "number" |
| 2296 | + }, |
| 2297 | + "maxCount": { |
| 2298 | + "minimum": 1, |
| 2299 | + "type": "number" |
| 2300 | + } |
| 2301 | + }, |
| 2302 | + "required": [ |
| 2303 | + "id", |
| 2304 | + "condition", |
| 2305 | + "minCount", |
| 2306 | + "maxCount" |
| 2307 | + ], |
| 2308 | + "title": "Composition" |
| 2309 | + } |
| 2310 | + }, |
| 2311 | + "targetCohortAlias": { |
| 2312 | + "minLength": 1, |
| 2313 | + "type": "string" |
| 2314 | + } |
| 2315 | + }, |
| 2316 | + "required": ["id", "name", "composition"], |
| 2317 | + "title": "TransferGroup" |
| 2318 | + } |
| 2319 | + } |
| 2320 | + }, |
| 2321 | + "required": [ |
| 2322 | + "type", |
| 2323 | + "autoCohortParticipantConfig", |
| 2324 | + "transferGroups" |
| 2325 | + ], |
| 2326 | + "title": "ConditionStageConfig" |
| 2327 | + } |
| 2328 | + ] |
| 2329 | + }, |
| 2330 | + { |
| 2331 | + "type": "null" |
| 2332 | + } |
| 2333 | + ] |
2200 | 2334 | } |
2201 | 2335 | }, |
2202 | 2336 | "required": [ |
|
2206 | 2340 | "descriptions", |
2207 | 2341 | "progress", |
2208 | 2342 | "enableTimeout", |
2209 | | - "timeoutSeconds" |
| 2343 | + "timeoutSeconds", |
| 2344 | + "autoTransferConfig" |
2210 | 2345 | ], |
2211 | 2346 | "title": "TransferStageConfig" |
2212 | 2347 | } |
|
2427 | 2562 | } |
2428 | 2563 | }, |
2429 | 2564 | "title": "VariableMap" |
| 2565 | + }, |
| 2566 | + "cohortDefinitions": { |
| 2567 | + "type": "array", |
| 2568 | + "items": { |
| 2569 | + "additionalProperties": false, |
| 2570 | + "type": "object", |
| 2571 | + "properties": { |
| 2572 | + "id": { |
| 2573 | + "minLength": 1, |
| 2574 | + "type": "string" |
| 2575 | + }, |
| 2576 | + "alias": { |
| 2577 | + "minLength": 1, |
| 2578 | + "type": "string" |
| 2579 | + }, |
| 2580 | + "name": { |
| 2581 | + "minLength": 1, |
| 2582 | + "type": "string" |
| 2583 | + }, |
| 2584 | + "description": { |
| 2585 | + "type": "string" |
| 2586 | + }, |
| 2587 | + "generatedCohortId": { |
| 2588 | + "type": "string" |
| 2589 | + } |
| 2590 | + }, |
| 2591 | + "required": ["id", "alias", "name"], |
| 2592 | + "title": "CohortDefinition" |
| 2593 | + } |
2430 | 2594 | } |
2431 | 2595 | }, |
2432 | 2596 | "required": [ |
|
2554 | 2718 | "id": { |
2555 | 2719 | "type": "string" |
2556 | 2720 | }, |
| 2721 | + "alias": { |
| 2722 | + "type": "string" |
| 2723 | + }, |
2557 | 2724 | "metadata": { |
2558 | 2725 | "type": "object", |
2559 | 2726 | "properties": { |
|
0 commit comments