Skip to content

Commit 11f4bf9

Browse files
wip
1 parent c79f4bd commit 11f4bf9

File tree

4 files changed

+48
-47
lines changed

4 files changed

+48
-47
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AzureAppConfiguration, ConfigurationObjectConstructionOptions } from ".
77
import { AzureAppConfigurationOptions } from "./AzureAppConfigurationOptions.js";
88
import { IKeyValueAdapter } from "./IKeyValueAdapter.js";
99
import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter.js";
10-
import { DEFAULT_REFRESH_INTERVAL_IN_MS, MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions.js";
10+
import { DEFAULT_REFRESH_INTERVAL_IN_MS, MIN_REFRESH_INTERVAL_IN_MS } from "./refresh/refreshOptions.js";
1111
import { Disposable } from "./common/disposable.js";
1212
import { base64Helper, jsonSorter } from "./common/utils.js";
1313
import {

src/AzureAppConfigurationOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { AppConfigurationClientOptions } from "@azure/app-configuration";
55
import { KeyVaultOptions } from "./keyvault/KeyVaultOptions.js";
6-
import { RefreshOptions } from "./RefreshOptions.js";
6+
import { RefreshOptions } from "./refresh/refreshOptions.js";
77
import { SettingSelector } from "./types.js";
88
import { FeatureFlagOptions } from "./featureManagement/FeatureFlagOptions.js";
99

src/featureManagement/FeatureFlagOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { FeatureFlagRefreshOptions } from "../RefreshOptions.js";
4+
import { FeatureFlagRefreshOptions } from "../refresh/refreshOptions.js";
55
import { SettingSelector } from "../types.js";
66

77
/**
Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
1-
// Copyright (c) Microsoft Corporation.
2-
// Licensed under the MIT license.
3-
4-
import { WatchedSetting } from "./WatchedSetting.js";
5-
6-
export const DEFAULT_REFRESH_INTERVAL_IN_MS = 30 * 1000;
7-
export const MIN_REFRESH_INTERVAL_IN_MS = 1 * 1000;
8-
9-
export interface RefreshOptions {
10-
/**
11-
* Specifies whether the provider should automatically refresh when the configuration is changed.
12-
*/
13-
enabled: boolean;
14-
15-
/**
16-
* Specifies the minimum time that must elapse before checking the server for any new changes.
17-
* Default value is 30 seconds. Must be greater than 1 second.
18-
* Any refresh operation triggered will not update the value for a key until after the interval.
19-
*/
20-
refreshIntervalInMs?: number;
21-
22-
/**
23-
* One or more configuration settings to be watched for changes on the server.
24-
* Any modifications to watched settings will refresh all settings loaded by the configuration provider when refresh() is called.
25-
*
26-
* @remarks
27-
* If no watched setting is specified, all configuration settings will be watched.
28-
*/
29-
watchedSettings?: WatchedSetting[];
30-
}
31-
32-
export interface FeatureFlagRefreshOptions {
33-
/**
34-
* Specifies whether the provider should automatically refresh all feature flags if any feature flag changes.
35-
*/
36-
enabled: boolean;
37-
38-
/**
39-
* Specifies the minimum time that must elapse before checking the server for any new changes.
40-
* Default value is 30 seconds. Must be greater than 1 second.
41-
* Any refresh operation triggered will not update the value for a key until after the interval.
42-
*/
43-
refreshIntervalInMs?: number;
44-
}
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
4+
import { WatchedSetting } from "../WatchedSetting.js";
5+
6+
export const DEFAULT_REFRESH_INTERVAL_IN_MS = 30 * 1000;
7+
export const MIN_REFRESH_INTERVAL_IN_MS = 1 * 1000;
8+
9+
export interface RefreshOptions {
10+
/**
11+
* Specifies whether the provider should automatically refresh when the configuration is changed.
12+
*/
13+
enabled: boolean;
14+
15+
/**
16+
* Specifies the minimum time that must elapse before checking the server for any new changes.
17+
* Default value is 30 seconds. Must be greater than 1 second.
18+
* Any refresh operation triggered will not update the value for a key until after the interval.
19+
*/
20+
refreshIntervalInMs?: number;
21+
22+
/**
23+
* One or more configuration settings to be watched for changes on the server.
24+
* Any modifications to watched settings will refresh all settings loaded by the configuration provider when refresh() is called.
25+
*
26+
* @remarks
27+
* The watched settings will not be loaded to the configuration provider unless being specified in the @see AzureAppConfigurationOptions.selectors
28+
* If no watched setting is specified, all configuration settings will be watched.
29+
*/
30+
watchedSettings?: WatchedSetting[];
31+
}
32+
33+
export interface FeatureFlagRefreshOptions {
34+
/**
35+
* Specifies whether the provider should automatically refresh all feature flags if any feature flag changes.
36+
*/
37+
enabled: boolean;
38+
39+
/**
40+
* Specifies the minimum time that must elapse before checking the server for any new changes.
41+
* Default value is 30 seconds. Must be greater than 1 second.
42+
* Any refresh operation triggered will not update the value for a key until after the interval.
43+
*/
44+
refreshIntervalInMs?: number;
45+
}

0 commit comments

Comments
 (0)