import { Observable } from 'rxjs/Observable' ; import { ScenarioFieldConfigId , OrganizationId , ScenarioFieldConfigObjectType } from 'teambition-types' ; import { SDKFetch } from '../../SDKFetch' ; export function getOrgScenarioFieldConfigProjectsFetch ( this , scenarioFieldConfigId ) { return this . get ( `scenariofieldconfigs/${ scenarioFieldConfigId }/projects` ) ; } declare module '../../SDKFetch' { interface SDKFetch { getOrgScenarioFieldConfigProjects : typeof getOrgScenarioFieldConfigProjectsFetch ; } } SDKFetch . prototype . getOrgScenarioFieldConfigProjects = getOrgScenarioFieldConfigProjectsFetch ; export function verifyOrgScenarioFieldConfigNameFetch ( this , orgId , objectType , name ) { return this . get ( 'scenariofieldconfigs/name/verify' , { _organizationId : orgId , objectType , name } ) ; } declare module '../../SDKFetch' { interface SDKFetch { verifyOrgScenarioFieldConfigName : typeof verifyOrgScenarioFieldConfigNameFetch ; } } SDKFetch . prototype . verifyOrgScenarioFieldConfigName = verifyOrgScenarioFieldConfigNameFetch ;