UNPKG

@datocms/cma-client

Version:
31 lines 983 B
import * as Utils from '@datocms/rest-client-utils'; import BaseResource from '../../BaseResource'; export default class SubscriptionFeature extends BaseResource { /** * Get all the subscription features * * Read more: https://www.datocms.com/docs/content-management-api/resources/subscription-feature/instances * * @throws {ApiError} * @throws {TimeoutError} */ list() { return this.rawList().then((body) => Utils.deserializeResponseBody(body)); } /** * Get all the subscription features * * Read more: https://www.datocms.com/docs/content-management-api/resources/subscription-feature/instances * * @throws {ApiError} * @throws {TimeoutError} */ rawList() { return this.client.request({ method: 'GET', url: '/subscription-features', }); } } SubscriptionFeature.TYPE = 'subscription_feature'; //# sourceMappingURL=SubscriptionFeature.js.map