Skip to content

Commit 97c9a1f

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge c5c31b0506df39bc9e78f53a9678914719c1964d into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 47033fd commit 97c9a1f

34 files changed

+4826
-5
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rush.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This is the main configuration file for Rush.
33
* For full documentation, please see https://rushjs.io
4-
*/ {
4+
*/{
55
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",
66
/**
77
* (Required) This specifies the version of the Rush engine to be used in this repo.
@@ -555,7 +555,9 @@
555555
"projectFolder": "common/tools/dev-tool",
556556
"versionPolicyName": "utility",
557557
// Add Identity to decoupledLocalDependencies so that dev-tool uses the package from npm, avoiding a cyclic dependency.
558-
"decoupledLocalDependencies": ["@azure/identity"]
558+
"decoupledLocalDependencies": [
559+
"@azure/identity"
560+
]
559561
},
560562
{
561563
"packageName": "@azure/eventgrid",
@@ -595,7 +597,9 @@
595597
{
596598
"packageName": "@azure/identity",
597599
"projectFolder": "sdk/identity/identity",
598-
"decoupledLocalDependencies": ["@azure/keyvault-keys"],
600+
"decoupledLocalDependencies": [
601+
"@azure/keyvault-keys"
602+
],
599603
"versionPolicyName": "client"
600604
},
601605
{
@@ -2367,6 +2371,11 @@
23672371
"packageName": "@azure/arm-carbonoptimization",
23682372
"projectFolder": "sdk/carbonoptimization/arm-carbonoptimization",
23692373
"versionPolicyName": "management"
2374+
},
2375+
{
2376+
"packageName": "@azure-rest/azure-appconfiguration",
2377+
"projectFolder": "sdk/appconfiguration/azure-appconfiguration-rest",
2378+
"versionPolicyName": "client"
23702379
}
23712380
]
2372-
}
2381+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release History
2+
3+
## 1.0.0 (2025-05-13)
4+
5+
### Features Added
6+
7+
The package of @azure-rest/azure-appconfiguration is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# AzureAppConfiguration REST client library for JavaScript
2+
3+
Azure App Configuration REST API
4+
5+
**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library**
6+
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/azure-appconfiguration-rest)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/azure-appconfiguration)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/azure-appconfiguration?view=azure-node-preview)
12+
13+
## Getting started
14+
15+
### Currently supported environments
16+
17+
- LTS versions of Node.js
18+
19+
### Prerequisites
20+
21+
- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package.
22+
23+
### Install the `@azure-rest/azure-appconfiguration` package
24+
25+
Install the AzureAppConfiguration REST client REST client library for JavaScript with `npm`:
26+
27+
```bash
28+
npm install @azure-rest/azure-appconfiguration
29+
```
30+
31+
### Create and authenticate a `AzureAppConfigurationClient`
32+
33+
To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token),
34+
provide an instance of the desired credential type obtained from the
35+
[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.
36+
37+
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
38+
39+
After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.
40+
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
41+
can be used to authenticate the client.
42+
43+
## Troubleshooting
44+
45+
### Logging
46+
47+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
48+
49+
```ts snippet:SetLogLevel
50+
import { setLogLevel } from "@azure/logger";
51+
52+
setLogLevel("info");
53+
```
54+
55+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"mainEntryPointFilePath": "dist/esm/index.d.ts",
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
11+
"dtsRollup": {
12+
"enabled": true,
13+
"untrimmedFilePath": "",
14+
"publicTrimmedFilePath": "dist/azure-appconfiguration.d.ts"
15+
},
16+
"messages": {
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
22+
"extractorMessageReporting": {
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
29+
}
30+
}
31+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"name": "@azure-rest/azure-appconfiguration",
3+
"version": "1.0.0",
4+
"description": "Azure App Configuration",
5+
"engines": {
6+
"node": ">=18.0.0"
7+
},
8+
"sideEffects": false,
9+
"autoPublish": false,
10+
"tshy": {
11+
"exports": {
12+
"./package.json": "./package.json",
13+
".": "./src/index.ts"
14+
},
15+
"dialects": [
16+
"esm",
17+
"commonjs"
18+
],
19+
"esmDialects": [
20+
"browser",
21+
"react-native"
22+
],
23+
"selfLink": false,
24+
"project": "./tsconfig.src.json"
25+
},
26+
"type": "module",
27+
"keywords": [
28+
"node",
29+
"azure",
30+
"cloud",
31+
"typescript",
32+
"browser",
33+
"isomorphic"
34+
],
35+
"author": "Microsoft Corporation",
36+
"license": "MIT",
37+
"files": [
38+
"dist/",
39+
"README.md",
40+
"LICENSE"
41+
],
42+
"sdk-type": "client",
43+
"repository": "github:Azure/azure-sdk-for-js",
44+
"bugs": {
45+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
46+
},
47+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/azure-appconfiguration-rest/README.md",
48+
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
49+
"//metadata": {
50+
"constantPaths": [
51+
{
52+
"path": "src/azureAppConfigurationClient.ts",
53+
"prefix": "userAgentInfo"
54+
}
55+
]
56+
},
57+
"dependencies": {
58+
"@azure-rest/core-client": "^2.3.1",
59+
"@azure/abort-controller": "^2.1.2",
60+
"@azure/core-auth": "^1.9.0",
61+
"@azure/core-lro": "^3.1.0",
62+
"@azure/core-rest-pipeline": "^1.20.0",
63+
"@azure/logger": "^1.2.0",
64+
"tslib": "^2.8.1"
65+
},
66+
"devDependencies": {
67+
"@azure-tools/test-credential": "^2.0.0",
68+
"@azure-tools/test-recorder": "^4.1.0",
69+
"@azure-tools/test-utils-vitest": "^1.0.0",
70+
"@azure/dev-tool": "^1.0.0",
71+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
72+
"@azure/identity": "^4.9.1",
73+
"@types/node": "^18.0.0",
74+
"@vitest/browser": "^3.0.9",
75+
"@vitest/coverage-istanbul": "^3.0.9",
76+
"dotenv": "^16.0.0",
77+
"eslint": "^9.9.0",
78+
"playwright": "^1.52.0",
79+
"typescript": "~5.8.2",
80+
"vitest": "^3.0.9"
81+
},
82+
"scripts": {
83+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
84+
"build:samples": "echo skipped",
85+
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
86+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
87+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
88+
"execute:samples": "echo skipped",
89+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
90+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
91+
"generate:client": "echo skipped",
92+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
93+
"integration-test:browser": "echo skipped",
94+
"integration-test:node": "echo skipped",
95+
"lint": "eslint package.json api-extractor.json src test",
96+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
97+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
98+
"pack": "npm pack 2>&1",
99+
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
100+
"test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
101+
"test:node": "dev-tool run test:vitest",
102+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
103+
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
104+
"unit-test:node": "dev-tool run test:vitest",
105+
"update-snippets": "dev-tool run update-snippets",
106+
"test:node:esm": "dev-tool run test:vitest --esm"
107+
},
108+
"browser": "./dist/browser/index.js",
109+
"react-native": "./dist/react-native/index.js",
110+
"exports": {
111+
"./package.json": "./package.json",
112+
".": {
113+
"browser": {
114+
"types": "./dist/browser/index.d.ts",
115+
"default": "./dist/browser/index.js"
116+
},
117+
"react-native": {
118+
"types": "./dist/react-native/index.d.ts",
119+
"default": "./dist/react-native/index.js"
120+
},
121+
"import": {
122+
"types": "./dist/esm/index.d.ts",
123+
"default": "./dist/esm/index.js"
124+
},
125+
"require": {
126+
"types": "./dist/commonjs/index.d.ts",
127+
"default": "./dist/commonjs/index.js"
128+
}
129+
}
130+
},
131+
"main": "./dist/commonjs/index.js",
132+
"types": "./dist/commonjs/index.d.ts"
133+
}

0 commit comments

Comments
 (0)