@microsoft/typespec-msgraph 0.0.1-Preview.23 → 0.0.1-Preview.25
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/components/annotations.d.ts +3 -3
- package/dist/src/components/annotations.d.ts.map +1 -1
- package/dist/src/components/annotations.js +24 -2
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/operation-element.js +3 -3
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +4 -3
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/decorators/address-url-msa.d.ts +1 -1
- package/dist/src/decorators/address-url-msa.js +1 -1
- package/dist/src/decorators/address-url.d.ts +1 -1
- package/dist/src/decorators/address-url.js +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.js +1 -1
- package/dist/src/decorators/passthrough-address-url.d.ts +1 -1
- package/dist/src/decorators/passthrough-address-url.js +1 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +6 -3
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/address-url.d.ts +3 -3
- package/dist/src/entities/address-url.d.ts.map +1 -1
- package/dist/src/entities/address-url.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +7 -2
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +68 -54
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +15 -3
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +83 -32
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +3 -3
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +3 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +5 -6
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/lib.d.ts +74 -74
- package/dist/src/lib.js +3 -3
- package/dist/src/lib.js.map +1 -1
- package/dist/src/path-tree.d.ts +16 -0
- package/dist/src/path-tree.d.ts.map +1 -0
- package/dist/src/path-tree.js +76 -0
- package/dist/src/path-tree.js.map +1 -0
- package/dist/src/rules/address-url.d.ts.map +1 -1
- package/dist/src/rules/address-url.js +5 -2
- package/dist/src/rules/address-url.js.map +1 -1
- package/dist/src/rules/enum.d.ts +1 -1
- package/dist/src/rules/graph-route.d.ts.map +1 -1
- package/dist/src/rules/graph-route.js +76 -39
- package/dist/src/rules/graph-route.js.map +1 -1
- package/dist/src/rules/media.d.ts +3 -3
- package/dist/src/rules/model.d.ts +2 -2
- package/dist/src/rules/operation-inside-interface.d.ts +1 -1
- package/dist/src/rules/ownerless.d.ts.map +1 -1
- package/dist/src/rules/ownerless.js +5 -3
- package/dist/src/rules/ownerless.js.map +1 -1
- package/dist/src/rules/reference-target.d.ts +1 -1
- package/dist/src/rules/reference-target.d.ts.map +1 -1
- package/dist/src/rules/reference-target.js +0 -1
- package/dist/src/rules/reference-target.js.map +1 -1
- package/dist/src/utils.d.ts +5 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +32 -2
- package/dist/src/utils.js.map +1 -1
- package/lib/shared-models.tsp +1 -1
- package/package.json +3 -3
package/dist/src/lib.d.ts
CHANGED
|
@@ -5,55 +5,55 @@ export interface MsGraphEmitterOptions {
|
|
|
5
5
|
export declare const $flags: import("@typespec/compiler").PackageFlags;
|
|
6
6
|
export declare const reportDiagnostic: <C extends "decorator-missing-dependencies" | "element-missing-dependencies" | "decorator-invalid-use" | "singleton-invalid-name" | "extends-invalid-use" | "type-invalid-use", M extends keyof {
|
|
7
7
|
"decorator-missing-dependencies": {
|
|
8
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
8
|
+
readonly default: import("@typespec/compiler").CallableMessage<["decorator", "required", "location"]>;
|
|
9
9
|
readonly function: import("@typespec/compiler").CallableMessage<[]>;
|
|
10
10
|
};
|
|
11
11
|
"element-missing-dependencies": {
|
|
12
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
12
|
+
readonly default: import("@typespec/compiler").CallableMessage<["element", "other", "location"]>;
|
|
13
13
|
readonly operation: import("@typespec/compiler").CallableMessage<[]>;
|
|
14
14
|
readonly collectionNavigationPropertiesNotNullable: "Collection-valued navigation properties cannot be nullable.";
|
|
15
|
-
readonly propertyRequiredForCreate: import("@typespec/compiler").CallableMessage<[
|
|
16
|
-
readonly modelMissingNamespace: import("@typespec/compiler").CallableMessage<[
|
|
17
|
-
readonly operationParameterMismatch: import("@typespec/compiler").CallableMessage<[
|
|
18
|
-
readonly topLevelNamespaceMissingPublicNamespace: import("@typespec/compiler").CallableMessage<[
|
|
19
|
-
readonly propertyMissingContainsOrReferences: import("@typespec/compiler").CallableMessage<[
|
|
15
|
+
readonly propertyRequiredForCreate: import("@typespec/compiler").CallableMessage<["property", "model"]>;
|
|
16
|
+
readonly modelMissingNamespace: import("@typespec/compiler").CallableMessage<["model"]>;
|
|
17
|
+
readonly operationParameterMismatch: import("@typespec/compiler").CallableMessage<["operation", "parameters"]>;
|
|
18
|
+
readonly topLevelNamespaceMissingPublicNamespace: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
19
|
+
readonly propertyMissingContainsOrReferences: import("@typespec/compiler").CallableMessage<["property", "entity"]>;
|
|
20
20
|
};
|
|
21
21
|
"decorator-invalid-use": {
|
|
22
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
22
|
+
readonly default: import("@typespec/compiler").CallableMessage<["decorator", "other", "location"]>;
|
|
23
23
|
readonly alternateKey: import("@typespec/compiler").CallableMessage<[]>;
|
|
24
|
-
readonly disallowedTypeSpecDecorators: import("@typespec/compiler").CallableMessage<[
|
|
25
|
-
readonly expandProperties: import("@typespec/compiler").CallableMessage<[
|
|
26
|
-
readonly filterProperties: import("@typespec/compiler").CallableMessage<[
|
|
24
|
+
readonly disallowedTypeSpecDecorators: import("@typespec/compiler").CallableMessage<["decorator"]>;
|
|
25
|
+
readonly expandProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
26
|
+
readonly filterProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
27
27
|
readonly invalidAllPropertiesNotationUsage: import("@typespec/compiler").CallableMessage<[]>;
|
|
28
28
|
readonly key: import("@typespec/compiler").CallableMessage<[]>;
|
|
29
|
-
readonly orderByProperties: import("@typespec/compiler").CallableMessage<[
|
|
30
|
-
readonly required: import("@typespec/compiler").CallableMessage<[
|
|
31
|
-
readonly wrongType: import("@typespec/compiler").CallableMessage<[
|
|
29
|
+
readonly orderByProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
30
|
+
readonly required: import("@typespec/compiler").CallableMessage<["decorator", "parameters"]>;
|
|
31
|
+
readonly wrongType: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
32
32
|
readonly graphRoute: import("@typespec/compiler").CallableMessage<[]>;
|
|
33
33
|
readonly allowedValues: import("@typespec/compiler").CallableMessage<[]>;
|
|
34
34
|
readonly allowedValuesTypeHomogeinity: import("@typespec/compiler").CallableMessage<[]>;
|
|
35
35
|
readonly allowedValuesInvalidType: import("@typespec/compiler").CallableMessage<[]>;
|
|
36
|
-
readonly invalidPublicNamespaceName: import("@typespec/compiler").CallableMessage<[
|
|
37
|
-
readonly invalidWorkloadNamespaceName: import("@typespec/compiler").CallableMessage<[
|
|
36
|
+
readonly invalidPublicNamespaceName: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
37
|
+
readonly invalidWorkloadNamespaceName: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
38
38
|
readonly partial: import("@typespec/compiler").CallableMessage<[]>;
|
|
39
39
|
readonly graphDeprecatedMustBeAccompaniedByDefinition: import("@typespec/compiler").CallableMessage<[]>;
|
|
40
40
|
readonly graphDeprecatedValueMustBeDefinedInDeprecatedDefinition: import("@typespec/compiler").CallableMessage<[]>;
|
|
41
41
|
readonly ownerlessMustBeAppliedToInterfacesWithSingleSegmentGraphRouteRule: import("@typespec/compiler").CallableMessage<[]>;
|
|
42
42
|
readonly referencedEntityModelCannotHaveComplexTypeProperties: import("@typespec/compiler").CallableMessage<[]>;
|
|
43
43
|
readonly referencedEntityModelCanOnlyHaveNavigationProperties: import("@typespec/compiler").CallableMessage<[]>;
|
|
44
|
-
readonly
|
|
44
|
+
readonly ownerlessInterfaceCannotHaveAnyNonActionFunctionOperations: import("@typespec/compiler").CallableMessage<[]>;
|
|
45
45
|
readonly ownerlessDecoratorCannotBeUsedWithIsOwner: import("@typespec/compiler").CallableMessage<[]>;
|
|
46
46
|
readonly ownerlessDecoratorCannotHaveBaseModel: import("@typespec/compiler").CallableMessage<[]>;
|
|
47
47
|
readonly entityTypeInOnwerlessCannotBeUsedWithOtherInterfaces: import("@typespec/compiler").CallableMessage<[]>;
|
|
48
48
|
readonly globalOperationMustBeUsedWithNonRoutedInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
49
49
|
readonly globalOperationMustBeUsedWithProjectBindingType: import("@typespec/compiler").CallableMessage<[]>;
|
|
50
|
-
readonly graphRouteWithRoutingParameterAsFinalSegment: import("@typespec/compiler").CallableMessage<[
|
|
50
|
+
readonly graphRouteWithRoutingParameterAsFinalSegment: import("@typespec/compiler").CallableMessage<["graphRoute"]>;
|
|
51
51
|
readonly referenceTargetInterfaceMustHaveGraphRoute: import("@typespec/compiler").CallableMessage<[]>;
|
|
52
52
|
readonly referenceTargetMustOnlyBeUsedOnceOnInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
53
|
-
readonly referenceTargetPathShouldNotHaveParameters: import("@typespec/compiler").CallableMessage<[
|
|
53
|
+
readonly referenceTargetPathShouldNotHaveParameters: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
54
54
|
readonly interfaceWithGraphRouteMustExtendGraphStandardBaseInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
55
|
-
readonly duplicateGraphRouteNotAllowed: import("@typespec/compiler").CallableMessage<[
|
|
56
|
-
readonly duplicateParametersAreNotAllowedInGraphRoute: import("@typespec/compiler").CallableMessage<[
|
|
55
|
+
readonly duplicateGraphRouteNotAllowed: import("@typespec/compiler").CallableMessage<["graphRoute", "target", "existing"]>;
|
|
56
|
+
readonly duplicateParametersAreNotAllowedInGraphRoute: import("@typespec/compiler").CallableMessage<["parameters", "graphRoute", "target"]>;
|
|
57
57
|
readonly complexCannotBeDecoratedWithPartial: import("@typespec/compiler").CallableMessage<[]>;
|
|
58
58
|
readonly returnSourceOnlyAppliesToActionsAndFunctions: import("@typespec/compiler").CallableMessage<[]>;
|
|
59
59
|
readonly deltaCanOnlyBeAppliedToFunctionsNamedDelta: import("@typespec/compiler").CallableMessage<[]>;
|
|
@@ -61,81 +61,81 @@ export declare const reportDiagnostic: <C extends "decorator-missing-dependencie
|
|
|
61
61
|
readonly deltaCanOnlyBeUsedInCollectionInterfacesThatExtendEntityTypes: import("@typespec/compiler").CallableMessage<[]>;
|
|
62
62
|
readonly interfaceWithDeltaDefinitionMustIncludeAGetOperation: import("@typespec/compiler").CallableMessage<[]>;
|
|
63
63
|
readonly deltaFunctionReturnTypeMustBeCollectionOfEntityType: import("@typespec/compiler").CallableMessage<[]>;
|
|
64
|
-
readonly complexTypesAreNotAddressableThroughUniqueUrls: import("@typespec/compiler").CallableMessage<[
|
|
65
|
-
readonly entityAndComplexAreMutuallyExclusive: import("@typespec/compiler").CallableMessage<[
|
|
66
|
-
readonly filterPropertiesShouldBeSimple: import("@typespec/compiler").CallableMessage<[
|
|
67
|
-
readonly navigationPropertyShouldBeTargettedWithOneInterface: import("@typespec/compiler").CallableMessage<[
|
|
68
|
-
readonly graphRouteMustMatchModelStructure: import("@typespec/compiler").CallableMessage<[
|
|
69
|
-
readonly overloadedFunctionReturnTypesMustBeSame: import("@typespec/compiler").CallableMessage<[
|
|
70
|
-
readonly enumMemberUnknownFutureValueCannotHaveDocString: import("@typespec/compiler").CallableMessage<[
|
|
71
|
-
readonly addressUrlsAreNotEqual: import("@typespec/compiler").CallableMessage<[
|
|
64
|
+
readonly complexTypesAreNotAddressableThroughUniqueUrls: import("@typespec/compiler").CallableMessage<["complexType"]>;
|
|
65
|
+
readonly entityAndComplexAreMutuallyExclusive: import("@typespec/compiler").CallableMessage<["model"]>;
|
|
66
|
+
readonly filterPropertiesShouldBeSimple: import("@typespec/compiler").CallableMessage<["property", "model"]>;
|
|
67
|
+
readonly navigationPropertyShouldBeTargettedWithOneInterface: import("@typespec/compiler").CallableMessage<["models"]>;
|
|
68
|
+
readonly graphRouteMustMatchModelStructure: import("@typespec/compiler").CallableMessage<["graphRoute", "model"]>;
|
|
69
|
+
readonly overloadedFunctionReturnTypesMustBeSame: import("@typespec/compiler").CallableMessage<["returnTypes", "operation"]>;
|
|
70
|
+
readonly enumMemberUnknownFutureValueCannotHaveDocString: import("@typespec/compiler").CallableMessage<["member"]>;
|
|
71
|
+
readonly addressUrlsAreNotEqual: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
72
72
|
};
|
|
73
73
|
"singleton-invalid-name": {
|
|
74
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
74
|
+
readonly default: import("@typespec/compiler").CallableMessage<["value"]>;
|
|
75
75
|
};
|
|
76
76
|
"extends-invalid-use": {
|
|
77
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
77
|
+
readonly default: import("@typespec/compiler").CallableMessage<["type", "type"]>;
|
|
78
78
|
readonly namespaces: "A model can only extend other models in a different logical namespace. Use @partial instead.";
|
|
79
79
|
};
|
|
80
80
|
"type-invalid-use": {
|
|
81
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
82
|
-
readonly recordTypeCannotBePrepopulated: import("@typespec/compiler").CallableMessage<[
|
|
83
|
-
readonly recordTypeCannotBeNull: import("@typespec/compiler").CallableMessage<[
|
|
84
|
-
readonly recordTypeCannotBeUsedInLine: import("@typespec/compiler").CallableMessage<[
|
|
85
|
-
readonly interfaceWithPartialBindingType: import("@typespec/compiler").CallableMessage<[
|
|
86
|
-
readonly propertyTypeCannotBeStringLiteral: import("@typespec/compiler").CallableMessage<[
|
|
81
|
+
readonly default: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
82
|
+
readonly recordTypeCannotBePrepopulated: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
83
|
+
readonly recordTypeCannotBeNull: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
84
|
+
readonly recordTypeCannotBeUsedInLine: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
85
|
+
readonly interfaceWithPartialBindingType: import("@typespec/compiler").CallableMessage<["interface", "type"]>;
|
|
86
|
+
readonly propertyTypeCannotBeStringLiteral: import("@typespec/compiler").CallableMessage<["property", "type"]>;
|
|
87
87
|
};
|
|
88
88
|
}[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{
|
|
89
89
|
"decorator-missing-dependencies": {
|
|
90
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
90
|
+
readonly default: import("@typespec/compiler").CallableMessage<["decorator", "required", "location"]>;
|
|
91
91
|
readonly function: import("@typespec/compiler").CallableMessage<[]>;
|
|
92
92
|
};
|
|
93
93
|
"element-missing-dependencies": {
|
|
94
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
94
|
+
readonly default: import("@typespec/compiler").CallableMessage<["element", "other", "location"]>;
|
|
95
95
|
readonly operation: import("@typespec/compiler").CallableMessage<[]>;
|
|
96
96
|
readonly collectionNavigationPropertiesNotNullable: "Collection-valued navigation properties cannot be nullable.";
|
|
97
|
-
readonly propertyRequiredForCreate: import("@typespec/compiler").CallableMessage<[
|
|
98
|
-
readonly modelMissingNamespace: import("@typespec/compiler").CallableMessage<[
|
|
99
|
-
readonly operationParameterMismatch: import("@typespec/compiler").CallableMessage<[
|
|
100
|
-
readonly topLevelNamespaceMissingPublicNamespace: import("@typespec/compiler").CallableMessage<[
|
|
101
|
-
readonly propertyMissingContainsOrReferences: import("@typespec/compiler").CallableMessage<[
|
|
97
|
+
readonly propertyRequiredForCreate: import("@typespec/compiler").CallableMessage<["property", "model"]>;
|
|
98
|
+
readonly modelMissingNamespace: import("@typespec/compiler").CallableMessage<["model"]>;
|
|
99
|
+
readonly operationParameterMismatch: import("@typespec/compiler").CallableMessage<["operation", "parameters"]>;
|
|
100
|
+
readonly topLevelNamespaceMissingPublicNamespace: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
101
|
+
readonly propertyMissingContainsOrReferences: import("@typespec/compiler").CallableMessage<["property", "entity"]>;
|
|
102
102
|
};
|
|
103
103
|
"decorator-invalid-use": {
|
|
104
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
104
|
+
readonly default: import("@typespec/compiler").CallableMessage<["decorator", "other", "location"]>;
|
|
105
105
|
readonly alternateKey: import("@typespec/compiler").CallableMessage<[]>;
|
|
106
|
-
readonly disallowedTypeSpecDecorators: import("@typespec/compiler").CallableMessage<[
|
|
107
|
-
readonly expandProperties: import("@typespec/compiler").CallableMessage<[
|
|
108
|
-
readonly filterProperties: import("@typespec/compiler").CallableMessage<[
|
|
106
|
+
readonly disallowedTypeSpecDecorators: import("@typespec/compiler").CallableMessage<["decorator"]>;
|
|
107
|
+
readonly expandProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
108
|
+
readonly filterProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
109
109
|
readonly invalidAllPropertiesNotationUsage: import("@typespec/compiler").CallableMessage<[]>;
|
|
110
110
|
readonly key: import("@typespec/compiler").CallableMessage<[]>;
|
|
111
|
-
readonly orderByProperties: import("@typespec/compiler").CallableMessage<[
|
|
112
|
-
readonly required: import("@typespec/compiler").CallableMessage<[
|
|
113
|
-
readonly wrongType: import("@typespec/compiler").CallableMessage<[
|
|
111
|
+
readonly orderByProperties: import("@typespec/compiler").CallableMessage<["properties", "model"]>;
|
|
112
|
+
readonly required: import("@typespec/compiler").CallableMessage<["decorator", "parameters"]>;
|
|
113
|
+
readonly wrongType: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
114
114
|
readonly graphRoute: import("@typespec/compiler").CallableMessage<[]>;
|
|
115
115
|
readonly allowedValues: import("@typespec/compiler").CallableMessage<[]>;
|
|
116
116
|
readonly allowedValuesTypeHomogeinity: import("@typespec/compiler").CallableMessage<[]>;
|
|
117
117
|
readonly allowedValuesInvalidType: import("@typespec/compiler").CallableMessage<[]>;
|
|
118
|
-
readonly invalidPublicNamespaceName: import("@typespec/compiler").CallableMessage<[
|
|
119
|
-
readonly invalidWorkloadNamespaceName: import("@typespec/compiler").CallableMessage<[
|
|
118
|
+
readonly invalidPublicNamespaceName: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
119
|
+
readonly invalidWorkloadNamespaceName: import("@typespec/compiler").CallableMessage<["namespace"]>;
|
|
120
120
|
readonly partial: import("@typespec/compiler").CallableMessage<[]>;
|
|
121
121
|
readonly graphDeprecatedMustBeAccompaniedByDefinition: import("@typespec/compiler").CallableMessage<[]>;
|
|
122
122
|
readonly graphDeprecatedValueMustBeDefinedInDeprecatedDefinition: import("@typespec/compiler").CallableMessage<[]>;
|
|
123
123
|
readonly ownerlessMustBeAppliedToInterfacesWithSingleSegmentGraphRouteRule: import("@typespec/compiler").CallableMessage<[]>;
|
|
124
124
|
readonly referencedEntityModelCannotHaveComplexTypeProperties: import("@typespec/compiler").CallableMessage<[]>;
|
|
125
125
|
readonly referencedEntityModelCanOnlyHaveNavigationProperties: import("@typespec/compiler").CallableMessage<[]>;
|
|
126
|
-
readonly
|
|
126
|
+
readonly ownerlessInterfaceCannotHaveAnyNonActionFunctionOperations: import("@typespec/compiler").CallableMessage<[]>;
|
|
127
127
|
readonly ownerlessDecoratorCannotBeUsedWithIsOwner: import("@typespec/compiler").CallableMessage<[]>;
|
|
128
128
|
readonly ownerlessDecoratorCannotHaveBaseModel: import("@typespec/compiler").CallableMessage<[]>;
|
|
129
129
|
readonly entityTypeInOnwerlessCannotBeUsedWithOtherInterfaces: import("@typespec/compiler").CallableMessage<[]>;
|
|
130
130
|
readonly globalOperationMustBeUsedWithNonRoutedInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
131
131
|
readonly globalOperationMustBeUsedWithProjectBindingType: import("@typespec/compiler").CallableMessage<[]>;
|
|
132
|
-
readonly graphRouteWithRoutingParameterAsFinalSegment: import("@typespec/compiler").CallableMessage<[
|
|
132
|
+
readonly graphRouteWithRoutingParameterAsFinalSegment: import("@typespec/compiler").CallableMessage<["graphRoute"]>;
|
|
133
133
|
readonly referenceTargetInterfaceMustHaveGraphRoute: import("@typespec/compiler").CallableMessage<[]>;
|
|
134
134
|
readonly referenceTargetMustOnlyBeUsedOnceOnInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
135
|
-
readonly referenceTargetPathShouldNotHaveParameters: import("@typespec/compiler").CallableMessage<[
|
|
135
|
+
readonly referenceTargetPathShouldNotHaveParameters: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
136
136
|
readonly interfaceWithGraphRouteMustExtendGraphStandardBaseInterface: import("@typespec/compiler").CallableMessage<[]>;
|
|
137
|
-
readonly duplicateGraphRouteNotAllowed: import("@typespec/compiler").CallableMessage<[
|
|
138
|
-
readonly duplicateParametersAreNotAllowedInGraphRoute: import("@typespec/compiler").CallableMessage<[
|
|
137
|
+
readonly duplicateGraphRouteNotAllowed: import("@typespec/compiler").CallableMessage<["graphRoute", "target", "existing"]>;
|
|
138
|
+
readonly duplicateParametersAreNotAllowedInGraphRoute: import("@typespec/compiler").CallableMessage<["parameters", "graphRoute", "target"]>;
|
|
139
139
|
readonly complexCannotBeDecoratedWithPartial: import("@typespec/compiler").CallableMessage<[]>;
|
|
140
140
|
readonly returnSourceOnlyAppliesToActionsAndFunctions: import("@typespec/compiler").CallableMessage<[]>;
|
|
141
141
|
readonly deltaCanOnlyBeAppliedToFunctionsNamedDelta: import("@typespec/compiler").CallableMessage<[]>;
|
|
@@ -143,29 +143,29 @@ export declare const reportDiagnostic: <C extends "decorator-missing-dependencie
|
|
|
143
143
|
readonly deltaCanOnlyBeUsedInCollectionInterfacesThatExtendEntityTypes: import("@typespec/compiler").CallableMessage<[]>;
|
|
144
144
|
readonly interfaceWithDeltaDefinitionMustIncludeAGetOperation: import("@typespec/compiler").CallableMessage<[]>;
|
|
145
145
|
readonly deltaFunctionReturnTypeMustBeCollectionOfEntityType: import("@typespec/compiler").CallableMessage<[]>;
|
|
146
|
-
readonly complexTypesAreNotAddressableThroughUniqueUrls: import("@typespec/compiler").CallableMessage<[
|
|
147
|
-
readonly entityAndComplexAreMutuallyExclusive: import("@typespec/compiler").CallableMessage<[
|
|
148
|
-
readonly filterPropertiesShouldBeSimple: import("@typespec/compiler").CallableMessage<[
|
|
149
|
-
readonly navigationPropertyShouldBeTargettedWithOneInterface: import("@typespec/compiler").CallableMessage<[
|
|
150
|
-
readonly graphRouteMustMatchModelStructure: import("@typespec/compiler").CallableMessage<[
|
|
151
|
-
readonly overloadedFunctionReturnTypesMustBeSame: import("@typespec/compiler").CallableMessage<[
|
|
152
|
-
readonly enumMemberUnknownFutureValueCannotHaveDocString: import("@typespec/compiler").CallableMessage<[
|
|
153
|
-
readonly addressUrlsAreNotEqual: import("@typespec/compiler").CallableMessage<[
|
|
146
|
+
readonly complexTypesAreNotAddressableThroughUniqueUrls: import("@typespec/compiler").CallableMessage<["complexType"]>;
|
|
147
|
+
readonly entityAndComplexAreMutuallyExclusive: import("@typespec/compiler").CallableMessage<["model"]>;
|
|
148
|
+
readonly filterPropertiesShouldBeSimple: import("@typespec/compiler").CallableMessage<["property", "model"]>;
|
|
149
|
+
readonly navigationPropertyShouldBeTargettedWithOneInterface: import("@typespec/compiler").CallableMessage<["models"]>;
|
|
150
|
+
readonly graphRouteMustMatchModelStructure: import("@typespec/compiler").CallableMessage<["graphRoute", "model"]>;
|
|
151
|
+
readonly overloadedFunctionReturnTypesMustBeSame: import("@typespec/compiler").CallableMessage<["returnTypes", "operation"]>;
|
|
152
|
+
readonly enumMemberUnknownFutureValueCannotHaveDocString: import("@typespec/compiler").CallableMessage<["member"]>;
|
|
153
|
+
readonly addressUrlsAreNotEqual: import("@typespec/compiler").CallableMessage<["decorator", "target"]>;
|
|
154
154
|
};
|
|
155
155
|
"singleton-invalid-name": {
|
|
156
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
156
|
+
readonly default: import("@typespec/compiler").CallableMessage<["value"]>;
|
|
157
157
|
};
|
|
158
158
|
"extends-invalid-use": {
|
|
159
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
159
|
+
readonly default: import("@typespec/compiler").CallableMessage<["type", "type"]>;
|
|
160
160
|
readonly namespaces: "A model can only extend other models in a different logical namespace. Use @partial instead.";
|
|
161
161
|
};
|
|
162
162
|
"type-invalid-use": {
|
|
163
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
164
|
-
readonly recordTypeCannotBePrepopulated: import("@typespec/compiler").CallableMessage<[
|
|
165
|
-
readonly recordTypeCannotBeNull: import("@typespec/compiler").CallableMessage<[
|
|
166
|
-
readonly recordTypeCannotBeUsedInLine: import("@typespec/compiler").CallableMessage<[
|
|
167
|
-
readonly interfaceWithPartialBindingType: import("@typespec/compiler").CallableMessage<[
|
|
168
|
-
readonly propertyTypeCannotBeStringLiteral: import("@typespec/compiler").CallableMessage<[
|
|
163
|
+
readonly default: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
164
|
+
readonly recordTypeCannotBePrepopulated: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
165
|
+
readonly recordTypeCannotBeNull: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
166
|
+
readonly recordTypeCannotBeUsedInLine: import("@typespec/compiler").CallableMessage<["type"]>;
|
|
167
|
+
readonly interfaceWithPartialBindingType: import("@typespec/compiler").CallableMessage<["interface", "type"]>;
|
|
168
|
+
readonly propertyTypeCannotBeStringLiteral: import("@typespec/compiler").CallableMessage<["property", "type"]>;
|
|
169
169
|
};
|
|
170
170
|
}, C, M>) => void;
|
|
171
171
|
//# sourceMappingURL=lib.d.ts.map
|
package/dist/src/lib.js
CHANGED
|
@@ -63,7 +63,7 @@ export const { reportDiagnostic } = createTypeSpecLibrary({
|
|
|
63
63
|
ownerlessMustBeAppliedToInterfacesWithSingleSegmentGraphRouteRule: paramMessage `The @ownerless decorator can only be applied to interfaces with a single segment @graphRoute.`,
|
|
64
64
|
referencedEntityModelCannotHaveComplexTypeProperties: paramMessage `The referenced entity model cannot have complex type properties.`,
|
|
65
65
|
referencedEntityModelCanOnlyHaveNavigationProperties: paramMessage `The referenced entity model can only have navigation properties.`,
|
|
66
|
-
|
|
66
|
+
ownerlessInterfaceCannotHaveAnyNonActionFunctionOperations: paramMessage `The @ownerless decorator can only be applied to interfaces that contain only action or function operations.`,
|
|
67
67
|
ownerlessDecoratorCannotBeUsedWithIsOwner: paramMessage `The referenced model in the ownerless interface cannot be used with @isOwner decorator.`,
|
|
68
68
|
ownerlessDecoratorCannotHaveBaseModel: paramMessage `The referenced model in the ownerless interface cannot have a base model.`,
|
|
69
69
|
entityTypeInOnwerlessCannotBeUsedWithOtherInterfaces: paramMessage `The referenced model in the ownerless interface cannot be used in the extends clause of other interfaces.`,
|
|
@@ -72,10 +72,10 @@ export const { reportDiagnostic } = createTypeSpecLibrary({
|
|
|
72
72
|
graphRouteWithRoutingParameterAsFinalSegment: paramMessage `The @graphRoute ${"graphRoute"} with a routing parameter as the last segment cannot be used with a collection interface.`,
|
|
73
73
|
referenceTargetInterfaceMustHaveGraphRoute: paramMessage `The @referenceTarget decorator must be used on an interface with a @graphRoute decorator.`,
|
|
74
74
|
referenceTargetMustOnlyBeUsedOnceOnInterface: paramMessage `The @referenceTarget decorator can only be used once on an interface.`,
|
|
75
|
-
referenceTargetPathShouldNotHaveParameters: paramMessage `The
|
|
75
|
+
referenceTargetPathShouldNotHaveParameters: paramMessage `The decorator "${"decorator"}" path "${"target"}" cannot have parameters {}.`,
|
|
76
76
|
interfaceWithGraphRouteMustExtendGraphStandardBaseInterface: paramMessage `The @graphRoute decorator can only be used on an interface that ultimately extends a Graph standard base interface i.e. Resource<T> or Collection<T>.`,
|
|
77
77
|
duplicateGraphRouteNotAllowed: paramMessage `The @graphRoute "${"graphRoute"}" on "${"target"}" is already defined on another interface "${"existing"}".`,
|
|
78
|
-
duplicateParametersAreNotAllowedInGraphRoute: paramMessage `The parameters "${"parameters"}" on the @graphRoute "${"graphRoute"}" must have unique names.`,
|
|
78
|
+
duplicateParametersAreNotAllowedInGraphRoute: paramMessage `The parameters "${"parameters"}" on the @graphRoute "${"graphRoute"}" for "${"target"}" must have unique names.`,
|
|
79
79
|
complexCannotBeDecoratedWithPartial: paramMessage `A @complex type cannot be a @partial.`,
|
|
80
80
|
returnSourceOnlyAppliesToActionsAndFunctions: paramMessage `The @returnSource decorator can only be applied to @function and @action operations.`,
|
|
81
81
|
deltaCanOnlyBeAppliedToFunctionsNamedDelta: paramMessage `The @delta decorator can only be used with @function operations named delta.`,
|
package/dist/src/lib.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE7G,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC;AAMnC,MAAM,oBAAoB,GAA0C;IAClE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;SACtG;KACF;IACD,QAAQ,EAAE,EAA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CAAsC;gBAC7I,sBAAsB,EAAE,YAAY,CAAA,kDAAkD,WAAW,gFAAgF,QAAQ,sBAAsB;aAChN;SACF;QACD,wBAAwB,EAAE;YACxB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,wCAAwC,OAAO,uEAAuE;aAC5I;SACF;QACD,qBAAqB,EAAE;YACrB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,KAAK,MAAM,4BAA4B,MAAM,YAAY;gBAC9E,UAAU,EAAE,8FAA8F;aAC3G;SACF;QACD,kBAAkB,EAAE;YAClB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,OAAO,MAAM,yDAAyD;gBAC3F,8BAA8B,EAAE,YAAY,CAAA,oBAAoB,MAAM,2BAA2B;gBACjG,sBAAsB,EAAE,YAAY,CAAA,oBAAoB,MAAM,mBAAmB;gBACjF,4BAA4B,EAAE,YAAY,CAAA,kCAAkC,MAAM,6DAA6D;gBAC/I,+BAA+B,EAAE,YAAY,CAAA,kBAAkB,WAAW,0CAA0C,MAAM,0CAA0C;gBACpK,iCAAiC,EAAE,YAAY,CAAA,iBAAiB,UAAU,iBAAiB,MAAM,WAAW;aAC7G;SACF;KACF;IACD,OAAO,EAAE,EAAE,OAAO,EAAE,oBAA6D,EAAE;CAC3E,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Model } from "@typespec/compiler";
|
|
2
|
+
export declare class TreeNode {
|
|
3
|
+
name: string;
|
|
4
|
+
entityType: Model | undefined;
|
|
5
|
+
containingEntityType: Model | undefined;
|
|
6
|
+
children: Map<string, TreeNode>;
|
|
7
|
+
constructor(entityType?: Model | undefined);
|
|
8
|
+
}
|
|
9
|
+
export declare class PathTree {
|
|
10
|
+
root: TreeNode;
|
|
11
|
+
constructor();
|
|
12
|
+
addNode(path: string, entityType: Model): void;
|
|
13
|
+
getAllNodesWithContainingEntityType(entityName: string, node?: TreeNode, result?: TreeNode[]): TreeNode[];
|
|
14
|
+
getNodeByPath(path: string): TreeNode | undefined;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=path-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-tree.d.ts","sourceRoot":"","sources":["../../src/path-tree.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAM3C,qBAAa,QAAQ;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,KAAK,GAAG,SAAS,CAAC;IAC9B,oBAAoB,EAAE,KAAK,GAAG,SAAS,CAAC;IACxC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBAEpB,UAAU,GAAE,KAAK,GAAG,SAAqB;CAMtD;AAKD,qBAAa,QAAQ;IACnB,IAAI,EAAE,QAAQ,CAAC;;IAOf,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,GAAG,IAAI;IAkC9C,mCAAmC,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,GAAE,QAAoB,EAAE,MAAM,GAAE,QAAQ,EAAO,GAAG,QAAQ,EAAE;IAWxH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;CAelD"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { cleanGraphRoutePath } from "./utils.js";
|
|
2
|
+
/* A class that represents a graph route path segment, its associated entity type, the
|
|
3
|
+
* containing entity, and its children segments.
|
|
4
|
+
*/
|
|
5
|
+
export class TreeNode {
|
|
6
|
+
constructor(entityType = undefined) {
|
|
7
|
+
this.name = 'root';
|
|
8
|
+
this.entityType = entityType;
|
|
9
|
+
this.containingEntityType = undefined;
|
|
10
|
+
this.children = new Map();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/* A class that represents the tree structure of graph route paths and the associations
|
|
14
|
+
* among path segments and operations for adding and retrieving the segments and their metadata.
|
|
15
|
+
*/
|
|
16
|
+
export class PathTree {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.root = new TreeNode(undefined);
|
|
19
|
+
}
|
|
20
|
+
// Adds a node to the tree for the given path and entity type.
|
|
21
|
+
addNode(path, entityType) {
|
|
22
|
+
path = cleanGraphRoutePath(path);
|
|
23
|
+
const segments = path.split("/");
|
|
24
|
+
let currentNode = this.root;
|
|
25
|
+
for (const segment of segments) {
|
|
26
|
+
if (!currentNode.children.has(segment)) {
|
|
27
|
+
if (segments.indexOf(segment) === segments.length - 1) {
|
|
28
|
+
// The entity type is set only for the last segment of the path
|
|
29
|
+
currentNode.children.set(segment, new TreeNode(entityType));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
currentNode.children.set(segment, new TreeNode(undefined));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
// Segment already exists in the tree; update its node properties only if it is the last segment
|
|
37
|
+
currentNode = currentNode.children.get(segment);
|
|
38
|
+
if (segments.indexOf(segment) === segments.length - 1 && !currentNode.entityType) {
|
|
39
|
+
currentNode.entityType = entityType;
|
|
40
|
+
for (const child of currentNode.children.values()) {
|
|
41
|
+
child.containingEntityType = entityType;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
// The containing entity type of the current node is the entity type of its parent node
|
|
47
|
+
currentNode.children.get(segment).containingEntityType = currentNode.entityType;
|
|
48
|
+
currentNode = currentNode.children.get(segment);
|
|
49
|
+
currentNode.name = segment;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// Retrieves all nodes with the given containing entity name.
|
|
53
|
+
getAllNodesWithContainingEntityType(entityName, node = this.root, result = []) {
|
|
54
|
+
if (node.containingEntityType && node.containingEntityType.name === entityName) {
|
|
55
|
+
result.push(node);
|
|
56
|
+
}
|
|
57
|
+
for (const child of node.children.values()) {
|
|
58
|
+
this.getAllNodesWithContainingEntityType(entityName, child, result);
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
// Retrieves the node for the given path.
|
|
63
|
+
getNodeByPath(path) {
|
|
64
|
+
path = cleanGraphRoutePath(path);
|
|
65
|
+
const segments = path.split('/');
|
|
66
|
+
let currentNode = this.root;
|
|
67
|
+
for (const segment of segments) {
|
|
68
|
+
if (!currentNode) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
currentNode = currentNode.children.get(segment);
|
|
72
|
+
}
|
|
73
|
+
return currentNode;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=path-tree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-tree.js","sourceRoot":"","sources":["../../src/path-tree.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAyB,MAAM,YAAY,CAAC;AAExE;;EAEE;AACF,MAAM,OAAO,QAAQ;IAMnB,YAAY,aAAgC,SAAS;QACnD,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,oBAAoB,GAAG,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC9C,CAAC;CACF;AAED;;EAEE;AACF,MAAM,OAAO,QAAQ;IAGnB;QACE,IAAI,CAAC,IAAI,GAAG,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED,8DAA8D;IAC9D,OAAO,CAAC,IAAY,EAAE,UAAiB;QACrC,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjC,IAAI,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC;QA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,CAAC,UAAkB,EAAE,OAAiB,IAAI,CAAC,IAAI,EAAE,SAAqB,EAAE;QACzG,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,CAAC,oBAAoB,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YAC/E,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;YAC3C,IAAI,CAAC,mCAAmC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,yCAAyC;IACzC,aAAa,CAAC,IAAY;QACxB,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,WAAW,GAAyB,IAAI,CAAC,IAAI,CAAC;QAElD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,WAAW,GAAG,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CAEF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url.d.ts","sourceRoot":"","sources":["../../../src/rules/address-url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address-url.d.ts","sourceRoot":"","sources":["../../../src/rules/address-url.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAkD,MAAM,oBAAoB,CAAC;AAM7F;;GAEG;AACH,wBAAgB,iEAAiE,CAC/E,OAAO,EAAE,OAAO,QAgBjB;AAED;;GAEG;AACH,wBAAgB,oEAAoE,CAClF,OAAO,EAAE,OAAO,QAgBjB;AAED;;GAEG;AACH,wBAAgB,4EAA4E,CAC1F,OAAO,EAAE,OAAO,QAgBjB;AAED;;GAEG;AACH,wBAAgB,+EAA+E,CAC7F,OAAO,EAAE,OAAO,QAgBjB;AAED,wBAAgB,2EAA2E,CACzF,OAAO,EAAE,OAAO,QAqEjB;AAwCD,wBAAgB,8DAA8D,CAAC,OAAO,EAAE,OAAO,QAa9F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAddressUrl, getAddressUrlMsa, getGraphRoutePaths, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasGraphRoute, hasPassthroughAddressUrl, isAction, } from "../index.js";
|
|
1
|
+
import { getAddressUrl, getAddressUrlMsa, getGraphRoutePaths, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasGraphRoute, hasPassthroughAddressUrl, isAction, isFunction, } from "../index.js";
|
|
2
2
|
import { reportDiagnostic } from "../lib.js";
|
|
3
3
|
import { navigateTypesInNamespace } from "@typespec/compiler";
|
|
4
4
|
import { GetDeclaredNamespaces } from "../entities/namespace.js";
|
|
@@ -148,13 +148,16 @@ function validateAddressUrlApplication(program, target, decorator) {
|
|
|
148
148
|
if (target.kind === "Operation" && isAction(program, target)) {
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
+
if (target.kind === "Operation" && isFunction(program, target)) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
151
154
|
reportDiagnostic(program, {
|
|
152
155
|
code: "decorator-invalid-use",
|
|
153
156
|
target: target,
|
|
154
157
|
messageId: "wrongType",
|
|
155
158
|
format: {
|
|
156
159
|
decorator: decorator,
|
|
157
|
-
target: "routed interface (entityset, singleton or navigation property) or an action operation",
|
|
160
|
+
target: "routed interface (entityset, singleton or navigation property) or an action/function operation",
|
|
158
161
|
},
|
|
159
162
|
});
|
|
160
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url.js","sourceRoot":"","sources":["../../../src/rules/address-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAElB,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,wBAAwB,EACxB,QAAQ,
|
|
1
|
+
{"version":3,"file":"address-url.js","sourceRoot":"","sources":["../../../src/rules/address-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAElB,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,wBAAwB,EACxB,QAAQ,EACR,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAiC,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AACxH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGpD;;GAEG;AACH,MAAM,UAAU,iEAAiE,CAC/E,OAAgB;IAEhB,KAAK,MAAM,SAAS,IAAI,qBAAqB,CAAC,OAAO,CAAC,EAAE,CAAC;QACvD,wBAAwB,CAAC,SAAS,EAAE;YAClC,SAAS,EAAE,CAAC,YAAY,EAAE,EAAE;gBAC1B,IAAI,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC;oBACzC,6BAA6B,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;gBACtE,CAAC;YACH,CAAC;YACD,SAAS,EAAE,CAAC,SAAS,EAAE,EAAE;gBACvB,IAAI,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;oBACtC,6BAA6B,CAAC,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;gBACnE,CAAC;YAC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B,EAAE,kBAA0B;IACpH,gBAAgB,CAAC,OAAO,EAAE;QACxB,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,wBAAwB;QACnC,MAAM,EAAE;YACN,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,kBAAkB;SAC3B;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,4BAA4B,CAAC,wBAA+C;IACnF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,wBAAwB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzD,IAAI,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACtE,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/src/rules/enum.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Program } from "@typespec/compiler";
|
|
2
2
|
export declare const useEvolvableEnumRule: import("@typespec/compiler").LinterRuleDefinition<"use-evolvable-enum", {
|
|
3
|
-
readonly default: import("@typespec/compiler").CallableMessage<[
|
|
3
|
+
readonly default: import("@typespec/compiler").CallableMessage<["enum"]>;
|
|
4
4
|
}>;
|
|
5
5
|
export declare function validateEnumMemberUnknownFutureValueShouldNotHaveDocString(program: Program): void;
|
|
6
6
|
//# sourceMappingURL=enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/rules/graph-route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,OAAO,EAAkC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/rules/graph-route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,OAAO,EAAkC,MAAM,oBAAoB,CAAC;AAKnG;;GAEG;AAEH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,OAAO,QAW9D;AAyBD,wBAAgB,oDAAoD,CAAC,OAAO,EAAE,OAAO,QAWpF;AAqDD,wBAAgB,wDAAwD,CAAC,OAAO,EAAE,OAAO,QA2BxF;AAeD;;GAEG;AACH,wBAAgB,wDAAwD,CAAC,OAAO,EAAE,OAAO,QA0BxF;AAED,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,QAwBtE;AAgBD,wBAAgB,wCAAwC,CAAC,OAAO,EAAE,OAAO,QA6BxE;AAuBD,wBAAgB,0EAA0E,CAAC,OAAO,EAAE,OAAO,QA0E1G"}
|