@autorest/typescript 6.0.6 → 6.0.7
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/README.md +1 -1
- package/dist/src/generators/static/packageFileGenerator.js +1 -1
- package/dist/src/restLevelClient/transforms/transformOptions.d.ts.map +1 -1
- package/dist/src/restLevelClient/transforms/transformOptions.js +2 -0
- package/dist/src/restLevelClient/transforms/transformOptions.js.map +1 -1
- package/dist/src/restLevelClient/transforms/transformResponseTypes.d.ts.map +1 -1
- package/dist/src/restLevelClient/transforms/transformResponseTypes.js +2 -0
- package/dist/src/restLevelClient/transforms/transformResponseTypes.js.map +1 -1
- package/package.json +4 -4
- package/src/generators/static/packageFileGenerator.ts +1 -1
- package/src/restLevelClient/transforms/transformOptions.ts +2 -0
- package/src/restLevelClient/transforms/transformResponseTypes.ts +1 -0
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
|
|
|
55
55
|
```yaml
|
|
56
56
|
version: 3.6.6
|
|
57
57
|
use-extension:
|
|
58
|
-
"@autorest/modelerfour": "4.
|
|
58
|
+
"@autorest/modelerfour": "4.26.2"
|
|
59
59
|
|
|
60
60
|
modelerfour:
|
|
61
61
|
# this runs a pre-namer step to clean up names
|
|
@@ -50,7 +50,7 @@ function regularAutorestPackage(clientDetails, packageDetails) {
|
|
|
50
50
|
engines: {
|
|
51
51
|
node: ">=14.0.0"
|
|
52
52
|
},
|
|
53
|
-
dependencies: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (hasLro && { "@azure/core-lro": "^2.5.
|
|
53
|
+
dependencies: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (hasLro && { "@azure/core-lro": "^2.5.4" })), (hasLro && { "@azure/abort-controller": "^1.0.0" })), (hasAsyncIterators && { "@azure/core-paging": "^1.2.0" })), (!useCoreV2 && { "@azure/core-http": "^2.0.0" })), (useCoreV2 && { "@azure/core-client": "^1.7.0" })), (useCoreV2 && addCredentials && { "@azure/core-auth": "^1.3.0" })), (useCoreV2 &&
|
|
54
54
|
coreHttpCompatMode && { "@azure/core-http-compat": "^1.2.0" })), (useCoreV2 && {
|
|
55
55
|
"@azure/core-rest-pipeline": "^1.8.0"
|
|
56
56
|
})), (tracingInfo && {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformOptions.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"transformOptions.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CA4C7D"}
|
|
@@ -28,6 +28,8 @@ function transformOptions(model) {
|
|
|
28
28
|
options.credentialScopes = credentialScopes;
|
|
29
29
|
options.credentialKeyHeaderName = credentialKeyHeaderName;
|
|
30
30
|
options.sourceFrom = "Swagger";
|
|
31
|
+
// Always enable operation group prefix for swagger
|
|
32
|
+
options.enableOperationGroup = true;
|
|
31
33
|
return options;
|
|
32
34
|
}
|
|
33
35
|
exports.transformOptions = transformOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformOptions.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":";;;AAEA,2DAA2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GAAG,uBAAuB,CAAC;IAC1D,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAC/B,OAAO,OAAO,CAAC;AACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"transformOptions.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformOptions.ts"],"names":[],"mappings":";;;AAEA,2DAA2D;AAC3D,6DAAqE;AAErE,SAAgB,gBAAgB,CAAC,KAAgB;;IAC/C,MAAM,EACJ,WAAW,EACX,WAAW,EACX,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAQ,EACT,GAAG,IAAA,oCAAkB,GAAE,CAAC;IACzB,MAAM,OAAO,GAAe,EAAE,CAAC;IAC/B,OAAO,CAAC,gBAAgB,GAAG,WAAW,CAAC;IACvC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IACtB,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC5C,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;IACpC,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC5B,OAAO,CAAC,WAAW,GAAG;QACpB,KAAK,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,mCAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;QACtD,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW;KACpC,CAAC;IACF,MAAM,EACJ,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACxB,GAAG,IAAA,wCAAwB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC;IACxC,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC5C,OAAO,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;IAC1D,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAC/B,mDAAmD;IACnD,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACpC,OAAO,OAAO,CAAC;AACjB,CAAC;AA5CD,4CA4CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformResponseTypes.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformResponseTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EAGT,QAAQ,EAGT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,iBAAiB,EAIlB,MAAM,yBAAyB,CAAC;AAUjC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,GAC1C,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"transformResponseTypes.d.ts","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformResponseTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EAGT,QAAQ,EAGT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,iBAAiB,EAIlB,MAAM,yBAAyB,CAAC;AAUjC,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,GAC1C,iBAAiB,EAAE,CAyCrB;AA4ED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAYxD"}
|
|
@@ -10,6 +10,7 @@ const operationHelpers_1 = require("../operationHelpers");
|
|
|
10
10
|
const schemaHelpers_1 = require("../schemaHelpers");
|
|
11
11
|
const schemaHelpers_2 = require("../../utils/schemaHelpers");
|
|
12
12
|
function transformResponseTypes(model, importDetails) {
|
|
13
|
+
var _a, _b, _c;
|
|
13
14
|
const operations = getAllOperationRequests(model);
|
|
14
15
|
const rlcResponses = [];
|
|
15
16
|
let importedModels = new Set();
|
|
@@ -20,6 +21,7 @@ function transformResponseTypes(model, importDetails) {
|
|
|
20
21
|
operationGroup: "",
|
|
21
22
|
// Please note the operationName already has operationGroup as prefix
|
|
22
23
|
operationName: `${operationLanguageMetadata.name}`,
|
|
24
|
+
path: (_c = (_b = (_a = operation.requests) === null || _a === void 0 ? void 0 : _a[0].protocol) === null || _b === void 0 ? void 0 : _b.http) === null || _c === void 0 ? void 0 : _c.path,
|
|
23
25
|
responses: []
|
|
24
26
|
};
|
|
25
27
|
for (const response of responses) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformResponseTypes.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformResponseTypes.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mDAO6B;AAC7B,wDAMiC;AACjC,iEAAkE;AAClE,0DAA+D;AAC/D,oDAI0B;AAC1B,6DAA6D;AAE7D,SAAgB,sBAAsB,CACpC,KAAgB,EAChB,aAA2C
|
|
1
|
+
{"version":3,"file":"transformResponseTypes.js","sourceRoot":"","sources":["../../../../src/restLevelClient/transforms/transformResponseTypes.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mDAO6B;AAC7B,wDAMiC;AACjC,iEAAkE;AAClE,0DAA+D;AAC/D,oDAI0B;AAC1B,6DAA6D;AAE7D,SAAgB,sBAAsB,CACpC,KAAgB,EAChB,aAA2C;;IAE3C,MAAM,UAAU,GAAG,uBAAuB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,CAAC,CAAC,CAAC;IAExD,OAAO,GAAG,UAAU,EAAE,CAAC;AACzB,CAAC;AAZD,sCAYC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/typescript",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"browser": {
|
|
5
5
|
"./test-browser/utils/stream-helpers.js": "./test-browser/utils/stream-helpers.browser.js",
|
|
6
6
|
"./test-browser/utils/fileSystem.js": "./test-browser/utils/fileSystem.browser.js",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"@autorest/codemodel": "~4.19.2",
|
|
17
17
|
"@autorest/extension-base": "^3.5.0",
|
|
18
18
|
"@autorest/testmodeler": "^2.4.0",
|
|
19
|
-
"@azure-rest/core-client": "^1.1.
|
|
19
|
+
"@azure-rest/core-client": "^1.1.4",
|
|
20
20
|
"@azure-tools/codegen": "^2.9.1",
|
|
21
21
|
"@azure/core-client": "^1.6.1",
|
|
22
22
|
"@azure/core-http": "^1.2.4",
|
|
23
23
|
"@azure/core-http-compat": "^1.2.0",
|
|
24
|
-
"@azure/core-lro": "^2.5.
|
|
24
|
+
"@azure/core-lro": "^2.5.4",
|
|
25
25
|
"@azure/core-paging": "^1.5.0",
|
|
26
26
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
27
27
|
"@azure/core-tracing": "^1.0.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"source-map-support": "^0.5.16",
|
|
36
36
|
"ts-morph": "^15.1.0",
|
|
37
37
|
"@azure/core-auth": "^1.3.2",
|
|
38
|
-
"@azure-tools/rlc-common": "^0.
|
|
38
|
+
"@azure-tools/rlc-common": "^0.14.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
@@ -86,7 +86,7 @@ function regularAutorestPackage(
|
|
|
86
86
|
node: ">=14.0.0"
|
|
87
87
|
},
|
|
88
88
|
dependencies: {
|
|
89
|
-
...(hasLro && { "@azure/core-lro": "^2.5.
|
|
89
|
+
...(hasLro && { "@azure/core-lro": "^2.5.4" }),
|
|
90
90
|
...(hasLro && { "@azure/abort-controller": "^1.0.0" }),
|
|
91
91
|
...(hasAsyncIterators && { "@azure/core-paging": "^1.2.0" }),
|
|
92
92
|
...(!useCoreV2 && { "@azure/core-http": "^2.0.0" }),
|
|
@@ -44,5 +44,7 @@ export function transformOptions(model: CodeModel): RLCOptions {
|
|
|
44
44
|
options.credentialScopes = credentialScopes;
|
|
45
45
|
options.credentialKeyHeaderName = credentialKeyHeaderName;
|
|
46
46
|
options.sourceFrom = "Swagger";
|
|
47
|
+
// Always enable operation group prefix for swagger
|
|
48
|
+
options.enableOperationGroup = true;
|
|
47
49
|
return options;
|
|
48
50
|
}
|
|
@@ -39,6 +39,7 @@ export function transformResponseTypes(
|
|
|
39
39
|
operationGroup: "",
|
|
40
40
|
// Please note the operationName already has operationGroup as prefix
|
|
41
41
|
operationName: `${operationLanguageMetadata.name}`,
|
|
42
|
+
path: operation.requests?.[0].protocol?.http?.path,
|
|
42
43
|
responses: []
|
|
43
44
|
};
|
|
44
45
|
for (const response of responses) {
|