Skip to content

Commit abd3541

Browse files
author
SDKAuto
committed
CodeGen from PR 29440 in Azure/azure-rest-api-specs
Merge 495ee87e131eed7c14f3033a79d38449b223307a into 7bf13ef1c776f6d973b9645906281d0ec4660fc8
1 parent e798d47 commit abd3541

27 files changed

Lines changed: 2076 additions & 1357 deletions

common/config/rush/pnpm-lock.yaml

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

sdk/purview/purview-datamap-rest/.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
77
"@azure/azure-sdk/ts-package-json-types": "warn",
88
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9-
"tsdoc/syntax": "warn"
9+
"tsdoc/syntax": "warn",
10+
"@azure/azure-sdk/ts-package-json-module": "off",
11+
"@azure/azure-sdk/ts-package-json-files-required": "off",
12+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off"
1013
}
1114
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/browser"
11+
}
12+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../src",
5+
"module": "nodenext",
6+
"moduleResolution": "nodenext"
7+
}
8+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.cts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [
9+
"../src/**/*.mts"
10+
],
11+
"compilerOptions": {
12+
"outDir": "../.tshy-build/commonjs"
13+
}
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/esm"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/react-native"
11+
}
12+
}

sdk/purview/purview-datamap-rest/README.md

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Azure PurviewDataMap REST client library for JavaScript
22

