@microsoft/typespec-msgraph 0.0.1-Preview.8 → 1.0.0-Preview.2

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 (546) hide show
  1. package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
  2. package/dist/src/components/alternate-keys-annotation.js +2 -1
  3. package/dist/src/components/alternate-keys-annotation.js.map +1 -1
  4. package/dist/src/components/annotations.d.ts +6 -3
  5. package/dist/src/components/annotations.d.ts.map +1 -1
  6. package/dist/src/components/annotations.js +67 -7
  7. package/dist/src/components/annotations.js.map +1 -1
  8. package/dist/src/components/common-elements.d.ts +7 -7
  9. package/dist/src/components/common-elements.d.ts.map +1 -1
  10. package/dist/src/components/common-elements.js.map +1 -1
  11. package/dist/src/components/delta-annotation.d.ts +6 -0
  12. package/dist/src/components/delta-annotation.d.ts.map +1 -0
  13. package/dist/src/components/delta-annotation.js +18 -0
  14. package/dist/src/components/delta-annotation.js.map +1 -0
  15. package/dist/src/components/entity-container-element.d.ts.map +1 -1
  16. package/dist/src/components/entity-container-element.js +16 -6
  17. package/dist/src/components/entity-container-element.js.map +1 -1
  18. package/dist/src/components/enum-type-element.d.ts.map +1 -1
  19. package/dist/src/components/enum-type-element.js +6 -3
  20. package/dist/src/components/enum-type-element.js.map +1 -1
  21. package/dist/src/components/filter-restrictions-annotation.js +1 -1
  22. package/dist/src/components/filter-restrictions-annotation.js.map +1 -1
  23. package/dist/src/components/index.js +3 -3
  24. package/dist/src/components/index.js.map +1 -1
  25. package/dist/src/components/is-url-annotation.d.ts +5 -0
  26. package/dist/src/components/is-url-annotation.d.ts.map +1 -0
  27. package/dist/src/components/is-url-annotation.js +6 -0
  28. package/dist/src/components/is-url-annotation.js.map +1 -0
  29. package/dist/src/components/open-property-type-constraint-annotation-element.d.ts +5 -0
  30. package/dist/src/components/open-property-type-constraint-annotation-element.d.ts.map +1 -0
  31. package/dist/src/components/open-property-type-constraint-annotation-element.js +7 -0
  32. package/dist/src/components/open-property-type-constraint-annotation-element.js.map +1 -0
  33. package/dist/src/components/operation-element.d.ts.map +1 -1
  34. package/dist/src/components/operation-element.js +30 -15
  35. package/dist/src/components/operation-element.js.map +1 -1
  36. package/dist/src/components/permissions-annotation.js.map +1 -1
  37. package/dist/src/components/property-element.d.ts.map +1 -1
  38. package/dist/src/components/property-element.js +8 -4
  39. package/dist/src/components/property-element.js.map +1 -1
  40. package/dist/src/components/reference-target-element.d.ts +9 -0
  41. package/dist/src/components/reference-target-element.d.ts.map +1 -0
  42. package/dist/src/components/reference-target-element.js +3 -0
  43. package/dist/src/components/reference-target-element.js.map +1 -0
  44. package/dist/src/components/revisions-annotation.d.ts.map +1 -1
  45. package/dist/src/components/revisions-annotation.js +2 -1
  46. package/dist/src/components/revisions-annotation.js.map +1 -1
  47. package/dist/src/components/schema-element.d.ts.map +1 -1
  48. package/dist/src/components/schema-element.js +9 -3
  49. package/dist/src/components/schema-element.js.map +1 -1
  50. package/dist/src/components/select-supported-annotation.d.ts +5 -0
  51. package/dist/src/components/select-supported-annotation.d.ts.map +1 -0
  52. package/dist/src/components/select-supported-annotation.js +6 -0
  53. package/dist/src/components/select-supported-annotation.js.map +1 -0
  54. package/dist/src/components/structured-type-element.d.ts.map +1 -1
  55. package/dist/src/components/structured-type-element.js +8 -6
  56. package/dist/src/components/structured-type-element.js.map +1 -1
  57. package/dist/src/components/term-element.d.ts +9 -0
  58. package/dist/src/components/term-element.d.ts.map +1 -0
  59. package/dist/src/components/term-element.js +8 -0
  60. package/dist/src/components/term-element.js.map +1 -0
  61. package/dist/src/components/top-supported-annotation.js +1 -1
  62. package/dist/src/components/top-supported-annotation.js.map +1 -1
  63. package/dist/src/components/update-restrictions-annotation.d.ts +2 -1
  64. package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -1
  65. package/dist/src/components/update-restrictions-annotation.js +4 -4
  66. package/dist/src/components/update-restrictions-annotation.js.map +1 -1
  67. package/dist/src/decorators/abstract.d.ts +2 -0
  68. package/dist/src/decorators/abstract.d.ts.map +1 -1
  69. package/dist/src/decorators/abstract.js +2 -0
  70. package/dist/src/decorators/abstract.js.map +1 -1
  71. package/dist/src/decorators/action.d.ts +2 -0
  72. package/dist/src/decorators/action.d.ts.map +1 -1
  73. package/dist/src/decorators/action.js +2 -0
  74. package/dist/src/decorators/action.js.map +1 -1
  75. package/dist/src/decorators/additional-query-parameters.d.ts +2 -0
  76. package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -1
  77. package/dist/src/decorators/additional-query-parameters.js +2 -0
  78. package/dist/src/decorators/additional-query-parameters.js.map +1 -1
  79. package/dist/src/decorators/address-url-msa.d.ts +14 -0
  80. package/dist/src/decorators/address-url-msa.d.ts.map +1 -0
  81. package/dist/src/decorators/address-url-msa.js +21 -0
  82. package/dist/src/decorators/address-url-msa.js.map +1 -0
  83. package/dist/src/decorators/address-url.d.ts +18 -0
  84. package/dist/src/decorators/address-url.d.ts.map +1 -0
  85. package/dist/src/decorators/address-url.js +21 -0
  86. package/dist/src/decorators/address-url.js.map +1 -0
  87. package/dist/src/decorators/ags-attribute.d.ts +7 -3
  88. package/dist/src/decorators/ags-attribute.d.ts.map +1 -1
  89. package/dist/src/decorators/ags-attribute.js +102 -3
  90. package/dist/src/decorators/ags-attribute.js.map +1 -1
  91. package/dist/src/decorators/allowed-values.d.ts +15 -0
  92. package/dist/src/decorators/allowed-values.d.ts.map +1 -0
  93. package/dist/src/decorators/allowed-values.js +37 -0
  94. package/dist/src/decorators/allowed-values.js.map +1 -0
  95. package/dist/src/decorators/complex.d.ts +2 -0
  96. package/dist/src/decorators/complex.d.ts.map +1 -1
  97. package/dist/src/decorators/complex.js +2 -0
  98. package/dist/src/decorators/complex.js.map +1 -1
  99. package/dist/src/decorators/computed.d.ts +2 -0
  100. package/dist/src/decorators/computed.d.ts.map +1 -1
  101. package/dist/src/decorators/computed.js +2 -0
  102. package/dist/src/decorators/computed.js.map +1 -1
  103. package/dist/src/decorators/contains.d.ts +2 -0
  104. package/dist/src/decorators/contains.d.ts.map +1 -1
  105. package/dist/src/decorators/contains.js +2 -0
  106. package/dist/src/decorators/contains.js.map +1 -1
  107. package/dist/src/decorators/count.d.ts +2 -0
  108. package/dist/src/decorators/count.d.ts.map +1 -1
  109. package/dist/src/decorators/count.js +2 -0
  110. package/dist/src/decorators/count.js.map +1 -1
  111. package/dist/src/decorators/delta.d.ts +10 -0
  112. package/dist/src/decorators/delta.d.ts.map +1 -0
  113. package/dist/src/decorators/delta.js +14 -0
  114. package/dist/src/decorators/delta.js.map +1 -0
  115. package/dist/src/decorators/deprecated-definition.d.ts +2 -0
  116. package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
  117. package/dist/src/decorators/deprecated-definition.js.map +1 -1
  118. package/dist/src/decorators/entity.d.ts +3 -0
  119. package/dist/src/decorators/entity.d.ts.map +1 -1
  120. package/dist/src/decorators/entity.js +7 -1
  121. package/dist/src/decorators/entity.js.map +1 -1
  122. package/dist/src/decorators/expand.d.ts +3 -0
  123. package/dist/src/decorators/expand.d.ts.map +1 -1
  124. package/dist/src/decorators/expand.js +7 -1
  125. package/dist/src/decorators/expand.js.map +1 -1
  126. package/dist/src/decorators/experimental.d.ts +11 -0
  127. package/dist/src/decorators/experimental.d.ts.map +1 -0
  128. package/dist/src/decorators/experimental.js +15 -0
  129. package/dist/src/decorators/experimental.js.map +1 -0
  130. package/dist/src/decorators/filter.d.ts +3 -1
  131. package/dist/src/decorators/filter.d.ts.map +1 -1
  132. package/dist/src/decorators/filter.js +9 -7
  133. package/dist/src/decorators/filter.js.map +1 -1
  134. package/dist/src/decorators/function.d.ts +9 -2
  135. package/dist/src/decorators/function.d.ts.map +1 -1
  136. package/dist/src/decorators/function.js +7 -2
  137. package/dist/src/decorators/function.js.map +1 -1
  138. package/dist/src/decorators/global-operation.d.ts +11 -0
  139. package/dist/src/decorators/global-operation.d.ts.map +1 -0
  140. package/dist/src/decorators/global-operation.js +15 -0
  141. package/dist/src/decorators/global-operation.js.map +1 -0
  142. package/dist/src/decorators/graph-deprecated.d.ts +13 -0
  143. package/dist/src/decorators/graph-deprecated.d.ts.map +1 -0
  144. package/dist/src/decorators/graph-deprecated.js +21 -0
  145. package/dist/src/decorators/graph-deprecated.js.map +1 -0
  146. package/dist/src/decorators/graph-partial.d.ts +12 -0
  147. package/dist/src/decorators/graph-partial.d.ts.map +1 -0
  148. package/dist/src/decorators/graph-partial.js +18 -0
  149. package/dist/src/decorators/graph-partial.js.map +1 -0
  150. package/dist/src/decorators/graph-route.d.ts +13 -2
  151. package/dist/src/decorators/graph-route.d.ts.map +1 -1
  152. package/dist/src/decorators/graph-route.js +67 -15
  153. package/dist/src/decorators/graph-route.js.map +1 -1
  154. package/dist/src/decorators/graphFlags.d.ts +11 -0
  155. package/dist/src/decorators/graphFlags.d.ts.map +1 -0
  156. package/dist/src/decorators/graphFlags.js +15 -0
  157. package/dist/src/decorators/graphFlags.js.map +1 -0
  158. package/dist/src/decorators/immutable.d.ts +2 -0
  159. package/dist/src/decorators/immutable.d.ts.map +1 -1
  160. package/dist/src/decorators/immutable.js +2 -0
  161. package/dist/src/decorators/immutable.js.map +1 -1
  162. package/dist/src/decorators/index.d.ts +23 -3
  163. package/dist/src/decorators/index.d.ts.map +1 -1
  164. package/dist/src/decorators/index.js +23 -3
  165. package/dist/src/decorators/index.js.map +1 -1
  166. package/dist/src/decorators/is-owner.d.ts +5 -2
  167. package/dist/src/decorators/is-owner.d.ts.map +1 -1
  168. package/dist/src/decorators/is-owner.js +9 -4
  169. package/dist/src/decorators/is-owner.js.map +1 -1
  170. package/dist/src/decorators/limited-charset.d.ts +11 -0
  171. package/dist/src/decorators/limited-charset.d.ts.map +1 -0
  172. package/dist/src/decorators/limited-charset.js +15 -0
  173. package/dist/src/decorators/limited-charset.js.map +1 -0
  174. package/dist/src/decorators/media.d.ts +12 -0
  175. package/dist/src/decorators/media.d.ts.map +1 -0
  176. package/dist/src/decorators/media.js +18 -0
  177. package/dist/src/decorators/media.js.map +1 -0
  178. package/dist/src/decorators/open.d.ts +2 -0
  179. package/dist/src/decorators/open.d.ts.map +1 -1
  180. package/dist/src/decorators/open.js +2 -0
  181. package/dist/src/decorators/open.js.map +1 -1
  182. package/dist/src/decorators/operation-parameters.d.ts +2 -0
  183. package/dist/src/decorators/operation-parameters.d.ts.map +1 -1
  184. package/dist/src/decorators/operation-parameters.js +2 -0
  185. package/dist/src/decorators/operation-parameters.js.map +1 -1
  186. package/dist/src/decorators/order-by.d.ts +2 -0
  187. package/dist/src/decorators/order-by.d.ts.map +1 -1
  188. package/dist/src/decorators/order-by.js +2 -0
  189. package/dist/src/decorators/order-by.js.map +1 -1
  190. package/dist/src/decorators/ownerless.d.ts +10 -0
  191. package/dist/src/decorators/ownerless.d.ts.map +1 -0
  192. package/dist/src/decorators/ownerless.js +14 -0
  193. package/dist/src/decorators/ownerless.js.map +1 -0
  194. package/dist/src/decorators/passthrough-address-url-msa.d.ts +14 -0
  195. package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
  196. package/dist/src/decorators/passthrough-address-url-msa.js +20 -0
  197. package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
  198. package/dist/src/decorators/passthrough-address-url.d.ts +14 -0
  199. package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
  200. package/dist/src/decorators/passthrough-address-url.js +20 -0
  201. package/dist/src/decorators/passthrough-address-url.js.map +1 -0
  202. package/dist/src/decorators/prefixed-graph-routes.d.ts +10 -0
  203. package/dist/src/decorators/prefixed-graph-routes.d.ts.map +1 -0
  204. package/dist/src/decorators/prefixed-graph-routes.js +27 -0
  205. package/dist/src/decorators/prefixed-graph-routes.js.map +1 -0
  206. package/dist/src/decorators/private-preview-definition.d.ts +2 -0
  207. package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
  208. package/dist/src/decorators/private-preview-definition.js +2 -0
  209. package/dist/src/decorators/private-preview-definition.js.map +1 -1
  210. package/dist/src/decorators/private-preview.d.ts +4 -2
  211. package/dist/src/decorators/private-preview.d.ts.map +1 -1
  212. package/dist/src/decorators/private-preview.js +2 -0
  213. package/dist/src/decorators/private-preview.js.map +1 -1
  214. package/dist/src/decorators/privileged.d.ts +2 -0
  215. package/dist/src/decorators/privileged.d.ts.map +1 -1
  216. package/dist/src/decorators/privileged.js +2 -0
  217. package/dist/src/decorators/privileged.js.map +1 -1
  218. package/dist/src/decorators/public-namespace.d.ts +12 -0
  219. package/dist/src/decorators/public-namespace.d.ts.map +1 -0
  220. package/dist/src/decorators/public-namespace.js +21 -0
  221. package/dist/src/decorators/public-namespace.js.map +1 -0
  222. package/dist/src/decorators/read-only.d.ts +2 -0
  223. package/dist/src/decorators/read-only.d.ts.map +1 -1
  224. package/dist/src/decorators/read-only.js +2 -0
  225. package/dist/src/decorators/read-only.js.map +1 -1
  226. package/dist/src/decorators/reference-target.d.ts +17 -0
  227. package/dist/src/decorators/reference-target.d.ts.map +1 -0
  228. package/dist/src/decorators/reference-target.js +59 -0
  229. package/dist/src/decorators/reference-target.js.map +1 -0
  230. package/dist/src/decorators/references.d.ts +2 -0
  231. package/dist/src/decorators/references.d.ts.map +1 -1
  232. package/dist/src/decorators/references.js +2 -0
  233. package/dist/src/decorators/references.js.map +1 -1
  234. package/dist/src/decorators/required-for-create.d.ts +2 -0
  235. package/dist/src/decorators/required-for-create.d.ts.map +1 -1
  236. package/dist/src/decorators/required-for-create.js +2 -0
  237. package/dist/src/decorators/required-for-create.js.map +1 -1
  238. package/dist/src/decorators/return-source.d.ts +11 -0
  239. package/dist/src/decorators/return-source.d.ts.map +1 -0
  240. package/dist/src/decorators/return-source.js +28 -0
  241. package/dist/src/decorators/return-source.js.map +1 -0
  242. package/dist/src/decorators/search.d.ts +2 -0
  243. package/dist/src/decorators/search.d.ts.map +1 -1
  244. package/dist/src/decorators/search.js +2 -0
  245. package/dist/src/decorators/search.js.map +1 -1
  246. package/dist/src/decorators/select.d.ts +11 -0
  247. package/dist/src/decorators/select.d.ts.map +1 -0
  248. package/dist/src/decorators/select.js +15 -0
  249. package/dist/src/decorators/select.js.map +1 -0
  250. package/dist/src/decorators/shared-entity.d.ts +9 -0
  251. package/dist/src/decorators/shared-entity.d.ts.map +1 -0
  252. package/dist/src/decorators/shared-entity.js +15 -0
  253. package/dist/src/decorators/shared-entity.js.map +1 -0
  254. package/dist/src/decorators/skip.d.ts +2 -0
  255. package/dist/src/decorators/skip.d.ts.map +1 -1
  256. package/dist/src/decorators/skip.js +2 -0
  257. package/dist/src/decorators/skip.js.map +1 -1
  258. package/dist/src/decorators/term.d.ts +13 -0
  259. package/dist/src/decorators/term.d.ts.map +1 -0
  260. package/dist/src/decorators/term.js +14 -0
  261. package/dist/src/decorators/term.js.map +1 -0
  262. package/dist/src/decorators/top.d.ts +2 -0
  263. package/dist/src/decorators/top.d.ts.map +1 -1
  264. package/dist/src/decorators/top.js +2 -0
  265. package/dist/src/decorators/top.js.map +1 -1
  266. package/dist/src/decorators/workload-name-msa.d.ts +2 -0
  267. package/dist/src/decorators/workload-name-msa.d.ts.map +1 -1
  268. package/dist/src/decorators/workload-name-msa.js +2 -0
  269. package/dist/src/decorators/workload-name-msa.js.map +1 -1
  270. package/dist/src/decorators/workload-name.d.ts +2 -0
  271. package/dist/src/decorators/workload-name.d.ts.map +1 -1
  272. package/dist/src/decorators/workload-name.js +2 -0
  273. package/dist/src/decorators/workload-name.js.map +1 -1
  274. package/dist/src/decorators/workload-namespace.d.ts +12 -0
  275. package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
  276. package/dist/src/decorators/workload-namespace.js +21 -0
  277. package/dist/src/decorators/workload-namespace.js.map +1 -0
  278. package/dist/src/decorators/write-only.d.ts +2 -0
  279. package/dist/src/decorators/write-only.d.ts.map +1 -1
  280. package/dist/src/decorators/write-only.js +2 -0
  281. package/dist/src/decorators/write-only.js.map +1 -1
  282. package/dist/src/dom/error-interceptor.d.ts +2 -0
  283. package/dist/src/dom/error-interceptor.d.ts.map +1 -0
  284. package/dist/src/dom/error-interceptor.js +13 -0
  285. package/dist/src/dom/error-interceptor.js.map +1 -0
  286. package/dist/src/dom/reconciler.js.map +1 -1
  287. package/dist/src/dom/renderer.d.ts +1 -0
  288. package/dist/src/dom/renderer.d.ts.map +1 -1
  289. package/dist/src/dom/renderer.js +1 -0
  290. package/dist/src/dom/renderer.js.map +1 -1
  291. package/dist/src/emitter.d.ts +2 -1
  292. package/dist/src/emitter.d.ts.map +1 -1
  293. package/dist/src/emitter.js +31 -2
  294. package/dist/src/emitter.js.map +1 -1
  295. package/dist/src/entities/address-url.d.ts +8 -0
  296. package/dist/src/entities/address-url.d.ts.map +1 -0
  297. package/dist/src/entities/address-url.js +47 -0
  298. package/dist/src/entities/address-url.js.map +1 -0
  299. package/dist/src/entities/annotations.d.ts +23 -4
  300. package/dist/src/entities/annotations.d.ts.map +1 -1
  301. package/dist/src/entities/annotations.js +137 -72
  302. package/dist/src/entities/annotations.js.map +1 -1
  303. package/dist/src/entities/entity-container.d.ts +21 -0
  304. package/dist/src/entities/entity-container.d.ts.map +1 -1
  305. package/dist/src/entities/entity-container.js +33 -4
  306. package/dist/src/entities/entity-container.js.map +1 -1
  307. package/dist/src/entities/enum.d.ts +3 -1
  308. package/dist/src/entities/enum.d.ts.map +1 -1
  309. package/dist/src/entities/enum.js +10 -5
  310. package/dist/src/entities/enum.js.map +1 -1
  311. package/dist/src/entities/model.d.ts +38 -9
  312. package/dist/src/entities/model.d.ts.map +1 -1
  313. package/dist/src/entities/model.js +311 -14
  314. package/dist/src/entities/model.js.map +1 -1
  315. package/dist/src/entities/ms-graph-route.d.ts +13 -0
  316. package/dist/src/entities/ms-graph-route.d.ts.map +1 -0
  317. package/dist/src/entities/ms-graph-route.js +67 -0
  318. package/dist/src/entities/ms-graph-route.js.map +1 -0
  319. package/dist/src/entities/namespace.d.ts +27 -4
  320. package/dist/src/entities/namespace.d.ts.map +1 -1
  321. package/dist/src/entities/namespace.js +321 -29
  322. package/dist/src/entities/namespace.js.map +1 -1
  323. package/dist/src/entities/operation.d.ts +18 -0
  324. package/dist/src/entities/operation.d.ts.map +1 -1
  325. package/dist/src/entities/operation.js +143 -21
  326. package/dist/src/entities/operation.js.map +1 -1
  327. package/dist/src/entities/property.d.ts.map +1 -1
  328. package/dist/src/entities/property.js +7 -0
  329. package/dist/src/entities/property.js.map +1 -1
  330. package/dist/src/entities/revision-definition.d.ts +3 -2
  331. package/dist/src/entities/revision-definition.d.ts.map +1 -1
  332. package/dist/src/entities/revision-definition.js +17 -6
  333. package/dist/src/entities/revision-definition.js.map +1 -1
  334. package/dist/src/entities/term.d.ts +8 -0
  335. package/dist/src/entities/term.d.ts.map +1 -0
  336. package/dist/src/entities/term.js +14 -0
  337. package/dist/src/entities/term.js.map +1 -0
  338. package/dist/src/index.d.ts +2 -0
  339. package/dist/src/index.d.ts.map +1 -1
  340. package/dist/src/index.js +2 -0
  341. package/dist/src/index.js.map +1 -1
  342. package/dist/src/lib.d.ts +139 -94
  343. package/dist/src/lib.d.ts.map +1 -1
  344. package/dist/src/lib.js +92 -11
  345. package/dist/src/lib.js.map +1 -1
  346. package/dist/src/linter.d.ts +1 -2
  347. package/dist/src/linter.d.ts.map +1 -1
  348. package/dist/src/linter.js +32 -38
  349. package/dist/src/linter.js.map +1 -1
  350. package/dist/src/path-tree.d.ts +16 -0
  351. package/dist/src/path-tree.d.ts.map +1 -0
  352. package/dist/src/path-tree.js +76 -0
  353. package/dist/src/path-tree.js.map +1 -0
  354. package/dist/src/rules/abstract.d.ts +2 -1
  355. package/dist/src/rules/abstract.d.ts.map +1 -1
  356. package/dist/src/rules/abstract.js +8 -8
  357. package/dist/src/rules/abstract.js.map +1 -1
  358. package/dist/src/rules/address-url.d.ts +20 -0
  359. package/dist/src/rules/address-url.d.ts.map +1 -0
  360. package/dist/src/rules/address-url.js +248 -0
  361. package/dist/src/rules/address-url.js.map +1 -0
  362. package/dist/src/rules/allowed-values.d.ts +7 -0
  363. package/dist/src/rules/allowed-values.d.ts.map +1 -0
  364. package/dist/src/rules/allowed-values.js +59 -0
  365. package/dist/src/rules/allowed-values.js.map +1 -0
  366. package/dist/src/rules/alternate-key.d.ts +4 -3
  367. package/dist/src/rules/alternate-key.d.ts.map +1 -1
  368. package/dist/src/rules/alternate-key.js +23 -23
  369. package/dist/src/rules/alternate-key.js.map +1 -1
  370. package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -1
  371. package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -1
  372. package/dist/src/rules/collection-navigation-properties-not-nullable.js +9 -9
  373. package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -1
  374. package/dist/src/rules/complex.d.ts +3 -0
  375. package/dist/src/rules/complex.d.ts.map +1 -0
  376. package/dist/src/rules/complex.js +27 -0
  377. package/dist/src/rules/complex.js.map +1 -0
  378. package/dist/src/rules/computed.d.ts +2 -3
  379. package/dist/src/rules/computed.d.ts.map +1 -1
  380. package/dist/src/rules/computed.js +14 -16
  381. package/dist/src/rules/computed.js.map +1 -1
  382. package/dist/src/rules/contains.d.ts +2 -1
  383. package/dist/src/rules/contains.d.ts.map +1 -1
  384. package/dist/src/rules/contains.js +9 -8
  385. package/dist/src/rules/contains.js.map +1 -1
  386. package/dist/src/rules/count.d.ts +2 -1
  387. package/dist/src/rules/count.d.ts.map +1 -1
  388. package/dist/src/rules/count.js +9 -8
  389. package/dist/src/rules/count.js.map +1 -1
  390. package/dist/src/rules/delta.d.ts +8 -0
  391. package/dist/src/rules/delta.d.ts.map +1 -0
  392. package/dist/src/rules/delta.js +208 -0
  393. package/dist/src/rules/delta.js.map +1 -0
  394. package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -1
  395. package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -1
  396. package/dist/src/rules/disallowed-typespec-decorators.js +29 -25
  397. package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -1
  398. package/dist/src/rules/documentation.d.ts +4 -0
  399. package/dist/src/rules/documentation.d.ts.map +1 -0
  400. package/dist/src/rules/documentation.js +91 -0
  401. package/dist/src/rules/documentation.js.map +1 -0
  402. package/dist/src/rules/entity.d.ts +9 -2
  403. package/dist/src/rules/entity.d.ts.map +1 -1
  404. package/dist/src/rules/entity.js +170 -17
  405. package/dist/src/rules/entity.js.map +1 -1
  406. package/dist/src/rules/enum.d.ts +5 -1
  407. package/dist/src/rules/enum.d.ts.map +1 -1
  408. package/dist/src/rules/enum.js +35 -6
  409. package/dist/src/rules/enum.js.map +1 -1
  410. package/dist/src/rules/expand.d.ts +3 -2
  411. package/dist/src/rules/expand.d.ts.map +1 -1
  412. package/dist/src/rules/expand.js +25 -20
  413. package/dist/src/rules/expand.js.map +1 -1
  414. package/dist/src/rules/extends-on-same-type.d.ts +2 -1
  415. package/dist/src/rules/extends-on-same-type.d.ts.map +1 -1
  416. package/dist/src/rules/extends-on-same-type.js +9 -8
  417. package/dist/src/rules/extends-on-same-type.js.map +1 -1
  418. package/dist/src/rules/filter.d.ts +6 -3
  419. package/dist/src/rules/filter.d.ts.map +1 -1
  420. package/dist/src/rules/filter.js +100 -32
  421. package/dist/src/rules/filter.js.map +1 -1
  422. package/dist/src/rules/function.d.ts +3 -1
  423. package/dist/src/rules/function.d.ts.map +1 -1
  424. package/dist/src/rules/function.js +48 -9
  425. package/dist/src/rules/function.js.map +1 -1
  426. package/dist/src/rules/global-operation.d.ts +4 -0
  427. package/dist/src/rules/global-operation.d.ts.map +1 -0
  428. package/dist/src/rules/global-operation.js +60 -0
  429. package/dist/src/rules/global-operation.js.map +1 -0
  430. package/dist/src/rules/graph-deprecated.d.ts +8 -0
  431. package/dist/src/rules/graph-deprecated.d.ts.map +1 -0
  432. package/dist/src/rules/graph-deprecated.js +152 -0
  433. package/dist/src/rules/graph-deprecated.js.map +1 -0
  434. package/dist/src/rules/graph-partial.d.ts +9 -0
  435. package/dist/src/rules/graph-partial.d.ts.map +1 -0
  436. package/dist/src/rules/graph-partial.js +84 -0
  437. package/dist/src/rules/graph-partial.js.map +1 -0
  438. package/dist/src/rules/graph-route.d.ts +13 -1
  439. package/dist/src/rules/graph-route.d.ts.map +1 -1
  440. package/dist/src/rules/graph-route.js +375 -19
  441. package/dist/src/rules/graph-route.js.map +1 -1
  442. package/dist/src/rules/index.d.ts +18 -2
  443. package/dist/src/rules/index.d.ts.map +1 -1
  444. package/dist/src/rules/index.js +18 -2
  445. package/dist/src/rules/index.js.map +1 -1
  446. package/dist/src/rules/limited-charset.d.ts +3 -0
  447. package/dist/src/rules/limited-charset.d.ts.map +1 -0
  448. package/dist/src/rules/limited-charset.js +42 -0
  449. package/dist/src/rules/limited-charset.js.map +1 -0
  450. package/dist/src/rules/media.d.ts +10 -0
  451. package/dist/src/rules/media.d.ts.map +1 -0
  452. package/dist/src/rules/media.js +122 -0
  453. package/dist/src/rules/media.js.map +1 -0
  454. package/dist/src/rules/model.d.ts +10 -0
  455. package/dist/src/rules/model.d.ts.map +1 -0
  456. package/dist/src/rules/model.js +131 -0
  457. package/dist/src/rules/model.js.map +1 -0
  458. package/dist/src/rules/namespace.d.ts +6 -0
  459. package/dist/src/rules/namespace.d.ts.map +1 -0
  460. package/dist/src/rules/namespace.js +110 -0
  461. package/dist/src/rules/namespace.js.map +1 -0
  462. package/dist/src/rules/open.d.ts +2 -1
  463. package/dist/src/rules/open.d.ts.map +1 -1
  464. package/dist/src/rules/open.js +9 -8
  465. package/dist/src/rules/open.js.map +1 -1
  466. package/dist/src/rules/operation-inside-interface.d.ts +6 -1
  467. package/dist/src/rules/operation-inside-interface.d.ts.map +1 -1
  468. package/dist/src/rules/operation-inside-interface.js +78 -7
  469. package/dist/src/rules/operation-inside-interface.js.map +1 -1
  470. package/dist/src/rules/order-by.d.ts +3 -2
  471. package/dist/src/rules/order-by.d.ts.map +1 -1
  472. package/dist/src/rules/order-by.js +19 -19
  473. package/dist/src/rules/order-by.js.map +1 -1
  474. package/dist/src/rules/ownerless.d.ts +11 -0
  475. package/dist/src/rules/ownerless.d.ts.map +1 -0
  476. package/dist/src/rules/ownerless.js +170 -0
  477. package/dist/src/rules/ownerless.js.map +1 -0
  478. package/dist/src/rules/record-t.d.ts +11 -0
  479. package/dist/src/rules/record-t.d.ts.map +1 -0
  480. package/dist/src/rules/record-t.js +129 -0
  481. package/dist/src/rules/record-t.js.map +1 -0
  482. package/dist/src/rules/reference-target.d.ts +6 -0
  483. package/dist/src/rules/reference-target.d.ts.map +1 -0
  484. package/dist/src/rules/reference-target.js +113 -0
  485. package/dist/src/rules/reference-target.js.map +1 -0
  486. package/dist/src/rules/references.d.ts +2 -1
  487. package/dist/src/rules/references.d.ts.map +1 -1
  488. package/dist/src/rules/references.js +9 -8
  489. package/dist/src/rules/references.js.map +1 -1
  490. package/dist/src/rules/required-for-create.d.ts +2 -1
  491. package/dist/src/rules/required-for-create.d.ts.map +1 -1
  492. package/dist/src/rules/required-for-create.js +11 -10
  493. package/dist/src/rules/required-for-create.js.map +1 -1
  494. package/dist/src/rules/return-source.d.ts +3 -0
  495. package/dist/src/rules/return-source.d.ts.map +1 -0
  496. package/dist/src/rules/return-source.js +27 -0
  497. package/dist/src/rules/return-source.js.map +1 -0
  498. package/dist/src/rules/search.d.ts +2 -1
  499. package/dist/src/rules/search.d.ts.map +1 -1
  500. package/dist/src/rules/search.js +9 -8
  501. package/dist/src/rules/search.js.map +1 -1
  502. package/dist/src/rules/shared-entity.d.ts +8 -0
  503. package/dist/src/rules/shared-entity.d.ts.map +1 -0
  504. package/dist/src/rules/shared-entity.js +176 -0
  505. package/dist/src/rules/shared-entity.js.map +1 -0
  506. package/dist/src/rules/skip.d.ts +2 -1
  507. package/dist/src/rules/skip.d.ts.map +1 -1
  508. package/dist/src/rules/skip.js +9 -8
  509. package/dist/src/rules/skip.js.map +1 -1
  510. package/dist/src/rules/top.d.ts +2 -1
  511. package/dist/src/rules/top.d.ts.map +1 -1
  512. package/dist/src/rules/top.js +9 -8
  513. package/dist/src/rules/top.js.map +1 -1
  514. package/dist/src/testing/index.d.ts +1 -0
  515. package/dist/src/testing/index.d.ts.map +1 -1
  516. package/dist/src/testing/index.js +21 -0
  517. package/dist/src/testing/index.js.map +1 -1
  518. package/dist/src/utils.d.ts +69 -13
  519. package/dist/src/utils.d.ts.map +1 -1
  520. package/dist/src/utils.js +651 -76
  521. package/dist/src/utils.js.map +1 -1
  522. package/dist/src/validate.d.ts +3 -0
  523. package/dist/src/validate.d.ts.map +1 -0
  524. package/dist/src/validate.js +98 -0
  525. package/dist/src/validate.js.map +1 -0
  526. package/lib/bodies.tsp +71 -0
  527. package/lib/decorators.tsp +282 -75
  528. package/lib/deployment.tsp +1 -1
  529. package/lib/lib.tsp +4 -2
  530. package/lib/msgraph.tsp +1 -0
  531. package/lib/porcelain.tsp +82 -27
  532. package/lib/responses.tsp +20 -43
  533. package/lib/shared-models.tsp +10 -54
  534. package/package.json +24 -26
  535. package/dist/src/decorators/flags.d.ts +0 -9
  536. package/dist/src/decorators/flags.d.ts.map +0 -1
  537. package/dist/src/decorators/flags.js +0 -13
  538. package/dist/src/decorators/flags.js.map +0 -1
  539. package/dist/src/decorators/has-stream.d.ts +0 -10
  540. package/dist/src/decorators/has-stream.d.ts.map +0 -1
  541. package/dist/src/decorators/has-stream.js +0 -17
  542. package/dist/src/decorators/has-stream.js.map +0 -1
  543. package/dist/src/rules/has-stream.d.ts +0 -2
  544. package/dist/src/rules/has-stream.d.ts.map +0 -1
  545. package/dist/src/rules/has-stream.js +0 -29
  546. package/dist/src/rules/has-stream.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAS5B;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAA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AAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GACpF,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAErB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAQ7F;AAsBD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU,EACnF,IAAI,CAAC,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoCxB;AA8ED,wBAAgB,6CAA6C,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAmBhL"}
