import { Observable } from 'rxjs/Observable' ; import { SDKFetch } from '../../SDKFetch' ; import { GroupId } from 'teambition-types' ; export function subscribeGroupFetch ( this , groupId , consumerId ) { return this . post < null > ( `groups/${ groupId }/subscribe` , { consumerId } ) ; } export function unsubscribeGroupFetch ( this , groupId , consumerId ) { return this . delete < null > ( `groups/${ groupId }/subscribe` , { consumerId } ) ; } SDKFetch . prototype . subscribeGroup = subscribeGroupFetch ; SDKFetch . prototype . unsubscribeGroup = unsubscribeGroupFetch ; declare module '../../SDKFetch' { interface SDKFetch { subscribeGroup : typeof subscribeGroupFetch ; unsubscribeGroup : typeof unsubscribeGroupFetch ; } }