Disagg IML: Handle Service Call
Requires #121 (closed)
Update service call effect to call the IML or return period disagg service based on the DisaggTarget:
- Add switch statement on
values.disaggTargetto construct the url that will be called - Add default case that throws an error with message
Disagg target [${disaggTarget}] not supported - Updated control validator to only validate IML if
DisaggTargetisIMLand only validate return period ifDisaggTargetisRETURN_PERIOD
IML service call example:
disagg/-80/40/760?PGA=0.125&out=GMM&out=SOURCE&out=DISAGG_DATA
switch (values.disaggTarget) {
case DisaggTarget.IML: {
url = '';
break;
}
case DisaggTarget.RETURN_PERIOD: {
url = '';
break;
}
default:
throw new Error()
}
See main issue for bigger picture: #93 (closed)
Edited by Clayton, Brandon Scott