@azure/template-dpg 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/LICENSE +4 -3
  2. package/README.md +4 -6
  3. package/{types/src/src → dist/browser}/WidgetServiceClient.d.ts +4 -3
  4. package/dist/browser/WidgetServiceClient.d.ts.map +1 -0
  5. package/{dist-esm/src/src → dist/browser}/WidgetServiceClient.js +4 -9
  6. package/dist/browser/WidgetServiceClient.js.map +1 -0
  7. package/{types/src/src → dist/browser}/api/WidgetServiceContext.d.ts +4 -4
  8. package/dist/browser/api/WidgetServiceContext.d.ts.map +1 -0
  9. package/{dist-esm/src → dist/browser}/api/WidgetServiceContext.js +2 -2
  10. package/dist/browser/api/WidgetServiceContext.js.map +1 -0
  11. package/dist/browser/api/foo.d.ts.map +1 -0
  12. package/{dist-esm/src/src → dist/browser}/api/foo.js +1 -1
  13. package/dist/browser/api/foo.js.map +1 -0
  14. package/dist/browser/api/index.d.ts +11 -0
  15. package/dist/browser/api/index.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/api/index.js +1 -1
  17. package/dist/browser/api/index.js.map +1 -0
  18. package/dist/browser/api/models.d.ts.map +1 -0
  19. package/dist/browser/api/models.js +4 -0
  20. package/dist/browser/api/models.js.map +1 -0
  21. package/{types/src/src → dist/browser}/api/operations.d.ts +5 -4
  22. package/dist/browser/api/operations.d.ts.map +1 -0
  23. package/{dist-esm/src → dist/browser}/api/operations.js +22 -29
  24. package/dist/browser/api/operations.js.map +1 -0
  25. package/{types/src/src → dist/browser}/common/interfaces.d.ts +1 -1
  26. package/dist/browser/common/interfaces.d.ts.map +1 -0
  27. package/dist/browser/common/interfaces.js +4 -0
  28. package/dist/browser/common/interfaces.js.map +1 -0
  29. package/dist/browser/index.d.ts +12 -0
  30. package/dist/browser/index.d.ts.map +1 -0
  31. package/{dist-esm/src/src → dist/browser}/index.js +1 -1
  32. package/dist/browser/index.js.map +1 -0
  33. package/dist/browser/logger.d.ts.map +1 -0
  34. package/{dist-esm/src/src → dist/browser}/logger.js +1 -1
  35. package/dist/browser/logger.js.map +1 -0
  36. package/dist/browser/package.json +3 -0
  37. package/{types/src/src → dist/browser}/rest/clientDefinitions.d.ts +3 -3
  38. package/{types/src → dist/browser}/rest/clientDefinitions.d.ts.map +1 -1
  39. package/dist/browser/rest/clientDefinitions.js +4 -0
  40. package/dist/browser/rest/clientDefinitions.js.map +1 -0
  41. package/dist/browser/rest/index.d.ts +17 -0
  42. package/dist/browser/rest/index.d.ts.map +1 -0
  43. package/{types/src/src/rest/index.d.ts → dist/browser/rest/index.js} +3 -6
  44. package/dist/browser/rest/index.js.map +1 -0
  45. package/{types/src/src → dist/browser}/rest/isUnexpected.d.ts +1 -1
  46. package/dist/browser/rest/isUnexpected.d.ts.map +1 -0
  47. package/{dist-esm/src → dist/browser}/rest/isUnexpected.js +5 -6
  48. package/dist/browser/rest/isUnexpected.js.map +1 -0
  49. package/dist/browser/rest/models.d.ts.map +1 -0
  50. package/dist/browser/rest/models.js +4 -0
  51. package/dist/browser/rest/models.js.map +1 -0
  52. package/dist/browser/rest/outputModels.d.ts.map +1 -0
  53. package/dist/browser/rest/outputModels.js +4 -0
  54. package/dist/browser/rest/outputModels.js.map +1 -0
  55. package/{types/src/src → dist/browser}/rest/parameters.d.ts +2 -2
  56. package/dist/browser/rest/parameters.d.ts.map +1 -0
  57. package/dist/browser/rest/parameters.js +4 -0
  58. package/dist/browser/rest/parameters.js.map +1 -0
  59. package/{types/src/src → dist/browser}/rest/responses.d.ts +2 -2
  60. package/dist/browser/rest/responses.d.ts.map +1 -0
  61. package/dist/browser/rest/responses.js +4 -0
  62. package/dist/browser/rest/responses.js.map +1 -0
  63. package/{types/src/src → dist/browser}/rest/widgetServiceClient.d.ts +3 -3
  64. package/dist/browser/rest/widgetServiceClient.d.ts.map +1 -0
  65. package/{dist-esm/src/src → dist/browser}/rest/widgetServiceClient.js +13 -17
  66. package/dist/browser/rest/widgetServiceClient.js.map +1 -0
  67. package/{types/src → dist/commonjs}/WidgetServiceClient.d.ts +4 -10
  68. package/dist/commonjs/WidgetServiceClient.d.ts.map +1 -0
  69. package/dist/commonjs/WidgetServiceClient.js +76 -0
  70. package/dist/commonjs/WidgetServiceClient.js.map +7 -0
  71. package/{types/src → dist/commonjs}/api/WidgetServiceContext.d.ts +4 -11
  72. package/dist/commonjs/api/WidgetServiceContext.d.ts.map +1 -0
  73. package/dist/commonjs/api/WidgetServiceContext.js +47 -0
  74. package/dist/commonjs/api/WidgetServiceContext.js.map +7 -0
  75. package/{types/src → dist/commonjs}/api/foo.d.ts +0 -7
  76. package/dist/commonjs/api/foo.d.ts.map +1 -0
  77. package/dist/commonjs/api/foo.js +30 -0
  78. package/dist/commonjs/api/foo.js.map +7 -0
  79. package/dist/commonjs/api/index.d.ts +11 -0
  80. package/dist/commonjs/api/index.d.ts.map +1 -0
  81. package/dist/commonjs/api/index.js +41 -0
  82. package/dist/commonjs/api/index.js.map +7 -0
  83. package/{types/src → dist/commonjs}/api/models.d.ts +0 -7
  84. package/dist/commonjs/api/models.d.ts.map +1 -0
  85. package/dist/commonjs/api/models.js +16 -0
  86. package/dist/commonjs/api/models.js.map +7 -0
  87. package/{types/src → dist/commonjs}/api/operations.d.ts +5 -11
  88. package/dist/commonjs/api/operations.d.ts.map +1 -0
  89. package/dist/commonjs/api/operations.js +199 -0
  90. package/dist/commonjs/api/operations.js.map +7 -0
  91. package/{types/src → dist/commonjs}/common/interfaces.d.ts +1 -8
  92. package/dist/commonjs/common/interfaces.d.ts.map +1 -0
  93. package/dist/commonjs/common/interfaces.js +16 -0
  94. package/dist/commonjs/common/interfaces.js.map +7 -0
  95. package/dist/commonjs/index.d.ts +12 -0
  96. package/dist/commonjs/index.d.ts.map +1 -0
  97. package/dist/commonjs/index.js +28 -0
  98. package/dist/commonjs/index.js.map +7 -0
  99. package/dist/commonjs/logger.d.ts.map +1 -0
  100. package/dist/commonjs/logger.js +29 -0
  101. package/dist/commonjs/logger.js.map +7 -0
  102. package/dist/commonjs/package.json +3 -0
  103. package/{types/src → dist/commonjs}/rest/clientDefinitions.d.ts +3 -10
  104. package/dist/commonjs/rest/clientDefinitions.d.ts.map +1 -0
  105. package/dist/commonjs/rest/clientDefinitions.js +16 -0
  106. package/dist/commonjs/rest/clientDefinitions.js.map +7 -0
  107. package/dist/commonjs/rest/index.d.ts +17 -0
  108. package/dist/commonjs/rest/index.d.ts.map +1 -0
  109. package/dist/commonjs/rest/index.js +43 -0
  110. package/dist/commonjs/rest/index.js.map +7 -0
  111. package/{types/src → dist/commonjs}/rest/isUnexpected.d.ts +1 -8
  112. package/dist/commonjs/rest/isUnexpected.d.ts.map +1 -0
  113. package/dist/commonjs/rest/isUnexpected.js +83 -0
  114. package/dist/commonjs/rest/isUnexpected.js.map +7 -0
  115. package/{types/src → dist/commonjs}/rest/models.d.ts +0 -7
  116. package/dist/commonjs/rest/models.d.ts.map +1 -0
  117. package/dist/commonjs/rest/models.js +16 -0
  118. package/dist/commonjs/rest/models.js.map +7 -0
  119. package/{types/src → dist/commonjs}/rest/outputModels.d.ts +0 -7
  120. package/dist/commonjs/rest/outputModels.d.ts.map +1 -0
  121. package/dist/commonjs/rest/outputModels.js +16 -0
  122. package/dist/commonjs/rest/outputModels.js.map +7 -0
  123. package/{types/src → dist/commonjs}/rest/parameters.d.ts +2 -9
  124. package/dist/commonjs/rest/parameters.d.ts.map +1 -0
  125. package/dist/commonjs/rest/parameters.js +16 -0
  126. package/dist/commonjs/rest/parameters.js.map +7 -0
  127. package/{types/src → dist/commonjs}/rest/responses.d.ts +2 -9
  128. package/dist/commonjs/rest/responses.d.ts.map +1 -0
  129. package/dist/commonjs/rest/responses.js +16 -0
  130. package/dist/commonjs/rest/responses.js.map +7 -0
  131. package/{types/src → dist/commonjs}/rest/widgetServiceClient.d.ts +3 -10
  132. package/dist/commonjs/rest/widgetServiceClient.d.ts.map +1 -0
  133. package/dist/commonjs/rest/widgetServiceClient.js +54 -0
  134. package/dist/commonjs/rest/widgetServiceClient.js.map +7 -0
  135. package/{types/latest → dist/commonjs}/tsdoc-metadata.json +11 -11
  136. package/dist/esm/WidgetServiceClient.d.ts +42 -0
  137. package/dist/esm/WidgetServiceClient.d.ts.map +1 -0
  138. package/{dist-esm/src → dist/esm}/WidgetServiceClient.js +4 -16
  139. package/dist/esm/WidgetServiceClient.js.map +1 -0
  140. package/dist/esm/api/WidgetServiceContext.d.ts +19 -0
  141. package/dist/esm/api/WidgetServiceContext.d.ts.map +1 -0
  142. package/{dist-esm/src/src → dist/esm}/api/WidgetServiceContext.js +2 -2
  143. package/dist/esm/api/WidgetServiceContext.js.map +1 -0
  144. package/dist/esm/api/foo.d.ts +9 -0
  145. package/dist/esm/api/foo.d.ts.map +1 -0
  146. package/{dist-esm/src → dist/esm}/api/foo.js +1 -8
  147. package/dist/esm/api/foo.js.map +1 -0
  148. package/dist/esm/api/index.d.ts +11 -0
  149. package/dist/esm/api/index.d.ts.map +1 -0
  150. package/{dist-esm/src/src → dist/esm}/api/index.js +1 -1
  151. package/dist/esm/api/index.js.map +1 -0
  152. package/dist/esm/api/models.d.ts +25 -0
  153. package/dist/esm/api/models.d.ts.map +1 -0
  154. package/dist/esm/api/models.js +4 -0
  155. package/dist/esm/api/models.js.map +1 -0
  156. package/dist/esm/api/operations.d.ts +68 -0
  157. package/dist/esm/api/operations.d.ts.map +1 -0
  158. package/{dist-esm/src/src → dist/esm}/api/operations.js +22 -29
  159. package/dist/esm/api/operations.js.map +1 -0
  160. package/dist/esm/common/interfaces.d.ts +21 -0
  161. package/dist/esm/common/interfaces.d.ts.map +1 -0
  162. package/dist/esm/common/interfaces.js +4 -0
  163. package/dist/esm/common/interfaces.js.map +1 -0
  164. package/dist/esm/index.d.ts +12 -0
  165. package/dist/esm/index.d.ts.map +1 -0
  166. package/{dist-esm/src → dist/esm}/index.js +1 -1
  167. package/dist/esm/index.js.map +1 -0
  168. package/dist/esm/logger.d.ts +2 -0
  169. package/dist/esm/logger.d.ts.map +1 -0
  170. package/{dist-esm/src → dist/esm}/logger.js +1 -8
  171. package/dist/esm/logger.js.map +1 -0
  172. package/dist/esm/package.json +3 -0
  173. package/dist/esm/rest/clientDefinitions.d.ts +52 -0
  174. package/dist/esm/rest/clientDefinitions.d.ts.map +1 -0
  175. package/dist/esm/rest/clientDefinitions.js +4 -0
  176. package/dist/esm/rest/clientDefinitions.js.map +1 -0
  177. package/dist/esm/rest/index.d.ts +17 -0
  178. package/dist/esm/rest/index.d.ts.map +1 -0
  179. package/{dist-esm/src/src → dist/esm}/rest/index.js +1 -6
  180. package/dist/esm/rest/index.js.map +1 -0
  181. package/dist/esm/rest/isUnexpected.d.ts +15 -0
  182. package/dist/esm/rest/isUnexpected.d.ts.map +1 -0
  183. package/{dist-esm/src/src → dist/esm}/rest/isUnexpected.js +5 -6
  184. package/dist/esm/rest/isUnexpected.js.map +1 -0
  185. package/dist/esm/rest/models.d.ts +20 -0
  186. package/dist/esm/rest/models.d.ts.map +1 -0
  187. package/dist/esm/rest/models.js +4 -0
  188. package/dist/esm/rest/models.js.map +1 -0
  189. package/dist/esm/rest/outputModels.d.ts +25 -0
  190. package/dist/esm/rest/outputModels.d.ts.map +1 -0
  191. package/dist/esm/rest/outputModels.js +4 -0
  192. package/dist/esm/rest/outputModels.js.map +1 -0
  193. package/dist/esm/rest/parameters.d.ts +22 -0
  194. package/dist/esm/rest/parameters.d.ts.map +1 -0
  195. package/dist/esm/rest/parameters.js +4 -0
  196. package/dist/esm/rest/parameters.js.map +1 -0
  197. package/dist/esm/rest/responses.d.ts +63 -0
  198. package/dist/esm/rest/responses.d.ts.map +1 -0
  199. package/dist/esm/rest/responses.js +4 -0
  200. package/dist/esm/rest/responses.js.map +1 -0
  201. package/dist/esm/rest/widgetServiceClient.d.ts +16 -0
  202. package/dist/esm/rest/widgetServiceClient.d.ts.map +1 -0
  203. package/dist/esm/rest/widgetServiceClient.js +42 -0
  204. package/dist/esm/rest/widgetServiceClient.js.map +1 -0
  205. package/dist/react-native/WidgetServiceClient.d.ts +42 -0
  206. package/dist/react-native/WidgetServiceClient.d.ts.map +1 -0
  207. package/dist/react-native/WidgetServiceClient.js +53 -0
  208. package/dist/react-native/WidgetServiceClient.js.map +1 -0
  209. package/dist/react-native/api/WidgetServiceContext.d.ts +19 -0
  210. package/dist/react-native/api/WidgetServiceContext.d.ts.map +1 -0
  211. package/dist/react-native/api/WidgetServiceContext.js +14 -0
  212. package/dist/react-native/api/WidgetServiceContext.js.map +1 -0
  213. package/dist/react-native/api/foo.d.ts +9 -0
  214. package/dist/react-native/api/foo.d.ts.map +1 -0
  215. package/dist/react-native/api/foo.js +13 -0
  216. package/dist/react-native/api/foo.js.map +1 -0
  217. package/dist/react-native/api/index.d.ts +11 -0
  218. package/dist/react-native/api/index.d.ts.map +1 -0
  219. package/dist/react-native/api/index.js +5 -0
  220. package/dist/react-native/api/index.js.map +1 -0
  221. package/dist/react-native/api/models.d.ts +25 -0
  222. package/dist/react-native/api/models.d.ts.map +1 -0
  223. package/dist/react-native/api/models.js +4 -0
  224. package/dist/react-native/api/models.js.map +1 -0
  225. package/dist/react-native/api/operations.d.ts +68 -0
  226. package/dist/react-native/api/operations.d.ts.map +1 -0
  227. package/dist/react-native/api/operations.js +164 -0
  228. package/dist/react-native/api/operations.js.map +1 -0
  229. package/dist/react-native/common/interfaces.d.ts +21 -0
  230. package/dist/react-native/common/interfaces.d.ts.map +1 -0
  231. package/dist/react-native/common/interfaces.js +4 -0
  232. package/dist/react-native/common/interfaces.js.map +1 -0
  233. package/dist/react-native/index.d.ts +12 -0
  234. package/dist/react-native/index.d.ts.map +1 -0
  235. package/dist/react-native/index.js +4 -0
  236. package/dist/react-native/index.js.map +1 -0
  237. package/dist/react-native/logger.d.ts +2 -0
  238. package/dist/react-native/logger.d.ts.map +1 -0
  239. package/dist/react-native/logger.js +12 -0
  240. package/dist/react-native/logger.js.map +1 -0
  241. package/dist/react-native/package.json +3 -0
  242. package/dist/react-native/rest/clientDefinitions.d.ts +52 -0
  243. package/dist/react-native/rest/clientDefinitions.d.ts.map +1 -0
  244. package/dist/react-native/rest/clientDefinitions.js +4 -0
  245. package/dist/react-native/rest/clientDefinitions.js.map +1 -0
  246. package/dist/react-native/rest/index.d.ts +17 -0
  247. package/dist/react-native/rest/index.d.ts.map +1 -0
  248. package/dist/react-native/rest/index.js +14 -0
  249. package/dist/react-native/rest/index.js.map +1 -0
  250. package/dist/react-native/rest/isUnexpected.d.ts +15 -0
  251. package/dist/react-native/rest/isUnexpected.d.ts.map +1 -0
  252. package/dist/react-native/rest/isUnexpected.js +74 -0
  253. package/dist/react-native/rest/isUnexpected.js.map +1 -0
  254. package/dist/react-native/rest/models.d.ts +20 -0
  255. package/dist/react-native/rest/models.d.ts.map +1 -0
  256. package/dist/react-native/rest/models.js +4 -0
  257. package/dist/react-native/rest/models.js.map +1 -0
  258. package/dist/react-native/rest/outputModels.d.ts +25 -0
  259. package/dist/react-native/rest/outputModels.d.ts.map +1 -0
  260. package/dist/react-native/rest/outputModels.js +4 -0
  261. package/dist/react-native/rest/outputModels.js.map +1 -0
  262. package/dist/react-native/rest/parameters.d.ts +22 -0
  263. package/dist/react-native/rest/parameters.d.ts.map +1 -0
  264. package/dist/react-native/rest/parameters.js +4 -0
  265. package/dist/react-native/rest/parameters.js.map +1 -0
  266. package/dist/react-native/rest/responses.d.ts +63 -0
  267. package/dist/react-native/rest/responses.d.ts.map +1 -0
  268. package/dist/react-native/rest/responses.js +4 -0
  269. package/dist/react-native/rest/responses.js.map +1 -0
  270. package/dist/react-native/rest/widgetServiceClient.d.ts +16 -0
  271. package/dist/react-native/rest/widgetServiceClient.d.ts.map +1 -0
  272. package/dist/react-native/rest/widgetServiceClient.js +42 -0
  273. package/dist/react-native/rest/widgetServiceClient.js.map +1 -0
  274. package/package.json +109 -85
  275. package/dist/index.cjs +0 -370
  276. package/dist/index.cjs.map +0 -1
  277. package/dist-esm/src/WidgetServiceClient.js.map +0 -1
  278. package/dist-esm/src/api/WidgetServiceContext.js.map +0 -1
  279. package/dist-esm/src/api/foo.js.map +0 -1
  280. package/dist-esm/src/api/index.js.map +0 -1
  281. package/dist-esm/src/api/models.js +0 -4
  282. package/dist-esm/src/api/models.js.map +0 -1
  283. package/dist-esm/src/api/operations.js.map +0 -1
  284. package/dist-esm/src/common/interfaces.js +0 -4
  285. package/dist-esm/src/common/interfaces.js.map +0 -1
  286. package/dist-esm/src/index.js.map +0 -1
  287. package/dist-esm/src/logger.js.map +0 -1
  288. package/dist-esm/src/rest/clientDefinitions.js +0 -4
  289. package/dist-esm/src/rest/clientDefinitions.js.map +0 -1
  290. package/dist-esm/src/rest/index.js +0 -26
  291. package/dist-esm/src/rest/index.js.map +0 -1
  292. package/dist-esm/src/rest/isUnexpected.js.map +0 -1
  293. package/dist-esm/src/rest/models.js +0 -4
  294. package/dist-esm/src/rest/models.js.map +0 -1
  295. package/dist-esm/src/rest/outputModels.js +0 -4
  296. package/dist-esm/src/rest/outputModels.js.map +0 -1
  297. package/dist-esm/src/rest/parameters.js +0 -4
  298. package/dist-esm/src/rest/parameters.js.map +0 -1
  299. package/dist-esm/src/rest/responses.js +0 -4
  300. package/dist-esm/src/rest/responses.js.map +0 -1
  301. package/dist-esm/src/rest/widgetServiceClient.js +0 -53
  302. package/dist-esm/src/rest/widgetServiceClient.js.map +0 -1
  303. package/dist-esm/src/src/WidgetServiceClient.js.map +0 -1
  304. package/dist-esm/src/src/api/WidgetServiceContext.js.map +0 -1
  305. package/dist-esm/src/src/api/foo.js.map +0 -1
  306. package/dist-esm/src/src/api/index.js.map +0 -1
  307. package/dist-esm/src/src/api/models.js +0 -4
  308. package/dist-esm/src/src/api/models.js.map +0 -1
  309. package/dist-esm/src/src/api/operations.js.map +0 -1
  310. package/dist-esm/src/src/common/interfaces.js +0 -4
  311. package/dist-esm/src/src/common/interfaces.js.map +0 -1
  312. package/dist-esm/src/src/index.js.map +0 -1
  313. package/dist-esm/src/src/logger.js.map +0 -1
  314. package/dist-esm/src/src/rest/clientDefinitions.js +0 -4
  315. package/dist-esm/src/src/rest/clientDefinitions.js.map +0 -1
  316. package/dist-esm/src/src/rest/index.js.map +0 -1
  317. package/dist-esm/src/src/rest/isUnexpected.js.map +0 -1
  318. package/dist-esm/src/src/rest/models.js +0 -4
  319. package/dist-esm/src/src/rest/models.js.map +0 -1
  320. package/dist-esm/src/src/rest/outputModels.js +0 -4
  321. package/dist-esm/src/src/rest/outputModels.js.map +0 -1
  322. package/dist-esm/src/src/rest/parameters.js +0 -4
  323. package/dist-esm/src/src/rest/parameters.js.map +0 -1
  324. package/dist-esm/src/src/rest/responses.js +0 -4
  325. package/dist-esm/src/src/rest/responses.js.map +0 -1
  326. package/dist-esm/src/src/rest/widgetServiceClient.js.map +0 -1
  327. package/types/latest/template-dpg.d.ts +0 -108
  328. package/types/samples-dev/createWidget.d.ts +0 -2
  329. package/types/samples-dev/createWidget.d.ts.map +0 -1
  330. package/types/src/WidgetServiceClient.d.ts.map +0 -1
  331. package/types/src/api/WidgetServiceContext.d.ts.map +0 -1
  332. package/types/src/api/foo.d.ts.map +0 -1
  333. package/types/src/api/index.d.ts +0 -18
  334. package/types/src/api/index.d.ts.map +0 -1
  335. package/types/src/api/models.d.ts.map +0 -1
  336. package/types/src/api/operations.d.ts.map +0 -1
  337. package/types/src/common/interfaces.d.ts.map +0 -1
  338. package/types/src/index.d.ts +0 -19
  339. package/types/src/index.d.ts.map +0 -1
  340. package/types/src/logger.d.ts.map +0 -1
  341. package/types/src/rest/index.d.ts +0 -24
  342. package/types/src/rest/index.d.ts.map +0 -1
  343. package/types/src/rest/isUnexpected.d.ts.map +0 -1
  344. package/types/src/rest/models.d.ts.map +0 -1
  345. package/types/src/rest/outputModels.d.ts.map +0 -1
  346. package/types/src/rest/parameters.d.ts.map +0 -1
  347. package/types/src/rest/responses.d.ts.map +0 -1
  348. package/types/src/rest/widgetServiceClient.d.ts.map +0 -1
  349. package/types/src/src/WidgetServiceClient.d.ts.map +0 -1
  350. package/types/src/src/api/WidgetServiceContext.d.ts.map +0 -1
  351. package/types/src/src/api/foo.d.ts.map +0 -1
  352. package/types/src/src/api/index.d.ts +0 -11
  353. package/types/src/src/api/index.d.ts.map +0 -1
  354. package/types/src/src/api/models.d.ts.map +0 -1
  355. package/types/src/src/api/operations.d.ts.map +0 -1
  356. package/types/src/src/common/interfaces.d.ts.map +0 -1
  357. package/types/src/src/index.d.ts +0 -12
  358. package/types/src/src/index.d.ts.map +0 -1
  359. package/types/src/src/logger.d.ts.map +0 -1
  360. package/types/src/src/rest/clientDefinitions.d.ts.map +0 -1
  361. package/types/src/src/rest/index.d.ts.map +0 -1
  362. package/types/src/src/rest/isUnexpected.d.ts.map +0 -1
  363. package/types/src/src/rest/models.d.ts.map +0 -1
  364. package/types/src/src/rest/outputModels.d.ts.map +0 -1
  365. package/types/src/src/rest/parameters.d.ts.map +0 -1
  366. package/types/src/src/rest/responses.d.ts.map +0 -1
  367. package/types/src/src/rest/widgetServiceClient.d.ts.map +0 -1
  368. package/types/test/public/widgetService.spec.d.ts +0 -2
  369. package/types/test/public/widgetService.spec.d.ts.map +0 -1
  370. /package/{types/src/src → dist/browser}/api/foo.d.ts +0 -0
  371. /package/{types/src/src → dist/browser}/api/models.d.ts +0 -0
  372. /package/{types/src → dist/browser}/logger.d.ts +0 -0
  373. /package/{types/src/src → dist/browser}/rest/models.d.ts +0 -0
  374. /package/{types/src/src → dist/browser}/rest/outputModels.d.ts +0 -0
  375. /package/{types/src/src → dist/commonjs}/logger.d.ts +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2023 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,9 +12,10 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -43,7 +43,7 @@ Due to Azure template service CORS limitation this library cannot be used to mak
