import {RestRequestConfig} from '../../../../../Rest'; import { NotificationSettings, NotificationSettingsUpdateRequest, } from '../../../../../definitions'; import Parent from '..'; import RingCentral from '../../../../..'; class Index { rc: RingCentral; parent: Parent; constructor(parent: Parent) { this.parent = parent; this.rc = parent.rc; } path(): string { return `${this.parent.path()}/notification-settings`; } /** * Operation: Get Notification Settings * Rate Limit Group: Light * Http get /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings */ async get(config?: RestRequestConfig): Promise { const r = await this.rc.get( this.path(), undefined, config ); return r.data; } /** * Operation: Update Notification Settings * Rate Limit Group: Medium * Http put /restapi/v1.0/account/{accountId}/extension/{extensionId}/notification-settings */ async put( notificationSettingsUpdateRequest: NotificationSettingsUpdateRequest, config?: RestRequestConfig ): Promise { const r = await this.rc.put( this.path(), notificationSettingsUpdateRequest, undefined, config ); return r.data; } } export default Index;