@@ -1,13 +1,19 @@
1
1
  import { unpackAdditionalQueryParameters } from "./additional-query-parameters.js";
2
- import { isIsOwner } from "./is-owner.js";
2
+ import { getIsOwnerAttribute, hasIsOwner } from "./is-owner.js";
3
3
  import { isPrivileged } from "./privileged.js";
4
4
  import { getWorkloadNameMsa } from "./workload-name-msa.js";
5
5
  import { getWorkloadName } from "./workload-name.js";
6
+ import { isContains, isExperimental, isOwnerless, isPartial, isSharedEntity } from "../index.js";
7
+ import { MsGraphModelKind } from "../entities/model.js";
8
+ import { isPrivatePreview } from "./private-preview.js";
9
+ import { getInterfaceNavigationSourceType, isNavigationProperty, isTypeDefinedInExternalLibrary, isTypeDefinedInLocalProject } from "../utils.js";
6
10
  const agsAttributeKey = Symbol("agsAttribute");
7
11
  /**
8
12
  * `@agsAttribute` - Allows all AGS CSDL extensions that are not yet modelled explicitly in TypeSpec to be maintained
9
13
  *
10
14
  * `@agsAttribute` - Applies to models.
15
+ *
16
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/60673be93bd1791123d0be02d346f76f8494b8c87c9ece257f3e7bba63302d28)
11
17
  */
