@microsoft/typespec-msgraph 0.0.1-Preview.1 → 0.0.1-Preview.3

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.
Files changed (208) hide show
  1. package/dist/src/components/acceptable-media-types-annotation.d.ts +3 -4
  2. package/dist/src/components/acceptable-media-types-annotation.d.ts.map +1 -1
  3. package/dist/src/components/acceptable-media-types-annotation.js +2 -6
  4. package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
  5. package/dist/src/components/alternate-keys-annotation.d.ts +4 -4
  6. package/dist/src/components/alternate-keys-annotation.d.ts.map +1 -1
  7. package/dist/src/components/alternate-keys-annotation.js +5 -13
  8. package/dist/src/components/alternate-keys-annotation.js.map +1 -1
  9. package/dist/src/components/common-elements.d.ts +0 -71
  10. package/dist/src/components/common-elements.d.ts.map +1 -1
  11. package/dist/src/components/common-elements.js +10 -24
  12. package/dist/src/components/common-elements.js.map +1 -1
  13. package/dist/src/components/computed-annotation.d.ts +3 -4
  14. package/dist/src/components/computed-annotation.d.ts.map +1 -1
  15. package/dist/src/components/computed-annotation.js +4 -10
  16. package/dist/src/components/computed-annotation.js.map +1 -1
  17. package/dist/src/components/count-restrictions-annotation.d.ts +3 -4
  18. package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
  19. package/dist/src/components/count-restrictions-annotation.js +2 -6
  20. package/dist/src/components/count-restrictions-annotation.js.map +1 -1
  21. package/dist/src/components/description-annotation.d.ts +3 -4
  22. package/dist/src/components/description-annotation.d.ts.map +1 -1
  23. package/dist/src/components/description-annotation.js +4 -11
  24. package/dist/src/components/description-annotation.js.map +1 -1
  25. package/dist/src/components/entity-container-element.d.ts +6 -0
  26. package/dist/src/components/entity-container-element.d.ts.map +1 -0
  27. package/dist/src/components/entity-container-element.js +58 -0
  28. package/dist/src/components/entity-container-element.js.map +1 -0
  29. package/dist/src/components/enum-type-element.d.ts +6 -0
  30. package/dist/src/components/enum-type-element.d.ts.map +1 -0
  31. package/dist/src/components/enum-type-element.js +17 -0
  32. package/dist/src/components/enum-type-element.js.map +1 -0
  33. package/dist/src/components/expand-restrictions-annotation.d.ts +4 -5
  34. package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
  35. package/dist/src/components/expand-restrictions-annotation.js +5 -20
  36. package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
  37. package/dist/src/components/index.d.ts +2 -14
  38. package/dist/src/components/index.d.ts.map +1 -1
  39. package/dist/src/components/index.js +9 -14
  40. package/dist/src/components/index.js.map +1 -1
  41. package/dist/src/components/operation-element.d.ts +6 -0
  42. package/dist/src/components/operation-element.d.ts.map +1 -0
  43. package/dist/src/components/operation-element.js +70 -0
  44. package/dist/src/components/operation-element.js.map +1 -0
  45. package/dist/src/components/permissions-annotation.d.ts +3 -4
  46. package/dist/src/components/permissions-annotation.d.ts.map +1 -1
  47. package/dist/src/components/permissions-annotation.js +2 -10
  48. package/dist/src/components/permissions-annotation.js.map +1 -1
  49. package/dist/src/components/property-element.d.ts +4 -4
  50. package/dist/src/components/property-element.d.ts.map +1 -1
  51. package/dist/src/components/property-element.js +14 -32
  52. package/dist/src/components/property-element.js.map +1 -1
  53. package/dist/src/components/revisions-annotation.d.ts +4 -5
  54. package/dist/src/components/revisions-annotation.d.ts.map +1 -1
  55. package/dist/src/components/revisions-annotation.js +7 -51
  56. package/dist/src/components/revisions-annotation.js.map +1 -1
  57. package/dist/src/components/schema-element.d.ts +6 -0
  58. package/dist/src/components/schema-element.d.ts.map +1 -0
  59. package/dist/src/components/schema-element.js +38 -0
  60. package/dist/src/components/schema-element.js.map +1 -0
  61. package/dist/src/components/search-restrictions-annotation.d.ts +3 -4
  62. package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
  63. package/dist/src/components/search-restrictions-annotation.js +2 -6
  64. package/dist/src/components/search-restrictions-annotation.js.map +1 -1
  65. package/dist/src/components/skip-supported-annotation.d.ts +3 -4
  66. package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
  67. package/dist/src/components/skip-supported-annotation.js +2 -6
  68. package/dist/src/components/skip-supported-annotation.js.map +1 -1
  69. package/dist/src/components/sort-restrictions-annotation.d.ts +4 -5
  70. package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
  71. package/dist/src/components/sort-restrictions-annotation.js +5 -20
  72. package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
  73. package/dist/src/components/structured-type-element.d.ts +10 -4
  74. package/dist/src/components/structured-type-element.d.ts.map +1 -1
  75. package/dist/src/components/structured-type-element.js +18 -58
  76. package/dist/src/components/structured-type-element.js.map +1 -1
  77. package/dist/src/components/top-supported-annotation.d.ts +3 -4
  78. package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
  79. package/dist/src/components/top-supported-annotation.js +2 -6
  80. package/dist/src/components/top-supported-annotation.js.map +1 -1
  81. package/dist/src/decorators/abstract.d.ts.map +1 -1
  82. package/dist/src/decorators/abstract.js +0 -6
  83. package/dist/src/decorators/abstract.js.map +1 -1
  84. package/dist/src/decorators/complex.d.ts.map +1 -1
  85. package/dist/src/decorators/complex.js +0 -6
  86. package/dist/src/decorators/complex.js.map +1 -1
  87. package/dist/src/decorators/decorator-parameter.d.ts +4 -0
  88. package/dist/src/decorators/decorator-parameter.d.ts.map +1 -0
  89. package/dist/src/decorators/decorator-parameter.js +2 -0
  90. package/dist/src/decorators/decorator-parameter.js.map +1 -0
  91. package/dist/src/decorators/deprecated-definition.d.ts +4 -3
  92. package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
  93. package/dist/src/decorators/deprecated-definition.js +7 -1
  94. package/dist/src/decorators/deprecated-definition.js.map +1 -1
  95. package/dist/src/decorators/entity.d.ts.map +1 -1
  96. package/dist/src/decorators/entity.js +0 -6
  97. package/dist/src/decorators/entity.js.map +1 -1
  98. package/dist/src/decorators/expand.d.ts +2 -1
  99. package/dist/src/decorators/expand.d.ts.map +1 -1
  100. package/dist/src/decorators/expand.js +1 -1
  101. package/dist/src/decorators/expand.js.map +1 -1
  102. package/dist/src/decorators/function.d.ts +11 -0
  103. package/dist/src/decorators/function.d.ts.map +1 -0
  104. package/dist/src/decorators/function.js +16 -0
  105. package/dist/src/decorators/function.js.map +1 -0
  106. package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts +2 -1
  107. package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +1 -1
  108. package/dist/src/decorators/handlers/custom/additional-query-parameters.js +3 -1
  109. package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +1 -1
  110. package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +2 -1
  111. package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +1 -1
  112. package/dist/src/decorators/handlers/custom/ags-attribute.js +3 -3
  113. package/dist/src/decorators/handlers/custom/ags-attribute.js.map +1 -1
  114. package/dist/src/decorators/handlers/index.d.ts +4 -3
  115. package/dist/src/decorators/handlers/index.d.ts.map +1 -1
  116. package/dist/src/decorators/handlers/index.js +4 -4
  117. package/dist/src/decorators/handlers/index.js.map +1 -1
  118. package/dist/src/decorators/has-stream.d.ts +3 -3
  119. package/dist/src/decorators/has-stream.d.ts.map +1 -1
  120. package/dist/src/decorators/has-stream.js +2 -15
  121. package/dist/src/decorators/has-stream.js.map +1 -1
  122. package/dist/src/decorators/index.d.ts +5 -1
  123. package/dist/src/decorators/index.d.ts.map +1 -1
  124. package/dist/src/decorators/index.js +5 -1
  125. package/dist/src/decorators/index.js.map +1 -1
  126. package/dist/src/decorators/open.d.ts.map +1 -1
  127. package/dist/src/decorators/open.js +0 -6
  128. package/dist/src/decorators/open.js.map +1 -1
  129. package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
  130. package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
  131. package/dist/src/decorators/operation-parameters.js +15 -0
  132. package/dist/src/decorators/operation-parameters.js.map +1 -0
  133. package/dist/src/decorators/order-by.d.ts +2 -1
  134. package/dist/src/decorators/order-by.d.ts.map +1 -1
  135. package/dist/src/decorators/order-by.js +1 -1
  136. package/dist/src/decorators/order-by.js.map +1 -1
  137. package/dist/src/decorators/private-preview-definition.d.ts +4 -3
  138. package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
  139. package/dist/src/decorators/private-preview-definition.js +6 -1
  140. package/dist/src/decorators/private-preview-definition.js.map +1 -1
  141. package/dist/src/decorators/private-preview.d.ts +2 -1
  142. package/dist/src/decorators/private-preview.d.ts.map +1 -1
  143. package/dist/src/decorators/private-preview.js +1 -11
  144. package/dist/src/decorators/private-preview.js.map +1 -1
  145. package/dist/src/emitter.d.ts.map +1 -1
  146. package/dist/src/emitter.js +4 -2
  147. package/dist/src/emitter.js.map +1 -1
  148. package/dist/src/entities/entity-container.d.ts +35 -0
  149. package/dist/src/entities/entity-container.d.ts.map +1 -0
  150. package/dist/src/entities/entity-container.js +132 -0
  151. package/dist/src/entities/entity-container.js.map +1 -0
  152. package/dist/src/entities/enum.d.ts +16 -0
  153. package/dist/src/entities/enum.d.ts.map +1 -0
  154. package/dist/src/entities/enum.js +22 -0
  155. package/dist/src/entities/enum.js.map +1 -0
  156. package/dist/src/entities/model.d.ts +50 -0
  157. package/dist/src/entities/model.d.ts.map +1 -0
  158. package/dist/src/entities/model.js +119 -0
  159. package/dist/src/entities/model.js.map +1 -0
  160. package/dist/src/entities/namespace.d.ts +14 -0
  161. package/dist/src/entities/namespace.d.ts.map +1 -0
  162. package/dist/src/entities/namespace.js +41 -0
  163. package/dist/src/entities/namespace.js.map +1 -0
  164. package/dist/src/entities/operation.d.ts +28 -0
  165. package/dist/src/entities/operation.d.ts.map +1 -0
  166. package/dist/src/entities/operation.js +88 -0
  167. package/dist/src/entities/operation.js.map +1 -0
  168. package/dist/src/entities/property.d.ts +3 -0
  169. package/dist/src/entities/property.d.ts.map +1 -0
  170. package/dist/src/entities/property.js +54 -0
  171. package/dist/src/entities/property.js.map +1 -0
  172. package/dist/src/entities/revision-definition.d.ts +9 -0
  173. package/dist/src/entities/revision-definition.d.ts.map +1 -0
  174. package/dist/src/entities/revision-definition.js +42 -0
  175. package/dist/src/entities/revision-definition.js.map +1 -0
  176. package/dist/src/index.d.ts +0 -3
  177. package/dist/src/index.d.ts.map +1 -1
  178. package/dist/src/index.js +0 -3
  179. package/dist/src/index.js.map +1 -1
  180. package/dist/src/rules/entity.d.ts +1 -0
  181. package/dist/src/rules/entity.d.ts.map +1 -1
  182. package/dist/src/rules/entity.js +36 -0
  183. package/dist/src/rules/entity.js.map +1 -1
  184. package/dist/src/rules/enum.d.ts +2 -0
  185. package/dist/src/rules/enum.d.ts.map +1 -0
  186. package/dist/src/rules/enum.js +26 -0
  187. package/dist/src/rules/enum.js.map +1 -0
  188. package/dist/src/rules/function.d.ts +2 -0
  189. package/dist/src/rules/function.d.ts.map +1 -0
  190. package/dist/src/rules/function.js +26 -0
  191. package/dist/src/rules/function.js.map +1 -0
  192. package/dist/src/rules/index.d.ts +3 -4
  193. package/dist/src/rules/index.d.ts.map +1 -1
  194. package/dist/src/rules/index.js +40 -111
  195. package/dist/src/rules/index.js.map +1 -1
  196. package/lib/decorators.tsp +29 -22
  197. package/package.json +29 -13
  198. package/dist/src/components/program-context.d.ts +0 -4
  199. package/dist/src/components/program-context.d.ts.map +0 -1
  200. package/dist/src/components/program-context.js +0 -3
  201. package/dist/src/components/program-context.js.map +0 -1
  202. package/dist/src/csdl.d.ts +0 -8
  203. package/dist/src/csdl.d.ts.map +0 -1
  204. package/dist/src/csdl.js +0 -298
  205. package/dist/src/csdl.js.map +0 -1
  206. package/dist/src/decorators/routed-interfaces.d.ts.map +0 -1
  207. package/dist/src/decorators/routed-interfaces.js +0 -43
  208. package/dist/src/decorators/routed-interfaces.js.map +0 -1
