Skip to content

Commit 11f06f3

Browse files
committed
backoffice
1 parent ae33184 commit 11f06f3

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

tools/stern/src/Stern/API.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ sitemap' =
186186
:<|> Named @"put-route-consumable-notifications" (mkFeatureStatusPutRoute @ConsumableNotificationsConfig)
187187
:<|> Named @"get-route-chat-bubbles-config" (mkFeatureGetRoute @ChatBubblesConfig)
188188
:<|> Named @"put-route-chat-bubbles-config" (mkFeatureStatusPutRoute @ChatBubblesConfig)
189+
:<|> Named @"get-route-apps-config" (mkFeatureGetRoute @AppsConfig)
190+
:<|> Named @"put-route-apps-config" (mkFeatureStatusPutRoute @AppsConfig)
189191
:<|> Named @"get-team-invoice" getTeamInvoice
190192
:<|> Named @"get-team-billing-info" getTeamBillingInfo
191193
:<|> Named @"put-team-billing-info" updateTeamBillingInfo
@@ -219,6 +221,7 @@ sitemap' =
219221
:<|> Named @"lock-unlock-route-cells-config" (mkFeatureLockUnlockRoute @CellsConfig)
220222
:<|> Named @"lock-unlock-route-consumable-notifications-config" (mkFeatureLockUnlockRoute @ConsumableNotificationsConfig)
221223
:<|> Named @"lock-unlock-route-chat-bubbles-config" (mkFeatureLockUnlockRoute @ChatBubblesConfig)
224+
:<|> Named @"lock-unlock-route-apps-config" (mkFeatureLockUnlockRoute @AppsConfig)
222225

223226
sitemapInternal :: Servant.Server SternAPIInternal
224227
sitemapInternal =

tools/stern/src/Stern/API/Routes.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ type SternAPI =
321321
:<|> Named "put-route-consumable-notifications" (MkFeatureStatusPutRoute ConsumableNotificationsConfig)
322322
:<|> Named "get-route-chat-bubbles-config" (MkFeatureGetRoute ChatBubblesConfig)
323323
:<|> Named "put-route-chat-bubbles-config" (MkFeatureStatusPutRoute ChatBubblesConfig)
324+
:<|> Named "get-route-apps-config" (MkFeatureGetRoute AppsConfig)
325+
:<|> Named "put-route-apps-config" (MkFeatureStatusPutRoute AppsConfig)
324326
:<|> Named
325327
"get-team-invoice"
326328
( Summary "Get a specific invoice by Number"
@@ -471,6 +473,7 @@ type SternAPI =
471473
:<|> Named "lock-unlock-route-cells-config" (MkFeatureLockUnlockRoute CellsConfig)
472474
:<|> Named "lock-unlock-route-consumable-notifications-config" (MkFeatureLockUnlockRoute ConsumableNotificationsConfig)
473475
:<|> Named "lock-unlock-route-chat-bubbles-config" (MkFeatureLockUnlockRoute ChatBubblesConfig)
476+
:<|> Named "lock-unlock-route-apps-config" (MkFeatureLockUnlockRoute AppsConfig)
474477

475478
-------------------------------------------------------------------------------
476479
-- Swagger

tools/stern/test/integration/API.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ tests s =
118118
test s "PUT /teams/:tid/features/cells{,'?lockOrUnlock'}" $ testLockStatus @CellsConfig,
119119
test s "PUT /teams/:tid/features/consumableNotifications{,'?lockOrUnlock'}" $ testLockStatus @ConsumableNotificationsConfig,
120120
test s "PUT /teams/:tid/features/chatBubbles{,'?lockOrUnlock'}" $ testLockStatus @ChatBubblesConfig,
121-
test s "/teams/:tid/features/chatBubbles" $ testFeatureStatus @ChatBubblesConfig
121+
test s "/teams/:tid/features/chatBubbles" $ testFeatureStatus @ChatBubblesConfig,
122+
test s "PUT /teams/:tid/features/apps{,'?lockOrUnlock'}" $ testLockStatus @AppsConfig,
123+
test s "/teams/:tid/features/apps" $ testFeatureStatus @AppsConfig
122124
-- The following endpoints can not be tested here because they require ibis:
123125
-- - `GET /teams/:tid/billing`
124126
-- - `GET /teams/:tid/invoice/:inr`

0 commit comments

Comments
 (0)