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

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 (367) 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 +8 -16
  8. package/dist/src/components/alternate-keys-annotation.js.map +1 -1
  9. package/dist/src/components/annotations.d.ts +12 -0
  10. package/dist/src/components/annotations.d.ts.map +1 -0
  11. package/dist/src/components/annotations.js +63 -0
  12. package/dist/src/components/annotations.js.map +1 -0
  13. package/dist/src/components/common-elements.d.ts +15 -73
  14. package/dist/src/components/common-elements.d.ts.map +1 -1
  15. package/dist/src/components/common-elements.js +12 -26
  16. package/dist/src/components/common-elements.js.map +1 -1
  17. package/dist/src/components/computed-annotation.d.ts +3 -4
  18. package/dist/src/components/computed-annotation.d.ts.map +1 -1
  19. package/dist/src/components/computed-annotation.js +4 -10
  20. package/dist/src/components/computed-annotation.js.map +1 -1
  21. package/dist/src/components/count-restrictions-annotation.d.ts +3 -4
  22. package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
  23. package/dist/src/components/count-restrictions-annotation.js +4 -13
  24. package/dist/src/components/count-restrictions-annotation.js.map +1 -1
  25. package/dist/src/components/description-annotation.d.ts +3 -4
  26. package/dist/src/components/description-annotation.d.ts.map +1 -1
  27. package/dist/src/components/description-annotation.js +5 -11
  28. package/dist/src/components/description-annotation.js.map +1 -1
  29. package/dist/src/components/entity-container-element.d.ts +21 -0
  30. package/dist/src/components/entity-container-element.d.ts.map +1 -0
  31. package/dist/src/components/entity-container-element.js +22 -0
  32. package/dist/src/components/entity-container-element.js.map +1 -0
  33. package/dist/src/components/enum-type-element.d.ts +6 -0
  34. package/dist/src/components/enum-type-element.d.ts.map +1 -0
  35. package/dist/src/components/enum-type-element.js +17 -0
  36. package/dist/src/components/enum-type-element.js.map +1 -0
  37. package/dist/src/components/expand-restrictions-annotation.d.ts +4 -5
  38. package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
  39. package/dist/src/components/expand-restrictions-annotation.js +9 -30
  40. package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
  41. package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
  42. package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
  43. package/dist/src/components/filter-restrictions-annotation.js +10 -0
  44. package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
  45. package/dist/src/components/immutable-annotation.d.ts +5 -0
  46. package/dist/src/components/immutable-annotation.d.ts.map +1 -0
  47. package/dist/src/components/immutable-annotation.js +6 -0
  48. package/dist/src/components/immutable-annotation.js.map +1 -0
  49. package/dist/src/components/index.d.ts +2 -14
  50. package/dist/src/components/index.d.ts.map +1 -1
  51. package/dist/src/components/index.js +9 -14
  52. package/dist/src/components/index.js.map +1 -1
  53. package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
  54. package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
  55. package/dist/src/components/insert-restrictions-annotation.js +10 -0
  56. package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
  57. package/dist/src/components/operation-element.d.ts +6 -0
  58. package/dist/src/components/operation-element.d.ts.map +1 -0
  59. package/dist/src/components/operation-element.js +70 -0
  60. package/dist/src/components/operation-element.js.map +1 -0
  61. package/dist/src/components/permissions-annotation.d.ts +3 -4
  62. package/dist/src/components/permissions-annotation.d.ts.map +1 -1
  63. package/dist/src/components/permissions-annotation.js +2 -10
  64. package/dist/src/components/permissions-annotation.js.map +1 -1
  65. package/dist/src/components/property-element.d.ts +4 -4
  66. package/dist/src/components/property-element.d.ts.map +1 -1
  67. package/dist/src/components/property-element.js +16 -32
  68. package/dist/src/components/property-element.js.map +1 -1
  69. package/dist/src/components/revisions-annotation.d.ts +4 -5
  70. package/dist/src/components/revisions-annotation.d.ts.map +1 -1
  71. package/dist/src/components/revisions-annotation.js +7 -51
  72. package/dist/src/components/revisions-annotation.js.map +1 -1
  73. package/dist/src/components/schema-element.d.ts +6 -0
  74. package/dist/src/components/schema-element.d.ts.map +1 -0
  75. package/dist/src/components/schema-element.js +42 -0
  76. package/dist/src/components/schema-element.js.map +1 -0
  77. package/dist/src/components/search-restrictions-annotation.d.ts +3 -4
  78. package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
  79. package/dist/src/components/search-restrictions-annotation.js +4 -13
  80. package/dist/src/components/search-restrictions-annotation.js.map +1 -1
  81. package/dist/src/components/skip-supported-annotation.d.ts +3 -4
  82. package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
  83. package/dist/src/components/skip-supported-annotation.js +2 -11
  84. package/dist/src/components/skip-supported-annotation.js.map +1 -1
  85. package/dist/src/components/sort-restrictions-annotation.d.ts +4 -5
  86. package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
  87. package/dist/src/components/sort-restrictions-annotation.js +9 -30
  88. package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
  89. package/dist/src/components/structured-type-element.d.ts +7 -4
  90. package/dist/src/components/structured-type-element.d.ts.map +1 -1
  91. package/dist/src/components/structured-type-element.js +24 -66
  92. package/dist/src/components/structured-type-element.js.map +1 -1
  93. package/dist/src/components/top-supported-annotation.d.ts +3 -4
  94. package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
  95. package/dist/src/components/top-supported-annotation.js +3 -10
  96. package/dist/src/components/top-supported-annotation.js.map +1 -1
  97. package/dist/src/components/update-restrictions-annotation.d.ts +5 -0
  98. package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
  99. package/dist/src/components/update-restrictions-annotation.js +8 -0
  100. package/dist/src/components/update-restrictions-annotation.js.map +1 -0
  101. package/dist/src/decorators/abstract.d.ts.map +1 -1
  102. package/dist/src/decorators/abstract.js +0 -6
  103. package/dist/src/decorators/abstract.js.map +1 -1
  104. package/dist/src/decorators/action.d.ts +10 -0
  105. package/dist/src/decorators/action.d.ts.map +1 -0
  106. package/dist/src/decorators/action.js +16 -0
  107. package/dist/src/decorators/action.js.map +1 -0
  108. package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +3 -1
  109. package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
  110. package/dist/src/decorators/additional-query-parameters.js +21 -0
  111. package/dist/src/decorators/additional-query-parameters.js.map +1 -0
  112. package/dist/src/decorators/ags-attribute.d.ts +14 -0
  113. package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
  114. package/dist/src/decorators/ags-attribute.js +115 -0
  115. package/dist/src/decorators/ags-attribute.js.map +1 -0
  116. package/dist/src/decorators/allowed-values.d.ts +13 -0
  117. package/dist/src/decorators/allowed-values.d.ts.map +1 -0
  118. package/dist/src/decorators/allowed-values.js +35 -0
  119. package/dist/src/decorators/allowed-values.js.map +1 -0
  120. package/dist/src/decorators/complex.d.ts.map +1 -1
  121. package/dist/src/decorators/complex.js +0 -6
  122. package/dist/src/decorators/complex.js.map +1 -1
  123. package/dist/src/decorators/delta-collection.d.ts +8 -0
  124. package/dist/src/decorators/delta-collection.d.ts.map +1 -0
  125. package/dist/src/decorators/delta-collection.js +12 -0
  126. package/dist/src/decorators/delta-collection.js.map +1 -0
  127. package/dist/src/decorators/entity.d.ts.map +1 -1
  128. package/dist/src/decorators/entity.js +0 -6
  129. package/dist/src/decorators/entity.js.map +1 -1
  130. package/dist/src/decorators/filter.d.ts +11 -0
  131. package/dist/src/decorators/filter.d.ts.map +1 -0
  132. package/dist/src/decorators/filter.js +27 -0
  133. package/dist/src/decorators/filter.js.map +1 -0
  134. package/dist/src/decorators/flags.d.ts +9 -0
  135. package/dist/src/decorators/flags.d.ts.map +1 -0
  136. package/dist/src/decorators/flags.js +13 -0
  137. package/dist/src/decorators/flags.js.map +1 -0
  138. package/dist/src/decorators/function.d.ts +10 -0
  139. package/dist/src/decorators/function.d.ts.map +1 -0
  140. package/dist/src/decorators/function.js +16 -0
  141. package/dist/src/decorators/function.js.map +1 -0
  142. package/dist/src/decorators/graph-route.d.ts +16 -0
  143. package/dist/src/decorators/graph-route.d.ts.map +1 -0
  144. package/dist/src/decorators/graph-route.js +98 -0
  145. package/dist/src/decorators/graph-route.js.map +1 -0
  146. package/dist/src/decorators/has-stream.d.ts +1 -2
  147. package/dist/src/decorators/has-stream.d.ts.map +1 -1
  148. package/dist/src/decorators/has-stream.js +1 -14
  149. package/dist/src/decorators/has-stream.js.map +1 -1
  150. package/dist/src/decorators/immutable.d.ts +8 -0
  151. package/dist/src/decorators/immutable.d.ts.map +1 -0
  152. package/dist/src/decorators/immutable.js +12 -0
  153. package/dist/src/decorators/immutable.js.map +1 -0
  154. package/dist/src/decorators/index.d.ts +20 -1
  155. package/dist/src/decorators/index.d.ts.map +1 -1
  156. package/dist/src/decorators/index.js +20 -1
  157. package/dist/src/decorators/index.js.map +1 -1
  158. package/dist/src/decorators/is-owner.d.ts +10 -0
  159. package/dist/src/decorators/is-owner.d.ts.map +1 -0
  160. package/dist/src/decorators/is-owner.js +17 -0
  161. package/dist/src/decorators/is-owner.js.map +1 -0
  162. package/dist/src/decorators/open.d.ts.map +1 -1
  163. package/dist/src/decorators/open.js +0 -6
  164. package/dist/src/decorators/open.js.map +1 -1
  165. package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
  166. package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
  167. package/dist/src/decorators/operation-parameters.js +15 -0
  168. package/dist/src/decorators/operation-parameters.js.map +1 -0
  169. package/dist/src/decorators/paged-collection.d.ts +8 -0
  170. package/dist/src/decorators/paged-collection.d.ts.map +1 -0
  171. package/dist/src/decorators/paged-collection.js +12 -0
  172. package/dist/src/decorators/paged-collection.js.map +1 -0
  173. package/dist/src/decorators/partial.d.ts +10 -0
  174. package/dist/src/decorators/partial.d.ts.map +1 -0
  175. package/dist/src/decorators/partial.js +16 -0
  176. package/dist/src/decorators/partial.js.map +1 -0
  177. package/dist/src/decorators/private-preview.d.ts.map +1 -1
  178. package/dist/src/decorators/private-preview.js +0 -10
  179. package/dist/src/decorators/private-preview.js.map +1 -1
  180. package/dist/src/decorators/privileged.d.ts +9 -0
  181. package/dist/src/decorators/privileged.d.ts.map +1 -0
  182. package/dist/src/decorators/privileged.js +13 -0
  183. package/dist/src/decorators/privileged.js.map +1 -0
  184. package/dist/src/decorators/public-namespace.d.ts +10 -0
  185. package/dist/src/decorators/public-namespace.d.ts.map +1 -0
  186. package/dist/src/decorators/public-namespace.js +16 -0
  187. package/dist/src/decorators/public-namespace.js.map +1 -0
  188. package/dist/src/decorators/required-for-create.d.ts +10 -0
  189. package/dist/src/decorators/required-for-create.d.ts.map +1 -0
  190. package/dist/src/decorators/required-for-create.js +14 -0
  191. package/dist/src/decorators/required-for-create.js.map +1 -0
  192. package/dist/src/decorators/workload-name-msa.d.ts +9 -0
  193. package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
  194. package/dist/src/decorators/workload-name-msa.js +13 -0
  195. package/dist/src/decorators/workload-name-msa.js.map +1 -0
  196. package/dist/src/decorators/workload-name.d.ts +9 -0
  197. package/dist/src/decorators/workload-name.d.ts.map +1 -0
  198. package/dist/src/decorators/workload-name.js +13 -0
  199. package/dist/src/decorators/workload-name.js.map +1 -0
  200. package/dist/src/emitter.d.ts +2 -1
  201. package/dist/src/emitter.d.ts.map +1 -1
  202. package/dist/src/emitter.js +7 -3
  203. package/dist/src/emitter.js.map +1 -1
  204. package/dist/src/entities/annotations.d.ts +40 -0
  205. package/dist/src/entities/annotations.d.ts.map +1 -0
  206. package/dist/src/entities/annotations.js +139 -0
  207. package/dist/src/entities/annotations.js.map +1 -0
  208. package/dist/src/entities/entity-container.d.ts +15 -0
  209. package/dist/src/entities/entity-container.d.ts.map +1 -0
  210. package/dist/src/entities/entity-container.js +42 -0
  211. package/dist/src/entities/entity-container.js.map +1 -0
  212. package/dist/src/entities/enum.d.ts +17 -0
  213. package/dist/src/entities/enum.d.ts.map +1 -0
  214. package/dist/src/entities/enum.js +24 -0
  215. package/dist/src/entities/enum.js.map +1 -0
  216. package/dist/src/entities/model.d.ts +47 -0
  217. package/dist/src/entities/model.d.ts.map +1 -0
  218. package/dist/src/entities/model.js +104 -0
  219. package/dist/src/entities/model.js.map +1 -0
  220. package/dist/src/entities/namespace.d.ts +21 -0
  221. package/dist/src/entities/namespace.d.ts.map +1 -0
  222. package/dist/src/entities/namespace.js +81 -0
  223. package/dist/src/entities/namespace.js.map +1 -0
  224. package/dist/src/entities/operation.d.ts +28 -0
  225. package/dist/src/entities/operation.d.ts.map +1 -0
  226. package/dist/src/entities/operation.js +103 -0
  227. package/dist/src/entities/operation.js.map +1 -0
  228. package/dist/src/entities/property.d.ts +3 -0
  229. package/dist/src/entities/property.d.ts.map +1 -0
  230. package/dist/src/entities/property.js +57 -0
  231. package/dist/src/entities/property.js.map +1 -0
  232. package/dist/src/entities/revision-definition.d.ts +9 -0
  233. package/dist/src/entities/revision-definition.d.ts.map +1 -0
  234. package/dist/src/entities/revision-definition.js +42 -0
  235. package/dist/src/entities/revision-definition.js.map +1 -0
  236. package/dist/src/index.d.ts +0 -3
  237. package/dist/src/index.d.ts.map +1 -1
  238. package/dist/src/index.js +0 -3
  239. package/dist/src/index.js.map +1 -1
  240. package/dist/src/lib.d.ts +53 -2
  241. package/dist/src/lib.d.ts.map +1 -1
  242. package/dist/src/lib.js +25 -1
  243. package/dist/src/lib.js.map +1 -1
  244. package/dist/src/linter.d.ts.map +1 -1
  245. package/dist/src/linter.js +34 -25
  246. package/dist/src/linter.js.map +1 -1
  247. package/dist/src/rules/allowed-values.d.ts +6 -0
  248. package/dist/src/rules/allowed-values.d.ts.map +1 -0
  249. package/dist/src/rules/allowed-values.js +59 -0
  250. package/dist/src/rules/allowed-values.js.map +1 -0
  251. package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -0
  252. package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
  253. package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
  254. package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
  255. package/dist/src/rules/count.d.ts.map +1 -1
  256. package/dist/src/rules/count.js +3 -1
  257. package/dist/src/rules/count.js.map +1 -1
  258. package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -0
  259. package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
  260. package/dist/src/rules/disallowed-typespec-decorators.js +33 -0
  261. package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
  262. package/dist/src/rules/entity.d.ts +1 -0
  263. package/dist/src/rules/entity.d.ts.map +1 -1
  264. package/dist/src/rules/entity.js +43 -1
  265. package/dist/src/rules/entity.js.map +1 -1
  266. package/dist/src/rules/enum.d.ts +2 -0
  267. package/dist/src/rules/enum.d.ts.map +1 -0
  268. package/dist/src/rules/enum.js +26 -0
  269. package/dist/src/rules/enum.js.map +1 -0
  270. package/dist/src/rules/expand.d.ts.map +1 -1
  271. package/dist/src/rules/expand.js +5 -7
  272. package/dist/src/rules/expand.js.map +1 -1
  273. package/dist/src/rules/extends-on-same-type.d.ts +2 -0
  274. package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
  275. package/dist/src/rules/extends-on-same-type.js +38 -0
  276. package/dist/src/rules/extends-on-same-type.js.map +1 -0
  277. package/dist/src/rules/filter.d.ts +4 -0
  278. package/dist/src/rules/filter.d.ts.map +1 -0
  279. package/dist/src/rules/filter.js +92 -0
  280. package/dist/src/rules/filter.js.map +1 -0
  281. package/dist/src/rules/function.d.ts +2 -0
  282. package/dist/src/rules/function.d.ts.map +1 -0
  283. package/dist/src/rules/function.js +26 -0
  284. package/dist/src/rules/function.js.map +1 -0
  285. package/dist/src/rules/graph-route.d.ts +6 -0
  286. package/dist/src/rules/graph-route.d.ts.map +1 -0
  287. package/dist/src/rules/graph-route.js +88 -0
  288. package/dist/src/rules/graph-route.js.map +1 -0
  289. package/dist/src/rules/index.d.ts +13 -6
  290. package/dist/src/rules/index.d.ts.map +1 -1
  291. package/dist/src/rules/index.js +13 -161
  292. package/dist/src/rules/index.js.map +1 -1
  293. package/dist/src/rules/namespace.d.ts +3 -0
  294. package/dist/src/rules/namespace.d.ts.map +1 -0
  295. package/dist/src/rules/namespace.js +58 -0
  296. package/dist/src/rules/namespace.js.map +1 -0
  297. package/dist/src/rules/operation-inside-interface.d.ts +2 -0
  298. package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
  299. package/dist/src/rules/operation-inside-interface.js +25 -0
  300. package/dist/src/rules/operation-inside-interface.js.map +1 -0
  301. package/dist/src/rules/order-by.d.ts +1 -1
  302. package/dist/src/rules/order-by.d.ts.map +1 -1
  303. package/dist/src/rules/order-by.js +11 -10
  304. package/dist/src/rules/order-by.js.map +1 -1
  305. package/dist/src/rules/partial.d.ts +5 -0
  306. package/dist/src/rules/partial.d.ts.map +1 -0
  307. package/dist/src/rules/partial.js +35 -0
  308. package/dist/src/rules/partial.js.map +1 -0
  309. package/dist/src/rules/required-for-create.d.ts +2 -0
  310. package/dist/src/rules/required-for-create.d.ts.map +1 -0
  311. package/dist/src/rules/required-for-create.js +40 -0
  312. package/dist/src/rules/required-for-create.js.map +1 -0
  313. package/dist/src/rules/search.d.ts.map +1 -1
  314. package/dist/src/rules/search.js +3 -1
  315. package/dist/src/rules/search.js.map +1 -1
  316. package/dist/src/rules/skip.d.ts.map +1 -1
  317. package/dist/src/rules/skip.js +3 -1
  318. package/dist/src/rules/skip.js.map +1 -1
  319. package/dist/src/rules/top.d.ts.map +1 -1
  320. package/dist/src/rules/top.js +3 -1
  321. package/dist/src/rules/top.js.map +1 -1
  322. package/dist/src/utils.d.ts +18 -0
  323. package/dist/src/utils.d.ts.map +1 -1
  324. package/dist/src/utils.js +160 -4
  325. package/dist/src/utils.js.map +1 -1
  326. package/lib/decorators.tsp +182 -39
  327. package/lib/deployment.tsp +18 -0
  328. package/lib/lib.tsp +6 -22
  329. package/lib/msgraph.tsp +4 -0
  330. package/lib/porcelain.tsp +135 -0
  331. package/lib/responses.tsp +82 -0
  332. package/lib/shared-models.tsp +75 -0
  333. package/package.json +31 -20
  334. package/dist/src/components/program-context.d.ts +0 -4
  335. package/dist/src/components/program-context.d.ts.map +0 -1
  336. package/dist/src/components/program-context.js +0 -3
  337. package/dist/src/components/program-context.js.map +0 -1
  338. package/dist/src/csdl.d.ts +0 -8
  339. package/dist/src/csdl.d.ts.map +0 -1
  340. package/dist/src/csdl.js +0 -298
  341. package/dist/src/csdl.js.map +0 -1
  342. package/dist/src/decorators/attribute-builder.d.ts +0 -2
  343. package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
  344. package/dist/src/decorators/attribute-builder.js +0 -166
  345. package/dist/src/decorators/attribute-builder.js.map +0 -1
  346. package/dist/src/decorators/attributes.d.ts +0 -57
  347. package/dist/src/decorators/attributes.d.ts.map +0 -1
  348. package/dist/src/decorators/attributes.js +0 -50
  349. package/dist/src/decorators/attributes.js.map +0 -1
  350. package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
  351. package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -36
  352. package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
  353. package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -7
  354. package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
  355. package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
  356. package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
  357. package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
  358. package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
  359. package/dist/src/decorators/handlers/custom/index.js +0 -3
  360. package/dist/src/decorators/handlers/custom/index.js.map +0 -1
  361. package/dist/src/decorators/handlers/index.d.ts +0 -30
  362. package/dist/src/decorators/handlers/index.d.ts.map +0 -1
  363. package/dist/src/decorators/handlers/index.js +0 -121
  364. package/dist/src/decorators/handlers/index.js.map +0 -1
  365. package/dist/src/decorators/routed-interfaces.d.ts.map +0 -1
  366. package/dist/src/decorators/routed-interfaces.js +0 -43
  367. 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,30 +1,22 @@
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
  }
