import * as Utils from '@datocms/rest-client-utils'; import BaseResource from '../../BaseResource.js'; import type * as ApiTypes from '../ApiTypes.js'; import type * as RawApiTypes from '../RawApiTypes.js'; export default class SitePlan extends BaseResource { static readonly TYPE = 'site_plan' as const; /** * Retrieve enabled plans for account * * @throws {ApiError} * @throws {TimeoutError} */ list() { return this.rawList().then((body) => Utils.deserializeResponseBody( body, ), ); } /** * Retrieve enabled plans for account * * @throws {ApiError} * @throws {TimeoutError} */ rawList(): Promise { return this.client.request({ method: 'GET', url: '/site-plans', }); } }