Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 96da97c

Browse files
author
SDKAuto
committed
CodeGen from PR 3638 in test-repo-billy/azure-rest-api-specs
Merge dc5dfd8ab0f5111b2aadff7ce9f944a1217bf3b2 into d54fc8f349c82c6854de316e16ecbed06791b162
1 parent bfe5035 commit 96da97c

File tree

107 files changed

+1242
-2780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1242
-2780
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/fabric/arm-fabric/CHANGELOG.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# Release History
2-
3-
## 1.0.1 (Unreleased)
4-
2+
3+
## 1.1.0-beta.1 (2025-03-17)
4+
Compared with version 1.0.0
5+
56
### Features Added
67

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
8+
- Added operation FabricCapacitiesOperations.listUsages
9+
- Added Interface ErrorAdditionalInfo
10+
- Added Interface ErrorDetail
11+
- Added Interface ErrorResponse
12+
- Added Interface FabricCapacitiesListUsagesOptionalParams
13+
- Added Interface Quota
14+
- Added Interface QuotaName
15+
- Added Enum KnownVersions
16+
17+
1318
## 1.0.0 (2024-10-14)
1419

1520
### Features Added

sdk/fabric/arm-fabric/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/fabric/arm-fabric/README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Fabric client.
44

5-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-fabric) |
6-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-fabric?view=azure-node-preview) |
5+
6+
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/fabric/arm-fabric)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-fabric)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-fabric?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/fabric/arm-fabric/samples)
713

814
## Getting started
915

@@ -40,7 +46,6 @@ npm install @azure/identity
4046
```
4147

4248
You will also need to **register a new AAD application and grant access to Azure Fabric** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
43-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4449

4550
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
4651

@@ -60,16 +65,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6065
import { InteractiveBrowserCredential } from "@azure/identity";
6166
import { FabricClient } from "@azure/arm-fabric";
6267

63-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6468
const credential = new InteractiveBrowserCredential({
6569
tenantId: "<YOUR_TENANT_ID>",
66-
clientId: "<YOUR_CLIENT_ID>",
67-
});
70+
clientId: "<YOUR_CLIENT_ID>"
71+
});
6872
const client = new FabricClient(credential, subscriptionId);
6973
```
7074

71-
### JavaScript Bundle
7275

76+
### JavaScript Bundle
7377
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7478

7579
## Key concepts
@@ -92,6 +96,10 @@ setLogLevel("info");
9296

9397
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).
9498

99+
## Next steps
100+
101+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/fabric/arm-fabric/samples) directory for detailed examples on how to use this library.
102+
95103
## Contributing
96104

97105
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.

sdk/fabric/arm-fabric/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
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+
]);

sdk/fabric/arm-fabric/package.json

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/arm-fabric",
3-
"version": "1.0.1",
3+
"version": "1.1.0-beta.1",
44
"description": "A generated SDK for FabricClient.",
55
"engines": {
66
"node": ">=18.0.0"
@@ -11,8 +11,7 @@
1111
"project": "./tsconfig.src.json",
1212
"exports": {
1313
"./package.json": "./package.json",
14-
".": "./src/index.ts",
15-
"./models": "./src/models/index.ts"
14+
".": "./src/index.ts"
1615
},
1716
"dialects": [
1817
"esm",
@@ -47,6 +46,7 @@
4746
"bugs": {
4847
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
4948
},
49+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/fabric/arm-fabric/README.md",
5050
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
5151
"//metadata": {
5252
"constantPaths": [
@@ -57,11 +57,11 @@
5757
]
5858
},
5959
"dependencies": {
60-
"@azure-rest/core-client": "^2.1.0",
60+
"@azure-rest/core-client": "^2.3.1",
6161
"@azure/abort-controller": "^2.1.2",
6262
"@azure/core-auth": "^1.9.0",
63-
"@azure/core-lro": "^3.0.0",
64-
"@azure/core-rest-pipeline": "^1.18.2",
63+
"@azure/core-lro": "^3.1.0",
64+
"@azure/core-rest-pipeline": "^1.19.1",
6565
"@azure/core-util": "^1.11.0",
6666
"@azure/logger": "^1.1.4",
6767
"tslib": "^2.8.1"
@@ -72,32 +72,31 @@
7272
"@azure-tools/test-utils-vitest": "^1.0.0",
7373
"@azure/dev-tool": "^1.0.0",
7474
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
75-
"@azure/identity": "^4.6.0",
75+
"@azure/identity": "^4.8.0",
7676
"@types/node": "^18.0.0",
77-
"@vitest/browser": "^3.0.3",
78-
"@vitest/coverage-istanbul": "^3.0.3",
77+
"@vitest/browser": "^3.0.6",
78+
"@vitest/coverage-istanbul": "^3.0.6",
7979
"dotenv": "^16.0.0",
8080
"eslint": "^9.9.0",
81-
"playwright": "^1.50.1",
82-
"prettier": "^3.2.5",
83-
"typescript": "~5.7.2",
84-
"vitest": "^3.0.3"
81+
"playwright": "^1.51.0",
82+
"typescript": "~5.6.2",
83+
"vitest": "^3.0.6"
8584
},
8685
"scripts": {
8786
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
88-
"build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f",
87+
"build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f",
8988
"build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
90-
"check-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}\" \"samples-dev/*.ts\"",
89+
"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}\" \"samples-dev/*.ts\"",
9190
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
9291
"execute:samples": "dev-tool samples run samples-dev",
9392
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
94-
"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}\"",
93+
"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}\" \"samples-dev/*.ts\"",
9594
"generate:client": "echo skipped",
9695
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
9796
"integration-test:browser": "echo skipped",
9897
"integration-test:node": "dev-tool run test:vitest --esm",
99-
"lint": "echo skipped",
100-
"lint:fix": "echo skipped",
98+
"lint": "eslint package.json api-extractor.json src test",
99+
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
101100
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
102101
"pack": "npm pack 2>&1",
103102
"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",
@@ -116,6 +115,8 @@
116115
"disableDocsMs": true,
117116
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-fabric?view=azure-node-preview"
118117
},
118+
"browser": "./dist/browser/index.js",
119+
"react-native": "./dist/react-native/index.js",
119120
"exports": {
120121
"./package.json": "./package.json",
121122
".": {
@@ -135,29 +136,9 @@
135136
"types": "./dist/commonjs/index.d.ts",
136137
"default": "./dist/commonjs/index.js"
137138
}
138-
},
139-
"./models": {
140-
"browser": {
141-
"types": "./dist/browser/models/index.d.ts",
142-
"default": "./dist/browser/models/index.js"
143-
},
144-
"react-native": {
145-
"types": "./dist/react-native/models/index.d.ts",
146-
"default": "./dist/react-native/models/index.js"
147-
},
148-
"import": {
149-
"types": "./dist/esm/models/index.d.ts",
150-
"default": "./dist/esm/models/index.js"
151-
},
152-
"require": {
153-
"types": "./dist/commonjs/models/index.d.ts",
154-
"default": "./dist/commonjs/models/index.js"
155-
}
156139
}
157140
},
158141
"main": "./dist/commonjs/index.js",
159142
"types": "./dist/commonjs/index.d.ts",
160-
"module": "./dist/esm/index.js",
161-
"browser": "./dist/browser/index.js",
162-
"react-native": "./dist/react-native/index.js"
143+
"module": "./dist/esm/index.js"
163144
}

0 commit comments

Comments
 (0)