feat(medusa): Add feature flags to store response (#1819)

**What**
- Add `feature_flags` string array to store response

**Why**
- to provide conditional ui in admin corresponding to enabled features

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Philip Korsholm
2022-07-11 11:42:58 +02:00
committed by GitHub
parent 02967f95b1
commit 3e197e3adf
7 changed files with 70 additions and 2 deletions

View File

@@ -121,6 +121,12 @@ Object {
"symbol_native": "$",
},
"default_currency_code": "usd",
"feature_flags": Array [
Object {
"key": "sales_channels",
"value": false,
},
],
"fulfillment_providers": Array [
Object {
"id": "test-ful",

View File

@@ -52,6 +52,12 @@ describe("/admin/store", () => {
code: "usd",
},
],
feature_flags: [
{
key: "sales_channels",
value: false,
},
],
default_currency_code: "usd",
created_at: expect.any(String),
updated_at: expect.any(String),