import { ScenarioFieldConfigId } from 'teambition-types' ; import { SDK } from '../../SDK' ; import { SDKFetch } from '../../SDKFetch' ; import { ScenarioFieldConfigSchema } from '../../schemas' ; export function updateScenarioFieldConfigFetch ( this , scenarioFieldConfigId , scenarioFieldConfig ) { const url = `scenariofieldconfigs/${ scenarioFieldConfigId }/info` ; const body = scenarioFieldConfig ; return this . put < typeof body > ( url , body ) ; } declare module '../../SDKFetch' { interface SDKFetch { updateScenarioFieldConfig : typeof updateScenarioFieldConfigFetch ; } } SDKFetch . prototype . updateScenarioFieldConfig = updateScenarioFieldConfigFetch ; export function updateScenarioFieldConfig ( this , scenarioFieldConfigId , scenarioFieldConfig ) { return this . lift ( { tableName : 'ScenarioFieldConfig' , method : 'update' , request : this . fetch . updateScenarioFieldConfig ( scenarioFieldConfigId , scenarioFieldConfig ) , clause : { _id : scenarioFieldConfigId } } ) ; } declare module '../../SDK' { interface SDK { updateScenarioFieldConfig : typeof updateScenarioFieldConfig ; } } SDK . prototype . updateScenarioFieldConfig = updateScenarioFieldConfig ;