@azure/template-dpg 1.0.0-beta.1 → 1.0.0-beta.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 (368) hide show
  1. package/LICENSE +4 -3
  2. package/README.md +4 -6
  3. package/{types/src/src → dist/browser}/WidgetServiceClient.d.ts +3 -2
  4. package/dist/browser/WidgetServiceClient.d.ts.map +1 -0
  5. package/{dist-esm/src/src → dist/browser}/WidgetServiceClient.js +3 -9
  6. package/dist/browser/WidgetServiceClient.js.map +1 -0
  7. package/{types/src/src → dist/browser}/api/WidgetServiceContext.d.ts +3 -3
  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.map +1 -0
  15. package/{dist-esm/src → dist/browser}/api/index.js +1 -1
  16. package/dist/browser/api/index.js.map +1 -0
  17. package/dist/browser/api/models.d.ts.map +1 -0
  18. package/dist/browser/api/models.js +4 -0
  19. package/dist/browser/api/models.js.map +1 -0
  20. package/{types/src/src → dist/browser}/api/operations.d.ts +5 -4
  21. package/dist/browser/api/operations.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/api/operations.js +2 -2
  23. package/dist/browser/api/operations.js.map +1 -0
  24. package/{types/src/src → dist/browser}/common/interfaces.d.ts +1 -1
  25. package/dist/browser/common/interfaces.d.ts.map +1 -0
  26. package/dist/browser/common/interfaces.js +4 -0
  27. package/dist/browser/common/interfaces.js.map +1 -0
  28. package/dist/browser/index.d.ts.map +1 -0
  29. package/{dist-esm/src/src → dist/browser}/index.js +1 -1
  30. package/dist/browser/index.js.map +1 -0
  31. package/dist/browser/logger.d.ts.map +1 -0
  32. package/{dist-esm/src/src → dist/browser}/logger.js +1 -1
  33. package/dist/browser/logger.js.map +1 -0
  34. package/dist/browser/package.json +3 -0
  35. package/{types/src/src → dist/browser}/rest/clientDefinitions.d.ts +3 -3
  36. package/{types/src → dist/browser}/rest/clientDefinitions.d.ts.map +1 -1
  37. package/dist/browser/rest/clientDefinitions.js +4 -0
  38. package/dist/browser/rest/clientDefinitions.js.map +1 -0
  39. package/dist/browser/rest/index.d.ts.map +1 -0
  40. package/{dist-esm/src/src → dist/browser}/rest/index.js +1 -1
  41. package/dist/browser/rest/index.js.map +1 -0
  42. package/{types/src/src → dist/browser}/rest/isUnexpected.d.ts +1 -1
  43. package/dist/browser/rest/isUnexpected.d.ts.map +1 -0
  44. package/{dist-esm/src/src → dist/browser}/rest/isUnexpected.js +1 -1
  45. package/dist/browser/rest/isUnexpected.js.map +1 -0
  46. package/dist/browser/rest/models.d.ts.map +1 -0
  47. package/dist/browser/rest/models.js +4 -0
  48. package/dist/browser/rest/models.js.map +1 -0
  49. package/dist/browser/rest/outputModels.d.ts.map +1 -0
  50. package/dist/browser/rest/outputModels.js +4 -0
  51. package/dist/browser/rest/outputModels.js.map +1 -0
  52. package/{types/src/src → dist/browser}/rest/parameters.d.ts +2 -2
  53. package/dist/browser/rest/parameters.d.ts.map +1 -0
  54. package/dist/browser/rest/parameters.js +4 -0
  55. package/dist/browser/rest/parameters.js.map +1 -0
  56. package/{types/src/src → dist/browser}/rest/responses.d.ts +2 -2
  57. package/dist/browser/rest/responses.d.ts.map +1 -0
  58. package/dist/browser/rest/responses.js +4 -0
  59. package/dist/browser/rest/responses.js.map +1 -0
  60. package/{types/src/src → dist/browser}/rest/widgetServiceClient.d.ts +3 -3
  61. package/dist/browser/rest/widgetServiceClient.d.ts.map +1 -0
  62. package/{dist-esm/src/src → dist/browser}/rest/widgetServiceClient.js +2 -9
  63. package/dist/browser/rest/widgetServiceClient.js.map +1 -0
  64. package/{types/src → dist/commonjs}/WidgetServiceClient.d.ts +3 -9
  65. package/dist/commonjs/WidgetServiceClient.d.ts.map +1 -0
  66. package/dist/commonjs/WidgetServiceClient.js +56 -0
  67. package/dist/commonjs/WidgetServiceClient.js.map +1 -0
  68. package/{types/src → dist/commonjs}/api/WidgetServiceContext.d.ts +3 -10
  69. package/dist/commonjs/api/WidgetServiceContext.d.ts.map +1 -0
  70. package/dist/commonjs/api/WidgetServiceContext.js +18 -0
  71. package/dist/commonjs/api/WidgetServiceContext.js.map +1 -0
  72. package/{types/src → dist/commonjs}/api/foo.d.ts +0 -7
  73. package/dist/commonjs/api/foo.d.ts.map +1 -0
  74. package/dist/commonjs/api/foo.js +16 -0
  75. package/dist/commonjs/api/foo.js.map +1 -0
  76. package/{types/src → dist/commonjs}/api/index.d.ts +0 -7
  77. package/dist/commonjs/api/index.d.ts.map +1 -0
  78. package/dist/commonjs/api/index.js +15 -0
  79. package/dist/commonjs/api/index.js.map +1 -0
  80. package/{types/src → dist/commonjs}/api/models.d.ts +0 -7
  81. package/dist/commonjs/api/models.d.ts.map +1 -0
  82. package/dist/commonjs/api/models.js +5 -0
  83. package/dist/commonjs/api/models.js.map +1 -0
  84. package/{types/src → dist/commonjs}/api/operations.d.ts +5 -11
  85. package/dist/commonjs/api/operations.d.ts.map +1 -0
  86. package/dist/commonjs/api/operations.js +191 -0
  87. package/dist/commonjs/api/operations.js.map +1 -0
  88. package/{types/src → dist/commonjs}/common/interfaces.d.ts +1 -8
  89. package/dist/commonjs/common/interfaces.d.ts.map +1 -0
  90. package/dist/commonjs/common/interfaces.js +5 -0
  91. package/dist/commonjs/common/interfaces.js.map +1 -0
  92. package/{types/src → dist/commonjs}/index.d.ts +0 -7
  93. package/dist/commonjs/index.d.ts.map +1 -0
  94. package/dist/commonjs/index.js +8 -0
  95. package/dist/commonjs/index.js.map +1 -0
  96. package/dist/commonjs/logger.d.ts.map +1 -0
  97. package/dist/commonjs/logger.js +15 -0
  98. package/dist/commonjs/logger.js.map +1 -0
  99. package/dist/commonjs/package.json +3 -0
  100. package/{types/src → dist/commonjs}/rest/clientDefinitions.d.ts +3 -10
  101. package/dist/commonjs/rest/clientDefinitions.d.ts.map +1 -0
  102. package/dist/commonjs/rest/clientDefinitions.js +5 -0
  103. package/dist/commonjs/rest/clientDefinitions.js.map +1 -0
  104. package/{types/src → dist/commonjs}/rest/index.d.ts +0 -7
  105. package/dist/commonjs/rest/index.d.ts.map +1 -0
  106. package/dist/commonjs/rest/index.js +22 -0
  107. package/dist/commonjs/rest/index.js.map +1 -0
  108. package/{types/src → dist/commonjs}/rest/isUnexpected.d.ts +1 -8
  109. package/dist/commonjs/rest/isUnexpected.d.ts.map +1 -0
  110. package/dist/commonjs/rest/isUnexpected.js +78 -0
  111. package/dist/commonjs/rest/isUnexpected.js.map +1 -0
  112. package/{types/src → dist/commonjs}/rest/models.d.ts +0 -7
  113. package/dist/commonjs/rest/models.d.ts.map +1 -0
  114. package/dist/commonjs/rest/models.js +5 -0
  115. package/dist/commonjs/rest/models.js.map +1 -0
  116. package/{types/src → dist/commonjs}/rest/outputModels.d.ts +0 -7
  117. package/dist/commonjs/rest/outputModels.d.ts.map +1 -0
  118. package/dist/commonjs/rest/outputModels.js +5 -0
  119. package/dist/commonjs/rest/outputModels.js.map +1 -0
  120. package/{types/src → dist/commonjs}/rest/parameters.d.ts +2 -9
  121. package/dist/commonjs/rest/parameters.d.ts.map +1 -0
  122. package/dist/commonjs/rest/parameters.js +5 -0
  123. package/dist/commonjs/rest/parameters.js.map +1 -0
  124. package/{types/src → dist/commonjs}/rest/responses.d.ts +2 -9
  125. package/dist/commonjs/rest/responses.d.ts.map +1 -0
  126. package/dist/commonjs/rest/responses.js +5 -0
  127. package/dist/commonjs/rest/responses.js.map +1 -0
  128. package/{types/src → dist/commonjs}/rest/widgetServiceClient.d.ts +3 -10
  129. package/dist/commonjs/rest/widgetServiceClient.d.ts.map +1 -0
  130. package/dist/commonjs/rest/widgetServiceClient.js +42 -0
  131. package/dist/commonjs/rest/widgetServiceClient.js.map +1 -0
  132. package/{types/latest → dist/commonjs}/tsdoc-metadata.json +1 -1
  133. package/dist/esm/WidgetServiceClient.d.ts +42 -0
  134. package/dist/esm/WidgetServiceClient.d.ts.map +1 -0
  135. package/{dist-esm/src → dist/esm}/WidgetServiceClient.js +3 -16
  136. package/dist/esm/WidgetServiceClient.js.map +1 -0
  137. package/dist/esm/api/WidgetServiceContext.d.ts +19 -0
  138. package/dist/esm/api/WidgetServiceContext.d.ts.map +1 -0
  139. package/{dist-esm/src/src → dist/esm}/api/WidgetServiceContext.js +2 -2
  140. package/dist/esm/api/WidgetServiceContext.js.map +1 -0
  141. package/dist/esm/api/foo.d.ts +9 -0
  142. package/dist/esm/api/foo.d.ts.map +1 -0
  143. package/{dist-esm/src → dist/esm}/api/foo.js +1 -8
  144. package/dist/esm/api/foo.js.map +1 -0
  145. package/dist/esm/api/index.d.ts +11 -0
  146. package/dist/esm/api/index.d.ts.map +1 -0
  147. package/{dist-esm/src/src → dist/esm}/api/index.js +1 -1
  148. package/dist/esm/api/index.js.map +1 -0
  149. package/dist/esm/api/models.d.ts +25 -0
  150. package/dist/esm/api/models.d.ts.map +1 -0
  151. package/dist/esm/api/models.js +4 -0
  152. package/dist/esm/api/models.js.map +1 -0
  153. package/dist/esm/api/operations.d.ts +68 -0
  154. package/dist/esm/api/operations.d.ts.map +1 -0
  155. package/{dist-esm/src/src → dist/esm}/api/operations.js +2 -2
  156. package/dist/esm/api/operations.js.map +1 -0
  157. package/dist/esm/common/interfaces.d.ts +21 -0
  158. package/dist/esm/common/interfaces.d.ts.map +1 -0
  159. package/dist/esm/common/interfaces.js +4 -0
  160. package/dist/esm/common/interfaces.js.map +1 -0
  161. package/dist/esm/index.d.ts +12 -0
  162. package/dist/esm/index.d.ts.map +1 -0
  163. package/{dist-esm/src → dist/esm}/index.js +1 -1
  164. package/dist/esm/index.js.map +1 -0
  165. package/dist/esm/logger.d.ts +2 -0
  166. package/dist/esm/logger.d.ts.map +1 -0
  167. package/{dist-esm/src → dist/esm}/logger.js +1 -8
  168. package/dist/esm/logger.js.map +1 -0
  169. package/dist/esm/package.json +3 -0
  170. package/dist/esm/rest/clientDefinitions.d.ts +52 -0
  171. package/dist/esm/rest/clientDefinitions.d.ts.map +1 -0
  172. package/dist/esm/rest/clientDefinitions.js +4 -0
  173. package/dist/esm/rest/clientDefinitions.js.map +1 -0
  174. package/dist/esm/rest/index.d.ts +17 -0
  175. package/dist/esm/rest/index.d.ts.map +1 -0
  176. package/{dist-esm/src → dist/esm}/rest/index.js +1 -8
  177. package/dist/esm/rest/index.js.map +1 -0
  178. package/dist/esm/rest/isUnexpected.d.ts +15 -0
  179. package/dist/esm/rest/isUnexpected.d.ts.map +1 -0
  180. package/{dist-esm/src → dist/esm}/rest/isUnexpected.js +1 -1
  181. package/dist/esm/rest/isUnexpected.js.map +1 -0
  182. package/dist/esm/rest/models.d.ts +20 -0
  183. package/dist/esm/rest/models.d.ts.map +1 -0
  184. package/dist/esm/rest/models.js +4 -0
  185. package/dist/esm/rest/models.js.map +1 -0
  186. package/dist/esm/rest/outputModels.d.ts +25 -0
  187. package/dist/esm/rest/outputModels.d.ts.map +1 -0
  188. package/dist/esm/rest/outputModels.js +4 -0
  189. package/dist/esm/rest/outputModels.js.map +1 -0
  190. package/dist/esm/rest/parameters.d.ts +22 -0
  191. package/dist/esm/rest/parameters.d.ts.map +1 -0
  192. package/dist/esm/rest/parameters.js +4 -0
  193. package/dist/esm/rest/parameters.js.map +1 -0
  194. package/dist/esm/rest/responses.d.ts +63 -0
  195. package/dist/esm/rest/responses.d.ts.map +1 -0
  196. package/dist/esm/rest/responses.js +4 -0
  197. package/dist/esm/rest/responses.js.map +1 -0
  198. package/dist/esm/rest/widgetServiceClient.d.ts +16 -0
  199. package/dist/esm/rest/widgetServiceClient.d.ts.map +1 -0
  200. package/{dist-esm/src → dist/esm}/rest/widgetServiceClient.js +2 -16
  201. package/dist/esm/rest/widgetServiceClient.js.map +1 -0
  202. package/dist/react-native/WidgetServiceClient.d.ts +42 -0
  203. package/dist/react-native/WidgetServiceClient.d.ts.map +1 -0
  204. package/dist/react-native/WidgetServiceClient.js +52 -0
  205. package/dist/react-native/WidgetServiceClient.js.map +1 -0
  206. package/dist/react-native/api/WidgetServiceContext.d.ts +19 -0
  207. package/dist/react-native/api/WidgetServiceContext.d.ts.map +1 -0
  208. package/dist/react-native/api/WidgetServiceContext.js +14 -0
  209. package/dist/react-native/api/WidgetServiceContext.js.map +1 -0
  210. package/dist/react-native/api/foo.d.ts +9 -0
  211. package/dist/react-native/api/foo.d.ts.map +1 -0
  212. package/dist/react-native/api/foo.js +13 -0
  213. package/dist/react-native/api/foo.js.map +1 -0
  214. package/dist/react-native/api/index.d.ts +11 -0
  215. package/dist/react-native/api/index.d.ts.map +1 -0
  216. package/dist/react-native/api/index.js +5 -0
  217. package/dist/react-native/api/index.js.map +1 -0
  218. package/dist/react-native/api/models.d.ts +25 -0
  219. package/dist/react-native/api/models.d.ts.map +1 -0
  220. package/dist/react-native/api/models.js +4 -0
  221. package/dist/react-native/api/models.js.map +1 -0
  222. package/dist/react-native/api/operations.d.ts +68 -0
  223. package/dist/react-native/api/operations.d.ts.map +1 -0
  224. package/dist/react-native/api/operations.js +171 -0
  225. package/dist/react-native/api/operations.js.map +1 -0
  226. package/dist/react-native/common/interfaces.d.ts +21 -0
  227. package/dist/react-native/common/interfaces.d.ts.map +1 -0
  228. package/dist/react-native/common/interfaces.js +4 -0
  229. package/dist/react-native/common/interfaces.js.map +1 -0
  230. package/dist/react-native/index.d.ts +12 -0
  231. package/dist/react-native/index.d.ts.map +1 -0
  232. package/dist/react-native/index.js +4 -0
  233. package/dist/react-native/index.js.map +1 -0
  234. package/dist/react-native/logger.d.ts +2 -0
  235. package/dist/react-native/logger.d.ts.map +1 -0
  236. package/dist/react-native/logger.js +12 -0
  237. package/dist/react-native/logger.js.map +1 -0
  238. package/dist/react-native/package.json +3 -0
  239. package/dist/react-native/rest/clientDefinitions.d.ts +52 -0
  240. package/dist/react-native/rest/clientDefinitions.d.ts.map +1 -0
  241. package/dist/react-native/rest/clientDefinitions.js +4 -0
  242. package/dist/react-native/rest/clientDefinitions.js.map +1 -0
  243. package/dist/react-native/rest/index.d.ts +17 -0
  244. package/dist/react-native/rest/index.d.ts.map +1 -0
  245. package/dist/react-native/rest/index.js +19 -0
  246. package/dist/react-native/rest/index.js.map +1 -0
  247. package/dist/react-native/rest/isUnexpected.d.ts +15 -0
  248. package/dist/react-native/rest/isUnexpected.d.ts.map +1 -0
  249. package/dist/react-native/rest/isUnexpected.js +75 -0
  250. package/dist/react-native/rest/isUnexpected.js.map +1 -0
  251. package/dist/react-native/rest/models.d.ts +20 -0
  252. package/dist/react-native/rest/models.d.ts.map +1 -0
  253. package/dist/react-native/rest/models.js +4 -0
  254. package/dist/react-native/rest/models.js.map +1 -0
  255. package/dist/react-native/rest/outputModels.d.ts +25 -0
  256. package/dist/react-native/rest/outputModels.d.ts.map +1 -0
  257. package/dist/react-native/rest/outputModels.js +4 -0
  258. package/dist/react-native/rest/outputModels.js.map +1 -0
  259. package/dist/react-native/rest/parameters.d.ts +22 -0
  260. package/dist/react-native/rest/parameters.d.ts.map +1 -0
  261. package/dist/react-native/rest/parameters.js +4 -0
  262. package/dist/react-native/rest/parameters.js.map +1 -0
  263. package/dist/react-native/rest/responses.d.ts +63 -0
  264. package/dist/react-native/rest/responses.d.ts.map +1 -0
  265. package/dist/react-native/rest/responses.js +4 -0
  266. package/dist/react-native/rest/responses.js.map +1 -0
  267. package/dist/react-native/rest/widgetServiceClient.d.ts +16 -0
  268. package/dist/react-native/rest/widgetServiceClient.d.ts.map +1 -0
  269. package/dist/react-native/rest/widgetServiceClient.js +39 -0
  270. package/dist/react-native/rest/widgetServiceClient.js.map +1 -0
  271. package/package.json +108 -74
  272. package/dist/index.cjs +0 -370
  273. package/dist/index.cjs.map +0 -1
  274. package/dist-esm/src/WidgetServiceClient.js.map +0 -1
  275. package/dist-esm/src/api/WidgetServiceContext.js.map +0 -1
  276. package/dist-esm/src/api/foo.js.map +0 -1
  277. package/dist-esm/src/api/index.js.map +0 -1
  278. package/dist-esm/src/api/models.js +0 -4
  279. package/dist-esm/src/api/models.js.map +0 -1
  280. package/dist-esm/src/api/operations.js.map +0 -1
  281. package/dist-esm/src/common/interfaces.js +0 -4
  282. package/dist-esm/src/common/interfaces.js.map +0 -1
  283. package/dist-esm/src/index.js.map +0 -1
  284. package/dist-esm/src/logger.js.map +0 -1
  285. package/dist-esm/src/rest/clientDefinitions.js +0 -4
  286. package/dist-esm/src/rest/clientDefinitions.js.map +0 -1
  287. package/dist-esm/src/rest/index.js.map +0 -1
  288. package/dist-esm/src/rest/isUnexpected.js.map +0 -1
  289. package/dist-esm/src/rest/models.js +0 -4
  290. package/dist-esm/src/rest/models.js.map +0 -1
  291. package/dist-esm/src/rest/outputModels.js +0 -4
  292. package/dist-esm/src/rest/outputModels.js.map +0 -1
  293. package/dist-esm/src/rest/parameters.js +0 -4
  294. package/dist-esm/src/rest/parameters.js.map +0 -1
  295. package/dist-esm/src/rest/responses.js +0 -4
  296. package/dist-esm/src/rest/responses.js.map +0 -1
  297. package/dist-esm/src/rest/widgetServiceClient.js.map +0 -1
  298. package/dist-esm/src/src/WidgetServiceClient.js.map +0 -1
  299. package/dist-esm/src/src/api/WidgetServiceContext.js.map +0 -1
  300. package/dist-esm/src/src/api/foo.js.map +0 -1
  301. package/dist-esm/src/src/api/index.js.map +0 -1
  302. package/dist-esm/src/src/api/models.js +0 -4
  303. package/dist-esm/src/src/api/models.js.map +0 -1
  304. package/dist-esm/src/src/api/operations.js.map +0 -1
  305. package/dist-esm/src/src/common/interfaces.js +0 -4
  306. package/dist-esm/src/src/common/interfaces.js.map +0 -1
  307. package/dist-esm/src/src/index.js.map +0 -1
  308. package/dist-esm/src/src/logger.js.map +0 -1
  309. package/dist-esm/src/src/rest/clientDefinitions.js +0 -4
  310. package/dist-esm/src/src/rest/clientDefinitions.js.map +0 -1
  311. package/dist-esm/src/src/rest/index.js.map +0 -1
  312. package/dist-esm/src/src/rest/isUnexpected.js.map +0 -1
  313. package/dist-esm/src/src/rest/models.js +0 -4
  314. package/dist-esm/src/src/rest/models.js.map +0 -1
  315. package/dist-esm/src/src/rest/outputModels.js +0 -4
  316. package/dist-esm/src/src/rest/outputModels.js.map +0 -1
  317. package/dist-esm/src/src/rest/parameters.js +0 -4
  318. package/dist-esm/src/src/rest/parameters.js.map +0 -1
  319. package/dist-esm/src/src/rest/responses.js +0 -4
  320. package/dist-esm/src/src/rest/responses.js.map +0 -1
  321. package/dist-esm/src/src/rest/widgetServiceClient.js.map +0 -1
  322. package/types/latest/template-dpg.d.ts +0 -108
  323. package/types/samples-dev/createWidget.d.ts +0 -2
  324. package/types/samples-dev/createWidget.d.ts.map +0 -1
  325. package/types/src/WidgetServiceClient.d.ts.map +0 -1
  326. package/types/src/api/WidgetServiceContext.d.ts.map +0 -1
  327. package/types/src/api/foo.d.ts.map +0 -1
  328. package/types/src/api/index.d.ts.map +0 -1
  329. package/types/src/api/models.d.ts.map +0 -1
  330. package/types/src/api/operations.d.ts.map +0 -1
  331. package/types/src/common/interfaces.d.ts.map +0 -1
  332. package/types/src/index.d.ts.map +0 -1
  333. package/types/src/logger.d.ts.map +0 -1
  334. package/types/src/rest/index.d.ts.map +0 -1
  335. package/types/src/rest/isUnexpected.d.ts.map +0 -1
  336. package/types/src/rest/models.d.ts.map +0 -1
  337. package/types/src/rest/outputModels.d.ts.map +0 -1
  338. package/types/src/rest/parameters.d.ts.map +0 -1
  339. package/types/src/rest/responses.d.ts.map +0 -1
  340. package/types/src/rest/widgetServiceClient.d.ts.map +0 -1
  341. package/types/src/src/WidgetServiceClient.d.ts.map +0 -1
  342. package/types/src/src/api/WidgetServiceContext.d.ts.map +0 -1
  343. package/types/src/src/api/foo.d.ts.map +0 -1
  344. package/types/src/src/api/index.d.ts.map +0 -1
  345. package/types/src/src/api/models.d.ts.map +0 -1
  346. package/types/src/src/api/operations.d.ts.map +0 -1
  347. package/types/src/src/common/interfaces.d.ts.map +0 -1
  348. package/types/src/src/index.d.ts.map +0 -1
  349. package/types/src/src/logger.d.ts.map +0 -1
  350. package/types/src/src/rest/clientDefinitions.d.ts.map +0 -1
  351. package/types/src/src/rest/index.d.ts.map +0 -1
  352. package/types/src/src/rest/isUnexpected.d.ts.map +0 -1
  353. package/types/src/src/rest/models.d.ts.map +0 -1
  354. package/types/src/src/rest/outputModels.d.ts.map +0 -1
  355. package/types/src/src/rest/parameters.d.ts.map +0 -1
  356. package/types/src/src/rest/responses.d.ts.map +0 -1
  357. package/types/src/src/rest/widgetServiceClient.d.ts.map +0 -1
  358. package/types/test/public/widgetService.spec.d.ts +0 -2
  359. package/types/test/public/widgetService.spec.d.ts.map +0 -1
  360. /package/{types/src/src → dist/browser}/api/foo.d.ts +0 -0
  361. /package/{types/src/src → dist/browser}/api/index.d.ts +0 -0
  362. /package/{types/src/src → dist/browser}/api/models.d.ts +0 -0
  363. /package/{types/src/src → dist/browser}/index.d.ts +0 -0
  364. /package/{types/src → dist/browser}/logger.d.ts +0 -0
  365. /package/{types/src/src → dist/browser}/rest/index.d.ts +0 -0
  366. /package/{types/src/src → dist/browser}/rest/models.d.ts +0 -0
  367. /package/{types/src/src → dist/browser}/rest/outputModels.d.ts +0 -0
  368. /package/{types/src/src → dist/commonjs}/logger.d.ts +0 -0
