@microsoft/teams.client 0.2.12 → 0.2.14
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.
- package/README.md +1 -1
- package/dist/app.d.mts +25 -4
- package/dist/app.d.ts +25 -4
- package/dist/app.js +44 -7
- package/dist/app.js.map +1 -1
- package/dist/app.mjs +44 -7
- package/dist/app.mjs.map +1 -1
- package/dist/graph-utils.d.mts +10 -0
- package/dist/graph-utils.d.ts +10 -0
- package/dist/graph-utils.js +50 -0
- package/dist/graph-utils.js.map +1 -0
- package/dist/graph-utils.mjs +27 -0
- package/dist/graph-utils.mjs.map +1 -0
- package/dist/index.d.mts +3 -53
- package/dist/index.d.ts +3 -53
- package/dist/index.js +3 -34
- package/dist/index.mjs +1 -4
- package/dist/msal-utils.d.mts +11 -1
- package/dist/msal-utils.d.ts +11 -1
- package/dist/msal-utils.js +14 -0
- package/dist/msal-utils.js.map +1 -1
- package/dist/msal-utils.mjs +14 -1
- package/dist/msal-utils.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/context/app-host.d.mts +0 -25
- package/dist/context/app-host.d.ts +0 -25
- package/dist/context/app-host.js +0 -4
- package/dist/context/app-host.js.map +0 -1
- package/dist/context/app-host.mjs +0 -3
- package/dist/context/app-host.mjs.map +0 -1
- package/dist/context/app.d.mts +0 -69
- package/dist/context/app.d.ts +0 -69
- package/dist/context/app.js +0 -4
- package/dist/context/app.js.map +0 -1
- package/dist/context/app.mjs +0 -3
- package/dist/context/app.mjs.map +0 -1
- package/dist/context/channel.d.mts +0 -37
- package/dist/context/channel.d.ts +0 -37
- package/dist/context/channel.js +0 -4
- package/dist/context/channel.js.map +0 -1
- package/dist/context/channel.mjs +0 -3
- package/dist/context/channel.mjs.map +0 -1
- package/dist/context/chat.d.mts +0 -11
- package/dist/context/chat.d.ts +0 -11
- package/dist/context/chat.js +0 -4
- package/dist/context/chat.js.map +0 -1
- package/dist/context/chat.mjs +0 -3
- package/dist/context/chat.mjs.map +0 -1
- package/dist/context/index.d.mts +0 -74
- package/dist/context/index.d.ts +0 -74
- package/dist/context/index.js +0 -108
- package/dist/context/index.js.map +0 -1
- package/dist/context/index.mjs +0 -86
- package/dist/context/index.mjs.map +0 -1
- package/dist/context/meeting.d.mts +0 -11
- package/dist/context/meeting.d.ts +0 -11
- package/dist/context/meeting.js +0 -4
- package/dist/context/meeting.js.map +0 -1
- package/dist/context/meeting.mjs +0 -3
- package/dist/context/meeting.mjs.map +0 -1
- package/dist/context/page.d.mts +0 -40
- package/dist/context/page.d.ts +0 -40
- package/dist/context/page.js +0 -4
- package/dist/context/page.js.map +0 -1
- package/dist/context/page.mjs +0 -3
- package/dist/context/page.mjs.map +0 -1
- package/dist/context/share-point-site.d.mts +0 -31
- package/dist/context/share-point-site.d.ts +0 -31
- package/dist/context/share-point-site.js +0 -4
- package/dist/context/share-point-site.js.map +0 -1
- package/dist/context/share-point-site.mjs +0 -3
- package/dist/context/share-point-site.mjs.map +0 -1
- package/dist/context/team.d.mts +0 -42
- package/dist/context/team.d.ts +0 -42
- package/dist/context/team.js +0 -4
- package/dist/context/team.js.map +0 -1
- package/dist/context/team.mjs +0 -3
- package/dist/context/team.mjs.map +0 -1
- package/dist/context/tenant.d.mts +0 -20
- package/dist/context/tenant.d.ts +0 -20
- package/dist/context/tenant.js +0 -4
- package/dist/context/tenant.js.map +0 -1
- package/dist/context/tenant.mjs +0 -3
- package/dist/context/tenant.mjs.map +0 -1
- package/dist/context/user.d.mts +0 -63
- package/dist/context/user.d.ts +0 -63
- package/dist/context/user.js +0 -4
- package/dist/context/user.js.map +0 -1
- package/dist/context/user.mjs +0 -3
- package/dist/context/user.mjs.map +0 -1
- package/dist/index-5Ok-M8A0.d.ts +0 -13
- package/dist/index-7hUkxLxx.d.mts +0 -17
- package/dist/index-8IcDrPMv.d.ts +0 -70
- package/dist/index-D6kqtGPa.d.mts +0 -13
- package/dist/index-DJal_Cxb.d.mts +0 -70
- package/dist/index-DrTQ_GLN.d.mts +0 -21
- package/dist/index-DtE-Eb9L.d.ts +0 -17
- package/dist/index-_Hc8oq9_.d.ts +0 -21
- package/dist/window/client-error.d.mts +0 -10
- package/dist/window/client-error.d.ts +0 -10
- package/dist/window/client-error.js +0 -4
- package/dist/window/client-error.js.map +0 -1
- package/dist/window/client-error.mjs +0 -3
- package/dist/window/client-error.mjs.map +0 -1
- package/dist/window/clients/app-entity.d.mts +0 -12
- package/dist/window/clients/app-entity.d.ts +0 -12
- package/dist/window/clients/app-entity.js +0 -15
- package/dist/window/clients/app-entity.js.map +0 -1
- package/dist/window/clients/app-entity.mjs +0 -13
- package/dist/window/clients/app-entity.mjs.map +0 -1
- package/dist/window/clients/app-initialization.d.mts +0 -50
- package/dist/window/clients/app-initialization.d.ts +0 -50
- package/dist/window/clients/app-initialization.js +0 -24
- package/dist/window/clients/app-initialization.js.map +0 -1
- package/dist/window/clients/app-initialization.mjs +0 -22
- package/dist/window/clients/app-initialization.mjs.map +0 -1
- package/dist/window/clients/app-install-dialog.d.mts +0 -21
- package/dist/window/clients/app-install-dialog.d.ts +0 -21
- package/dist/window/clients/app-install-dialog.js +0 -22
- package/dist/window/clients/app-install-dialog.js.map +0 -1
- package/dist/window/clients/app-install-dialog.mjs +0 -20
- package/dist/window/clients/app-install-dialog.mjs.map +0 -1
- package/dist/window/clients/authentication.d.mts +0 -66
- package/dist/window/clients/authentication.d.ts +0 -66
- package/dist/window/clients/authentication.js +0 -47
- package/dist/window/clients/authentication.js.map +0 -1
- package/dist/window/clients/authentication.mjs +0 -45
- package/dist/window/clients/authentication.mjs.map +0 -1
- package/dist/window/clients/bar-code.d.mts +0 -13
- package/dist/window/clients/bar-code.d.ts +0 -13
- package/dist/window/clients/bar-code.js +0 -20
- package/dist/window/clients/bar-code.js.map +0 -1
- package/dist/window/clients/bar-code.mjs +0 -18
- package/dist/window/clients/bar-code.mjs.map +0 -1
- package/dist/window/clients/calendar.d.mts +0 -47
- package/dist/window/clients/calendar.d.ts +0 -47
- package/dist/window/clients/calendar.js +0 -18
- package/dist/window/clients/calendar.js.map +0 -1
- package/dist/window/clients/calendar.mjs +0 -16
- package/dist/window/clients/calendar.mjs.map +0 -1
- package/dist/window/clients/call.d.mts +0 -32
- package/dist/window/clients/call.d.ts +0 -32
- package/dist/window/clients/call.js +0 -16
- package/dist/window/clients/call.js.map +0 -1
- package/dist/window/clients/call.mjs +0 -14
- package/dist/window/clients/call.mjs.map +0 -1
- package/dist/window/clients/clipboard.d.mts +0 -26
- package/dist/window/clients/clipboard.d.ts +0 -26
- package/dist/window/clients/clipboard.js +0 -19
- package/dist/window/clients/clipboard.js.map +0 -1
- package/dist/window/clients/clipboard.mjs +0 -17
- package/dist/window/clients/clipboard.mjs.map +0 -1
- package/dist/window/clients/conversation.d.mts +0 -53
- package/dist/window/clients/conversation.d.ts +0 -53
- package/dist/window/clients/conversation.js +0 -25
- package/dist/window/clients/conversation.js.map +0 -1
- package/dist/window/clients/conversation.mjs +0 -23
- package/dist/window/clients/conversation.mjs.map +0 -1
- package/dist/window/clients/dialog.d.mts +0 -81
- package/dist/window/clients/dialog.d.ts +0 -81
- package/dist/window/clients/dialog.js +0 -37
- package/dist/window/clients/dialog.js.map +0 -1
- package/dist/window/clients/dialog.mjs +0 -35
- package/dist/window/clients/dialog.mjs.map +0 -1
- package/dist/window/clients/index.d.mts +0 -84
- package/dist/window/clients/index.d.ts +0 -84
- package/dist/window/clients/index.js +0 -159
- package/dist/window/clients/index.js.map +0 -1
- package/dist/window/clients/index.mjs +0 -87
- package/dist/window/clients/index.mjs.map +0 -1
- package/dist/window/clients/location.d.mts +0 -14
- package/dist/window/clients/location.d.ts +0 -14
- package/dist/window/clients/location.js +0 -22
- package/dist/window/clients/location.js.map +0 -1
- package/dist/window/clients/location.mjs +0 -20
- package/dist/window/clients/location.mjs.map +0 -1
- package/dist/window/clients/media.d.mts +0 -190
- package/dist/window/clients/media.d.ts +0 -190
- package/dist/window/clients/media.js +0 -75
- package/dist/window/clients/media.js.map +0 -1
- package/dist/window/clients/media.mjs +0 -68
- package/dist/window/clients/media.mjs.map +0 -1
- package/dist/window/clients/notification.d.mts +0 -17
- package/dist/window/clients/notification.d.ts +0 -17
- package/dist/window/clients/notification.js +0 -15
- package/dist/window/clients/notification.js.map +0 -1
- package/dist/window/clients/notification.mjs +0 -13
- package/dist/window/clients/notification.mjs.map +0 -1
- package/dist/window/clients/permission.d.mts +0 -14
- package/dist/window/clients/permission.d.ts +0 -14
- package/dist/window/clients/permission.js +0 -20
- package/dist/window/clients/permission.js.map +0 -1
- package/dist/window/clients/permission.mjs +0 -18
- package/dist/window/clients/permission.mjs.map +0 -1
- package/dist/window/index.d.mts +0 -59
- package/dist/window/index.d.ts +0 -59
- package/dist/window/index.js +0 -35
- package/dist/window/index.js.map +0 -1
- package/dist/window/index.mjs +0 -6
- package/dist/window/index.mjs.map +0 -1
- package/dist/window/message.d.mts +0 -24
- package/dist/window/message.d.ts +0 -24
- package/dist/window/message.js +0 -4
- package/dist/window/message.js.map +0 -1
- package/dist/window/message.mjs +0 -3
- package/dist/window/message.mjs.map +0 -1
- package/dist/window/runtime.d.mts +0 -96
- package/dist/window/runtime.d.ts +0 -96
- package/dist/window/runtime.js +0 -4
- package/dist/window/runtime.js.map +0 -1
- package/dist/window/runtime.mjs +0 -3
- package/dist/window/runtime.mjs.map +0 -1
- package/dist/window/types/action-open-url-type.d.mts +0 -15
- package/dist/window/types/action-open-url-type.d.ts +0 -15
- package/dist/window/types/action-open-url-type.js +0 -13
- package/dist/window/types/action-open-url-type.js.map +0 -1
- package/dist/window/types/action-open-url-type.mjs +0 -11
- package/dist/window/types/action-open-url-type.mjs.map +0 -1
- package/dist/window/types/app-eligibility-info.d.mts +0 -48
- package/dist/window/types/app-eligibility-info.d.ts +0 -48
- package/dist/window/types/app-eligibility-info.js +0 -4
- package/dist/window/types/app-eligibility-info.js.map +0 -1
- package/dist/window/types/app-eligibility-info.mjs +0 -3
- package/dist/window/types/app-eligibility-info.mjs.map +0 -1
- package/dist/window/types/bar-code-config.d.mts +0 -13
- package/dist/window/types/bar-code-config.d.ts +0 -13
- package/dist/window/types/bar-code-config.js +0 -4
- package/dist/window/types/bar-code-config.js.map +0 -1
- package/dist/window/types/bar-code-config.mjs +0 -3
- package/dist/window/types/bar-code-config.mjs.map +0 -1
- package/dist/window/types/call-modality.d.mts +0 -21
- package/dist/window/types/call-modality.d.ts +0 -21
- package/dist/window/types/call-modality.js +0 -14
- package/dist/window/types/call-modality.js.map +0 -1
- package/dist/window/types/call-modality.mjs +0 -12
- package/dist/window/types/call-modality.mjs.map +0 -1
- package/dist/window/types/channel-type.d.mts +0 -17
- package/dist/window/types/channel-type.d.ts +0 -17
- package/dist/window/types/channel-type.js +0 -12
- package/dist/window/types/channel-type.js.map +0 -1
- package/dist/window/types/channel-type.mjs +0 -10
- package/dist/window/types/channel-type.mjs.map +0 -1
- package/dist/window/types/context.d.mts +0 -275
- package/dist/window/types/context.d.ts +0 -275
- package/dist/window/types/context.js +0 -4
- package/dist/window/types/context.js.map +0 -1
- package/dist/window/types/context.mjs +0 -3
- package/dist/window/types/context.mjs.map +0 -1
- package/dist/window/types/data-residency.d.mts +0 -6
- package/dist/window/types/data-residency.d.ts +0 -6
- package/dist/window/types/data-residency.js +0 -4
- package/dist/window/types/data-residency.js.map +0 -1
- package/dist/window/types/data-residency.mjs +0 -3
- package/dist/window/types/data-residency.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-dimension.d.mts +0 -17
- package/dist/window/types/dialog/dialog-dimension.d.ts +0 -17
- package/dist/window/types/dialog/dialog-dimension.js +0 -12
- package/dist/window/types/dialog/dialog-dimension.js.map +0 -1
- package/dist/window/types/dialog/dialog-dimension.mjs +0 -10
- package/dist/window/types/dialog/dialog-dimension.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-info.d.mts +0 -43
- package/dist/window/types/dialog/dialog-info.d.ts +0 -43
- package/dist/window/types/dialog/dialog-info.js +0 -4
- package/dist/window/types/dialog/dialog-info.js.map +0 -1
- package/dist/window/types/dialog/dialog-info.mjs +0 -3
- package/dist/window/types/dialog/dialog-info.mjs.map +0 -1
- package/dist/window/types/dialog/dialog-size.d.mts +0 -14
- package/dist/window/types/dialog/dialog-size.d.ts +0 -14
- package/dist/window/types/dialog/dialog-size.js +0 -4
- package/dist/window/types/dialog/dialog-size.js.map +0 -1
- package/dist/window/types/dialog/dialog-size.mjs +0 -3
- package/dist/window/types/dialog/dialog-size.mjs.map +0 -1
- package/dist/window/types/dialog/index.d.mts +0 -3
- package/dist/window/types/dialog/index.d.ts +0 -3
- package/dist/window/types/dialog/index.js +0 -28
- package/dist/window/types/dialog/index.js.map +0 -1
- package/dist/window/types/dialog/index.mjs +0 -5
- package/dist/window/types/dialog/index.mjs.map +0 -1
- package/dist/window/types/file-open-preference.d.mts +0 -17
- package/dist/window/types/file-open-preference.d.ts +0 -17
- package/dist/window/types/file-open-preference.js +0 -12
- package/dist/window/types/file-open-preference.js.map +0 -1
- package/dist/window/types/file-open-preference.mjs +0 -10
- package/dist/window/types/file-open-preference.mjs.map +0 -1
- package/dist/window/types/file.d.mts +0 -42
- package/dist/window/types/file.d.ts +0 -42
- package/dist/window/types/file.js +0 -11
- package/dist/window/types/file.js.map +0 -1
- package/dist/window/types/file.mjs +0 -9
- package/dist/window/types/file.mjs.map +0 -1
- package/dist/window/types/frame-context.d.mts +0 -44
- package/dist/window/types/frame-context.d.ts +0 -44
- package/dist/window/types/frame-context.js +0 -17
- package/dist/window/types/frame-context.js.map +0 -1
- package/dist/window/types/frame-context.mjs +0 -15
- package/dist/window/types/frame-context.mjs.map +0 -1
- package/dist/window/types/host.d.mts +0 -73
- package/dist/window/types/host.d.ts +0 -73
- package/dist/window/types/host.js +0 -32
- package/dist/window/types/host.js.map +0 -1
- package/dist/window/types/host.mjs +0 -29
- package/dist/window/types/host.mjs.map +0 -1
- package/dist/window/types/index.d.mts +0 -39
- package/dist/window/types/index.d.ts +0 -39
- package/dist/window/types/index.js +0 -189
- package/dist/window/types/index.js.map +0 -1
- package/dist/window/types/index.mjs +0 -30
- package/dist/window/types/index.mjs.map +0 -1
- package/dist/window/types/legal-age-group-classification.d.mts +0 -34
- package/dist/window/types/legal-age-group-classification.d.ts +0 -34
- package/dist/window/types/legal-age-group-classification.js +0 -14
- package/dist/window/types/legal-age-group-classification.js.map +0 -1
- package/dist/window/types/legal-age-group-classification.mjs +0 -12
- package/dist/window/types/legal-age-group-classification.mjs.map +0 -1
- package/dist/window/types/liveshare/client.d.mts +0 -23
- package/dist/window/types/liveshare/client.d.ts +0 -23
- package/dist/window/types/liveshare/client.js +0 -4
- package/dist/window/types/liveshare/client.js.map +0 -1
- package/dist/window/types/liveshare/client.mjs +0 -3
- package/dist/window/types/liveshare/client.mjs.map +0 -1
- package/dist/window/types/liveshare/container-state.d.mts +0 -33
- package/dist/window/types/liveshare/container-state.d.ts +0 -33
- package/dist/window/types/liveshare/container-state.js +0 -13
- package/dist/window/types/liveshare/container-state.js.map +0 -1
- package/dist/window/types/liveshare/container-state.mjs +0 -11
- package/dist/window/types/liveshare/container-state.mjs.map +0 -1
- package/dist/window/types/liveshare/fluid-container.d.mts +0 -28
- package/dist/window/types/liveshare/fluid-container.d.ts +0 -28
- package/dist/window/types/liveshare/fluid-container.js +0 -4
- package/dist/window/types/liveshare/fluid-container.js.map +0 -1
- package/dist/window/types/liveshare/fluid-container.mjs +0 -3
- package/dist/window/types/liveshare/fluid-container.mjs.map +0 -1
- package/dist/window/types/liveshare/fluid-tenant.d.mts +0 -16
- package/dist/window/types/liveshare/fluid-tenant.d.ts +0 -16
- package/dist/window/types/liveshare/fluid-tenant.js +0 -4
- package/dist/window/types/liveshare/fluid-tenant.js.map +0 -1
- package/dist/window/types/liveshare/fluid-tenant.mjs +0 -3
- package/dist/window/types/liveshare/fluid-tenant.mjs.map +0 -1
- package/dist/window/types/liveshare/index.d.mts +0 -6
- package/dist/window/types/liveshare/index.d.ts +0 -6
- package/dist/window/types/liveshare/index.js +0 -42
- package/dist/window/types/liveshare/index.js.map +0 -1
- package/dist/window/types/liveshare/index.mjs +0 -7
- package/dist/window/types/liveshare/index.mjs.map +0 -1
- package/dist/window/types/liveshare/ntp-time.d.mts +0 -16
- package/dist/window/types/liveshare/ntp-time.d.ts +0 -16
- package/dist/window/types/liveshare/ntp-time.js +0 -4
- package/dist/window/types/liveshare/ntp-time.js.map +0 -1
- package/dist/window/types/liveshare/ntp-time.mjs +0 -3
- package/dist/window/types/liveshare/ntp-time.mjs.map +0 -1
- package/dist/window/types/locale.d.mts +0 -38
- package/dist/window/types/locale.d.ts +0 -38
- package/dist/window/types/locale.js +0 -4
- package/dist/window/types/locale.js.map +0 -1
- package/dist/window/types/locale.mjs +0 -3
- package/dist/window/types/locale.mjs.map +0 -1
- package/dist/window/types/location.d.mts +0 -25
- package/dist/window/types/location.d.ts +0 -25
- package/dist/window/types/location.js +0 -4
- package/dist/window/types/location.js.map +0 -1
- package/dist/window/types/location.mjs +0 -3
- package/dist/window/types/location.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-info.d.mts +0 -47
- package/dist/window/types/marketplace/cart-info.d.ts +0 -47
- package/dist/window/types/marketplace/cart-info.js +0 -4
- package/dist/window/types/marketplace/cart-info.js.map +0 -1
- package/dist/window/types/marketplace/cart-info.mjs +0 -3
- package/dist/window/types/marketplace/cart-info.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-item.d.mts +0 -40
- package/dist/window/types/marketplace/cart-item.d.ts +0 -40
- package/dist/window/types/marketplace/cart-item.js +0 -4
- package/dist/window/types/marketplace/cart-item.js.map +0 -1
- package/dist/window/types/marketplace/cart-item.mjs +0 -3
- package/dist/window/types/marketplace/cart-item.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-status.d.mts +0 -33
- package/dist/window/types/marketplace/cart-status.d.ts +0 -33
- package/dist/window/types/marketplace/cart-status.js +0 -14
- package/dist/window/types/marketplace/cart-status.js.map +0 -1
- package/dist/window/types/marketplace/cart-status.mjs +0 -12
- package/dist/window/types/marketplace/cart-status.mjs.map +0 -1
- package/dist/window/types/marketplace/cart-version.d.mts +0 -17
- package/dist/window/types/marketplace/cart-version.d.ts +0 -17
- package/dist/window/types/marketplace/cart-version.js +0 -4
- package/dist/window/types/marketplace/cart-version.js.map +0 -1
- package/dist/window/types/marketplace/cart-version.mjs +0 -3
- package/dist/window/types/marketplace/cart-version.mjs.map +0 -1
- package/dist/window/types/marketplace/cart.d.mts +0 -29
- package/dist/window/types/marketplace/cart.d.ts +0 -29
- package/dist/window/types/marketplace/cart.js +0 -4
- package/dist/window/types/marketplace/cart.js.map +0 -1
- package/dist/window/types/marketplace/cart.mjs +0 -3
- package/dist/window/types/marketplace/cart.mjs.map +0 -1
- package/dist/window/types/marketplace/index.d.mts +0 -6
- package/dist/window/types/marketplace/index.d.ts +0 -6
- package/dist/window/types/marketplace/index.js +0 -49
- package/dist/window/types/marketplace/index.js.map +0 -1
- package/dist/window/types/marketplace/index.mjs +0 -8
- package/dist/window/types/marketplace/index.mjs.map +0 -1
- package/dist/window/types/marketplace/intent.d.mts +0 -23
- package/dist/window/types/marketplace/intent.d.ts +0 -23
- package/dist/window/types/marketplace/intent.js +0 -12
- package/dist/window/types/marketplace/intent.js.map +0 -1
- package/dist/window/types/marketplace/intent.mjs +0 -10
- package/dist/window/types/marketplace/intent.mjs.map +0 -1
- package/dist/window/types/notification-type.d.mts +0 -3
- package/dist/window/types/notification-type.d.ts +0 -3
- package/dist/window/types/notification-type.js +0 -4
- package/dist/window/types/notification-type.js.map +0 -1
- package/dist/window/types/notification-type.mjs +0 -3
- package/dist/window/types/notification-type.mjs.map +0 -1
- package/dist/window/types/permission.d.mts +0 -3
- package/dist/window/types/permission.d.ts +0 -3
- package/dist/window/types/permission.js +0 -4
- package/dist/window/types/permission.js.map +0 -1
- package/dist/window/types/permission.mjs +0 -3
- package/dist/window/types/permission.mjs.map +0 -1
- package/dist/window/types/team-type.d.mts +0 -24
- package/dist/window/types/team-type.d.ts +0 -24
- package/dist/window/types/team-type.js +0 -18
- package/dist/window/types/team-type.js.map +0 -1
- package/dist/window/types/team-type.mjs +0 -15
- package/dist/window/types/team-type.mjs.map +0 -1
- package/dist/window/types/theme.d.mts +0 -6
- package/dist/window/types/theme.d.ts +0 -6
- package/dist/window/types/theme.js +0 -4
- package/dist/window/types/theme.js.map +0 -1
- package/dist/window/types/theme.mjs +0 -3
- package/dist/window/types/theme.mjs.map +0 -1
- package/dist/window/types/thread-member.d.mts +0 -11
- package/dist/window/types/thread-member.d.ts +0 -11
- package/dist/window/types/thread-member.js +0 -4
- package/dist/window/types/thread-member.js.map +0 -1
- package/dist/window/types/thread-member.mjs +0 -3
- package/dist/window/types/thread-member.mjs.map +0 -1
- package/dist/window/types/user-meeting-role.d.mts +0 -31
- package/dist/window/types/user-meeting-role.d.ts +0 -31
- package/dist/window/types/user-meeting-role.js +0 -13
- package/dist/window/types/user-meeting-role.js.map +0 -1
- package/dist/window/types/user-meeting-role.mjs +0 -11
- package/dist/window/types/user-meeting-role.mjs.map +0 -1
- package/dist/window/types/user-profile.d.mts +0 -82
- package/dist/window/types/user-profile.d.ts +0 -82
- package/dist/window/types/user-profile.js +0 -4
- package/dist/window/types/user-profile.js.map +0 -1
- package/dist/window/types/user-profile.mjs +0 -3
- package/dist/window/types/user-profile.mjs.map +0 -1
- package/dist/window/types/user-team-role.d.mts +0 -18
- package/dist/window/types/user-team-role.d.ts +0 -18
- package/dist/window/types/user-team-role.js +0 -16
- package/dist/window/types/user-team-role.js.map +0 -1
- package/dist/window/types/user-team-role.mjs +0 -13
- package/dist/window/types/user-team-role.mjs.map +0 -1
- package/dist/window/window-client.d.mts +0 -28
- package/dist/window/window-client.d.ts +0 -28
- package/dist/window/window-client.js +0 -92
- package/dist/window/window-client.js.map +0 -1
- package/dist/window/window-client.mjs +0 -70
- package/dist/window/window-client.mjs.map +0 -1
|
@@ -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 };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class LocationClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async get(allowChooseLocation = false, showMap = false) {
|
|
9
|
-
const [res] = await this.window.send("location.getLocation", {
|
|
10
|
-
allowChooseLocation,
|
|
11
|
-
showMap
|
|
12
|
-
});
|
|
13
|
-
return res;
|
|
14
|
-
}
|
|
15
|
-
async show(location) {
|
|
16
|
-
await this.window.send("location.showLocation", location);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
exports.LocationClient = LocationClient;
|
|
21
|
-
//# sourceMappingURL=location.js.map
|
|
22
|
-
//# sourceMappingURL=location.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/location.ts"],"names":[],"mappings":";;AAGO,MAAM,cAAe,CAAA;AAAA,EACjB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,GAAA,CAAI,mBAAsB,GAAA,KAAA,EAAO,UAAU,KAAO,EAAA;AACtD,IAAA,MAAM,CAAC,GAAG,CAAA,GAAI,MAAM,IAAK,CAAA,MAAA,CAAO,KAAiB,sBAAwB,EAAA;AAAA,MACvE,mBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAED,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,KAAK,QAAoB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,uBAAA,EAAyB,QAAQ,CAAA;AAAA;AAE5D","file":"location.js","sourcesContent":["import { WindowClient } from '../window-client';\nimport { Location } from '../types';\n\nexport class LocationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async get(allowChooseLocation = false, showMap = false) {\n const [res] = await this.window.send<[Location]>('location.getLocation', {\n allowChooseLocation,\n showMap,\n });\n\n return res;\n }\n\n async show(location: Location) {\n await this.window.send('location.showLocation', location);\n }\n}\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
class LocationClient {
|
|
2
|
-
window;
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.window = client;
|
|
5
|
-
}
|
|
6
|
-
async get(allowChooseLocation = false, showMap = false) {
|
|
7
|
-
const [res] = await this.window.send("location.getLocation", {
|
|
8
|
-
allowChooseLocation,
|
|
9
|
-
showMap
|
|
10
|
-
});
|
|
11
|
-
return res;
|
|
12
|
-
}
|
|
13
|
-
async show(location) {
|
|
14
|
-
await this.window.send("location.showLocation", location);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { LocationClient };
|
|
19
|
-
//# sourceMappingURL=location.mjs.map
|
|
20
|
-
//# sourceMappingURL=location.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/location.ts"],"names":[],"mappings":"AAGO,MAAM,cAAe,CAAA;AAAA,EACjB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,GAAA,CAAI,mBAAsB,GAAA,KAAA,EAAO,UAAU,KAAO,EAAA;AACtD,IAAA,MAAM,CAAC,GAAG,CAAA,GAAI,MAAM,IAAK,CAAA,MAAA,CAAO,KAAiB,sBAAwB,EAAA;AAAA,MACvE,mBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAED,IAAO,OAAA,GAAA;AAAA;AACT,EAEA,MAAM,KAAK,QAAoB,EAAA;AAC7B,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,uBAAA,EAAyB,QAAQ,CAAA;AAAA;AAE5D","file":"location.mjs","sourcesContent":["import { WindowClient } from '../window-client';\nimport { Location } from '../types';\n\nexport class LocationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async get(allowChooseLocation = false, showMap = false) {\n const [res] = await this.window.send<[Location]>('location.getLocation', {\n allowChooseLocation,\n showMap,\n });\n\n return res;\n }\n\n async show(location: Location) {\n await this.window.send('location.showLocation', location);\n }\n}\n"]}
|