feat: add STALE pre-defined reason (#898)
Adds STALE pre-defined reason, re-orders reasons in source to match spec. Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
This commit is contained in:
parent
ce9f65c6ec
commit
7f4f0808a6
|
|
@ -38,6 +38,16 @@ export type EvaluationDetails<T extends FlagValue> = {
|
|||
} & ResolutionDetails<T>;
|
||||
|
||||
export const StandardResolutionReasons = {
|
||||
/**
|
||||
* The resolved value is static (no dynamic evaluation).
|
||||
*/
|
||||
STATIC: 'STATIC',
|
||||
|
||||
/**
|
||||
* The resolved value was configured statically, or otherwise fell back to a pre-configured value.
|
||||
*/
|
||||
DEFAULT: 'DEFAULT',
|
||||
|
||||
/**
|
||||
* The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.
|
||||
*/
|
||||
|
|
@ -48,30 +58,25 @@ export const StandardResolutionReasons = {
|
|||
*/
|
||||
SPLIT: 'SPLIT',
|
||||
|
||||
/**
|
||||
* The resolved value was retrieved from cache.
|
||||
*/
|
||||
CACHED: 'CACHED',
|
||||
|
||||
/**
|
||||
* The resolved value was the result of the flag being disabled in the management system.
|
||||
*/
|
||||
DISABLED: 'DISABLED',
|
||||
|
||||
/**
|
||||
* The resolved value was configured statically, or otherwise fell back to a pre-configured value.
|
||||
*/
|
||||
DEFAULT: 'DEFAULT',
|
||||
|
||||
/**
|
||||
* The reason for the resolved value could not be determined.
|
||||
*/
|
||||
UNKNOWN: 'UNKNOWN',
|
||||
|
||||
/**
|
||||
* The resolved value is static (no dynamic evaluation).
|
||||
* The resolved value is non-authoritative or possibly out of date.
|
||||
*/
|
||||
STATIC: 'STATIC',
|
||||
|
||||
/**
|
||||
* The resolved value was retrieved from cache.
|
||||
*/
|
||||
CACHED: 'CACHED',
|
||||
STALE: 'STALE',
|
||||
|
||||
/**
|
||||
* The resolved value was the result of an error.
|
||||
|
|
|
|||
Loading…
Reference in New Issue