UNPKG

918 BTypeScriptView Raw
1import { Group } from '../types';
2import { FeaturesAction } from '../../client';
3/**
4 * Action Types for the Features group
5 * @public
6 */
7export declare enum ActionType {
8 UPDATE = "APP::FEATURES::UPDATE",
9 REQUEST = "APP::FEATURES::REQUEST",
10 REQUEST_UPDATE = "APP::FEATURES::REQUEST::UPDATE"
11}
12/**
13 * Actions available to the Features group
14 * @public
15 */
16export declare enum Action {
17 UPDATE = "UPDATE",
18 REQUEST = "REQUEST",
19 REQUEST_UPDATE = "REQUEST::UPDATE"
20}
21/**
22 * Default options for Feature payloads
23 * @public
24 */
25export interface Options {
26 readonly id?: string;
27}
28/**
29 * Payload options for APP::FEATURES::REQUEST
30 * @public
31 */
32export interface RequestOptions extends Options {
33 feature: Group;
34 action?: String;
35}
36/**
37 * Payload options for APP::FEATURES::REQUEST::UPDATE
38 * @public
39 */
40export interface RequestUpdateOptions extends Options {
41 feature: FeaturesAction;
42}