13
7
  return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.AlternateKeys" },
14
- React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.name },
8
+ React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.ModelProperty.name },
15
9
  React.createElement(PropertyValueElement, { Property: "Key" },
16
10
  React.createElement(CollectionElement, null,
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
- React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.name })));
16
+ React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.ModelProperty.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 },
27
- React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.name}/${prop.name}` }),
18
+ return (React.createElement(React.Fragment, null, [...property.ModelProperty.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
19
+ React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.ModelProperty.name}/${prop.name}` }),
28
20
  React.createElement(PropertyValueElement, { Property: "Alias", String: prop.name }))))));
29
21
  };
30
22
  //# sourceMappingURL=alternate-keys-annotation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,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,MAAM,uBAAuB,GAAwC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACxF,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAE3C,MAAM,aAAa,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;SAClD,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SAC9C,MAAM,CAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,I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O,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,aAAa,CAAC,IAAI;YAC9E,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,aAAa,CAAC,IAAI,GAAI,CACrE,CACjB,CAAC;KACH;IAED,OAAO,CACL,0CACG,CAAC,GAAI,QAAQ,CAAC,aAAa,CAAC,IAAc,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CACzE,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,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI;QACrG,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,GAAI,CAC9C,CACjB,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { AllowedValuesAnnotations, CollectionAnnotations, ResourceAnnotations } from "../entities/annotations.js";
