@azure/app-configuration-importer-file-source 1.0.0-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@azure/app-configuration-importer-file-source",
3
+ "author": "Microsoft Corporation",
4
+ "description": "A client library for importing/exporting key-values between configuration file sources and Azure App Configuration service",
5
+ "version": "1.0.0-preview",
6
+ "sdk-type": "client",
7
+ "keywords": [
8
+ "node",
9
+ "azure",
10
+ "typescript"
11
+ ],
12
+ "license": "MIT",
13
+ "main": "./dist/index.js",
14
+ "module": "./dist-esm/src/index.js",
15
+ "types": "./types/azure-app-configuration-importer-file-source.d.ts",
16
+ "scripts": {
17
+ "build": "npm run clean && tsc -p . && rollup -c && api-extractor run --local",
18
+ "test": "cross-env TS_NODE_PROJECT=\"tsconfig.test.json\" mocha -r ts-node/register 'tests/**/*.ts'",
19
+ "check-format": "eslint src tests",
20
+ "format": "eslint src tests --fix",
21
+ "clean": "rimraf dist dist-* types *.tgz *.log"
22
+ },
23
+ "dependencies": {
24
+ "@azure/app-configuration": "1.5.0",
25
+ "@azure/app-configuration-importer": "^1.0.0-preview"
26
+ },
27
+ "devDependencies": {
28
+ "@microsoft/api-extractor": "^7.22.2",
29
+ "@rollup/plugin-commonjs": "^21.0.1",
30
+ "@rollup/plugin-inject": "^4.0.0",
31
+ "@rollup/plugin-json": "^4.0.0",
32
+ "@rollup/plugin-multi-entry": "^3.0.0",
33
+ "@rollup/plugin-node-resolve": "^8.0.0",
34
+ "@rollup/plugin-replace": "^2.2.0",
35
+ "@types/chai": "^4.1.6",
36
+ "@types/flat": "^5.0.2",
37
+ "@types/js-yaml": "^3.12.7",
38
+ "@types/lodash": "^4.14.189",
39
+ "@types/mocha": "^7.0.2",
40
+ "@types/node": "^12.0.0",
41
+ "@types/nodegit": "^0.22.5",
42
+ "@types/sinon": "^10.0.11",
43
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
44
+ "@typescript-eslint/parser": "^5.30.0",
45
+ "chai": "^4.2.0",
46
+ "colors": "1.4.0",
47
+ "cross-env": "^7.0.2",
48
+ "dotenv": "^8.2.0",
49
+ "eslint": "^8.18.0",
50
+ "esm": "^3.2.18",
51
+ "mocha": "^10.2.0",
52
+ "mocha-junit-reporter": "^2.0.0",
53
+ "rimraf": "^3.0.0",
54
+ "rollup": "^2.38.3",
55
+ "rollup-plugin-commonjs": "^10.1.0",
56
+ "rollup-plugin-dts": "^4.2.1",
57
+ "rollup-plugin-node-resolve": "^5.2.0",
58
+ "rollup-plugin-shim": "^1.0.0",
59
+ "rollup-plugin-sourcemaps": "^0.4.2",
60
+ "rollup-plugin-terser": "^5.1.1",
61
+ "rollup-plugin-typescript2": "^0.31.2",
62
+ "sinon": "^13.0.2",
63
+ "ts-node": "^10.0.0",
64
+ "typescript": "^4.6.3"
65
+ }
66
+ }
@@ -0,0 +1,45 @@
1
+ import { ConfigurationFormat } from '@azure/app-configuration-importer';
2
+ import { ConfigurationProfile } from '@azure/app-configuration-importer';
3
+ import { FeatureFlagValue } from '@azure/app-configuration';
4
+ import { SecretReferenceValue } from '@azure/app-configuration';
5
+ import { SetConfigurationSettingParam } from '@azure/app-configuration';
6
+ import { StringConfigurationSettingsSource } from '@azure/app-configuration-importer';
7
+
8
+ /**
9
+ * ConfigurationSettingsSource implementation of file configuration source
10
+ */
11
+ export declare class FileConfigurationSettingsSource extends StringConfigurationSettingsSource {
12
+ private filePath;
13
+ constructor(fileOptions: FileConfigurationSyncOptions);
14
+ /**
15
+ * @inheritdoc
16
+ */
17
+ GetConfigurationSettings(): Promise<SetConfigurationSettingParam<string | FeatureFlagValue | SecretReferenceValue>[]>;
18
+ }
19
+
20
+ export declare type FileConfigurationSyncOptions = SourceOptions & {
21
+ filePath: string;
22
+ };
23
+
24
+ /**
25
+ * Base options for configuration import
26
+ *
27
+ * @internal
28
+ */
29
+ declare type SourceOptions = {
30
+ format: ConfigurationFormat;
31
+ separator?: string;
32
+ depth?: number;
33
+ profile?: ConfigurationProfile;
34
+ label?: string;
35
+ skipFeatureFlags?: boolean;
36
+ prefix?: string;
37
+ contentType?: string;
38
+ tags?: Tags;
39
+ };
40
+
41
+ declare interface Tags {
42
+ [propertyName: string]: string;
43
+ }
44
+
45
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.47.0"
9
+ }
10
+ ]
11
+ }