12
18
  export function $agsAttribute(context, target, name, value) {
13
19
  const agsAttributes = getAgsAttributes(context.program, target);
@@ -24,20 +30,22 @@ export function unpackAgsAttributes(program, target) {
24
30
  return params;
25
31
  }
26
32
  const decoratorToMethodMapper = {
27
- isOwner: isIsOwner,
33
+ isOwner: hasIsOwner,
28
34
  privileged: isPrivileged,
29
35
  workloadName: getWorkloadName,
30
36
  workloadNameMsa: getWorkloadNameMsa,
31
37
  additionalQueryParameters: unpackAdditionalQueryParameters,
32
38
  agsAttribute: unpackAgsAttributes,
39
+ experimental: isExperimental,
33
40
  };
34
41
  const decoratorToAgsAttributeMapper = {
35
42
  isOwner: "ags:IsOwner",
36
43
  privileged: "ags:IsHidden",
37
44
  workloadName: "ags:WorkloadName",
38
45
  workloadNameMsa: "ags:WorkloadNameMsa",
46
+ experimental: "ags:IsHidden",
39
47
  };
40
- export function buildAttributes(program, type) {
48
+ export function buildAttributes(program, type, kind) {
41
49
  const declaredDecorators = [
42
50
  "isOwner",
43
51
  "privileged",
@@ -45,6 +53,7 @@ export function buildAttributes(program, type) {
45
53
  "workloadNameMsa",
46
54
  "additionalQueryParameters",
47
55
  "agsAttribute",
56
+ "experimental",
48
57
  ];
49
58
  let attrs = {};
50
59
  type.decorators
@@ -63,6 +72,96 @@ export function buildAttributes(program, type) {
63
72
  attrs = { ...attrs, ...{ [agsAttr]: agsAttrParams } };
64
73
  }
65
74
  });
75
+ attrs = enrichAttributesWithIsSharedEntity(program, type, attrs);
76
+ attrs = enrichAttributesWithIsOwner(program, type, attrs, kind);
77
+ attrs = enrichAttributesWithIsHidden(program, type, attrs);
78
+ if (attrs["ags:IsHidden"] && type.kind === "Namespace") {
79
+ delete attrs["ags:IsHidden"];
80
+ }
81
+ return attrs;
82
+ }
83
+ function enrichAttributesWithIsOwner(program, type, attrs, kind) {
84
+ if (kind === MsGraphModelKind.Complex) {
85
+ return attrs;
86
+ }
87
+ if (type.kind === "Model" && isSharedEntity(program, type)) {
88
+ return attrs;
89
+ }
90
+ if (type.kind === "Model" || type.kind === "ModelProperty") {
91
+ if (type.kind === "ModelProperty" && !isNavigationProperty(program, type)) {
92
+ return attrs;
93
+ }
94
+ const isOwnerAttribute = getIsOwnerAttribute(program, type);
95
+ if (isOwnerAttribute === false) {
96
+ attrs["ags:IsOwner"] = "false";
97
+ return attrs;
98
+ }
99
+ else if (isOwnerAttribute === true) {
100
+ attrs["ags:IsOwner"] = "true";
101
+ return attrs;
102
+ }
103
+ else {
104
+ const isOwner = isTypeDefinedInLocalProject(program, type);
105
+ if (type.kind === "Model" && isOwner && isPartial(program, type)) {
106
+ attrs["ags:IsOwner"] = "false";
107
+ return attrs;
108
+ }
109
+ else if (type.kind === "ModelProperty" && isContains(program, type)
110
+ && isTypeDefinedInExternalLibrary(program, type.type) && !isSharedEntity(program, type.type)) {
111
+ attrs["ags:IsOwner"] = "false";
112
+ return attrs;
113
+ }
114
+ attrs = { ...attrs, ...{ "ags:IsOwner": `${isOwner}` } };
115
+ }
116
+ }
66
117
  return attrs;
67
118
  }
119
+ function enrichAttributesWithIsHidden(program, type, attrs) {
120
+ const hiddenStatusChecks = [isPrivatePreview, isPrivileged, isExperimental];
121
+ let isHidden = hiddenStatusChecks.some(check => check(program, type) || namespaceHasDecorator(program, type, check));
122
+ if (isHidden && !attrs.hasOwnProperty("ags:IsHidden")) {
123
+ attrs = { ...attrs, "ags:IsHidden": "true" };
124
+ }
125
+ return attrs;
126
+ }
127
+ function enrichAttributesWithIsSharedEntity(program, type, attrs) {
128
+ if (type.kind === 'Model' && isSharedEntity(program, type)) {
129
+ attrs = { ...attrs, "ags:IsSharedEntity": "true" };
130
+ }
131
+ return attrs;
132
+ }
133
+ function namespaceHasDecorator(program, type, isDecoratorPresent) {
134
+ switch (type.kind) {
135
+ case "Model":
136
+ case "Enum":
137
+ case "Interface":
138
+ case "Operation":
139
+ const namespace = type.namespace;
140
+ if (isDecoratorPresent(program, namespace)) {
141
+ return true;
142
+ }
143
+ break;
144
+ }
145
+ return false;
146
+ }
147
+ export function applyOwnerlessAttributeToInterfaceBindingType(program, interfaces, models) {
148
+ if (interfaces.size === 0) {
149
+ return models;
150
+ }
151
+ interfaces.forEach((theInterface, key) => {
152
+ if (isOwnerless(program, theInterface)) {
153
+ const bindingType = getInterfaceNavigationSourceType(program, theInterface);
154
+ if (bindingType) {
155
+ const model = models.get(bindingType.name);
156
+ if (model) {
157
+ const modelAttributes = model === null || model === void 0 ? void 0 : model.AgsAttributes;
158
+ modelAttributes["ags:IsOwner"] = "false";
159
+ modelAttributes["ags:IsOwnerlessSingleton"] = "true";
160
+ model.AgsAttributes = modelAttributes;
161
+ }
162
+ }
163
+ }
164
+ });
165
+ return models;
166
+ }
68
167
  //# sourceMappingURL=ags-attribute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,MAAyE,EACzE,IAAY,EACZ,KAAa;IAEb,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAChE,aAAa,CAAC,GAAG,CAAC,IA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E,EAAE;QACvC,IAAI,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC;YACvC,MAAM,WAAW,GAAG,gCAAgC,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;YAC5E,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC3C,IAAI,KAAK,EAAE,CAAC;oBACV,MAAM,eAAe,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,CAAC;oBAC7C,eAAe,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;oBACzC,eAAe,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAC;oBACrD,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC;gBACxC,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
2
+ import { AllowedValues } from "../entities/model.js";
3
+ /**
4
+ * `@allowedValues` - mark a model property with allowedValues
5
+ *
6
+ * `@allowedValues` can only be applied to model properties.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/b18d69318f896779f1f4a68cb77892a708aac8cfca5e7178d617592581256f40)
9
+ */
10
+ export declare function $allowedValues(context: DecoratorContext, target: ModelProperty, ...values: unknown[]): void;
11
+ export declare function hasAllowedValues(program: Program, target: ModelProperty): boolean;
12
+ export declare function getAllowedValues(program: Program, target: ModelProperty): AllowedValues;
13
+ export declare function isAllowedValuesArgumentsEmpty(program: Program, target: ModelProperty): boolean;
14
+ export declare function isAllowedValuesPrimitive(program: Program, target: ModelProperty): boolean;
15
+ //# sourceMappingURL=allowed-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowed-values.d.ts","sourceRoot":"","sources":["../../../src/decorators/allowed-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD;;;;;;GAMG;AAEH,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,QAEpG;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAEvE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,aAAa,CAOvF;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAEpF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAQzF"}
@@ -0,0 +1,37 @@
1
+ const allowedValuesKey = Symbol("allowedValues");
2
+ /**
3
+ * `@allowedValues` - mark a model property with allowedValues
4
+ *
5
+ * `@allowedValues` can only be applied to model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/b18d69318f896779f1f4a68cb77892a708aac8cfca5e7178d617592581256f40)
8
+ */
9
+ export function $allowedValues(context, target, ...values) {
10
+ context.program.stateMap(allowedValuesKey).set(target, values);
11
+ }
12
+ export function hasAllowedValues(program, target) {
13
+ return program.stateMap(allowedValuesKey).has(target);
14
+ }
15
+ export function getAllowedValues(program, target) {
16
+ var _a;
17
+ const values = program.stateMap(allowedValuesKey).get(target);
18
+ const type = (_a = target.type.node) === null || _a === void 0 ? void 0 : _a.symbol.name;
19
+ return {
20
+ type: type,
21
+ values: values
22
+ };
23
+ }
24
+ export function isAllowedValuesArgumentsEmpty(program, target) {
25
+ var _a, _b;
26
+ return ((_b = (_a = getAllowedValues(program, target)) === null || _a === void 0 ? void 0 : _a.values) === null || _b === void 0 ? void 0 : _b.length) === 0;
27
+ }
28
+ export function isAllowedValuesPrimitive(program, target) {
29
+ const values = program.stateMap(allowedValuesKey).get(target);
30
+ for (let i = 0; i < (values === null || values === void 0 ? void 0 : values.length); i++) {
31
+ if (typeof values[i] === 'object' || values[i] === null || Array.isArray(values[i]) || typeof values[i] === 'function') {
32
+ return false;
33
+ }
34
+ }
35
+ return true;
36
+ }
37
+ //# sourceMappingURL=allowed-values.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowed-values.js","sourceRoot":"","sources":["../../../src/decorators/allowed-values.ts"],"names":[],"mappings":"AAGA,MAAM,gBAAgB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACjD;;;;;;GAMG;AAEH,MAAM,UAAU,cAAc,CAAC,OAAyB,EAAE,MAAqB,EAAE,GAAG,MAAiB;IACnG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAAqB;IACtE,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAAqB;;IACtE,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,IAAI,CAAC;IAC3C,OAAO;QACL,IAAI,EAAE,IAAK;QACX,MAAM,EAAE,MAAM;KACf,CAAA;AACH,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,OAAgB,EAAE,MAAqB;;IACnF,OAAO,CAAA,MAAA,MAAA,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,0CAAE,MAAM,0CAAE,MAAM,MAAK,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAAqB;IAC9E,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9D,KAAK,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,IAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA,EAAG,CAAC,EAAE,EAAC,CAAC;QACpC,IAAG,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,KAAK,UAAU,EAAC,CAAC;YACrH,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
3
3
  * `@complex` - mark a model as a complex type
4
4
  *
5
5
  * `@complex` can only be applied to models.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/d24f257c6583a27871c8fb867cdea330c0965dcd5816ef06f205d864c78f0043)