3
+ export declare const CollectionAnnotationsList: FC<{
4
+ elements: Map<string, CollectionAnnotations>;
5
+ }>;
6
+ export declare const ResourceAnnotationsList: FC<{
7
+ elements: Map<string, ResourceAnnotations>;
8
+ }>;
9
+ export declare const AllowedValuesAnnotationsList: FC<{
10
+ elements: Map<string, AllowedValuesAnnotations>;
11
+ }>;
12
+ //# sourceMappingURL=annotations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAUjC,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAYlH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;CAAE,CAIrF,CAAA;AAEN,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAAE,CAIjF,CAAA;AAEJ,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;CAAG,CAI9F,CAAA"}
@@ -0,0 +1,63 @@
1
+ import React from "react";
2
+ import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
3
+ import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
4
+ import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
5
+ import { AnnotationElement, CollectionElement, ItemList, PropertyValueElement, RecordElement } from "./common-elements.js";
6
+ import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
7
+ import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
8
+ import { TopSupportedAnnotation } from "./top-supported-annotation.js";
9
+ import { DescriptionAnnotation } from "./description-annotation.js";
10
+ import { UpdateRestrictionsAnnotation } from "./update-restrictions-annotation.js";
11
+ import { InsertRestrictionsAnnotation } from "./insert-restrictions-annotation.js";
12
+ import { FilterRestrictionsAnnotation } from "./filter-restrictions-annotation.js";
13
+ import { getCSDLPrimitiveType } from "../utils.js";
14
+ const AnnotationsElem = (props) => React.createElement("Annotations", props);
15
+ export const CollectionAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(CollectionAnnotationsElement, { element: element }) });
16
+ export const ResourceAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(ResourceAnnotationsElement, { element: element }) });
17
+ export const AllowedValuesAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(AllowedValuesAnnotation, { element: element }) });
18
+ const AllowedValuesAnnotation = ({ element }) => {
19
+ var _a;
20
+ const { Target, allowedValues } = element;
21
+ return (React.createElement(AnnotationsElem, { Target: Target },
22
+ React.createElement(AnnotationElement, { Term: "Org.OData.Validation.V1.AllowedValues" },
23
+ React.createElement(CollectionElement, null, (_a = allowedValues === null || allowedValues === void 0 ? void 0 : allowedValues.values) === null || _a === void 0 ? void 0 : _a.map((value) => {
24
+ const csdlType = getCSDLPrimitiveType(allowedValues.type);
25
+ const props = {
26
+ Property: "Value",
27
+ [csdlType]: value
28
+ };
29
+ return (React.createElement(RecordElement, { key: value },
30
+ React.createElement(PropertyValueElement, { ...props })));
31
+ })))));
32
+ };
33
+ const CollectionAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
34
+ React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
35
+ React.createElement(RecordElement, null,
36
+ React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
37
+ React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
38
+ React.createElement(RecordElement, null,
39
+ React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))))),
40
+ React.createElement(InsertRestrictionsAnnotation, { hasPostOnCollection: element.HasPostOnCollection, requiredProperties: element.RequiredProperties }),
41
+ React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
42
+ React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
43
+ React.createElement(RecordElement, null,
44
+ React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
45
+ React.createElement(CountRestrictionsAnnotation, { hasCountOnCollection: element.HasCountOnCollection }),
46
+ React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
47
+ React.createElement(SearchRestrictionsAnnotation, { hasSearchOnCollection: element.HasSearchOnCollection }),
48
+ React.createElement(SkipSupportedAnnotation, { hasSkipOnCollection: element.HasSkipOnCollection }),
49
+ React.createElement(FilterRestrictionsAnnotation, { hasFilterOperation: element.HasFilterOperation, nonFilterableProperties: element.NonFilterableProperties }),
50
+ React.createElement(SortRestrictionsAnnotation, { hasSortOnCollection: element.HasSortOnCollection, nonSortableProperties: element.NonSortableProperties }),
51
+ React.createElement(TopSupportedAnnotation, { hasTopOnCollection: element.HasTopOnCollection }),
52
+ React.createElement(DescriptionAnnotation, { description: element.Description }));
53
+ const ResourceAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
54
+ React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
55
+ React.createElement(RecordElement, null,
56
+ React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))),
57
+ React.createElement(UpdateRestrictionsAnnotation, { hasUpdateOperation: element.HasPatchOnResource }),
58
+ React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
59
+ React.createElement(RecordElement, null,
60
+ React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
61
+ React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }),
62
+ React.createElement(DescriptionAnnotation, { description: element.Description }));
63
+ //# sourceMappingURL=annotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,2BAA2B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EAAE,OAAO,GAAG,EAAE,EAAE,CACtF,oBAAC,eAAe,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM;IACrC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4CAA4C;QAClE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,GAAI,CAC9D,CACE;IAEpB,oBAAC,4BAA4B,IAAC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,GAAG;IAE/E,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAI,CAClE,CACE;IAEpB,oBAAC,4BAA4B,IAAC,+BAA+B,EAAE,OAAO,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI;IACpK,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
@@ -2,10 +2,15 @@ import React, { ReactElement } from "react";
2
2
  interface AnnotationProps {
3
3
  Term: string;
4
4
  String?: string;
5
- Bool?: string;
5
+ Bool?: boolean;
6
6
  children?: any;
7
7
  }
