@autorest/java 4.1.35 → 4.1.37
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/core/package.json +87 -0
- package/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +2 -3
- package/readme.md +1 -1
- package/typespec-extension/package.json +29 -29
- package/typespec-tests/package.json +13 -13
- package/androidgen/README.md +0 -74
- package/androidgen/data-plane.md +0 -23
- package/androidgen/package.json +0 -27
- package/androidgen/target/azure-autorest-androidgen-jar-with-dependencies.jar +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@typespec/monorepo",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"packageManager": "pnpm@9.5.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "pnpm build:all && pnpm check:eng && pnpm gen-compiler-extern-signature",
|
|
9
|
+
"build:all": "pnpm -r --workspace-concurrency=Infinity --aggregate-output --reporter=append-only build",
|
|
10
|
+
"check:eng": "tsc -p ./tsconfig.eng.json --noEmit",
|
|
11
|
+
"setup:min": "pnpm install && pnpm --filter \"@typespec/prettier-plugin-typespec...\" run build",
|
|
12
|
+
"check-version-mismatch": "syncpack list-mismatches",
|
|
13
|
+
"change": "chronus",
|
|
14
|
+
"clean": "pnpm -r run clean",
|
|
15
|
+
"cspell": "cspell --no-progress .",
|
|
16
|
+
"dogfood": "pnpm install && pnpm build && pnpm -r dogfood",
|
|
17
|
+
"fix-version-mismatch": "syncpack fix-mismatches",
|
|
18
|
+
"format": "prettier . --write",
|
|
19
|
+
"format:check": "prettier . --check",
|
|
20
|
+
"format:dir": "prettier --write",
|
|
21
|
+
"gen-compiler-extern-signature": "pnpm run -r --filter \"@typespec/compiler\" gen-extern-signature",
|
|
22
|
+
"lint": "eslint . --max-warnings=0",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
24
|
+
"merge-coverage": "c8 -- report --reporter=cobertura --reporter=text",
|
|
25
|
+
"pack:all": "chronus pack --pack-destination ./temp/artifacts",
|
|
26
|
+
"preinstall": "npx only-allow pnpm",
|
|
27
|
+
"prepare-publish": "pnpm chronus version",
|
|
28
|
+
"purge": "rimraf --glob \"packages/*/node_modules/\"",
|
|
29
|
+
"regen-docs": "pnpm -r --parallel --aggregate-output --reporter=append-only run regen-docs",
|
|
30
|
+
"regen-samples": "pnpm -r run regen-samples",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
|
33
|
+
"test:e2e": "pnpm -r run test:e2e",
|
|
34
|
+
"update-latest-docs": "pnpm -r run update-latest-docs",
|
|
35
|
+
"watch": "tsc --build ./tsconfig.ws.json --watch",
|
|
36
|
+
"sync-labels": "tsx ./eng/common/scripts/labels/sync-labels.ts --config ./eng/common/config/labels.ts"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@chronus/chronus": "^0.12.1",
|
|
40
|
+
"@chronus/github": "^0.4.3",
|
|
41
|
+
"@eslint/js": "^9.10.0",
|
|
42
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
43
|
+
"@octokit/core": "^6.1.2",
|
|
44
|
+
"@octokit/plugin-paginate-graphql": "^5.2.2",
|
|
45
|
+
"@octokit/plugin-rest-endpoint-methods": "^13.2.4",
|
|
46
|
+
"@pnpm/find-workspace-packages": "^6.0.9",
|
|
47
|
+
"@types/micromatch": "^4.0.9",
|
|
48
|
+
"@types/node": "~22.5.4",
|
|
49
|
+
"@typescript-eslint/parser": "^8.5.0",
|
|
50
|
+
"@typescript-eslint/utils": "^8.5.0",
|
|
51
|
+
"@vitest/coverage-v8": "^2.1.0",
|
|
52
|
+
"c8": "^10.1.2",
|
|
53
|
+
"cspell": "^8.14.2",
|
|
54
|
+
"eslint": "^9.10.0",
|
|
55
|
+
"eslint-plugin-deprecation": "^3.0.0",
|
|
56
|
+
"eslint-plugin-import": "^2.30.0",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc-94e652d5-20240912",
|
|
58
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
59
|
+
"eslint-plugin-vitest": "^0.5.4",
|
|
60
|
+
"micromatch": "^4.0.8",
|
|
61
|
+
"picocolors": "~1.1.0",
|
|
62
|
+
"prettier": "~3.3.3",
|
|
63
|
+
"prettier-plugin-organize-imports": "~4.0.0",
|
|
64
|
+
"rimraf": "~6.0.1",
|
|
65
|
+
"syncpack": "^13.0.0",
|
|
66
|
+
"tsx": "^4.19.1",
|
|
67
|
+
"typescript": "~5.6.2",
|
|
68
|
+
"typescript-eslint": "^8.5.0",
|
|
69
|
+
"vitest": "^2.1.0",
|
|
70
|
+
"yaml": "~2.5.1"
|
|
71
|
+
},
|
|
72
|
+
"syncpack": {
|
|
73
|
+
"dependencyTypes": [
|
|
74
|
+
"dev",
|
|
75
|
+
"overrides",
|
|
76
|
+
"peer",
|
|
77
|
+
"pnpmOverrides",
|
|
78
|
+
"prod",
|
|
79
|
+
"resolutions"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"pnpm": {
|
|
83
|
+
"overrides": {
|
|
84
|
+
"@fluentui/react-theme": "9.1.17"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/java",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.37",
|
|
4
4
|
"description": "The Java extension for classic generators in AutoRest.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"autorest": "autorest",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"*/package.json",
|
|
32
32
|
"/readme.md",
|
|
33
|
-
"/androidgen/*.md",
|
|
34
33
|
"/fluentgen/*.md",
|
|
35
34
|
"/fluentnamer/*.md",
|
|
36
35
|
"/javagen/*.md",
|
|
@@ -40,6 +39,6 @@
|
|
|
40
39
|
],
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"autorest": "^3.7.1",
|
|
43
|
-
"@microsoft.azure/autorest.testserver": "3.3.
|
|
42
|
+
"@microsoft.azure/autorest.testserver": "3.3.50"
|
|
44
43
|
}
|
|
45
44
|
}
|
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"lib/*.tsp",
|
|
43
43
|
"dist/**",
|
|
44
44
|
"!dist/test/**",
|
|
45
|
-
"target/emitter.jar"
|
|
45
|
+
"generator/http-client-generator/target/emitter.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
49
|
-
"@azure-tools/typespec-azure-resource-manager": ">=0.
|
|
50
|
-
"@azure-tools/typespec-autorest": ">=0.
|
|
51
|
-
"@azure-tools/typespec-azure-rulesets": ">=0.
|
|
52
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
53
|
-
"@typespec/compiler": ">=0.
|
|
54
|
-
"@typespec/http": ">=0.
|
|
55
|
-
"@typespec/openapi": ">=0.
|
|
56
|
-
"@typespec/rest": ">=0.
|
|
57
|
-
"@typespec/versioning": ">=0.
|
|
58
|
-
"@typespec/xml": ">=0.
|
|
48
|
+
"@azure-tools/typespec-azure-core": ">=0.46.0 <1.0.0",
|
|
49
|
+
"@azure-tools/typespec-azure-resource-manager": ">=0.46.0 <1.0.0",
|
|
50
|
+
"@azure-tools/typespec-autorest": ">=0.46.0 <1.0.0",
|
|
51
|
+
"@azure-tools/typespec-azure-rulesets": ">=0.46.0 <1.0.0",
|
|
52
|
+
"@azure-tools/typespec-client-generator-core": ">=0.46.0 <1.0.0",
|
|
53
|
+
"@typespec/compiler": ">=0.60.0 <1.0.0",
|
|
54
|
+
"@typespec/http": ">=0.60.0 <1.0.0",
|
|
55
|
+
"@typespec/openapi": ">=0.60.0 <1.0.0",
|
|
56
|
+
"@typespec/rest": ">=0.60.0 <1.0.0",
|
|
57
|
+
"@typespec/versioning": ">=0.60.0 <1.0.0",
|
|
58
|
+
"@typespec/xml": ">=0.60.0 <1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@autorest/codemodel": "~4.20.0",
|
|
@@ -63,29 +63,29 @@
|
|
|
63
63
|
"lodash": "~4.17.21"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@azure-tools/typespec-azure-core": "0.
|
|
67
|
-
"@azure-tools/typespec-azure-resource-manager": "0.
|
|
68
|
-
"@azure-tools/typespec-autorest": "0.
|
|
69
|
-
"@azure-tools/typespec-azure-rulesets": "0.
|
|
70
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
66
|
+
"@azure-tools/typespec-azure-core": "0.46.0",
|
|
67
|
+
"@azure-tools/typespec-azure-resource-manager": "0.46.0",
|
|
68
|
+
"@azure-tools/typespec-autorest": "0.46.0",
|
|
69
|
+
"@azure-tools/typespec-azure-rulesets": "0.46.0",
|
|
70
|
+
"@azure-tools/typespec-client-generator-core": "0.46.0",
|
|
71
71
|
"@types/js-yaml": "~4.0.9",
|
|
72
72
|
"@types/lodash": "~4.17.7",
|
|
73
73
|
"@types/mocha": "~10.0.7",
|
|
74
|
-
"@types/node": "~
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~
|
|
76
|
-
"@typescript-eslint/parser": "~
|
|
77
|
-
"@typespec/compiler": "0.
|
|
78
|
-
"@typespec/http": "0.
|
|
79
|
-
"@typespec/openapi": "0.
|
|
80
|
-
"@typespec/rest": "0.
|
|
81
|
-
"@typespec/versioning": "0.
|
|
82
|
-
"@typespec/xml": "0.
|
|
74
|
+
"@types/node": "~22.5.4",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "~8.5.0",
|
|
76
|
+
"@typescript-eslint/parser": "~8.5.0",
|
|
77
|
+
"@typespec/compiler": "0.60.0",
|
|
78
|
+
"@typespec/http": "0.60.0",
|
|
79
|
+
"@typespec/openapi": "0.60.0",
|
|
80
|
+
"@typespec/rest": "0.60.0",
|
|
81
|
+
"@typespec/versioning": "0.60.1",
|
|
82
|
+
"@typespec/xml": "0.60.0",
|
|
83
83
|
"c8": "~10.1.2",
|
|
84
84
|
"eslint": "~8.57.0",
|
|
85
85
|
"eslint-plugin-deprecation": "~3.0.0",
|
|
86
|
-
"mocha": "~10.
|
|
86
|
+
"mocha": "~10.7.3",
|
|
87
87
|
"prettier": "~3.3.3",
|
|
88
88
|
"rimraf": "~6.0.1",
|
|
89
|
-
"typescript": "~5.
|
|
89
|
+
"typescript": "~5.6.2"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -9,25 +9,25 @@
|
|
|
9
9
|
"testserver-run": "npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./cadl-ranch-coverage-java.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@azure-tools/cadl-ranch-specs": "0.
|
|
13
|
-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.
|
|
12
|
+
"@azure-tools/cadl-ranch-specs": "0.37.1",
|
|
13
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.21.0.tgz"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
16
|
+
"@typespec/prettier-plugin-typespec": "~0.60.0",
|
|
17
17
|
"prettier-plugin-organize-imports": "4.0.0",
|
|
18
18
|
"prettier": "~3.3.3"
|
|
19
19
|
},
|
|
20
20
|
"overrides": {
|
|
21
|
-
"@typespec/compiler": "
|
|
22
|
-
"@typespec/http": "
|
|
23
|
-
"@typespec/rest": "
|
|
24
|
-
"@typespec/versioning": "
|
|
25
|
-
"@typespec/openapi": "
|
|
26
|
-
"@typespec/xml": "
|
|
27
|
-
"@azure-tools/typespec-azure-core": "
|
|
28
|
-
"@azure-tools/typespec-client-generator-core": "
|
|
29
|
-
"@azure-tools/typespec-azure-resource-manager": "
|
|
30
|
-
"@azure-tools/typespec-autorest": "
|
|
21
|
+
"@typespec/compiler": "~0.60.0",
|
|
22
|
+
"@typespec/http": "~0.60.0",
|
|
23
|
+
"@typespec/rest": "~0.60.0",
|
|
24
|
+
"@typespec/versioning": "~0.60.0",
|
|
25
|
+
"@typespec/openapi": "~0.60.0",
|
|
26
|
+
"@typespec/xml": "~0.60.0",
|
|
27
|
+
"@azure-tools/typespec-azure-core": "~0.46.0",
|
|
28
|
+
"@azure-tools/typespec-client-generator-core": "~0.46.0",
|
|
29
|
+
"@azure-tools/typespec-azure-resource-manager": "~0.46.0",
|
|
30
|
+
"@azure-tools/typespec-autorest": "~0.46.0"
|
|
31
31
|
},
|
|
32
32
|
"private": true
|
|
33
33
|
}
|
package/androidgen/README.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#### Androidgen
|
|
2
|
-
|
|
3
|
-
``` yaml
|
|
4
|
-
pass-thru:
|
|
5
|
-
- model-deduplicator
|
|
6
|
-
- subset-reducer
|
|
7
|
-
|
|
8
|
-
use-extension:
|
|
9
|
-
"@autorest/modelerfour": "4.26.2"
|
|
10
|
-
|
|
11
|
-
pipeline:
|
|
12
|
-
|
|
13
|
-
# --- extension remodeler ---
|
|
14
|
-
|
|
15
|
-
# "Shake the tree", and normalize the model
|
|
16
|
-
modelerfour:
|
|
17
|
-
input: openapi-document/multi-api/identity # the plugin where we get inputs from
|
|
18
|
-
|
|
19
|
-
# allow developer to do transformations on the code model.
|
|
20
|
-
modelerfour/new-transform:
|
|
21
|
-
input: modelerfour
|
|
22
|
-
|
|
23
|
-
androidgen:
|
|
24
|
-
scope: android
|
|
25
|
-
input: modelerfour/identity
|
|
26
|
-
output-artifact: java-files
|
|
27
|
-
|
|
28
|
-
androidgen/emitter:
|
|
29
|
-
input: androidgen
|
|
30
|
-
scope: scope-androidgen/emitter
|
|
31
|
-
|
|
32
|
-
scope-androidgen/emitter:
|
|
33
|
-
input-artifact: java-files
|
|
34
|
-
output-uri-expr: $key
|
|
35
|
-
|
|
36
|
-
output-artifact: java-files
|
|
37
|
-
|
|
38
|
-
modelerfour:
|
|
39
|
-
seal-single-value-enum-by-default: true
|
|
40
|
-
|
|
41
|
-
skip-special-headers:
|
|
42
|
-
- Repeatability-Request-ID
|
|
43
|
-
- Repeatability-First-Sent
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
```yaml !$(data-plane)
|
|
47
|
-
modelerfour:
|
|
48
|
-
flatten-models: true
|
|
49
|
-
flatten-payloads: true
|
|
50
|
-
group-parameters: true
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
```yaml $(data-plane)
|
|
54
|
-
modelerfour:
|
|
55
|
-
flatten-models: false
|
|
56
|
-
flatten-payloads: false
|
|
57
|
-
group-parameters: false
|
|
58
|
-
|
|
59
|
-
lenient-model-deduplication: true
|
|
60
|
-
|
|
61
|
-
naming:
|
|
62
|
-
choiceValue: upper
|
|
63
|
-
preserve-uppercase-max-length: 2
|
|
64
|
-
override:
|
|
65
|
-
ip: Ip
|
|
66
|
-
id: Id
|
|
67
|
-
|
|
68
|
-
require:
|
|
69
|
-
- $(this-folder)data-plane.md
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
```yaml $(data-plane) && $(sdk-integration)
|
|
73
|
-
regenerate-pom: true
|
|
74
|
-
```
|
package/androidgen/data-plane.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#### data-plane
|
|
2
|
-
|
|
3
|
-
```yaml
|
|
4
|
-
azure-arm: false
|
|
5
|
-
|
|
6
|
-
license-header: MICROSOFT_MIT_SMALL
|
|
7
|
-
|
|
8
|
-
generate-client-interfaces: false
|
|
9
|
-
generate-client-as-impl: true
|
|
10
|
-
generate-sync-async-clients: true
|
|
11
|
-
generate-builder-per-client: true
|
|
12
|
-
sync-methods: all
|
|
13
|
-
enable-sync-stack: true
|
|
14
|
-
required-fields-as-ctor-args: true
|
|
15
|
-
enable-page-size: true
|
|
16
|
-
use-key-credential: true
|
|
17
|
-
|
|
18
|
-
use-default-http-status-code-to-exception-type-mapping: true
|
|
19
|
-
polling: {}
|
|
20
|
-
|
|
21
|
-
models-subpackage: implementation.models
|
|
22
|
-
client-logger: true
|
|
23
|
-
```
|
package/androidgen/package.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@autorest/java.android",
|
|
3
|
-
"version": "4.0.0",
|
|
4
|
-
"description": "The Android extension for classic generators in AutoRest.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"autorest": "autorest",
|
|
7
|
-
"start": "java -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
8
|
-
"debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-androidgen-jar-with-dependencies.jar",
|
|
9
|
-
"build": "mvn package -Dlocal"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/Azure/autorest.java"
|
|
14
|
-
},
|
|
15
|
-
"readme": "./readme.md",
|
|
16
|
-
"keywords": [
|
|
17
|
-
"autorest",
|
|
18
|
-
"java",
|
|
19
|
-
"android"
|
|
20
|
-
],
|
|
21
|
-
"author": "Microsoft Corporation",
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/Azure/autorest/issues"
|
|
25
|
-
},
|
|
26
|
-
"homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
|
|
27
|
-
}
|
|
Binary file
|