@@ -0,0 +1,63 @@
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 type { HttpResponse } from "@azure-rest/core-client";
9
+ import type { WidgetOutput, WidgetErrorOutput, AnalyzeResultOutput } from "./outputModels.js";
10
+ /** The request has succeeded. */
11
+ export interface ListWidgets200Response extends HttpResponse {
12
+ status: "200";
13
+ body: Array<WidgetOutput>;
14
+ }
15
+ export interface ListWidgetsDefaultResponse extends HttpResponse {
16
+ status: string;
17
+ body: WidgetErrorOutput;
18
+ }
19
+ /** The request has succeeded. */
20
+ export interface GetWidget200Response extends HttpResponse {
21
+ status: "200";
22
+ body: WidgetOutput;
23
+ }
24
+ export interface GetWidgetDefaultResponse extends HttpResponse {
25
+ status: string;
26
+ body: WidgetErrorOutput;
27
+ }
28
+ /** The request has succeeded and a new resource has been created as a result. */
29
+ export interface CreateWidget201Response extends HttpResponse {
30
+ status: "201";
31
+ body: WidgetOutput;
32
+ }
33
+ export interface CreateWidgetDefaultResponse extends HttpResponse {
34
+ status: string;
35
+ body: WidgetErrorOutput;
36
+ }
37
+ /** The request has succeeded. */
38
+ export interface UpdateWidget200Response extends HttpResponse {
39
+ status: "200";
40
+ body: WidgetOutput;
41
+ }
42
+ export interface UpdateWidgetDefaultResponse extends HttpResponse {
43
+ status: string;
44
+ body: WidgetErrorOutput;
45
+ }
46
+ /** There is no content to send for this request, but the headers may be useful. */
47
+ export interface DeleteWidget204Response extends HttpResponse {
48
+ status: "204";
49
+ }
50
+ export interface DeleteWidgetDefaultResponse extends HttpResponse {
51
+ status: string;
52
+ body: WidgetErrorOutput;
53
+ }
54
+ /** The request has succeeded. */
55
+ export interface AnalyzeWidget200Response extends HttpResponse {
56
+ status: "200";
57
+ body: AnalyzeResultOutput;
58
+ }
59
+ export interface AnalyzeWidgetDefaultResponse extends HttpResponse {
60
+ status: string;
61
+ body: WidgetErrorOutput;
62
+ }
63
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE9F,iCAAiC;AACjC,MAAM,WAAW,sBAAuB,SAAQ,YAAY;IAC1D,MAAM,EAAE,KAAK,CAAC;IACd,I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AAE,iBAAiB,CAAC;CACzB"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/rest/responses.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 { HttpResponse } from \"@azure-rest/core-client\";\nimport type { WidgetOutput, WidgetErrorOutput, AnalyzeResultOutput } from \"./outputModels.js\";\n\n/** The request has succeeded. */\nexport interface ListWidgets200Response extends HttpResponse {\n status: \"200\";\n body: Array<WidgetOutput>;\n}\n\nexport interface ListWidgetsDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n\n/** The request has succeeded. */\nexport interface GetWidget200Response extends HttpResponse {\n status: \"200\";\n body: WidgetOutput;\n}\n\nexport interface GetWidgetDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n\n/** The request has succeeded and a new resource has been created as a result. */\nexport interface CreateWidget201Response extends HttpResponse {\n status: \"201\";\n body: WidgetOutput;\n}\n\nexport interface CreateWidgetDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n\n/** The request has succeeded. */\nexport interface UpdateWidget200Response extends HttpResponse {\n status: \"200\";\n body: WidgetOutput;\n}\n\nexport interface UpdateWidgetDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteWidget204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteWidgetDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n\n/** The request has succeeded. */\nexport interface AnalyzeWidget200Response extends HttpResponse {\n status: \"200\";\n body: AnalyzeResultOutput;\n}\n\nexport interface AnalyzeWidgetDefaultResponse extends HttpResponse {\n status: string;\n body: WidgetErrorOutput;\n}\n"]}
@@ -0,0 +1,16 @@
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 type { ClientOptions } from "@azure-rest/core-client";
9
+ import type { TokenCredential } from "@azure/core-auth";
10
+ import type { WidgetServiceContext } from "./clientDefinitions.js";
11
+ /**
12
+ * This customization adds credential support to the client. And overloads for when it is optional
13
+ */
14
+ export default function createClient(endpoint: string, credential: TokenCredential, options?: ClientOptions): WidgetServiceContext;
15
+ export default function createClient(endpoint: string, options?: ClientOptions): WidgetServiceContext;
16
+ //# sourceMappingURL=widgetServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widgetServiceClient.d.ts","sourceRoot":"","sources":["../../../src/rest/widgetServiceClient.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC;AACxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC"}
@@ -1,19 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * THIS IS AN AUTO-GENERATED FILE - DO 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
- */
10
- /**
11
- * THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
12
- *
13
- * Any changes you make here may be lost.
14
- *
15
- * If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
16
- */
2
+ // Licensed under the MIT License.
17
3
  import { addCredentialPipelinePolicy, getClient } from "@azure-rest/core-client";