8
- export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<AnnotationProps, Element>;
8
+ export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<{
9
+ Bool: string | undefined;
10
+ Term: string;
11
+ String?: string | undefined;
12
+ children?: any;
13
+ }, Element>;
9
14
  export declare const AnnotationEnumMemberElement: (props: {
10
15
  children?: any;
11
16
  }) => React.DOMElement<{
@@ -43,81 +48,18 @@ interface PropertyValueProps {
43
48
  Date?: string;
44
49
  EnumMember?: string;
45
50
  String?: string;
46
- Bool?: string;
51
+ Bool?: boolean;
47
52
  PropertyPath?: string;
48
53
  children?: any;
49
54
  }
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;
55
+ export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<{
56
+ Bool: string | undefined;
57
+ Property: string;
58
+ Date?: string | undefined;
59
+ EnumMember?: string | undefined;
60
+ String?: string | undefined;
61
+ PropertyPath?: string | undefined;
107
62
  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
63
  }, Element>;
122
64
  interface ItemListProps<T> {
123
65
  items: Map<string, T> | T[];
@@ -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,mBAAm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AG,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,UAAW,kBAAkB;;cARlD,MAAM;;;;;eAML,GAAG;WAEiI,CAAC;AAElJ,UAAU,aAAa,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,QAAQ,4DAYpB,CAAC"}
@@ -1,38 +1,24 @@
1
1
  import React from "react";
2
- export const AnnotationElement = (props) => React.createElement("Annotation", props);
2
+ export const AnnotationElement = (props) => { var _a; return React.createElement("Annotation", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
3
3
  export const AnnotationEnumMemberElement = (props) => React.createElement("EnumMember", props);
4
4
  export const CollectionElement = (props) => React.createElement("Collection", props);
5
5
  export const RecordElement = (props) => React.createElement("Record", props);
6
6
  export const StringElement = (props) => React.createElement("String", props);
7
7
  export const NavigationPropertyPathElement = (props) => React.createElement("NavigationPropertyPath", props);
8
8
  export const PropertyPathElement = (props) => React.createElement("PropertyPath", props);
9
- export const PropertyValueElement = (props) => React.createElement("PropertyValue", props);
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
- });
9
+ export const PropertyValueElement = (props) => { var _a; return React.createElement("PropertyValue", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
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=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;AAQ5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAsB,EAAE,EAAE,CAC1D,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAyB,EAAE,EAAE,CACvE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAC5D,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAuC,EAAE,EAAE,CACvE,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,K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M,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAyB,EAAE,EAAE,WAAC,OAAA,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,0CAAE,QAAQ,EAAE,EAAC,CAAC,CAAA,EAAA,CAAC;AAOlJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAmB,KAAuB,EAAE,EAAE;IACpE,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,CACL,0CACG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAC1C,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,IAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAkB,CAC3D,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,OAAO,CAAC,KAA+B;IAC9C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;KAC3B;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: isComputed })
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,EAAE,UAAU,GAAI;IAC3E,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
+ hasCountOnCollection: 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,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAKxD,CAAA"}
@@ -1,15 +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));
8
- if (hasCountOperation) {
9
- return React.createElement(React.Fragment, null);
10
- }
11
- return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.CountRestrictions" },
12
- React.createElement(RecordElement, null,
13
- React.createElement(PropertyValueElement, { Property: "Countable", Bool: "false" }))));
14
- };
3
+ export const CountRestrictionsAnnotation = ({ hasCountOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.CountRestrictions" },
4
+ React.createElement(RecordElement, null,
5
+ React.createElement(PropertyValueElement, { Property: "Countable", Bool: hasCountOnCollection })));
15
6
  //# sourceMappingURL=count-restrictions-annotation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"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,GAA0C,CAAC,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAC7G,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6CAA6C;IACnE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,oBAAoB,GAAI,CAC3D,CACE,CAAA"}
@@ -1,6 +1,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;AAIlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
@@ -1,13 +1,7 @@
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
+ // ToDo: add unit tests to Description annotation
4
+ export const DescriptionAnnotation = ({ description }) => description
5
+ ? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: description })
6
+ : React.createElement(React.Fragment, null);
13
7
  //# 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,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAA4C,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAChG,WAAW;IACT,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,WAAW,GAAI;IACjF,CAAC,CAAC,yCAAK,CAAA"}
