@microsoft/typespec-msgraph 0.0.1-Preview.11 → 0.0.1-Preview.13
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.js +21 -3
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/operation-element.d.ts.map +1 -1
- package/dist/src/components/operation-element.js +16 -5
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/property-element.js +1 -1
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +2 -1
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +5 -3
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/term-element.d.ts +9 -0
- package/dist/src/components/term-element.d.ts.map +1 -0
- package/dist/src/components/term-element.js +8 -0
- package/dist/src/components/term-element.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +2 -1
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -1
- package/dist/src/decorators/ags-attribute.js +37 -1
- package/dist/src/decorators/ags-attribute.js.map +1 -1
- package/dist/src/decorators/experimental.d.ts +9 -0
- package/dist/src/decorators/experimental.d.ts.map +1 -0
- package/dist/src/decorators/experimental.js +13 -0
- package/dist/src/decorators/experimental.js.map +1 -0
- package/dist/src/decorators/global-operation.d.ts +9 -0
- package/dist/src/decorators/global-operation.d.ts.map +1 -0
- package/dist/src/decorators/global-operation.js +13 -0
- package/dist/src/decorators/global-operation.js.map +1 -0
- package/dist/src/decorators/graph-deprecated.d.ts +11 -0
- package/dist/src/decorators/graph-deprecated.d.ts.map +1 -0
- package/dist/src/decorators/graph-deprecated.js +19 -0
- package/dist/src/decorators/graph-deprecated.js.map +1 -0
- package/dist/src/decorators/index.d.ts +5 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +5 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.js +1 -1
- package/dist/src/decorators/ownerless.d.ts +8 -0
- package/dist/src/decorators/ownerless.d.ts.map +1 -0
- package/dist/src/decorators/ownerless.js +12 -0
- package/dist/src/decorators/ownerless.js.map +1 -0
- package/dist/src/decorators/public-namespace.d.ts.map +1 -1
- package/dist/src/decorators/public-namespace.js +4 -1
- package/dist/src/decorators/public-namespace.js.map +1 -1
- package/dist/src/decorators/term.d.ts +13 -0
- package/dist/src/decorators/term.d.ts.map +1 -0
- package/dist/src/decorators/term.js +14 -0
- package/dist/src/decorators/term.js.map +1 -0
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +2 -0
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +4 -0
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +15 -0
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +1 -0
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +54 -4
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +6 -1
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +93 -6
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +5 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +32 -8
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +1 -0
- package/dist/src/entities/revision-definition.d.ts.map +1 -1
- package/dist/src/entities/revision-definition.js +3 -3
- package/dist/src/entities/revision-definition.js.map +1 -1
- package/dist/src/entities/term.d.ts +8 -0
- package/dist/src/entities/term.d.ts.map +1 -0
- package/dist/src/entities/term.js +14 -0
- package/dist/src/entities/term.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +59 -142
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +20 -10
- package/dist/src/lib.js.map +1 -1
- package/dist/src/rules/allowed-values.d.ts +2 -1
- package/dist/src/rules/allowed-values.d.ts.map +1 -1
- package/dist/src/rules/allowed-values.js +7 -7
- package/dist/src/rules/allowed-values.js.map +1 -1
- package/dist/src/rules/alternate-key.d.ts +4 -3
- package/dist/src/rules/alternate-key.d.ts.map +1 -1
- package/dist/src/rules/alternate-key.js +23 -23
- package/dist/src/rules/alternate-key.js.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +9 -9
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -1
- package/dist/src/rules/computed.d.ts +2 -1
- package/dist/src/rules/computed.d.ts.map +1 -1
- package/dist/src/rules/computed.js +9 -8
- package/dist/src/rules/computed.js.map +1 -1
- package/dist/src/rules/contains.d.ts +2 -1
- package/dist/src/rules/contains.d.ts.map +1 -1
- package/dist/src/rules/contains.js +9 -8
- package/dist/src/rules/contains.js.map +1 -1
- package/dist/src/rules/count.d.ts +2 -1
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +9 -8
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.js +29 -25
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -1
- package/dist/src/rules/entity.d.ts +5 -2
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +102 -19
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +3 -1
- package/dist/src/rules/enum.d.ts.map +1 -1
- package/dist/src/rules/enum.js +9 -6
- package/dist/src/rules/enum.js.map +1 -1
- package/dist/src/rules/expand.d.ts +3 -2
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +16 -16
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/extends-on-same-type.d.ts +2 -1
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -1
- package/dist/src/rules/extends-on-same-type.js +9 -8
- package/dist/src/rules/extends-on-same-type.js.map +1 -1
- package/dist/src/rules/filter.d.ts +4 -3
- package/dist/src/rules/filter.d.ts.map +1 -1
- package/dist/src/rules/filter.js +23 -23
- package/dist/src/rules/filter.js.map +1 -1
- package/dist/src/rules/function.d.ts +2 -1
- package/dist/src/rules/function.d.ts.map +1 -1
- package/dist/src/rules/function.js +9 -9
- package/dist/src/rules/function.js.map +1 -1
- package/dist/src/rules/global-operation.d.ts +4 -0
- package/dist/src/rules/global-operation.d.ts.map +1 -0
- package/dist/src/rules/global-operation.js +60 -0
- package/dist/src/rules/global-operation.js.map +1 -0
- package/dist/src/rules/graph-deprecated.d.ts +8 -0
- package/dist/src/rules/graph-deprecated.d.ts.map +1 -0
- package/dist/src/rules/graph-deprecated.js +152 -0
- package/dist/src/rules/graph-deprecated.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +4 -2
- package/dist/src/rules/graph-route.d.ts.map +1 -1
- package/dist/src/rules/graph-route.js +55 -15
- package/dist/src/rules/graph-route.js.map +1 -1
- package/dist/src/rules/has-stream.d.ts +2 -1
- package/dist/src/rules/has-stream.d.ts.map +1 -1
- package/dist/src/rules/has-stream.js +9 -8
- package/dist/src/rules/has-stream.js.map +1 -1
- package/dist/src/rules/index.d.ts +3 -0
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +3 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/namespace.d.ts +4 -2
- package/dist/src/rules/namespace.d.ts.map +1 -1
- package/dist/src/rules/namespace.js +66 -35
- package/dist/src/rules/namespace.js.map +1 -1
- package/dist/src/rules/open.d.ts +2 -1
- package/dist/src/rules/open.d.ts.map +1 -1
- package/dist/src/rules/open.js +9 -8
- package/dist/src/rules/open.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +2 -1
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -1
- package/dist/src/rules/operation-inside-interface.js +9 -8
- package/dist/src/rules/operation-inside-interface.js.map +1 -1
- package/dist/src/rules/order-by.d.ts +3 -2
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +16 -16
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/ownerless.d.ts +10 -0
- package/dist/src/rules/ownerless.d.ts.map +1 -0
- package/dist/src/rules/ownerless.js +155 -0
- package/dist/src/rules/ownerless.js.map +1 -0
- package/dist/src/rules/partial.d.ts +2 -1
- package/dist/src/rules/partial.d.ts.map +1 -1
- package/dist/src/rules/partial.js +9 -8
- package/dist/src/rules/partial.js.map +1 -1
- package/dist/src/rules/references.d.ts +2 -1
- package/dist/src/rules/references.d.ts.map +1 -1
- package/dist/src/rules/references.js +9 -8
- package/dist/src/rules/references.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts +2 -1
- package/dist/src/rules/required-for-create.d.ts.map +1 -1
- package/dist/src/rules/required-for-create.js +9 -8
- package/dist/src/rules/required-for-create.js.map +1 -1
- package/dist/src/rules/search.d.ts +2 -1
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +9 -8
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.d.ts +2 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +9 -8
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts +2 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +9 -8
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -0
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +21 -0
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/utils.d.ts +4 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +68 -20
- package/dist/src/utils.js.map +1 -1
- package/dist/src/{linter.d.ts → validate.d.ts} +1 -1
- package/dist/src/validate.d.ts.map +1 -0
- package/dist/src/validate.js +51 -0
- package/dist/src/validate.js.map +1 -0
- package/lib/decorators.tsp +35 -0
- package/package.json +5 -7
- package/dist/src/linter.d.ts.map +0 -1
- package/dist/src/linter.js +0 -44
- package/dist/src/linter.js.map +0 -1
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
|
|
3
3
|
import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
|
|
4
4
|
import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
|
|
5
|
-
import { AnnotationElement, CollectionElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
5
|
+
import { AnnotationElement, CollectionElement, ItemList, PropertyValueElement, RecordElement, StringElement } from "./common-elements.js";
|
|
6
6
|
import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
|
|
7
7
|
import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
8
8
|
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
@@ -31,6 +31,13 @@ const AllowedValuesAnnotation = ({ element }) => {
|
|
|
31
31
|
})))));
|
|
32
32
|
};
|
|
33
33
|
const CollectionAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
34
|
+
element.ExplicitBindingOperationNames.length ?
|
|
35
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.ExplicitOperationBindings" },
|
|
36
|
+
React.createElement(CollectionElement, null, element.ExplicitBindingOperationNames.map((target) => {
|
|
37
|
+
return (React.createElement(StringElement, { key: target },
|
|
38
|
+
React.createElement(React.Fragment, null, target)));
|
|
39
|
+
}))) :
|
|
40
|
+
null,
|
|
34
41
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
35
42
|
React.createElement(RecordElement, null,
|
|
36
43
|
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
|
|
@@ -43,7 +50,9 @@ const CollectionAnnotationsElement = ({ element, }) => React.createElement(Annot
|
|
|
43
50
|
React.createElement(RecordElement, null,
|
|
44
51
|
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
45
52
|
React.createElement(CountRestrictionsAnnotation, { hasCountOnCollection: element.HasCountOnCollection }),
|
|
46
|
-
|
|
53
|
+
element.HasContainsOrReferences ?
|
|
54
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties })
|
|
55
|
+
: null,
|
|
47
56
|
React.createElement(SearchRestrictionsAnnotation, { hasSearchOnCollection: element.HasSearchOnCollection }),
|
|
48
57
|
React.createElement(SkipSupportedAnnotation, { hasSkipOnCollection: element.HasSkipOnCollection }),
|
|
49
58
|
React.createElement(FilterRestrictionsAnnotation, { hasFilterOperation: element.HasFilterOperation, nonFilterableProperties: element.NonFilterableProperties }),
|
|
@@ -51,6 +60,13 @@ const CollectionAnnotationsElement = ({ element, }) => React.createElement(Annot
|
|
|
51
60
|
React.createElement(TopSupportedAnnotation, { hasTopOnCollection: element.HasTopOnCollection }),
|
|
52
61
|
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
53
62
|
const ResourceAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
63
|
+
element.ExplicitBindingOperationNames.length ?
|
|
64
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.ExplicitOperationBindings" },
|
|
65
|
+
React.createElement(CollectionElement, null, element.ExplicitBindingOperationNames.map((target) => {
|
|
66
|
+
return (React.createElement(StringElement, { key: target },
|
|
67
|
+
React.createElement(React.Fragment, null, target)));
|
|
68
|
+
}))) :
|
|
69
|
+
null,
|
|
54
70
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
55
71
|
React.createElement(RecordElement, null,
|
|
56
72
|
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))),
|
|
@@ -58,6 +74,8 @@ const ResourceAnnotationsElement = ({ element, }) => React.createElement(Annotat
|
|
|
58
74
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
59
75
|
React.createElement(RecordElement, null,
|
|
60
76
|
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
61
|
-
|
|
77
|
+
element.HasContainsOrReferences ?
|
|
78
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }) :
|
|
79
|
+
null,
|
|
62
80
|
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
63
81
|
//# sourceMappingURL=annotations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot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8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAI,CAClE,CACE;IAGlB,OAAO,CAAC,uBAAuB,CAAC,CAAC;QACjC,oBAAC,4BAA4B,IAAC,+BAA+B,EAAE,OAAO,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI,CAAA,CAAC;QACrK,IAAI;IAEN,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-element.d.ts","sourceRoot":"","sources":["../../../src/components/operation-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,gBAAgB,EAA2C,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"operation-element.d.ts","sourceRoot":"","sources":["../../../src/components/operation-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,gBAAgB,EAA2C,MAAM,0BAA0B,CAAC;AA0BrG,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAY9D,CAAC"}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { AnnotationElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
3
|
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
4
4
|
import { OperationKind } from "../entities/operation.js";
|
|
5
|
+
import { RevisionsAnnotation } from "./revisions-annotation.js";
|
|
5
6
|
const Action = (props) => React.createElement("Action", props);
|
|
6
7
|
const Function = (props) => React.createElement("Function", props);
|
|
7
8
|
const Parameter = (props) => React.createElement("Parameter", props);
|
|
@@ -24,7 +25,10 @@ const ActionElement = ({ element }) => {
|
|
|
24
25
|
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
25
26
|
React.createElement(ParameterList, { properties: element.Properties }),
|
|
26
27
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
27
|
-
React.createElement(DescriptionAnnotation, { description: element.Description })
|
|
28
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }),
|
|
29
|
+
React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition }),
|
|
30
|
+
element.IsGlobalOperation ? null :
|
|
31
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.RequiresExplicitBinding" })));
|
|
28
32
|
};
|
|
29
33
|
const FunctionElement = ({ element }) => {
|
|
30
34
|
if (!element.UnionProperties.length) {
|
|
@@ -32,23 +36,30 @@ const FunctionElement = ({ element }) => {
|
|
|
32
36
|
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
33
37
|
React.createElement(ParameterList, { properties: element.Properties }),
|
|
34
38
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
35
|
-
React.createElement(DescriptionAnnotation, { description: element.Description })
|
|
39
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }),
|
|
40
|
+
React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition }),
|
|
41
|
+
element.IsGlobalOperation ? null :
|
|
42
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.RequiresExplicitBinding" })));
|
|
36
43
|
}
|
|
37
44
|
return (React.createElement(React.Fragment, null, element.UnionProperties.map((property, key) => {
|
|
38
45
|
return (React.createElement(Function, { Name: element.Name, IsBound: "true", ...element.AgsAttributes, key: key },
|
|
39
46
|
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
40
47
|
React.createElement(ParameterList, { properties: property }),
|
|
41
48
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
42
|
-
React.createElement(DescriptionAnnotation, { description: element.Description })
|
|
49
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }),
|
|
50
|
+
React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition }),
|
|
51
|
+
element.IsGlobalOperation ? null :
|
|
52
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.RequiresExplicitBinding" })));
|
|
43
53
|
})));
|
|
44
54
|
};
|
|
45
55
|
const ParameterList = ({ properties }) => {
|
|
46
56
|
return React.createElement(ItemList, { items: properties, render: (property) => React.createElement(ParameterElement, { parameter: property }) });
|
|
47
57
|
};
|
|
48
58
|
const ParameterElement = ({ parameter }) => {
|
|
49
|
-
return (React.createElement(Parameter, { Name: parameter.Name, Type: parameter.PropertyTypeName, ...(parameter.IsNullable ? {} : { Nullable: "false" }) },
|
|
59
|
+
return (React.createElement(Parameter, { Name: parameter.Name, Type: parameter.PropertyTypeName, ...(parameter.IsNullable ? {} : { Nullable: "false" }), ...parameter.AgsAttributes },
|
|
50
60
|
React.createElement(OptionalParameterAnnotation, { isOptional: parameter.IsOptional, defaultValue: parameter.DefaultValue }),
|
|
51
|
-
React.createElement(DescriptionAnnotation, { description: parameter.Description })
|
|
61
|
+
React.createElement(DescriptionAnnotation, { description: parameter.Description }),
|
|
62
|
+
React.createElement(RevisionsAnnotation, { definition: parameter.RevisionDefinition })));
|
|
52
63
|
};
|
|
53
64
|
const OptionalParameterAnnotation = ({ isOptional, defaultValue }) => {
|
|
54
65
|
if (!isOptional) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-element.js","sourceRoot":"","sources":["../../../src/components/operation-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,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CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAA6E,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,EAAE;IACjJ,IAAI,UAAU,EAAE;QACd,OAAO,yCAAK,CAAA;KACb;IAED,OAAO,oBAAC,UAAU,IAAC,IAAI,EAAE,cAAc,KAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAI,CAAA;AAC5F,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const PropertyElement = ({ property }) => property.IsNavigation
|
|
|
10
10
|
? React.createElement(NavigationPropertyElement, { property: property })
|
|
11
11
|
: React.createElement(StructuralPropertyElement, { property: property });
|
|
12
12
|
const NavigationPropertyElement = ({ property }) => {
|
|
13
|
-
return (React.createElement(NavigationProperty, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsContained ? { ContainsTarget: "true" } : {}), ...(property.IsNullable ? {} : { Nullable: "false" }), ...property.AgsAttributes },
|
|
13
|
+
return (React.createElement(NavigationProperty, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsContained ? { ContainsTarget: "true" } : {}), ...(property.IsNullable || property.IsCollection ? {} : { Nullable: "false" }), ...property.AgsAttributes },
|
|
14
14
|
React.createElement(RevisionsAnnotation, { definition: property.RevisionDefinition }),
|
|
15
15
|
React.createElement(DescriptionAnnotation, { description: property.Description })));
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-element.js","sourceRoot":"","sources":["../../../src/components/property-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,O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C,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzF,OAAO,CACL,oBAAC,QAAQ,IACP,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,KAC3B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,KAClD,QAAQ,CAAC,aAAa;QAE1B,oBAAC,kBAAkB,IAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAI;QACvD,oBAAC,qBAAqB,IAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAI;QAC1D,oBAAC,mBAAmB,IAAC,UAAU,EAAE,QAAQ,CAAC,kBAAkB,GAAI;QAChE,oBAAC,qBAAqB,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAI;QAC5D,oBAAC,mBAAmB,IAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAG,CAChD,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/revisions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAAE,
|
|
1
|
+
{"version":3,"file":"revisions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/revisions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAAE,CAgCnF,CAAC"}
|
|
@@ -11,6 +11,7 @@ export const RevisionsAnnotation = ({ definition }) => {
|
|
|
11
11
|
React.createElement(PropertyValueElement, { Property: "Version", String: definition.Version }),
|
|
12
12
|
React.createElement(PropertyValueElement, { Property: "Kind", EnumMember: "Org.OData.Core.V1.RevisionKind/Deprecated" }),
|
|
13
13
|
React.createElement(PropertyValueElement, { Property: "RemovalDate", Date: definition.RemovalDate }),
|
|
14
|
-
definition.Description ? (React.createElement(PropertyValueElement, { Property: "Description", String: definition.Description })) : (React.createElement(React.Fragment, null))
|
|
14
|
+
definition.Description ? (React.createElement(PropertyValueElement, { Property: "Description", String: definition.Description })) : (React.createElement(React.Fragment, null)),
|
|
15
|
+
definition.Category ? (React.createElement(PropertyValueElement, { Property: "Category", String: definition.Category })) : (React.createElement(React.Fragment, null))))));
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=revisions-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-annotation.js","sourceRoot":"","sources":["../../../src/components/revisions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGjH,MAAM,CAAC,MAAM,mBAAmB,GAAwD,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IACzG,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6BAA6B;QACnD,oBAAC,iBAAiB;YAChB,oBAAC,aAAa;gBACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAI;gBAC/D,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,SAAS,EAAC,MAAM,EAAE,UAAU,CAAC,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QAAQ,EAAC,aAAa,EAAC,MAAM,EAAE,UAAU,CAAC,WAAW,GAAI,CAChF,CAAC,CAAC,CAAC,CACF,yCAAK,CACN;gBAEC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CACpB,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,GAAI,CAC1E,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CAEW,CACE,CACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-element.d.ts","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"schema-element.d.ts","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAuB5D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,CAmB7D,CAAC"}
|
|
@@ -5,7 +5,8 @@ import { EnumTypeList } from "./enum-type-element.js";
|
|
|
5
5
|
import { OperationElement } from "./operation-element.js";
|
|
6
6
|
import { EntityTypeElement, ComplexTypeElement } from "./structured-type-element.js";
|
|
7
7
|
import { MsGraphModelKind } from "../entities/model.js";
|
|
8
|
-
import { AllowedValuesAnnotationsList, CollectionAnnotationsList, ResourceAnnotationsList } from "./annotations.js";
|
|
8
|
+
import { AllowedValuesAnnotationsList, CollectionAnnotationsList, ResourceAnnotationsList, } from "./annotations.js";
|
|
9
|
+
import { TermList } from "./term-element.js";
|
|
9
10
|
const Schema = (props) => React.createElement("Schema", {
|
|
10
11
|
...props,
|
|
11
12
|
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
@@ -16,10 +17,11 @@ export const SchemaElement = ({ namespace }) => {
|
|
|
16
17
|
React.createElement(EnumTypeList, { elements: namespace.Enums }),
|
|
17
18
|
React.createElement(ModelList, { models: namespace.Models }),
|
|
18
19
|
React.createElement(OperationList, { operations: namespace.Operations }),
|
|
19
|
-
React.createElement(EntityContainerElement, { singletons: namespace.Singletons, entitySets: namespace.EntitySets, agsAttributes: namespace.AgsAttributes }),
|
|
20
|
+
namespace.key && namespace.key === "library" ? null : (React.createElement(EntityContainerElement, { singletons: namespace.Singletons, entitySets: namespace.EntitySets, agsAttributes: namespace.AgsAttributes })),
|
|
20
21
|
React.createElement(ResourceAnnotationsList, { elements: namespace.ResourceAnnotations }),
|
|
21
22
|
React.createElement(CollectionAnnotationsList, { elements: namespace.CollectionAnnotations }),
|
|
22
|
-
React.createElement(AllowedValuesAnnotationsList, { elements: namespace.AllowedValuesAnnotations })
|
|
23
|
+
React.createElement(AllowedValuesAnnotationsList, { elements: namespace.AllowedValuesAnnotations }),
|
|
24
|
+
React.createElement(TermList, { elements: namespace.Terms })));
|
|
23
25
|
};
|
|
24
26
|
const ModelList = ({ models }) => {
|
|
25
27
|
return (React.createElement(ItemList, { items: models, render: (model) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-element.js","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACrF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,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { MsGraphTerm } from "../entities/term.js";
|
|
3
|
+
export declare const TermList: FC<{
|
|
4
|
+
elements: MsGraphTerm[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const TermElement: FC<{
|
|
7
|
+
term: MsGraphTerm;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=term-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term-element.d.ts","sourceRoot":"","sources":["../../../src/components/term-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAYlD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAEpD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAIjD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
3
|
+
import { ItemList } from "./common-elements.js";
|
|
4
|
+
const Term = (props) => React.createElement("Term", props);
|
|
5
|
+
export const TermList = ({ elements }) => (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(TermElement, { term: element }) }));
|
|
6
|
+
export const TermElement = ({ term }) => (React.createElement(Term, { Name: term.Name, Type: term.Type },
|
|
7
|
+
React.createElement(DescriptionAnnotation, { description: term.Description })));
|
|
8
|
+
//# sourceMappingURL=term-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term-element.js","sourceRoot":"","sources":["../../../src/components/term-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQhD,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,QAAQ,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzE,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,WAAW,IAAC,IAAI,EAAE,OAAO,GAAI,GAAI,CACnF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA8B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAClE,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;IACpC,oBAAC,qBAAqB,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI,CACnD,CACR,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
-
import { MsGraphModelKind } from "../entities/model.js";
|
|
2
|
+
import { MsGraphModel, MsGraphModelKind } from "../entities/model.js";
|
|
3
3
|
/**
|
|
4
4
|
* `@agsAttribute` - Allows all AGS CSDL extensions that are not yet modelled explicitly in TypeSpec to be maintained
|
|
5
5
|
*
|
|
@@ -11,4 +11,5 @@ export declare function unpackAgsAttributes(program: Program, target: Type): {
|
|
|
11
11
|
[key: string]: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function buildAttributes(program: Program, type: Model | ModelProperty | Namespace | Interface | Operation | Enum | EnumMember, kind?: MsGraphModelKind): Record<string, string>;
|
|
14
|
+
export declare function applyOwnerlessAttributeToInterfaceBindingType(program: Program, interfaces: Map<string, Interface>, models: Map<string, MsGraphModel>): Map<string, MsGraphModel>;
|
|
14
15
|
//# sourceMappingURL=ags-attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAS5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAS5B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMtE;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAMd;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GACxE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAErB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAQ7F;AAsBD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU,EACnF,IAAI,CAAC,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgCxB;AA6CD,wBAAgB,6CAA6C,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAmBhL"}
|
|
@@ -6,9 +6,10 @@ import { getWorkloadNameMsa } from "./workload-name-msa.js";
|
|
|
6
6
|
import { getWorkloadName } from "./workload-name.js";
|
|
7
7
|
import { isContains } from "./contains.js";
|
|
8
8
|
import { isReferences } from "./references.js";
|
|
9
|
-
import { isPartial } from "../index.js";
|
|
9
|
+
import { isExperimental, isOwnerless, isPartial } from "../index.js";
|
|
10
10
|
import { MsGraphModelKind } from "../entities/model.js";
|
|
11
11
|
import { isPrivatePreview } from "./private-preview.js";
|
|
12
|
+
import { getInterfaceNavigationSourceType } from "../utils.js";
|
|
12
13
|
const agsAttributeKey = Symbol("agsAttribute");
|
|
13
14
|
/**
|
|
14
15
|
* `@agsAttribute` - Allows all AGS CSDL extensions that are not yet modelled explicitly in TypeSpec to be maintained
|
|
@@ -36,12 +37,14 @@ const decoratorToMethodMapper = {
|
|
|
36
37
|
workloadNameMsa: getWorkloadNameMsa,
|
|
37
38
|
additionalQueryParameters: unpackAdditionalQueryParameters,
|
|
38
39
|
agsAttribute: unpackAgsAttributes,
|
|
40
|
+
experimental: isExperimental,
|
|
39
41
|
};
|
|
40
42
|
const decoratorToAgsAttributeMapper = {
|
|
41
43
|
isOwner: "ags:IsOwner",
|
|
42
44
|
privileged: "ags:IsHidden",
|
|
43
45
|
workloadName: "ags:WorkloadName",
|
|
44
46
|
workloadNameMsa: "ags:WorkloadNameMsa",
|
|
47
|
+
experimental: "ags:IsHidden",
|
|
45
48
|
};
|
|
46
49
|
export function buildAttributes(program, type, kind) {
|
|
47
50
|
const declaredDecorators = [
|
|
@@ -51,6 +54,7 @@ export function buildAttributes(program, type, kind) {
|
|
|
51
54
|
"workloadNameMsa",
|
|
52
55
|
"additionalQueryParameters",
|
|
53
56
|
"agsAttribute",
|
|
57
|
+
"experimental",
|
|
54
58
|
];
|
|
55
59
|
let attrs = {};
|
|
56
60
|
type.decorators
|
|
@@ -112,4 +116,36 @@ function enrichAttributesWithIsHidden(program, type, attrs) {
|
|
|
112
116
|
}
|
|
113
117
|
return attrs;
|
|
114
118
|
}
|
|
119
|
+
export function applyOwnerlessAttributeToInterfaceBindingType(program, interfaces, models) {
|
|
120
|
+
if (interfaces.size === 0) {
|
|
121
|
+
return models;
|
|
122
|
+
}
|
|
123
|
+
interfaces.forEach((theInterface, key) => {
|
|
124
|
+
if (isOwnerless(program, theInterface)) {
|
|
125
|
+
const bindingType = getInterfaceNavigationSourceType(program, theInterface);
|
|
126
|
+
if (bindingType) {
|
|
127
|
+
const model = getModel(models, bindingType, program);
|
|
128
|
+
if (model) {
|
|
129
|
+
const modelAttributes = model === null || model === void 0 ? void 0 : model.AgsAttributes;
|
|
130
|
+
modelAttributes['ags:IsOwner'] = 'false';
|
|
131
|
+
modelAttributes['ags:IsOwnerlessSingleton'] = 'true';
|
|
132
|
+
model.AgsAttributes = modelAttributes;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
return models;
|
|
138
|
+
}
|
|
139
|
+
function getModel(models, bindingType, program) {
|
|
140
|
+
let model = models.get(bindingType.name);
|
|
141
|
+
// we need this check because the partial models have keys that include random numbers
|
|
142
|
+
if (isPartial(program, bindingType)) {
|
|
143
|
+
for (const [key, value] of models) {
|
|
144
|
+
if (key.includes(bindingType.name)) {
|
|
145
|
+
model = value;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return model;
|
|
150
|
+
}
|
|
115
151
|
//# sourceMappingURL=ags-attribute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,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BACP,MAAM,eAAe,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,CAAC;oBAC7C,eAAe,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;oBACzC,eAAe,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAC;oBACrD,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC;iBACvC;aACF;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,QAAQ,CAAC,MAAiC,EAAE,WAAkB,EAAE,OAAgB;IACvF,IAAI,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAEzC,sFAAsF;IACtF,IAAG,SAAS,CAAC,OAAO,EAAE,WAAW,CAAC,EAAC;QACjC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,EAAE;YACjC,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;gBAClC,KAAK,GAAG,KAAK,CAAC;aACf;SACF;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@experimental` - mark the entity as experimental
|
|
4
|
+
*
|
|
5
|
+
* `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $experimental(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace | Interface): void;
|
|
8
|
+
export declare function isExperimental(program: Program, target: Type): boolean;
|
|
9
|
+
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EACvB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,QAGtF;AAGD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEtE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const experimentalKey = Symbol('experimental');
|
|
2
|
+
/**
|
|
3
|
+
* `@experimental` - mark the entity as experimental
|
|
4
|
+
*
|
|
5
|
+
* `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
6
|
+
*/
|
|
7
|
+
export function $experimental(context, target) {
|
|
8
|
+
context.program.stateSet(experimentalKey).add(target);
|
|
9
|
+
}
|
|
10
|
+
export function isExperimental(program, target) {
|
|
11
|
+
return program.stateSet(experimentalKey).has(target);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=experimental.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAYA,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,MAAqF;IAErF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAY;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@globalOperation` - specify that this operation is a global operation
|
|
4
|
+
*
|
|
5
|
+
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*/
|
|
7
|
+
export declare function $globalOperation(context: DecoratorContext, target: Operation): void;
|
|
8
|
+
export declare function isGlobalOperation(program: Program, target: Type): boolean;
|
|
9
|
+
//# sourceMappingURL=global-operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-operation.d.ts","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAIhF;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,QAE5E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEzE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const globalOperationKey = Symbol("globalOperation");
|
|
2
|
+
/**
|
|
3
|
+
* `@globalOperation` - specify that this operation is a global operation
|
|
4
|
+
*
|
|
5
|
+
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*/
|
|
7
|
+
export function $globalOperation(context, target) {
|
|
8
|
+
context.program.stateSet(globalOperationKey).add(target);
|
|
9
|
+
}
|
|
10
|
+
export function isGlobalOperation(program, target) {
|
|
11
|
+
return program.stateSet(globalOperationKey).has(target);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=global-operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-operation.js","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;GAIG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB;IAC3E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
|
+
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
|
+
* functions, routing interfaces and operations.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $graphDeprecated(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
|
|
8
|
+
export declare function getGraphDeprecated(program: Program, target: Type): string;
|
|
9
|
+
export declare function isGraphDeprecated(program: Program, target: Type): boolean;
|
|
10
|
+
export declare function hasGraphDeprecated(program: Program, target: Type): boolean;
|
|
11
|
+
//# sourceMappingURL=graph-deprecated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-deprecated.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE/D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAEhE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const graphDeprecatedKey = Symbol("graphDeprecated");
|
|
2
|
+
/**
|
|
3
|
+
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
|
+
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
|
+
* functions, routing interfaces and operations.
|
|
6
|
+
*/
|
|
7
|
+
export function $graphDeprecated(context, target, name) {
|
|
8
|
+
context.program.stateMap(graphDeprecatedKey).set(target, name);
|
|
9
|
+
}
|
|
10
|
+
export function getGraphDeprecated(program, target) {
|
|
11
|
+
return program.stateMap(graphDeprecatedKey).get(target);
|
|
12
|
+
}
|
|
13
|
+
export function isGraphDeprecated(program, target) {
|
|
14
|
+
return program.stateMap(graphDeprecatedKey).has(target);
|
|
15
|
+
}
|
|
16
|
+
export function hasGraphDeprecated(program, target) {
|
|
17
|
+
return program.stateMap(graphDeprecatedKey).has(target);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=graph-deprecated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-deprecated.js","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAYA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;GAIG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC;AAGD,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -30,6 +30,7 @@ export * from "./references.js";
|
|
|
30
30
|
export * from "./required-for-create.js";
|
|
31
31
|
export * from "./search.js";
|
|
32
32
|
export * from "./skip.js";
|
|
33
|
+
export * from "./term.js";
|
|
33
34
|
export * from "./top.js";
|
|
34
35
|
export * from "./workload-name-msa.js";
|
|
35
36
|
export * from "./workload-name.js";
|
|
@@ -37,4 +38,8 @@ export * from "./write-only.js";
|
|
|
37
38
|
export * from "./immutable.js";
|
|
38
39
|
export * from "./allowed-values.js";
|
|
39
40
|
export * from "./partial.js";
|
|
41
|
+
export * from "./experimental.js";
|
|
42
|
+
export * from "./graph-deprecated.js";
|
|
43
|
+
export * from "./ownerless.js";
|
|
44
|
+
export * from "./global-operation.js";
|
|
40
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
|
|
@@ -30,6 +30,7 @@ export * from "./references.js";
|
|
|
30
30
|
export * from "./required-for-create.js";
|
|
31
31
|
export * from "./search.js";
|
|
32
32
|
export * from "./skip.js";
|
|
33
|
+
export * from "./term.js";
|
|
33
34
|
export * from "./top.js";
|
|
34
35
|
export * from "./workload-name-msa.js";
|
|
35
36
|
export * from "./workload-name.js";
|
|
@@ -37,4 +38,8 @@ export * from "./write-only.js";
|
|
|
37
38
|
export * from "./immutable.js";
|
|
38
39
|
export * from "./allowed-values.js";
|
|
39
40
|
export * from "./partial.js";
|
|
41
|
+
export * from "./experimental.js";
|
|
42
|
+
export * from "./graph-deprecated.js";
|
|
43
|
+
export * from "./ownerless.js";
|
|
44
|
+
export * from "./global-operation.js";
|
|
40
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,W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AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export function $isOwner(context, target, value) {
|
|
|
9
9
|
context.program.stateMap(isOwnerKey).set(target, value);
|
|
10
10
|
}
|
|
11
11
|
export function hasIsOwner(program, target) {
|
|
12
|
-
return program.
|
|
12
|
+
return program.stateMap(isOwnerKey).has(target);
|
|
13
13
|
}
|
|
14
14
|
export function getIsOwnerAttribute(program, target) {
|
|
15
15
|
return program.stateMap(isOwnerKey).get(target);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DecoratorContext, Interface, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@ownerless` - mark an interface as ownerless
|
|
4
|
+
* '@ownerless' can only be applied to Interfaces.
|
|
5
|
+
*/
|
|
6
|
+
export declare function $ownerless(context: DecoratorContext, target: Interface): void;
|
|
7
|
+
export declare function isOwnerless(program: Program, target: Interface): boolean;
|
|
8
|
+
//# sourceMappingURL=ownerless.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownerless.d.ts","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;GAGG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7E;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE9D"}
|