@azure-tools/typespec-ts 0.55.0-dev.1 → 0.55.0-dev.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 (1002) hide show
  1. package/dist/src/context-manager.d.ts +75 -0
  2. package/dist/src/context-manager.d.ts.map +1 -0
  3. package/dist/src/context-manager.js +59 -0
  4. package/dist/src/context-manager.js.map +1 -0
  5. package/dist/src/framework/hooks/binder.js +3 -3
  6. package/dist/src/framework/hooks/binder.js.map +1 -1
  7. package/dist/src/framework/hooks/sdk-types.d.ts +26 -0
  8. package/dist/src/framework/hooks/sdk-types.d.ts.map +1 -0
  9. package/dist/src/framework/hooks/sdk-types.js +157 -0
  10. package/dist/src/framework/hooks/sdk-types.js.map +1 -0
  11. package/dist/src/framework/hooks/use-dependencies.d.ts +4 -0
  12. package/dist/src/framework/hooks/use-dependencies.d.ts.map +1 -0
  13. package/dist/src/framework/hooks/use-dependencies.js +13 -0
  14. package/dist/src/framework/hooks/use-dependencies.js.map +1 -0
  15. package/dist/src/index.js +23 -23
  16. package/dist/src/index.js.map +1 -1
  17. package/dist/src/meta-tree.d.ts +7 -0
  18. package/dist/src/meta-tree.d.ts.map +1 -0
  19. package/dist/src/meta-tree.js +2 -0
  20. package/dist/src/meta-tree.js.map +1 -0
  21. package/dist/src/modular/build-classical-client.d.ts +6 -0
  22. package/dist/src/modular/build-classical-client.d.ts.map +1 -0
  23. package/dist/src/modular/build-classical-client.js +345 -0
  24. package/dist/src/modular/build-classical-client.js.map +1 -0
  25. package/dist/src/modular/build-classical-operation-groups.d.ts +6 -0
  26. package/dist/src/modular/build-classical-operation-groups.d.ts.map +1 -0
  27. package/dist/src/modular/build-classical-operation-groups.js +48 -0
  28. package/dist/src/modular/build-classical-operation-groups.js.map +1 -0
  29. package/dist/src/modular/build-client-context.d.ts +13 -0
  30. package/dist/src/modular/build-client-context.d.ts.map +1 -0
  31. package/dist/src/modular/build-client-context.js +246 -0
  32. package/dist/src/modular/build-client-context.js.map +1 -0
  33. package/dist/src/modular/build-modular-options.d.ts +6 -0
  34. package/dist/src/modular/build-modular-options.d.ts.map +1 -0
  35. package/dist/src/modular/build-modular-options.js +14 -0
  36. package/dist/src/modular/build-modular-options.js.map +1 -0
  37. package/dist/src/modular/build-operations.d.ts +21 -0
  38. package/dist/src/modular/build-operations.d.ts.map +1 -0
  39. package/dist/src/modular/build-operations.js +172 -0
  40. package/dist/src/modular/build-operations.js.map +1 -0
  41. package/dist/src/modular/build-project-files.d.ts +4 -0
  42. package/dist/src/modular/build-project-files.d.ts.map +1 -0
  43. package/dist/src/modular/build-project-files.js +91 -0
  44. package/dist/src/modular/build-project-files.js.map +1 -0
  45. package/dist/src/modular/build-restore-poller.d.ts +5 -0
  46. package/dist/src/modular/build-restore-poller.d.ts.map +1 -0
  47. package/dist/src/modular/build-restore-poller.js +216 -0
  48. package/dist/src/modular/build-restore-poller.js.map +1 -0
  49. package/dist/src/modular/build-root-index.d.ts +13 -0
  50. package/dist/src/modular/build-root-index.d.ts.map +1 -0
  51. package/dist/src/modular/build-root-index.js +279 -0
  52. package/dist/src/modular/build-root-index.js.map +1 -0
  53. package/dist/src/modular/build-subpath-index.d.ts +16 -0
  54. package/dist/src/modular/build-subpath-index.d.ts.map +1 -0
  55. package/dist/src/modular/build-subpath-index.js +119 -0
  56. package/dist/src/modular/build-subpath-index.js.map +1 -0
  57. package/dist/src/modular/emit-logger-file.d.ts +3 -0
  58. package/dist/src/modular/emit-logger-file.d.ts.map +1 -0
  59. package/dist/src/modular/emit-logger-file.js +18 -0
  60. package/dist/src/modular/emit-logger-file.js.map +1 -0
  61. package/dist/src/modular/emit-models-options.d.ts +5 -0
  62. package/dist/src/modular/emit-models-options.d.ts.map +1 -0
  63. package/dist/src/modular/emit-models-options.js +35 -0
  64. package/dist/src/modular/emit-models-options.js.map +1 -0
  65. package/dist/src/modular/emit-models.d.ts +23 -0
  66. package/dist/src/modular/emit-models.d.ts.map +1 -0
  67. package/dist/src/modular/emit-models.js +850 -0
  68. package/dist/src/modular/emit-models.js.map +1 -0
  69. package/dist/src/modular/emit-samples.d.ts +7 -0
  70. package/dist/src/modular/emit-samples.d.ts.map +1 -0
  71. package/dist/src/modular/emit-samples.js +500 -0
  72. package/dist/src/modular/emit-samples.js.map +1 -0
  73. package/dist/src/modular/emit-tests.d.ts +7 -0
  74. package/dist/src/modular/emit-tests.d.ts.map +1 -0
  75. package/dist/src/modular/emit-tests.js +155 -0
  76. package/dist/src/modular/emit-tests.js.map +1 -0
  77. package/dist/src/modular/helpers/classical-operation-helpers.d.ts +7 -0
  78. package/dist/src/modular/helpers/classical-operation-helpers.d.ts.map +1 -0
  79. package/dist/src/modular/helpers/classical-operation-helpers.js +258 -0
  80. package/dist/src/modular/helpers/classical-operation-helpers.js.map +1 -0
  81. package/dist/src/modular/helpers/client-helpers.d.ts +34 -0
  82. package/dist/src/modular/helpers/client-helpers.d.ts.map +1 -0
  83. package/dist/src/modular/helpers/client-helpers.js +259 -0
  84. package/dist/src/modular/helpers/client-helpers.js.map +1 -0
  85. package/dist/src/modular/helpers/client-option-helpers.d.ts +43 -0
  86. package/dist/src/modular/helpers/client-option-helpers.d.ts.map +1 -0
  87. package/dist/src/modular/helpers/client-option-helpers.js +103 -0
  88. package/dist/src/modular/helpers/client-option-helpers.js.map +1 -0
  89. package/dist/src/modular/helpers/docs-helpers.d.ts +3 -0
  90. package/dist/src/modular/helpers/docs-helpers.d.ts.map +1 -0
  91. package/dist/src/modular/helpers/docs-helpers.js +10 -0
  92. package/dist/src/modular/helpers/docs-helpers.js.map +1 -0
  93. package/dist/src/modular/helpers/example-value-helpers.d.ts +83 -0
  94. package/dist/src/modular/helpers/example-value-helpers.d.ts.map +1 -0
  95. package/dist/src/modular/helpers/example-value-helpers.js +639 -0
  96. package/dist/src/modular/helpers/example-value-helpers.js.map +1 -0
  97. package/dist/src/modular/helpers/naming-helpers.d.ts +22 -0
  98. package/dist/src/modular/helpers/naming-helpers.d.ts.map +1 -0
  99. package/dist/src/modular/helpers/naming-helpers.js +59 -0
  100. package/dist/src/modular/helpers/naming-helpers.js.map +1 -0
  101. package/dist/src/modular/helpers/operation-helpers.d.ts +105 -0
  102. package/dist/src/modular/helpers/operation-helpers.d.ts.map +1 -0
  103. package/dist/src/modular/helpers/operation-helpers.js +2328 -0
  104. package/dist/src/modular/helpers/operation-helpers.js.map +1 -0
  105. package/dist/src/modular/helpers/type-helpers.d.ts +22 -0
  106. package/dist/src/modular/helpers/type-helpers.d.ts.map +1 -0
  107. package/dist/src/modular/helpers/type-helpers.js +94 -0
  108. package/dist/src/modular/helpers/type-helpers.js.map +1 -0
  109. package/dist/src/modular/serialization/build-deserializer-function.d.ts +7 -0
  110. package/dist/src/modular/serialization/build-deserializer-function.d.ts.map +1 -0
  111. package/dist/src/modular/serialization/build-deserializer-function.js +401 -0
  112. package/dist/src/modular/serialization/build-deserializer-function.js.map +1 -0
  113. package/dist/src/modular/serialization/build-serializer-function.d.ts +7 -0
  114. package/dist/src/modular/serialization/build-serializer-function.d.ts.map +1 -0
  115. package/dist/src/modular/serialization/build-serializer-function.js +442 -0
  116. package/dist/src/modular/serialization/build-serializer-function.js.map +1 -0
  117. package/dist/src/modular/serialization/build-xml-serializer-function.d.ts +44 -0
  118. package/dist/src/modular/serialization/build-xml-serializer-function.d.ts.map +1 -0
  119. package/dist/src/modular/serialization/build-xml-serializer-function.js +729 -0
  120. package/dist/src/modular/serialization/build-xml-serializer-function.js.map +1 -0
  121. package/dist/src/modular/serialization/serialize-utils.d.ts +37 -0
  122. package/dist/src/modular/serialization/serialize-utils.d.ts.map +1 -0
  123. package/dist/src/modular/serialization/serialize-utils.js +145 -0
  124. package/dist/src/modular/serialization/serialize-utils.js.map +1 -0
  125. package/dist/src/modular/type-expressions/get-credential-expression.js +1 -1
  126. package/dist/src/modular/type-expressions/get-credential-expression.js.map +1 -1
  127. package/dist/src/modular/type-expressions/get-model-expression.js +1 -1
  128. package/dist/src/modular/type-expressions/get-model-expression.js.map +1 -1
  129. package/dist/src/rlc-common/build-client-definitions.d.ts +6 -0
  130. package/dist/src/rlc-common/build-client-definitions.d.ts.map +1 -0
  131. package/dist/src/rlc-common/build-client-definitions.js +157 -0
  132. package/dist/src/rlc-common/build-client-definitions.js.map +1 -0
  133. package/dist/src/rlc-common/build-client.d.ts +9 -0
  134. package/dist/src/rlc-common/build-client.d.ts.map +1 -0
  135. package/dist/src/rlc-common/build-client.js +391 -0
  136. package/dist/src/rlc-common/build-client.js.map +1 -0
  137. package/dist/src/rlc-common/build-index-file.d.ts +6 -0
  138. package/dist/src/rlc-common/build-index-file.d.ts.map +1 -0
  139. package/dist/src/rlc-common/build-index-file.js +241 -0
  140. package/dist/src/rlc-common/build-index-file.js.map +1 -0
  141. package/dist/src/rlc-common/build-is-unexpected-helper.d.ts +6 -0
  142. package/dist/src/rlc-common/build-is-unexpected-helper.d.ts.map +1 -0
  143. package/dist/src/rlc-common/build-is-unexpected-helper.js +223 -0
  144. package/dist/src/rlc-common/build-is-unexpected-helper.js.map +1 -0
  145. package/dist/src/rlc-common/build-logger.d.ts +6 -0
  146. package/dist/src/rlc-common/build-logger.d.ts.map +1 -0
  147. package/dist/src/rlc-common/build-logger.js +31 -0
  148. package/dist/src/rlc-common/build-logger.js.map +1 -0
  149. package/dist/src/rlc-common/build-method-shortcuts.d.ts +5 -0
  150. package/dist/src/rlc-common/build-method-shortcuts.d.ts.map +1 -0
  151. package/dist/src/rlc-common/build-method-shortcuts.js +54 -0
  152. package/dist/src/rlc-common/build-method-shortcuts.js.map +1 -0
  153. package/dist/src/rlc-common/build-object-types.d.ts +29 -0
  154. package/dist/src/rlc-common/build-object-types.d.ts.map +1 -0
  155. package/dist/src/rlc-common/build-object-types.js +412 -0
  156. package/dist/src/rlc-common/build-object-types.js.map +1 -0
  157. package/dist/src/rlc-common/build-paginate-helper.d.ts +6 -0
  158. package/dist/src/rlc-common/build-paginate-helper.d.ts.map +1 -0
  159. package/dist/src/rlc-common/build-paginate-helper.js +27 -0
  160. package/dist/src/rlc-common/build-paginate-helper.js.map +1 -0
  161. package/dist/src/rlc-common/build-parameter-types.d.ts +14 -0
  162. package/dist/src/rlc-common/build-parameter-types.d.ts.map +1 -0
  163. package/dist/src/rlc-common/build-parameter-types.js +391 -0
  164. package/dist/src/rlc-common/build-parameter-types.js.map +1 -0
  165. package/dist/src/rlc-common/build-polling-helper.d.ts +6 -0
  166. package/dist/src/rlc-common/build-polling-helper.d.ts.map +1 -0
  167. package/dist/src/rlc-common/build-polling-helper.js +61 -0
  168. package/dist/src/rlc-common/build-polling-helper.js.map +1 -0
  169. package/dist/src/rlc-common/build-response-types.d.ts +6 -0
  170. package/dist/src/rlc-common/build-response-types.d.ts.map +1 -0
  171. package/dist/src/rlc-common/build-response-types.js +143 -0
  172. package/dist/src/rlc-common/build-response-types.js.map +1 -0
  173. package/dist/src/rlc-common/build-samples.d.ts +3 -0
  174. package/dist/src/rlc-common/build-samples.d.ts.map +1 -0
  175. package/dist/src/rlc-common/build-samples.js +30 -0
  176. package/dist/src/rlc-common/build-samples.js.map +1 -0
  177. package/dist/src/rlc-common/build-schema-type.d.ts +20 -0
  178. package/dist/src/rlc-common/build-schema-type.d.ts.map +1 -0
  179. package/dist/src/rlc-common/build-schema-type.js +71 -0
  180. package/dist/src/rlc-common/build-schema-type.js.map +1 -0
  181. package/dist/src/rlc-common/build-serialize-helper.d.ts +6 -0
  182. package/dist/src/rlc-common/build-serialize-helper.d.ts.map +1 -0
  183. package/dist/src/rlc-common/build-serialize-helper.js +36 -0
  184. package/dist/src/rlc-common/build-serialize-helper.js.map +1 -0
  185. package/dist/src/rlc-common/build-top-level-index-file.d.ts +6 -0
  186. package/dist/src/rlc-common/build-top-level-index-file.d.ts.map +1 -0
  187. package/dist/src/rlc-common/build-top-level-index-file.js +48 -0
  188. package/dist/src/rlc-common/build-top-level-index-file.js.map +1 -0
  189. package/dist/src/rlc-common/helpers/api-version-util.d.ts +17 -0
  190. package/dist/src/rlc-common/helpers/api-version-util.d.ts.map +1 -0
  191. package/dist/src/rlc-common/helpers/api-version-util.js +43 -0
  192. package/dist/src/rlc-common/helpers/api-version-util.js.map +1 -0
  193. package/dist/src/rlc-common/helpers/imports-util.d.ts +18 -0
  194. package/dist/src/rlc-common/helpers/imports-util.d.ts.map +1 -0
  195. package/dist/src/rlc-common/helpers/imports-util.js +164 -0
  196. package/dist/src/rlc-common/helpers/imports-util.js.map +1 -0
  197. package/dist/src/rlc-common/helpers/name-constructors.d.ts +42 -0
  198. package/dist/src/rlc-common/helpers/name-constructors.d.ts.map +1 -0
  199. package/dist/src/rlc-common/helpers/name-constructors.js +61 -0
  200. package/dist/src/rlc-common/helpers/name-constructors.js.map +1 -0
  201. package/dist/src/rlc-common/helpers/name-utils.d.ts +37 -0
  202. package/dist/src/rlc-common/helpers/name-utils.d.ts.map +1 -0
  203. package/dist/src/rlc-common/helpers/name-utils.js +240 -0
  204. package/dist/src/rlc-common/helpers/name-utils.js.map +1 -0
  205. package/dist/src/rlc-common/helpers/operation-helpers.d.ts +16 -0
  206. package/dist/src/rlc-common/helpers/operation-helpers.d.ts.map +1 -0
  207. package/dist/src/rlc-common/helpers/operation-helpers.js +104 -0
  208. package/dist/src/rlc-common/helpers/operation-helpers.js.map +1 -0
  209. package/dist/src/rlc-common/helpers/package-util.d.ts +7 -0
  210. package/dist/src/rlc-common/helpers/package-util.d.ts.map +1 -0
  211. package/dist/src/rlc-common/helpers/package-util.js +10 -0
  212. package/dist/src/rlc-common/helpers/package-util.js.map +1 -0
  213. package/dist/src/rlc-common/helpers/path-utils.d.ts +2 -0
  214. package/dist/src/rlc-common/helpers/path-utils.d.ts.map +1 -0
  215. package/dist/src/rlc-common/helpers/path-utils.js +10 -0
  216. package/dist/src/rlc-common/helpers/path-utils.js.map +1 -0
  217. package/dist/src/rlc-common/helpers/schema-helpers.d.ts +10 -0
  218. package/dist/src/rlc-common/helpers/schema-helpers.d.ts.map +1 -0
  219. package/dist/src/rlc-common/helpers/schema-helpers.js +37 -0
  220. package/dist/src/rlc-common/helpers/schema-helpers.js.map +1 -0
  221. package/dist/src/rlc-common/helpers/shortcut-methods.d.ts +4 -0
  222. package/dist/src/rlc-common/helpers/shortcut-methods.d.ts.map +1 -0
  223. package/dist/src/rlc-common/helpers/shortcut-methods.js +49 -0
  224. package/dist/src/rlc-common/helpers/shortcut-methods.js.map +1 -0
  225. package/dist/src/rlc-common/helpers/type-util.d.ts +32 -0
  226. package/dist/src/rlc-common/helpers/type-util.d.ts.map +1 -0
  227. package/dist/src/rlc-common/helpers/type-util.js +162 -0
  228. package/dist/src/rlc-common/helpers/type-util.js.map +1 -0
  229. package/dist/src/rlc-common/helpers/value-generation-util.d.ts +12 -0
  230. package/dist/src/rlc-common/helpers/value-generation-util.d.ts.map +1 -0
  231. package/dist/src/rlc-common/helpers/value-generation-util.js +161 -0
  232. package/dist/src/rlc-common/helpers/value-generation-util.js.map +1 -0
  233. package/dist/src/rlc-common/index.d.ts +39 -39
  234. package/dist/src/rlc-common/index.d.ts.map +1 -1
  235. package/dist/src/rlc-common/index.js +39 -39
  236. package/dist/src/rlc-common/index.js.map +1 -1
  237. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts +6 -0
  238. package/dist/src/rlc-common/metadata/build-api-extractor-config.d.ts.map +1 -0
  239. package/dist/src/rlc-common/metadata/build-api-extractor-config.js +55 -0
  240. package/dist/src/rlc-common/metadata/build-api-extractor-config.js.map +1 -0
  241. package/dist/src/rlc-common/metadata/build-changelog-file.d.ts +6 -0
  242. package/dist/src/rlc-common/metadata/build-changelog-file.d.ts.map +1 -0
  243. package/dist/src/rlc-common/metadata/build-changelog-file.js +25 -0
  244. package/dist/src/rlc-common/metadata/build-changelog-file.js.map +1 -0
  245. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts +6 -0
  246. package/dist/src/rlc-common/metadata/build-es-lint-config.d.ts.map +1 -0
  247. package/dist/src/rlc-common/metadata/build-es-lint-config.js +79 -0
  248. package/dist/src/rlc-common/metadata/build-es-lint-config.js.map +1 -0
  249. package/dist/src/rlc-common/metadata/build-license-file.d.ts +5 -0
  250. package/dist/src/rlc-common/metadata/build-license-file.d.ts.map +1 -0
  251. package/dist/src/rlc-common/metadata/build-license-file.js +32 -0
  252. package/dist/src/rlc-common/metadata/build-license-file.js.map +1 -0
  253. package/dist/src/rlc-common/metadata/build-package-file.d.ts +25 -0
  254. package/dist/src/rlc-common/metadata/build-package-file.d.ts.map +1 -0
  255. package/dist/src/rlc-common/metadata/build-package-file.js +197 -0
  256. package/dist/src/rlc-common/metadata/build-package-file.js.map +1 -0
  257. package/dist/src/rlc-common/metadata/build-readme-file.d.ts +11 -0
  258. package/dist/src/rlc-common/metadata/build-readme-file.d.ts.map +1 -0
  259. package/dist/src/rlc-common/metadata/build-readme-file.js +418 -0
  260. package/dist/src/rlc-common/metadata/build-readme-file.js.map +1 -0
  261. package/dist/src/rlc-common/metadata/build-rollup-config.d.ts +6 -0
  262. package/dist/src/rlc-common/metadata/build-rollup-config.d.ts.map +1 -0
  263. package/dist/src/rlc-common/metadata/build-rollup-config.js +140 -0
  264. package/dist/src/rlc-common/metadata/build-rollup-config.js.map +1 -0
  265. package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts +6 -0
  266. package/dist/src/rlc-common/metadata/build-sample-env-file.d.ts.map +1 -0
  267. package/dist/src/rlc-common/metadata/build-sample-env-file.js +15 -0
  268. package/dist/src/rlc-common/metadata/build-sample-env-file.js.map +1 -0
  269. package/dist/src/rlc-common/metadata/build-test-config.d.ts +16 -0
  270. package/dist/src/rlc-common/metadata/build-test-config.d.ts.map +1 -0
  271. package/dist/src/rlc-common/metadata/build-test-config.js +54 -0
  272. package/dist/src/rlc-common/metadata/build-test-config.js.map +1 -0
  273. package/dist/src/rlc-common/metadata/build-ts-config.d.ts +61 -0
  274. package/dist/src/rlc-common/metadata/build-ts-config.d.ts.map +1 -0
  275. package/dist/src/rlc-common/metadata/build-ts-config.js +170 -0
  276. package/dist/src/rlc-common/metadata/build-ts-config.js.map +1 -0
  277. package/dist/src/rlc-common/metadata/build-vitest-config.d.ts +6 -0
  278. package/dist/src/rlc-common/metadata/build-vitest-config.d.ts.map +1 -0
  279. package/dist/src/rlc-common/metadata/build-vitest-config.js +26 -0
  280. package/dist/src/rlc-common/metadata/build-vitest-config.js.map +1 -0
  281. package/dist/src/rlc-common/metadata/build-warp-config.d.ts +20 -0
  282. package/dist/src/rlc-common/metadata/build-warp-config.d.ts.map +1 -0
  283. package/dist/src/rlc-common/metadata/build-warp-config.js +76 -0
  284. package/dist/src/rlc-common/metadata/build-warp-config.js.map +1 -0
  285. package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts +51 -0
  286. package/dist/src/rlc-common/metadata/package-json/azure-package-common.d.ts.map +1 -0
  287. package/dist/src/rlc-common/metadata/package-json/azure-package-common.js +121 -0
  288. package/dist/src/rlc-common/metadata/package-json/azure-package-common.js.map +1 -0
  289. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts +242 -0
  290. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.d.ts.map +1 -0
  291. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js +171 -0
  292. package/dist/src/rlc-common/metadata/package-json/build-azure-monorepo-package.js.map +1 -0
  293. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts +8 -0
  294. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.d.ts.map +1 -0
  295. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js +101 -0
  296. package/dist/src/rlc-common/metadata/package-json/build-azure-standalone-package.js.map +1 -0
  297. package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.d.ts +57 -0
  298. package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.d.ts.map +1 -0
  299. package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.js +53 -0
  300. package/dist/src/rlc-common/metadata/package-json/build-flavorless-package.js.map +1 -0
  301. package/dist/src/rlc-common/metadata/package-json/package-common.d.ts +64 -0
  302. package/dist/src/rlc-common/metadata/package-json/package-common.d.ts.map +1 -0
  303. package/dist/src/rlc-common/metadata/package-json/package-common.js +180 -0
  304. package/dist/src/rlc-common/metadata/package-json/package-common.js.map +1 -0
  305. package/dist/src/rlc-common/static/paginate-content.d.ts +2 -0
  306. package/dist/src/rlc-common/static/paginate-content.d.ts.map +1 -0
  307. package/dist/src/rlc-common/static/paginate-content.js +345 -0
  308. package/dist/src/rlc-common/static/paginate-content.js.map +1 -0
  309. package/dist/src/rlc-common/static/polling-content.d.ts +2 -0
  310. package/dist/src/rlc-common/static/polling-content.d.ts.map +1 -0
  311. package/dist/src/rlc-common/static/polling-content.js +225 -0
  312. package/dist/src/rlc-common/static/polling-content.js.map +1 -0
  313. package/dist/src/rlc-common/static/sample-template.d.ts +2 -0
  314. package/dist/src/rlc-common/static/sample-template.d.ts.map +1 -0
  315. package/dist/src/rlc-common/static/sample-template.js +56 -0
  316. package/dist/src/rlc-common/static/sample-template.js.map +1 -0
  317. package/dist/src/rlc-common/static/serialize-helper.d.ts +6 -0
  318. package/dist/src/rlc-common/static/serialize-helper.d.ts.map +1 -0
  319. package/dist/src/rlc-common/static/serialize-helper.js +31 -0
  320. package/dist/src/rlc-common/static/serialize-helper.js.map +1 -0
  321. package/dist/src/rlc-common/test/build-karma-config.d.ts +6 -0
  322. package/dist/src/rlc-common/test/build-karma-config.d.ts.map +1 -0
  323. package/dist/src/rlc-common/test/build-karma-config.js +11 -0
  324. package/dist/src/rlc-common/test/build-karma-config.js.map +1 -0
  325. package/dist/src/rlc-common/test/build-recorded-client.d.ts +6 -0
  326. package/dist/src/rlc-common/test/build-recorded-client.d.ts.map +1 -0
  327. package/dist/src/rlc-common/test/build-recorded-client.js +17 -0
  328. package/dist/src/rlc-common/test/build-recorded-client.js.map +1 -0
  329. package/dist/src/rlc-common/test/build-sample-test.d.ts +6 -0
  330. package/dist/src/rlc-common/test/build-sample-test.d.ts.map +1 -0
  331. package/dist/src/rlc-common/test/build-sample-test.js +14 -0
  332. package/dist/src/rlc-common/test/build-sample-test.js.map +1 -0
  333. package/dist/src/rlc-common/test/build-snippets.d.ts +6 -0
  334. package/dist/src/rlc-common/test/build-snippets.d.ts.map +1 -0
  335. package/dist/src/rlc-common/test/build-snippets.js +26 -0
  336. package/dist/src/rlc-common/test/build-snippets.js.map +1 -0
  337. package/dist/src/rlc-common/transform-sample-groups.d.ts +9 -0
  338. package/dist/src/rlc-common/transform-sample-groups.d.ts.map +1 -0
  339. package/dist/src/rlc-common/transform-sample-groups.js +313 -0
  340. package/dist/src/rlc-common/transform-sample-groups.js.map +1 -0
  341. package/dist/src/transform/transform-api-version-info.d.ts +6 -0
  342. package/dist/src/transform/transform-api-version-info.d.ts.map +1 -0
  343. package/dist/src/transform/transform-api-version-info.js +78 -0
  344. package/dist/src/transform/transform-api-version-info.js.map +1 -0
  345. package/dist/src/transform/transform-helper-function-details.d.ts +5 -0
  346. package/dist/src/transform/transform-helper-function-details.d.ts.map +1 -0
  347. package/dist/src/transform/transform-helper-function-details.js +74 -0
  348. package/dist/src/transform/transform-helper-function-details.js.map +1 -0
  349. package/dist/src/transform/transform-parameters.d.ts +14 -0
  350. package/dist/src/transform/transform-parameters.d.ts.map +1 -0
  351. package/dist/src/transform/transform-parameters.js +201 -0
  352. package/dist/src/transform/transform-parameters.js.map +1 -0
  353. package/dist/src/transform/transform-paths.d.ts +5 -0
  354. package/dist/src/transform/transform-paths.d.ts.map +1 -0
  355. package/dist/src/transform/transform-paths.js +102 -0
  356. package/dist/src/transform/transform-paths.js.map +1 -0
  357. package/dist/src/transform/transform-responses.d.ts +5 -0
  358. package/dist/src/transform/transform-responses.d.ts.map +1 -0
  359. package/dist/src/transform/transform-responses.js +171 -0
  360. package/dist/src/transform/transform-responses.js.map +1 -0
  361. package/dist/src/transform/transform-schemas.d.ts +4 -0
  362. package/dist/src/transform/transform-schemas.d.ts.map +1 -0
  363. package/dist/src/transform/transform-schemas.js +191 -0
  364. package/dist/src/transform/transform-schemas.js.map +1 -0
  365. package/dist/src/transform/transform-telemetry-info.d.ts +4 -0
  366. package/dist/src/transform/transform-telemetry-info.d.ts.map +1 -0
  367. package/dist/src/transform/transform-telemetry-info.js +22 -0
  368. package/dist/src/transform/transform-telemetry-info.js.map +1 -0
  369. package/dist/src/transform/transform.js +10 -10
  370. package/dist/src/transform/transform.js.map +1 -1
  371. package/dist/src/transform/transfrom-rlc-options.d.ts +14 -0
  372. package/dist/src/transform/transfrom-rlc-options.d.ts.map +1 -0
  373. package/dist/src/transform/transfrom-rlc-options.js +369 -0
  374. package/dist/src/transform/transfrom-rlc-options.js.map +1 -0
  375. package/dist/src/utils/client-utils.d.ts +10 -0
  376. package/dist/src/utils/client-utils.d.ts.map +1 -0
  377. package/dist/src/utils/client-utils.js +124 -0
  378. package/dist/src/utils/client-utils.js.map +1 -0
  379. package/dist/src/utils/credential-utils.d.ts +15 -0
  380. package/dist/src/utils/credential-utils.d.ts.map +1 -0
  381. package/dist/src/utils/credential-utils.js +68 -0
  382. package/dist/src/utils/credential-utils.js.map +1 -0
  383. package/dist/src/utils/cross-language-def.d.ts +6 -0
  384. package/dist/src/utils/cross-language-def.d.ts.map +1 -0
  385. package/dist/src/utils/cross-language-def.js +59 -0
  386. package/dist/src/utils/cross-language-def.js.map +1 -0
  387. package/dist/src/utils/emit-util.d.ts +5 -0
  388. package/dist/src/utils/emit-util.d.ts.map +1 -0
  389. package/dist/src/utils/emit-util.js +71 -0
  390. package/dist/src/utils/emit-util.js.map +1 -0
  391. package/dist/src/utils/file-system-utils.d.ts +5 -0
  392. package/dist/src/utils/file-system-utils.d.ts.map +1 -0
  393. package/dist/src/utils/file-system-utils.js +59 -0
  394. package/dist/src/utils/file-system-utils.js.map +1 -0
  395. package/dist/src/utils/import-helper.d.ts +10 -0
  396. package/dist/src/utils/import-helper.d.ts.map +1 -0
  397. package/dist/src/utils/import-helper.js +51 -0
  398. package/dist/src/utils/import-helper.js.map +1 -0
  399. package/dist/src/utils/interfaces.d.ts +1 -1
  400. package/dist/src/utils/interfaces.d.ts.map +1 -1
  401. package/dist/src/utils/media-types.d.ts +28 -0
  402. package/dist/src/utils/media-types.d.ts.map +1 -0
  403. package/dist/src/utils/media-types.js +124 -0
  404. package/dist/src/utils/media-types.js.map +1 -0
  405. package/dist/src/utils/model-utils.d.ts +60 -0
  406. package/dist/src/utils/model-utils.d.ts.map +1 -0
  407. package/dist/src/utils/model-utils.js +1480 -0
  408. package/dist/src/utils/model-utils.js.map +1 -0
  409. package/dist/src/utils/namespace-utils.d.ts +6 -0
  410. package/dist/src/utils/namespace-utils.d.ts.map +1 -0
  411. package/dist/src/utils/namespace-utils.js +69 -0
  412. package/dist/src/utils/namespace-utils.js.map +1 -0
  413. package/dist/src/utils/operation-util.d.ts +97 -0
  414. package/dist/src/utils/operation-util.d.ts.map +1 -0
  415. package/dist/src/utils/operation-util.js +547 -0
  416. package/dist/src/utils/operation-util.js.map +1 -0
  417. package/dist/src/utils/parameter-utils.d.ts +9 -0
  418. package/dist/src/utils/parameter-utils.d.ts.map +1 -0
  419. package/dist/src/utils/parameter-utils.js +147 -0
  420. package/dist/src/utils/parameter-utils.js.map +1 -0
  421. package/dist/tsconfig.tsbuildinfo +1 -1
  422. package/package.json +3 -7
  423. package/src/context-manager.ts +101 -0
  424. package/src/framework/hooks/binder.ts +3 -3
  425. package/src/framework/hooks/sdk-types.ts +218 -0
  426. package/src/framework/hooks/use-dependencies.ts +16 -0
  427. package/src/index.ts +23 -23
  428. package/src/modular/build-classical-client.ts +434 -0
  429. package/src/modular/build-classical-operation-groups.ts +69 -0
  430. package/src/modular/build-client-context.ts +325 -0
  431. package/src/modular/build-operations.ts +248 -0
  432. package/src/modular/build-project-files.ts +111 -0
  433. package/src/modular/build-restore-poller.ts +242 -0
  434. package/src/modular/build-root-index.ts +407 -0
  435. package/src/modular/build-subpath-index.ts +152 -0
  436. package/src/modular/emit-logger-file.ts +23 -0
  437. package/src/modular/emit-models-options.ts +56 -0
  438. package/src/modular/emit-models.ts +1081 -0
  439. package/src/modular/emit-samples.ts +675 -0
  440. package/src/modular/emit-tests.ts +194 -0
  441. package/src/modular/helpers/classical-operation-helpers.ts +375 -0
  442. package/src/modular/helpers/client-helpers.ts +362 -0
  443. package/src/modular/helpers/example-value-helpers.ts +851 -0
  444. package/src/modular/helpers/naming-helpers.ts +84 -0
  445. package/src/modular/helpers/operation-helpers.ts +3035 -0
  446. package/src/modular/helpers/type-helpers.ts +134 -0
  447. package/src/modular/serialization/build-deserializer-function.ts +564 -0
  448. package/src/modular/serialization/build-serializer-function.ts +614 -0
  449. package/src/modular/serialization/build-xml-serializer-function.ts +951 -0
  450. package/src/modular/serialization/serialize-utils.ts +217 -0
  451. package/src/modular/type-expressions/get-credential-expression.ts +1 -1
  452. package/src/modular/type-expressions/get-model-expression.ts +1 -1
  453. package/src/rlc-common/build-client-definitions.ts +235 -0
  454. package/src/rlc-common/build-client.ts +490 -0
  455. package/src/rlc-common/build-index-file.ts +344 -0
  456. package/src/rlc-common/build-is-unexpected-helper.ts +248 -0
  457. package/src/rlc-common/build-logger.ts +43 -0
  458. package/src/rlc-common/build-method-shortcuts.ts +71 -0
  459. package/src/rlc-common/build-object-types.ts +603 -0
  460. package/src/rlc-common/build-paginate-helper.ts +31 -0
  461. package/src/rlc-common/build-parameter-types.ts +554 -0
  462. package/src/rlc-common/build-polling-helper.ts +83 -0
  463. package/src/rlc-common/build-response-types.ts +180 -0
  464. package/src/rlc-common/build-samples.ts +32 -0
  465. package/src/rlc-common/build-schema-type.ts +89 -0
  466. package/src/rlc-common/build-serialize-helper.ts +49 -0
  467. package/src/rlc-common/build-top-level-index-file.ts +58 -0
  468. package/src/rlc-common/helpers/name-constructors.ts +110 -0
  469. package/src/rlc-common/helpers/operation-helpers.ts +138 -0
  470. package/src/rlc-common/helpers/shortcut-methods.ts +58 -0
  471. package/src/rlc-common/helpers/value-generation-util.ts +234 -0
  472. package/src/rlc-common/index.ts +39 -39
  473. package/src/rlc-common/metadata/build-package-file.ts +242 -0
  474. package/src/rlc-common/metadata/build-readme-file.ts +515 -0
  475. package/src/rlc-common/metadata/build-rollup-config.ts +147 -0
  476. package/src/rlc-common/metadata/package-json/azure-package-common.ts +152 -0
  477. package/src/rlc-common/metadata/package-json/build-azure-monorepo-package.ts +199 -0
  478. package/src/rlc-common/metadata/package-json/build-azure-standalone-package.ts +123 -0
  479. package/src/rlc-common/metadata/package-json/build-flavorless-package.ts +68 -0
  480. package/src/rlc-common/test/build-snippets.ts +29 -0
  481. package/src/rlc-common/transform-sample-groups.ts +407 -0
  482. package/src/transform/transform-api-version-info.ts +103 -0
  483. package/src/transform/transform-helper-function-details.ts +88 -0
  484. package/src/transform/transform-parameters.ts +321 -0
  485. package/src/transform/transform-paths.ts +157 -0
  486. package/src/transform/transform-responses.ts +237 -0
  487. package/src/transform/transform-schemas.ts +212 -0
  488. package/src/transform/transform-telemetry-info.ts +33 -0
  489. package/src/transform/transform.ts +10 -10
  490. package/src/transform/transfrom-rlc-options.ts +461 -0
  491. package/src/utils/cross-language-def.ts +66 -0
  492. package/src/utils/import-helper.ts +59 -0
  493. package/src/utils/interfaces.ts +1 -1
  494. package/src/utils/model-utils.ts +1727 -0
  495. package/src/utils/operation-util.ts +763 -0
  496. package/src/utils/parameter-utils.ts +192 -0
  497. package/static/static-helpers/serialization/serializers.ts +1 -0
  498. package/dist/src/contextManager.d.ts +0 -75
  499. package/dist/src/contextManager.d.ts.map +0 -1
  500. package/dist/src/contextManager.js +0 -59
  501. package/dist/src/contextManager.js.map +0 -1
  502. package/dist/src/framework/hooks/sdkTypes.d.ts +0 -26
  503. package/dist/src/framework/hooks/sdkTypes.d.ts.map +0 -1
  504. package/dist/src/framework/hooks/sdkTypes.js +0 -157
  505. package/dist/src/framework/hooks/sdkTypes.js.map +0 -1
  506. package/dist/src/framework/hooks/useDependencies.d.ts +0 -4
  507. package/dist/src/framework/hooks/useDependencies.d.ts.map +0 -1
  508. package/dist/src/framework/hooks/useDependencies.js +0 -13
  509. package/dist/src/framework/hooks/useDependencies.js.map +0 -1
  510. package/dist/src/metaTree.d.ts +0 -7
  511. package/dist/src/metaTree.d.ts.map +0 -1
  512. package/dist/src/metaTree.js +0 -2
  513. package/dist/src/metaTree.js.map +0 -1
  514. package/dist/src/modular/buildClassicalClient.d.ts +0 -6
  515. package/dist/src/modular/buildClassicalClient.d.ts.map +0 -1
  516. package/dist/src/modular/buildClassicalClient.js +0 -345
  517. package/dist/src/modular/buildClassicalClient.js.map +0 -1
  518. package/dist/src/modular/buildClassicalOperationGroups.d.ts +0 -6
  519. package/dist/src/modular/buildClassicalOperationGroups.d.ts.map +0 -1
  520. package/dist/src/modular/buildClassicalOperationGroups.js +0 -48
  521. package/dist/src/modular/buildClassicalOperationGroups.js.map +0 -1
  522. package/dist/src/modular/buildClientContext.d.ts +0 -13
  523. package/dist/src/modular/buildClientContext.d.ts.map +0 -1
  524. package/dist/src/modular/buildClientContext.js +0 -246
  525. package/dist/src/modular/buildClientContext.js.map +0 -1
  526. package/dist/src/modular/buildModularOptions.d.ts +0 -6
  527. package/dist/src/modular/buildModularOptions.d.ts.map +0 -1
  528. package/dist/src/modular/buildModularOptions.js +0 -14
  529. package/dist/src/modular/buildModularOptions.js.map +0 -1
  530. package/dist/src/modular/buildOperations.d.ts +0 -21
  531. package/dist/src/modular/buildOperations.d.ts.map +0 -1
  532. package/dist/src/modular/buildOperations.js +0 -172
  533. package/dist/src/modular/buildOperations.js.map +0 -1
  534. package/dist/src/modular/buildProjectFiles.d.ts +0 -4
  535. package/dist/src/modular/buildProjectFiles.d.ts.map +0 -1
  536. package/dist/src/modular/buildProjectFiles.js +0 -91
  537. package/dist/src/modular/buildProjectFiles.js.map +0 -1
  538. package/dist/src/modular/buildRestorePoller.d.ts +0 -5
  539. package/dist/src/modular/buildRestorePoller.d.ts.map +0 -1
  540. package/dist/src/modular/buildRestorePoller.js +0 -216
  541. package/dist/src/modular/buildRestorePoller.js.map +0 -1
  542. package/dist/src/modular/buildRootIndex.d.ts +0 -13
  543. package/dist/src/modular/buildRootIndex.d.ts.map +0 -1
  544. package/dist/src/modular/buildRootIndex.js +0 -279
  545. package/dist/src/modular/buildRootIndex.js.map +0 -1
  546. package/dist/src/modular/buildSubpathIndex.d.ts +0 -16
  547. package/dist/src/modular/buildSubpathIndex.d.ts.map +0 -1
  548. package/dist/src/modular/buildSubpathIndex.js +0 -119
  549. package/dist/src/modular/buildSubpathIndex.js.map +0 -1
  550. package/dist/src/modular/emitLoggerFile.d.ts +0 -3
  551. package/dist/src/modular/emitLoggerFile.d.ts.map +0 -1
  552. package/dist/src/modular/emitLoggerFile.js +0 -18
  553. package/dist/src/modular/emitLoggerFile.js.map +0 -1
  554. package/dist/src/modular/emitModels.d.ts +0 -23
  555. package/dist/src/modular/emitModels.d.ts.map +0 -1
  556. package/dist/src/modular/emitModels.js +0 -850
  557. package/dist/src/modular/emitModels.js.map +0 -1
  558. package/dist/src/modular/emitModelsOptions.d.ts +0 -5
  559. package/dist/src/modular/emitModelsOptions.d.ts.map +0 -1
  560. package/dist/src/modular/emitModelsOptions.js +0 -35
  561. package/dist/src/modular/emitModelsOptions.js.map +0 -1
  562. package/dist/src/modular/emitSamples.d.ts +0 -7
  563. package/dist/src/modular/emitSamples.d.ts.map +0 -1
  564. package/dist/src/modular/emitSamples.js +0 -500
  565. package/dist/src/modular/emitSamples.js.map +0 -1
  566. package/dist/src/modular/emitTests.d.ts +0 -7
  567. package/dist/src/modular/emitTests.d.ts.map +0 -1
  568. package/dist/src/modular/emitTests.js +0 -155
  569. package/dist/src/modular/emitTests.js.map +0 -1
  570. package/dist/src/modular/helpers/classicalOperationHelpers.d.ts +0 -7
  571. package/dist/src/modular/helpers/classicalOperationHelpers.d.ts.map +0 -1
  572. package/dist/src/modular/helpers/classicalOperationHelpers.js +0 -258
  573. package/dist/src/modular/helpers/classicalOperationHelpers.js.map +0 -1
  574. package/dist/src/modular/helpers/clientHelpers.d.ts +0 -34
  575. package/dist/src/modular/helpers/clientHelpers.d.ts.map +0 -1
  576. package/dist/src/modular/helpers/clientHelpers.js +0 -259
  577. package/dist/src/modular/helpers/clientHelpers.js.map +0 -1
  578. package/dist/src/modular/helpers/clientOptionHelpers.d.ts +0 -43
  579. package/dist/src/modular/helpers/clientOptionHelpers.d.ts.map +0 -1
  580. package/dist/src/modular/helpers/clientOptionHelpers.js +0 -103
  581. package/dist/src/modular/helpers/clientOptionHelpers.js.map +0 -1
  582. package/dist/src/modular/helpers/docsHelpers.d.ts +0 -3
  583. package/dist/src/modular/helpers/docsHelpers.d.ts.map +0 -1
  584. package/dist/src/modular/helpers/docsHelpers.js +0 -10
  585. package/dist/src/modular/helpers/docsHelpers.js.map +0 -1
  586. package/dist/src/modular/helpers/exampleValueHelpers.d.ts +0 -83
  587. package/dist/src/modular/helpers/exampleValueHelpers.d.ts.map +0 -1
  588. package/dist/src/modular/helpers/exampleValueHelpers.js +0 -639
  589. package/dist/src/modular/helpers/exampleValueHelpers.js.map +0 -1
  590. package/dist/src/modular/helpers/namingHelpers.d.ts +0 -22
  591. package/dist/src/modular/helpers/namingHelpers.d.ts.map +0 -1
  592. package/dist/src/modular/helpers/namingHelpers.js +0 -59
  593. package/dist/src/modular/helpers/namingHelpers.js.map +0 -1
  594. package/dist/src/modular/helpers/operationHelpers.d.ts +0 -105
  595. package/dist/src/modular/helpers/operationHelpers.d.ts.map +0 -1
  596. package/dist/src/modular/helpers/operationHelpers.js +0 -2328
  597. package/dist/src/modular/helpers/operationHelpers.js.map +0 -1
  598. package/dist/src/modular/helpers/typeHelpers.d.ts +0 -22
  599. package/dist/src/modular/helpers/typeHelpers.d.ts.map +0 -1
  600. package/dist/src/modular/helpers/typeHelpers.js +0 -94
  601. package/dist/src/modular/helpers/typeHelpers.js.map +0 -1
  602. package/dist/src/modular/serialization/buildDeserializerFunction.d.ts +0 -7
  603. package/dist/src/modular/serialization/buildDeserializerFunction.d.ts.map +0 -1
  604. package/dist/src/modular/serialization/buildDeserializerFunction.js +0 -401
  605. package/dist/src/modular/serialization/buildDeserializerFunction.js.map +0 -1
  606. package/dist/src/modular/serialization/buildSerializerFunction.d.ts +0 -7
  607. package/dist/src/modular/serialization/buildSerializerFunction.d.ts.map +0 -1
  608. package/dist/src/modular/serialization/buildSerializerFunction.js +0 -444
  609. package/dist/src/modular/serialization/buildSerializerFunction.js.map +0 -1
  610. package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts +0 -44
  611. package/dist/src/modular/serialization/buildXmlSerializerFunction.d.ts.map +0 -1
  612. package/dist/src/modular/serialization/buildXmlSerializerFunction.js +0 -729
  613. package/dist/src/modular/serialization/buildXmlSerializerFunction.js.map +0 -1
  614. package/dist/src/modular/serialization/serializeUtils.d.ts +0 -37
  615. package/dist/src/modular/serialization/serializeUtils.d.ts.map +0 -1
  616. package/dist/src/modular/serialization/serializeUtils.js +0 -145
  617. package/dist/src/modular/serialization/serializeUtils.js.map +0 -1
  618. package/dist/src/rlc-common/buildClient.d.ts +0 -9
  619. package/dist/src/rlc-common/buildClient.d.ts.map +0 -1
  620. package/dist/src/rlc-common/buildClient.js +0 -391
  621. package/dist/src/rlc-common/buildClient.js.map +0 -1
  622. package/dist/src/rlc-common/buildClientDefinitions.d.ts +0 -6
  623. package/dist/src/rlc-common/buildClientDefinitions.d.ts.map +0 -1
  624. package/dist/src/rlc-common/buildClientDefinitions.js +0 -157
  625. package/dist/src/rlc-common/buildClientDefinitions.js.map +0 -1
  626. package/dist/src/rlc-common/buildIndexFile.d.ts +0 -6
  627. package/dist/src/rlc-common/buildIndexFile.d.ts.map +0 -1
  628. package/dist/src/rlc-common/buildIndexFile.js +0 -241
  629. package/dist/src/rlc-common/buildIndexFile.js.map +0 -1
  630. package/dist/src/rlc-common/buildIsUnexpectedHelper.d.ts +0 -6
  631. package/dist/src/rlc-common/buildIsUnexpectedHelper.d.ts.map +0 -1
  632. package/dist/src/rlc-common/buildIsUnexpectedHelper.js +0 -223
  633. package/dist/src/rlc-common/buildIsUnexpectedHelper.js.map +0 -1
  634. package/dist/src/rlc-common/buildLogger.d.ts +0 -6
  635. package/dist/src/rlc-common/buildLogger.d.ts.map +0 -1
  636. package/dist/src/rlc-common/buildLogger.js +0 -31
  637. package/dist/src/rlc-common/buildLogger.js.map +0 -1
  638. package/dist/src/rlc-common/buildMethodShortcuts.d.ts +0 -5
  639. package/dist/src/rlc-common/buildMethodShortcuts.d.ts.map +0 -1
  640. package/dist/src/rlc-common/buildMethodShortcuts.js +0 -54
  641. package/dist/src/rlc-common/buildMethodShortcuts.js.map +0 -1
  642. package/dist/src/rlc-common/buildObjectTypes.d.ts +0 -29
  643. package/dist/src/rlc-common/buildObjectTypes.d.ts.map +0 -1
  644. package/dist/src/rlc-common/buildObjectTypes.js +0 -412
  645. package/dist/src/rlc-common/buildObjectTypes.js.map +0 -1
  646. package/dist/src/rlc-common/buildPaginateHelper.d.ts +0 -6
  647. package/dist/src/rlc-common/buildPaginateHelper.d.ts.map +0 -1
  648. package/dist/src/rlc-common/buildPaginateHelper.js +0 -27
  649. package/dist/src/rlc-common/buildPaginateHelper.js.map +0 -1
  650. package/dist/src/rlc-common/buildParameterTypes.d.ts +0 -14
  651. package/dist/src/rlc-common/buildParameterTypes.d.ts.map +0 -1
  652. package/dist/src/rlc-common/buildParameterTypes.js +0 -391
  653. package/dist/src/rlc-common/buildParameterTypes.js.map +0 -1
  654. package/dist/src/rlc-common/buildPollingHelper.d.ts +0 -6
  655. package/dist/src/rlc-common/buildPollingHelper.d.ts.map +0 -1
  656. package/dist/src/rlc-common/buildPollingHelper.js +0 -61
  657. package/dist/src/rlc-common/buildPollingHelper.js.map +0 -1
  658. package/dist/src/rlc-common/buildResponseTypes.d.ts +0 -6
  659. package/dist/src/rlc-common/buildResponseTypes.d.ts.map +0 -1
  660. package/dist/src/rlc-common/buildResponseTypes.js +0 -143
  661. package/dist/src/rlc-common/buildResponseTypes.js.map +0 -1
  662. package/dist/src/rlc-common/buildSamples.d.ts +0 -3
  663. package/dist/src/rlc-common/buildSamples.d.ts.map +0 -1
  664. package/dist/src/rlc-common/buildSamples.js +0 -30
  665. package/dist/src/rlc-common/buildSamples.js.map +0 -1
  666. package/dist/src/rlc-common/buildSchemaType.d.ts +0 -20
  667. package/dist/src/rlc-common/buildSchemaType.d.ts.map +0 -1
  668. package/dist/src/rlc-common/buildSchemaType.js +0 -71
  669. package/dist/src/rlc-common/buildSchemaType.js.map +0 -1
  670. package/dist/src/rlc-common/buildSerializeHelper.d.ts +0 -6
  671. package/dist/src/rlc-common/buildSerializeHelper.d.ts.map +0 -1
  672. package/dist/src/rlc-common/buildSerializeHelper.js +0 -36
  673. package/dist/src/rlc-common/buildSerializeHelper.js.map +0 -1
  674. package/dist/src/rlc-common/buildTopLevelIndexFile.d.ts +0 -6
  675. package/dist/src/rlc-common/buildTopLevelIndexFile.d.ts.map +0 -1
  676. package/dist/src/rlc-common/buildTopLevelIndexFile.js +0 -48
  677. package/dist/src/rlc-common/buildTopLevelIndexFile.js.map +0 -1
  678. package/dist/src/rlc-common/helpers/apiVersionUtil.d.ts +0 -17
  679. package/dist/src/rlc-common/helpers/apiVersionUtil.d.ts.map +0 -1
  680. package/dist/src/rlc-common/helpers/apiVersionUtil.js +0 -43
  681. package/dist/src/rlc-common/helpers/apiVersionUtil.js.map +0 -1
  682. package/dist/src/rlc-common/helpers/importsUtil.d.ts +0 -18
  683. package/dist/src/rlc-common/helpers/importsUtil.d.ts.map +0 -1
  684. package/dist/src/rlc-common/helpers/importsUtil.js +0 -164
  685. package/dist/src/rlc-common/helpers/importsUtil.js.map +0 -1
  686. package/dist/src/rlc-common/helpers/nameConstructors.d.ts +0 -42
  687. package/dist/src/rlc-common/helpers/nameConstructors.d.ts.map +0 -1
  688. package/dist/src/rlc-common/helpers/nameConstructors.js +0 -61
  689. package/dist/src/rlc-common/helpers/nameConstructors.js.map +0 -1
  690. package/dist/src/rlc-common/helpers/nameUtils.d.ts +0 -37
  691. package/dist/src/rlc-common/helpers/nameUtils.d.ts.map +0 -1
  692. package/dist/src/rlc-common/helpers/nameUtils.js +0 -240
  693. package/dist/src/rlc-common/helpers/nameUtils.js.map +0 -1
  694. package/dist/src/rlc-common/helpers/operationHelpers.d.ts +0 -16
  695. package/dist/src/rlc-common/helpers/operationHelpers.d.ts.map +0 -1
  696. package/dist/src/rlc-common/helpers/operationHelpers.js +0 -104
  697. package/dist/src/rlc-common/helpers/operationHelpers.js.map +0 -1
  698. package/dist/src/rlc-common/helpers/packageUtil.d.ts +0 -7
  699. package/dist/src/rlc-common/helpers/packageUtil.d.ts.map +0 -1
  700. package/dist/src/rlc-common/helpers/packageUtil.js +0 -10
  701. package/dist/src/rlc-common/helpers/packageUtil.js.map +0 -1
  702. package/dist/src/rlc-common/helpers/pathUtils.d.ts +0 -2
  703. package/dist/src/rlc-common/helpers/pathUtils.d.ts.map +0 -1
  704. package/dist/src/rlc-common/helpers/pathUtils.js +0 -10
  705. package/dist/src/rlc-common/helpers/pathUtils.js.map +0 -1
  706. package/dist/src/rlc-common/helpers/schemaHelpers.d.ts +0 -10
  707. package/dist/src/rlc-common/helpers/schemaHelpers.d.ts.map +0 -1
  708. package/dist/src/rlc-common/helpers/schemaHelpers.js +0 -37
  709. package/dist/src/rlc-common/helpers/schemaHelpers.js.map +0 -1
  710. package/dist/src/rlc-common/helpers/shortcutMethods.d.ts +0 -4
  711. package/dist/src/rlc-common/helpers/shortcutMethods.d.ts.map +0 -1
  712. package/dist/src/rlc-common/helpers/shortcutMethods.js +0 -49
  713. package/dist/src/rlc-common/helpers/shortcutMethods.js.map +0 -1
  714. package/dist/src/rlc-common/helpers/typeUtil.d.ts +0 -32
  715. package/dist/src/rlc-common/helpers/typeUtil.d.ts.map +0 -1
  716. package/dist/src/rlc-common/helpers/typeUtil.js +0 -162
  717. package/dist/src/rlc-common/helpers/typeUtil.js.map +0 -1
  718. package/dist/src/rlc-common/helpers/valueGenerationUtil.d.ts +0 -12
  719. package/dist/src/rlc-common/helpers/valueGenerationUtil.d.ts.map +0 -1
  720. package/dist/src/rlc-common/helpers/valueGenerationUtil.js +0 -161
  721. package/dist/src/rlc-common/helpers/valueGenerationUtil.js.map +0 -1
  722. package/dist/src/rlc-common/metadata/buildApiExtractorConfig.d.ts +0 -6
  723. package/dist/src/rlc-common/metadata/buildApiExtractorConfig.d.ts.map +0 -1
  724. package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js +0 -55
  725. package/dist/src/rlc-common/metadata/buildApiExtractorConfig.js.map +0 -1
  726. package/dist/src/rlc-common/metadata/buildChangelogFile.d.ts +0 -6
  727. package/dist/src/rlc-common/metadata/buildChangelogFile.d.ts.map +0 -1
  728. package/dist/src/rlc-common/metadata/buildChangelogFile.js +0 -25
  729. package/dist/src/rlc-common/metadata/buildChangelogFile.js.map +0 -1
  730. package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts +0 -6
  731. package/dist/src/rlc-common/metadata/buildESLintConfig.d.ts.map +0 -1
  732. package/dist/src/rlc-common/metadata/buildESLintConfig.js +0 -79
  733. package/dist/src/rlc-common/metadata/buildESLintConfig.js.map +0 -1
  734. package/dist/src/rlc-common/metadata/buildLicenseFile.d.ts +0 -5
  735. package/dist/src/rlc-common/metadata/buildLicenseFile.d.ts.map +0 -1
  736. package/dist/src/rlc-common/metadata/buildLicenseFile.js +0 -32
  737. package/dist/src/rlc-common/metadata/buildLicenseFile.js.map +0 -1
  738. package/dist/src/rlc-common/metadata/buildPackageFile.d.ts +0 -25
  739. package/dist/src/rlc-common/metadata/buildPackageFile.d.ts.map +0 -1
  740. package/dist/src/rlc-common/metadata/buildPackageFile.js +0 -197
  741. package/dist/src/rlc-common/metadata/buildPackageFile.js.map +0 -1
  742. package/dist/src/rlc-common/metadata/buildReadmeFile.d.ts +0 -11
  743. package/dist/src/rlc-common/metadata/buildReadmeFile.d.ts.map +0 -1
  744. package/dist/src/rlc-common/metadata/buildReadmeFile.js +0 -418
  745. package/dist/src/rlc-common/metadata/buildReadmeFile.js.map +0 -1
  746. package/dist/src/rlc-common/metadata/buildRollupConfig.d.ts +0 -6
  747. package/dist/src/rlc-common/metadata/buildRollupConfig.d.ts.map +0 -1
  748. package/dist/src/rlc-common/metadata/buildRollupConfig.js +0 -140
  749. package/dist/src/rlc-common/metadata/buildRollupConfig.js.map +0 -1
  750. package/dist/src/rlc-common/metadata/buildSampleEnvFile.d.ts +0 -6
  751. package/dist/src/rlc-common/metadata/buildSampleEnvFile.d.ts.map +0 -1
  752. package/dist/src/rlc-common/metadata/buildSampleEnvFile.js +0 -15
  753. package/dist/src/rlc-common/metadata/buildSampleEnvFile.js.map +0 -1
  754. package/dist/src/rlc-common/metadata/buildTestConfig.d.ts +0 -16
  755. package/dist/src/rlc-common/metadata/buildTestConfig.d.ts.map +0 -1
  756. package/dist/src/rlc-common/metadata/buildTestConfig.js +0 -54
  757. package/dist/src/rlc-common/metadata/buildTestConfig.js.map +0 -1
  758. package/dist/src/rlc-common/metadata/buildTsConfig.d.ts +0 -61
  759. package/dist/src/rlc-common/metadata/buildTsConfig.d.ts.map +0 -1
  760. package/dist/src/rlc-common/metadata/buildTsConfig.js +0 -170
  761. package/dist/src/rlc-common/metadata/buildTsConfig.js.map +0 -1
  762. package/dist/src/rlc-common/metadata/buildVitestConfig.d.ts +0 -6
  763. package/dist/src/rlc-common/metadata/buildVitestConfig.d.ts.map +0 -1
  764. package/dist/src/rlc-common/metadata/buildVitestConfig.js +0 -26
  765. package/dist/src/rlc-common/metadata/buildVitestConfig.js.map +0 -1
  766. package/dist/src/rlc-common/metadata/buildWarpConfig.d.ts +0 -20
  767. package/dist/src/rlc-common/metadata/buildWarpConfig.d.ts.map +0 -1
  768. package/dist/src/rlc-common/metadata/buildWarpConfig.js +0 -76
  769. package/dist/src/rlc-common/metadata/buildWarpConfig.js.map +0 -1
  770. package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts +0 -51
  771. package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.d.ts.map +0 -1
  772. package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js +0 -121
  773. package/dist/src/rlc-common/metadata/packageJson/azurePackageCommon.js.map +0 -1
  774. package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.d.ts +0 -242
  775. package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.d.ts.map +0 -1
  776. package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js +0 -171
  777. package/dist/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.js.map +0 -1
  778. package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.d.ts +0 -8
  779. package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.d.ts.map +0 -1
  780. package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js +0 -101
  781. package/dist/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.js.map +0 -1
  782. package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.d.ts +0 -57
  783. package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.d.ts.map +0 -1
  784. package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js +0 -53
  785. package/dist/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.js.map +0 -1
  786. package/dist/src/rlc-common/metadata/packageJson/packageCommon.d.ts +0 -64
  787. package/dist/src/rlc-common/metadata/packageJson/packageCommon.d.ts.map +0 -1
  788. package/dist/src/rlc-common/metadata/packageJson/packageCommon.js +0 -180
  789. package/dist/src/rlc-common/metadata/packageJson/packageCommon.js.map +0 -1
  790. package/dist/src/rlc-common/static/paginateContent.d.ts +0 -2
  791. package/dist/src/rlc-common/static/paginateContent.d.ts.map +0 -1
  792. package/dist/src/rlc-common/static/paginateContent.js +0 -345
  793. package/dist/src/rlc-common/static/paginateContent.js.map +0 -1
  794. package/dist/src/rlc-common/static/pollingContent.d.ts +0 -2
  795. package/dist/src/rlc-common/static/pollingContent.d.ts.map +0 -1
  796. package/dist/src/rlc-common/static/pollingContent.js +0 -225
  797. package/dist/src/rlc-common/static/pollingContent.js.map +0 -1
  798. package/dist/src/rlc-common/static/sampleTemplate.d.ts +0 -2
  799. package/dist/src/rlc-common/static/sampleTemplate.d.ts.map +0 -1
  800. package/dist/src/rlc-common/static/sampleTemplate.js +0 -56
  801. package/dist/src/rlc-common/static/sampleTemplate.js.map +0 -1
  802. package/dist/src/rlc-common/static/serializeHelper.d.ts +0 -6
  803. package/dist/src/rlc-common/static/serializeHelper.d.ts.map +0 -1
  804. package/dist/src/rlc-common/static/serializeHelper.js +0 -31
  805. package/dist/src/rlc-common/static/serializeHelper.js.map +0 -1
  806. package/dist/src/rlc-common/test/buildKarmaConfig.d.ts +0 -6
  807. package/dist/src/rlc-common/test/buildKarmaConfig.d.ts.map +0 -1
  808. package/dist/src/rlc-common/test/buildKarmaConfig.js +0 -11
  809. package/dist/src/rlc-common/test/buildKarmaConfig.js.map +0 -1
  810. package/dist/src/rlc-common/test/buildRecordedClient.d.ts +0 -6
  811. package/dist/src/rlc-common/test/buildRecordedClient.d.ts.map +0 -1
  812. package/dist/src/rlc-common/test/buildRecordedClient.js +0 -17
  813. package/dist/src/rlc-common/test/buildRecordedClient.js.map +0 -1
  814. package/dist/src/rlc-common/test/buildSampleTest.d.ts +0 -6
  815. package/dist/src/rlc-common/test/buildSampleTest.d.ts.map +0 -1
  816. package/dist/src/rlc-common/test/buildSampleTest.js +0 -14
  817. package/dist/src/rlc-common/test/buildSampleTest.js.map +0 -1
  818. package/dist/src/rlc-common/test/buildSnippets.d.ts +0 -6
  819. package/dist/src/rlc-common/test/buildSnippets.d.ts.map +0 -1
  820. package/dist/src/rlc-common/test/buildSnippets.js +0 -26
  821. package/dist/src/rlc-common/test/buildSnippets.js.map +0 -1
  822. package/dist/src/rlc-common/transformSampleGroups.d.ts +0 -9
  823. package/dist/src/rlc-common/transformSampleGroups.d.ts.map +0 -1
  824. package/dist/src/rlc-common/transformSampleGroups.js +0 -313
  825. package/dist/src/rlc-common/transformSampleGroups.js.map +0 -1
  826. package/dist/src/transform/transformApiVersionInfo.d.ts +0 -6
  827. package/dist/src/transform/transformApiVersionInfo.d.ts.map +0 -1
  828. package/dist/src/transform/transformApiVersionInfo.js +0 -78
  829. package/dist/src/transform/transformApiVersionInfo.js.map +0 -1
  830. package/dist/src/transform/transformHelperFunctionDetails.d.ts +0 -5
  831. package/dist/src/transform/transformHelperFunctionDetails.d.ts.map +0 -1
  832. package/dist/src/transform/transformHelperFunctionDetails.js +0 -74
  833. package/dist/src/transform/transformHelperFunctionDetails.js.map +0 -1
  834. package/dist/src/transform/transformParameters.d.ts +0 -14
  835. package/dist/src/transform/transformParameters.d.ts.map +0 -1
  836. package/dist/src/transform/transformParameters.js +0 -201
  837. package/dist/src/transform/transformParameters.js.map +0 -1
  838. package/dist/src/transform/transformPaths.d.ts +0 -5
  839. package/dist/src/transform/transformPaths.d.ts.map +0 -1
  840. package/dist/src/transform/transformPaths.js +0 -102
  841. package/dist/src/transform/transformPaths.js.map +0 -1
  842. package/dist/src/transform/transformResponses.d.ts +0 -5
  843. package/dist/src/transform/transformResponses.d.ts.map +0 -1
  844. package/dist/src/transform/transformResponses.js +0 -171
  845. package/dist/src/transform/transformResponses.js.map +0 -1
  846. package/dist/src/transform/transformSchemas.d.ts +0 -4
  847. package/dist/src/transform/transformSchemas.d.ts.map +0 -1
  848. package/dist/src/transform/transformSchemas.js +0 -191
  849. package/dist/src/transform/transformSchemas.js.map +0 -1
  850. package/dist/src/transform/transformTelemetryInfo.d.ts +0 -4
  851. package/dist/src/transform/transformTelemetryInfo.d.ts.map +0 -1
  852. package/dist/src/transform/transformTelemetryInfo.js +0 -22
  853. package/dist/src/transform/transformTelemetryInfo.js.map +0 -1
  854. package/dist/src/transform/transfromRLCOptions.d.ts +0 -14
  855. package/dist/src/transform/transfromRLCOptions.d.ts.map +0 -1
  856. package/dist/src/transform/transfromRLCOptions.js +0 -369
  857. package/dist/src/transform/transfromRLCOptions.js.map +0 -1
  858. package/dist/src/utils/clientUtils.d.ts +0 -10
  859. package/dist/src/utils/clientUtils.d.ts.map +0 -1
  860. package/dist/src/utils/clientUtils.js +0 -124
  861. package/dist/src/utils/clientUtils.js.map +0 -1
  862. package/dist/src/utils/credentialUtils.d.ts +0 -15
  863. package/dist/src/utils/credentialUtils.d.ts.map +0 -1
  864. package/dist/src/utils/credentialUtils.js +0 -68
  865. package/dist/src/utils/credentialUtils.js.map +0 -1
  866. package/dist/src/utils/crossLanguageDef.d.ts +0 -6
  867. package/dist/src/utils/crossLanguageDef.d.ts.map +0 -1
  868. package/dist/src/utils/crossLanguageDef.js +0 -59
  869. package/dist/src/utils/crossLanguageDef.js.map +0 -1
  870. package/dist/src/utils/emitUtil.d.ts +0 -5
  871. package/dist/src/utils/emitUtil.d.ts.map +0 -1
  872. package/dist/src/utils/emitUtil.js +0 -71
  873. package/dist/src/utils/emitUtil.js.map +0 -1
  874. package/dist/src/utils/fileSystemUtils.d.ts +0 -5
  875. package/dist/src/utils/fileSystemUtils.d.ts.map +0 -1
  876. package/dist/src/utils/fileSystemUtils.js +0 -59
  877. package/dist/src/utils/fileSystemUtils.js.map +0 -1
  878. package/dist/src/utils/importHelper.d.ts +0 -10
  879. package/dist/src/utils/importHelper.d.ts.map +0 -1
  880. package/dist/src/utils/importHelper.js +0 -51
  881. package/dist/src/utils/importHelper.js.map +0 -1
  882. package/dist/src/utils/mediaTypes.d.ts +0 -28
  883. package/dist/src/utils/mediaTypes.d.ts.map +0 -1
  884. package/dist/src/utils/mediaTypes.js +0 -124
  885. package/dist/src/utils/mediaTypes.js.map +0 -1
  886. package/dist/src/utils/modelUtils.d.ts +0 -60
  887. package/dist/src/utils/modelUtils.d.ts.map +0 -1
  888. package/dist/src/utils/modelUtils.js +0 -1488
  889. package/dist/src/utils/modelUtils.js.map +0 -1
  890. package/dist/src/utils/namespaceUtils.d.ts +0 -6
  891. package/dist/src/utils/namespaceUtils.d.ts.map +0 -1
  892. package/dist/src/utils/namespaceUtils.js +0 -69
  893. package/dist/src/utils/namespaceUtils.js.map +0 -1
  894. package/dist/src/utils/operationUtil.d.ts +0 -97
  895. package/dist/src/utils/operationUtil.d.ts.map +0 -1
  896. package/dist/src/utils/operationUtil.js +0 -547
  897. package/dist/src/utils/operationUtil.js.map +0 -1
  898. package/dist/src/utils/parameterUtils.d.ts +0 -9
  899. package/dist/src/utils/parameterUtils.d.ts.map +0 -1
  900. package/dist/src/utils/parameterUtils.js +0 -147
  901. package/dist/src/utils/parameterUtils.js.map +0 -1
  902. package/src/contextManager.ts +0 -101
  903. package/src/framework/hooks/sdkTypes.ts +0 -218
  904. package/src/framework/hooks/useDependencies.ts +0 -16
  905. package/src/modular/buildClassicalClient.ts +0 -434
  906. package/src/modular/buildClassicalOperationGroups.ts +0 -69
  907. package/src/modular/buildClientContext.ts +0 -325
  908. package/src/modular/buildOperations.ts +0 -248
  909. package/src/modular/buildProjectFiles.ts +0 -111
  910. package/src/modular/buildRestorePoller.ts +0 -242
  911. package/src/modular/buildRootIndex.ts +0 -407
  912. package/src/modular/buildSubpathIndex.ts +0 -152
  913. package/src/modular/emitLoggerFile.ts +0 -23
  914. package/src/modular/emitModels.ts +0 -1081
  915. package/src/modular/emitModelsOptions.ts +0 -56
  916. package/src/modular/emitSamples.ts +0 -675
  917. package/src/modular/emitTests.ts +0 -194
  918. package/src/modular/helpers/classicalOperationHelpers.ts +0 -375
  919. package/src/modular/helpers/clientHelpers.ts +0 -362
  920. package/src/modular/helpers/exampleValueHelpers.ts +0 -851
  921. package/src/modular/helpers/namingHelpers.ts +0 -84
  922. package/src/modular/helpers/operationHelpers.ts +0 -3035
  923. package/src/modular/helpers/typeHelpers.ts +0 -131
  924. package/src/modular/serialization/buildDeserializerFunction.ts +0 -564
  925. package/src/modular/serialization/buildSerializerFunction.ts +0 -616
  926. package/src/modular/serialization/buildXmlSerializerFunction.ts +0 -951
  927. package/src/modular/serialization/serializeUtils.ts +0 -217
  928. package/src/rlc-common/buildClient.ts +0 -490
  929. package/src/rlc-common/buildClientDefinitions.ts +0 -235
  930. package/src/rlc-common/buildIndexFile.ts +0 -344
  931. package/src/rlc-common/buildIsUnexpectedHelper.ts +0 -248
  932. package/src/rlc-common/buildLogger.ts +0 -43
  933. package/src/rlc-common/buildMethodShortcuts.ts +0 -71
  934. package/src/rlc-common/buildObjectTypes.ts +0 -603
  935. package/src/rlc-common/buildPaginateHelper.ts +0 -31
  936. package/src/rlc-common/buildParameterTypes.ts +0 -554
  937. package/src/rlc-common/buildPollingHelper.ts +0 -83
  938. package/src/rlc-common/buildResponseTypes.ts +0 -180
  939. package/src/rlc-common/buildSamples.ts +0 -32
  940. package/src/rlc-common/buildSchemaType.ts +0 -89
  941. package/src/rlc-common/buildSerializeHelper.ts +0 -49
  942. package/src/rlc-common/buildTopLevelIndexFile.ts +0 -58
  943. package/src/rlc-common/helpers/nameConstructors.ts +0 -110
  944. package/src/rlc-common/helpers/operationHelpers.ts +0 -138
  945. package/src/rlc-common/helpers/shortcutMethods.ts +0 -58
  946. package/src/rlc-common/helpers/valueGenerationUtil.ts +0 -234
  947. package/src/rlc-common/metadata/buildPackageFile.ts +0 -242
  948. package/src/rlc-common/metadata/buildReadmeFile.ts +0 -515
  949. package/src/rlc-common/metadata/buildRollupConfig.ts +0 -147
  950. package/src/rlc-common/metadata/packageJson/azurePackageCommon.ts +0 -152
  951. package/src/rlc-common/metadata/packageJson/buildAzureMonorepoPackage.ts +0 -199
  952. package/src/rlc-common/metadata/packageJson/buildAzureStandalonePackage.ts +0 -123
  953. package/src/rlc-common/metadata/packageJson/buildFlavorlessPackage.ts +0 -68
  954. package/src/rlc-common/test/buildSnippets.ts +0 -29
  955. package/src/rlc-common/transformSampleGroups.ts +0 -407
  956. package/src/transform/transformApiVersionInfo.ts +0 -103
  957. package/src/transform/transformHelperFunctionDetails.ts +0 -88
  958. package/src/transform/transformParameters.ts +0 -321
  959. package/src/transform/transformPaths.ts +0 -157
  960. package/src/transform/transformResponses.ts +0 -237
  961. package/src/transform/transformSchemas.ts +0 -212
  962. package/src/transform/transformTelemetryInfo.ts +0 -33
  963. package/src/transform/transfromRLCOptions.ts +0 -461
  964. package/src/utils/crossLanguageDef.ts +0 -66
  965. package/src/utils/importHelper.ts +0 -59
  966. package/src/utils/modelUtils.ts +0 -1737
  967. package/src/utils/operationUtil.ts +0 -763
  968. package/src/utils/parameterUtils.ts +0 -192
  969. /package/src/{metaTree.ts → meta-tree.ts} +0 -0
  970. /package/src/modular/{buildModularOptions.ts → build-modular-options.ts} +0 -0
  971. /package/src/modular/helpers/{clientOptionHelpers.ts → client-option-helpers.ts} +0 -0
  972. /package/src/modular/helpers/{docsHelpers.ts → docs-helpers.ts} +0 -0
  973. /package/src/rlc-common/helpers/{apiVersionUtil.ts → api-version-util.ts} +0 -0
  974. /package/src/rlc-common/helpers/{importsUtil.ts → imports-util.ts} +0 -0
  975. /package/src/rlc-common/helpers/{nameUtils.ts → name-utils.ts} +0 -0
  976. /package/src/rlc-common/helpers/{packageUtil.ts → package-util.ts} +0 -0
  977. /package/src/rlc-common/helpers/{pathUtils.ts → path-utils.ts} +0 -0
  978. /package/src/rlc-common/helpers/{schemaHelpers.ts → schema-helpers.ts} +0 -0
  979. /package/src/rlc-common/helpers/{typeUtil.ts → type-util.ts} +0 -0
  980. /package/src/rlc-common/metadata/{buildApiExtractorConfig.ts → build-api-extractor-config.ts} +0 -0
  981. /package/src/rlc-common/metadata/{buildChangelogFile.ts → build-changelog-file.ts} +0 -0
  982. /package/src/rlc-common/metadata/{buildESLintConfig.ts → build-es-lint-config.ts} +0 -0
  983. /package/src/rlc-common/metadata/{buildLicenseFile.ts → build-license-file.ts} +0 -0
  984. /package/src/rlc-common/metadata/{buildSampleEnvFile.ts → build-sample-env-file.ts} +0 -0
  985. /package/src/rlc-common/metadata/{buildTestConfig.ts → build-test-config.ts} +0 -0
  986. /package/src/rlc-common/metadata/{buildTsConfig.ts → build-ts-config.ts} +0 -0
  987. /package/src/rlc-common/metadata/{buildVitestConfig.ts → build-vitest-config.ts} +0 -0
  988. /package/src/rlc-common/metadata/{buildWarpConfig.ts → build-warp-config.ts} +0 -0
  989. /package/src/rlc-common/metadata/{packageJson/packageCommon.ts → package-json/package-common.ts} +0 -0
  990. /package/src/rlc-common/static/{paginateContent.ts → paginate-content.ts} +0 -0
  991. /package/src/rlc-common/static/{pollingContent.ts → polling-content.ts} +0 -0
  992. /package/src/rlc-common/static/{sampleTemplate.ts → sample-template.ts} +0 -0
  993. /package/src/rlc-common/static/{serializeHelper.ts → serialize-helper.ts} +0 -0
  994. /package/src/rlc-common/test/{buildKarmaConfig.ts → build-karma-config.ts} +0 -0
  995. /package/src/rlc-common/test/{buildRecordedClient.ts → build-recorded-client.ts} +0 -0
  996. /package/src/rlc-common/test/{buildSampleTest.ts → build-sample-test.ts} +0 -0
  997. /package/src/utils/{clientUtils.ts → client-utils.ts} +0 -0
  998. /package/src/utils/{credentialUtils.ts → credential-utils.ts} +0 -0
  999. /package/src/utils/{emitUtil.ts → emit-util.ts} +0 -0
  1000. /package/src/utils/{fileSystemUtils.ts → file-system-utils.ts} +0 -0
  1001. /package/src/utils/{mediaTypes.ts → media-types.ts} +0 -0
  1002. /package/src/utils/{namespaceUtils.ts → namespace-utils.ts} +0 -0