@@ -0,0 +1,21 @@
1
+ import React, { FC } from "react";
2
+ import { EntitySet, Singleton } from "../entities/entity-container.js";
3
+ interface SingletonProps {
4
+ Name: string | undefined;
5
+ Type: string;
6
+ children?: any;
7
+ }
8
+ declare const Singleton: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
9
+ interface EntitySetProps {
10
+ Name: string | undefined;
11
+ EntityType: string;
12
+ children?: any;
13
+ }
14
+ declare const EntitySet: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
15
+ export declare const EntityContainerElement: FC<{
16
+ singletons: Map<string, Singleton>;
17
+ entitySets: Map<string, EntitySet>;
18
+ agsAttributes: Record<string, string>;
19
+ }>;
20
+ export {};
21
+ //# 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,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAQvE,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IACtC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAQf,CAAA"}
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { ItemList } from "./common-elements.js";
3
+ const EntityContainerElem = (props) => React.createElement("EntityContainer", props);
4
+ const Singleton = (props) => React.createElement("Singleton", props);
5
+ const EntitySet = (props) => React.createElement("EntitySet", props);
6
+ export const EntityContainerElement = ({ singletons, entitySets, agsAttributes, }) => React.createElement(EntityContainerElem, { Name: "container", ...agsAttributes },
7
+ React.createElement(SingletonList, { elements: singletons }),
8
+ React.createElement(EntitySetList, { elements: entitySets }));
9
+ const SingletonList = ({ elements }) => {
10
+ return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(SingletonElement, { element: element }) }));
11
+ };
12
+ const EntitySetList = ({ elements }) => {
13
+ return (React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetElement, { element: element }) }));
14
+ };
15
+ const SingletonElement = ({ element }) => React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes });
16
+ const EntitySetElement = ({ element }) => {
17
+ if (!element.TypeName) {
18
+ return React.createElement(React.Fragment, null);
19
+ }
20
+ return React.createElement(EntitySet, { Name: element.Name, EntityType: element.TypeName, ...element.AgsAttributes });
21
+ };
22
+ //# 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,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,mBAAmB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAO3G,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAOrF,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,sBAAsB,GAGU,CAAC,EAC1C,UAAU,EACV,UAAU,EACV,aAAa,GACd,EAAE,EAAE,CACH,oBAAC,mBAAmB,IAAC,IAAI,EAAC,WAAW,KAAK,aAAa;IACrD,oBAAC,aAAa,IAAC,QAAQ,EAAE,UAAU,GAAI;IACvC,oBAAC,aAAa,IAAC,QAAQ,EAAE,UAAU,GAAI,CACnB,CAAA;AAE1B,MAAM,aAAa,GAA6C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAA6C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,OAAO,GAAI,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAA+B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CACjE,oBAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,KAAM,OAAO,CAAC,aAAa,GAAI,CAAA;AAExF,MAAM,gBAAgB,GAA+B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACnE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;QACrB,OAAO,yCAAK,CAAC;KACd;IAED,OAAO,oBAAC,SAAS,IAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,QAAQ,KAAM,OAAO,CAAC,aAAa,GAAI,CAAC;AACpG,CAAC,CAAC"}
@@ -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"}