43
43
 
44
44
  -->
45
45
 
46
- You need to set up [Cross-Origin Resource Sharing (CORS)](https://docs.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) rules for your storage account if you need to develop for browsers. Go to Azure portal and Azure Storage Explorer, find your storage account, create new CORS rules for blob/queue/file/table service(s).
46
+ You need to set up [Cross-Origin Resource Sharing (CORS)](https://learn.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) rules for your storage account if you need to develop for browsers. Go to Azure portal and Azure Storage Explorer, find your storage account, create new CORS rules for blob/queue/file/table service(s).
47
47
 
48
48
  For example, you can create the following CORS settings for debugging. But please customize the settings carefully according to your requirements in a production environment.
49
49
 
@@ -81,8 +81,8 @@ Create several code examples for how someone would use your library to accomplis
81
81
 
82
82
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
83
83
 
84
- ```javascript
85
- const { setLogLevel } = require("@azure/logger");
84
+ ```ts snippet:SetLogLevel
85
+ import { setLogLevel } from "@azure/logger";
86
86
 
87
87
  setLogLevel("info");
88
88
  ```
@@ -101,7 +101,5 @@ If you'd like to contribute to this library, please read the [contributing guide
101
101
 
102
102
  - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
103
103
 
104
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Ftemplate%2Ftemplate%2FREADME.png)
105
-
106
- [azure_cli]: https://docs.microsoft.com/cli/azure
104
+ [azure_cli]: https://learn.microsoft.com/cli/azure
107
105
  [azure_sub]: https://azure.microsoft.com/free/
@@ -5,9 +5,10 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { TokenCredential } from "@azure/core-auth";
9
- import { AnalyzeResult, AnalyzeWidgetOptions, ColorType, CreateWidgetOptions, DeleteWidgetOptions, GetWidgetOptions, ListWidgetsOptions, UpdateWidgetOptions, Widget, WidgetServiceClientOptions } from "./api/index.js";
10
- export { WidgetServiceClientOptions } from "./api/WidgetServiceContext.js";
8
+ import type { TokenCredential } from "@azure/core-auth";
9
+ import type { WidgetServiceClientOptions } from "./api/WidgetServiceContext.js";
10
+ import type { AnalyzeResult, AnalyzeWidgetOptions, ColorType, CreateWidgetOptions, DeleteWidgetOptions, GetWidgetOptions, ListWidgetsOptions, UpdateWidgetOptions, Widget } from "./api/index.js";
11
+ export type { WidgetServiceClientOptions } from "./api/WidgetServiceContext.js";
11
12
  export declare class WidgetServiceClient {
12
13
  private _client;
13
14
  /** */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceClient.d.ts","sourceRoot":"","sources":["../../src/WidgetServiceClient.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,0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NOT EDIT!
5
- *
6
- * Any changes you make here may be lost.
7
- *
8
- * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
9
- */
2
+ // Licensed under the MIT License.
10
3
  import { isTokenCredential } from "@azure/core-auth";
11
- import { analyzeWidget, createWidget, createWidgetService, deleteWidget, getWidget, listWidgets, updateWidget, } from "./api/index.js";
4
+ import { createWidgetService } from "./api/WidgetServiceContext.js";
5
+ import { analyzeWidget, createWidget, deleteWidget, getWidget, listWidgets, updateWidget, } from "./api/index.js";
12
6
  export class WidgetServiceClient {
7
+ _client;
13
8
  constructor(endpoint, credentialOrOptions, options = {}) {
14
9
  if (isTokenCredential(credentialOrOptions)) {
15
10
  this._client = createWidgetService(endpoint, credentialOrOptions, options);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceClient.js","sourceRoot":"","sources":["../../src/WidgetServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAYpE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,WAAW,EACX,YAAY,GACb,MAAM,gBAAgB,CAAC;AAKxB,MAAM,OAAO,mBAAmB;IACtB,OAAO,CAAuB;IAKtC,YACE,QAAgB,EAChB,mBAAkE,EAClE,UAAsC,EAAE;QAExC,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,GAAG,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,UAA8B,EAAE,cAAc,EAAE,EAAE,EAAE;QAC9D,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,0BAA0B;IAC1B,SAAS,CAAC,EAAU,EAAE,UAA4B,EAAE,cAAc,EAAE,EAAE,EAAE;QACtE,OAAO,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,YAAY,CACV,MAAc,EACd,KAAgB,EAChB,UAA+B,EAAE,cAAc,EAAE,EAAE,EAAE;QAErD,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,EAAU,EAAE,UAA+B,EAAE,cAAc,EAAE,EAAE,EAAE;QAC5E,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,6BAA6B;IAC7B,YAAY,CAAC,EAAU,EAAE,UAA+B,EAAE,cAAc,EAAE,EAAE,EAAE;QAC5E,OAAO,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED,4HAA4H;IAC5H,aAAa,CACX,EAAU,EACV,UAAgC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEtD,OAAO,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { WidgetServiceClientOptions } from \"./api/WidgetServiceContext.js\";\nimport { createWidgetService } from \"./api/WidgetServiceContext.js\";\nimport type {\n AnalyzeResult,\n AnalyzeWidgetOptions,\n ColorType,\n CreateWidgetOptions,\n DeleteWidgetOptions,\n GetWidgetOptions,\n ListWidgetsOptions,\n UpdateWidgetOptions,\n Widget,\n} from \"./api/index.js\";\nimport {\n analyzeWidget,\n createWidget,\n deleteWidget,\n getWidget,\n listWidgets,\n updateWidget,\n} from \"./api/index.js\";\nimport type { WidgetServiceContext } from \"./rest/clientDefinitions.js\";\n\nexport type { WidgetServiceClientOptions } from \"./api/WidgetServiceContext.js\";\n\nexport class WidgetServiceClient {\n private _client: WidgetServiceContext;\n\n /** */\n constructor(endpoint: string, options?: WidgetServiceClientOptions);\n constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);\n constructor(\n endpoint: string,\n credentialOrOptions?: TokenCredential | WidgetServiceClientOptions,\n options: WidgetServiceClientOptions = {},\n ) {\n if (isTokenCredential(credentialOrOptions)) {\n this._client = createWidgetService(endpoint, credentialOrOptions, options);\n } else {\n this._client = createWidgetService(endpoint, credentialOrOptions);\n }\n }\n\n /**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\n listWidgets(options: ListWidgetsOptions = { requestOptions: {} }): Promise<Widget[]> {\n return listWidgets(this._client, options);\n }\n\n /** Get a widget by ID. */\n getWidget(id: string, options: GetWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return getWidget(this._client, id, options);\n }\n\n /**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\n createWidget(\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} },\n ): Promise<Widget> {\n return createWidget(this._client, weight, color, options);\n }\n\n /**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\n updateWidget(id: string, options: UpdateWidgetOptions = { requestOptions: {} }): Promise<Widget> {\n return updateWidget(this._client, id, options);\n }\n\n /** Delete a widget by ID. */\n deleteWidget(id: string, options: DeleteWidgetOptions = { requestOptions: {} }): Promise<void> {\n return deleteWidget(this._client, id, options);\n }\n\n /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\n analyzeWidget(\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} },\n ): Promise<AnalyzeResult> {\n return analyzeWidget(this._client, id, options);\n }\n}\n"]}
@@ -5,10 +5,10 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { ClientOptions } from "@azure-rest/core-client";
9
- import { TokenCredential } from "@azure/core-auth";
10
- import { WidgetServiceContext } from "../rest/index.js";
11
- export { WidgetServiceContext } from "../rest/index.js";
8
+ import type { ClientOptions } from "@azure-rest/core-client";
9
+ import type { TokenCredential } from "@azure/core-auth";
10
+ import type { WidgetServiceContext } from "../rest/index.js";
11
+ export type { WidgetServiceContext } from "../rest/index.js";
12
12
  export interface WidgetServiceClientOptions extends ClientOptions {
13
13
  }
14
14
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceContext.d.ts","sourceRoot":"","sources":["../../../src/api/WidgetServiceContext.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,WAAW,0BAA2B,SAAQ,aAAa;CAAG;AAEpE;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC;AACxB,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { isTokenCredential } from "@azure/core-auth";
4
- import getClient from "../rest/index.js";
4
+ import getClient from "../rest/widgetServiceClient.js";
5
5
  export function createWidgetService(endpoint, credentialOrOptions, options = {}) {
6
6
  const baseUrl = endpoint;
7
7
  if (isTokenCredential(credentialOrOptions)) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetServiceContext.js","sourceRoot":"","sources":["../../../src/api/WidgetServiceContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,SAAS,MAAM,gCAAgC,CAAC;AAkBvD,MAAM,UAAU,mBAAmB,CACjC,QAAgB,EAChB,mBAAqD,EACrD,UAAyB,EAAE;IAE3B,MAAM,OAAO,GAAG,QAAQ,CAAC;IACzB,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,CAAC;QAC3C,OAAO,SAAS,CAAC,OAAO,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;SAAM,CAAC;QACN,OAAO,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;IACjD,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport type { WidgetServiceContext } from \"../rest/index.js\";\nimport getClient from \"../rest/widgetServiceClient.js\";\n\nexport type { WidgetServiceContext } from \"../rest/index.js\";\n\nexport interface WidgetServiceClientOptions extends ClientOptions {}\n\n/**\n * This customization adds authentication to the client.\n */\nexport function createWidgetService(\n endpoint: string,\n options?: ClientOptions,\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credential: TokenCredential,\n options?: ClientOptions,\n): WidgetServiceContext;\nexport function createWidgetService(\n endpoint: string,\n credentialOrOptions?: TokenCredential | ClientOptions,\n options: ClientOptions = {},\n): WidgetServiceContext {\n const baseUrl = endpoint;\n if (isTokenCredential(credentialOrOptions)) {\n return getClient(baseUrl, credentialOrOptions, options);\n } else {\n return getClient(baseUrl, credentialOrOptions);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foo.d.ts","sourceRoot":"","sources":["../../../src/api/foo.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,GAAG,IAAI,IAAI,CAE1B"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  /**
4
4
  * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
5
5
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foo.js","sourceRoot":"","sources":["../../../src/api/foo.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AACH,MAAM,UAAU,GAAG;IACjB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACrB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\nexport function foo(): void {\n console.log(\"foo\");\n}\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
3
+ *
4
+ * Any changes you make here may be lost.
5
+ *
6
+ * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
+ */
8
+ export type { Widget, ColorType, AnalyzeResult } from "./models.js";
9
+ export { listWidgets, getWidget, createWidget, updateWidget, deleteWidget, analyzeWidget, type ListWidgetsOptions, type GetWidgetOptions, type CreateWidgetOptions, type UpdateWidgetOptions, type DeleteWidgetOptions, type AnalyzeWidgetOptions, } from "./operations.js";
10
+ export { createWidgetService, type WidgetServiceContext, type WidgetServiceClientOptions, } from "./WidgetServiceContext.js";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC,MAAM,2BAA2B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export { listWidgets, getWidget, createWidget, updateWidget, deleteWidget, analyzeWidget, } from "./operations.js";
4
4
  export { createWidgetService, } from "./WidgetServiceContext.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,GAOd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,GAGpB,MAAM,2BAA2B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport type { Widget, ColorType, AnalyzeResult } from \"./models.js\";\nexport {\n listWidgets,\n getWidget,\n createWidget,\n updateWidget,\n deleteWidget,\n analyzeWidget,\n type ListWidgetsOptions,\n type GetWidgetOptions,\n type CreateWidgetOptions,\n type UpdateWidgetOptions,\n type DeleteWidgetOptions,\n type AnalyzeWidgetOptions,\n} from \"./operations.js\";\nexport {\n createWidgetService,\n type WidgetServiceContext,\n type WidgetServiceClientOptions,\n} from \"./WidgetServiceContext.js\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/api/models.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,MAAM;AACN,MAAM,WAAW,MAAM;IACrB,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,wBAAwB;AACxB,MAAM;AACN,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvC,MAAM;AACN,MAAM,WAAW,aAAa;IAC5B,MAAM;IACN,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/api/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\n/** */\nexport interface Widget {\n /** The UUID of this widget. This is generated automatically by the service. */\n id: string;\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight: number;\n /** The color of the widget. */\n color: ColorType;\n}\n\n/** Type of ColorType */\n/** */\nexport type ColorType = \"red\" | \"blue\";\n\n/** */\nexport interface AnalyzeResult {\n /** */\n summary: string;\n}\n"]}
@@ -5,10 +5,11 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { StreamableMethod } from "@azure-rest/core-client";
9
- import { RequestOptions } from "../common/interfaces.js";
10
- import { AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse, WidgetServiceContext as Client, CreateWidget201Response, CreateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, ListWidgets200Response, ListWidgetsDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse } from "../rest/index.js";
11
- import { AnalyzeResult, ColorType, Widget } from "./models.js";
8
+ import type { StreamableMethod } from "@azure-rest/core-client";
9
+ import type { RequestOptions } from "../common/interfaces.js";
10
+ import type { WidgetServiceContext as Client } from "../rest/clientDefinitions.js";
11
+ import type { AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, ListWidgets200Response, ListWidgetsDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse } from "../rest/index.js";
12
+ import type { AnalyzeResult, ColorType, Widget } from "./models.js";
12
13
  export interface ListWidgetsOptions extends RequestOptions {
13
14
  }
14
15
  export interface GetWidgetOptions extends RequestOptions {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpE,MAAM,WAAW,kBAAmB,SAAQ,cAAc;CAAG;AAE7D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAE9D,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,cAAc;CAAG;AAE/D,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,kBAA2C,GACnD,gBAAgB,CAAC,sBAAsB,GAAG,0BAA0B,CAAC,CAMvE;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,sBAAsB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AG,2BAA2B,GAC5D,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,mBAA4C,GACpD,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,mBAA4C,GACpD,gBAAgB,CAAC,uBAAuB,GAAG,2BAA2B,CAAC,CAMzE;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,uBAAuB,GAAG,2BAA2B,GAC5D,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,6BAA6B;AAC7B,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,mBAA4C,GACpD,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,oBAA6C,GACrD,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAM3E;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,wBAAwB,GAAG,4BAA4B,GAC9D,OAAO,CAAC,aAAa,CAAC,CAQxB;AAED;;;GAGG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,aAAa,CAAC,CAaxB"}
@@ -1,22 +1,20 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { RestError } from "@azure/core-rest-pipeline";
4
- import { isUnexpected, } from "../rest/index.js";
4
+ import { isUnexpected } from "../rest/index.js";
5
5
  import { foo } from "./foo.js";
6
6
  export function _listWidgetsSend(context, options = { requestOptions: {} }) {
7
- var _a, _b, _c;
8
7
  return context.path("/widgets").get({
9
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
10
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
11
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
8
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
9
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
10
+ headers: { ...options.requestOptions?.headers },
12
11
  });
13
12
  }
14
13
  export async function _listWidgetsDeserialize(result) {
15
- var _a;
16
14
  if (isUnexpected(result)) {
17
15
  throw result.body;
18
16
  }
19
- return ((_a = result.body) !== null && _a !== void 0 ? _a : []).map((p) => ({
17
+ return (result.body ?? []).map((p) => ({
20
18
  id: p["id"],
21
19
  weight: p["weight"],
22
20
  color: p["color"],
@@ -32,11 +30,10 @@ export async function listWidgets(context, options = { requestOptions: {} }) {
32
30
  return _listWidgetsDeserialize(result);
33
31
  }
34
32
  export function _getWidgetSend(context, id, options = { requestOptions: {} }) {
35
- var _a, _b, _c;
36
33
  return context.path("/widgets/{id}", id).get({
37
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
38
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
39
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
34
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
35
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
36
+ headers: { ...options.requestOptions?.headers },
40
37
  });
41
38
  }
42
39
  export async function _getWidgetDeserialize(result) {
@@ -55,11 +52,10 @@ export async function getWidget(context, id, options = { requestOptions: {} }) {
55
52
  return _getWidgetDeserialize(result);
56
53
  }
57
54
  export function _createWidgetSend(context, weight, color, options = { requestOptions: {} }) {
58
- var _a, _b, _c;
59
55
  return context.path("/widgets").post({
60
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
61
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
62
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
56
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
57
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
58
+ headers: { ...options.requestOptions?.headers },
63
59
  body: { weight: weight, color: color },
64
60
  });
65
61
  }
@@ -84,12 +80,11 @@ export async function createWidget(context, weight, color, options = { requestOp
84
80
  return _createWidgetDeserialize(result);
85
81
  }
86
82
  export function _updateWidgetSend(context, id, options = { requestOptions: {} }) {
87
- var _a, _b, _c;
88
83
  return context.path("/widgets/{id}", id).patch({
89
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
90
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
91
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
92
- body: { weight: options === null || options === void 0 ? void 0 : options.weight, color: options === null || options === void 0 ? void 0 : options.color },
84
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
85
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
86
+ headers: { ...options.requestOptions?.headers },
87
+ body: { weight: options?.weight, color: options?.color },
93
88
  });
94
89
  }
95
90
  export async function _updateWidgetDeserialize(result) {
@@ -111,11 +106,10 @@ export async function updateWidget(context, id, options = { requestOptions: {} }
111
106
  return _updateWidgetDeserialize(result);
112
107
  }
113
108
  export function _deleteWidgetSend(context, id, options = { requestOptions: {} }) {
114
- var _a, _b, _c;
115
109
  return context.path("/widgets/{id}", id).delete({
116
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
117
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
118
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
110
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
111
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
112
+ headers: { ...options.requestOptions?.headers },
119
113
  });
120
114
  }
121
115
  export async function _deleteWidgetDeserialize(result) {
@@ -130,11 +124,10 @@ export async function deleteWidget(context, id, options = { requestOptions: {} }
130
124
  return _deleteWidgetDeserialize(result);
131
125
  }
132
126
  export function _analyzeWidgetSend(context, id, options = { requestOptions: {} }) {
133
- var _a, _b, _c;
134
127
  return context.path("/widgets/{id}/analyze", id).post({
135
- allowInsecureConnection: (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.allowInsecureConnection,
136
- skipUrlEncoding: (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.skipUrlEncoding,
137
- headers: Object.assign({}, (_c = options.requestOptions) === null || _c === void 0 ? void 0 : _c.headers),
128
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
129
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
130
+ headers: { ...options.requestOptions?.headers },
138
131
  });
139
132
  }
140
133
  export async function _analyzeWidgetDeserialize(result) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAiBtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAoB/B,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,UAA8B,EAAE,cAAc,EAAE,EAAE,EAAE;IAEpD,OAAO,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,C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AO,CAAC,CAAC;IAC9D,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport type { StreamableMethod } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport type { RequestOptions } from \"../common/interfaces.js\";\nimport type { WidgetServiceContext as Client } from \"../rest/clientDefinitions.js\";\nimport type {\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n} from \"../rest/index.js\";\nimport { isUnexpected } from \"../rest/index.js\";\nimport { foo } from \"./foo.js\";\nimport type { AnalyzeResult, ColorType, Widget } from \"./models.js\";\n\nexport interface ListWidgetsOptions extends RequestOptions {}\n\nexport interface GetWidgetOptions extends RequestOptions {}\n\nexport interface CreateWidgetOptions extends RequestOptions {}\n\nexport interface UpdateWidgetOptions extends RequestOptions {\n /** The weight of the widget. This is an int32, but must be greater than zero. */\n weight?: number;\n /** The color of the widget. */\n color?: ColorType;\n}\n\nexport interface DeleteWidgetOptions extends RequestOptions {}\n\nexport interface AnalyzeWidgetOptions extends RequestOptions {}\n\nexport function _listWidgetsSend(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} },\n): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse> {\n return context.path(\"/widgets\").get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listWidgetsDeserialize(\n result: ListWidgets200Response | ListWidgetsDefaultResponse,\n): Promise<Widget[]> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return (result.body ?? []).map((p) => ({\n id: p[\"id\"],\n weight: p[\"weight\"],\n color: p[\"color\"],\n }));\n}\n\n/**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\nexport async function listWidgets(\n context: Client,\n options: ListWidgetsOptions = { requestOptions: {} },\n): Promise<Widget[]> {\n const result = await _listWidgetsSend(context, options);\n return _listWidgetsDeserialize(result);\n}\n\nexport function _getWidgetSend(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} },\n): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).get({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getWidgetDeserialize(\n result: GetWidget200Response | GetWidgetDefaultResponse,\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/** Get a widget by ID. */\nexport async function getWidget(\n context: Client,\n id: string,\n options: GetWidgetOptions = { requestOptions: {} },\n): Promise<Widget> {\n const result = await _getWidgetSend(context, id, options);\n return _getWidgetDeserialize(result);\n}\n\nexport function _createWidgetSend(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} },\n): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse> {\n return context.path(\"/widgets\").post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: weight, color: color },\n });\n}\n\nexport async function _createWidgetDeserialize(\n result: CreateWidget201Response | CreateWidgetDefaultResponse,\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\nexport async function createWidget(\n context: Client,\n weight: number,\n color: ColorType,\n options: CreateWidgetOptions = { requestOptions: {} },\n): Promise<Widget> {\n const result = await _createWidgetSend(context, weight, color, options);\n return _createWidgetDeserialize(result);\n}\n\nexport function _updateWidgetSend(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} },\n): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).patch({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n body: { weight: options?.weight, color: options?.color },\n });\n}\n\nexport async function _updateWidgetDeserialize(\n result: UpdateWidget200Response | UpdateWidgetDefaultResponse,\n): Promise<Widget> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n id: result.body[\"id\"],\n weight: result.body[\"weight\"],\n color: result.body[\"color\"],\n };\n}\n\n/**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\nexport async function updateWidget(\n context: Client,\n id: string,\n options: UpdateWidgetOptions = { requestOptions: {} },\n): Promise<Widget> {\n const result = await _updateWidgetSend(context, id, options);\n return _updateWidgetDeserialize(result);\n}\n\nexport function _deleteWidgetSend(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} },\n): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}\", id).delete({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _deleteWidgetDeserialize(\n result: DeleteWidget204Response | DeleteWidgetDefaultResponse,\n): Promise<void> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return;\n}\n\n/** Delete a widget by ID. */\nexport async function deleteWidget(\n context: Client,\n id: string,\n options: DeleteWidgetOptions = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteWidgetSend(context, id, options);\n return _deleteWidgetDeserialize(result);\n}\n\nexport function _analyzeWidgetSend(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} },\n): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse> {\n return context.path(\"/widgets/{id}/analyze\", id).post({\n allowInsecureConnection: options.requestOptions?.allowInsecureConnection,\n skipUrlEncoding: options.requestOptions?.skipUrlEncoding,\n headers: { ...options.requestOptions?.headers },\n });\n}\n\nexport async function _analyzeWidgetDeserialize(\n result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse,\n): Promise<AnalyzeResult> {\n if (isUnexpected(result)) {\n throw result.body;\n }\n\n return {\n summary: result.body[\"summary\"],\n };\n}\n\n/**\n * In this customization we will perform the following tasks in addition to the generated:\n * - We are going to add special error handling for demonstration purposes\n */\nexport async function analyzeWidget(\n context: Client,\n id: string,\n options?: AnalyzeWidgetOptions,\n): Promise<AnalyzeResult> {\n try {\n foo();\n const result = await _analyzeWidget(context, id, options);\n return result;\n } catch (error: any) {\n console.error(\"Error occurred while calling analyzeWidget:\", error);\n if (error.message && error.statusCode) {\n throw new RestError(error.message, { code: error.statusCode });\n }\n\n throw new Error(error);\n }\n}\n\n/** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\nasync function _analyzeWidget(\n context: Client,\n id: string,\n options: AnalyzeWidgetOptions = { requestOptions: {} },\n): Promise<AnalyzeResult> {\n const result = await _analyzeWidgetSend(context, id, options);\n return _analyzeWidgetDeserialize(result);\n}\n"]}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
8
+ import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
9
9
  export interface RequestOptions {
10
10
  requestOptions?: {
11
11
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,EAAE;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;QAC9B,oEAAoE;QACpE,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAClC,mEAAmE;QACnE,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common/interfaces.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport type { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\n\nexport interface RequestOptions {\n requestOptions?: {\n /**\n * Headers to send along with the request\n */\n headers?: RawHttpHeadersInput;\n /** Set to true if the request is sent over HTTP instead of HTTPS */\n allowInsecureConnection?: boolean;\n /** Set to true if you want to skip encoding the path parameters */\n skipUrlEncoding?: boolean;\n };\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
3
+ *
4
+ * Any changes you make here may be lost.
5
+ *
6
+ * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
+ */
8
+ export type { Widget, ColorType, AnalyzeResult } from "./api/models.js";
9
+ export type { ListWidgetsOptions, GetWidgetOptions, CreateWidgetOptions, UpdateWidgetOptions, DeleteWidgetOptions, AnalyzeWidgetOptions, } from "./api/operations.js";
10
+ export { WidgetServiceClient, type WidgetServiceClientOptions } from "./WidgetServiceClient.js";
11
+ export type { RequestOptions } from "./common/interfaces.js";
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACxE,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,KAAK,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAChG,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export { WidgetServiceClient } from "./WidgetServiceClient.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,OAAO,EAAE,mBAAmB,EAAmC,MAAM,0BAA0B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nexport type { Widget, ColorType, AnalyzeResult } from \"./api/models.js\";\nexport type {\n ListWidgetsOptions,\n GetWidgetOptions,\n CreateWidgetOptions,\n UpdateWidgetOptions,\n DeleteWidgetOptions,\n AnalyzeWidgetOptions,\n} from \"./api/operations.js\";\nexport { WidgetServiceClient, type WidgetServiceClientOptions } from \"./WidgetServiceClient.js\";\nexport type { RequestOptions } from \"./common/interfaces.js\";\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,MAAM,qCAA+B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  /**
4
4
  * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
5
5
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"widget\");\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -5,9 +5,9 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { ListWidgetsParameters, CreateWidgetParameters, GetWidgetParameters, UpdateWidgetParameters, DeleteWidgetParameters, AnalyzeWidgetParameters } from "./parameters.js";
9
- import { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
10
- import { Client, StreamableMethod } from "@azure-rest/core-client";
8
+ import type { ListWidgetsParameters, CreateWidgetParameters, GetWidgetParameters, UpdateWidgetParameters, DeleteWidgetParameters, AnalyzeWidgetParameters } from "./parameters.js";
9
+ import type { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
10
+ import type { Client, StreamableMethod } from "@azure-rest/core-client";
11
11
  export interface ListWidgets {
12
12
  /**
13
13
  * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
@@ -1 +1 @@
1
- {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gB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BAAuB,GAChC,gBAAgB,CAAC,wBAAwB,GAAG,4BAA4B,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,MAAM;IACrB,6EAA6E;IAC7E,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,6FAA6F;IAC7F,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,uFAAuF;IACvF,CAAC,IAAI,EAAE,uBAAuB,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,CAAC;CAC5D;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../../src/rest/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport type {\n ListWidgetsParameters,\n CreateWidgetParameters,\n GetWidgetParameters,\n UpdateWidgetParameters,\n DeleteWidgetParameters,\n AnalyzeWidgetParameters,\n} from \"./parameters.js\";\nimport type {\n ListWidgets200Response,\n ListWidgetsDefaultResponse,\n CreateWidget201Response,\n CreateWidgetDefaultResponse,\n GetWidget200Response,\n GetWidgetDefaultResponse,\n UpdateWidget200Response,\n UpdateWidgetDefaultResponse,\n DeleteWidget204Response,\n DeleteWidgetDefaultResponse,\n AnalyzeWidget200Response,\n AnalyzeWidgetDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface ListWidgets {\n /**\n * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.\n *\n * It does not accept any options or parameters.\n */\n get(\n options?: ListWidgetsParameters,\n ): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse>;\n /**\n * Create a new widget.\n *\n * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will\n * result in an error.\n */\n post(\n options?: CreateWidgetParameters,\n ): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse>;\n}\n\nexport interface GetWidget {\n /** Get a widget by ID. */\n get(\n options?: GetWidgetParameters,\n ): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse>;\n /**\n * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields\n * are optional and will be updated within the widget if provided.\n */\n patch(\n options?: UpdateWidgetParameters,\n ): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse>;\n /** Delete a widget by ID. */\n delete(\n options?: DeleteWidgetParameters,\n ): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse>;\n}\n\nexport interface AnalyzeWidget {\n /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */\n post(\n options?: AnalyzeWidgetParameters,\n ): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse>;\n}\n\nexport interface Routes {\n /** Resource for '/widgets' has methods for the following verbs: get, post */\n (path: \"/widgets\"): ListWidgets;\n /** Resource for '/widgets/\\{id\\}' has methods for the following verbs: get, patch, delete */\n (path: \"/widgets/{id}\", id: string): GetWidget;\n /** Resource for '/widgets/\\{id\\}/analyze' has methods for the following verbs: post */\n (path: \"/widgets/{id}/analyze\", id: string): AnalyzeWidget;\n}\n\nexport type WidgetServiceContext = Client & {\n path: Routes;\n};\n"]}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
3
+ *
4
+ * Any changes you make here may be lost.
5
+ *
6
+ * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
+ */
8
+ import WidgetServiceClient from "./widgetServiceClient.js";
9
+ export * from "./widgetServiceClient.js";
10
+ export type * from "./parameters.js";
11
+ export type * from "./responses.js";
12
+ export type * from "./clientDefinitions.js";
13
+ export * from "./isUnexpected.js";
14
+ export type * from "./models.js";
15
+ export type * from "./outputModels.js";
16
+ export default WidgetServiceClient;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,gBAAgB,CAAC;AACpC,mBAAmB,wBAAwB,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,mBAAmB,CAAC;AAEvC,eAAe,mBAAmB,CAAC"}
@@ -1,3 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
1
3
  /**
2
4
  * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
3
5
  *
@@ -7,11 +9,6 @@
7
9
  */
8
10
  import WidgetServiceClient from "./widgetServiceClient.js";
9
11
  export * from "./widgetServiceClient.js";
10
- export * from "./parameters.js";
11
- export * from "./responses.js";
12
- export * from "./clientDefinitions.js";
13
12
  export * from "./isUnexpected.js";
14
- export * from "./models.js";
15
- export * from "./outputModels.js";
16
13
  export default WidgetServiceClient;
17
- //# sourceMappingURL=index.d.ts.map
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;GAMG;AAEH,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AAIzC,cAAc,mBAAmB,CAAC;AAIlC,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!\n *\n * Any changes you make here may be lost.\n *\n * If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom\n */\n\nimport WidgetServiceClient from \"./widgetServiceClient.js\";\n\nexport * from \"./widgetServiceClient.js\";\nexport type * from \"./parameters.js\";\nexport type * from \"./responses.js\";\nexport type * from \"./clientDefinitions.js\";\nexport * from \"./isUnexpected.js\";\nexport type * from \"./models.js\";\nexport type * from \"./outputModels.js\";\n\nexport default WidgetServiceClient;\n"]}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
7
7
  */
8
- import { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
8
+ import type { ListWidgets200Response, ListWidgetsDefaultResponse, CreateWidget201Response, CreateWidgetDefaultResponse, GetWidget200Response, GetWidgetDefaultResponse, UpdateWidget200Response, UpdateWidgetDefaultResponse, DeleteWidget204Response, DeleteWidgetDefaultResponse, AnalyzeWidget200Response, AnalyzeWidgetDefaultResponse } from "./responses.js";
9
9
  export declare function isUnexpected(response: ListWidgets200Response | ListWidgetsDefaultResponse): response is ListWidgetsDefaultResponse;
10
10
  export declare function isUnexpected(response: CreateWidget201Response | CreateWidgetDefaultResponse): response is CreateWidgetDefaultResponse;
11
11
  export declare function isUnexpected(response: GetWidget200Response | GetWidgetDefaultResponse): response is GetWidgetDefaultResponse;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isUnexpected.d.ts","sourceRoot":"","sources":["../../../src/rest/isUnexpected.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AAWxB,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,sBAAsB,GAAG,0BAA0B,GAC5D,QAAQ,IAAI,0BAA0B,CAAC;AAC1C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,oBAAoB,GAAG,wBAAwB,GACxD,QAAQ,IAAI,wBAAwB,CAAC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,uBAAuB,GAAG,2BAA2B,GAC9D,QAAQ,IAAI,2BAA2B,CAAC;AAC3C,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,wBAAwB,GAAG,4BAA4B,GAChE,QAAQ,IAAI,4BAA4B,CAAC"}