@azure/arm-customerinsights 3.1.0 → 4.0.0

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 (425) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -73
  4. package/dist/index.js +8925 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/customerInsightsManagementClient.d.ts +35 -0
  9. package/dist-esm/src/customerInsightsManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/customerInsightsManagementClient.js +68 -0
  11. package/dist-esm/src/customerInsightsManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2222 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +72 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +88 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +2237 -2527
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +53 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/parameters.js +243 -163
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/authorizationPolicies.d.ts +71 -0
  33. package/dist-esm/src/operations/authorizationPolicies.d.ts.map +1 -0
  34. package/dist-esm/src/operations/authorizationPolicies.js +259 -0
  35. package/dist-esm/src/operations/authorizationPolicies.js.map +1 -0
  36. package/dist-esm/src/operations/connectorMappings.d.ts +69 -0
  37. package/dist-esm/src/operations/connectorMappings.d.ts.map +1 -0
  38. package/dist-esm/src/operations/connectorMappings.js +237 -0
  39. package/dist-esm/src/operations/connectorMappings.js.map +1 -0
  40. package/dist-esm/src/operations/connectors.d.ts +81 -0
  41. package/dist-esm/src/operations/connectors.d.ts.map +1 -0
  42. package/dist-esm/src/operations/connectors.js +310 -0
  43. package/dist-esm/src/operations/connectors.js.map +1 -0
  44. package/dist-esm/src/operations/hubs.d.ts +91 -0
  45. package/dist-esm/src/operations/hubs.d.ts.map +1 -0
  46. package/dist-esm/src/operations/hubs.js +373 -0
  47. package/dist-esm/src/operations/hubs.js.map +1 -0
  48. package/dist-esm/src/operations/images.d.ts +29 -0
  49. package/dist-esm/src/operations/images.d.ts.map +1 -0
  50. package/dist-esm/src/operations/images.js +83 -0
  51. package/dist-esm/src/operations/images.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +3 -5
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/interactions.d.ts +73 -0
  57. package/dist-esm/src/operations/interactions.d.ts.map +1 -0
  58. package/dist-esm/src/operations/interactions.js +274 -0
  59. package/dist-esm/src/operations/interactions.js.map +1 -0
  60. package/dist-esm/src/operations/kpi.d.ts +89 -0
  61. package/dist-esm/src/operations/kpi.d.ts.map +1 -0
  62. package/dist-esm/src/operations/kpi.js +334 -0
  63. package/dist-esm/src/operations/kpi.js.map +1 -0
  64. package/dist-esm/src/operations/links.d.ts +73 -0
  65. package/dist-esm/src/operations/links.d.ts.map +1 -0
  66. package/dist-esm/src/operations/links.js +269 -0
  67. package/dist-esm/src/operations/links.js.map +1 -0
  68. package/dist-esm/src/operations/operations.d.ts +32 -0
  69. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operations/operations.js +114 -0
  71. package/dist-esm/src/operations/operations.js.map +1 -0
  72. package/dist-esm/src/operations/predictions.d.ts +106 -0
  73. package/dist-esm/src/operations/predictions.d.ts.map +1 -0
  74. package/dist-esm/src/operations/predictions.js +396 -0
  75. package/dist-esm/src/operations/predictions.js.map +1 -0
  76. package/dist-esm/src/operations/profiles.d.ts +91 -0
  77. package/dist-esm/src/operations/profiles.d.ts.map +1 -0
  78. package/dist-esm/src/operations/profiles.js +346 -0
  79. package/dist-esm/src/operations/profiles.js.map +1 -0
  80. package/dist-esm/src/operations/relationshipLinks.d.ts +81 -0
  81. package/dist-esm/src/operations/relationshipLinks.d.ts.map +1 -0
  82. package/dist-esm/src/operations/relationshipLinks.js +310 -0
  83. package/dist-esm/src/operations/relationshipLinks.js.map +1 -0
  84. package/dist-esm/src/operations/relationships.d.ts +81 -0
  85. package/dist-esm/src/operations/relationships.d.ts.map +1 -0
  86. package/dist-esm/src/operations/relationships.js +310 -0
  87. package/dist-esm/src/operations/relationships.js.map +1 -0
  88. package/dist-esm/src/operations/roleAssignments.d.ts +73 -0
  89. package/dist-esm/src/operations/roleAssignments.d.ts.map +1 -0
  90. package/dist-esm/src/operations/roleAssignments.js +269 -0
  91. package/dist-esm/src/operations/roleAssignments.js.map +1 -0
  92. package/dist-esm/src/operations/roles.d.ts +38 -0
  93. package/dist-esm/src/operations/roles.d.ts.map +1 -0
  94. package/dist-esm/src/operations/roles.js +131 -0
  95. package/dist-esm/src/operations/roles.js.map +1 -0
  96. package/dist-esm/src/operations/views.d.ts +68 -0
  97. package/dist-esm/src/operations/views.d.ts.map +1 -0
  98. package/dist-esm/src/operations/views.js +221 -0
  99. package/dist-esm/src/operations/views.js.map +1 -0
  100. package/dist-esm/src/operations/widgetTypes.d.ts +46 -0
  101. package/dist-esm/src/operations/widgetTypes.d.ts.map +1 -0
  102. package/dist-esm/src/operations/widgetTypes.js +160 -0
  103. package/dist-esm/src/operations/widgetTypes.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/authorizationPolicies.d.ts +46 -0
  105. package/dist-esm/src/operationsInterfaces/authorizationPolicies.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/authorizationPolicies.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/authorizationPolicies.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/connectorMappings.d.ts +42 -0
  109. package/dist-esm/src/operationsInterfaces/connectorMappings.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/connectorMappings.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/connectorMappings.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/connectors.d.ts +56 -0
  113. package/dist-esm/src/operationsInterfaces/connectors.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/connectors.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/connectors.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/hubs.d.ts +55 -0
  117. package/dist-esm/src/operationsInterfaces/hubs.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/hubs.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/hubs.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/images.d.ts +21 -0
  121. package/dist-esm/src/operationsInterfaces/images.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/images.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/images.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +18 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/index.js +25 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/interactions.d.ts +48 -0
  129. package/dist-esm/src/operationsInterfaces/interactions.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/interactions.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/interactions.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/kpi.d.ts +64 -0
  133. package/dist-esm/src/operationsInterfaces/kpi.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/kpi.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/kpi.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/links.d.ts +48 -0
  137. package/dist-esm/src/operationsInterfaces/links.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/links.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/links.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  141. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/predictions.d.ts +81 -0
  145. package/dist-esm/src/operationsInterfaces/predictions.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/predictions.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/predictions.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/profiles.d.ts +66 -0
  149. package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/profiles.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/profiles.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/relationshipLinks.d.ts +56 -0
  153. package/dist-esm/src/operationsInterfaces/relationshipLinks.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/relationshipLinks.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/relationshipLinks.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/relationships.d.ts +56 -0
  157. package/dist-esm/src/operationsInterfaces/relationships.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/relationships.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/relationships.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/roleAssignments.d.ts +48 -0
  161. package/dist-esm/src/operationsInterfaces/roleAssignments.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/roleAssignments.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/roleAssignments.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/roles.d.ts +13 -0
  165. package/dist-esm/src/operationsInterfaces/roles.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/roles.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/roles.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/views.d.ts +41 -0
  169. package/dist-esm/src/operationsInterfaces/views.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/views.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/views.js.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/widgetTypes.d.ts +21 -0
  173. package/dist-esm/src/operationsInterfaces/widgetTypes.d.ts.map +1 -0
  174. package/dist-esm/src/operationsInterfaces/widgetTypes.js +9 -0
  175. package/dist-esm/src/operationsInterfaces/widgetTypes.js.map +1 -0
  176. package/dist-esm/test/sampleTest.d.ts +2 -0
  177. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  178. package/dist-esm/test/sampleTest.js +40 -0
  179. package/dist-esm/test/sampleTest.js.map +1 -0
  180. package/package.json +70 -34
  181. package/review/arm-customerinsights.api.md +1833 -0
  182. package/rollup.config.js +184 -27
  183. package/src/customerInsightsManagementClient.ts +144 -0
  184. package/src/index.ts +12 -0
  185. package/src/lroImpl.ts +34 -0
  186. package/src/models/index.ts +2454 -0
  187. package/{lib → src}/models/mappers.ts +2289 -2562
  188. package/src/models/parameters.ts +569 -0
  189. package/src/operations/authorizationPolicies.ts +348 -0
  190. package/src/operations/connectorMappings.ts +338 -0
  191. package/src/operations/connectors.ts +443 -0
  192. package/src/operations/hubs.ts +477 -0
  193. package/src/operations/images.ts +116 -0
  194. package/{lib → src}/operations/index.ts +3 -5
  195. package/src/operations/interactions.ts +383 -0
  196. package/src/operations/kpi.ts +478 -0
  197. package/src/operations/links.ts +377 -0
  198. package/src/operations/operations.ts +131 -0
  199. package/src/operations/predictions.ts +566 -0
  200. package/src/operations/profiles.ts +491 -0
  201. package/src/operations/relationshipLinks.ts +443 -0
  202. package/src/operations/relationships.ts +443 -0
  203. package/src/operations/roleAssignments.ts +377 -0
  204. package/src/operations/roles.ts +171 -0
  205. package/src/operations/views.ts +321 -0
  206. package/src/operations/widgetTypes.ts +212 -0
  207. package/src/operationsInterfaces/authorizationPolicies.ts +91 -0
  208. package/src/operationsInterfaces/connectorMappings.ts +83 -0
  209. package/src/operationsInterfaces/connectors.ts +109 -0
  210. package/src/operationsInterfaces/hubs.ts +100 -0
  211. package/src/operationsInterfaces/images.ts +45 -0
  212. package/src/operationsInterfaces/index.ts +25 -0
  213. package/src/operationsInterfaces/interactions.ts +97 -0
  214. package/src/operationsInterfaces/kpi.ts +123 -0
  215. package/src/operationsInterfaces/links.ts +96 -0
  216. package/src/operationsInterfaces/operations.ts +22 -0
  217. package/src/operationsInterfaces/predictions.ts +156 -0
  218. package/src/operationsInterfaces/profiles.ts +126 -0
  219. package/src/operationsInterfaces/relationshipLinks.ts +109 -0
  220. package/src/operationsInterfaces/relationships.ts +109 -0
  221. package/src/operationsInterfaces/roleAssignments.ts +96 -0
  222. package/src/operationsInterfaces/roles.ts +26 -0
  223. package/src/operationsInterfaces/views.ts +81 -0
  224. package/src/operationsInterfaces/widgetTypes.ts +44 -0
  225. package/tsconfig.json +4 -4
  226. package/types/arm-customerinsights.d.ts +3254 -0
  227. package/types/tsdoc-metadata.json +11 -0
  228. package/dist/arm-customerinsights.js +0 -9229
  229. package/dist/arm-customerinsights.js.map +0 -1
  230. package/dist/arm-customerinsights.min.js +0 -1
  231. package/dist/arm-customerinsights.min.js.map +0 -1
  232. package/esm/customerInsightsManagementClient.d.ts +0 -35
  233. package/esm/customerInsightsManagementClient.d.ts.map +0 -1
  234. package/esm/customerInsightsManagementClient.js +0 -50
  235. package/esm/customerInsightsManagementClient.js.map +0 -1
  236. package/esm/customerInsightsManagementClientContext.d.ts +0 -17
  237. package/esm/customerInsightsManagementClientContext.d.ts.map +0 -1
  238. package/esm/customerInsightsManagementClientContext.js +0 -57
  239. package/esm/customerInsightsManagementClientContext.js.map +0 -1
  240. package/esm/models/authorizationPoliciesMappers.d.ts +0 -2
  241. package/esm/models/authorizationPoliciesMappers.d.ts.map +0 -1
  242. package/esm/models/authorizationPoliciesMappers.js +0 -11
  243. package/esm/models/authorizationPoliciesMappers.js.map +0 -1
  244. package/esm/models/connectorMappingsMappers.d.ts +0 -2
  245. package/esm/models/connectorMappingsMappers.d.ts.map +0 -1
  246. package/esm/models/connectorMappingsMappers.js +0 -11
  247. package/esm/models/connectorMappingsMappers.js.map +0 -1
  248. package/esm/models/connectorsMappers.d.ts +0 -2
  249. package/esm/models/connectorsMappers.d.ts.map +0 -1
  250. package/esm/models/connectorsMappers.js +0 -11
  251. package/esm/models/connectorsMappers.js.map +0 -1
  252. package/esm/models/hubsMappers.d.ts +0 -2
  253. package/esm/models/hubsMappers.d.ts.map +0 -1
  254. package/esm/models/hubsMappers.js +0 -11
  255. package/esm/models/hubsMappers.js.map +0 -1
  256. package/esm/models/imagesMappers.d.ts +0 -2
  257. package/esm/models/imagesMappers.d.ts.map +0 -1
  258. package/esm/models/imagesMappers.js +0 -11
  259. package/esm/models/imagesMappers.js.map +0 -1
  260. package/esm/models/index.d.ts +0 -4582
  261. package/esm/models/index.d.ts.map +0 -1
  262. package/esm/models/index.js +0 -10
  263. package/esm/models/index.js.map +0 -1
  264. package/esm/models/interactionsMappers.d.ts +0 -2
  265. package/esm/models/interactionsMappers.d.ts.map +0 -1
  266. package/esm/models/interactionsMappers.js +0 -11
  267. package/esm/models/interactionsMappers.js.map +0 -1
  268. package/esm/models/kpiMappers.d.ts +0 -2
  269. package/esm/models/kpiMappers.d.ts.map +0 -1
  270. package/esm/models/kpiMappers.js +0 -11
  271. package/esm/models/kpiMappers.js.map +0 -1
  272. package/esm/models/linksMappers.d.ts +0 -2
  273. package/esm/models/linksMappers.d.ts.map +0 -1
  274. package/esm/models/linksMappers.js +0 -11
  275. package/esm/models/linksMappers.js.map +0 -1
  276. package/esm/models/mappers.d.ts +0 -88
  277. package/esm/models/mappers.d.ts.map +0 -1
  278. package/esm/models/mappers.js.map +0 -1
  279. package/esm/models/operationsMappers.d.ts +0 -2
  280. package/esm/models/operationsMappers.d.ts.map +0 -1
  281. package/esm/models/operationsMappers.js +0 -11
  282. package/esm/models/operationsMappers.js.map +0 -1
  283. package/esm/models/parameters.d.ts +0 -36
  284. package/esm/models/parameters.d.ts.map +0 -1
  285. package/esm/models/parameters.js.map +0 -1
  286. package/esm/models/predictionsMappers.d.ts +0 -2
  287. package/esm/models/predictionsMappers.d.ts.map +0 -1
  288. package/esm/models/predictionsMappers.js +0 -11
  289. package/esm/models/predictionsMappers.js.map +0 -1
  290. package/esm/models/profilesMappers.d.ts +0 -2
  291. package/esm/models/profilesMappers.d.ts.map +0 -1
  292. package/esm/models/profilesMappers.js +0 -11
  293. package/esm/models/profilesMappers.js.map +0 -1
  294. package/esm/models/relationshipLinksMappers.d.ts +0 -2
  295. package/esm/models/relationshipLinksMappers.d.ts.map +0 -1
  296. package/esm/models/relationshipLinksMappers.js +0 -11
  297. package/esm/models/relationshipLinksMappers.js.map +0 -1
  298. package/esm/models/relationshipsMappers.d.ts +0 -2
  299. package/esm/models/relationshipsMappers.d.ts.map +0 -1
  300. package/esm/models/relationshipsMappers.js +0 -11
  301. package/esm/models/relationshipsMappers.js.map +0 -1
  302. package/esm/models/roleAssignmentsMappers.d.ts +0 -2
  303. package/esm/models/roleAssignmentsMappers.d.ts.map +0 -1
  304. package/esm/models/roleAssignmentsMappers.js +0 -11
  305. package/esm/models/roleAssignmentsMappers.js.map +0 -1
  306. package/esm/models/rolesMappers.d.ts +0 -2
  307. package/esm/models/rolesMappers.d.ts.map +0 -1
  308. package/esm/models/rolesMappers.js +0 -11
  309. package/esm/models/rolesMappers.js.map +0 -1
  310. package/esm/models/viewsMappers.d.ts +0 -2
  311. package/esm/models/viewsMappers.d.ts.map +0 -1
  312. package/esm/models/viewsMappers.js +0 -11
  313. package/esm/models/viewsMappers.js.map +0 -1
  314. package/esm/models/widgetTypesMappers.d.ts +0 -2
  315. package/esm/models/widgetTypesMappers.d.ts.map +0 -1
  316. package/esm/models/widgetTypesMappers.js +0 -11
  317. package/esm/models/widgetTypesMappers.js.map +0 -1
  318. package/esm/operations/authorizationPolicies.d.ts +0 -151
  319. package/esm/operations/authorizationPolicies.d.ts.map +0 -1
  320. package/esm/operations/authorizationPolicies.js +0 -225
  321. package/esm/operations/authorizationPolicies.js.map +0 -1
  322. package/esm/operations/connectorMappings.d.ts +0 -139
  323. package/esm/operations/connectorMappings.d.ts.map +0 -1
  324. package/esm/operations/connectorMappings.js +0 -199
  325. package/esm/operations/connectorMappings.js.map +0 -1
  326. package/esm/operations/connectors.d.ts +0 -115
  327. package/esm/operations/connectors.d.ts.map +0 -1
  328. package/esm/operations/connectors.js +0 -232
  329. package/esm/operations/connectors.js.map +0 -1
  330. package/esm/operations/hubs.d.ts +0 -168
  331. package/esm/operations/hubs.d.ts.map +0 -1
  332. package/esm/operations/hubs.js +0 -291
  333. package/esm/operations/hubs.js.map +0 -1
  334. package/esm/operations/images.d.ts +0 -61
  335. package/esm/operations/images.d.ts.map +0 -1
  336. package/esm/operations/images.js +0 -100
  337. package/esm/operations/images.js.map +0 -1
  338. package/esm/operations/index.d.ts.map +0 -1
  339. package/esm/operations/index.js.map +0 -1
  340. package/esm/operations/interactions.d.ts +0 -121
  341. package/esm/operations/interactions.d.ts.map +0 -1
  342. package/esm/operations/interactions.js +0 -214
  343. package/esm/operations/interactions.js.map +0 -1
  344. package/esm/operations/kpi.d.ts +0 -139
  345. package/esm/operations/kpi.d.ts.map +0 -1
  346. package/esm/operations/kpi.js +0 -262
  347. package/esm/operations/kpi.js.map +0 -1
  348. package/esm/operations/links.d.ts +0 -121
  349. package/esm/operations/links.d.ts.map +0 -1
  350. package/esm/operations/links.js +0 -211
  351. package/esm/operations/links.js.map +0 -1
  352. package/esm/operations/operations.d.ts +0 -46
  353. package/esm/operations/operations.d.ts.map +0 -1
  354. package/esm/operations/operations.js +0 -77
  355. package/esm/operations/operations.js.map +0 -1
  356. package/esm/operations/predictions.d.ts +0 -190
  357. package/esm/operations/predictions.d.ts.map +0 -1
  358. package/esm/operations/predictions.js +0 -333
  359. package/esm/operations/predictions.js.map +0 -1
  360. package/esm/operations/profiles.d.ts +0 -141
  361. package/esm/operations/profiles.d.ts.map +0 -1
  362. package/esm/operations/profiles.js +0 -279
  363. package/esm/operations/profiles.js.map +0 -1
  364. package/esm/operations/relationshipLinks.d.ts +0 -115
  365. package/esm/operations/relationshipLinks.d.ts.map +0 -1
  366. package/esm/operations/relationshipLinks.js +0 -231
  367. package/esm/operations/relationshipLinks.js.map +0 -1
  368. package/esm/operations/relationships.d.ts +0 -115
  369. package/esm/operations/relationships.d.ts.map +0 -1
  370. package/esm/operations/relationships.js +0 -231
  371. package/esm/operations/relationships.js.map +0 -1
  372. package/esm/operations/roleAssignments.d.ts +0 -121
  373. package/esm/operations/roleAssignments.d.ts.map +0 -1
  374. package/esm/operations/roleAssignments.js +0 -212
  375. package/esm/operations/roleAssignments.js.map +0 -1
  376. package/esm/operations/roles.d.ts +0 -52
  377. package/esm/operations/roles.d.ts.map +0 -1
  378. package/esm/operations/roles.js +0 -84
  379. package/esm/operations/roles.js.map +0 -1
  380. package/esm/operations/views.d.ts +0 -136
  381. package/esm/operations/views.d.ts.map +0 -1
  382. package/esm/operations/views.js +0 -193
  383. package/esm/operations/views.js.map +0 -1
  384. package/esm/operations/widgetTypes.d.ts +0 -76
  385. package/esm/operations/widgetTypes.d.ts.map +0 -1
  386. package/esm/operations/widgetTypes.js +0 -117
  387. package/esm/operations/widgetTypes.js.map +0 -1
  388. package/lib/customerInsightsManagementClient.ts +0 -75
  389. package/lib/customerInsightsManagementClientContext.ts +0 -63
  390. package/lib/models/authorizationPoliciesMappers.ts +0 -62
  391. package/lib/models/connectorMappingsMappers.ts +0 -61
  392. package/lib/models/connectorsMappers.ts +0 -61
  393. package/lib/models/hubsMappers.ts +0 -61
  394. package/lib/models/imagesMappers.ts +0 -16
  395. package/lib/models/index.ts +0 -4702
  396. package/lib/models/interactionsMappers.ts +0 -63
  397. package/lib/models/kpiMappers.ts +0 -61
  398. package/lib/models/linksMappers.ts +0 -61
  399. package/lib/models/operationsMappers.ts +0 -17
  400. package/lib/models/parameters.ts +0 -419
  401. package/lib/models/predictionsMappers.ts +0 -67
  402. package/lib/models/profilesMappers.ts +0 -63
  403. package/lib/models/relationshipLinksMappers.ts +0 -61
  404. package/lib/models/relationshipsMappers.ts +0 -61
  405. package/lib/models/roleAssignmentsMappers.ts +0 -61
  406. package/lib/models/rolesMappers.ts +0 -61
  407. package/lib/models/viewsMappers.ts +0 -61
  408. package/lib/models/widgetTypesMappers.ts +0 -61
  409. package/lib/operations/authorizationPolicies.ts +0 -398
  410. package/lib/operations/connectorMappings.ts +0 -355
  411. package/lib/operations/connectors.ts +0 -328
  412. package/lib/operations/hubs.ts +0 -479
  413. package/lib/operations/images.ts +0 -166
  414. package/lib/operations/interactions.ts +0 -333
  415. package/lib/operations/kpi.ts +0 -387
  416. package/lib/operations/links.ts +0 -330
  417. package/lib/operations/operations.ts +0 -123
  418. package/lib/operations/predictions.ts +0 -522
  419. package/lib/operations/profiles.ts +0 -406
  420. package/lib/operations/relationshipLinks.ts +0 -327
  421. package/lib/operations/relationships.ts +0 -327
  422. package/lib/operations/roleAssignments.ts +0 -331
  423. package/lib/operations/roles.ts +0 -136
  424. package/lib/operations/views.ts +0 -346
  425. package/lib/operations/widgetTypes.ts +0 -198