@@ -0,0 +1,180 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import * as path from "path";
5
+ import {
6
+ InterfaceDeclarationStructure,
7
+ OptionalKind,
8
+ Project,
9
+ PropertySignatureStructure,
10
+ StructureKind,
11
+ } from "ts-morph";
12
+ import { getImportSpecifier } from "./helpers/imports-util.js";
13
+ import {
14
+ getImportModuleName,
15
+ getResponseBaseName,
16
+ getResponseTypeName,
17
+ } from "./helpers/name-constructors.js";
18
+ import { ResponseHeaderSchema, ResponseMetadata, RLCModel } from "./interfaces.js";
19
+
20
+ let hasErrorResponse = false;
21
+ export function buildResponseTypes(model: RLCModel) {
22
+ const project = new Project();
23
+ const srcPath = model.srcPath;
24
+ const filePath = path.join(srcPath, `responses.ts`);
25
+ hasErrorResponse = false;
26
+ const responsesFile = project.createSourceFile(filePath, undefined, {
27
+ overwrite: true,
28
+ });
29
+ // Set used to track down which models need to be imported
30
+ // Track if we need to import RawHttpHeaders
31
+ let hasHeaders = false;
32
+ if (!model.responses) {
33
+ return;
34
+ }
35
+ for (const operationResponse of model.responses) {
36
+ for (const response of operationResponse.responses) {
37
+ // Building the response type base name
38
+ const baseResponseName = getResponseBaseName(
39
+ operationResponse.operationGroup,
40
+ operationResponse.operationName,
41
+ response.statusCode,
42
+ );
43
+
44
+ // Build the response header
45
+ const headersInterface: InterfaceDeclarationStructure | undefined =
46
+ getResponseHeaderInterfaceDefinition(response, baseResponseName);
47
+ if (headersInterface) {
48
+ hasHeaders = true;
49
+ responsesFile.addInterface(headersInterface);
50
+ }
51
+
52
+ // Get the information to build the Response Interface
53
+ const responseTypeName = response.predefinedName ?? getResponseTypeName(baseResponseName);
54
+ const responseProperties = getResponseInterfaceProperties(response, headersInterface?.name);
55
+
56
+ const responseInterfaceDefinition: OptionalKind<InterfaceDeclarationStructure> = {
57
+ name: responseTypeName,
58
+ properties: responseProperties,
59
+ isExported: true,
60
+ extends: ["HttpResponse"],
61
+ };
62
+
63
+ // Only add a description if one was provided in the Swagger
64
+ // otherwise skip to avoid having empty TSDoc lines
65
+ if (response.description) {
66
+ responseInterfaceDefinition.docs = [{ description: response.description }];
67
+ }
68
+
69
+ // Add the response interface to the responses file
70
+ responsesFile.addInterface(responseInterfaceDefinition);
71
+ }
72
+ }
73
+
74
+ if (hasHeaders) {
75
+ responsesFile.addImportDeclarations([
76
+ {
77
+ isTypeOnly: true,
78
+ namedImports: ["RawHttpHeaders"],
79
+ moduleSpecifier: getImportSpecifier("restPipeline", model.importInfo.runtimeImports),
80
+ },
81
+ ]);
82
+ }
83
+ const namedImports = ["HttpResponse"];
84
+ if (hasErrorResponse) {
85
+ namedImports.push("ErrorResponse");
86
+ }
87
+ responsesFile.addImportDeclarations([
88
+ {
89
+ isTypeOnly: true,
90
+ namedImports,
91
+ moduleSpecifier: getImportSpecifier("restClient", model.importInfo.runtimeImports),
92
+ },
93
+ ]);
94
+
95
+ if ((model.importInfo.internalImports.response?.importsSet?.size ?? 0) > 0) {
96
+ const modelNamedImports = Array.from(
97
+ model.importInfo.internalImports.response!.importsSet!,
98
+ ).filter((modelName) => {
99
+ return !(modelName === "ErrorResponseOutput" && hasErrorResponse);
100
+ });
101
+ responsesFile.addImportDeclarations([
102
+ {
103
+ isTypeOnly: true,
104
+ namedImports: modelNamedImports,
105
+ moduleSpecifier: getImportModuleName(
106
+ {
107
+ cjsName: `./outputModels`,
108
+ esModulesName: `./outputModels.js`,
109
+ },
110
+ model,
111
+ ),
112
+ },
113
+ ]);
114
+ }
115
+ return { path: filePath, content: responsesFile.getFullText() };
116
+ }
117
+
118
+ function getResponseHeaderInterfaceDefinition(
119
+ response: ResponseMetadata,
120
+ baseName: string,
121
+ ): undefined | InterfaceDeclarationStructure {
122
+ // Check if there are any required headers
123
+ if (!response.headers) {
124
+ return;
125
+ }
126
+ const headersInterfaceName = `${baseName}Headers`;
127
+ return {
128
+ kind: StructureKind.Interface,
129
+ isExported: true,
130
+ name: headersInterfaceName,
131
+ properties: response?.headers.map((h: ResponseHeaderSchema) => {
132
+ const description = h.description;
133
+ return {
134
+ name: h.name,
135
+ ...(description && { docs: [{ description }] }),
136
+ type: h.type,
137
+ hasQuestionToken: !h.required,
138
+ };
139
+ }),
140
+ };
141
+ }
142
+
143
+ /**
144
+ * Gets the properties that need to be part of the response interface
145
+ */
146
+ function getResponseInterfaceProperties(response: ResponseMetadata, headersInterfaceName?: string) {
147
+ const statusCode = response.statusCode;
148
+ const responseProperties: PropertySignatureStructure[] = [
149
+ {
150
+ name: "status",
151
+ type: statusCode === "default" ? `string` : `"${statusCode}"`,
152
+ kind: StructureKind.PropertySignature,
153
+ },
154
+ ];
155
+
156
+ if (response.body) {
157
+ const description = response.body.description;
158
+ let type = response.body.type;
159
+ if (response.body.type === "ErrorResponseOutput" && response.body.fromCore) {
160
+ type = "ErrorResponse";
161
+ hasErrorResponse = true;
162
+ }
163
+ responseProperties.push({
164
+ name: "body",
165
+ type,
166
+ kind: StructureKind.PropertySignature,
167
+ ...(description && { docs: [{ description }] }),
168
+ });
169
+ }
170
+
171
+ if (headersInterfaceName) {
172
+ responseProperties.push({
173
+ name: "headers",
174
+ type: `RawHttpHeaders & ${headersInterfaceName}`,
175
+ kind: StructureKind.PropertySignature,
176
+ });
177
+ }
178
+
179
+ return responseProperties;
180
+ }
@@ -0,0 +1,32 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import { File as RLCFile, RLCModel, RLCSampleGroup } from "./interfaces.js";
5
+ import { sampleTemplate } from "./static/sample-template.js";
6
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
+ // @ts-ignore: to fix the handlebars issue
8
+ import hbs from "handlebars";
9
+ import * as path from "path";
10
+
11
+ // Build sample files for the model based on the sample groups
12
+ export function buildSamples(model: RLCModel) {
13
+ if (!model.options || !model.options.packageDetails) {
14
+ return;
15
+ }
16
+ const sampleGroups: RLCSampleGroup[] | undefined = model.sampleGroups;
17
+ if (!sampleGroups || sampleGroups.length === 0) {
18
+ return;
19
+ }
20
+ const sampleFiles: RLCFile[] = [];
21
+ for (const sampleGroup of sampleGroups) {
22
+ const sampleGroupFileContents = hbs.compile(sampleTemplate, {
23
+ noEscape: true,
24
+ });
25
+ const filePath = path.join("samples-dev", `${sampleGroup.filename}.ts`);
26
+ sampleFiles.push({
27
+ path: filePath,
28
+ content: sampleGroupFileContents(sampleGroup),
29
+ });
30
+ }
31
+ return sampleFiles;
32
+ }
@@ -0,0 +1,89 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import * as path from "path";
5
+ import { Project } from "ts-morph";
6
+ import {
7
+ buildObjectAliases,
8
+ buildObjectInterfaces,
9
+ buildPolymorphicAliases,
10
+ } from "./build-object-types.js";
11
+ import { getImportSpecifier } from "./helpers/imports-util.js";
12
+ import { getImportModuleName } from "./helpers/name-constructors.js";
13
+ import { RLCModel, SchemaContext } from "./interfaces.js";
14
+
15
+ /**
16
+ * Generates types to represent schema definitions in the swagger
17
+ */
18
+ export function buildSchemaTypes(model: RLCModel) {
19
+ const { srcPath } = model;
20
+ const project = new Project();
21
+ let filePath = path.join(srcPath, `models.ts`);
22
+ const inputModelFile = generateModelFiles(model, project, filePath, [SchemaContext.Input]);
23
+ filePath = path.join(srcPath, `outputModels.ts`);
24
+ const outputModelFile = generateModelFiles(model, project, filePath, [
25
+ SchemaContext.Output,
26
+ SchemaContext.Exception,
27
+ ]);
28
+ return { inputModelFile, outputModelFile };
29
+ }
30
+
31
+ export function generateModelFiles(
32
+ model: RLCModel,
33
+ project: Project,
34
+ filePath: string,
35
+ schemaContext: SchemaContext[],
36
+ ) {
37
+ // Track models that need to be imported
38
+ const importedModels = new Set<string>();
39
+ const objectsDefinitions = buildObjectInterfaces(model, importedModels, schemaContext);
40
+
41
+ const objectTypeAliases = buildPolymorphicAliases(model, schemaContext);
42
+
43
+ const objectAliases = buildObjectAliases(model, importedModels, schemaContext);
44
+
45
+ if (objectTypeAliases.length || objectsDefinitions.length || objectAliases.length) {
46
+ const modelsFile = project.createSourceFile(filePath, undefined, {
47
+ overwrite: true,
48
+ });
49
+
50
+ modelsFile.addInterfaces(objectsDefinitions);
51
+ modelsFile.addTypeAliases(objectTypeAliases);
52
+ modelsFile.addTypeAliases(objectAliases);
53
+ if (importedModels.size > 0) {
54
+ modelsFile.addImportDeclarations([
55
+ {
56
+ isTypeOnly: true,
57
+ namedImports: [...Array.from(importedModels || [])],
58
+ moduleSpecifier: getImportSpecifier("restClient", model.importInfo.runtimeImports),
59
+ },
60
+ ]);
61
+ }
62
+ // Add NodeReadableStream import if binary types are used in models.
63
+ // platform-types.ts is generated directly under src/ (no static-helpers/
64
+ // subdirectory) to match the RLC design where all output lives in src/.
65
+ // The platform-types static helper resolves NodeReadableStream to
66
+ // NodeJS.ReadableStream on Node and `never` on browser/react-native, so the
67
+ // union arm drops out naturally in non-Node builds.
68
+ if (modelsFile.getFullText().includes("NodeReadableStream")) {
69
+ const platformTypesModuleSpecifier = model.options?.azureSdkForJs
70
+ ? "#platform/platform-types"
71
+ : getImportModuleName(
72
+ {
73
+ cjsName: `./platform-types`,
74
+ esModulesName: `./platform-types.js`,
75
+ },
76
+ model,
77
+ );
78
+ modelsFile.addImportDeclarations([
79
+ {
80
+ isTypeOnly: true,
81
+ namedImports: ["NodeReadableStream"],
82
+ moduleSpecifier: platformTypesModuleSpecifier,
83
+ },
84
+ ]);
85
+ }
86
+ return { path: filePath, content: modelsFile.getFullText() };
87
+ }
88
+ return undefined;
89
+ }
@@ -0,0 +1,49 @@
1
+ import * as path from "path";
2
+ import { RLCModel } from "./interfaces.js";
3
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
+ // @ts-ignore: to fix the handlebars issue
5
+ import hbs from "handlebars";
6
+ import {
7
+ hasCsvCollection,
8
+ hasMultiCollection,
9
+ hasPipeCollection,
10
+ hasSsvCollection,
11
+ hasTsvCollection,
12
+ } from "./helpers/operation-helpers.js";
13
+ import {
14
+ buildCsvCollectionContent,
15
+ buildMultiCollectionContent,
16
+ buildPipeCollectionContent,
17
+ buildSsvCollectionContent,
18
+ buildTsvCollectionContent,
19
+ } from "./static/serialize-helper.js";
20
+
21
+ export function buildSerializeHelper(model: RLCModel) {
22
+ let serializeHelperContent = "";
23
+ if (hasMultiCollection(model)) {
24
+ serializeHelperContent += "\n" + buildMultiCollectionContent;
25
+ }
26
+ if (hasPipeCollection(model)) {
27
+ serializeHelperContent += "\n" + buildPipeCollectionContent;
28
+ }
29
+ if (hasSsvCollection(model)) {
30
+ serializeHelperContent += "\n" + buildSsvCollectionContent;
31
+ }
32
+ if (hasTsvCollection(model)) {
33
+ serializeHelperContent += "\n" + buildTsvCollectionContent;
34
+ }
35
+ if (hasCsvCollection(model)) {
36
+ serializeHelperContent += "\n" + buildCsvCollectionContent;
37
+ }
38
+ if (serializeHelperContent !== "") {
39
+ const readmeFileContents = hbs.compile(serializeHelperContent, {
40
+ noEscape: true,
41
+ });
42
+ const { srcPath } = model;
43
+ return {
44
+ path: path.join(srcPath, "serializeHelper.ts"),
45
+ content: readmeFileContents({}),
46
+ };
47
+ }
48
+ return undefined;
49
+ }
@@ -0,0 +1,58 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import * as path from "path";
5
+ import { Project } from "ts-morph";
6
+ import { getImportModuleName } from "./helpers/name-constructors.js";
7
+ import { NameType, normalizeName } from "./helpers/name-utils.js";
8
+ import { getRelativePartFromSrcPath } from "./helpers/path-utils.js";
9
+ import { RLCModel } from "./interfaces.js";
10
+
11
+ const batchOutputFolder: [string, string, string][] = [];
12
+
13
+ export function buildTopLevelIndex(model: RLCModel) {
14
+ if (!model.options) {
15
+ return undefined;
16
+ }
17
+ const project = new Project();
18
+ const { srcPath } = model;
19
+ const { multiClient } = model.options;
20
+ const batch = model.options.batch;
21
+ if (srcPath) {
22
+ const clientName = model.libraryName;
23
+ const moduleName = normalizeName(clientName, NameType.File);
24
+ const relativePath = "./" + getRelativePartFromSrcPath(srcPath, model.options.isModularLibrary);
25
+ batchOutputFolder.push([relativePath, clientName, moduleName]);
26
+ }
27
+ if (multiClient && batch && batch.length > 1 && batchOutputFolder.length === batch.length) {
28
+ const indexFile = project.createSourceFile("index.ts", undefined, {
29
+ overwrite: true,
30
+ });
31
+ const allModules: string[] = [];
32
+ batchOutputFolder.forEach((item) => {
33
+ indexFile.addImportDeclaration({
34
+ isTypeOnly: true,
35
+ namespaceImport: item[1],
36
+ moduleSpecifier: getImportModuleName(
37
+ {
38
+ cjsName: `${item[0]}`,
39
+ esModulesName: `${item[0]}/index.js`,
40
+ },
41
+ model,
42
+ ),
43
+ });
44
+ allModules.push(item[1]);
45
+ });
46
+ indexFile.addExportDeclaration({
47
+ namedExports: [...allModules],
48
+ });
49
+ const content = indexFile.getFullText();
50
+ const filePath = path.join(
51
+ srcPath.substring(0, srcPath.lastIndexOf("src") + 4),
52
+ model.options.isModularLibrary ? "rest" : "",
53
+ `index.ts`,
54
+ );
55
+ return { path: filePath, content };
56
+ }
57
+ return undefined;
58
+ }
@@ -0,0 +1,110 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import { RLCModel } from "../interfaces.js";
5
+ import { NameType, normalizeName } from "./name-utils.js";
6
+
7
+ /**
8
+ * Get the response type name by baseName or operatioName & statusCode
9
+ * @param baseResponseName
10
+ */
11
+ export function getResponseTypeName(baseResponseName: string): string;
12
+ export function getResponseTypeName(
13
+ operationGroup: string,
14
+ operationName: string,
15
+ statusCode: string,
16
+ ): string;
17
+ export function getResponseTypeName(
18
+ baseNameOrOperationGroup: string,
19
+ operationName?: string,
20
+ statusCode?: string,
21
+ ): string {
22
+ if (operationName) {
23
+ baseNameOrOperationGroup = getResponseBaseName(
24
+ baseNameOrOperationGroup,
25
+ operationName!,
26
+ statusCode || "",
27
+ );
28
+ }
29
+ return normalizeName(`${baseNameOrOperationGroup}Response`, NameType.Interface);
30
+ }
31
+
32
+ export function getLroLogicalResponseName(operationGroup: string, operationName: string) {
33
+ return normalizeName(`${operationGroup}_${operationName}_Logical_Response`, NameType.Interface);
34
+ }
35
+
36
+ /**
37
+ * The prefix of all response types
38
+ * @param operationGroup operation group name e.g string_PutEmpty
39
+ * @param operationName operation name D e.g string_PutEmpty
40
+ * @param statusCode 2XX, 4XX, 5XX, default etc.
41
+ * @returns normolized base name e.g StringPutEmpty200
42
+ */
43
+ export function getResponseBaseName(
44
+ operationGroup: string,
45
+ operationName: string,
46
+ statusCode: string,
47
+ ) {
48
+ return normalizeName(
49
+ `${operationGroup}_${normalizeName(operationName, NameType.Interface, true)}_${statusCode}`,
50
+ NameType.Interface,
51
+ );
52
+ }
53
+
54
+ /**
55
+ * The prefix of all parameter relevant types
56
+ * @param operationName is composed with operationGroup and operationID e.g string_PutEmpty
57
+ * @returns
58
+ */
59
+ export function getParameterBaseName(operationGroup: string, operationName: string) {
60
+ return normalizeName(`${operationGroup}_${operationName}`, NameType.Interface);
61
+ }
62
+
63
+ /**
64
+ * Get the top-layer parameter name
65
+ * @param operationGroup operation group name
66
+ * @param operationName is composed with operationGroup and operationID e.g string_PutEmpty
67
+ * @returns top-layer parameter name e.g StringPutEmptParameters
68
+ */
69
+ export function getParameterTypeName(baseName: string): string;
70
+ export function getParameterTypeName(operationGroup: string, operationName: string): string;
71
+ export function getParameterTypeName(baseNameOrOperationGroup: string, operationName?: string) {
72
+ if (operationName) {
73
+ baseNameOrOperationGroup = getParameterBaseName(baseNameOrOperationGroup, operationName!);
74
+ }
75
+
76
+ return normalizeName(`${baseNameOrOperationGroup}_Parameters`, NameType.Interface);
77
+ }
78
+
79
+ export interface ModuleName {
80
+ esModulesName: string;
81
+ cjsName: string;
82
+ }
83
+ /**
84
+ * This is a helper function that gets the right import module depending on the type of
85
+ * library being generated
86
+ */
87
+ export function getImportModuleName(name: ModuleName, codeModel: RLCModel) {
88
+ if (codeModel.options?.moduleKind === "cjs") {
89
+ return name.cjsName;
90
+ }
91
+ return name.esModulesName;
92
+ }
93
+
94
+ export function getClientName(model: RLCModel) {
95
+ const clientName = model.libraryName;
96
+ const clientInterfaceName = model.options?.isModularLibrary
97
+ ? model.libraryName
98
+ : clientName.endsWith("Client")
99
+ ? `${clientName}`
100
+ : `${clientName}Client`;
101
+
102
+ return clientInterfaceName;
103
+ }
104
+
105
+ export function getMultipartPartTypeName(schemaName: string, partName: string) {
106
+ const name = normalizeName(partName, NameType.Interface);
107
+ const bodyParamName = normalizeName(schemaName, NameType.Interface);
108
+
109
+ return normalizeName(`${bodyParamName}_${name}_PartDescriptor`, NameType.Interface);
110
+ }
@@ -0,0 +1,138 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ import { MethodSignatureStructure, OptionalKind, ParameterDeclarationStructure } from "ts-morph";
5
+ import {
6
+ Methods,
7
+ ObjectSchema,
8
+ ParameterMetadata,
9
+ PathParameter,
10
+ RLCModel,
11
+ Schema,
12
+ SchemaContext,
13
+ } from "../interfaces.js";
14
+ import { NameType, normalizeName, pascalCase } from "./name-utils.js";
15
+ import { isObjectSchema } from "./schema-helpers.js";
16
+
17
+ export function buildMethodDefinitions(
18
+ methods: Methods,
19
+ pathParams: PathParameter[] = [],
20
+ ): OptionalKind<MethodSignatureStructure>[] {
21
+ const methodDefinitions: OptionalKind<MethodSignatureStructure>[] = [];
22
+ for (const key of Object.keys(methods)) {
23
+ const verbMethods = methods[key];
24
+ if (!verbMethods) {
25
+ continue;
26
+ }
27
+ for (const method of verbMethods) {
28
+ const description = method.description;
29
+ const areAllOptional = method.hasOptionalOptions;
30
+
31
+ methodDefinitions.push({
32
+ name: key,
33
+ ...(description && { docs: [{ description }] }),
34
+ parameters: [
35
+ ...getPathParamDefinitions(pathParams),
36
+ {
37
+ name: "options",
38
+ hasQuestionToken: areAllOptional,
39
+ type: pascalCase(method.optionsName),
40
+ },
41
+ ],
42
+ returnType: `StreamableMethod<${method.returnType}>`,
43
+ });
44
+ }
45
+ }
46
+
47
+ return methodDefinitions;
48
+ }
49
+
50
+ export function getPathParamDefinitions(
51
+ pathParams: PathParameter[],
52
+ ): OptionalKind<ParameterDeclarationStructure>[] {
53
+ return pathParams.map(({ name, type, description }) => {
54
+ return {
55
+ name: normalizeName(name, NameType.Parameter),
56
+ type,
57
+ description,
58
+ };
59
+ });
60
+ }
61
+
62
+ export function hasPagingOperations(model: RLCModel) {
63
+ return Boolean(model.helperDetails?.hasPaging);
64
+ }
65
+
66
+ export function hasPollingOperations(model: RLCModel) {
67
+ return Boolean(model.helperDetails?.hasLongRunning);
68
+ }
69
+
70
+ export function hasMultiCollection(model: RLCModel) {
71
+ return Boolean(model.helperDetails?.hasMultiCollection);
72
+ }
73
+
74
+ export function hasPipeCollection(model: RLCModel) {
75
+ return Boolean(model.helperDetails?.hasPipeCollection);
76
+ }
77
+
78
+ export function hasSsvCollection(model: RLCModel) {
79
+ return Boolean(model.helperDetails?.hasSsvCollection);
80
+ }
81
+
82
+ export function hasTsvCollection(model: RLCModel) {
83
+ return Boolean(model.helperDetails?.hasTsvCollection);
84
+ }
85
+
86
+ export function hasCsvCollection(model: RLCModel) {
87
+ return Boolean(model.helperDetails?.hasCsvCollection);
88
+ }
89
+
90
+ export function hasUnexpectedHelper(model: RLCModel) {
91
+ const pathDictionary = model.paths;
92
+ for (const details of Object.values(pathDictionary)) {
93
+ for (const methodDetails of Object.values(details.methods)) {
94
+ const firstMethod = methodDetails[0];
95
+ if (!firstMethod) {
96
+ continue;
97
+ }
98
+ const successTypes = firstMethod.responseTypes.success;
99
+ const errorTypes = firstMethod.responseTypes.error;
100
+
101
+ if (successTypes.length > 0 && errorTypes.length > 0 && !!errorTypes[0]) {
102
+ return true;
103
+ }
104
+ }
105
+ }
106
+ return false;
107
+ }
108
+
109
+ export function hasInputModels(model: RLCModel) {
110
+ return hasSchemaContextObject(model, [SchemaContext.Input]);
111
+ }
112
+ export function hasOutputModels(model: RLCModel) {
113
+ return hasSchemaContextObject(model, [SchemaContext.Output, SchemaContext.Exception]);
114
+ }
115
+
116
+ function hasSchemaContextObject(model: RLCModel, schemaUsage: SchemaContext[]) {
117
+ const objectSchemas: ObjectSchema[] = (model.schemas ?? []).filter(
118
+ (o) => isObjectSchema(o) && (o as ObjectSchema).usage?.some((u) => schemaUsage.includes(u)),
119
+ );
120
+
121
+ return objectSchemas.length > 0;
122
+ }
123
+
124
+ export function getGeneratedWrapperTypes(params: ParameterMetadata[] | PathParameter[]): Schema[] {
125
+ const wrapperTypes = params
126
+ .map((qp) => (isParameterMetadata(qp) ? qp.param.wrapperType : qp.wrapperType))
127
+ .filter((v) => v !== undefined);
128
+ const wrapperFromObjects = wrapperTypes.filter((wrap) => wrap.type === "object");
129
+ const wrapperFromUnions = wrapperTypes
130
+ .filter((wrap) => wrap.type === "union")
131
+ .flatMap((wrapperType) => wrapperType?.enum ?? [])
132
+ .filter((v) => v.type === "object");
133
+ return [...wrapperFromUnions, ...wrapperFromObjects];
134
+ }
135
+
136
+ function isParameterMetadata(param: ParameterMetadata | PathParameter): param is ParameterMetadata {
137
+ return (param as any).param !== undefined;
138
+ }