mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
87414c1c9c
* fix: add sidebar button * fix: set absolute positioned sidebar button * feat: test setup * fix: add tests for adding strategy * fix: add delete strategy test * feat: add workflow * feat: add vercel token * fix: update project id * fix: increase sleep * fix: sleep * fix: vercel * fix: typo * fix: vercel preview url action * fix: yml formatting * fix: steps * fix: format * fix: runs on * fix: team id * fix: teamid * fix: add workflow * fix: remove unused import * fix: add token * fix: add configuration * fix: set env variables * fix: use with * feat: main navigation routes * feat: mobile views * fix: change spec name * fix: update cypress project id * fix: add record key * fix: button positioning * feat: permissions * fix: custom strategy * fix: remove unused action yml * fix: update yarn lock * fix: keys * fix: remove videos and screenshots * fix: add cyrpess folders to gitignore * fix: env variable
35 lines
657 B
TypeScript
35 lines
657 B
TypeScript
export interface IFeatureStrategy {
|
|
id: string;
|
|
name: string;
|
|
constraints: IConstraint[];
|
|
parameters: IParameter;
|
|
}
|
|
|
|
export interface IStrategy {
|
|
name: string;
|
|
displayName: string;
|
|
editable: boolean;
|
|
deprecated: boolean;
|
|
description: string;
|
|
parameters: IParameter;
|
|
}
|
|
|
|
export interface IConstraint {
|
|
values: string[];
|
|
operator: string;
|
|
contextName: string;
|
|
}
|
|
|
|
export interface IParameter {
|
|
groupId?: string;
|
|
rollout?: number;
|
|
stickiness?: string;
|
|
[index: string]: any;
|
|
}
|
|
|
|
export interface IStrategyPayload {
|
|
name?: string;
|
|
constraints: IConstraint[];
|
|
parameters: IParameter;
|
|
}
|