18
4
  import { isTokenCredential } from "@azure/core-auth";
19
5
  import { logger } from "../logger.js";
@@ -38,7 +24,7 @@ function _createClient(endpoint, options = {}) {
38
24
  var _a, _b, _c, _d;
39
25
  const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}`;
40
26
  options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "1.0.0";
41
- const userAgentInfo = `azsdk-js-widget-rest/1.0.0-beta.1`;
27
+ const userAgentInfo = `azsdk-js-widget-rest/1.0.0-beta.2`;
42
28
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
43
29
  ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
44
30
  : `${userAgentInfo}`;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widgetServiceClient.js","sourceRoot":"","sources":["../../../src/rest/widgetServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAetC,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,mBAAqD,EACrD,UAAyB,EAAE;IAE3B,IAAI,UAAuC,CAAC;IAC5C,IAAI,iBA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IT!\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 { addCredentialPipelinePolicy, getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { isTokenCredential } from \"@azure/core-auth\";\nimport { logger } from \"../logger.js\";\nimport type { WidgetServiceContext } from \"./clientDefinitions.js\";\n\n/**\n * This customization adds credential support to the client. And overloads for when it is optional\n */\nexport default function createClient(\n endpoint: string,\n credential: TokenCredential,\n options?: ClientOptions,\n): WidgetServiceContext;\nexport default function createClient(\n endpoint: string,\n options?: ClientOptions,\n): WidgetServiceContext;\nexport default function createClient(\n endpoint: string,\n credentialOrOptions?: TokenCredential | ClientOptions,\n options: ClientOptions = {},\n): WidgetServiceContext {\n let credential: TokenCredential | undefined;\n if (isTokenCredential(credentialOrOptions)) {\n credential = credentialOrOptions;\n } else {\n options = credentialOrOptions ?? {};\n }\n\n const client = _createClient(endpoint, options);\n addCredentialPipelinePolicy(client.pipeline, endpoint, { credential, clientOptions: options });\n return client;\n}\n\n/**\n * Initialize a new instance of `WidgetServiceContext`\n * @param endpoint - The parameter endpoint\n * @param options - the parameter for all optional parameters\n */\nfunction _createClient(endpoint: string, options: ClientOptions = {}): WidgetServiceContext {\n const baseUrl = options.baseUrl ?? `${endpoint}`;\n options.apiVersion = options.apiVersion ?? \"1.0.0\";\n const userAgentInfo = `azsdk-js-widget-rest/1.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n };\n const client = getClient(baseUrl, options) as WidgetServiceContext;\n return client;\n}\n"]}
