@microsoft/typespec-msgraph 0.0.1-Preview.2 → 0.0.1-Preview.4
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/acceptable-media-types-annotation.d.ts +3 -4
- package/dist/src/components/acceptable-media-types-annotation.d.ts.map +1 -1
- package/dist/src/components/acceptable-media-types-annotation.js +2 -6
- package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
- package/dist/src/components/alternate-keys-annotation.d.ts +4 -4
- package/dist/src/components/alternate-keys-annotation.d.ts.map +1 -1
- package/dist/src/components/alternate-keys-annotation.js +5 -13
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/common-elements.d.ts +0 -71
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +10 -24
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.d.ts +3 -4
- package/dist/src/components/computed-annotation.d.ts.map +1 -1
- package/dist/src/components/computed-annotation.js +4 -10
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +2 -6
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/description-annotation.d.ts +3 -4
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +4 -11
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +6 -0
- package/dist/src/components/entity-container-element.d.ts.map +1 -0
- package/dist/src/components/entity-container-element.js +58 -0
- package/dist/src/components/entity-container-element.js.map +1 -0
- package/dist/src/components/enum-type-element.d.ts +6 -0
- package/dist/src/components/enum-type-element.d.ts.map +1 -0
- package/dist/src/components/enum-type-element.js +17 -0
- package/dist/src/components/enum-type-element.js.map +1 -0
- package/dist/src/components/expand-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +5 -20
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/index.d.ts +2 -14
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +9 -14
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/operation-element.d.ts +6 -0
- package/dist/src/components/operation-element.d.ts.map +1 -0
- package/dist/src/components/operation-element.js +70 -0
- package/dist/src/components/operation-element.js.map +1 -0
- package/dist/src/components/permissions-annotation.d.ts +3 -4
- package/dist/src/components/permissions-annotation.d.ts.map +1 -1
- package/dist/src/components/permissions-annotation.js +2 -10
- package/dist/src/components/permissions-annotation.js.map +1 -1
- package/dist/src/components/property-element.d.ts +4 -4
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +14 -32
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/revisions-annotation.d.ts +4 -5
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +7 -51
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts +6 -0
- package/dist/src/components/schema-element.d.ts.map +1 -0
- package/dist/src/components/schema-element.js +38 -0
- package/dist/src/components/schema-element.js.map +1 -0
- package/dist/src/components/search-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +2 -6
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts +3 -4
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +2 -6
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +5 -20
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +10 -4
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +18 -58
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts +3 -4
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +2 -6
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +0 -6
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/complex.d.ts.map +1 -1
- package/dist/src/decorators/complex.js +0 -6
- package/dist/src/decorators/complex.js.map +1 -1
- package/dist/src/decorators/decorator-parameter.d.ts +4 -0
- package/dist/src/decorators/decorator-parameter.d.ts.map +1 -0
- package/dist/src/decorators/decorator-parameter.js +2 -0
- package/dist/src/decorators/decorator-parameter.js.map +1 -0
- package/dist/src/decorators/deprecated-definition.d.ts +4 -3
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js +7 -1
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +0 -6
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +2 -1
- 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 +11 -0
- package/dist/src/decorators/function.d.ts.map +1 -0
- package/dist/src/decorators/function.js +16 -0
- package/dist/src/decorators/function.js.map +1 -0
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts +2 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +1 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +3 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +1 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +2 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +1 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +3 -3
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +1 -1
- package/dist/src/decorators/handlers/index.d.ts +4 -3
- package/dist/src/decorators/handlers/index.d.ts.map +1 -1
- package/dist/src/decorators/handlers/index.js +4 -4
- package/dist/src/decorators/handlers/index.js.map +1 -1
- package/dist/src/decorators/has-stream.d.ts +3 -3
- package/dist/src/decorators/has-stream.d.ts.map +1 -1
- package/dist/src/decorators/has-stream.js +2 -15
- package/dist/src/decorators/has-stream.js.map +1 -1
- package/dist/src/decorators/index.d.ts +5 -1
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +5 -1
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +0 -6
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
- package/dist/src/decorators/operation-parameters.js +15 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -0
- package/dist/src/decorators/order-by.d.ts +2 -1
- 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/private-preview-definition.d.ts +4 -3
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +6 -1
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +2 -1
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +1 -11
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +4 -2
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/entity-container.d.ts +35 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -0
- package/dist/src/entities/entity-container.js +132 -0
- package/dist/src/entities/entity-container.js.map +1 -0
- package/dist/src/entities/enum.d.ts +16 -0
- package/dist/src/entities/enum.d.ts.map +1 -0
- package/dist/src/entities/enum.js +22 -0
- package/dist/src/entities/enum.js.map +1 -0
- package/dist/src/entities/model.d.ts +50 -0
- package/dist/src/entities/model.d.ts.map +1 -0
- package/dist/src/entities/model.js +119 -0
- package/dist/src/entities/model.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +14 -0
- package/dist/src/entities/namespace.d.ts.map +1 -0
- package/dist/src/entities/namespace.js +41 -0
- package/dist/src/entities/namespace.js.map +1 -0
- package/dist/src/entities/operation.d.ts +28 -0
- package/dist/src/entities/operation.d.ts.map +1 -0
- package/dist/src/entities/operation.js +88 -0
- package/dist/src/entities/operation.js.map +1 -0
- package/dist/src/entities/property.d.ts +3 -0
- package/dist/src/entities/property.d.ts.map +1 -0
- package/dist/src/entities/property.js +54 -0
- package/dist/src/entities/property.js.map +1 -0
- package/dist/src/entities/revision-definition.d.ts +9 -0
- package/dist/src/entities/revision-definition.d.ts.map +1 -0
- package/dist/src/entities/revision-definition.js +42 -0
- package/dist/src/entities/revision-definition.js.map +1 -0
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/rules/entity.d.ts +1 -0
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +36 -0
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +2 -0
- package/dist/src/rules/enum.d.ts.map +1 -0
- package/dist/src/rules/enum.js +26 -0
- package/dist/src/rules/enum.js.map +1 -0
- package/dist/src/rules/function.d.ts +2 -0
- package/dist/src/rules/function.d.ts.map +1 -0
- package/dist/src/rules/function.js +26 -0
- package/dist/src/rules/function.js.map +1 -0
- package/dist/src/rules/index.d.ts +3 -4
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +40 -111
- package/dist/src/rules/index.js.map +1 -1
- package/lib/decorators.tsp +29 -22
- package/package.json +27 -14
- package/dist/src/components/program-context.d.ts +0 -4
- package/dist/src/components/program-context.d.ts.map +0 -1
- package/dist/src/components/program-context.js +0 -3
- package/dist/src/components/program-context.js.map +0 -1
- package/dist/src/csdl.d.ts +0 -8
- package/dist/src/csdl.d.ts.map +0 -1
- package/dist/src/csdl.js +0 -298
- package/dist/src/csdl.js.map +0 -1
- package/dist/src/decorators/routed-interfaces.d.ts.map +0 -1
- package/dist/src/decorators/routed-interfaces.js +0 -43
- package/dist/src/decorators/routed-interfaces.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
item: Model;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const AcceptableMediaTypesAnnotation: FC<{
|
|
3
|
+
streamTypes: string[];
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=acceptable-media-types-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,8BAA8B,EAAE,EAAE,CAAC;IAAE,WAAW,EAAG,MAAM,EAAE,CAAA;CAAE,CAezE,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { getStreamTypes } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, CollectionElement, StringElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const AcceptableMediaTypesAnnotation = ({ item }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const streamTypes = getStreamTypes(program, item);
|
|
3
|
+
export const AcceptableMediaTypesAnnotation = ({ streamTypes }) => {
|
|
8
4
|
if (!streamTypes.length) {
|
|
9
5
|
return React.createElement(React.Fragment, null);
|
|
10
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE3F,MAAM,CAAC,MAAM,8BAA8B,GAAmC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IAChG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACvB,OAAO,yCAAK,CAAC;KACd;IACD,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,wCAAwC;QAC9D,oBAAC,iBAAiB,QACf,WAAW,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAChD,oBAAC,aAAa,IAAC,GAAG,EAAE,KAAK;YACvB,0CAAG,IAAI,CAAI,CACG,CACjB,CAAC,CACgB,CACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const AlternateKeysAnnotation:
|
|
4
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AlternateKeyProperty } from "../entities/model.js";
|
|
3
|
+
export declare const AlternateKeysAnnotation: FC<{
|
|
4
|
+
alternateKeys: AlternateKeyProperty[];
|
|
5
5
|
}>;
|
|
6
6
|
//# sourceMappingURL=alternate-keys-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,aAAa,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAoBjF,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { ProgramContext } from "./program-context.js";
|
|
5
|
-
export const AlternateKeysAnnotation = ({ model }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const alternateKeys = [...model.properties.entries()]
|
|
8
|
-
.filter(([_, v]) => isAlternateKey(program, v))
|
|
9
|
-
.reduce((prev, [_, prop]) => [...prev, prop], []);
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
+
export const AlternateKeysAnnotation = ({ alternateKeys }) => {
|
|
10
4
|
if (!alternateKeys.length) {
|
|
11
5
|
return React.createElement(React.Fragment, null);
|
|
12
6
|
}
|
|
@@ -17,13 +11,11 @@ export const AlternateKeysAnnotation = ({ model }) => {
|
|
|
17
11
|
React.createElement(AlternateKeyRecord, { property: key })))))))));
|
|
18
12
|
};
|
|
19
13
|
const AlternateKeyRecord = ({ property }) => {
|
|
20
|
-
|
|
21
|
-
if (property.type.kind !== "Model" || !isComplex(program, property.type)) {
|
|
14
|
+
if (!property.IsModel) {
|
|
22
15
|
return (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef" },
|
|
23
16
|
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.name })));
|
|
24
17
|
}
|
|
25
|
-
|
|
26
|
-
return (React.createElement(React.Fragment, null, props.map((prop) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
18
|
+
return (React.createElement(React.Fragment, null, [...property.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
27
19
|
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.name}/${prop.name}` }),
|
|
28
20
|
React.createElement(PropertyValueElement, { Property: "Alias", String: prop.name }))))));
|
|
29
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
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;YAChE,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,KAAK;gBAClC,oBAAC,iBAAiB;oBAChB,oBAAC,kBAAkB,IAAC,QAAQ,EAAE,GAAG,GAAI,CACnB,CACC,CACT,CACjB,CAAC,CACgB,CACF,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAA2C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;QACrB,OAAO,CACL,oBAAC,aAAa,IAAC,IAAI,EAAC,+BAA+B;YACjD,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,GAAI,CACvD,CACjB,CAAC;KACH;IAED,OAAO,CACL,0CACG,CAAC,GAAI,QAAQ,CAAC,IAAc,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC3D,oBAAC,aAAa,IAAC,IAAI,EAAC,+BAA+B,EAAC,GAAG,EAAE,IAAI,CAAC,IAAI;QAChE,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI;QACvF,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,GAAI,CAC9C,CACjB,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -48,77 +48,6 @@ interface PropertyValueProps {
|
|
|
48
48
|
children?: any;
|
|
49
49
|
}
|
|
50
50
|
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<PropertyValueProps, Element>;
|
|
51
|
-
interface EnumMemberProps {
|
|
52
|
-
Name: string;
|
|
53
|
-
Value?: string | number | undefined;
|
|
54
|
-
children?: any;
|
|
55
|
-
}
|
|
56
|
-
export declare const EnumMemberElement: (props: EnumMemberProps) => React.DOMElement<EnumMemberProps, Element>;
|
|
57
|
-
interface EnumTypeProps {
|
|
58
|
-
Name: string;
|
|
59
|
-
children: any;
|
|
60
|
-
}
|
|
61
|
-
export declare const EnumTypeElement: (props: EnumTypeProps) => React.DOMElement<EnumTypeProps, Element>;
|
|
62
|
-
export declare const PropertyRefElement: (props: {
|
|
63
|
-
Name: string;
|
|
64
|
-
}) => React.ReactElement<{
|
|
65
|
-
Name: string;
|
|
66
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
67
|
-
interface ActionProps {
|
|
68
|
-
Name: string;
|
|
69
|
-
IsBound: string;
|
|
70
|
-
children: any;
|
|
71
|
-
}
|
|
72
|
-
export declare const ActionElement: (props: ActionProps) => React.DOMElement<ActionProps, Element>;
|
|
73
|
-
interface FunctionProps {
|
|
74
|
-
Name: string;
|
|
75
|
-
IsBound: string;
|
|
76
|
-
children: any;
|
|
77
|
-
}
|
|
78
|
-
export declare const FunctionElement: (props: FunctionProps) => React.DOMElement<FunctionProps, Element>;
|
|
79
|
-
interface ParameterProps {
|
|
80
|
-
Name: string;
|
|
81
|
-
Type: string;
|
|
82
|
-
Nullable?: string;
|
|
83
|
-
children?: any;
|
|
84
|
-
}
|
|
85
|
-
export declare const ParameterElement: (props: ParameterProps) => React.DOMElement<ParameterProps, Element>;
|
|
86
|
-
export declare const ReturnTypeElement: (props: {
|
|
87
|
-
Type: string;
|
|
88
|
-
Nullable?: string;
|
|
89
|
-
}) => React.ReactElement<{
|
|
90
|
-
Type: string;
|
|
91
|
-
Nullable?: string | undefined;
|
|
92
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
93
|
-
interface EntityContainerProps {
|
|
94
|
-
Name?: string;
|
|
95
|
-
children: any;
|
|
96
|
-
}
|
|
97
|
-
export declare const EntityContainerElement: (props: EntityContainerProps) => React.DOMElement<EntityContainerProps, Element>;
|
|
98
|
-
interface SingletonProps {
|
|
99
|
-
Name: string;
|
|
100
|
-
Type: string;
|
|
101
|
-
children?: any;
|
|
102
|
-
}
|
|
103
|
-
export declare const SingletonElement: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
|
|
104
|
-
interface EntitySetProps {
|
|
105
|
-
Name: string;
|
|
106
|
-
EntityType: string;
|
|
107
|
-
children?: any;
|
|
108
|
-
}
|
|
109
|
-
export declare const EntitySetElement: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
|
|
110
|
-
interface SchemaProps {
|
|
111
|
-
Namespace: string;
|
|
112
|
-
Alias?: string;
|
|
113
|
-
children: any;
|
|
114
|
-
}
|
|
115
|
-
export declare const SchemaElement: (props: SchemaProps) => React.DOMElement<{
|
|
116
|
-
xmlns: string;
|
|
117
|
-
"xmlns:ags": string;
|
|
118
|
-
Namespace: string;
|
|
119
|
-
Alias?: string | undefined;
|
|
120
|
-
children: any;
|
|
121
|
-
}, Element>;
|
|
122
51
|
interface ItemListProps<T> {
|
|
123
52
|
items: Map<string, T> | T[];
|
|
124
53
|
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,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;
|
|
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;AAE5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,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"}
|
|
@@ -7,32 +7,18 @@ 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
9
|
export const PropertyValueElement = (props) => React.createElement("PropertyValue", props);
|
|
10
|
-
export const EnumMemberElement = (props) => React.createElement("Member", props);
|
|
11
|
-
export const EnumTypeElement = (props) => React.createElement("EnumType", props);
|
|
12
|
-
export const PropertyRefElement = (props) => React.createElement("PropertyRef", props);
|
|
13
|
-
export const ActionElement = (props) => React.createElement("Action", props);
|
|
14
|
-
export const FunctionElement = (props) => React.createElement("Function", props);
|
|
15
|
-
export const ParameterElement = (props) => React.createElement("Parameter", props);
|
|
16
|
-
export const ReturnTypeElement = (props) => React.createElement("ReturnType", props);
|
|
17
|
-
export const EntityContainerElement = (props) => React.createElement("EntityContainer", props);
|
|
18
|
-
export const SingletonElement = (props) => React.createElement("Singleton", props);
|
|
19
|
-
export const EntitySetElement = (props) => React.createElement("EntitySet", props);
|
|
20
|
-
export const SchemaElement = (props) => React.createElement("Schema", {
|
|
21
|
-
...props,
|
|
22
|
-
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
23
|
-
"xmlns:ags": "http://aggregator.microsoft.com/internal",
|
|
24
|
-
});
|
|
25
10
|
export const ItemList = (props) => {
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
return React.createElement(React.Fragment, null);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
if (props.items.size === 0) {
|
|
33
|
-
return React.createElement(React.Fragment, null);
|
|
34
|
-
}
|
|
11
|
+
if (isEmpty(props.items)) {
|
|
12
|
+
return React.createElement(React.Fragment, null);
|
|
35
13
|
}
|
|
36
14
|
return (React.createElement(React.Fragment, null, [...props.items.entries()].map(([k, v]) => (React.createElement(React.Fragment, { key: k }, props.render(v))))));
|
|
37
15
|
};
|
|
16
|
+
function isEmpty(items) {
|
|
17
|
+
if (Array.isArray(items)) {
|
|
18
|
+
return items.length === 0;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return items.size === 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
38
24
|
//# sourceMappingURL=common-elements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;
|
|
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,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAEtG,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,CAAC,aAAa,CAAC,QAAQ,EAAE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olean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=computed-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAGhD,CAAA"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { ProgramContext } from "./program-context.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!isComputed(program, prop)) {
|
|
8
|
-
return React.createElement(React.Fragment, null);
|
|
9
|
-
}
|
|
10
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: "true" });
|
|
11
|
-
};
|
|
3
|
+
export const ComputedAnnotation = ({ isComputed }) => isComputed
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: "true" })
|
|
5
|
+
: React.createElement(React.Fragment, null);
|
|
12
6
|
//# sourceMappingURL=computed-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"
|
|
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,EAAC,MAAM,GAAG;IACrE,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface: Interface;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const CountRestrictionsAnnotation: FC<{
|
|
3
|
+
hasCountOperation: boolean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=count-restrictions-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
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,CAY1E,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { isCount } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const CountRestrictionsAnnotation = (props) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const hasCountOperation = [...props.interface.operations].some(([_, operation]) => isCount(program, operation));
|
|
3
|
+
export const CountRestrictionsAnnotation = ({ hasCountOperation }) => {
|
|
8
4
|
if (hasCountOperation) {
|
|
9
5
|
return React.createElement(React.Fragment, null);
|
|
10
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"
|
|
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;IACvG,IAAI,iBAAiB,EAAE;QACrB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,qCAAqC;QAC3D,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,GAAG,CAC5C,CACE,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: Type;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const DescriptionAnnotation: FC<{
|
|
3
|
+
description: string | undefined;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=description-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
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;AAGlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React, { useContext } from "react";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const text = getDoc(program, type);
|
|
8
|
-
if (text) {
|
|
9
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: text });
|
|
10
|
-
}
|
|
11
|
-
return React.createElement(React.Fragment, null);
|
|
12
|
-
};
|
|
3
|
+
export const DescriptionAnnotation = ({ description }) => description
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: description })
|
|
5
|
+
: React.createElement(React.Fragment, null);
|
|
13
6
|
//# sourceMappingURL=description-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AASlC,OAAO,EAAa,eAAe,EAAa,MAAM,iCAAiC,CAAC;AAsBxF,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,CAMzD,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
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";
|
|
10
|
+
const EntityContainerElem = (props) => React.createElement("EntityContainer", props);
|
|
11
|
+
const Singleton = (props) => React.createElement("Singleton", props);
|
|
12
|
+
const EntitySet = (props) => React.createElement("EntitySet", props);
|
|
13
|
+
export const EntityContainerElement = ({ element, }) => element.SingletonElements.length || element.EntitySetElements.length
|
|
14
|
+
? React.createElement(EntityContainerElem, { Name: "container", ...element.AgsAttributes },
|
|
15
|
+
React.createElement(SingletonList, { elements: element.SingletonElements }),
|
|
16
|
+
React.createElement(EntitySetList, { elements: element.EntitySetElements }))
|
|
17
|
+
: React.createElement(React.Fragment, null);
|
|
18
|
+
const SingletonList = ({ elements }) => {
|
|
19
|
+
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(SingletonElement, { element: element }) }));
|
|
20
|
+
};
|
|
21
|
+
const EntitySetList = ({ elements }) => {
|
|
22
|
+
return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetElement, { element: element }) }));
|
|
23
|
+
};
|
|
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
|
+
};
|
|
29
|
+
const EntitySetElement = ({ element }) => {
|
|
30
|
+
if (!element.TypeName) {
|
|
31
|
+
return React.createElement(React.Fragment, null);
|
|
32
|
+
}
|
|
33
|
+
return (React.createElement(EntitySet, { Name: element.Name, EntityType: element.TypeName, ...element.AgsAttributes },
|
|
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 })));
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=entity-container-element.js.map
|
|
@@ -0,0 +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,iBAAiB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,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;AAOvE,MAAM,mBAAmB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,KA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AAY,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAExD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ItemList } from "./common-elements.js";
|
|
3
|
+
import { RevisionsAnnotation } from "./revisions-annotation.js";
|
|
4
|
+
const Member = (props) => React.createElement("Member", props);
|
|
5
|
+
const EnumType = (props) => React.createElement("EnumType", props);
|
|
6
|
+
export const EnumTypeList = ({ elements }) => (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EnumTypeElement, { element: element }) }));
|
|
7
|
+
const EnumTypeElement = ({ element }) => {
|
|
8
|
+
return (React.createElement(EnumType, { Name: element.Name, ...element.AgsAttributes },
|
|
9
|
+
React.createElement(EnumMemberList, { elements: element.Elements }),
|
|
10
|
+
React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition })));
|
|
11
|
+
};
|
|
12
|
+
const EnumMemberList = ({ elements }) => (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(MemberElement, { element: element }) }));
|
|
13
|
+
const MemberElement = ({ element }) => {
|
|
14
|
+
return (React.createElement(Member, { Name: element.Name, Value: element.Value, ...element.AgsAttributes },
|
|
15
|
+
React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition })));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=enum-type-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-type-element.js","sourceRoot":"","sources":["../../../src/components/enum-type-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAQhE,MAAM,MAAM,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAMhF,MA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
|
3
|
-
|
|
4
|
-
|
|
5
|
-
model: Model;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const ExpandRestrictionsAnnotation: FC<{
|
|
3
|
+
hasExpandOperation: boolean;
|
|
4
|
+
nonExpandableProperties: string[] | undefined;
|
|
6
5
|
}>;
|
|
7
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,
|
|
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,CA4B3H,CAAC"}
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { getExpand, isContains, isExpand, isReferences } from "../index.js";
|
|
6
|
-
import { AnnotationElement, CollectionElement, NavigationPropertyPathElement, PropertyValueElement, RecordElement, } from "./common-elements.js";
|
|
7
|
-
export const ExpandRestrictionsAnnotation = (props) => {
|
|
8
|
-
const program = useContext(ProgramContext);
|
|
9
|
-
const expandedOperation = [...props.interface.operations].find(([_, operation]) => getOperationVerb(program, operation) === "get" &&
|
|
10
|
-
operation.parameters.properties.size === 0 &&
|
|
11
|
-
isExpand(program, operation));
|
|
12
|
-
if (!expandedOperation) {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, NavigationPropertyPathElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
+
export const ExpandRestrictionsAnnotation = ({ hasExpandOperation, nonExpandableProperties }) => {
|
|
4
|
+
if (!hasExpandOperation) {
|
|
13
5
|
return (React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ExpandRestrictions" },
|
|
14
6
|
React.createElement(RecordElement, null,
|
|
15
7
|
React.createElement(PropertyValueElement, { Property: "Expandable", Bool: "false" }))));
|
|
16
8
|
}
|
|
17
|
-
// Destructuring to get the operation from the [string, Operation] expandedOperation tuple
|
|
18
|
-
const [_, operation] = expandedOperation;
|
|
19
|
-
const expandableProperties = getExpand(program, operation);
|
|
20
|
-
const navigationProperties = [...walkPropertiesInherited(props.model)]
|
|
21
|
-
.filter((property) => isContains(program, property) || isReferences(program, property))
|
|
22
|
-
.map((property) => property.name);
|
|
23
|
-
const nonExpandableProperties = navigationProperties.filter((property) => !expandableProperties.includes(property));
|
|
24
9
|
return (React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ExpandRestrictions" },
|
|
25
10
|
React.createElement(RecordElement, null,
|
|
26
11
|
React.createElement(PropertyValueElement, { Property: "Expandable", Bool: "true" }),
|
|
27
12
|
React.createElement(PropertyValueElement, { Property: "NonExpandableProperties" },
|
|
28
|
-
React.createElement(CollectionElement, null, nonExpandableProperties.map((property) => (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
13
|
+
React.createElement(CollectionElement, null, nonExpandableProperties === null || nonExpandableProperties === void 0 ? void 0 : nonExpandableProperties.map((property) => (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
29
14
|
React.createElement(React.Fragment, null, property)))))))));
|
|
30
15
|
};
|
|
31
16
|
//# 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,
|
|
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;IACtD,IAAI,CAAC,kBAAkB,EAAE;QACvB,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;YACpE,oBAAC,aAAa;gBACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,GAAG,CAC7C,CACE,CACrB,CAAC;KACH;IAED,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,YAAY,EAAC,IAAI,EAAC,MAAM,GAAG;YAC1D,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,yBAAyB;gBACtD,oBAAC,iBAAiB,QACf,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1C,oBAAC,6BAA6B,IAAC,GAAG,EAAE,QAAQ;oBAC1C,0CAAG,QAAQ,CAAI,CACe,CACjC,CAAC,CACgB,CACC,CACT,CACE,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from "./common-elements.js";
|
|
4
|
-
export * from "./computed-annotation.js";
|
|
5
|
-
export * from "./count-restrictions-annotation.js";
|
|
6
|
-
export * from "./description-annotation.js";
|
|
7
|
-
export * from "./expand-restrictions-annotation.js";
|
|
8
|
-
export * from "./permissions-annotation.js";
|
|
9
|
-
export * from "./revisions-annotation.js";
|
|
10
|
-
export * from "./search-restrictions-annotation.js";
|
|
11
|
-
export * from "./skip-supported-annotation.js";
|
|
12
|
-
export * from "./sort-restrictions-annotation.js";
|
|
13
|
-
export * from "./structured-type-element.js";
|
|
14
|
-
export * from "./top-supported-annotation.js";
|
|
1
|
+
import { MsGraphNamespace } from "../entities/namespace.js";
|
|
2
|
+
export declare function renderCsdl(namespaces: MsGraphNamespace[]): string;
|
|
15
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,wBAAgB,UAAU,CAAC,UAAU,EAAE,gBAAgB,EAAE,UAExD"}
|