Optionalrealtime: RealtimeRetrieve a specific feature toggle with value for current tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.detail(featureToggleKey);
})();
Retrieve the feature toggle state for the provided key grouped by tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.detailByTenant(featureToggleKey);
})();
Retrieve list of feature toggles with values for current tenant.
Example
const filter = {
pageSize: 1000,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await featureService.list(filter);
})();
Removes the feature toggle override for current tenant.
Removal of the override will cause the tenant to use the feature toggle value based on the phase of the feature toggle.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.removeTenantOverride({
key: featureToggleKey,
active: true,
});
Removes the feature toggle override for the provided tenant.
Removal of the override will cause the tenant to use the feature toggle value based on the phase of the feature toggle.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.removeTenantOverrideByTenant({
key: featureToggleKey,
active: true,
}, 't123456');
Update a specific feature toggle value for current tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.updateFeature({
key: featureToggleKey,
active: true,
});
Update a specific feature toggle value for the provided tenant.
Example
(async () => {
const featureToggleKey = 'my-custom-feature';
const {data, res} = await featureService.updateFeatureByTenant({
key: featureToggleKey,
active: true,
}, 't123456');
This class allows reading a feature toggles for current tenant.