@@ -0,0 +1,42 @@
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 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 { WidgetServiceClientOptions } from "./api/WidgetServiceContext.js";
12
+ export declare class WidgetServiceClient {
13
+ private _client;
14
+ /** */
15
+ constructor(endpoint: string, options?: WidgetServiceClientOptions);
16
+ constructor(endpoint: string, credential: TokenCredential, options?: WidgetServiceClientOptions);
17
+ /**
18
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
19
+ *
20
+ * It does not accept any options or parameters.
21
+ */
22
+ listWidgets(options?: ListWidgetsOptions): Promise<Widget[]>;
23
+ /** Get a widget by ID. */
24
+ getWidget(id: string, options?: GetWidgetOptions): Promise<Widget>;
25
+ /**
26
+ * Create a new widget.
27
+ *
28
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
29
+ * result in an error.
30
+ */
31
+ createWidget(weight: number, color: ColorType, options?: CreateWidgetOptions): Promise<Widget>;
32
+ /**
33
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
34
+ * are optional and will be updated within the widget if provided.
35
+ */
36
+ updateWidget(id: string, options?: UpdateWidgetOptions): Promise<Widget>;
37
+ /** Delete a widget by ID. */
38
+ deleteWidget(id: string, options?: DeleteWidgetOptions): Promise<void>;
39
+ /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
40
+ analyzeWidget(id: string, options?: AnalyzeWidgetOptions): Promise<AnalyzeResult>;
41
+ }
42
+ //# sourceMappingURL=WidgetServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,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,EACV,OAAO,GAAE,oBAA6C,GACrD,OAAO,CAAC,aAAa,CAAC;CAG1B"}
@@ -0,0 +1,52 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { isTokenCredential } from "@azure/core-auth";
4
+ import { createWidgetService } from "./api/WidgetServiceContext.js";
5
+ import { analyzeWidget, createWidget, deleteWidget, getWidget, listWidgets, updateWidget, } from "./api/index.js";
6
+ export class WidgetServiceClient {
7
+ constructor(endpoint, credentialOrOptions, options = {}) {
8
+ if (isTokenCredential(credentialOrOptions)) {
9
+ this._client = createWidgetService(endpoint, credentialOrOptions, options);
10
+ }
11
+ else {
12
+ this._client = createWidgetService(endpoint, credentialOrOptions);
13
+ }
14
+ }
15
+ /**
16
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
17
+ *
18
+ * It does not accept any options or parameters.
19
+ */
20
+ listWidgets(options = { requestOptions: {} }) {
21
+ return listWidgets(this._client, options);
22
+ }
23
+ /** Get a widget by ID. */
24
+ getWidget(id, options = { requestOptions: {} }) {
25
+ return getWidget(this._client, id, options);
26
+ }
27
+ /**
28
+ * Create a new widget.
29
+ *
30
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
31
+ * result in an error.
32
+ */
33
+ createWidget(weight, color, options = { requestOptions: {} }) {
34
+ return createWidget(this._client, weight, color, options);
35
+ }
36
+ /**
37
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
38
+ * are optional and will be updated within the widget if provided.
39
+ */
40
+ updateWidget(id, options = { requestOptions: {} }) {
41
+ return updateWidget(this._client, id, options);
42
+ }
43
+ /** Delete a widget by ID. */
44
+ deleteWidget(id, options = { requestOptions: {} }) {
45
+ return deleteWidget(this._client, id, options);
46
+ }
47
+ /** Analyze a widget. The only guarantee is that this method will return a string containing the results of the analysis. */
48
+ analyzeWidget(id, options = { requestOptions: {} }) {
49
+ return analyzeWidget(this._client, id, options);
50
+ }
51
+ }
52
+ //# sourceMappingURL=WidgetServiceClient.js.map
@@ -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;IAM9B,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 { 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"]}
@@ -0,0 +1,19 @@
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 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 { WidgetServiceContext } from "../rest/index.js";
12
+ export interface WidgetServiceClientOptions extends ClientOptions {
13
+ }
14
+ /**
15
+ * This customization adds authentication to the client.
16
+ */
17
+ export declare function createWidgetService(endpoint: string, options?: ClientOptions): WidgetServiceContext;
18
+ export declare function createWidgetService(endpoint: string, credential: TokenCredential, options?: ClientOptions): WidgetServiceContext;
19
+ //# sourceMappingURL=WidgetServiceContext.d.ts.map
@@ -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,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,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"}
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { isTokenCredential } from "@azure/core-auth";
4
+ import getClient from "../rest/widgetServiceClient.js";
5
+ export function createWidgetService(endpoint, credentialOrOptions, options = {}) {
6
+ const baseUrl = endpoint;
7
+ if (isTokenCredential(credentialOrOptions)) {
8
+ return getClient(baseUrl, credentialOrOptions, options);
9
+ }
10
+ else {
11
+ return getClient(baseUrl, credentialOrOptions);
12
+ }
13
+ }
14
+ //# sourceMappingURL=WidgetServiceContext.js.map
@@ -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 { 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,9 @@
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 declare function foo(): void;
9
+ //# sourceMappingURL=foo.d.ts.map
@@ -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"}
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * THIS IS AN AUTO-GENERATED FILE - DO 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
+ */
10
+ export function foo() {
11
+ console.log("foo");
12
+ }
13
+ //# sourceMappingURL=foo.js.map
@@ -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 { Widget, ColorType, AnalyzeResult } from "./models.js";
9
+ export { listWidgets, getWidget, createWidget, updateWidget, deleteWidget, analyzeWidget, ListWidgetsOptions, GetWidgetOptions, CreateWidgetOptions, UpdateWidgetOptions, DeleteWidgetOptions, AnalyzeWidgetOptions, } from "./operations.js";
10
+ export { createWidgetService, WidgetServiceContext, 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,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { listWidgets, getWidget, createWidget, updateWidget, deleteWidget, analyzeWidget, } from "./operations.js";
4
+ export { createWidgetService, } from "./WidgetServiceContext.js";
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 { Widget, ColorType, AnalyzeResult } from \"./models.js\";\nexport {\n listWidgets,\n getWidget,\n createWidget,\n updateWidget,\n deleteWidget,\n analyzeWidget,\n ListWidgetsOptions,\n GetWidgetOptions,\n CreateWidgetOptions,\n UpdateWidgetOptions,\n DeleteWidgetOptions,\n AnalyzeWidgetOptions,\n} from \"./operations.js\";\nexport {\n createWidgetService,\n WidgetServiceContext,\n WidgetServiceClientOptions,\n} from \"./WidgetServiceContext.js\";\n"]}
@@ -0,0 +1,25 @@
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
+ /** */
9
+ export interface Widget {
10
+ /** The UUID of this widget. This is generated automatically by the service. */
11
+ id: string;
12
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
13
+ weight: number;
14
+ /** The color of the widget. */
15
+ color: ColorType;
16
+ }
17
+ /** Type of ColorType */
18
+ /** */
19
+ export type ColorType = "red" | "blue";
20
+ /** */
21
+ export interface AnalyzeResult {
22
+ /** */
23
+ summary: string;
24
+ }
25
+ //# sourceMappingURL=models.d.ts.map
@@ -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"]}
@@ -0,0 +1,68 @@
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 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";
13
+ export interface ListWidgetsOptions extends RequestOptions {
14
+ }
15
+ export interface GetWidgetOptions extends RequestOptions {
16
+ }
17
+ export interface CreateWidgetOptions extends RequestOptions {
18
+ }
19
+ export interface UpdateWidgetOptions extends RequestOptions {
20
+ /** The weight of the widget. This is an int32, but must be greater than zero. */
21
+ weight?: number;
22
+ /** The color of the widget. */
23
+ color?: ColorType;
24
+ }
25
+ export interface DeleteWidgetOptions extends RequestOptions {
26
+ }
27
+ export interface AnalyzeWidgetOptions extends RequestOptions {
28
+ }
29
+ export declare function _listWidgetsSend(context: Client, options?: ListWidgetsOptions): StreamableMethod<ListWidgets200Response | ListWidgetsDefaultResponse>;
30
+ export declare function _listWidgetsDeserialize(result: ListWidgets200Response | ListWidgetsDefaultResponse): Promise<Widget[]>;
31
+ /**
32
+ * List all widgets in the system. This operation is not paginated, and returns a simple array of widgets.
33
+ *
34
+ * It does not accept any options or parameters.
35
+ */
36
+ export declare function listWidgets(context: Client, options?: ListWidgetsOptions): Promise<Widget[]>;
37
+ export declare function _getWidgetSend(context: Client, id: string, options?: GetWidgetOptions): StreamableMethod<GetWidget200Response | GetWidgetDefaultResponse>;
38
+ export declare function _getWidgetDeserialize(result: GetWidget200Response | GetWidgetDefaultResponse): Promise<Widget>;
39
+ /** Get a widget by ID. */
40
+ export declare function getWidget(context: Client, id: string, options?: GetWidgetOptions): Promise<Widget>;
41
+ export declare function _createWidgetSend(context: Client, weight: number, color: ColorType, options?: CreateWidgetOptions): StreamableMethod<CreateWidget201Response | CreateWidgetDefaultResponse>;
42
+ export declare function _createWidgetDeserialize(result: CreateWidget201Response | CreateWidgetDefaultResponse): Promise<Widget>;
43
+ /**
44
+ * Create a new widget.
45
+ *
46
+ * The widget ID is not required during creation, as it is automatically set by the server. Providing an ID will
47
+ * result in an error.
48
+ */
49
+ export declare function createWidget(context: Client, weight: number, color: ColorType, options?: CreateWidgetOptions): Promise<Widget>;
50
+ export declare function _updateWidgetSend(context: Client, id: string, options?: UpdateWidgetOptions): StreamableMethod<UpdateWidget200Response | UpdateWidgetDefaultResponse>;
51
+ export declare function _updateWidgetDeserialize(result: UpdateWidget200Response | UpdateWidgetDefaultResponse): Promise<Widget>;
52
+ /**
53
+ * Update the contents of the widget. The widget ID is required in the input, but cannot be changed. All other fields
54
+ * are optional and will be updated within the widget if provided.
55
+ */
56
+ export declare function updateWidget(context: Client, id: string, options?: UpdateWidgetOptions): Promise<Widget>;
57
+ export declare function _deleteWidgetSend(context: Client, id: string, options?: DeleteWidgetOptions): StreamableMethod<DeleteWidget204Response | DeleteWidgetDefaultResponse>;
58
+ export declare function _deleteWidgetDeserialize(result: DeleteWidget204Response | DeleteWidgetDefaultResponse): Promise<void>;
59
+ /** Delete a widget by ID. */
60
+ export declare function deleteWidget(context: Client, id: string, options?: DeleteWidgetOptions): Promise<void>;
61
+ export declare function _analyzeWidgetSend(context: Client, id: string, options?: AnalyzeWidgetOptions): StreamableMethod<AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse>;
62
+ export declare function _analyzeWidgetDeserialize(result: AnalyzeWidget200Response | AnalyzeWidgetDefaultResponse): Promise<AnalyzeResult>;
63
+ /**
64
+ * In this customization we will perform the following tasks in addition to the generated:
65
+ * - We are going to add special error handling for demonstration purposes
66
+ */
67
+ export declare function analyzeWidget(context: Client, id: string, options?: AnalyzeWidgetOptions): Promise<AnalyzeResult>;
68
+ //# sourceMappingURL=operations.d.ts.map
@@ -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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