@@ -0,0 +1,443 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { RelationshipLinks } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { CustomerInsightsManagementClient } from "../customerInsightsManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ RelationshipLinkResourceFormat,
19
+ RelationshipLinksListByHubNextOptionalParams,
20
+ RelationshipLinksListByHubOptionalParams,
21
+ RelationshipLinksCreateOrUpdateOptionalParams,
22
+ RelationshipLinksCreateOrUpdateResponse,
23
+ RelationshipLinksGetOptionalParams,
24
+ RelationshipLinksGetResponse,
25
+ RelationshipLinksDeleteOptionalParams,
26
+ RelationshipLinksListByHubResponse,
27
+ RelationshipLinksListByHubNextResponse
28
+ } from "../models";
29
+
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing RelationshipLinks operations. */
32
+ export class RelationshipLinksImpl implements RelationshipLinks {
33
+ private readonly client: CustomerInsightsManagementClient;
34
+
35
+ /**
36
+ * Initialize a new instance of the class RelationshipLinks class.
37
+ * @param client Reference to the service client
38
+ */
39
+ constructor(client: CustomerInsightsManagementClient) {
40
+ this.client = client;
41
+ }
42
+
43
+ /**
44
+ * Gets all relationship links in the hub.
45
+ * @param resourceGroupName The name of the resource group.
46
+ * @param hubName The name of the hub.
47
+ * @param options The options parameters.
48
+ */
49
+ public listByHub(
50
+ resourceGroupName: string,
51
+ hubName: string,
52
+ options?: RelationshipLinksListByHubOptionalParams
53
+ ): PagedAsyncIterableIterator<RelationshipLinkResourceFormat> {
54
+ const iter = this.listByHubPagingAll(resourceGroupName, hubName, options);
55
+ return {
56
+ next() {
57
+ return iter.next();
58
+ },
59
+ [Symbol.asyncIterator]() {
60
+ return this;
61
+ },
62
+ byPage: () => {
63
+ return this.listByHubPagingPage(resourceGroupName, hubName, options);
64
+ }
65
+ };
66
+ }
67
+
68
+ private async *listByHubPagingPage(
69
+ resourceGroupName: string,
70
+ hubName: string,
71
+ options?: RelationshipLinksListByHubOptionalParams
72
+ ): AsyncIterableIterator<RelationshipLinkResourceFormat[]> {
73
+ let result = await this._listByHub(resourceGroupName, hubName, options);
74
+ yield result.value || [];
75
+ let continuationToken = result.nextLink;
76
+ while (continuationToken) {
77
+ result = await this._listByHubNext(
78
+ resourceGroupName,
79
+ hubName,
80
+ continuationToken,
81
+ options
82
+ );
83
+ continuationToken = result.nextLink;
84
+ yield result.value || [];
85
+ }
86
+ }
87
+
88
+ private async *listByHubPagingAll(
89
+ resourceGroupName: string,
90
+ hubName: string,
91
+ options?: RelationshipLinksListByHubOptionalParams
92
+ ): AsyncIterableIterator<RelationshipLinkResourceFormat> {
93
+ for await (const page of this.listByHubPagingPage(
94
+ resourceGroupName,
95
+ hubName,
96
+ options
97
+ )) {
98
+ yield* page;
99
+ }
100
+ }
101
+
102
+ /**
103
+ * Creates a relationship link or updates an existing relationship link within a hub.
104
+ * @param resourceGroupName The name of the resource group.
105
+ * @param hubName The name of the hub.
106
+ * @param relationshipLinkName The name of the relationship link.
107
+ * @param parameters Parameters supplied to the CreateOrUpdate relationship link operation.
108
+ * @param options The options parameters.
109
+ */
110
+ async beginCreateOrUpdate(
111
+ resourceGroupName: string,
112
+ hubName: string,
113
+ relationshipLinkName: string,
114
+ parameters: RelationshipLinkResourceFormat,
115
+ options?: RelationshipLinksCreateOrUpdateOptionalParams
116
+ ): Promise<
117
+ PollerLike<
118
+ PollOperationState<RelationshipLinksCreateOrUpdateResponse>,
119
+ RelationshipLinksCreateOrUpdateResponse
120
+ >
121
+ > {
122
+ const directSendOperation = async (
123
+ args: coreClient.OperationArguments,
124
+ spec: coreClient.OperationSpec
125
+ ): Promise<RelationshipLinksCreateOrUpdateResponse> => {
126
+ return this.client.sendOperationRequest(args, spec);
127
+ };
128
+ const sendOperation = async (
129
+ args: coreClient.OperationArguments,
130
+ spec: coreClient.OperationSpec
131
+ ) => {
132
+ let currentRawResponse:
133
+ | coreClient.FullOperationResponse
134
+ | undefined = undefined;
135
+ const providedCallback = args.options?.onResponse;
136
+ const callback: coreClient.RawResponseCallback = (
137
+ rawResponse: coreClient.FullOperationResponse,
138
+ flatResponse: unknown
139
+ ) => {
140
+ currentRawResponse = rawResponse;
141
+ providedCallback?.(rawResponse, flatResponse);
142
+ };
143
+ const updatedArgs = {
144
+ ...args,
145
+ options: {
146
+ ...args.options,
147
+ onResponse: callback
148
+ }
149
+ };
150
+ const flatResponse = await directSendOperation(updatedArgs, spec);
151
+ return {
152
+ flatResponse,
153
+ rawResponse: {
154
+ statusCode: currentRawResponse!.status,
155
+ body: currentRawResponse!.parsedBody,
156
+ headers: currentRawResponse!.headers.toJSON()
157
+ }
158
+ };
159
+ };
160
+
161
+ const lro = new LroImpl(
162
+ sendOperation,
163
+ { resourceGroupName, hubName, relationshipLinkName, parameters, options },
164
+ createOrUpdateOperationSpec
165
+ );
166
+ return new LroEngine(lro, {
167
+ resumeFrom: options?.resumeFrom,
168
+ intervalInMs: options?.updateIntervalInMs
169
+ });
170
+ }
171
+
172
+ /**
173
+ * Creates a relationship link or updates an existing relationship link within a hub.
174
+ * @param resourceGroupName The name of the resource group.
175
+ * @param hubName The name of the hub.
176
+ * @param relationshipLinkName The name of the relationship link.
177
+ * @param parameters Parameters supplied to the CreateOrUpdate relationship link operation.
178
+ * @param options The options parameters.
179
+ */
180
+ async beginCreateOrUpdateAndWait(
181
+ resourceGroupName: string,
182
+ hubName: string,
183
+ relationshipLinkName: string,
184
+ parameters: RelationshipLinkResourceFormat,
185
+ options?: RelationshipLinksCreateOrUpdateOptionalParams
186
+ ): Promise<RelationshipLinksCreateOrUpdateResponse> {
187
+ const poller = await this.beginCreateOrUpdate(
188
+ resourceGroupName,
189
+ hubName,
190
+ relationshipLinkName,
191
+ parameters,
192
+ options
193
+ );
194
+ return poller.pollUntilDone();
195
+ }
196
+
197
+ /**
198
+ * Gets information about the specified relationship Link.
199
+ * @param resourceGroupName The name of the resource group.
200
+ * @param hubName The name of the hub.
201
+ * @param relationshipLinkName The name of the relationship link.
202
+ * @param options The options parameters.
203
+ */
204
+ get(
205
+ resourceGroupName: string,
206
+ hubName: string,
207
+ relationshipLinkName: string,
208
+ options?: RelationshipLinksGetOptionalParams
209
+ ): Promise<RelationshipLinksGetResponse> {
210
+ return this.client.sendOperationRequest(
211
+ { resourceGroupName, hubName, relationshipLinkName, options },
212
+ getOperationSpec
213
+ );
214
+ }
215
+
216
+ /**
217
+ * Deletes a relationship link within a hub.
218
+ * @param resourceGroupName The name of the resource group.
219
+ * @param hubName The name of the hub.
220
+ * @param relationshipLinkName The name of the relationship.
221
+ * @param options The options parameters.
222
+ */
223
+ async beginDelete(
224
+ resourceGroupName: string,
225
+ hubName: string,
226
+ relationshipLinkName: string,
227
+ options?: RelationshipLinksDeleteOptionalParams
228
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
229
+ const directSendOperation = async (
230
+ args: coreClient.OperationArguments,
231
+ spec: coreClient.OperationSpec
232
+ ): Promise<void> => {
233
+ return this.client.sendOperationRequest(args, spec);
234
+ };
235
+ const sendOperation = async (
236
+ args: coreClient.OperationArguments,
237
+ spec: coreClient.OperationSpec
238
+ ) => {
239
+ let currentRawResponse:
240
+ | coreClient.FullOperationResponse
241
+ | undefined = undefined;
242
+ const providedCallback = args.options?.onResponse;
243
+ const callback: coreClient.RawResponseCallback = (
244
+ rawResponse: coreClient.FullOperationResponse,
245
+ flatResponse: unknown
246
+ ) => {
247
+ currentRawResponse = rawResponse;
248
+ providedCallback?.(rawResponse, flatResponse);
249
+ };
250
+ const updatedArgs = {
251
+ ...args,
252
+ options: {
253
+ ...args.options,
254
+ onResponse: callback
255
+ }
256
+ };
257
+ const flatResponse = await directSendOperation(updatedArgs, spec);
258
+ return {
259
+ flatResponse,
260
+ rawResponse: {
261
+ statusCode: currentRawResponse!.status,
262
+ body: currentRawResponse!.parsedBody,
263
+ headers: currentRawResponse!.headers.toJSON()
264
+ }
265
+ };
266
+ };
267
+
268
+ const lro = new LroImpl(
269
+ sendOperation,
270
+ { resourceGroupName, hubName, relationshipLinkName, options },
271
+ deleteOperationSpec
272
+ );
273
+ return new LroEngine(lro, {
274
+ resumeFrom: options?.resumeFrom,
275
+ intervalInMs: options?.updateIntervalInMs
276
+ });
277
+ }
278
+
279
+ /**
280
+ * Deletes a relationship link within a hub.
281
+ * @param resourceGroupName The name of the resource group.
282
+ * @param hubName The name of the hub.
283
+ * @param relationshipLinkName The name of the relationship.
284
+ * @param options The options parameters.
285
+ */
286
+ async beginDeleteAndWait(
287
+ resourceGroupName: string,
288
+ hubName: string,
289
+ relationshipLinkName: string,
290
+ options?: RelationshipLinksDeleteOptionalParams
291
+ ): Promise<void> {
292
+ const poller = await this.beginDelete(
293
+ resourceGroupName,
294
+ hubName,
295
+ relationshipLinkName,
296
+ options
297
+ );
298
+ return poller.pollUntilDone();
299
+ }
300
+
301
+ /**
302
+ * Gets all relationship links in the hub.
303
+ * @param resourceGroupName The name of the resource group.
304
+ * @param hubName The name of the hub.
305
+ * @param options The options parameters.
306
+ */
307
+ private _listByHub(
308
+ resourceGroupName: string,
309
+ hubName: string,
310
+ options?: RelationshipLinksListByHubOptionalParams
311
+ ): Promise<RelationshipLinksListByHubResponse> {
312
+ return this.client.sendOperationRequest(
313
+ { resourceGroupName, hubName, options },
314
+ listByHubOperationSpec
315
+ );
316
+ }
317
+
318
+ /**
319
+ * ListByHubNext
320
+ * @param resourceGroupName The name of the resource group.
321
+ * @param hubName The name of the hub.
322
+ * @param nextLink The nextLink from the previous successful call to the ListByHub method.
323
+ * @param options The options parameters.
324
+ */
325
+ private _listByHubNext(
326
+ resourceGroupName: string,
327
+ hubName: string,
328
+ nextLink: string,
329
+ options?: RelationshipLinksListByHubNextOptionalParams
330
+ ): Promise<RelationshipLinksListByHubNextResponse> {
331
+ return this.client.sendOperationRequest(
332
+ { resourceGroupName, hubName, nextLink, options },
333
+ listByHubNextOperationSpec
334
+ );
335
+ }
336
+ }
337
+ // Operation Specifications
338
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
339
+
340
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
341
+ path:
342
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName}",
343
+ httpMethod: "PUT",
344
+ responses: {
345
+ 200: {
346
+ bodyMapper: Mappers.RelationshipLinkResourceFormat
347
+ },
348
+ 201: {
349
+ bodyMapper: Mappers.RelationshipLinkResourceFormat
350
+ },
351
+ 202: {
352
+ bodyMapper: Mappers.RelationshipLinkResourceFormat
353
+ },
354
+ 204: {
355
+ bodyMapper: Mappers.RelationshipLinkResourceFormat
356
+ }
357
+ },
358
+ requestBody: Parameters.parameters4,
359
+ queryParameters: [Parameters.apiVersion],
360
+ urlParameters: [
361
+ Parameters.$host,
362
+ Parameters.resourceGroupName,
363
+ Parameters.subscriptionId,
364
+ Parameters.hubName1,
365
+ Parameters.relationshipLinkName
366
+ ],
367
+ headerParameters: [Parameters.accept, Parameters.contentType],
368
+ mediaType: "json",
369
+ serializer
370
+ };
371
+ const getOperationSpec: coreClient.OperationSpec = {
372
+ path:
373
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName}",
374
+ httpMethod: "GET",
375
+ responses: {
376
+ 200: {
377
+ bodyMapper: Mappers.RelationshipLinkResourceFormat
378
+ }
379
+ },
380
+ queryParameters: [Parameters.apiVersion],
381
+ urlParameters: [
382
+ Parameters.$host,
383
+ Parameters.resourceGroupName,
384
+ Parameters.subscriptionId,
385
+ Parameters.hubName1,
386
+ Parameters.relationshipLinkName1
387
+ ],
388
+ headerParameters: [Parameters.accept],
389
+ serializer
390
+ };
391
+ const deleteOperationSpec: coreClient.OperationSpec = {
392
+ path:
393
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks/{relationshipLinkName}",
394
+ httpMethod: "DELETE",
395
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
396
+ queryParameters: [Parameters.apiVersion],
397
+ urlParameters: [
398
+ Parameters.$host,
399
+ Parameters.resourceGroupName,
400
+ Parameters.subscriptionId,
401
+ Parameters.hubName1,
402
+ Parameters.relationshipLinkName1
403
+ ],
404
+ serializer
405
+ };
406
+ const listByHubOperationSpec: coreClient.OperationSpec = {
407
+ path:
408
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks",
409
+ httpMethod: "GET",
410
+ responses: {
411
+ 200: {
412
+ bodyMapper: Mappers.RelationshipLinkListResult
413
+ }
414
+ },
415
+ queryParameters: [Parameters.apiVersion],
416
+ urlParameters: [
417
+ Parameters.$host,
418
+ Parameters.resourceGroupName,
419
+ Parameters.subscriptionId,
420
+ Parameters.hubName1
421
+ ],
422
+ headerParameters: [Parameters.accept],
423
+ serializer
424
+ };
425
+ const listByHubNextOperationSpec: coreClient.OperationSpec = {
426
+ path: "{nextLink}",
427
+ httpMethod: "GET",
428
+ responses: {
429
+ 200: {
430
+ bodyMapper: Mappers.RelationshipLinkListResult
431
+ }
432
+ },
433
+ queryParameters: [Parameters.apiVersion],
434
+ urlParameters: [
435
+ Parameters.$host,
436
+ Parameters.nextLink,
437
+ Parameters.resourceGroupName,
438
+ Parameters.subscriptionId,
439
+ Parameters.hubName1
440
+ ],
441
+ headerParameters: [Parameters.accept],
442
+ serializer
443
+ };