UNPKG

@c8y/client

Version:

Client application programming interface to access the Cumulocity IoT-Platform REST services.

35 lines 1.05 kB
import { IResult, IResultList, Service } from '../core'; import { IFeatureToggle } from './IFeatureToggle'; /** * This class allows reading a feature toggles for current tenant. */ export declare class FeatureService extends Service<IFeatureToggle> { protected baseUrl: string; protected listUrl: string; /** * Retrieve list of feature toggles with values for current tenant. * * **Example** * ```typescript * * (async () => { * const {data, res} = await featureService.list(); * })(); * ``` */ list(): Promise<IResultList<IFeatureToggle>>; /** * Retrieve a specific feature toggle with value for current tenant. * * **Example** * ```typescript * * (async () => { * const featureToggleKey = 'my-custom-feature'; * const {data, res} = await featureService.detail(featureToggleKey); * })(); * ``` */ detail(key: string): Promise<IResult<IFeatureToggle>>; } //# sourceMappingURL=FeatureService.d.ts.map