Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
62 lines
1.6 KiB
JSON
62 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://flagd.dev/schema/v0/flags.json",
|
|
"flags": {
|
|
"new-checkout": {
|
|
"state": "ENABLED",
|
|
"variants": { "on": true, "off": false },
|
|
"defaultVariant": "off",
|
|
"targeting": {
|
|
"if": [
|
|
{ "or": [
|
|
{ "==": [ { "var": "tier" }, "premium" ] },
|
|
{ "ends_with": [ { "var": "email" }, "@ankurm.com" ] }
|
|
] },
|
|
"on",
|
|
null
|
|
]
|
|
}
|
|
},
|
|
"payment-flow-v2": {
|
|
"state": "ENABLED",
|
|
"variants": { "on": true, "off": false },
|
|
"defaultVariant": "off",
|
|
"targeting": {
|
|
"fractional": [
|
|
[ "on", 10 ],
|
|
[ "off", 90 ]
|
|
]
|
|
}
|
|
},
|
|
"discount-percent": {
|
|
"state": "ENABLED",
|
|
"variants": { "none": 0, "small": 5, "big": 20 },
|
|
"defaultVariant": "none",
|
|
"targeting": {
|
|
"if": [
|
|
{ "==": [ { "var": "tier" }, "premium" ] }, "big",
|
|
{ "==": [ { "var": "tier" }, "standard" ] }, "small",
|
|
null
|
|
]
|
|
}
|
|
},
|
|
"banner-text": {
|
|
"state": "ENABLED",
|
|
"variants": { "plain": "Free shipping over 999", "sale": "Year-end sale: extra 5% off" },
|
|
"defaultVariant": "plain"
|
|
},
|
|
"theme": {
|
|
"state": "ENABLED",
|
|
"variants": {
|
|
"calm": { "color": "teal", "density": "comfortable" },
|
|
"dense": { "color": "slate", "density": "compact" }
|
|
},
|
|
"defaultVariant": "calm"
|
|
},
|
|
"legacy-export": {
|
|
"state": "DISABLED",
|
|
"variants": { "on": true, "off": false },
|
|
"defaultVariant": "on"
|
|
}
|
|
}
|
|
}
|