@microsoft/typespec-msgraph 0.0.1-Preview.6 → 0.0.1-Preview.8
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 +5 -5
- package/dist/src/components/annotations.d.ts.map +1 -1
- package/dist/src/components/annotations.js +21 -20
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +2 -2
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +3 -3
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/filter-restrictions-annotation.js +10 -0
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
- package/dist/src/components/immutable-annotation.d.ts +5 -0
- package/dist/src/components/immutable-annotation.d.ts.map +1 -0
- package/dist/src/components/immutable-annotation.js +6 -0
- package/dist/src/components/immutable-annotation.js.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.js +10 -0
- package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +4 -2
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +6 -6
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +2 -2
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -1
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +3 -3
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +2 -2
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/decorators/action.d.ts +10 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +16 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/filter.d.ts +11 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +27 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +1 -1
- package/dist/src/decorators/graph-route.d.ts.map +1 -1
- package/dist/src/decorators/graph-route.js +12 -7
- package/dist/src/decorators/graph-route.js.map +1 -1
- package/dist/src/decorators/immutable.d.ts +8 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +12 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +4 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +4 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/required-for-create.d.ts +10 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +14 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +20 -17
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +69 -48
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.js +1 -1
- package/dist/src/entities/entity-container.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 +2 -1
- 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 +34 -8
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +1 -2
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/property.d.ts.map +1 -1
- package/dist/src/entities/property.js +3 -0
- package/dist/src/entities/property.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +1 -1
- package/dist/src/entities/revision-definition.js +3 -3
- package/dist/src/lib.d.ts +16 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +4 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +4 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
- package/dist/src/rules/count.js +2 -2
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +33 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- package/dist/src/rules/extends-on-same-type.d.ts +2 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +38 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +4 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +92 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +5 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +39 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +7 -3
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +7 -89
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +2 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +25 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.js +2 -2
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts +2 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +40 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/search.js +2 -2
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.js +2 -2
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.js +2 -2
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +16 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +81 -31
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +32 -0
- package/lib/lib.tsp +4 -15
- package/package.json +1 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
elements: Map<string,
|
|
2
|
+
import { CollectionAnnotations, ResourceAnnotations } from "../entities/annotations.js";
|
|
3
|
+
export declare const CollectionAnnotationsList: FC<{
|
|
4
|
+
elements: Map<string, CollectionAnnotations>;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const
|
|
7
|
-
elements: Map<string,
|
|
6
|
+
export declare const ResourceAnnotationsList: FC<{
|
|
7
|
+
elements: Map<string, ResourceAnnotations>;
|
|
8
8
|
}>;
|
|
9
9
|
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAUjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAUjC,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAWxF,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;CAAE,CAIrF,CAAA;AAEN,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAAE,CAIjF,CAAA"}
|
|
@@ -8,38 +8,39 @@ import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
|
8
8
|
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
9
9
|
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
10
10
|
import { UpdateRestrictionsAnnotation } from "./update-restrictions-annotation.js";
|
|
11
|
+
import { InsertRestrictionsAnnotation } from "./insert-restrictions-annotation.js";
|
|
12
|
+
import { FilterRestrictionsAnnotation } from "./filter-restrictions-annotation.js";
|
|
11
13
|
const AnnotationsElem = (props) => React.createElement("Annotations", props);
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
const
|
|
14
|
+
export const CollectionAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(CollectionAnnotationsElement, { element: element }) });
|
|
15
|
+
export const ResourceAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(ResourceAnnotationsElement, { element: element }) });
|
|
16
|
+
const CollectionAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
15
17
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
16
18
|
React.createElement(RecordElement, null,
|
|
17
19
|
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
|
|
18
20
|
React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
|
|
19
21
|
React.createElement(RecordElement, null,
|
|
20
|
-
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.
|
|
21
|
-
React.createElement(
|
|
22
|
-
|
|
23
|
-
React.createElement(PropertyValueElement, { Property: "Insertable", Bool: element.HasPostOnCollection }))),
|
|
24
|
-
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnItem }),
|
|
22
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))))),
|
|
23
|
+
React.createElement(InsertRestrictionsAnnotation, { hasPostOnCollection: element.HasPostOnCollection, requiredProperties: element.RequiredProperties }),
|
|
24
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
|
|
25
25
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
26
26
|
React.createElement(RecordElement, null,
|
|
27
|
-
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.
|
|
28
|
-
React.createElement(CountRestrictionsAnnotation, {
|
|
29
|
-
React.createElement(ExpandRestrictionsAnnotation, {
|
|
30
|
-
React.createElement(SearchRestrictionsAnnotation, {
|
|
31
|
-
React.createElement(SkipSupportedAnnotation, {
|
|
32
|
-
React.createElement(
|
|
33
|
-
React.createElement(
|
|
27
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
28
|
+
React.createElement(CountRestrictionsAnnotation, { hasCountOnCollection: element.HasCountOnCollection }),
|
|
29
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
|
|
30
|
+
React.createElement(SearchRestrictionsAnnotation, { hasSearchOnCollection: element.HasSearchOnCollection }),
|
|
31
|
+
React.createElement(SkipSupportedAnnotation, { hasSkipOnCollection: element.HasSkipOnCollection }),
|
|
32
|
+
React.createElement(FilterRestrictionsAnnotation, { hasFilterOperation: element.HasFilterOperation, nonFilterableProperties: element.NonFilterableProperties }),
|
|
33
|
+
React.createElement(SortRestrictionsAnnotation, { hasSortOnCollection: element.HasSortOnCollection, nonSortableProperties: element.NonSortableProperties }),
|
|
34
|
+
React.createElement(TopSupportedAnnotation, { hasTopOnCollection: element.HasTopOnCollection }),
|
|
34
35
|
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
35
|
-
const
|
|
36
|
+
const ResourceAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
36
37
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
37
38
|
React.createElement(RecordElement, null,
|
|
38
|
-
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.
|
|
39
|
-
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.
|
|
39
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))),
|
|
40
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
|
|
40
41
|
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
41
42
|
React.createElement(RecordElement, null,
|
|
42
|
-
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.
|
|
43
|
-
React.createElement(ExpandRestrictionsAnnotation, {
|
|
43
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
44
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
|
|
44
45
|
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
45
46
|
//# 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,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;
|
|
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,oC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AqB,EAAE,OAAO,CAAC,qBAAqB,GAAI;IACtI,oBAAC,sBAAsB,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,GAAI;IAE1E,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA;AAEtB,MAAM,0BAA0B,GAAyC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,CACtF,oBAAC,eAAe,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM;IACrC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4CAA4C;QAClE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,GAAI,CAC9D,CACE;IAEpB,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,GAAG;IAE/E,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAI,CAClE,CACE;IAEpB,oBAAC,4BAA4B,IAAC,+BAA+B,EAAE,OAAO,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI;IACpK,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAKxD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const CountRestrictionsAnnotation = ({
|
|
3
|
+
export const CountRestrictionsAnnotation = ({ hasCountOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.CountRestrictions" },
|
|
4
4
|
React.createElement(RecordElement, null,
|
|
5
|
-
React.createElement(PropertyValueElement, { Property: "Countable", Bool:
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Countable", Bool: hasCountOnCollection })));
|
|
6
6
|
//# sourceMappingURL=count-restrictions-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,2BAA2B,GAA0C,CAAC,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAC7G,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6CAA6C;IACnE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,oBAAoB,GAAI,CAC3D,CACE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
export declare const ExpandRestrictionsAnnotation: FC<{
|
|
3
|
-
|
|
3
|
+
hasExpandOnCollectionOrResource: boolean;
|
|
4
4
|
nonExpandableProperties: string[] | undefined;
|
|
5
5
|
}>;
|
|
6
6
|
//# sourceMappingURL=expand-restrictions-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/expand-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"expand-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/expand-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,+BAA+B,EAAE,OAAO,CAAC;IAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,CAOjH,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, CollectionElement, NavigationPropertyPathElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const ExpandRestrictionsAnnotation = ({
|
|
3
|
+
export const ExpandRestrictionsAnnotation = ({ hasExpandOnCollectionOrResource, nonExpandableProperties }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ExpandRestrictions" },
|
|
4
4
|
React.createElement(RecordElement, null,
|
|
5
|
-
React.createElement(PropertyValueElement, { Property: "Expandable", Bool:
|
|
6
|
-
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Expandable", Bool: hasExpandOnCollectionOrResource }),
|
|
6
|
+
hasExpandOnCollectionOrResource ? React.createElement(NonExpandableProperties, { nonExpandableProperties: nonExpandableProperties }) : React.createElement(React.Fragment, null)));
|
|
7
7
|
const NonExpandableProperties = ({ nonExpandableProperties }) => React.createElement(PropertyValueElement, { Property: "NonExpandableProperties" },
|
|
8
8
|
React.createElement(CollectionElement, null, nonExpandableProperties === null || nonExpandableProperties === void 0 ? void 0 : nonExpandableProperties.map((property) => (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
9
9
|
React.createElement(React.Fragment, null, property))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/expand-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhJ,MAAM,CAAC,MAAM,4BAA4B,GACrC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"expand-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/expand-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhJ,MAAM,CAAC,MAAM,4BAA4B,GACrC,CAAC,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,EAAE,EAAE,CACjE,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,+BAA+B,GAAI;QACnF,+BAA+B,CAAC,CAAC,CAAC,oBAAC,uBAAuB,IAAC,uBAAuB,EAAE,uBAAuB,GAAG,CAAC,CAAC,CAAC,yCAAK,CAC1G,CACE,CAAA;AAExB,MAAM,uBAAuB,GAA0D,CAAC,EAAE,uBAAuB,EAAE,EAAE,EAAE,CACrH,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,yBAAyB;IACtD,oBAAC,iBAAiB,QACf,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1C,oBAAC,6BAA6B,IAAC,GAAG,EAAE,QAAQ;QAC1C,0CAAG,QAAQ,CAAI,CACe,CACjC,CAAC,CACgB,CACC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/filter-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AASlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAC5C,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC/C,CAWA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, PropertyPathElement, PropertyValueElement, RecordElement, } from "./common-elements.js";
|
|
3
|
+
export const FilterRestrictionsAnnotation = ({ hasFilterOperation, nonFilterableProperties }) => (React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.FilterRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Filterable", Bool: hasFilterOperation }),
|
|
6
|
+
hasFilterOperation ? (React.createElement(NonFilterableProperties, { nonFilterableProperties: nonFilterableProperties })) : (React.createElement(React.Fragment, null)))));
|
|
7
|
+
const NonFilterableProperties = ({ nonFilterableProperties, }) => (React.createElement(PropertyValueElement, { Property: "NonFilterableProperties" },
|
|
8
|
+
React.createElement(CollectionElement, null, nonFilterableProperties === null || nonFilterableProperties === void 0 ? void 0 : nonFilterableProperties.map((property) => (React.createElement(PropertyPathElement, { key: property },
|
|
9
|
+
React.createElement(React.Fragment, null, property)))))));
|
|
10
|
+
//# sourceMappingURL=filter-restrictions-annotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/filter-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,4BAA4B,GAGpC,CAAC,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,EAAE,CAAC,CACxD,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,kBAAkB,GAAI;QACvE,kBAAkB,CAAC,CAAC,CAAC,CACpB,oBAAC,uBAAuB,IAAC,uBAAuB,EAAE,uBAAuB,GAAI,CAC9E,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACa,CACE,CACrB,CAAC;AAEF,MAAM,uBAAuB,GAA0D,CAAC,EACtF,uBAAuB,GACxB,EAAE,EAAE,CAAC,CACJ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,yBAAyB;IACtD,oBAAC,iBAAiB,QACf,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1C,oBAAC,mBAAmB,IAAC,GAAG,EAAE,QAAQ;QAChC,0CAAG,QAAQ,CAAI,CACK,CACvB,CAAC,CACgB,CACC,CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"immutable-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/immutable-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAG9C,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement } from "./common-elements.js";
|
|
3
|
+
export const ImmutableAnnotation = ({ isImmutable }) => isImmutable
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Immutable", Bool: isImmutable })
|
|
5
|
+
: React.createElement(React.Fragment, null);
|
|
6
|
+
//# sourceMappingURL=immutable-annotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"immutable-annotation.js","sourceRoot":"","sources":["../../../src/components/immutable-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACjF,WAAW;IACP,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6BAA6B,EAAC,IAAI,EAAE,WAAW,GAAI;IAC7E,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/insert-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AASlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAC5C,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CAC1C,CAOA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, PropertyPathElement, PropertyValueElement, RecordElement, } from "./common-elements.js";
|
|
3
|
+
export const InsertRestrictionsAnnotation = ({ hasPostOnCollection, requiredProperties }) => (React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.InsertRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Insertable", Bool: hasPostOnCollection }),
|
|
6
|
+
hasPostOnCollection ? React.createElement(RequiredProperties, { requiredProperties: requiredProperties }) : React.createElement(React.Fragment, null))));
|
|
7
|
+
const RequiredProperties = ({ requiredProperties, }) => (React.createElement(PropertyValueElement, { Property: "RequiredProperties" },
|
|
8
|
+
React.createElement(CollectionElement, null, requiredProperties === null || requiredProperties === void 0 ? void 0 : requiredProperties.map((property) => (React.createElement(PropertyPathElement, { key: property },
|
|
9
|
+
React.createElement(React.Fragment, null, property)))))));
|
|
10
|
+
//# sourceMappingURL=insert-restrictions-annotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/insert-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,4BAA4B,GAGpC,CAAC,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CACpD,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,mBAAmB,GAAI;QACxE,mBAAmB,CAAC,CAAC,CAAC,oBAAC,kBAAkB,IAAC,kBAAkB,EAAE,kBAAkB,GAAI,CAAC,CAAC,CAAC,yCAAK,CAC/E,CACE,CACrB,CAAC;AAEF,MAAM,kBAAkB,GAAqD,CAAC,EAC5E,kBAAkB,GACnB,EAAE,EAAE,CAAC,CACJ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,oBAAoB;IACjD,oBAAC,iBAAiB,QACf,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACrC,oBAAC,mBAAmB,IAAC,GAAG,EAAE,QAAQ;QAChC,0CAAG,QAAQ,CAAI,CACK,CACvB,CAAC,CACgB,CACC,CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-element.d.ts","sourceRoot":"","sources":["../../../src/components/property-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"property-element.d.ts","sourceRoot":"","sources":["../../../src/components/property-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAmB5D,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE,CAGZ,CAAA"}
|
|
@@ -3,13 +3,14 @@ import { ComputedAnnotation } from "./computed-annotation.js";
|
|
|
3
3
|
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
4
4
|
import { PermissionsAnnotation } from "./permissions-annotation.js";
|
|
5
5
|
import { RevisionsAnnotation } from "./revisions-annotation.js";
|
|
6
|
+
import { ImmutableAnnotation } from "./immutable-annotation.js";
|
|
6
7
|
const Property = (props) => React.createElement("Property", props);
|
|
7
8
|
const NavigationProperty = (props) => React.createElement("NavigationProperty", props);
|
|
8
9
|
export const PropertyElement = ({ property }) => property.IsNavigation
|
|
9
10
|
? React.createElement(NavigationPropertyElement, { property: property })
|
|
10
11
|
: React.createElement(StructuralPropertyElement, { property: property });
|
|
11
12
|
const NavigationPropertyElement = ({ property }) => {
|
|
12
|
-
return (React.createElement(NavigationProperty, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsContained ? { ContainsTarget: "true" } : {}), ...property.AgsAttributes },
|
|
13
|
+
return (React.createElement(NavigationProperty, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsContained ? { ContainsTarget: "true" } : {}), ...(property.IsNullable ? {} : { Nullable: "false" }), ...property.AgsAttributes },
|
|
13
14
|
React.createElement(RevisionsAnnotation, { definition: property.RevisionDefinition }),
|
|
14
15
|
React.createElement(DescriptionAnnotation, { description: property.Description })));
|
|
15
16
|
};
|
|
@@ -18,6 +19,7 @@ const StructuralPropertyElement = ({ property }) => {
|
|
|
18
19
|
React.createElement(ComputedAnnotation, { isComputed: property.IsComputed }),
|
|
19
20
|
React.createElement(PermissionsAnnotation, { permission: property.Permission }),
|
|
20
21
|
React.createElement(RevisionsAnnotation, { definition: property.RevisionDefinition }),
|
|
21
|
-
React.createElement(DescriptionAnnotation, { description: property.Description })
|
|
22
|
+
React.createElement(DescriptionAnnotation, { description: property.Description }),
|
|
23
|
+
React.createElement(ImmutableAnnotation, { isImmutable: property.isImmutable })));
|
|
22
24
|
};
|
|
23
25
|
//# sourceMappingURL=property-element.js.map
|
|
@@ -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;AACp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,EAAE,CAAC;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,
|
|
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;AAkB5D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,CAe7D,CAAC"}
|
|
@@ -5,7 +5,7 @@ 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 {
|
|
8
|
+
import { CollectionAnnotationsList, ResourceAnnotationsList } from "./annotations.js";
|
|
9
9
|
const Schema = (props) => React.createElement("Schema", {
|
|
10
10
|
...props,
|
|
11
11
|
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
@@ -17,11 +17,11 @@ export const SchemaElement = ({ namespace }) => {
|
|
|
17
17
|
React.createElement(ModelList, { models: namespace.Models }),
|
|
18
18
|
React.createElement(OperationList, { operations: namespace.Operations }),
|
|
19
19
|
React.createElement(EntityContainerElement, { singletons: namespace.Singletons, entitySets: namespace.EntitySets, agsAttributes: namespace.AgsAttributes }),
|
|
20
|
-
React.createElement(
|
|
21
|
-
React.createElement(
|
|
20
|
+
React.createElement(ResourceAnnotationsList, { elements: namespace.ResourceAnnotations }),
|
|
21
|
+
React.createElement(CollectionAnnotationsList, { elements: namespace.CollectionAnnotations })));
|
|
22
22
|
};
|
|
23
23
|
const ModelList = ({ models }) => {
|
|
24
|
-
return React.createElement(ItemList, { items: models, render: (model) => {
|
|
24
|
+
return (React.createElement(ItemList, { items: models, render: (model) => {
|
|
25
25
|
switch (model.Kind) {
|
|
26
26
|
case MsGraphModelKind.Entity: {
|
|
27
27
|
return React.createElement(EntityTypeElement, { model: model });
|
|
@@ -33,9 +33,9 @@ const ModelList = ({ models }) => {
|
|
|
33
33
|
return React.createElement(React.Fragment, null);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
} });
|
|
36
|
+
} }));
|
|
37
37
|
};
|
|
38
38
|
const OperationList = ({ operations }) => {
|
|
39
|
-
return React.createElement(ItemList, { items: operations, render: (operation) => React.createElement(OperationElement, { element: operation }) });
|
|
39
|
+
return (React.createElement(ItemList, { items: operations, render: (operation) => React.createElement(OperationElement, { element: operation }) }));
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=schema-element.js.map
|
|
@@ -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,OAAO,EAAE,gBAAgB,EAAgB,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,
|
|
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,EAA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AAK,gBAAgB,CAAC,MAAM,CAAC,CAAC;oBAC5B,OAAO,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;iBAC5C;gBACD,KAAK,gBAAgB,CAAC,OAAO,CAAC,CAAC;oBAC7B,OAAO,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;iBAC7C;gBACD,OAAO,CAAC,CAAC;oBACP,OAAO,yCAAK,CAAC;iBACd;aACF;QACH,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAA2C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,oBAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,SAAS,GAAI,GAAI,CACjG,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/search-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"search-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/search-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,qBAAqB,EAAE,OAAO,CAAA;CAAE,CAK1D,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const SearchRestrictionsAnnotation = ({
|
|
3
|
+
export const SearchRestrictionsAnnotation = ({ hasSearchOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.SearchRestrictions" },
|
|
4
4
|
React.createElement(RecordElement, null,
|
|
5
|
-
React.createElement(PropertyValueElement, { Property: "Searchable", Bool:
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Searchable", Bool: hasSearchOnCollection })));
|
|
6
6
|
//# sourceMappingURL=search-restrictions-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/search-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"search-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/search-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,4BAA4B,GAA2C,CAAC,EAAE,qBAAqB,EAAE,EAAE,EAAE,CAChH,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,qBAAqB,GAAI,CAC7D,CACE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-supported-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/skip-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"skip-supported-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/skip-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,mBAAmB,EAAE,OAAO,CAAA;CAAE,CACwB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
3
|
-
export const SkipSupportedAnnotation = ({
|
|
3
|
+
export const SkipSupportedAnnotation = ({ hasSkipOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.SkipSupported", Bool: hasSkipOnCollection });
|
|
4
4
|
//# sourceMappingURL=skip-supported-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-supported-annotation.js","sourceRoot":"","sources":["../../../src/components/skip-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"skip-supported-annotation.js","sourceRoot":"","sources":["../../../src/components/skip-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAyC,CAAC,EAAE,mBAAmB,EAAE,EAAE,EAAE,CACvG,oBAAC,iBAAiB,IAAC,IAAI,EAAC,yCAAyC,EAAC,IAAI,EAAE,mBAAmB,GAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/sort-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,0BAA0B,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"sort-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/sort-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,0BAA0B,EAAE,EAAE,CAAC;IAAE,mBAAmB,EAAE,OAAO,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,CAOjG,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, CollectionElement, PropertyPathElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const SortRestrictionsAnnotation = ({
|
|
3
|
+
export const SortRestrictionsAnnotation = ({ hasSortOnCollection, nonSortableProperties }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.SortRestrictions" },
|
|
4
4
|
React.createElement(RecordElement, null,
|
|
5
|
-
React.createElement(PropertyValueElement, { Property: "Sortable", Bool:
|
|
6
|
-
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Sortable", Bool: hasSortOnCollection }),
|
|
6
|
+
hasSortOnCollection ? React.createElement(NonSortableProperties, { nonSortableProperties: nonSortableProperties }) : React.createElement(React.Fragment, null)));
|
|
7
7
|
const NonSortableProperties = ({ nonSortableProperties }) => React.createElement(PropertyValueElement, { Property: "NonSortableProperties" },
|
|
8
8
|
React.createElement(CollectionElement, null, nonSortableProperties === null || nonSortableProperties === void 0 ? void 0 : nonSortableProperties.map((property) => (React.createElement(PropertyPathElement, { key: property },
|
|
9
9
|
React.createElement(React.Fragment, null, property))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/sort-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtI,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"sort-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/sort-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtI,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAC,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,EAAE,EAAE,CACnD,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4CAA4C;IAClE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAE,mBAAmB,GAAI;QACrE,mBAAmB,CAAC,CAAC,CAAC,oBAAC,qBAAqB,IAAC,qBAAqB,EAAE,qBAAqB,GAAG,CAAC,CAAC,CAAC,yCAAK,CACxF,CACE,CAAA;AAExB,MAAM,qBAAqB,GAAwD,CAAC,EAAE,qBAAqB,EAAE,EAAE,EAAE,CAC/G,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,uBAAuB;IACpD,oBAAC,iBAAiB,QACf,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACxC,oBAAC,mBAAmB,IAAC,GAAG,EAAE,QAAQ;QAChC,0CAAG,QAAQ,CAAI,CACK,CACvB,CAAC,CACgB,CACC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-supported-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/top-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,
|
|
1
|
+
{"version":3,"file":"top-supported-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/top-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,kBAAkB,EAAE,OAAO,CAAA;CAAE,CAEtE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
3
|
-
export const TopSupportedAnnotation = ({
|
|
4
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.TopSupported", Bool:
|
|
3
|
+
export const TopSupportedAnnotation = ({ hasTopOnCollection }) => {
|
|
4
|
+
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.TopSupported", Bool: hasTopOnCollection });
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=top-supported-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-supported-annotation.js","sourceRoot":"","sources":["../../../src/components/top-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"top-supported-annotation.js","sourceRoot":"","sources":["../../../src/components/top-supported-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,sBAAsB,GAAwC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACpG,OAAO,oBAAC,iBAAiB,IAAC,IAAI,EAAC,gCAAgC,EAAC,IAAI,EAAE,kBAAkB,GAAI,CAAC;AAC/F,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@action` - mark an operation as an action
|
|
4
|
+
*
|
|
5
|
+
* `@action` can only be applied to operations.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $action(context: DecoratorContext, target: Operation, name?: string): void;
|
|
8
|
+
export declare function isAction(program: Program, target: Operation): boolean;
|
|
9
|
+
export declare function getAction(program: Program, target: Operation): string | undefined;
|
|
10
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,QAElF;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE3D;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAEjF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const actionKey = Symbol("action");
|
|
2
|
+
/**
|
|
3
|
+
* `@action` - mark an operation as an action
|
|
4
|
+
*
|
|
5
|
+
* `@action` can only be applied to operations.
|
|
6
|
+
*/
|
|
7
|
+
export function $action(context, target, name) {
|
|
8
|
+
context.program.stateMap(actionKey).set(target, name || target.name);
|
|
9
|
+
}
|
|
10
|
+
export function isAction(program, target) {
|
|
11
|
+
return program.stateMap(actionKey).has(target);
|
|
12
|
+
}
|
|
13
|
+
export function getAction(program, target) {
|
|
14
|
+
return program.stateMap(actionKey).get(target);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAiB,EAAE,IAAa;IACjF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAiB;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@filter` - Applies to: get operations that return collections of @entity or @complex models.
|
|
4
|
+
* Indicates that the get operation supports OData $filter query parameter.
|
|
5
|
+
*
|
|
6
|
+
* `properties` - List of property names in the model returned from the get operation that can be used in $filter query parameter.
|
|
7
|
+
*/
|
|
8
|
+
export declare function $filter(context: DecoratorContext, target: Operation, properties: string): void;
|
|
9
|
+
export declare function getFilter(program: Program, target: Operation): string[];
|
|
10
|
+
export declare function isFilter(program: Program, target: Operation): boolean;
|
|
11
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/decorators/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAGvF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const filterKey = Symbol("filter");
|
|
2
|
+
/**
|
|
3
|
+
* `@filter` - Applies to: get operations that return collections of @entity or @complex models.
|
|
4
|
+
* Indicates that the get operation supports OData $filter query parameter.
|
|
5
|
+
*
|
|
6
|
+
* `properties` - List of property names in the model returned from the get operation that can be used in $filter query parameter.
|
|
7
|
+
*/
|
|
8
|
+
export function $filter(context, target, properties) {
|
|
9
|
+
const filterProperties = unpackFilterProperties(properties);
|
|
10
|
+
context.program.stateMap(filterKey).set(target, filterProperties);
|
|
11
|
+
}
|
|
12
|
+
export function getFilter(program, target) {
|
|
13
|
+
return program.stateMap(filterKey).get(target) || [];
|
|
14
|
+
}
|
|
15
|
+
export function isFilter(program, target) {
|
|
16
|
+
return program.stateMap(filterKey).has(target);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* unpacks filter parameters from a comma seperated list in string form.
|
|
20
|
+
*
|
|
21
|
+
* @param properties string containing comma separated list of filter parameters.
|
|
22
|
+
* @returns string array of the filter parameters
|
|
23
|
+
*/
|
|
24
|
+
function unpackFilterProperties(properties) {
|
|
25
|
+
return properties ? properties.split(",").map((prop) => prop.trim()) : [];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/decorators/filter.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAiB,EAAE,UAAkB;IACtF,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC5D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAiB;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,SAAS,sBAAsB,CAAC,UAAkB;IAChD,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC5E,CAAC"}
|