@microsoft/teams.client 0.2.11 → 0.2.13

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 (458) hide show
  1. package/README.md +37 -37
  2. package/dist/app.d.mts +25 -4
  3. package/dist/app.d.ts +25 -4
  4. package/dist/app.js +44 -7
  5. package/dist/app.js.map +1 -1
  6. package/dist/app.mjs +44 -7
  7. package/dist/app.mjs.map +1 -1
  8. package/dist/graph-utils.d.mts +10 -0
  9. package/dist/graph-utils.d.ts +10 -0
  10. package/dist/graph-utils.js +50 -0
  11. package/dist/graph-utils.js.map +1 -0
  12. package/dist/graph-utils.mjs +27 -0
  13. package/dist/graph-utils.mjs.map +1 -0
  14. package/dist/index.d.mts +3 -53
  15. package/dist/index.d.ts +3 -53
  16. package/dist/index.js +3 -34
  17. package/dist/index.mjs +1 -4
  18. package/dist/msal-utils.d.mts +11 -1
  19. package/dist/msal-utils.d.ts +11 -1
  20. package/dist/msal-utils.js +14 -0
  21. package/dist/msal-utils.js.map +1 -1
  22. package/dist/msal-utils.mjs +14 -1
  23. package/dist/msal-utils.mjs.map +1 -1
  24. package/package.json +4 -2
  25. package/dist/context/app-host.d.mts +0 -25
  26. package/dist/context/app-host.d.ts +0 -25
  27. package/dist/context/app-host.js +0 -4
  28. package/dist/context/app-host.js.map +0 -1
  29. package/dist/context/app-host.mjs +0 -3
  30. package/dist/context/app-host.mjs.map +0 -1
  31. package/dist/context/app.d.mts +0 -69
  32. package/dist/context/app.d.ts +0 -69
  33. package/dist/context/app.js +0 -4
  34. package/dist/context/app.js.map +0 -1
  35. package/dist/context/app.mjs +0 -3
  36. package/dist/context/app.mjs.map +0 -1
  37. package/dist/context/channel.d.mts +0 -37
  38. package/dist/context/channel.d.ts +0 -37
  39. package/dist/context/channel.js +0 -4
  40. package/dist/context/channel.js.map +0 -1
  41. package/dist/context/channel.mjs +0 -3
  42. package/dist/context/channel.mjs.map +0 -1
  43. package/dist/context/chat.d.mts +0 -11
  44. package/dist/context/chat.d.ts +0 -11
  45. package/dist/context/chat.js +0 -4
  46. package/dist/context/chat.js.map +0 -1
  47. package/dist/context/chat.mjs +0 -3
  48. package/dist/context/chat.mjs.map +0 -1
  49. package/dist/context/index.d.mts +0 -74
  50. package/dist/context/index.d.ts +0 -74
  51. package/dist/context/index.js +0 -108
  52. package/dist/context/index.js.map +0 -1
  53. package/dist/context/index.mjs +0 -86
  54. package/dist/context/index.mjs.map +0 -1
  55. package/dist/context/meeting.d.mts +0 -11
  56. package/dist/context/meeting.d.ts +0 -11
  57. package/dist/context/meeting.js +0 -4
  58. package/dist/context/meeting.js.map +0 -1
  59. package/dist/context/meeting.mjs +0 -3
  60. package/dist/context/meeting.mjs.map +0 -1
  61. package/dist/context/page.d.mts +0 -40
  62. package/dist/context/page.d.ts +0 -40
  63. package/dist/context/page.js +0 -4
  64. package/dist/context/page.js.map +0 -1
  65. package/dist/context/page.mjs +0 -3
  66. package/dist/context/page.mjs.map +0 -1
  67. package/dist/context/share-point-site.d.mts +0 -31
  68. package/dist/context/share-point-site.d.ts +0 -31
  69. package/dist/context/share-point-site.js +0 -4
  70. package/dist/context/share-point-site.js.map +0 -1
  71. package/dist/context/share-point-site.mjs +0 -3
  72. package/dist/context/share-point-site.mjs.map +0 -1
  73. package/dist/context/team.d.mts +0 -42
  74. package/dist/context/team.d.ts +0 -42
  75. package/dist/context/team.js +0 -4
  76. package/dist/context/team.js.map +0 -1
  77. package/dist/context/team.mjs +0 -3
  78. package/dist/context/team.mjs.map +0 -1
  79. package/dist/context/tenant.d.mts +0 -20
  80. package/dist/context/tenant.d.ts +0 -20
  81. package/dist/context/tenant.js +0 -4
  82. package/dist/context/tenant.js.map +0 -1
  83. package/dist/context/tenant.mjs +0 -3
  84. package/dist/context/tenant.mjs.map +0 -1
  85. package/dist/context/user.d.mts +0 -63
  86. package/dist/context/user.d.ts +0 -63
  87. package/dist/context/user.js +0 -4
  88. package/dist/context/user.js.map +0 -1
  89. package/dist/context/user.mjs +0 -3
  90. package/dist/context/user.mjs.map +0 -1
  91. package/dist/index-5Ok-M8A0.d.ts +0 -13
  92. package/dist/index-7hUkxLxx.d.mts +0 -17
  93. package/dist/index-8IcDrPMv.d.ts +0 -70
  94. package/dist/index-D6kqtGPa.d.mts +0 -13
  95. package/dist/index-DJal_Cxb.d.mts +0 -70
  96. package/dist/index-DrTQ_GLN.d.mts +0 -21
  97. package/dist/index-DtE-Eb9L.d.ts +0 -17
  98. package/dist/index-_Hc8oq9_.d.ts +0 -21
  99. package/dist/window/client-error.d.mts +0 -10
  100. package/dist/window/client-error.d.ts +0 -10
  101. package/dist/window/client-error.js +0 -4
  102. package/dist/window/client-error.js.map +0 -1
  103. package/dist/window/client-error.mjs +0 -3
  104. package/dist/window/client-error.mjs.map +0 -1
  105. package/dist/window/clients/app-entity.d.mts +0 -12
  106. package/dist/window/clients/app-entity.d.ts +0 -12
  107. package/dist/window/clients/app-entity.js +0 -15
  108. package/dist/window/clients/app-entity.js.map +0 -1
  109. package/dist/window/clients/app-entity.mjs +0 -13
  110. package/dist/window/clients/app-entity.mjs.map +0 -1
  111. package/dist/window/clients/app-initialization.d.mts +0 -50
  112. package/dist/window/clients/app-initialization.d.ts +0 -50
  113. package/dist/window/clients/app-initialization.js +0 -24
  114. package/dist/window/clients/app-initialization.js.map +0 -1
  115. package/dist/window/clients/app-initialization.mjs +0 -22
  116. package/dist/window/clients/app-initialization.mjs.map +0 -1
  117. package/dist/window/clients/app-install-dialog.d.mts +0 -21
  118. package/dist/window/clients/app-install-dialog.d.ts +0 -21
  119. package/dist/window/clients/app-install-dialog.js +0 -22
  120. package/dist/window/clients/app-install-dialog.js.map +0 -1
  121. package/dist/window/clients/app-install-dialog.mjs +0 -20
  122. package/dist/window/clients/app-install-dialog.mjs.map +0 -1
  123. package/dist/window/clients/authentication.d.mts +0 -66
  124. package/dist/window/clients/authentication.d.ts +0 -66
  125. package/dist/window/clients/authentication.js +0 -47
  126. package/dist/window/clients/authentication.js.map +0 -1
  127. package/dist/window/clients/authentication.mjs +0 -45
  128. package/dist/window/clients/authentication.mjs.map +0 -1
  129. package/dist/window/clients/bar-code.d.mts +0 -13
  130. package/dist/window/clients/bar-code.d.ts +0 -13
  131. package/dist/window/clients/bar-code.js +0 -20
  132. package/dist/window/clients/bar-code.js.map +0 -1
  133. package/dist/window/clients/bar-code.mjs +0 -18
  134. package/dist/window/clients/bar-code.mjs.map +0 -1
  135. package/dist/window/clients/calendar.d.mts +0 -47
  136. package/dist/window/clients/calendar.d.ts +0 -47
  137. package/dist/window/clients/calendar.js +0 -18
  138. package/dist/window/clients/calendar.js.map +0 -1
  139. package/dist/window/clients/calendar.mjs +0 -16
  140. package/dist/window/clients/calendar.mjs.map +0 -1
  141. package/dist/window/clients/call.d.mts +0 -32
  142. package/dist/window/clients/call.d.ts +0 -32
  143. package/dist/window/clients/call.js +0 -16
  144. package/dist/window/clients/call.js.map +0 -1
  145. package/dist/window/clients/call.mjs +0 -14
  146. package/dist/window/clients/call.mjs.map +0 -1
  147. package/dist/window/clients/clipboard.d.mts +0 -26
  148. package/dist/window/clients/clipboard.d.ts +0 -26
  149. package/dist/window/clients/clipboard.js +0 -19
  150. package/dist/window/clients/clipboard.js.map +0 -1
  151. package/dist/window/clients/clipboard.mjs +0 -17
  152. package/dist/window/clients/clipboard.mjs.map +0 -1
  153. package/dist/window/clients/conversation.d.mts +0 -53
  154. package/dist/window/clients/conversation.d.ts +0 -53
  155. package/dist/window/clients/conversation.js +0 -25
  156. package/dist/window/clients/conversation.js.map +0 -1
  157. package/dist/window/clients/conversation.mjs +0 -23
  158. package/dist/window/clients/conversation.mjs.map +0 -1
  159. package/dist/window/clients/dialog.d.mts +0 -81
  160. package/dist/window/clients/dialog.d.ts +0 -81
  161. package/dist/window/clients/dialog.js +0 -37
  162. package/dist/window/clients/dialog.js.map +0 -1
  163. package/dist/window/clients/dialog.mjs +0 -35
  164. package/dist/window/clients/dialog.mjs.map +0 -1
  165. package/dist/window/clients/index.d.mts +0 -84
  166. package/dist/window/clients/index.d.ts +0 -84
  167. package/dist/window/clients/index.js +0 -159
  168. package/dist/window/clients/index.js.map +0 -1
  169. package/dist/window/clients/index.mjs +0 -87
  170. package/dist/window/clients/index.mjs.map +0 -1
  171. package/dist/window/clients/location.d.mts +0 -14
  172. package/dist/window/clients/location.d.ts +0 -14
  173. package/dist/window/clients/location.js +0 -22
  174. package/dist/window/clients/location.js.map +0 -1
  175. package/dist/window/clients/location.mjs +0 -20
  176. package/dist/window/clients/location.mjs.map +0 -1
  177. package/dist/window/clients/media.d.mts +0 -190
  178. package/dist/window/clients/media.d.ts +0 -190
  179. package/dist/window/clients/media.js +0 -75
  180. package/dist/window/clients/media.js.map +0 -1
  181. package/dist/window/clients/media.mjs +0 -68
  182. package/dist/window/clients/media.mjs.map +0 -1
  183. package/dist/window/clients/notification.d.mts +0 -17
  184. package/dist/window/clients/notification.d.ts +0 -17
  185. package/dist/window/clients/notification.js +0 -15
  186. package/dist/window/clients/notification.js.map +0 -1
  187. package/dist/window/clients/notification.mjs +0 -13
  188. package/dist/window/clients/notification.mjs.map +0 -1
  189. package/dist/window/clients/permission.d.mts +0 -14
  190. package/dist/window/clients/permission.d.ts +0 -14
  191. package/dist/window/clients/permission.js +0 -20
  192. package/dist/window/clients/permission.js.map +0 -1
  193. package/dist/window/clients/permission.mjs +0 -18
  194. package/dist/window/clients/permission.mjs.map +0 -1
  195. package/dist/window/index.d.mts +0 -59
  196. package/dist/window/index.d.ts +0 -59
  197. package/dist/window/index.js +0 -35
  198. package/dist/window/index.js.map +0 -1
  199. package/dist/window/index.mjs +0 -6
  200. package/dist/window/index.mjs.map +0 -1
  201. package/dist/window/message.d.mts +0 -24
  202. package/dist/window/message.d.ts +0 -24
  203. package/dist/window/message.js +0 -4
  204. package/dist/window/message.js.map +0 -1
  205. package/dist/window/message.mjs +0 -3
  206. package/dist/window/message.mjs.map +0 -1
  207. package/dist/window/runtime.d.mts +0 -96
  208. package/dist/window/runtime.d.ts +0 -96
  209. package/dist/window/runtime.js +0 -4
  210. package/dist/window/runtime.js.map +0 -1
  211. package/dist/window/runtime.mjs +0 -3
  212. package/dist/window/runtime.mjs.map +0 -1
  213. package/dist/window/types/action-open-url-type.d.mts +0 -15
  214. package/dist/window/types/action-open-url-type.d.ts +0 -15
  215. package/dist/window/types/action-open-url-type.js +0 -13
  216. package/dist/window/types/action-open-url-type.js.map +0 -1
  217. package/dist/window/types/action-open-url-type.mjs +0 -11
  218. package/dist/window/types/action-open-url-type.mjs.map +0 -1
  219. package/dist/window/types/app-eligibility-info.d.mts +0 -48
  220. package/dist/window/types/app-eligibility-info.d.ts +0 -48
  221. package/dist/window/types/app-eligibility-info.js +0 -4
  222. package/dist/window/types/app-eligibility-info.js.map +0 -1
  223. package/dist/window/types/app-eligibility-info.mjs +0 -3
  224. package/dist/window/types/app-eligibility-info.mjs.map +0 -1
  225. package/dist/window/types/bar-code-config.d.mts +0 -13
  226. package/dist/window/types/bar-code-config.d.ts +0 -13
  227. package/dist/window/types/bar-code-config.js +0 -4
  228. package/dist/window/types/bar-code-config.js.map +0 -1
  229. package/dist/window/types/bar-code-config.mjs +0 -3
  230. package/dist/window/types/bar-code-config.mjs.map +0 -1
  231. package/dist/window/types/call-modality.d.mts +0 -21
  232. package/dist/window/types/call-modality.d.ts +0 -21
  233. package/dist/window/types/call-modality.js +0 -14
  234. package/dist/window/types/call-modality.js.map +0 -1
  235. package/dist/window/types/call-modality.mjs +0 -12
  236. package/dist/window/types/call-modality.mjs.map +0 -1
  237. package/dist/window/types/channel-type.d.mts +0 -17
  238. package/dist/window/types/channel-type.d.ts +0 -17
  239. package/dist/window/types/channel-type.js +0 -12
  240. package/dist/window/types/channel-type.js.map +0 -1
  241. package/dist/window/types/channel-type.mjs +0 -10
  242. package/dist/window/types/channel-type.mjs.map +0 -1
  243. package/dist/window/types/context.d.mts +0 -275
  244. package/dist/window/types/context.d.ts +0 -275
  245. package/dist/window/types/context.js +0 -4
  246. package/dist/window/types/context.js.map +0 -1
  247. package/dist/window/types/context.mjs +0 -3
  248. package/dist/window/types/context.mjs.map +0 -1
  249. package/dist/window/types/data-residency.d.mts +0 -6
  250. package/dist/window/types/data-residency.d.ts +0 -6
  251. package/dist/window/types/data-residency.js +0 -4
  252. package/dist/window/types/data-residency.js.map +0 -1
  253. package/dist/window/types/data-residency.mjs +0 -3
  254. package/dist/window/types/data-residency.mjs.map +0 -1
  255. package/dist/window/types/dialog/dialog-dimension.d.mts +0 -17
  256. package/dist/window/types/dialog/dialog-dimension.d.ts +0 -17
  257. package/dist/window/types/dialog/dialog-dimension.js +0 -12
  258. package/dist/window/types/dialog/dialog-dimension.js.map +0 -1
  259. package/dist/window/types/dialog/dialog-dimension.mjs +0 -10
  260. package/dist/window/types/dialog/dialog-dimension.mjs.map +0 -1
  261. package/dist/window/types/dialog/dialog-info.d.mts +0 -43
  262. package/dist/window/types/dialog/dialog-info.d.ts +0 -43
  263. package/dist/window/types/dialog/dialog-info.js +0 -4
  264. package/dist/window/types/dialog/dialog-info.js.map +0 -1
  265. package/dist/window/types/dialog/dialog-info.mjs +0 -3
  266. package/dist/window/types/dialog/dialog-info.mjs.map +0 -1
  267. package/dist/window/types/dialog/dialog-size.d.mts +0 -14
  268. package/dist/window/types/dialog/dialog-size.d.ts +0 -14
  269. package/dist/window/types/dialog/dialog-size.js +0 -4
  270. package/dist/window/types/dialog/dialog-size.js.map +0 -1
  271. package/dist/window/types/dialog/dialog-size.mjs +0 -3
  272. package/dist/window/types/dialog/dialog-size.mjs.map +0 -1
  273. package/dist/window/types/dialog/index.d.mts +0 -3
  274. package/dist/window/types/dialog/index.d.ts +0 -3
  275. package/dist/window/types/dialog/index.js +0 -28
  276. package/dist/window/types/dialog/index.js.map +0 -1
  277. package/dist/window/types/dialog/index.mjs +0 -5
  278. package/dist/window/types/dialog/index.mjs.map +0 -1
  279. package/dist/window/types/file-open-preference.d.mts +0 -17
  280. package/dist/window/types/file-open-preference.d.ts +0 -17
  281. package/dist/window/types/file-open-preference.js +0 -12
  282. package/dist/window/types/file-open-preference.js.map +0 -1
  283. package/dist/window/types/file-open-preference.mjs +0 -10
  284. package/dist/window/types/file-open-preference.mjs.map +0 -1
  285. package/dist/window/types/file.d.mts +0 -42
  286. package/dist/window/types/file.d.ts +0 -42
  287. package/dist/window/types/file.js +0 -11
  288. package/dist/window/types/file.js.map +0 -1
  289. package/dist/window/types/file.mjs +0 -9
  290. package/dist/window/types/file.mjs.map +0 -1
  291. package/dist/window/types/frame-context.d.mts +0 -44
  292. package/dist/window/types/frame-context.d.ts +0 -44
  293. package/dist/window/types/frame-context.js +0 -17
  294. package/dist/window/types/frame-context.js.map +0 -1
  295. package/dist/window/types/frame-context.mjs +0 -15
  296. package/dist/window/types/frame-context.mjs.map +0 -1
  297. package/dist/window/types/host.d.mts +0 -73
  298. package/dist/window/types/host.d.ts +0 -73
  299. package/dist/window/types/host.js +0 -32
  300. package/dist/window/types/host.js.map +0 -1
  301. package/dist/window/types/host.mjs +0 -29
  302. package/dist/window/types/host.mjs.map +0 -1
  303. package/dist/window/types/index.d.mts +0 -39
  304. package/dist/window/types/index.d.ts +0 -39
  305. package/dist/window/types/index.js +0 -189
  306. package/dist/window/types/index.js.map +0 -1
  307. package/dist/window/types/index.mjs +0 -30
  308. package/dist/window/types/index.mjs.map +0 -1
  309. package/dist/window/types/legal-age-group-classification.d.mts +0 -34
  310. package/dist/window/types/legal-age-group-classification.d.ts +0 -34
  311. package/dist/window/types/legal-age-group-classification.js +0 -14
  312. package/dist/window/types/legal-age-group-classification.js.map +0 -1
  313. package/dist/window/types/legal-age-group-classification.mjs +0 -12
  314. package/dist/window/types/legal-age-group-classification.mjs.map +0 -1
  315. package/dist/window/types/liveshare/client.d.mts +0 -23
  316. package/dist/window/types/liveshare/client.d.ts +0 -23
  317. package/dist/window/types/liveshare/client.js +0 -4
  318. package/dist/window/types/liveshare/client.js.map +0 -1
  319. package/dist/window/types/liveshare/client.mjs +0 -3
  320. package/dist/window/types/liveshare/client.mjs.map +0 -1
  321. package/dist/window/types/liveshare/container-state.d.mts +0 -33
  322. package/dist/window/types/liveshare/container-state.d.ts +0 -33
  323. package/dist/window/types/liveshare/container-state.js +0 -13
  324. package/dist/window/types/liveshare/container-state.js.map +0 -1
  325. package/dist/window/types/liveshare/container-state.mjs +0 -11
  326. package/dist/window/types/liveshare/container-state.mjs.map +0 -1
  327. package/dist/window/types/liveshare/fluid-container.d.mts +0 -28
  328. package/dist/window/types/liveshare/fluid-container.d.ts +0 -28
  329. package/dist/window/types/liveshare/fluid-container.js +0 -4
  330. package/dist/window/types/liveshare/fluid-container.js.map +0 -1
  331. package/dist/window/types/liveshare/fluid-container.mjs +0 -3
  332. package/dist/window/types/liveshare/fluid-container.mjs.map +0 -1
  333. package/dist/window/types/liveshare/fluid-tenant.d.mts +0 -16
  334. package/dist/window/types/liveshare/fluid-tenant.d.ts +0 -16
  335. package/dist/window/types/liveshare/fluid-tenant.js +0 -4
  336. package/dist/window/types/liveshare/fluid-tenant.js.map +0 -1
  337. package/dist/window/types/liveshare/fluid-tenant.mjs +0 -3
  338. package/dist/window/types/liveshare/fluid-tenant.mjs.map +0 -1
  339. package/dist/window/types/liveshare/index.d.mts +0 -6
  340. package/dist/window/types/liveshare/index.d.ts +0 -6
  341. package/dist/window/types/liveshare/index.js +0 -42
  342. package/dist/window/types/liveshare/index.js.map +0 -1
  343. package/dist/window/types/liveshare/index.mjs +0 -7
  344. package/dist/window/types/liveshare/index.mjs.map +0 -1
  345. package/dist/window/types/liveshare/ntp-time.d.mts +0 -16
  346. package/dist/window/types/liveshare/ntp-time.d.ts +0 -16
  347. package/dist/window/types/liveshare/ntp-time.js +0 -4
  348. package/dist/window/types/liveshare/ntp-time.js.map +0 -1
  349. package/dist/window/types/liveshare/ntp-time.mjs +0 -3
  350. package/dist/window/types/liveshare/ntp-time.mjs.map +0 -1
  351. package/dist/window/types/locale.d.mts +0 -38
  352. package/dist/window/types/locale.d.ts +0 -38
  353. package/dist/window/types/locale.js +0 -4
  354. package/dist/window/types/locale.js.map +0 -1
  355. package/dist/window/types/locale.mjs +0 -3
  356. package/dist/window/types/locale.mjs.map +0 -1
  357. package/dist/window/types/location.d.mts +0 -25
  358. package/dist/window/types/location.d.ts +0 -25
  359. package/dist/window/types/location.js +0 -4
  360. package/dist/window/types/location.js.map +0 -1
  361. package/dist/window/types/location.mjs +0 -3
  362. package/dist/window/types/location.mjs.map +0 -1
  363. package/dist/window/types/marketplace/cart-info.d.mts +0 -47
  364. package/dist/window/types/marketplace/cart-info.d.ts +0 -47
  365. package/dist/window/types/marketplace/cart-info.js +0 -4
  366. package/dist/window/types/marketplace/cart-info.js.map +0 -1
  367. package/dist/window/types/marketplace/cart-info.mjs +0 -3
  368. package/dist/window/types/marketplace/cart-info.mjs.map +0 -1
  369. package/dist/window/types/marketplace/cart-item.d.mts +0 -40
  370. package/dist/window/types/marketplace/cart-item.d.ts +0 -40
  371. package/dist/window/types/marketplace/cart-item.js +0 -4
  372. package/dist/window/types/marketplace/cart-item.js.map +0 -1
  373. package/dist/window/types/marketplace/cart-item.mjs +0 -3
  374. package/dist/window/types/marketplace/cart-item.mjs.map +0 -1
  375. package/dist/window/types/marketplace/cart-status.d.mts +0 -33
  376. package/dist/window/types/marketplace/cart-status.d.ts +0 -33
  377. package/dist/window/types/marketplace/cart-status.js +0 -14
  378. package/dist/window/types/marketplace/cart-status.js.map +0 -1
  379. package/dist/window/types/marketplace/cart-status.mjs +0 -12
  380. package/dist/window/types/marketplace/cart-status.mjs.map +0 -1
  381. package/dist/window/types/marketplace/cart-version.d.mts +0 -17
  382. package/dist/window/types/marketplace/cart-version.d.ts +0 -17
  383. package/dist/window/types/marketplace/cart-version.js +0 -4
  384. package/dist/window/types/marketplace/cart-version.js.map +0 -1
  385. package/dist/window/types/marketplace/cart-version.mjs +0 -3
  386. package/dist/window/types/marketplace/cart-version.mjs.map +0 -1
  387. package/dist/window/types/marketplace/cart.d.mts +0 -29
  388. package/dist/window/types/marketplace/cart.d.ts +0 -29
  389. package/dist/window/types/marketplace/cart.js +0 -4
  390. package/dist/window/types/marketplace/cart.js.map +0 -1
  391. package/dist/window/types/marketplace/cart.mjs +0 -3
  392. package/dist/window/types/marketplace/cart.mjs.map +0 -1
  393. package/dist/window/types/marketplace/index.d.mts +0 -6
  394. package/dist/window/types/marketplace/index.d.ts +0 -6
  395. package/dist/window/types/marketplace/index.js +0 -49
  396. package/dist/window/types/marketplace/index.js.map +0 -1
  397. package/dist/window/types/marketplace/index.mjs +0 -8
  398. package/dist/window/types/marketplace/index.mjs.map +0 -1
  399. package/dist/window/types/marketplace/intent.d.mts +0 -23
  400. package/dist/window/types/marketplace/intent.d.ts +0 -23
  401. package/dist/window/types/marketplace/intent.js +0 -12
  402. package/dist/window/types/marketplace/intent.js.map +0 -1
  403. package/dist/window/types/marketplace/intent.mjs +0 -10
  404. package/dist/window/types/marketplace/intent.mjs.map +0 -1
  405. package/dist/window/types/notification-type.d.mts +0 -3
  406. package/dist/window/types/notification-type.d.ts +0 -3
  407. package/dist/window/types/notification-type.js +0 -4
  408. package/dist/window/types/notification-type.js.map +0 -1
  409. package/dist/window/types/notification-type.mjs +0 -3
  410. package/dist/window/types/notification-type.mjs.map +0 -1
  411. package/dist/window/types/permission.d.mts +0 -3
  412. package/dist/window/types/permission.d.ts +0 -3
  413. package/dist/window/types/permission.js +0 -4
  414. package/dist/window/types/permission.js.map +0 -1
  415. package/dist/window/types/permission.mjs +0 -3
  416. package/dist/window/types/permission.mjs.map +0 -1
  417. package/dist/window/types/team-type.d.mts +0 -24
  418. package/dist/window/types/team-type.d.ts +0 -24
  419. package/dist/window/types/team-type.js +0 -18
  420. package/dist/window/types/team-type.js.map +0 -1
  421. package/dist/window/types/team-type.mjs +0 -15
  422. package/dist/window/types/team-type.mjs.map +0 -1
  423. package/dist/window/types/theme.d.mts +0 -6
  424. package/dist/window/types/theme.d.ts +0 -6
  425. package/dist/window/types/theme.js +0 -4
  426. package/dist/window/types/theme.js.map +0 -1
  427. package/dist/window/types/theme.mjs +0 -3
  428. package/dist/window/types/theme.mjs.map +0 -1
  429. package/dist/window/types/thread-member.d.mts +0 -11
  430. package/dist/window/types/thread-member.d.ts +0 -11
  431. package/dist/window/types/thread-member.js +0 -4
  432. package/dist/window/types/thread-member.js.map +0 -1
  433. package/dist/window/types/thread-member.mjs +0 -3
  434. package/dist/window/types/thread-member.mjs.map +0 -1
  435. package/dist/window/types/user-meeting-role.d.mts +0 -31
  436. package/dist/window/types/user-meeting-role.d.ts +0 -31
  437. package/dist/window/types/user-meeting-role.js +0 -13
  438. package/dist/window/types/user-meeting-role.js.map +0 -1
  439. package/dist/window/types/user-meeting-role.mjs +0 -11
  440. package/dist/window/types/user-meeting-role.mjs.map +0 -1
  441. package/dist/window/types/user-profile.d.mts +0 -82
  442. package/dist/window/types/user-profile.d.ts +0 -82
  443. package/dist/window/types/user-profile.js +0 -4
  444. package/dist/window/types/user-profile.js.map +0 -1
  445. package/dist/window/types/user-profile.mjs +0 -3
  446. package/dist/window/types/user-profile.mjs.map +0 -1
  447. package/dist/window/types/user-team-role.d.mts +0 -18
  448. package/dist/window/types/user-team-role.d.ts +0 -18
  449. package/dist/window/types/user-team-role.js +0 -16
  450. package/dist/window/types/user-team-role.js.map +0 -1
  451. package/dist/window/types/user-team-role.mjs +0 -13
  452. package/dist/window/types/user-team-role.mjs.map +0 -1
  453. package/dist/window/window-client.d.mts +0 -28
  454. package/dist/window/window-client.d.ts +0 -28
  455. package/dist/window/window-client.js +0 -92
  456. package/dist/window/window-client.js.map +0 -1
  457. package/dist/window/window-client.mjs +0 -70
  458. package/dist/window/window-client.mjs.map +0 -1
