@azure-tools/typespec-azure-core 0.61.0-dev.4 → 0.61.0-dev.6
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/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/rules/rpc-operation-request-body.d.ts.map +1 -1
- package/dist/src/rules/rpc-operation-request-body.js +0 -5
- package/dist/src/rules/rpc-operation-request-body.js.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { $linter } from "./linter.js";
|
|
|
4
4
|
export * from "./decorators.js";
|
|
5
5
|
export { extractLroStates } from "./decorators/lro-status.js";
|
|
6
6
|
export { getOperationLinks, type OperationLink, type OperationLinkMetadata, } from "./decorators/operation-link.js";
|
|
7
|
+
export { isPreviewVersion } from "./decorators/preview-version.js";
|
|
7
8
|
export { getArmResourceIdentifierConfig, type ArmResourceIdentifierConfig, } from "./decorators/private/arm-resource-identifier-config.js";
|
|
8
9
|
export { getAsEmbeddingVector, type EmbeddingVectorMetadata, } from "./decorators/private/embedding-vector.js";
|
|
9
10
|
export { getParameterizedNextLinkArguments } from "./decorators/private/parameterized-next-link-config.js";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,C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C,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export { $linter } from "./linter.js";
|
|
|
4
4
|
export * from "./decorators.js";
|
|
5
5
|
export { extractLroStates } from "./decorators/lro-status.js";
|
|
6
6
|
export { getOperationLinks, } from "./decorators/operation-link.js";
|
|
7
|
+
export { isPreviewVersion } from "./decorators/preview-version.js";
|
|
7
8
|
export { getArmResourceIdentifierConfig, } from "./decorators/private/arm-resource-identifier-config.js";
|
|
8
9
|
export { getAsEmbeddingVector, } from "./decorators/private/embedding-vector.js";
|
|
9
10
|
export { getParameterizedNextLinkArguments } from "./decorators/private/parameterized-next-link-config.js";
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,iBAAiB,GAGlB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,8BAA8B,GAE/B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,GAErB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,cAAc,EAAkB,MAAM,0BAA0B,CAAC;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,gBAAgB;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EACL,iBAAiB,GAGlB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACL,8BAA8B,GAE/B,MAAM,wDAAwD,CAAC;AAChE,OAAO,EACL,oBAAoB,GAErB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,cAAc,EAAkB,MAAM,0BAA0B,CAAC;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,gBAAgB;AAChB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-operation-request-body.d.ts","sourceRoot":"","sources":["../../../src/rules/rpc-operation-request-body.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rpc-operation-request-body.d.ts","sourceRoot":"","sources":["../../../src/rules/rpc-operation-request-body.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B;;;EAoCtC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRule, paramMessage } from "@typespec/compiler";
|
|
2
2
|
import { getHttpOperation } from "@typespec/http";
|
|
3
|
-
import { isAzureSubNamespace, isExcludedCoreType } from "./utils.js";
|
|
4
3
|
export const rpcOperationRequestBodyRule = createRule({
|
|
5
4
|
name: "rpc-operation-request-body",
|
|
6
5
|
description: "Warning for RPC body problems.",
|
|
@@ -12,12 +11,8 @@ export const rpcOperationRequestBodyRule = createRule({
|
|
|
12
11
|
create(context) {
|
|
13
12
|
return {
|
|
14
13
|
operation: (operation) => {
|
|
15
|
-
if (isExcludedCoreType(context.program, operation))
|
|
16
|
-
return;
|
|
17
14
|
if (operation.node?.templateParameters.length !== 0)
|
|
18
15
|
return;
|
|
19
|
-
if (!isAzureSubNamespace(context.program, operation.namespace))
|
|
20
|
-
return;
|
|
21
16
|
const originalOperation = operation;
|
|
22
17
|
while (operation.sourceOperation) {
|
|
23
18
|
operation = operation.sourceOperation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-operation-request-body.js","sourceRoot":"","sources":["../../../src/rules/rpc-operation-request-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc-operation-request-body.js","sourceRoot":"","sources":["../../../src/rules/rpc-operation-request-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC;IACpD,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAA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