Skip to content

Commit

Permalink
feat(OptimizelyConfig): Add new fields to OptimizelyConfig (#698)
Browse files Browse the repository at this point in the history
## Summary
The following new public properties are added to OptimizelyConfig:
- sdkKey
- environmentKey
- attributes
- audiences
- events
- experimentRules and deliveryRules to OptimizelyFeature
- audiences to OptimizelyExperiment

## Test plan
All FSC tests OPTIMIZELY_CONFIG_V2 tests should pass.
FSC OptimizelyConfig [link](https://app.travis-ci.com/github/optimizely/fullstack-sdk-compatibility-suite/builds/235034135)
  • Loading branch information
yasirfolio3 committed Aug 13, 2021
1 parent a37cfb2 commit d32c80f
Show file tree
Hide file tree
Showing 6 changed files with 1,513 additions and 160 deletions.
@@ -1,5 +1,5 @@
/****************************************************************************
* Copyright 2018, 2020, Optimizely, Inc. and contributors *
* Copyright 2018, 2021, Optimizely, Inc. and contributors *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
Expand All @@ -18,7 +18,7 @@ const AND_CONDITION = 'and';
const OR_CONDITION = 'or';
const NOT_CONDITION = 'not';

const DEFAULT_OPERATOR_TYPES = [AND_CONDITION, OR_CONDITION, NOT_CONDITION];
export const DEFAULT_OPERATOR_TYPES = [AND_CONDITION, OR_CONDITION, NOT_CONDITION];
export type ConditionTree<Leaf> = Leaf | unknown[];

type LeafEvaluator<Leaf> = (leaf: Leaf) => boolean | null;
Expand Down

0 comments on commit d32c80f

Please sign in to comment.