@@ -1,81 +0,0 @@
1
- import { WindowClient } from '../window-client.js';
2
- import { DialogSize } from '../types/dialog/dialog-size.js';
3
- import '@microsoft/teams.common';
4
- import '../message.js';
5
- import '../client-error.js';
6
- import '../types/dialog/dialog-dimension.js';
7
-
8
- /**
9
- * Shared Dialog Properties
10
- */
11
- type BaseDialogParams = {
12
- /**
13
- * Title of the dialog module.
14
- */
15
- title?: string;
16
- /**
17
- * The requested size of the dialog
18
- */
19
- size: DialogSize;
20
- };
21
- /**
22
- * Data structure to describe dialog information needed to open an Adaptive Card-based dialog.
23
- */
24
- type AdaptiveCardDialogParams = BaseDialogParams & {
25
- /**
26
- * JSON defining an Adaptive Card.
27
- */
28
- card: string;
29
- };
30
- /**
31
- * Data structure to describe dialog information needed to open a bot-based Adaptive Card-based dialog.
32
- */
33
- type BotAdaptiveCardDialogParams = AdaptiveCardDialogParams & {
34
- /**
35
- * Specifies a bot ID to send the result of the user's interaction with the dialog module.
36
- * The bot will receive a task/complete invoke event with a JSON object
37
- * in the event payload.
38
- */
39
- completionBotId: string;
40
- };
41
- /**
42
- * Data structure to describe dialog information needed to open a url-based dialog.
43
- */
44
- type UrlDialogParams = BaseDialogParams & {
45
- /**
46
- * The url to be rendered in the webview/iframe.
47
- *
48
- * @remarks
49
- * The domain of the url must match at least one of the
50
- * valid domains specified in the [validDomains block](https://learn.microsoft.com/microsoftteams/platform/resources/schema/manifest-schema#validdomains) of the app manifest
51
- */
52
- url: string;
53
- /**
54
- * If client doesnt support the URL, the URL that needs to be opened in the browser.
55
- */
56
- fallbackUrl?: string;
57
- };
58
- /**
59
- * Data structure to describe dialog information needed to open a bot based dialog.
60
- */
61
- type BotUrlDialogParams = UrlDialogParams & {
62
- /**
63
- * Specifies a bot ID to send the result of the user's interaction with the task module.
64
- * The bot will receive a task/complete invoke event with a JSON object
65
- * in the event payload.
66
- */
67
- completionBotId: string;
68
- };
69
- type DialogParams = AdaptiveCardDialogParams | BotAdaptiveCardDialogParams | UrlDialogParams | BotUrlDialogParams;
70
- declare class DialogClient {
71
- readonly window: WindowClient;
72
- constructor(client: WindowClient);
73
- open(params: DialogParams): Promise<{
74
- err: string | undefined;
75
- result: string | object;
76
- }>;
77
- submit(result?: string | object, appIds?: string | string[]): Promise<void>;
78
- update(size: DialogSize): Promise<void>;
79
- }
80
-
81
- export { type AdaptiveCardDialogParams, type BotAdaptiveCardDialogParams, type BotUrlDialogParams, DialogClient, type DialogParams, type UrlDialogParams };
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- class DialogClient {
4
- window;
5
- constructor(client) {
6
- this.window = client;
7
- }
8
- async open(params) {
9
- const [err, result] = await this.window.send(
10
- "tasks.startTask",
11
- {
12
- title: params.title,
13
- height: params.size.height || "small",
14
- width: params.size.width || "small",
15
- url: "url" in params ? params.url : void 0,
16
- fallbackUrl: "fallbackUrl" in params ? params.fallbackUrl : void 0,
17
- card: "card" in params ? params.card : void 0,
18
- completionBotId: "completionBotId" in params ? params.completionBotId : void 0
19
- }
20
- );
21
- return { err, result };
22
- }
23
- async submit(result, appIds) {
24
- await this.window.send(
25
- "tasks.completeTask",
26
- result,
27
- appIds ? Array.isArray(appIds) ? appIds : [appIds] : []
28
- );
29
- }
30
- async update(size) {
31
- await this.window.send("tasks.updateTask", size);
32
- }
33
- }
34
-
35
- exports.DialogClient = DialogClient;
36
- //# sourceMappingURL=dialog.js.map
37
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/window/clients/dialog.ts"],"names":[],"mappings":";;AA+EO,MAAM,YAAa,CAAA;AAAA,EACf,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAsB,EAAA;AAC/B,IAAA,MAAM,CAAC,GAAK,EAAA,MAAM,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MACtC,iBAAA;AAAA,MACA;AAAA,QACE,OAAO,MAAO,CAAA,KAAA;AAAA,QACd,MAAA,EAAQ,MAAO,CAAA,IAAA,CAAK,MAAU,IAAA,OAAA;AAAA,QAC9B,KAAA,EAAO,MAAO,CAAA,IAAA,CAAK,KAAS,IAAA,OAAA;AAAA,QAC5B,GAAK,EAAA,KAAA,IAAS,MAAS,GAAA,MAAA,CAAO,GAAM,GAAA,MAAA;AAAA,QACpC,WAAa,EAAA,aAAA,IAAiB,MAAS,GAAA,MAAA,CAAO,WAAc,GAAA,MAAA;AAAA,QAC5D,IAAM,EAAA,MAAA,IAAU,MAAS,GAAA,MAAA,CAAO,IAAO,GAAA,MAAA;AAAA,QACvC,eAAiB,EAAA,iBAAA,IAAqB,MAAS,GAAA,MAAA,CAAO,eAAkB,GAAA;AAAA;AAC1E,KACF;AAEA,IAAO,OAAA,EAAE,KAAK,MAAO,EAAA;AAAA;AACvB,EAEA,MAAM,MAAO,CAAA,MAAA,EAA0B,MAA4B,EAAA;AACjE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,oBAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA,GAAU,MAAM,OAAQ,CAAA,MAAM,IAAI,MAAS,GAAA,CAAC,MAAM,CAAA,GAAK;AAAC,KAC1D;AAAA;AACF,EAEA,MAAM,OAAO,IAAyB,EAAA;AACpC,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,kBAAA,EAAoB,IAAI,CAAA;AAAA;AAEnD","file":"dialog.js","sourcesContent":["import { WindowClient } from '../window-client';\n\nimport { DialogSize } from '../types/dialog';\nimport { dialog } from '../types';\n\n/**\n * Shared Dialog Properties\n */\ntype BaseDialogParams = {\n /**\n * Title of the dialog module.\n */\n title?: string;\n\n /**\n * The requested size of the dialog\n */\n size: DialogSize;\n};\n\n/**\n * Data structure to describe dialog information needed to open an Adaptive Card-based dialog.\n */\nexport type AdaptiveCardDialogParams = BaseDialogParams & {\n /**\n * JSON defining an Adaptive Card.\n */\n card: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a bot-based Adaptive Card-based dialog.\n */\nexport type BotAdaptiveCardDialogParams = AdaptiveCardDialogParams & {\n /**\n * Specifies a bot ID to send the result of the user's interaction with the dialog module.\n * The bot will receive a task/complete invoke event with a JSON object\n * in the event payload.\n */\n completionBotId: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a url-based dialog.\n */\nexport type UrlDialogParams = BaseDialogParams & {\n /**\n * The url to be rendered in the webview/iframe.\n *\n * @remarks\n * The domain of the url must match at least one of the\n * valid domains specified in the [validDomains block](https://learn.microsoft.com/microsoftteams/platform/resources/schema/manifest-schema#validdomains) of the app manifest\n */\n url: string;\n\n /**\n * If client doesnt support the URL, the URL that needs to be opened in the browser.\n */\n fallbackUrl?: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a bot based dialog.\n */\nexport type BotUrlDialogParams = UrlDialogParams & {\n /**\n * Specifies a bot ID to send the result of the user's interaction with the task module.\n * The bot will receive a task/complete invoke event with a JSON object\n * in the event payload.\n */\n completionBotId: string;\n};\n\nexport type DialogParams =\n | AdaptiveCardDialogParams\n | BotAdaptiveCardDialogParams\n | UrlDialogParams\n | BotUrlDialogParams;\n\nexport class DialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: DialogParams) {\n const [err, result] = await this.window.send<[string | undefined, string | object]>(\n 'tasks.startTask',\n {\n title: params.title,\n height: params.size.height || 'small',\n width: params.size.width || 'small',\n url: 'url' in params ? params.url : undefined,\n fallbackUrl: 'fallbackUrl' in params ? params.fallbackUrl : undefined,\n card: 'card' in params ? params.card : undefined,\n completionBotId: 'completionBotId' in params ? params.completionBotId : undefined,\n } as dialog.DialogInfo\n );\n\n return { err, result };\n }\n\n async submit(result?: string | object, appIds?: string | string[]) {\n await this.window.send(\n 'tasks.completeTask',\n result,\n appIds ? (Array.isArray(appIds) ? appIds : [appIds]) : []\n );\n }\n\n async update(size: dialog.DialogSize) {\n await this.window.send('tasks.updateTask', size);\n }\n}\n"]}
@@ -1,35 +0,0 @@
1
- class DialogClient {
2
- window;
3
- constructor(client) {
4
- this.window = client;
5
- }
6
- async open(params) {
7
- const [err, result] = await this.window.send(
8
- "tasks.startTask",
9
- {
10
- title: params.title,
11
- height: params.size.height || "small",
12
- width: params.size.width || "small",
13
- url: "url" in params ? params.url : void 0,
14
- fallbackUrl: "fallbackUrl" in params ? params.fallbackUrl : void 0,
15
- card: "card" in params ? params.card : void 0,
16
- completionBotId: "completionBotId" in params ? params.completionBotId : void 0
17
- }
18
- );
19
- return { err, result };
20
- }
21
- async submit(result, appIds) {
22
- await this.window.send(
23
- "tasks.completeTask",
24
- result,
25
- appIds ? Array.isArray(appIds) ? appIds : [appIds] : []
26
- );
27
- }
28
- async update(size) {
29
- await this.window.send("tasks.updateTask", size);
30
- }
31
- }
32
-
33
- export { DialogClient };
34
- //# sourceMappingURL=dialog.mjs.map
35
- //# sourceMappingURL=dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/window/clients/dialog.ts"],"names":[],"mappings":"AA+EO,MAAM,YAAa,CAAA;AAAA,EACf,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAsB,EAAA;AAC/B,IAAA,MAAM,CAAC,GAAK,EAAA,MAAM,CAAI,GAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MACtC,iBAAA;AAAA,MACA;AAAA,QACE,OAAO,MAAO,CAAA,KAAA;AAAA,QACd,MAAA,EAAQ,MAAO,CAAA,IAAA,CAAK,MAAU,IAAA,OAAA;AAAA,QAC9B,KAAA,EAAO,MAAO,CAAA,IAAA,CAAK,KAAS,IAAA,OAAA;AAAA,QAC5B,GAAK,EAAA,KAAA,IAAS,MAAS,GAAA,MAAA,CAAO,GAAM,GAAA,MAAA;AAAA,QACpC,WAAa,EAAA,aAAA,IAAiB,MAAS,GAAA,MAAA,CAAO,WAAc,GAAA,MAAA;AAAA,QAC5D,IAAM,EAAA,MAAA,IAAU,MAAS,GAAA,MAAA,CAAO,IAAO,GAAA,MAAA;AAAA,QACvC,eAAiB,EAAA,iBAAA,IAAqB,MAAS,GAAA,MAAA,CAAO,eAAkB,GAAA;AAAA;AAC1E,KACF;AAEA,IAAO,OAAA,EAAE,KAAK,MAAO,EAAA;AAAA;AACvB,EAEA,MAAM,MAAO,CAAA,MAAA,EAA0B,MAA4B,EAAA;AACjE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA;AAAA,MAChB,oBAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA,GAAU,MAAM,OAAQ,CAAA,MAAM,IAAI,MAAS,GAAA,CAAC,MAAM,CAAA,GAAK;AAAC,KAC1D;AAAA;AACF,EAEA,MAAM,OAAO,IAAyB,EAAA;AACpC,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,kBAAA,EAAoB,IAAI,CAAA;AAAA;AAEnD","file":"dialog.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\nimport { DialogSize } from '../types/dialog';\nimport { dialog } from '../types';\n\n/**\n * Shared Dialog Properties\n */\ntype BaseDialogParams = {\n /**\n * Title of the dialog module.\n */\n title?: string;\n\n /**\n * The requested size of the dialog\n */\n size: DialogSize;\n};\n\n/**\n * Data structure to describe dialog information needed to open an Adaptive Card-based dialog.\n */\nexport type AdaptiveCardDialogParams = BaseDialogParams & {\n /**\n * JSON defining an Adaptive Card.\n */\n card: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a bot-based Adaptive Card-based dialog.\n */\nexport type BotAdaptiveCardDialogParams = AdaptiveCardDialogParams & {\n /**\n * Specifies a bot ID to send the result of the user's interaction with the dialog module.\n * The bot will receive a task/complete invoke event with a JSON object\n * in the event payload.\n */\n completionBotId: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a url-based dialog.\n */\nexport type UrlDialogParams = BaseDialogParams & {\n /**\n * The url to be rendered in the webview/iframe.\n *\n * @remarks\n * The domain of the url must match at least one of the\n * valid domains specified in the [validDomains block](https://learn.microsoft.com/microsoftteams/platform/resources/schema/manifest-schema#validdomains) of the app manifest\n */\n url: string;\n\n /**\n * If client doesnt support the URL, the URL that needs to be opened in the browser.\n */\n fallbackUrl?: string;\n};\n\n/**\n * Data structure to describe dialog information needed to open a bot based dialog.\n */\nexport type BotUrlDialogParams = UrlDialogParams & {\n /**\n * Specifies a bot ID to send the result of the user's interaction with the task module.\n * The bot will receive a task/complete invoke event with a JSON object\n * in the event payload.\n */\n completionBotId: string;\n};\n\nexport type DialogParams =\n | AdaptiveCardDialogParams\n | BotAdaptiveCardDialogParams\n | UrlDialogParams\n | BotUrlDialogParams;\n\nexport class DialogClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async open(params: DialogParams) {\n const [err, result] = await this.window.send<[string | undefined, string | object]>(\n 'tasks.startTask',\n {\n title: params.title,\n height: params.size.height || 'small',\n width: params.size.width || 'small',\n url: 'url' in params ? params.url : undefined,\n fallbackUrl: 'fallbackUrl' in params ? params.fallbackUrl : undefined,\n card: 'card' in params ? params.card : undefined,\n completionBotId: 'completionBotId' in params ? params.completionBotId : undefined,\n } as dialog.DialogInfo\n );\n\n return { err, result };\n }\n\n async submit(result?: string | object, appIds?: string | string[]) {\n await this.window.send(\n 'tasks.completeTask',\n result,\n appIds ? (Array.isArray(appIds) ? appIds : [appIds]) : []\n );\n }\n\n async update(size: dialog.DialogSize) {\n await this.window.send('tasks.updateTask', size);\n }\n}\n"]}
@@ -1,84 +0,0 @@
1
- import { ILogger } from '@microsoft/teams.common';
2
- import { FrameContext } from '../types/frame-context.mjs';
3
- import { HostClientType } from '../types/host.mjs';
4
- import { Context } from '../types/context.mjs';
5
- import { Theme } from '../types/theme.mjs';
6
- import { WindowClient } from '../window-client.mjs';
7
- import { Runtime } from '../runtime.mjs';
8
- import { AppInitializationClient } from './app-initialization.mjs';
9
- export { ExpectedFailureParams, ExpectedFailureReason, FailedParams, FailedReason } from './app-initialization.mjs';
10
- import { AppInstallDialogClient } from './app-install-dialog.mjs';
11
- export { OpenAppInstallDialogParams } from './app-install-dialog.mjs';
12
- import { AuthenticationClient } from './authentication.mjs';
13
- export { AuthPopUpParams, AuthTokenRequestParams } from './authentication.mjs';
14
- import { AppEntityClient } from './app-entity.mjs';
15
- import { BarCodeClient } from './bar-code.mjs';
16
- import { CalendarClient } from './calendar.mjs';
17
- export { ComposeCalendarMeetingParams, OpenCalendarItemParams } from './calendar.mjs';
18
- import { CallClient } from './call.mjs';
19
- export { StartCallParams } from './call.mjs';
20
- import { ClipboardClient } from './clipboard.mjs';
21
- export { ClipboardMimeType, ClipboardWriteParams } from './clipboard.mjs';
22
- import { ConversationsClient } from './conversation.mjs';
23
- export { CreateConversationParams, OpenConversationParams } from './conversation.mjs';
24
- import { DialogClient } from './dialog.mjs';
25
- export { AdaptiveCardDialogParams, BotAdaptiveCardDialogParams, BotUrlDialogParams, DialogParams, UrlDialogParams } from './dialog.mjs';
26
- import { LocationClient } from './location.mjs';
27
- import { PermissionClient } from './permission.mjs';
28
- import { NotificationClient } from './notification.mjs';
29
- export { ShowNotificationParams } from './notification.mjs';
30
- import { MediaClient } from './media.mjs';
31
- export { AudioProps, CameraStartMode, ImageOutputFormats, ImageProps, ImageUri, ImageUriType, MediaInputs, MediaType, Source, VideoAndImageProps, VideoProps } from './media.mjs';
32
- import '../types/channel-type.mjs';
33
- import '../types/file-open-preference.mjs';
34
- import '../types/locale.mjs';
35
- import '../types/team-type.mjs';
36
- import '../types/user-team-role.mjs';
37
- import '../message.mjs';
38
- import '../client-error.mjs';
39
- import '../types/user-profile.mjs';
40
- import '../types/data-residency.mjs';
41
- import '../types/bar-code-config.mjs';
42
- import '../types/call-modality.mjs';
43
- import '../types/thread-member.mjs';
44
- import '../types/dialog/dialog-size.mjs';
45
- import '../types/dialog/dialog-dimension.mjs';
46
- import '../types/location.mjs';
47
- import '../types/permission.mjs';
48
- import '../types/notification-type.mjs';
49
- import '../types/file.mjs';
50
-
51
- /**
52
- * the window client used to execute
53
- * functions and receive events from the
54
- * parent window
55
- */
56
- declare class Client {
57
- readonly window: WindowClient;
58
- readonly appEntity: AppEntityClient;
59
- readonly appInitialization: AppInitializationClient;
60
- readonly appInstallDialog: AppInstallDialogClient;
61
- readonly authentication: AuthenticationClient;
62
- readonly barCode: BarCodeClient;
63
- readonly calendar: CalendarClient;
64
- readonly call: CallClient;
65
- readonly clipboard: ClipboardClient;
66
- readonly conversation: ConversationsClient;
67
- readonly dialog: DialogClient;
68
- readonly location: LocationClient;
69
- readonly permission: PermissionClient;
70
- readonly notification: NotificationClient;
71
- readonly media: MediaClient;
72
- constructor(logger?: ILogger);
73
- initialize(): Promise<{
74
- frameContext: FrameContext;
75
- clientType: HostClientType;
76
- runtimeVersion: string;
77
- runtime: Runtime;
78
- }>;
79
- getContext(): Promise<Context>;
80
- deepLink(url: string): Promise<void>;
81
- onThemeChange(handler: (theme: Theme) => any): void;
82
- }
83
-
84
- export { AppEntityClient, AppInitializationClient, AppInstallDialogClient, AuthenticationClient, BarCodeClient, CalendarClient, CallClient, Client, ClipboardClient, ConversationsClient, DialogClient, LocationClient, MediaClient, NotificationClient, PermissionClient };
@@ -1,84 +0,0 @@
1
- import { ILogger } from '@microsoft/teams.common';
2
- import { FrameContext } from '../types/frame-context.js';
3
- import { HostClientType } from '../types/host.js';
4
- import { Context } from '../types/context.js';
5
- import { Theme } from '../types/theme.js';
6
- import { WindowClient } from '../window-client.js';
7
- import { Runtime } from '../runtime.js';
8
- import { AppInitializationClient } from './app-initialization.js';
9
- export { ExpectedFailureParams, ExpectedFailureReason, FailedParams, FailedReason } from './app-initialization.js';
10
- import { AppInstallDialogClient } from './app-install-dialog.js';
11
- export { OpenAppInstallDialogParams } from './app-install-dialog.js';
12
- import { AuthenticationClient } from './authentication.js';
13
- export { AuthPopUpParams, AuthTokenRequestParams } from './authentication.js';
14
- import { AppEntityClient } from './app-entity.js';
15
- import { BarCodeClient } from './bar-code.js';
16
- import { CalendarClient } from './calendar.js';
17
- export { ComposeCalendarMeetingParams, OpenCalendarItemParams } from './calendar.js';
18
- import { CallClient } from './call.js';
19
- export { StartCallParams } from './call.js';
20
- import { ClipboardClient } from './clipboard.js';
21
- export { ClipboardMimeType, ClipboardWriteParams } from './clipboard.js';
22
- import { ConversationsClient } from './conversation.js';
23
- export { CreateConversationParams, OpenConversationParams } from './conversation.js';
24
- import { DialogClient } from './dialog.js';
25
- export { AdaptiveCardDialogParams, BotAdaptiveCardDialogParams, BotUrlDialogParams, DialogParams, UrlDialogParams } from './dialog.js';
26
- import { LocationClient } from './location.js';
27
- import { PermissionClient } from './permission.js';
28
- import { NotificationClient } from './notification.js';
29
- export { ShowNotificationParams } from './notification.js';
30
- import { MediaClient } from './media.js';
31
- export { AudioProps, CameraStartMode, ImageOutputFormats, ImageProps, ImageUri, ImageUriType, MediaInputs, MediaType, Source, VideoAndImageProps, VideoProps } from './media.js';
32
- import '../types/channel-type.js';
33
- import '../types/file-open-preference.js';
34
- import '../types/locale.js';
35
- import '../types/team-type.js';
36
- import '../types/user-team-role.js';
37
- import '../message.js';
38
- import '../client-error.js';
39
- import '../types/user-profile.js';
40
- import '../types/data-residency.js';
41
- import '../types/bar-code-config.js';
42
- import '../types/call-modality.js';
43
- import '../types/thread-member.js';
44
- import '../types/dialog/dialog-size.js';
45
- import '../types/dialog/dialog-dimension.js';
46
- import '../types/location.js';
47
- import '../types/permission.js';
48
- import '../types/notification-type.js';
49
- import '../types/file.js';
50
-
51
- /**
52
- * the window client used to execute
53
- * functions and receive events from the
54
- * parent window
55
- */
56
- declare class Client {
57
- readonly window: WindowClient;
58
- readonly appEntity: AppEntityClient;
59
- readonly appInitialization: AppInitializationClient;
60
- readonly appInstallDialog: AppInstallDialogClient;
61
- readonly authentication: AuthenticationClient;
62
- readonly barCode: BarCodeClient;
63
- readonly calendar: CalendarClient;
64
- readonly call: CallClient;
65
- readonly clipboard: ClipboardClient;
66
- readonly conversation: ConversationsClient;
67
- readonly dialog: DialogClient;
68
- readonly location: LocationClient;
69
- readonly permission: PermissionClient;
70
- readonly notification: NotificationClient;
71
- readonly media: MediaClient;
72
- constructor(logger?: ILogger);
73
- initialize(): Promise<{
74
- frameContext: FrameContext;
75
- clientType: HostClientType;
76
- runtimeVersion: string;
77
- runtime: Runtime;
78
- }>;
79
- getContext(): Promise<Context>;
80
- deepLink(url: string): Promise<void>;
81
- onThemeChange(handler: (theme: Theme) => any): void;
82
- }
83
-
84
- export { AppEntityClient, AppInitializationClient, AppInstallDialogClient, AuthenticationClient, BarCodeClient, CalendarClient, CallClient, Client, ClipboardClient, ConversationsClient, DialogClient, LocationClient, MediaClient, NotificationClient, PermissionClient };
@@ -1,159 +0,0 @@
1
- 'use strict';
2
-
3
- var windowClient = require('../window-client');
4
- var appInitialization = require('./app-initialization');
5
- var appInstallDialog = require('./app-install-dialog');
6
- var authentication = require('./authentication');
7
- var appEntity = require('./app-entity');
8
- var barCode = require('./bar-code');
9
- var calendar = require('./calendar');
10
- var call = require('./call');
11
- var clipboard = require('./clipboard');
12
- var conversation = require('./conversation');
13
- var dialog = require('./dialog');
14
- var location = require('./location');
15
- var permission = require('./permission');
16
- var notification = require('./notification');
17
- var media = require('./media');
18
-
19
- class Client {
20
- window;
21
- appEntity;
22
- appInitialization;
23
- appInstallDialog;
24
- authentication;
25
- barCode;
26
- calendar;
27
- call;
28
- clipboard;
29
- conversation;
30
- dialog;
31
- location;
32
- permission;
33
- notification;
34
- media;
35
- constructor(logger) {
36
- this.window = new windowClient.WindowClient(logger);
37
- this.appEntity = new appEntity.AppEntityClient(this.window);
38
- this.appInitialization = new appInitialization.AppInitializationClient(this.window);
39
- this.appInstallDialog = new appInstallDialog.AppInstallDialogClient(this.window);
40
- this.authentication = new authentication.AuthenticationClient(this.window);
41
- this.barCode = new barCode.BarCodeClient(this.window);
42
- this.calendar = new calendar.CalendarClient(this.window);
43
- this.call = new call.CallClient(this.window);
44
- this.clipboard = new clipboard.ClipboardClient(this.window);
45
- this.conversation = new conversation.ConversationsClient(this.window);
46
- this.dialog = new dialog.DialogClient(this.window);
47
- this.location = new location.LocationClient(this.window);
48
- this.permission = new permission.PermissionClient(this.window);
49
- this.notification = new notification.NotificationClient(this.window);
50
- this.media = new media.MediaClient(this.window);
51
- }
52
- async initialize() {
53
- const [frameContext, clientType, runtimeVersion, runtime] = await this.window.send("initialize");
54
- return {
55
- frameContext,
56
- clientType,
57
- runtimeVersion,
58
- runtime: JSON.parse(runtime)
59
- };
60
- }
61
- async getContext() {
62
- const [context] = await this.window.send("getContext");
63
- return context;
64
- }
65
- async deepLink(url) {
66
- await this.window.send("executeDeepLink", url);
67
- }
68
- onThemeChange(handler) {
69
- this.window.on("themeChange", handler);
70
- }
71
- }
72
-
73
- exports.Client = Client;
74
- Object.keys(appInitialization).forEach(function (k) {
75
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
76
- enumerable: true,
77
- get: function () { return appInitialization[k]; }
78
- });
79
- });
80
- Object.keys(appInstallDialog).forEach(function (k) {
81
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
82
- enumerable: true,
83
- get: function () { return appInstallDialog[k]; }
84
- });
85
- });
86
- Object.keys(authentication).forEach(function (k) {
87
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
88
- enumerable: true,
89
- get: function () { return authentication[k]; }
90
- });
91
- });
92
- Object.keys(appEntity).forEach(function (k) {
93
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
94
- enumerable: true,
95
- get: function () { return appEntity[k]; }
96
- });
97
- });
98
- Object.keys(barCode).forEach(function (k) {
99
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
100
- enumerable: true,
101
- get: function () { return barCode[k]; }
102
- });
103
- });
104
- Object.keys(calendar).forEach(function (k) {
105
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
106
- enumerable: true,
107
- get: function () { return calendar[k]; }
108
- });
109
- });
110
- Object.keys(call).forEach(function (k) {
111
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
112
- enumerable: true,
113
- get: function () { return call[k]; }
114
- });
115
- });
116
- Object.keys(clipboard).forEach(function (k) {
117
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
118
- enumerable: true,
119
- get: function () { return clipboard[k]; }
120
- });
121
- });
122
- Object.keys(conversation).forEach(function (k) {
123
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
124
- enumerable: true,
125
- get: function () { return conversation[k]; }
126
- });
127
- });
128
- Object.keys(dialog).forEach(function (k) {
129
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
130
- enumerable: true,
131
- get: function () { return dialog[k]; }
132
- });
133
- });
134
- Object.keys(location).forEach(function (k) {
135
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
136
- enumerable: true,
137
- get: function () { return location[k]; }
138
- });
139
- });
140
- Object.keys(permission).forEach(function (k) {
141
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
142
- enumerable: true,
143
- get: function () { return permission[k]; }
144
- });
145
- });
146
- Object.keys(notification).forEach(function (k) {
147
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
148
- enumerable: true,
149
- get: function () { return notification[k]; }
150
- });
151
- });
152
- Object.keys(media).forEach(function (k) {
153
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
154
- enumerable: true,
155
- get: function () { return media[k]; }
156
- });
157
- });
158
- //# sourceMappingURL=index.js.map
159
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/window/clients/index.ts"],"names":["WindowClient","AppEntityClient","AppInitializationClient","AppInstallDialogClient","AuthenticationClient","BarCodeClient","CalendarClient","CallClient","ClipboardClient","ConversationsClient","DialogClient","LocationClient","PermissionClient","NotificationClient","MediaClient"],"mappings":";;;;;;;;;;;;;;;;;;AA0BO,MAAM,MAAO,CAAA;AAAA,EACT,MAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,KAAA;AAAA,EAET,YAAY,MAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,MAAA,GAAS,IAAIA,yBAAA,CAAa,MAAM,CAAA;AACrC,IAAA,IAAA,CAAK,SAAY,GAAA,IAAIC,yBAAgB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChD,IAAA,IAAA,CAAK,iBAAoB,GAAA,IAAIC,yCAAwB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChE,IAAA,IAAA,CAAK,gBAAmB,GAAA,IAAIC,uCAAuB,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9D,IAAA,IAAA,CAAK,cAAiB,GAAA,IAAIC,mCAAqB,CAAA,IAAA,CAAK,MAAM,CAAA;AAC1D,IAAA,IAAA,CAAK,OAAU,GAAA,IAAIC,qBAAc,CAAA,IAAA,CAAK,MAAM,CAAA;AAC5C,IAAA,IAAA,CAAK,QAAW,GAAA,IAAIC,uBAAe,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9C,IAAA,IAAA,CAAK,IAAO,GAAA,IAAIC,eAAW,CAAA,IAAA,CAAK,MAAM,CAAA;AACtC,IAAA,IAAA,CAAK,SAAY,GAAA,IAAIC,yBAAgB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChD,IAAA,IAAA,CAAK,YAAe,GAAA,IAAIC,gCAAoB,CAAA,IAAA,CAAK,MAAM,CAAA;AACvD,IAAA,IAAA,CAAK,MAAS,GAAA,IAAIC,mBAAa,CAAA,IAAA,CAAK,MAAM,CAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,IAAIC,uBAAe,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9C,IAAA,IAAA,CAAK,UAAa,GAAA,IAAIC,2BAAiB,CAAA,IAAA,CAAK,MAAM,CAAA;AAClD,IAAA,IAAA,CAAK,YAAe,GAAA,IAAIC,+BAAmB,CAAA,IAAA,CAAK,MAAM,CAAA;AACtD,IAAA,IAAA,CAAK,KAAQ,GAAA,IAAIC,iBAAY,CAAA,IAAA,CAAK,MAAM,CAAA;AAAA;AAC1C,EAEA,MAAM,UAAa,GAAA;AACjB,IAAM,MAAA,CAAC,YAAc,EAAA,UAAA,EAAY,cAAgB,EAAA,OAAO,IACtD,MAAM,IAAA,CAAK,MAAO,CAAA,IAAA,CAAqD,YAAY,CAAA;AAErF,IAAO,OAAA;AAAA,MACL,YAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,MACA,OAAA,EAAS,IAAK,CAAA,KAAA,CAAM,OAAO;AAAA,KAC7B;AAAA;AACF,EAEA,MAAM,UAAa,GAAA;AACjB,IAAA,MAAM,CAAC,OAAO,CAAA,GAAI,MAAM,IAAK,CAAA,MAAA,CAAO,KAAgB,YAAY,CAAA;AAChE,IAAO,OAAA,OAAA;AAAA;AACT,EAEA,MAAM,SAAS,GAAa,EAAA;AAC1B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,iBAAA,EAAmB,GAAG,CAAA;AAAA;AAC/C,EAEA,cAAc,OAAgC,EAAA;AAC5C,IAAK,IAAA,CAAA,MAAA,CAAO,EAAG,CAAA,aAAA,EAAe,OAAO,CAAA;AAAA;AAEzC","file":"index.js","sourcesContent":["import { ILogger } from '@microsoft/teams.common';\n\nimport { Context, FrameContext, HostClientType, Theme } from '../types';\nimport { WindowClient } from '../window-client';\nimport { Runtime } from '../runtime';\n\nimport { AppInitializationClient } from './app-initialization';\nimport { AppInstallDialogClient } from './app-install-dialog';\nimport { AuthenticationClient } from './authentication';\nimport { AppEntityClient } from './app-entity';\nimport { BarCodeClient } from './bar-code';\nimport { CalendarClient } from './calendar';\nimport { CallClient } from './call';\nimport { ClipboardClient } from './clipboard';\nimport { ConversationsClient } from './conversation';\nimport { DialogClient } from './dialog';\nimport { LocationClient } from './location';\nimport { PermissionClient } from './permission';\nimport { NotificationClient } from './notification';\nimport { MediaClient } from './media';\n\n/**\n * the window client used to execute\n * functions and receive events from the\n * parent window\n */\nexport class Client {\n readonly window: WindowClient;\n readonly appEntity: AppEntityClient;\n readonly appInitialization: AppInitializationClient;\n readonly appInstallDialog: AppInstallDialogClient;\n readonly authentication: AuthenticationClient;\n readonly barCode: BarCodeClient;\n readonly calendar: CalendarClient;\n readonly call: CallClient;\n readonly clipboard: ClipboardClient;\n readonly conversation: ConversationsClient;\n readonly dialog: DialogClient;\n readonly location: LocationClient;\n readonly permission: PermissionClient;\n readonly notification: NotificationClient;\n readonly media: MediaClient;\n\n constructor(logger?: ILogger) {\n this.window = new WindowClient(logger);\n this.appEntity = new AppEntityClient(this.window);\n this.appInitialization = new AppInitializationClient(this.window);\n this.appInstallDialog = new AppInstallDialogClient(this.window);\n this.authentication = new AuthenticationClient(this.window);\n this.barCode = new BarCodeClient(this.window);\n this.calendar = new CalendarClient(this.window);\n this.call = new CallClient(this.window);\n this.clipboard = new ClipboardClient(this.window);\n this.conversation = new ConversationsClient(this.window);\n this.dialog = new DialogClient(this.window);\n this.location = new LocationClient(this.window);\n this.permission = new PermissionClient(this.window);\n this.notification = new NotificationClient(this.window);\n this.media = new MediaClient(this.window);\n }\n\n async initialize() {\n const [frameContext, clientType, runtimeVersion, runtime] =\n await this.window.send<[FrameContext, HostClientType, string, string]>('initialize');\n\n return {\n frameContext,\n clientType,\n runtimeVersion,\n runtime: JSON.parse(runtime) as Runtime,\n };\n }\n\n async getContext() {\n const [context] = await this.window.send<[Context]>('getContext');\n return context;\n }\n\n async deepLink(url: string) {\n await this.window.send('executeDeepLink', url);\n }\n\n onThemeChange(handler: (theme: Theme) => any) {\n this.window.on('themeChange', handler);\n }\n}\n\nexport * from './app-initialization';\nexport * from './app-install-dialog';\nexport * from './authentication';\nexport * from './app-entity';\nexport * from './bar-code';\nexport * from './calendar';\nexport * from './call';\nexport * from './clipboard';\nexport * from './conversation';\nexport * from './dialog';\nexport * from './location';\nexport * from './permission';\nexport * from './notification';\nexport * from './media';\n"]}
@@ -1,87 +0,0 @@
1
- import { WindowClient } from '../window-client';
2
- import { AppInitializationClient } from './app-initialization';
3
- export * from './app-initialization';
4
- import { AppInstallDialogClient } from './app-install-dialog';
5
- export * from './app-install-dialog';
6
- import { AuthenticationClient } from './authentication';
7
- export * from './authentication';
8
- import { AppEntityClient } from './app-entity';
9
- export * from './app-entity';
10
- import { BarCodeClient } from './bar-code';
11
- export * from './bar-code';
12
- import { CalendarClient } from './calendar';
13
- export * from './calendar';
14
- import { CallClient } from './call';
15
- export * from './call';
16
- import { ClipboardClient } from './clipboard';
17
- export * from './clipboard';
18
- import { ConversationsClient } from './conversation';
19
- export * from './conversation';
20
- import { DialogClient } from './dialog';
21
- export * from './dialog';
22
- import { LocationClient } from './location';
23
- export * from './location';
24
- import { PermissionClient } from './permission';
25
- export * from './permission';
26
- import { NotificationClient } from './notification';
27
- export * from './notification';
28
- import { MediaClient } from './media';
29
- export * from './media';
30
-
31
- class Client {
32
- window;
33
- appEntity;
34
- appInitialization;
35
- appInstallDialog;
36
- authentication;
37
- barCode;
38
- calendar;
39
- call;
40
- clipboard;
41
- conversation;
42
- dialog;
43
- location;
44
- permission;
45
- notification;
46
- media;
47
- constructor(logger) {
48
- this.window = new WindowClient(logger);
49
- this.appEntity = new AppEntityClient(this.window);
50
- this.appInitialization = new AppInitializationClient(this.window);
51
- this.appInstallDialog = new AppInstallDialogClient(this.window);
52
- this.authentication = new AuthenticationClient(this.window);
53
- this.barCode = new BarCodeClient(this.window);
54
- this.calendar = new CalendarClient(this.window);
55
- this.call = new CallClient(this.window);
56
- this.clipboard = new ClipboardClient(this.window);
57
- this.conversation = new ConversationsClient(this.window);
58
- this.dialog = new DialogClient(this.window);
59
- this.location = new LocationClient(this.window);
60
- this.permission = new PermissionClient(this.window);
61
- this.notification = new NotificationClient(this.window);
62
- this.media = new MediaClient(this.window);
63
- }
64
- async initialize() {
65
- const [frameContext, clientType, runtimeVersion, runtime] = await this.window.send("initialize");
66
- return {
67
- frameContext,
68
- clientType,
69
- runtimeVersion,
70
- runtime: JSON.parse(runtime)
71
- };
72
- }
73
- async getContext() {
74
- const [context] = await this.window.send("getContext");
75
- return context;
76
- }
77
- async deepLink(url) {
78
- await this.window.send("executeDeepLink", url);
79
- }
80
- onThemeChange(handler) {
81
- this.window.on("themeChange", handler);
82
- }
83
- }
84
-
85
- export { Client };
86
- //# sourceMappingURL=index.mjs.map
87
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/window/clients/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BO,MAAM,MAAO,CAAA;AAAA,EACT,MAAA;AAAA,EACA,SAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,KAAA;AAAA,EAET,YAAY,MAAkB,EAAA;AAC5B,IAAK,IAAA,CAAA,MAAA,GAAS,IAAI,YAAA,CAAa,MAAM,CAAA;AACrC,IAAA,IAAA,CAAK,SAAY,GAAA,IAAI,eAAgB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChD,IAAA,IAAA,CAAK,iBAAoB,GAAA,IAAI,uBAAwB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChE,IAAA,IAAA,CAAK,gBAAmB,GAAA,IAAI,sBAAuB,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9D,IAAA,IAAA,CAAK,cAAiB,GAAA,IAAI,oBAAqB,CAAA,IAAA,CAAK,MAAM,CAAA;AAC1D,IAAA,IAAA,CAAK,OAAU,GAAA,IAAI,aAAc,CAAA,IAAA,CAAK,MAAM,CAAA;AAC5C,IAAA,IAAA,CAAK,QAAW,GAAA,IAAI,cAAe,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9C,IAAA,IAAA,CAAK,IAAO,GAAA,IAAI,UAAW,CAAA,IAAA,CAAK,MAAM,CAAA;AACtC,IAAA,IAAA,CAAK,SAAY,GAAA,IAAI,eAAgB,CAAA,IAAA,CAAK,MAAM,CAAA;AAChD,IAAA,IAAA,CAAK,YAAe,GAAA,IAAI,mBAAoB,CAAA,IAAA,CAAK,MAAM,CAAA;AACvD,IAAA,IAAA,CAAK,MAAS,GAAA,IAAI,YAAa,CAAA,IAAA,CAAK,MAAM,CAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,IAAI,cAAe,CAAA,IAAA,CAAK,MAAM,CAAA;AAC9C,IAAA,IAAA,CAAK,UAAa,GAAA,IAAI,gBAAiB,CAAA,IAAA,CAAK,MAAM,CAAA;AAClD,IAAA,IAAA,CAAK,YAAe,GAAA,IAAI,kBAAmB,CAAA,IAAA,CAAK,MAAM,CAAA;AACtD,IAAA,IAAA,CAAK,KAAQ,GAAA,IAAI,WAAY,CAAA,IAAA,CAAK,MAAM,CAAA;AAAA;AAC1C,EAEA,MAAM,UAAa,GAAA;AACjB,IAAM,MAAA,CAAC,YAAc,EAAA,UAAA,EAAY,cAAgB,EAAA,OAAO,IACtD,MAAM,IAAA,CAAK,MAAO,CAAA,IAAA,CAAqD,YAAY,CAAA;AAErF,IAAO,OAAA;AAAA,MACL,YAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,MACA,OAAA,EAAS,IAAK,CAAA,KAAA,CAAM,OAAO;AAAA,KAC7B;AAAA;AACF,EAEA,MAAM,UAAa,GAAA;AACjB,IAAA,MAAM,CAAC,OAAO,CAAA,GAAI,MAAM,IAAK,CAAA,MAAA,CAAO,KAAgB,YAAY,CAAA;AAChE,IAAO,OAAA,OAAA;AAAA;AACT,EAEA,MAAM,SAAS,GAAa,EAAA;AAC1B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,iBAAA,EAAmB,GAAG,CAAA;AAAA;AAC/C,EAEA,cAAc,OAAgC,EAAA;AAC5C,IAAK,IAAA,CAAA,MAAA,CAAO,EAAG,CAAA,aAAA,EAAe,OAAO,CAAA;AAAA;AAEzC","file":"index.mjs","sourcesContent":["import { ILogger } from '@microsoft/teams.common';\n\nimport { Context, FrameContext, HostClientType, Theme } from '../types';\nimport { WindowClient } from '../window-client';\nimport { Runtime } from '../runtime';\n\nimport { AppInitializationClient } from './app-initialization';\nimport { AppInstallDialogClient } from './app-install-dialog';\nimport { AuthenticationClient } from './authentication';\nimport { AppEntityClient } from './app-entity';\nimport { BarCodeClient } from './bar-code';\nimport { CalendarClient } from './calendar';\nimport { CallClient } from './call';\nimport { ClipboardClient } from './clipboard';\nimport { ConversationsClient } from './conversation';\nimport { DialogClient } from './dialog';\nimport { LocationClient } from './location';\nimport { PermissionClient } from './permission';\nimport { NotificationClient } from './notification';\nimport { MediaClient } from './media';\n\n/**\n * the window client used to execute\n * functions and receive events from the\n * parent window\n */\nexport class Client {\n readonly window: WindowClient;\n readonly appEntity: AppEntityClient;\n readonly appInitialization: AppInitializationClient;\n readonly appInstallDialog: AppInstallDialogClient;\n readonly authentication: AuthenticationClient;\n readonly barCode: BarCodeClient;\n readonly calendar: CalendarClient;\n readonly call: CallClient;\n readonly clipboard: ClipboardClient;\n readonly conversation: ConversationsClient;\n readonly dialog: DialogClient;\n readonly location: LocationClient;\n readonly permission: PermissionClient;\n readonly notification: NotificationClient;\n readonly media: MediaClient;\n\n constructor(logger?: ILogger) {\n this.window = new WindowClient(logger);\n this.appEntity = new AppEntityClient(this.window);\n this.appInitialization = new AppInitializationClient(this.window);\n this.appInstallDialog = new AppInstallDialogClient(this.window);\n this.authentication = new AuthenticationClient(this.window);\n this.barCode = new BarCodeClient(this.window);\n this.calendar = new CalendarClient(this.window);\n this.call = new CallClient(this.window);\n this.clipboard = new ClipboardClient(this.window);\n this.conversation = new ConversationsClient(this.window);\n this.dialog = new DialogClient(this.window);\n this.location = new LocationClient(this.window);\n this.permission = new PermissionClient(this.window);\n this.notification = new NotificationClient(this.window);\n this.media = new MediaClient(this.window);\n }\n\n async initialize() {\n const [frameContext, clientType, runtimeVersion, runtime] =\n await this.window.send<[FrameContext, HostClientType, string, string]>('initialize');\n\n return {\n frameContext,\n clientType,\n runtimeVersion,\n runtime: JSON.parse(runtime) as Runtime,\n };\n }\n\n async getContext() {\n const [context] = await this.window.send<[Context]>('getContext');\n return context;\n }\n\n async deepLink(url: string) {\n await this.window.send('executeDeepLink', url);\n }\n\n onThemeChange(handler: (theme: Theme) => any) {\n this.window.on('themeChange', handler);\n }\n}\n\nexport * from './app-initialization';\nexport * from './app-install-dialog';\nexport * from './authentication';\nexport * from './app-entity';\nexport * from './bar-code';\nexport * from './calendar';\nexport * from './call';\nexport * from './clipboard';\nexport * from './conversation';\nexport * from './dialog';\nexport * from './location';\nexport * from './permission';\nexport * from './notification';\nexport * from './media';\n"]}
@@ -1,14 +0,0 @@
1
- import { WindowClient } from '../window-client.mjs';
2
- import { Location } from '../types/location.mjs';
3
- import '@microsoft/teams.common';
4
- import '../message.mjs';
5
- import '../client-error.mjs';
6
-
7
- declare class LocationClient {
8
- readonly window: WindowClient;
9
- constructor(client: WindowClient);
10
- get(allowChooseLocation?: boolean, showMap?: boolean): Promise<Location>;
11
- show(location: Location): Promise<void>;
12
- }
13
-
14
- export { LocationClient };
@@ -1,14 +0,0 @@
1
- import { WindowClient } from '../window-client.js';
2
- import { Location } from '../types/location.js';
3
- import '@microsoft/teams.common';
4
- import '../message.js';
5
- import '../client-error.js';
6
-
7
- declare class LocationClient {
8
- readonly window: WindowClient;
9
- constructor(client: WindowClient);
10
- get(allowChooseLocation?: boolean, showMap?: boolean): Promise<Location>;
11
- show(location: Location): Promise<void>;
12
- }
13
-
14
- export { LocationClient };