6
8
  */
7
9
  export declare function $complex(context: DecoratorContext, complex: Model): void;
8
10
  export declare function isComplex(program: Program, complex: Model): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../src/decorators/complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,QAEjE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,WAEzD"}
1
+ {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../src/decorators/complex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,QAEjE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,WAEzD"}
@@ -3,6 +3,8 @@ const complexKey = Symbol("complex");
3
3
  * `@complex` - mark a model as a complex type
4
4
  *
5
5
  * `@complex` can only be applied to models.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/d24f257c6583a27871c8fb867cdea330c0965dcd5816ef06f205d864c78f0043)
6
8
  */
7
9
  export function $complex(context, complex) {
8
10
  context.program.stateSet(complexKey).add(complex);
@@ -1 +1 @@
1
- {"version":3,"file":"complex.js","sourceRoot":"","sources":["../../../src/decorators/complex.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,OAAc;IAChE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,OAAc;IACxD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACnD,CAAC"}
1
+ {"version":3,"file":"complex.js","sourceRoot":"","sources":["../../../src/decorators/complex.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,OAAc;IAChE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,OAAc;IACxD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACnD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
3
3
  * `@computed` - mark a model property as a computed property
4
4
  *
5
5
  * `@computed` can only be applied to model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/04971597afc3166f2ad3dafc8497494d49e3f855e64b82136c65fa65f7515acd)
6
8
  */
7
9
  export declare function $computed(context: DecoratorContext, property: ModelProperty): void;
8
10
  export declare function isComputed(program: Program, property: ModelProperty): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"computed.d.ts","sourceRoot":"","sources":["../../../src/decorators/computed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG9E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,aAAa,QAE3E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
1
+ {"version":3,"file":"computed.d.ts","sourceRoot":"","sources":["../../../src/decorators/computed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,aAAa,QAE3E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
@@ -3,6 +3,8 @@ const computedKey = Symbol("computed");
3
3
  * `@computed` - mark a model property as a computed property
4
4
  *
5
5
  * `@computed` can only be applied to model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/04971597afc3166f2ad3dafc8497494d49e3f855e64b82136c65fa65f7515acd)
6
8
  */
7
9
  export function $computed(context, property) {
8
10
  context.program.stateSet(computedKey).add(property);
@@ -1 +1 @@
1
- {"version":3,"file":"computed.js","sourceRoot":"","sources":["../../../src/decorators/computed.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,QAAuB;IAC1E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"computed.js","sourceRoot":"","sources":["../../../src/decorators/computed.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,QAAuB;IAC1E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
3
3
  * `@contains` - mark a model property as a contained navigation property
4
4
  *
5
5
  * `@contains` can only be applied to navigation model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/f67194dbd2961ad9e812c57eb1fbe005913e68408ff732d50aac327103c12c34)
6
8
  */
7
9
  export declare function $contains(context: DecoratorContext, entity: ModelProperty): void;
8
10
  export declare function isContains(program: Program, property: ModelProperty): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAEzE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
1
+ {"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAEzE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
@@ -3,6 +3,8 @@ const containsKey = Symbol("contains");
3
3
  * `@contains` - mark a model property as a contained navigation property
4
4
  *
5
5
  * `@contains` can only be applied to navigation model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/f67194dbd2961ad9e812c57eb1fbe005913e68408ff732d50aac327103c12c34)
6
8
  */
7
9
  export function $contains(context, entity) {
8
10
  context.program.stateSet(containsKey).add(entity);
@@ -1 +1 @@
1
- {"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAqB;IACxE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAqB;IACxE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
3
3
  * `@count` - Applies to: get operations that return collections.
4
4
  * Indicates that the get operation supports both the OData $count query parameter and the $count trailing segment added to the collection route.
5
5
  * These are indivisible for the sake of customer simplicity.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c5da2774c9e957e156baa1b28a836b4ad24f1c999c0a2eccfcaca6ed549ab2c6)
6
8
  */
7
9
  export declare function $count(context: DecoratorContext, target: Operation): void;
8
10
  export declare function isCount(program: Program, target: Operation): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/decorators/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,QAElE;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE1D"}
1
+ {"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../src/decorators/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,QAElE;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE1D"}
@@ -3,6 +3,8 @@ const countKey = Symbol("count");
3
3
  * `@count` - Applies to: get operations that return collections.
4
4
  * Indicates that the get operation supports both the OData $count query parameter and the $count trailing segment added to the collection route.
5
5
  * These are indivisible for the sake of customer simplicity.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c5da2774c9e957e156baa1b28a836b4ad24f1c999c0a2eccfcaca6ed549ab2c6)
6
8
  */
7
9
  export function $count(context, target) {
8
10
  context.program.stateSet(countKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"count.js","sourceRoot":"","sources":["../../../src/decorators/count.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,OAAyB,EAAE,MAAiB;IACjE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAiB;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
1
+ {"version":3,"file":"count.js","sourceRoot":"","sources":["../../../src/decorators/count.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,UAAU,MAAM,CAAC,OAAyB,EAAE,MAAiB;IACjE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAiB;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
2
+ /**
3
+ * Marks a @function operation as a delta operation.
4
+ * Can only be applied to @function operations.
5
+ * @param context
6
+ * @param target
7
+ */
8
+ export declare function $delta(context: DecoratorContext, target: Operation): void;
9
+ export declare function isDelta(program: Program, target: Operation): boolean;
10
+ //# sourceMappingURL=delta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delta.d.ts","sourceRoot":"","sources":["../../../src/decorators/delta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,QAElE;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE1D"}
@@ -0,0 +1,14 @@
1
+ const deltaKey = Symbol('delta');
2
+ /**
3
+ * Marks a @function operation as a delta operation.
4
+ * Can only be applied to @function operations.
5
+ * @param context
6
+ * @param target
7
+ */
8
+ export function $delta(context, target) {
9
+ context.program.stateSet(deltaKey).add(target);
10
+ }
11
+ export function isDelta(program, target) {
12
+ return program.stateSet(deltaKey).has(target);
13
+ }
14
+ //# sourceMappingURL=delta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delta.js","sourceRoot":"","sources":["../../../src/decorators/delta.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CAAC,OAAyB,EAAE,MAAiB;IACjE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAiB;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Namespace, Program } from "@typespec/compiler";
3
3
  * `@deprecatedDefinition` - create a reusable deprecation definition.
4
4
  *
5
5
  * `@deprecatedDefinition` can only be applied to namespaces.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/4f9dd3c25cc40429ef717fb0d984be99492fea1d16dae579e3bfea92de188598)
6
8
  */
7
9
  export interface DeprecatedDefinitionParameters {
8
10
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,QAMpB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErF;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,GAAG,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAK7C"}
1
+ {"version":3,"file":"deprecated-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,QAMpB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErF;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,GAAG,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAK7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-definition.js","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAeA,MAAM,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,QAAgB,EAChB,gBAAwB,EACxB,WAAmB,EACnB,WAAmB;IAEnB,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACtE,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;IAEtF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAAiB;IAC1E,OAAO,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAAiB;IAEjB,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;QACrD,IAAI,GAAG,EAA0C,CAClD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"deprecated-definition.js","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAiBA,MAAM,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,QAAgB,EAChB,gBAAwB,EACxB,WAAmB,EACnB,WAAmB;IAEnB,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACtE,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;IAEtF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAAiB;IAC1E,OAAO,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAAiB;IAEjB,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;QACrD,IAAI,GAAG,EAA0C,CAClD,CAAC;AACJ,CAAC"}
@@ -3,8 +3,11 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
3
3
  * `@entity` - mark a model as an entity type
4
4
  *
5
5
  * `@entity` can only be applied to models.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/2d1797d7ed936752383ce3c9c1313afbd37aeb159a34048d0442b8ba02ef1e7a)
6
8
  */
7
9
  export declare function $entity(context: DecoratorContext, entity: Model): void;
10
+ export declare function isDirectEntity(program: Program, entity: Model): boolean;
8
11
  export declare function isEntity(program: Program, entity: Model): boolean;
9
12
  export declare function getEntity(program: Program, name: string): Model | undefined;
10
13
  //# sourceMappingURL=entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/decorators/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAE/D;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAEvD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAM3E"}
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/decorators/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKtE;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAE/D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAE7D;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAEvD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAM3E"}
@@ -1,15 +1,21 @@
1
+ import { isSharedEntity } from "./shared-entity.js";
1
2
  const entityKey = Symbol("entity");
2
3
  /**
3
4
  * `@entity` - mark a model as an entity type
4
5
  *
5
6
  * `@entity` can only be applied to models.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/2d1797d7ed936752383ce3c9c1313afbd37aeb159a34048d0442b8ba02ef1e7a)
6
9
  */
7
10
  export function $entity(context, entity) {
8
11
  context.program.stateSet(entityKey).add(entity);
9
12
  }
10
- export function isEntity(program, entity) {
13
+ export function isDirectEntity(program, entity) {
11
14
  return program.stateSet(entityKey).has(entity);
12
15
  }
16
+ export function isEntity(program, entity) {
17
+ return isDirectEntity(program, entity) || isSharedEntity(program, entity);
18
+ }
13
19
  export function getEntity(program, name) {
14
20
  const matches = [...program.stateSet(entityKey)].filter((type) => type.kind === "Model" && type.name === name);
15
21
  return matches.length ? matches[0] : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/decorators/entity.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAa;IAC9D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAa;IACtD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,IAAY;IACtD,MAAM,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CACrD,CAAC,IAAI,EAAiB,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CACrE,CAAC;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACjD,CAAC"}
1
+ {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/decorators/entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAa;IAC9D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAa;IAC5D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAa;IACtD,OAAO,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,IAAY;IACtD,MAAM,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CACrD,CAAC,IAAI,EAAiB,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CACrE,CAAC;IAEF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACjD,CAAC"}
@@ -4,8 +4,11 @@ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
4
4
  * Indicates that the get operation supports the OData $expand query parameter.
5
5
  *
6
6
  * `properties` - Property names in the model returned from the get operation that can be used in a $expand query parameter.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/93bb7e256a1fc0221a42ac770ee7cbaba8375f07d675ddcc754509cf14767d44)
7
9
  */
8
10
  export declare function $expand(context: DecoratorContext, target: Operation, ...properties: string[]): void;
9
11
  export declare function getExpand(program: Program, target: Operation): string[];
10
12
  export declare function isExpand(program: Program, target: Operation): boolean;
13
+ export declare function sanitizeExpandProperties(expandProps: string[]): string[];
11
14
  //# sourceMappingURL=expand.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAE5F;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErE"}
1
+ {"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAG5F;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErE;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAExE"}
@@ -4,9 +4,12 @@ const expandKey = Symbol("expand");
4
4
  * Indicates that the get operation supports the OData $expand query parameter.
5
5
  *
6
6
  * `properties` - Property names in the model returned from the get operation that can be used in a $expand query parameter.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/93bb7e256a1fc0221a42ac770ee7cbaba8375f07d675ddcc754509cf14767d44)
7
9
  */
8
10
  export function $expand(context, target, ...properties) {
9
- context.program.stateMap(expandKey).set(target, properties);
11
+ const sanitizedProperties = sanitizeExpandProperties(properties);
12
+ context.program.stateMap(expandKey).set(target, sanitizedProperties);
10
13
  }
11
14
  export function getExpand(program, target) {
12
15
  return program.stateMap(expandKey).get(target) || [];
@@ -14,4 +17,7 @@ export function getExpand(program, target) {
14
17
  export function isExpand(program, target) {
15
18
  return program.stateMap(expandKey).has(target);
16
19
  }
20
+ export function sanitizeExpandProperties(expandProps) {
21
+ return expandProps ? expandProps.filter((prop) => prop.trim() !== "") : [];
22
+ }
17
23
  //# sourceMappingURL=expand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAiB,EAAE,GAAG,UAAoB;IAC3F,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;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interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
2
+ /**
3
+ * `@experimental` - mark the entity as experimental
4
+ *
5
+ * `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/537d3f92f58541aca46b97d1785d70e108f2ff888ee357430d1efe57d10244b2)
8
+ */
9
+ export declare function $experimental(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace | Interface): void;
10
+ export declare function isExperimental(program: Program, target: Type): boolean;
11
+ //# sourceMappingURL=experimental.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EACvB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,QAGtF;AAGD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEtE"}
@@ -0,0 +1,15 @@
1
+ const experimentalKey = Symbol('experimental');
2
+ /**
3
+ * `@experimental` - mark the entity as experimental
4
+ *
5
+ * `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/537d3f92f58541aca46b97d1785d70e108f2ff888ee357430d1efe57d10244b2)
8
+ */
9
+ export function $experimental(context, target) {
10
+ context.program.stateSet(experimentalKey).add(target);
11
+ }
12
+ export function isExperimental(program, target) {
13
+ return program.stateSet(experimentalKey).has(target);
14
+ }
15
+ //# sourceMappingURL=experimental.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAYA,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,MAAqF;IAErF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAY;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC"}
@@ -4,8 +4,10 @@ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
4
4
  * Indicates that the get operation supports OData $filter query parameter.
5
5
  *
6
6
  * `properties` - List of property names in the model returned from the get operation that can be used in $filter query parameter.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/b46fe74151e019fa69fcd11fb7dc43ad645905155182712e19410cf8bac296cf)
7
9
  */
8
- export declare function $filter(context: DecoratorContext, target: Operation, properties: string): void;
10
+ export declare function $filter(context: DecoratorContext, target: Operation, ...properties: string[]): void;
9
11
  export declare function getFilter(program: Program, target: Operation): string[];
10
12
  export declare function isFilter(program: Program, target: Operation): boolean;
11
13
  //# sourceMappingURL=filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/decorators/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,QAGvF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE3D"}
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/decorators/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAG5F;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE3D"}