@@ -1,6 +1,5 @@
1
- import { Model } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const AcceptableMediaTypesAnnotation: FunctionComponent<{
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,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAK7D,eAAO,MAAM,8BAA8B,EAAE,iBAAiB,CAAC;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAkB7E,CAAC"}
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, { useContext } from "react";
2
- import { getStreamTypes } from "../index.js";
1
+ import React from "react";
3
2
  import { AnnotationElement, CollectionElement, StringElement } from "./common-elements.js";
4
- import { ProgramContext } from "./program-context.js";
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":"AACA,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,8BAA8B,GAAuC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7F,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAElD,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
+ {"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 { Model } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const AlternateKeysAnnotation: FunctionComponent<{
4
- model: Model;
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":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,oBAAoB,CAAC;AAC1D,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAU7D,eAAO,MAAM,uBAAuB,EAAE,iBAAiB,CAAC;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CA0BvE,CAAC"}
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, { useContext } from "react";
2
- import { isAlternateKey, isComplex } from "../index.js";
3
- import { AnnotationElement, CollectionElement, PropertyValueElement, RecordElement, } from "./common-elements.js";
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
- const program = useContext(ProgramContext);
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
- const props = [...property.type.properties.entries()].reduce((prev, [_, prop]) => [...prev, prop], []);
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,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAA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+B;YACjD,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,GAAI,CACvD,CACjB,CAAC;KACH;IAED,MAAM,KAAK,GAAG,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,CAC1D,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,EACpC,EAAE,CACH,CAAC;IACF,OAAO,CACL,0CACG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,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"}
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;AACD,eAAO,MAAM,iBAAiB,UAAW,eAAe,+CACd,CAAC;AAE3C,eAAO,MAAM,2BAA2B,UAAW;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE;eAAL,GAAG;WACzB,CAAC;AAE3C,eAAO,MAAM,iBAAiB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WACd,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE;;cAAL,GAAG;WAC7B,CAAC;AAEvC,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;WACd,CAAC;AAEvD,eAAO,MAAM,mBAAmB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WACd,CAAC;AAE7C,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,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AC,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 (Array.isArray(props.items)) {
27
- if (props.items.length === 0) {
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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;SAAM;QACL,OAAO,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;KACzB;AACH,CAAC"}
@@ -1,6 +1,5 @@
1
- import { ModelProperty } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const ComputedAnnotation: FunctionComponent<{
4
- property: ModelProperty;
1
+ import { FC } from "react";
2
+ export declare const ComputedAnnotation: FC<{
3
+ isComputed: boolean;
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,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAK7D,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,aAAa,CAAA;CAAE,CAS7E,CAAC"}
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, { useContext } from "react";
2
- import { ProgramContext } from "./program-context.js";
1
+ import React from "react";
3
2
  import { AnnotationElement } from "./common-elements.js";
4
- import { isComputed } from "../index.js";
5
- export const ComputedAnnotation = ({ property: prop, }) => {
6
- const program = useContext(ProgramContext);
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":"AACA,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,kBAAkB,GAAmD,CAAC,EACjF,QAAQ,EAAE,IAAI,GACf,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE;QAC9B,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,GAAG,CAAC;AAC7E,CAAC,CAAC"}
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 { Interface } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const CountRestrictionsAnnotation: FunctionComponent<{
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,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAK7D,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CAAC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAiBnF,CAAC"}
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, { useContext } from "react";
2
- import { isCount } from "../index.js";
1
+ import React from "react";
3
2
  import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
4
- import { ProgramContext } from "./program-context.js";
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":"AACA,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,2BAA2B,GAAgD,CAAC,KAAK,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,iBAAiB,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,EAAE,CAChF,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAC5B,CAAC;IAEF,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
+ {"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 { Type } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const DescriptionAnnotation: FunctionComponent<{
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,OAAO,EAAE,IAAI,EAAU,MAAM,oBAAoB,CAAC;AAClD,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAI7D,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CAAC;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAOnE,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;AAGlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
@@ -1,13 +1,6 @@
1
- import { getDoc } from "@typespec/compiler";
2
- import React, { useContext } from "react";
1
+ import React from "react";
3
2
  import { AnnotationElement } from "./common-elements.js";
4
- import { ProgramContext } from "./program-context.js";
5
- export const DescriptionAnnotation = ({ type }) => {
6
- const program = useContext(ProgramContext);
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,EAAQ,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,qBAAqB,GAAsC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACnF,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnC,IAAI,IAAI,EAAE;QACR,OAAO,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,IAAI,GAAI,CAAC;KACjF;IACD,OAAO,yCAAK,CAAC;AACf,CAAC,CAAC"}
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,6 @@
1
+ import { FC } from "react";
2
+ import { EntityContainer } from "../entities/entity-container.js";
3
+ export declare const EntityContainerElement: FC<{
4
+ element: EntityContainer;
5
+ }>;
6
+ //# sourceMappingURL=entity-container-element.d.ts.map
@@ -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,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,GAAqC,CAAC,EA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,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,GAAI,CACzE,CACE;QAEpB,oBAAC,2BAA2B,IAAC,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,GAAI;QAC7E,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI;QAC1I,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,GAAI;QAChF,oBAAC,uBAAuB,IAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,GAAI;QACvE,oBAAC,0BAA0B,IAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,EAAE,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,GAAI;QAChI,oBAAC,sBAAsB,IAAC,eAAe,EAAE,OAAO,CAAC,eAAe,GAAI;QAEpE,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CACjD,CACb,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ import { MsGraphEnum } from "../entities/enum.js";
3
+ export declare const EnumTypeList: FC<{
4
+ elements: MsGraphEnum[];
5
+ }>;
6
+ //# sourceMappingURL=enum-type-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum-type-element.d.ts","sourceRoot":"","sources":["../../../src/components/enum-type-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAqB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAerE,eAAO,MAAM,YAAY,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,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,YAAY,GAAoC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC7E,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,GAAI,CAC1F,CAAC;AAEF,MAAM,eAAe,GAAiC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACpE,OAAO,CACL,oBAAC,QAAQ,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,KAAM,OAAO,CAAC,aAAa;QACrD,oBAAC,cAAc,IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAAI;QAC9C,oBAAC,mBAAmB,IAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAI,CACtD,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAA0C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9E,oBAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI,GAAI,CACxF,CAAC;AAEF,MAAM,aAAa,GAAuC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACxE,OAAO,CACL,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,KAAM,OAAO,CAAC,aAAa;QACzE,oBAAC,mBAAmB,IAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAI,CACxD,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
- import { Interface, Model } from "@typespec/compiler";
2
- import { FunctionComponent } from "react";
3
- export declare const ExpandRestrictionsAnnotation: FunctionComponent<{
4
- interface: Interface;
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,OAAO,EAAE,SAAS,EAAE,KAAK,EAA2B,MAAM,oBAAoB,CAAC;AAE/E,OAAc,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAa7D,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC;IAC3D,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;CACd,CAgDA,CAAC"}
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 { walkPropertiesInherited } from "@typespec/compiler";
2
- import { getOperationVerb } from "@typespec/http";
3
- import React, { useContext } from "react";
4
- import { ProgramContext } from "./program-context.js";
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,EAAoB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,6BAA6B,EAC7B,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB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,CAAC,CACvD,CAAC;IAEF,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,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACzC,oBAAC,6BAA6B,IAAC,GAAG,EAAE,QAAQ;oBAC1C,0CAAG,QAAQ,CAAI,CACe,CACjC,CAAC,CACgB,CACC,CACT,CACE,CACrB,CAAC;AACJ,CAAC,CAAC"}
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
- export * from "./acceptable-media-types-annotation.js";
2
- export * from "./alternate-keys-annotation.js";
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.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
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"}