3-
Microsoft Purview Data Map provides the foundation for data discovery and data governance. Microsoft Purview Data Map is a cloud native PaaS service that captures metadata about enterprise data present in analytics and operation systems on-premises and cloud. Azure PurviewDataMap client provides a set of APIs in Purview Data Map Data Plane. For a full list of APIs, please refer to [Data Map API](https://learn.microsoft.com/rest/api/purview/datamapdataplane/operation-groups?view=rest-purview-datamapdataplane-2023-09-01).
3+
Purview Data Map Service is a fully managed cloud service whose users can
4+
discover the data sources they need and understand the data sources they find.
5+
At the same time, Data Map helps organizations get more value from their
6+
existing investments. This spec defines REST API of Purview Data Map Service.
47

58
**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**
69

@@ -44,38 +47,6 @@ can be used to authenticate the client.
4447
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
4548
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
4649

47-
## Examples
48-
49-
The following sections provide several code snippets covering some of the most common Purview DataMap scenarios, including:
50-
51-
- [Get All Type Definitions](#get-all-type-definitions)
52-
53-
### Get All Type Definitions
54-
55-
```typescript
56-
import PurviewDataMap from "@azure-rest/purview-datamap";
57-
import { DefaultAzureCredential } from "@azure/identity";
58-
import dotenv from "dotenv";
59-
import { isUnexpected } from "@azure-rest/purview-datamap";
60-
61-
dotenv.config();
62-
63-
const endpoint = process.env["ENDPOINT"] || "";
64-
65-
async function main() {
66-
console.log("== List entity typedefs sample ==");
67-
const client = PurviewDataMap(endpoint, new DefaultAzureCredential());
68-
69-
const result = await client.path("/atlas/v2/types/typedefs").get();
70-
71-
if (isUnexpected(result)) {
72-
throw result;
73-
}
74-
}
75-
76-
main().catch(console.error);
77-
```
78-
7950
## Troubleshooting
8051

8152
### Logging
Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "./types/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
3+
"mainEntryPointFilePath": "./dist/esm/index.d.ts",
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/purview-datamap.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}
Lines changed: 105 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
11
{
22
"name": "@azure-rest/purview-datamap",
3-
"sdk-type": "client",
4-
"author": "Microsoft Corporation",
5-
"version": "1.0.0-beta.2",
3+
"version": "1.0.0-beta.1",
64
"description": "Purview DataMap Service\"",
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+
},
25+
"type": "module",
726
"keywords": [
827
"node",
928
"azure",
@@ -12,103 +31,107 @@
1231
"browser",
1332
"isomorphic"
1433
],
34+
"author": "Microsoft Corporation",
1535
"license": "MIT",
16-
"main": "dist/index.js",
17-
"module": "./dist-esm/src/index.js",
18-
"types": "./types/purview-datamap.d.ts",
19-
"repository": "github:Azure/azure-sdk-for-js",
20-
"bugs": {
21-
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
22-
},
2336
"files": [
24-
"dist/",
25-
"dist-esm/src/",
26-
"types/purview-datamap.d.ts",
37+
"dist",
2738
"README.md",
2839
"LICENSE",
2940
"review/*"
3041
],
31-
"engines": {
32-
"node": ">=18.0.0"
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"
3346
},
34-
"scripts": {
35-
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
36-
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
37-
"build:samples": "echo skipped.",
38-
"build:test": "tsc -p . && dev-tool run bundle",
39-
"build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
40-
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
41-
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
42-
"execute:samples": "echo skipped",
43-
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
44-
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"*.{js,json}\" \"test/**/*.ts\"",
45-
"generate:client": "echo skipped",
46-
"integration-test:browser": "dev-tool run test:browser",
47-
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
48-
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
49-
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
50-
"lint": "eslint package.json api-extractor.json src test --ext .ts",
51-
"pack": "npm pack 2>&1",
52-
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
53-
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
54-
"test": "npm run clean && npm run build:test && npm run unit-test",
55-
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
56-
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
57-
"unit-test:browser": "dev-tool run test:browser",
58-
"build": "npm run clean && tsc -p . && dev-tool run bundle && mkdirp ./review && dev-tool run extract-api"
47+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-datamap-rest/README.md",
48+
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
49+
"//metadata": {
50+
"constantPaths": [
51+
{
52+
"path": "src/purviewDataMapClient.ts",
53+
"prefix": "package-version"
54+
}
55+
]
5956
},
60-
"sideEffects": false,
61-
"autoPublish": false,
6257
"dependencies": {
58+
"@azure-rest/core-client": "^2.0.0",
6359
"@azure/core-auth": "^1.6.0",
64-
"@azure-rest/core-client": "^1.2.0",
65-
"@azure/core-rest-pipeline": "^1.14.0",
60+
"@azure/core-rest-pipeline": "^1.5.0",
6661
"@azure/logger": "^1.0.0",
67-
"tslib": "^2.2.0"
62+
"tslib": "^2.6.2"
6863
},
6964
"devDependencies": {
70-
"@microsoft/api-extractor": "^7.31.1",
71-
"autorest": "latest",
72-
"@types/node": "^18.0.0",
7365
"dotenv": "^16.0.0",
74-
"eslint": "^8.0.0",
66+
"@microsoft/api-extractor": "^7.40.3",
67+
"@types/node": "^18.0.0",
68+
"eslint": "^8.55.0",
69+
"prettier": "^3.2.5",
70+
"rimraf": "^5.0.5",
7571
"mkdirp": "^3.0.1",
76-
"rimraf": "^5.0.0",
77-
"source-map-support": "^0.5.9",
7872
"typescript": "~5.4.5",
79-
"@azure/dev-tool": "^1.0.0",
80-
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
81-
"@azure-tools/test-credential": "^1.0.0",
73+
"tshy": "^1.11.1",
74+
"@azure/core-util": "^1.0.0",
75+
"@azure-tools/test-credential": "^1.1.0",
8276
"@azure/identity": "^4.0.1",
8377
"@azure-tools/test-recorder": "^3.0.0",
84-
"mocha": "^10.0.0",
85-
"@types/mocha": "^10.0.0",
86-
"cross-env": "^7.0.2",
87-
"@types/chai": "^4.2.8",
88-
"chai": "^4.2.0",
89-
"karma-chrome-launcher": "^3.0.0",
90-
"karma-coverage": "^2.0.0",
91-
"karma-env-preprocessor": "^0.1.1",
92-
"karma-firefox-launcher": "^2.1.2",
93-
"karma-junit-reporter": "^2.0.1",
94-
"karma-mocha-reporter": "^2.2.5",
95-
"karma-mocha": "^2.0.1",
96-
"karma-source-map-support": "~1.4.0",
97-
"karma-sourcemap-loader": "^0.4.0",
98-
"karma": "^6.2.0",
99-
"nyc": "^15.1.0",
100-
"ts-node": "^10.0.0"
78+
"@vitest/browser": "^1.3.1",
79+
"@vitest/coverage-istanbul": "^1.3.1",
80+
"playwright": "^1.41.2",
81+
"vitest": "^1.3.1",
82+
"@azure/dev-tool": "^1.0.0",
83+
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
10184
},
102-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-datamap-rest/README.md",
103-
"//metadata": {
104-
"constantPaths": [
105-
{
106-
"path": "src/purviewDataMapClient.ts",
107-
"prefix": "userAgentInfo"
85+
"scripts": {
86+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
87+
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
88+
"pack": "npm pack 2>&1",
89+
"lint": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts",
90+
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --ext .cts --ext .mts --fix --fix-type [problem,suggestion]",
91+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
92+
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --no-test-proxy --browser",
93+
"unit-test:node": "dev-tool run test:vitest --no-test-proxy",
94+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
95+
"integration-test:browser": "echo skipped",
96+
"integration-test:node": "echo skipped",
97+
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
98+
"build:samples": "dev-tool samples publish --force",
99+
"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}\"",
100+
"execute:samples": "dev-tool samples run samples-dev",
101+
"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}\"",
102+
"generate:client": "echo skipped",
103+
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
104+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
105+
"build:test": "npm run clean && tshy && dev-tool run build-test",
106+
"build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api",
107+
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
108+
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test"
109+
},
110+
"exports": {
111+
"./package.json": "./package.json",
112+
".": {
113+
"browser": {
114+
"source": "./src/index.ts",
115+
"types": "./dist/browser/index.d.ts",
116+
"default": "./dist/browser/index.js"
117+
},
118+
"react-native": {
119+
"source": "./src/index.ts",
120+
"types": "./dist/react-native/index.d.ts",
121+
"default": "./dist/react-native/index.js"
122+
},
123+
"import": {
124+
"source": "./src/index.ts",
125+
"types": "./dist/esm/index.d.ts",
126+
"default": "./dist/esm/index.js"
127+
},
128+
"require": {
129+
"source": "./src/index.ts",
130+
"types": "./dist/commonjs/index.d.ts",
131+
"default": "./dist/commonjs/index.js"
108132
}
109-
]
133+
}
110134
},
111-
"browser": {
112-
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
113-
}
114-
}
135+
"main": "./dist/commonjs/index.js",
136+
"types": "./dist/commonjs/index.d.ts"
137+
}

0 commit comments

Comments
 (0)