@microsoft/typespec-msgraph 0.0.1-Preview.4 → 0.0.1-Preview.5
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/alternate-keys-annotation.js +4 -4
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/annotations.d.ts +9 -0
- package/dist/src/components/annotations.d.ts.map +1 -0
- package/dist/src/components/annotations.js +50 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +17 -4
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +2 -2
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.js +1 -1
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +3 -8
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +1 -0
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +18 -3
- package/dist/src/components/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +6 -42
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +7 -13
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/operation-element.js +3 -3
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +6 -3
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +3 -8
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -6
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +7 -13
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +4 -7
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +21 -23
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +1 -4
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +4 -3
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +21 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +13 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +68 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/delta-collection.d.ts +8 -0
- package/dist/src/decorators/delta-collection.d.ts.map +1 -0
- package/dist/src/decorators/delta-collection.js +12 -0
- package/dist/src/decorators/delta-collection.js.map +1 -0
- package/dist/src/decorators/deprecated-definition.d.ts +3 -4
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js +1 -7
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +1 -2
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +1 -1
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/function.d.ts +1 -2
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +1 -1
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/graph-route.d.ts +9 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +84 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/has-stream.d.ts +1 -2
- package/dist/src/decorators/has-stream.d.ts.map +1 -1
- package/dist/src/decorators/has-stream.js +1 -1
- package/dist/src/decorators/has-stream.js.map +1 -1
- package/dist/src/decorators/index.d.ts +9 -2
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +9 -2
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +9 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +14 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/order-by.d.ts +1 -2
- package/dist/src/decorators/order-by.d.ts.map +1 -1
- package/dist/src/decorators/order-by.js +1 -1
- package/dist/src/decorators/order-by.js.map +1 -1
- package/dist/src/decorators/paged-collection.d.ts +8 -0
- package/dist/src/decorators/paged-collection.d.ts.map +1 -0
- package/dist/src/decorators/paged-collection.js +12 -0
- package/dist/src/decorators/paged-collection.js.map +1 -0
- package/dist/src/decorators/private-preview-definition.d.ts +3 -4
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +1 -6
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +1 -2
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +1 -1
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +9 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +13 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/workload-name-msa.d.ts +9 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +13 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +9 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +13 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +30 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +97 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +3 -24
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +24 -118
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/enum.d.ts.map +1 -1
- package/dist/src/entities/enum.js +3 -3
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +12 -22
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +64 -101
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +7 -2
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +20 -13
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +2 -2
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +30 -14
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +25 -25
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +3 -1
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +4 -1
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +5 -7
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +1 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/order-by.d.ts +1 -1
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +11 -10
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +3 -1
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +3 -1
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +3 -1
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +16 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +89 -1
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +90 -14
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +9 -14
- package/lib/msgraph.tsp +4 -0
- package/lib/porcelain.tsp +135 -0
- package/lib/responses.tsp +82 -0
- package/lib/shared-models.tsp +74 -0
- package/package.json +1 -2
- package/dist/src/decorators/attribute-builder.d.ts +0 -2
- package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
- package/dist/src/decorators/attribute-builder.js +0 -166
- package/dist/src/decorators/attribute-builder.js.map +0 -1
- package/dist/src/decorators/attributes.d.ts +0 -57
- package/dist/src/decorators/attributes.d.ts.map +0 -1
- package/dist/src/decorators/attributes.js +0 -50
- package/dist/src/decorators/attributes.js.map +0 -1
- package/dist/src/decorators/decorator-parameter.d.ts +0 -4
- package/dist/src/decorators/decorator-parameter.d.ts.map +0 -1
- package/dist/src/decorators/decorator-parameter.js +0 -2
- package/dist/src/decorators/decorator-parameter.js.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -38
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -8
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
- package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
- package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/index.js +0 -3
- package/dist/src/decorators/handlers/custom/index.js.map +0 -1
- package/dist/src/decorators/handlers/index.d.ts +0 -31
- package/dist/src/decorators/handlers/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/index.js +0 -121
- package/dist/src/decorators/handlers/index.js.map +0 -1
|
@@ -5,7 +5,7 @@ export const AlternateKeysAnnotation = ({ alternateKeys }) => {
|
|
|
5
5
|
return React.createElement(React.Fragment, null);
|
|
6
6
|
}
|
|
7
7
|
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.AlternateKeys" },
|
|
8
|
-
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.name },
|
|
8
|
+
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.ModelProperty.name },
|
|
9
9
|
React.createElement(PropertyValueElement, { Property: "Key" },
|
|
10
10
|
React.createElement(CollectionElement, null,
|
|
11
11
|
React.createElement(AlternateKeyRecord, { property: key })))))))));
|
|
@@ -13,10 +13,10 @@ export const AlternateKeysAnnotation = ({ alternateKeys }) => {
|
|
|
13
13
|
const AlternateKeyRecord = ({ property }) => {
|
|
14
14
|
if (!property.IsModel) {
|
|
15
15
|
return (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef" },
|
|
16
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.name })));
|
|
16
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.ModelProperty.name })));
|
|
17
17
|
}
|
|
18
|
-
return (React.createElement(React.Fragment, null, [...property.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
19
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.name}/${prop.name}` }),
|
|
18
|
+
return (React.createElement(React.Fragment, null, [...property.ModelProperty.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
19
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.ModelProperty.name}/${prop.name}` }),
|
|
20
20
|
React.createElement(PropertyValueElement, { Property: "Alias", String: prop.name }))))));
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=alternate-keys-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGjH,MAAM,CAAC,MAAM,uBAAuB,GAAkD,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;IAC1G,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE;QACzB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,iCAAiC;QACvD,oBAAC,iBAAiB,QACf,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC1B,oBAAC,aAAa,IAAC,IAAI,EAAC,gCAAgC,EAAC,GAAG,EAAE,GAAG,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBA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AY,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI;QACrG,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,GAAI,CAC9C,CACjB,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { EntitySetAnnotations, SingletonAnnotations } from "../entities/annotations.js";
|
|
3
|
+
export declare const EntitySetAnnotationsList: FC<{
|
|
4
|
+
elements: EntitySetAnnotations[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const SingletonAnnotationsList: FC<{
|
|
7
|
+
elements: SingletonAnnotations[];
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AASxF,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAIxE,CAAA;AAEN,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAIxE,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
|
|
3
|
+
import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
|
|
4
|
+
import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
|
|
5
|
+
import { AnnotationElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
6
|
+
import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
|
|
7
|
+
import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
8
|
+
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
9
|
+
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
10
|
+
const AnnotationsElem = (props) => React.createElement("Annotations", props);
|
|
11
|
+
export const EntitySetAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetAnnotationsElement, { element: element }) });
|
|
12
|
+
export const SingletonAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(SingletonAnnotationsElement, { element: element }) });
|
|
13
|
+
const EntitySetAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
14
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
15
|
+
React.createElement(RecordElement, null,
|
|
16
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
|
|
17
|
+
React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
|
|
18
|
+
React.createElement(RecordElement, null,
|
|
19
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnItem }))))),
|
|
20
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.InsertRestrictions" },
|
|
21
|
+
React.createElement(RecordElement, null,
|
|
22
|
+
React.createElement(PropertyValueElement, { Property: "Insertable", Bool: element.HasPostOnCollection }))),
|
|
23
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.UpdateRestrictions" },
|
|
24
|
+
React.createElement(RecordElement, null,
|
|
25
|
+
React.createElement(PropertyValueElement, { Property: "Updatable", Bool: element.HasPatchOnItem }),
|
|
26
|
+
React.createElement(PropertyValueElement, { Property: "UpdateMethod", EnumMember: "Org.OData.Capabilities.V1.HttpMethod/PATCH" }))),
|
|
27
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
28
|
+
React.createElement(RecordElement, null,
|
|
29
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnItem }))),
|
|
30
|
+
React.createElement(CountRestrictionsAnnotation, { hasCountOperation: element.HasCountOperation }),
|
|
31
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOperation: element.HasExpandOperation, nonExpandableProperties: element.NonExpandableProperties }),
|
|
32
|
+
React.createElement(SearchRestrictionsAnnotation, { hasSearchOperation: element.HasSearchOperation }),
|
|
33
|
+
React.createElement(SkipSupportedAnnotation, { hasSkipOperation: element.HasSkipOperation }),
|
|
34
|
+
React.createElement(SortRestrictionsAnnotation, { hasSortOperation: element.HasSortOperation, nonSortableProperties: element.NonSortableProperties }),
|
|
35
|
+
React.createElement(TopSupportedAnnotation, { hasTopOperation: element.HasTopOperation }),
|
|
36
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
37
|
+
const SingletonAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
38
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
39
|
+
React.createElement(RecordElement, null,
|
|
40
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnItem }))),
|
|
41
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.UpdateRestrictions" },
|
|
42
|
+
React.createElement(RecordElement, null,
|
|
43
|
+
React.createElement(PropertyValueElement, { Property: "Updatable", Bool: element.HasPatchOnItem }),
|
|
44
|
+
React.createElement(PropertyValueElement, { Property: "UpdateMethod", EnumMember: "Org.OData.Capabilities.V1.HttpMethod/PATCH" }))),
|
|
45
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
46
|
+
React.createElement(RecordElement, null,
|
|
47
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnItem }))),
|
|
48
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOperation: element.HasExpandOperation, nonExpandableProperties: element.NonExpandableProperties }),
|
|
49
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
50
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +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;AAQpE,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAE/F,MAAM,CAAC,MAAM,wBAAwB,GAA6C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAC/F,oBAAC,QAAQ,IACL,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,2BAA2B,IAAC,OAAO,EAAE,OAAO,GAAI,GACxE,CAAA;AAEN,MAAM,CAAC,MAAM,wBAAwB,GAA6C,CAAC,EAAE,QAAQ,EAAE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,eAAe,GAAI,CAC9D,CACE;IAEpB,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI;IAC1I,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
|
|
@@ -2,10 +2,15 @@ import React, { ReactElement } from "react";
|
|
|
2
2
|
interface AnnotationProps {
|
|
3
3
|
Term: string;
|
|
4
4
|
String?: string;
|
|
5
|
-
Bool?:
|
|
5
|
+
Bool?: boolean;
|
|
6
6
|
children?: any;
|
|
7
7
|
}
|
|
8
|
-
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<
|
|
8
|
+
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<{
|
|
9
|
+
Bool: string | undefined;
|
|
10
|
+
Term: string;
|
|
11
|
+
String?: string | undefined;
|
|
12
|
+
children?: any;
|
|
13
|
+
}, Element>;
|
|
9
14
|
export declare const AnnotationEnumMemberElement: (props: {
|
|
10
15
|
children?: any;
|
|
11
16
|
}) => React.DOMElement<{
|
|
@@ -43,11 +48,19 @@ interface PropertyValueProps {
|
|
|
43
48
|
Date?: string;
|
|
44
49
|
EnumMember?: string;
|
|
45
50
|
String?: string;
|
|
46
|
-
Bool?:
|
|
51
|
+
Bool?: boolean;
|
|
47
52
|
PropertyPath?: string;
|
|
48
53
|
children?: any;
|
|
49
54
|
}
|
|
50
|
-
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<
|
|
55
|
+
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<{
|
|
56
|
+
Bool: string | undefined;
|
|
57
|
+
Property: string;
|
|
58
|
+
Date?: string | undefined;
|
|
59
|
+
EnumMember?: string | undefined;
|
|
60
|
+
String?: string | undefined;
|
|
61
|
+
PropertyPath?: string | undefined;
|
|
62
|
+
children?: any;
|
|
63
|
+
}, Element>;
|
|
51
64
|
interface ItemListProps<T> {
|
|
52
65
|
items: Map<string, T> | T[];
|
|
53
66
|
render: (t: T) => ReactElement<any, any> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,UAAW,eAAe;;UANhD,MAAM;;eAGD,GAAG;WAGwH,CAAC;AAEzI,eAAO,MAAM,2BAA2B,UAAW;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE;eAAL,GAAG;WAA+C,CAAC;AAEnH,eAAO,MAAM,iBAAiB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA+C,CAAC;AAExG,eAAO,MAAM,aAAa,UAAW;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE;;cAAL,GAAG;WAA2C,CAAC;AAE/G,eAAO,MAAM,aAAa,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2C,CAAC;AAEhG,eAAO,MAAM,6BAA6B,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2D,CAAC;AAEhI,eAAO,MAAM,mBAAmB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAAiD,CAAC;AAE5G,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,UAAW,kBAAkB;;cARlD,MAAM;;;;;eAML,GAAG;WAEiI,CAAC;AAElJ,UAAU,aAAa,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,QAAQ,4DAYpB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export const AnnotationElement = (props) => React.createElement("Annotation", props);
|
|
2
|
+
export const AnnotationElement = (props) => { var _a; return React.createElement("Annotation", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
3
3
|
export const AnnotationEnumMemberElement = (props) => React.createElement("EnumMember", props);
|
|
4
4
|
export const CollectionElement = (props) => React.createElement("Collection", props);
|
|
5
5
|
export const RecordElement = (props) => React.createElement("Record", props);
|
|
6
6
|
export const StringElement = (props) => React.createElement("String", props);
|
|
7
7
|
export const NavigationPropertyPathElement = (props) => React.createElement("NavigationPropertyPath", props);
|
|
8
8
|
export const PropertyPathElement = (props) => React.createElement("PropertyPath", props);
|
|
9
|
-
export const PropertyValueElement = (props) => React.createElement("PropertyValue", props);
|
|
9
|
+
export const PropertyValueElement = (props) => { var _a; return React.createElement("PropertyValue", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
10
10
|
export const ItemList = (props) => {
|
|
11
11
|
if (isEmpty(props.items)) {
|
|
12
12
|
return React.createElement(React.Fragment, null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAS5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAsB,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAS5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAsB,EAAE,EAAE,WAAC,OAAA,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,0CAAE,QAAQ,EAAE,EAAC,CAAC,CAAA,EAAA,CAAC;AAEzI,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAyB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAEnH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAuC,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE/G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,C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React from "react";
|
|
2
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
3
3
|
export const ComputedAnnotation = ({ isComputed }) => isComputed
|
|
4
|
-
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool:
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: isComputed })
|
|
5
5
|
: React.createElement(React.Fragment, null);
|
|
6
6
|
//# sourceMappingURL=computed-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAgC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAChF,UAAU;IACR,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4BAA4B,EAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAgC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAChF,UAAU;IACR,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4BAA4B,EAAC,IAAI,EAAE,UAAU,GAAI;IAC3E,CAAC,CAAC,yCAAK,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,iBAAiB,EAAE,OAAO,CAAA;CAAE,
|
|
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,iBAAiB,EAAE,OAAO,CAAA;CAAE,CAKrD,CAAA"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const CountRestrictionsAnnotation = ({ hasCountOperation }) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.CountRestrictions" },
|
|
8
|
-
React.createElement(RecordElement, null,
|
|
9
|
-
React.createElement(PropertyValueElement, { Property: "Countable", Bool: "false" }))));
|
|
10
|
-
};
|
|
3
|
+
export const CountRestrictionsAnnotation = ({ hasCountOperation }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.CountRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Countable", Bool: hasCountOperation })));
|
|
11
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,GAAuC,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE
|
|
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,GAAuC,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,CACvG,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6CAA6C;IACnE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,iBAAiB,GAAI,CACxD,CACE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
3
|
+
// ToDo: add unit tests to Description annotation
|
|
3
4
|
export const DescriptionAnnotation = ({ description }) => description
|
|
4
5
|
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: description })
|
|
5
6
|
: React.createElement(React.Fragment, null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAA4C,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAChG,WAAW;IACT,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,WAAW,GAAI;IACjF,CAAC,CAAC,yCAAK,CAAA"}
|
|
1
|
+
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAA4C,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAChG,WAAW;IACT,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,WAAW,GAAI;IACjF,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { EntitySet, Singleton } from "../entities/entity-container.js";
|
|
3
|
+
interface SingletonProps {
|
|
4
|
+
Name: string | undefined;
|
|
5
|
+
Type: string;
|
|
6
|
+
children?: any;
|
|
7
|
+
}
|
|
8
|
+
declare const Singleton: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
|
|
9
|
+
interface EntitySetProps {
|
|
10
|
+
Name: string | undefined;
|
|
11
|
+
EntityType: string;
|
|
12
|
+
children?: any;
|
|
13
|
+
}
|
|
14
|
+
declare const EntitySet: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
|
|
3
15
|
export declare const EntityContainerElement: FC<{
|
|
4
|
-
|
|
16
|
+
singletons: Singleton[];
|
|
17
|
+
entitySets: EntitySet[];
|
|
18
|
+
agsAttributes: Record<string, string>;
|
|
5
19
|
}>;
|
|
20
|
+
export {};
|
|
6
21
|
//# sourceMappingURL=entity-container-element.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAQvE,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAQf,CAAA"}
|
|
@@ -1,58 +1,22 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
|
|
4
|
-
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
5
|
-
import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
|
|
6
|
-
import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
|
|
7
|
-
import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
|
|
8
|
-
import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
9
|
-
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
2
|
+
import { ItemList } from "./common-elements.js";
|
|
10
3
|
const EntityContainerElem = (props) => React.createElement("EntityContainer", props);
|
|
11
4
|
const Singleton = (props) => React.createElement("Singleton", props);
|
|
12
5
|
const EntitySet = (props) => React.createElement("EntitySet", props);
|
|
13
|
-
export const EntityContainerElement = ({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
React.createElement(EntitySetList, { elements: element.EntitySetElements }))
|
|
17
|
-
: React.createElement(React.Fragment, null);
|
|
6
|
+
export const EntityContainerElement = ({ singletons, entitySets, agsAttributes, }) => React.createElement(EntityContainerElem, { Name: "container", ...agsAttributes },
|
|
7
|
+
React.createElement(SingletonList, { elements: singletons }),
|
|
8
|
+
React.createElement(EntitySetList, { elements: entitySets }));
|
|
18
9
|
const SingletonList = ({ elements }) => {
|
|
19
10
|
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(SingletonElement, { element: element }) }));
|
|
20
11
|
};
|
|
21
12
|
const EntitySetList = ({ elements }) => {
|
|
22
13
|
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetElement, { element: element }) }));
|
|
23
14
|
};
|
|
24
|
-
const SingletonElement = ({ element }) => {
|
|
25
|
-
return (React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes },
|
|
26
|
-
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOperation: element.HasExpandOperation, nonExpandableProperties: element.NonExpandableProperties }),
|
|
27
|
-
React.createElement(DescriptionAnnotation, { description: element.Description })));
|
|
28
|
-
};
|
|
15
|
+
const SingletonElement = ({ element }) => React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes });
|
|
29
16
|
const EntitySetElement = ({ element }) => {
|
|
30
17
|
if (!element.TypeName) {
|
|
31
18
|
return React.createElement(React.Fragment, null);
|
|
32
19
|
}
|
|
33
|
-
return
|
|
34
|
-
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
35
|
-
React.createElement(RecordElement, null,
|
|
36
|
-
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection.toString() }),
|
|
37
|
-
React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
|
|
38
|
-
React.createElement(RecordElement, null,
|
|
39
|
-
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnItem.toString() }))))),
|
|
40
|
-
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.InsertRestrictions" },
|
|
41
|
-
React.createElement(RecordElement, null,
|
|
42
|
-
React.createElement(PropertyValueElement, { Property: "Insertable", Bool: element.HasPostOnCollection.toString() }))),
|
|
43
|
-
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.UpdateRestrictions" },
|
|
44
|
-
React.createElement(RecordElement, null,
|
|
45
|
-
React.createElement(PropertyValueElement, { Property: "Updatable", Bool: element.HasPatchOnItem.toString() }),
|
|
46
|
-
React.createElement(PropertyValueElement, { Property: "UpdateMethod", EnumMember: "Org.OData.Capabilities.V1.HttpMethod/PATCH" }))),
|
|
47
|
-
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
48
|
-
React.createElement(RecordElement, null,
|
|
49
|
-
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnItem.toString() }))),
|
|
50
|
-
React.createElement(CountRestrictionsAnnotation, { hasCountOperation: element.HasCountOperation }),
|
|
51
|
-
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOperation: element.HasExpandOperation, nonExpandableProperties: element.NonExpandableProperties }),
|
|
52
|
-
React.createElement(SearchRestrictionsAnnotation, { hasSearchOperation: element.HasSearchOperation }),
|
|
53
|
-
React.createElement(SkipSupportedAnnotation, { hasSkipOperation: element.HasSkipOperation }),
|
|
54
|
-
React.createElement(SortRestrictionsAnnotation, { hasSortOperation: element.HasSortOperation, nonSortableProperties: element.NonSortableProperties }),
|
|
55
|
-
React.createElement(TopSupportedAnnotation, { hasTopOperation: element.HasTopOperation }),
|
|
56
|
-
React.createElement(DescriptionAnnotation, { description: element.Description })));
|
|
20
|
+
return React.createElement(EntitySet, { Name: element.Name, EntityType: element.TypeName, ...element.AgsAttributes });
|
|
57
21
|
};
|
|
58
22
|
//# sourceMappingURL=entity-container-element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container-element.js","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"entity-container-element.js","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,mBAAmB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAO3G,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAOrF,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,sBAAsB,GAGU,CAAC,EAC1C,UAAU,EACV,UAAU,EACV,aAAa,GACd,EAAE,EAAE,CACH,oBAAC,mBAAmB,IAAC,IAAI,EAAC,WAAW,KAAK,aAAa;IACrD,oBAAC,aAAa,IAAC,QAAQ,EAAE,UAAU,GAAI;IACvC,oBAAC,aAAa,IAAC,QAAQ,EAAE,UAAU,GAAI,CACnB,CAAA;AAE1B,MAAM,aAAa,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAA+B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CACjE,oBAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,KAAM,OAAO,CAAC,aAAa,GAAI,CAAA;AAExF,MAAM,gBAAgB,GAA+B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACnE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;QACrB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,oBAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,QAAQ,KAAM,OAAO,CAAC,aAAa,GAAI,CAAC;AACpG,CAAC,CAAC"}
|
|
@@ -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,kBAAkB,EAAE,OAAO,CAAC;IAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,
|
|
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,kBAAkB,EAAE,OAAO,CAAC;IAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,CAOpG,CAAA"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, CollectionElement, NavigationPropertyPathElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const ExpandRestrictionsAnnotation = ({ hasExpandOperation, nonExpandableProperties }) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
React.createElement(RecordElement, null,
|
|
11
|
-
React.createElement(PropertyValueElement, { Property: "Expandable", Bool: "true" }),
|
|
12
|
-
React.createElement(PropertyValueElement, { Property: "NonExpandableProperties" },
|
|
13
|
-
React.createElement(CollectionElement, null, nonExpandableProperties === null || nonExpandableProperties === void 0 ? void 0 : nonExpandableProperties.map((property) => (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
14
|
-
React.createElement(React.Fragment, null, property)))))))));
|
|
15
|
-
};
|
|
3
|
+
export const ExpandRestrictionsAnnotation = ({ hasExpandOperation, nonExpandableProperties }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ExpandRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Expandable", Bool: hasExpandOperation }),
|
|
6
|
+
hasExpandOperation ? React.createElement(NonExpandableProperties, { nonExpandableProperties: nonExpandableProperties }) : React.createElement(React.Fragment, null)));
|
|
7
|
+
const NonExpandableProperties = ({ nonExpandableProperties }) => React.createElement(PropertyValueElement, { Property: "NonExpandableProperties" },
|
|
8
|
+
React.createElement(CollectionElement, null, nonExpandableProperties === null || nonExpandableProperties === void 0 ? void 0 : nonExpandableProperties.map((property) => (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
9
|
+
React.createElement(React.Fragment, null, property))))));
|
|
16
10
|
//# sourceMappingURL=expand-restrictions-annotation.js.map
|
|
@@ -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,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,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,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,EAAE,CACpD,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,kBAAkB,GAAI;QACtE,kBAAkB,CAAC,CAAC,CAAC,oBAAC,uBAAuB,IAAC,uBAAuB,EAAE,uBAAuB,GAAG,CAAC,CAAC,CAAC,yCAAK,CAC7F,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"}
|
|
@@ -21,7 +21,7 @@ export const OperationElement = ({ element }) => {
|
|
|
21
21
|
};
|
|
22
22
|
const ActionElement = ({ element }) => {
|
|
23
23
|
return (React.createElement(Action, { Name: element.Name, IsBound: "true", ...element.AgsAttributes },
|
|
24
|
-
React.createElement(Parameter, { Name: "
|
|
24
|
+
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
25
25
|
React.createElement(ParameterList, { properties: element.Properties }),
|
|
26
26
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
27
27
|
React.createElement(DescriptionAnnotation, { description: element.Description })));
|
|
@@ -29,14 +29,14 @@ const ActionElement = ({ element }) => {
|
|
|
29
29
|
const FunctionElement = ({ element }) => {
|
|
30
30
|
if (!element.UnionProperties.length) {
|
|
31
31
|
return (React.createElement(Function, { Name: element.Name, IsBound: "true", ...element.AgsAttributes },
|
|
32
|
-
React.createElement(Parameter, { Name: "
|
|
32
|
+
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
33
33
|
React.createElement(ParameterList, { properties: element.Properties }),
|
|
34
34
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
35
35
|
React.createElement(DescriptionAnnotation, { description: element.Description })));
|
|
36
36
|
}
|
|
37
37
|
return (React.createElement(React.Fragment, null, element.UnionProperties.map((property, key) => {
|
|
38
38
|
return (React.createElement(Function, { Name: element.Name, IsBound: "true", ...element.AgsAttributes, key: key },
|
|
39
|
-
React.createElement(Parameter, { Name: "
|
|
39
|
+
React.createElement(Parameter, { Name: "bindingParameter", Type: element.BindingTypeName }),
|
|
40
40
|
React.createElement(ParameterList, { properties: property }),
|
|
41
41
|
React.createElement(ReturnTypeElement, { isVoidType: element.IsVoid, isNullable: element.IsNullable, returnTypeName: element.ReturnTypeName }),
|
|
42
42
|
React.createElement(DescriptionAnnotation, { description: element.Description })));
|
|
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAoB,aAAa,EAA4B,MAAM,0BAA0B,CAAC;AAoBrG,MAAM,MAAM,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/E,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACnF,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AACrF,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAExF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AC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,GAAI,CAAA;AAC5F,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;AAkB5D,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,CAW7D,CAAC"}
|
|
@@ -5,6 +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 { EntitySetAnnotationsList, SingletonAnnotationsList } from "./annotations.js";
|
|
8
9
|
const Schema = (props) => React.createElement("Schema", {
|
|
9
10
|
...props,
|
|
10
11
|
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
@@ -15,16 +16,18 @@ export const SchemaElement = ({ namespace }) => {
|
|
|
15
16
|
React.createElement(EnumTypeList, { elements: namespace.Enums }),
|
|
16
17
|
React.createElement(ModelList, { models: namespace.Models }),
|
|
17
18
|
React.createElement(OperationList, { operations: namespace.Operations }),
|
|
18
|
-
React.createElement(EntityContainerElement, {
|
|
19
|
+
React.createElement(EntityContainerElement, { singletons: namespace.Singletons, entitySets: namespace.EntitySets, agsAttributes: namespace.AgsAttributes }),
|
|
20
|
+
React.createElement(EntitySetAnnotationsList, { elements: namespace.EntitySetAnnotations }),
|
|
21
|
+
React.createElement(SingletonAnnotationsList, { elements: namespace.SingletonAnnotations })));
|
|
19
22
|
};
|
|
20
23
|
const ModelList = ({ models }) => {
|
|
21
24
|
return React.createElement(ItemList, { items: models, render: (model) => {
|
|
22
25
|
switch (model.Kind) {
|
|
23
26
|
case MsGraphModelKind.Entity: {
|
|
24
|
-
return React.createElement(EntityTypeElement, {
|
|
27
|
+
return React.createElement(EntityTypeElement, { model: model });
|
|
25
28
|
}
|
|
26
29
|
case MsGraphModelKind.Complex: {
|
|
27
|
-
return React.createElement(ComplexTypeElement, {
|
|
30
|
+
return React.createElement(ComplexTypeElement, { model: model });
|
|
28
31
|
}
|
|
29
32
|
default: {
|
|
30
33
|
return React.createElement(React.Fragment, null);
|
|
@@ -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,
|
|
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,MA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E;YAChD,QAAO,KAAK,CAAC,IAAI,EAAE;gBACjB,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC;oBAC5B,OAAO,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAA;iBAC3C;gBACD,KAAK,gBAAgB,CAAC,OAAO,CAAC,CAAC;oBAC7B,OAAO,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAA;iBAC5C;gBACD,OAAO,CAAC,CAAC;oBACP,OAAO,yCAAK,CAAA;iBACb;aACF;QACH,CAAC,GAAI,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,aAAa,GAA2C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/E,OAAO,oBAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,SAAS,GAAI,GAAI,CAAA;AACzG,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,kBAAkB,EAAE,OAAO,CAAA;CAAE,
|
|
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,kBAAkB,EAAE,OAAO,CAAA;CAAE,CAKvD,CAAA"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
-
export const SearchRestrictionsAnnotation = ({ hasSearchOperation }) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.SearchRestrictions" },
|
|
8
|
-
React.createElement(RecordElement, null,
|
|
9
|
-
React.createElement(PropertyValueElement, { Property: "Searchable", Bool: "false" }))));
|
|
10
|
-
};
|
|
3
|
+
export const SearchRestrictionsAnnotation = ({ hasSearchOperation }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.SearchRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Searchable", Bool: hasSearchOperation })));
|
|
11
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,GAAwC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE
|
|
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,GAAwC,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAC1G,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;IACpE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAE,kBAAkB,GAAI,CAC1D,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,gBAAgB,EAAE,OAAO,CAAA;CAAE,
|
|
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,gBAAgB,EAAE,OAAO,CAAA;CAAE,CACwB,CAAA"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
3
|
-
export const SkipSupportedAnnotation = ({ hasSkipOperation }) => {
|
|
4
|
-
if (hasSkipOperation) {
|
|
5
|
-
return React.createElement(React.Fragment, null);
|
|
6
|
-
}
|
|
7
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.SkipSupported", Bool: "false" });
|
|
8
|
-
};
|
|
3
|
+
export const SkipSupportedAnnotation = ({ hasSkipOperation }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.SkipSupported", Bool: hasSkipOperation });
|
|
9
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,GAAsC,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE
|
|
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,GAAsC,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CACjG,oBAAC,iBAAiB,IAAC,IAAI,EAAC,yCAAyC,EAAC,IAAI,EAAE,gBAAgB,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,gBAAgB,EAAE,OAAO,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,
|
|
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,gBAAgB,EAAE,OAAO,CAAC;IAAC,qBAAqB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAAE,CAO9F,CAAA"}
|