@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.
- package/README.md +37 -37
- 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 +4 -2
- 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,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"]}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { File } from '../types/file.mjs';
|
|
2
|
-
import { WindowClient } from '../window-client.mjs';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.mjs';
|
|
5
|
-
import '../client-error.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The modes in which camera can be launched in select Media API
|
|
9
|
-
*/
|
|
10
|
-
declare enum CameraStartMode {
|
|
11
|
-
/** Photo mode. */
|
|
12
|
-
Photo = 1,
|
|
13
|
-
/** Document mode. */
|
|
14
|
-
Document = 2,
|
|
15
|
-
/** Whiteboard mode. */
|
|
16
|
-
Whiteboard = 3,
|
|
17
|
-
/** Business card mode. */
|
|
18
|
-
BusinessCard = 4
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the image source
|
|
22
|
-
*/
|
|
23
|
-
declare enum Source {
|
|
24
|
-
/** Image source is camera. */
|
|
25
|
-
Camera = 1,
|
|
26
|
-
/** Image source is gallery. */
|
|
27
|
-
Gallery = 2
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the type of Media
|
|
31
|
-
*/
|
|
32
|
-
declare enum MediaType {
|
|
33
|
-
/** Media type photo or image */
|
|
34
|
-
Image = 1,
|
|
35
|
-
/** Media type video. */
|
|
36
|
-
Video = 2,
|
|
37
|
-
/** Media type video and image. */
|
|
38
|
-
VideoAndImage = 3,
|
|
39
|
-
/** Media type audio. */
|
|
40
|
-
Audio = 4
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the image output formats.
|
|
44
|
-
*/
|
|
45
|
-
declare enum ImageOutputFormats {
|
|
46
|
-
/** Outputs image. */
|
|
47
|
-
IMAGE = 1,
|
|
48
|
-
/** Outputs pdf. */
|
|
49
|
-
PDF = 2
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Input for view images API
|
|
53
|
-
*/
|
|
54
|
-
type ImageUri = {
|
|
55
|
-
/** Image location */
|
|
56
|
-
value: string;
|
|
57
|
-
/** Image Uri type */
|
|
58
|
-
type: ImageUriType;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* ID contains a mapping for content uri on platform's side, URL is generic
|
|
62
|
-
*/
|
|
63
|
-
declare enum ImageUriType {
|
|
64
|
-
/** Image Id. */
|
|
65
|
-
ID = 1,
|
|
66
|
-
/** Image URL. */
|
|
67
|
-
URL = 2
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Input parameter supplied to the select Media API
|
|
71
|
-
*/
|
|
72
|
-
type MediaInputs = {
|
|
73
|
-
/**
|
|
74
|
-
* Only one media type can be selected at a time
|
|
75
|
-
*/
|
|
76
|
-
mediaType: MediaType;
|
|
77
|
-
/**
|
|
78
|
-
* max limit of media allowed to be selected in one go, current max limit is 10 set by office lens.
|
|
79
|
-
*/
|
|
80
|
-
maxMediaCount: number;
|
|
81
|
-
/**
|
|
82
|
-
* Additional properties for customization of select media - Image in mobile devices
|
|
83
|
-
*/
|
|
84
|
-
imageProps?: ImageProps;
|
|
85
|
-
/**
|
|
86
|
-
* Additional properties for customization of select media - Video in mobile devices
|
|
87
|
-
*/
|
|
88
|
-
videoProps?: VideoProps;
|
|
89
|
-
/**
|
|
90
|
-
* Additional properties for customization of select media - VideoAndImage in mobile devices
|
|
91
|
-
*/
|
|
92
|
-
videoAndImageProps?: VideoAndImageProps;
|
|
93
|
-
/**
|
|
94
|
-
* Additional properties for audio capture flows.
|
|
95
|
-
*/
|
|
96
|
-
audioProps?: AudioProps;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @hidden
|
|
100
|
-
* Hide from docs
|
|
101
|
-
* --------
|
|
102
|
-
* All properties common to Image and Video Props
|
|
103
|
-
*/
|
|
104
|
-
type MediaProps = {
|
|
105
|
-
/**
|
|
106
|
-
* Optional; Lets the developer specify the media source, more than one can be specified.
|
|
107
|
-
* Default value is both camera and gallery
|
|
108
|
-
*/
|
|
109
|
-
sources?: Source[];
|
|
110
|
-
/**
|
|
111
|
-
* Optional; Specify in which mode the camera will be opened.
|
|
112
|
-
* Default value is Photo
|
|
113
|
-
*/
|
|
114
|
-
startMode?: CameraStartMode;
|
|
115
|
-
/**
|
|
116
|
-
* Optional; indicate if user is allowed to move between front and back camera
|
|
117
|
-
* Default value is true
|
|
118
|
-
*/
|
|
119
|
-
cameraSwitcher?: boolean;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* All properties in ImageProps are optional and have default values in the platform
|
|
123
|
-
*/
|
|
124
|
-
type ImageProps = MediaProps & {
|
|
125
|
-
/**
|
|
126
|
-
* Optional; indicate if inking on the selected Image is allowed or not
|
|
127
|
-
* Default value is true
|
|
128
|
-
*/
|
|
129
|
-
ink?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Optional; indicate if putting text stickers on the selected Image is allowed or not
|
|
132
|
-
* Default value is true
|
|
133
|
-
*/
|
|
134
|
-
textSticker?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Optional; indicate if image filtering mode is enabled on the selected image
|
|
137
|
-
* Default value is false
|
|
138
|
-
*/
|
|
139
|
-
enableFilter?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Optional; Lets the developer specify the image output formats, more than one can be specified.
|
|
142
|
-
* Default value is Image.
|
|
143
|
-
*/
|
|
144
|
-
imageOutputFormats?: ImageOutputFormats[];
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* All properties in VideoProps are optional and have default values in the platform
|
|
148
|
-
*/
|
|
149
|
-
type VideoProps = MediaProps & {
|
|
150
|
-
/**
|
|
151
|
-
* Optional; the maximum duration in seconds after which the recording should terminate automatically.
|
|
152
|
-
* Default value is defined by the platform serving the API.
|
|
153
|
-
*/
|
|
154
|
-
maxDuration?: number;
|
|
155
|
-
/**
|
|
156
|
-
* Optional; to determine if the video capturing flow needs to be launched
|
|
157
|
-
* in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation).
|
|
158
|
-
* Default value is true, indicating video will always launch in Full Screen Mode via lens.
|
|
159
|
-
*/
|
|
160
|
-
isFullScreenMode?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Optional; controls the visibility of stop button in PictureInPicture Mode.
|
|
163
|
-
* Default value is true, indicating the user will be able to stop the video.
|
|
164
|
-
*/
|
|
165
|
-
isStopButtonVisible?: boolean;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* All properties in VideoAndImageProps are optional and have default values in the platform
|
|
169
|
-
*/
|
|
170
|
-
type VideoAndImageProps = ImageProps & VideoProps;
|
|
171
|
-
/**
|
|
172
|
-
* All properties in AudioProps are optional and have default values in the platform
|
|
173
|
-
*/
|
|
174
|
-
type AudioProps = {
|
|
175
|
-
/**
|
|
176
|
-
* Optional; the maximum duration in minutes after which the recording should terminate automatically
|
|
177
|
-
* Default value is defined by the platform serving the API.
|
|
178
|
-
*/
|
|
179
|
-
maxDuration?: number;
|
|
180
|
-
};
|
|
181
|
-
declare class MediaClient {
|
|
182
|
-
readonly window: WindowClient;
|
|
183
|
-
constructor(client: WindowClient);
|
|
184
|
-
get(localUriId: string): Promise<Blob>;
|
|
185
|
-
select(inputs: MediaInputs): Promise<File[]>;
|
|
186
|
-
captureImage(): Promise<void>;
|
|
187
|
-
viewImages(uris: ImageUri[]): Promise<void>;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export { type AudioProps, CameraStartMode, ImageOutputFormats, type ImageProps, type ImageUri, ImageUriType, MediaClient, type MediaInputs, MediaType, Source, type VideoAndImageProps, type VideoProps };
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { File } from '../types/file.js';
|
|
2
|
-
import { WindowClient } from '../window-client.js';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.js';
|
|
5
|
-
import '../client-error.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The modes in which camera can be launched in select Media API
|
|
9
|
-
*/
|
|
10
|
-
declare enum CameraStartMode {
|
|
11
|
-
/** Photo mode. */
|
|
12
|
-
Photo = 1,
|
|
13
|
-
/** Document mode. */
|
|
14
|
-
Document = 2,
|
|
15
|
-
/** Whiteboard mode. */
|
|
16
|
-
Whiteboard = 3,
|
|
17
|
-
/** Business card mode. */
|
|
18
|
-
BusinessCard = 4
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the image source
|
|
22
|
-
*/
|
|
23
|
-
declare enum Source {
|
|
24
|
-
/** Image source is camera. */
|
|
25
|
-
Camera = 1,
|
|
26
|
-
/** Image source is gallery. */
|
|
27
|
-
Gallery = 2
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the type of Media
|
|
31
|
-
*/
|
|
32
|
-
declare enum MediaType {
|
|
33
|
-
/** Media type photo or image */
|
|
34
|
-
Image = 1,
|
|
35
|
-
/** Media type video. */
|
|
36
|
-
Video = 2,
|
|
37
|
-
/** Media type video and image. */
|
|
38
|
-
VideoAndImage = 3,
|
|
39
|
-
/** Media type audio. */
|
|
40
|
-
Audio = 4
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the image output formats.
|
|
44
|
-
*/
|
|
45
|
-
declare enum ImageOutputFormats {
|
|
46
|
-
/** Outputs image. */
|
|
47
|
-
IMAGE = 1,
|
|
48
|
-
/** Outputs pdf. */
|
|
49
|
-
PDF = 2
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Input for view images API
|
|
53
|
-
*/
|
|
54
|
-
type ImageUri = {
|
|
55
|
-
/** Image location */
|
|
56
|
-
value: string;
|
|
57
|
-
/** Image Uri type */
|
|
58
|
-
type: ImageUriType;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* ID contains a mapping for content uri on platform's side, URL is generic
|
|
62
|
-
*/
|
|
63
|
-
declare enum ImageUriType {
|
|
64
|
-
/** Image Id. */
|
|
65
|
-
ID = 1,
|
|
66
|
-
/** Image URL. */
|
|
67
|
-
URL = 2
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Input parameter supplied to the select Media API
|
|
71
|
-
*/
|
|
72
|
-
type MediaInputs = {
|
|
73
|
-
/**
|
|
74
|
-
* Only one media type can be selected at a time
|
|
75
|
-
*/
|
|
76
|
-
mediaType: MediaType;
|
|
77
|
-
/**
|
|
78
|
-
* max limit of media allowed to be selected in one go, current max limit is 10 set by office lens.
|
|
79
|
-
*/
|
|
80
|
-
maxMediaCount: number;
|
|
81
|
-
/**
|
|
82
|
-
* Additional properties for customization of select media - Image in mobile devices
|
|
83
|
-
*/
|
|
84
|
-
imageProps?: ImageProps;
|
|
85
|
-
/**
|
|
86
|
-
* Additional properties for customization of select media - Video in mobile devices
|
|
87
|
-
*/
|
|
88
|
-
videoProps?: VideoProps;
|
|
89
|
-
/**
|
|
90
|
-
* Additional properties for customization of select media - VideoAndImage in mobile devices
|
|
91
|
-
*/
|
|
92
|
-
videoAndImageProps?: VideoAndImageProps;
|
|
93
|
-
/**
|
|
94
|
-
* Additional properties for audio capture flows.
|
|
95
|
-
*/
|
|
96
|
-
audioProps?: AudioProps;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @hidden
|
|
100
|
-
* Hide from docs
|
|
101
|
-
* --------
|
|
102
|
-
* All properties common to Image and Video Props
|
|
103
|
-
*/
|
|
104
|
-
type MediaProps = {
|
|
105
|
-
/**
|
|
106
|
-
* Optional; Lets the developer specify the media source, more than one can be specified.
|
|
107
|
-
* Default value is both camera and gallery
|
|
108
|
-
*/
|
|
109
|
-
sources?: Source[];
|
|
110
|
-
/**
|
|
111
|
-
* Optional; Specify in which mode the camera will be opened.
|
|
112
|
-
* Default value is Photo
|
|
113
|
-
*/
|
|
114
|
-
startMode?: CameraStartMode;
|
|
115
|
-
/**
|
|
116
|
-
* Optional; indicate if user is allowed to move between front and back camera
|
|
117
|
-
* Default value is true
|
|
118
|
-
*/
|
|
119
|
-
cameraSwitcher?: boolean;
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* All properties in ImageProps are optional and have default values in the platform
|
|
123
|
-
*/
|
|
124
|
-
type ImageProps = MediaProps & {
|
|
125
|
-
/**
|
|
126
|
-
* Optional; indicate if inking on the selected Image is allowed or not
|
|
127
|
-
* Default value is true
|
|
128
|
-
*/
|
|
129
|
-
ink?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Optional; indicate if putting text stickers on the selected Image is allowed or not
|
|
132
|
-
* Default value is true
|
|
133
|
-
*/
|
|
134
|
-
textSticker?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Optional; indicate if image filtering mode is enabled on the selected image
|
|
137
|
-
* Default value is false
|
|
138
|
-
*/
|
|
139
|
-
enableFilter?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Optional; Lets the developer specify the image output formats, more than one can be specified.
|
|
142
|
-
* Default value is Image.
|
|
143
|
-
*/
|
|
144
|
-
imageOutputFormats?: ImageOutputFormats[];
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* All properties in VideoProps are optional and have default values in the platform
|
|
148
|
-
*/
|
|
149
|
-
type VideoProps = MediaProps & {
|
|
150
|
-
/**
|
|
151
|
-
* Optional; the maximum duration in seconds after which the recording should terminate automatically.
|
|
152
|
-
* Default value is defined by the platform serving the API.
|
|
153
|
-
*/
|
|
154
|
-
maxDuration?: number;
|
|
155
|
-
/**
|
|
156
|
-
* Optional; to determine if the video capturing flow needs to be launched
|
|
157
|
-
* in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation).
|
|
158
|
-
* Default value is true, indicating video will always launch in Full Screen Mode via lens.
|
|
159
|
-
*/
|
|
160
|
-
isFullScreenMode?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Optional; controls the visibility of stop button in PictureInPicture Mode.
|
|
163
|
-
* Default value is true, indicating the user will be able to stop the video.
|
|
164
|
-
*/
|
|
165
|
-
isStopButtonVisible?: boolean;
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* All properties in VideoAndImageProps are optional and have default values in the platform
|
|
169
|
-
*/
|
|
170
|
-
type VideoAndImageProps = ImageProps & VideoProps;
|
|
171
|
-
/**
|
|
172
|
-
* All properties in AudioProps are optional and have default values in the platform
|
|
173
|
-
*/
|
|
174
|
-
type AudioProps = {
|
|
175
|
-
/**
|
|
176
|
-
* Optional; the maximum duration in minutes after which the recording should terminate automatically
|
|
177
|
-
* Default value is defined by the platform serving the API.
|
|
178
|
-
*/
|
|
179
|
-
maxDuration?: number;
|
|
180
|
-
};
|
|
181
|
-
declare class MediaClient {
|
|
182
|
-
readonly window: WindowClient;
|
|
183
|
-
constructor(client: WindowClient);
|
|
184
|
-
get(localUriId: string): Promise<Blob>;
|
|
185
|
-
select(inputs: MediaInputs): Promise<File[]>;
|
|
186
|
-
captureImage(): Promise<void>;
|
|
187
|
-
viewImages(uris: ImageUri[]): Promise<void>;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export { type AudioProps, CameraStartMode, ImageOutputFormats, type ImageProps, type ImageUri, ImageUriType, MediaClient, type MediaInputs, MediaType, Source, type VideoAndImageProps, type VideoProps };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CameraStartMode = /* @__PURE__ */ ((CameraStartMode2) => {
|
|
4
|
-
CameraStartMode2[CameraStartMode2["Photo"] = 1] = "Photo";
|
|
5
|
-
CameraStartMode2[CameraStartMode2["Document"] = 2] = "Document";
|
|
6
|
-
CameraStartMode2[CameraStartMode2["Whiteboard"] = 3] = "Whiteboard";
|
|
7
|
-
CameraStartMode2[CameraStartMode2["BusinessCard"] = 4] = "BusinessCard";
|
|
8
|
-
return CameraStartMode2;
|
|
9
|
-
})(CameraStartMode || {});
|
|
10
|
-
var Source = /* @__PURE__ */ ((Source2) => {
|
|
11
|
-
Source2[Source2["Camera"] = 1] = "Camera";
|
|
12
|
-
Source2[Source2["Gallery"] = 2] = "Gallery";
|
|
13
|
-
return Source2;
|
|
14
|
-
})(Source || {});
|
|
15
|
-
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
16
|
-
MediaType2[MediaType2["Image"] = 1] = "Image";
|
|
17
|
-
MediaType2[MediaType2["Video"] = 2] = "Video";
|
|
18
|
-
MediaType2[MediaType2["VideoAndImage"] = 3] = "VideoAndImage";
|
|
19
|
-
MediaType2[MediaType2["Audio"] = 4] = "Audio";
|
|
20
|
-
return MediaType2;
|
|
21
|
-
})(MediaType || {});
|
|
22
|
-
var ImageOutputFormats = /* @__PURE__ */ ((ImageOutputFormats2) => {
|
|
23
|
-
ImageOutputFormats2[ImageOutputFormats2["IMAGE"] = 1] = "IMAGE";
|
|
24
|
-
ImageOutputFormats2[ImageOutputFormats2["PDF"] = 2] = "PDF";
|
|
25
|
-
return ImageOutputFormats2;
|
|
26
|
-
})(ImageOutputFormats || {});
|
|
27
|
-
var ImageUriType = /* @__PURE__ */ ((ImageUriType2) => {
|
|
28
|
-
ImageUriType2[ImageUriType2["ID"] = 1] = "ID";
|
|
29
|
-
ImageUriType2[ImageUriType2["URL"] = 2] = "URL";
|
|
30
|
-
return ImageUriType2;
|
|
31
|
-
})(ImageUriType || {});
|
|
32
|
-
class MediaClient {
|
|
33
|
-
window;
|
|
34
|
-
constructor(client) {
|
|
35
|
-
this.window = client;
|
|
36
|
-
}
|
|
37
|
-
async get(localUriId) {
|
|
38
|
-
const [err, res] = await this.window.send(
|
|
39
|
-
"getMedia",
|
|
40
|
-
localUriId
|
|
41
|
-
);
|
|
42
|
-
if (err) {
|
|
43
|
-
throw err;
|
|
44
|
-
}
|
|
45
|
-
return res;
|
|
46
|
-
}
|
|
47
|
-
async select(inputs) {
|
|
48
|
-
const [err, res] = await this.window.send(
|
|
49
|
-
"selectMedia",
|
|
50
|
-
inputs
|
|
51
|
-
);
|
|
52
|
-
if (err) {
|
|
53
|
-
throw err;
|
|
54
|
-
}
|
|
55
|
-
return res;
|
|
56
|
-
}
|
|
57
|
-
async captureImage() {
|
|
58
|
-
await this.window.send("media.captureImage");
|
|
59
|
-
}
|
|
60
|
-
async viewImages(uris) {
|
|
61
|
-
const [err] = await this.window.send("viewImages", uris);
|
|
62
|
-
if (err) {
|
|
63
|
-
throw err;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
exports.CameraStartMode = CameraStartMode;
|
|
69
|
-
exports.ImageOutputFormats = ImageOutputFormats;
|
|
70
|
-
exports.ImageUriType = ImageUriType;
|
|
71
|
-
exports.MediaClient = MediaClient;
|
|
72
|
-
exports.MediaType = MediaType;
|
|
73
|
-
exports.Source = Source;
|
|
74
|
-
//# sourceMappingURL=media.js.map
|
|
75
|
-
//# sourceMappingURL=media.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/media.ts"],"names":["CameraStartMode","Source","MediaType","ImageOutputFormats","ImageUriType"],"mappings":"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","file":"media.js","sourcesContent":["import { ClientError } from '../client-error';\nimport { File } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * The modes in which camera can be launched in select Media API\n */\nexport enum CameraStartMode {\n /** Photo mode. */\n Photo = 1,\n\n /** Document mode. */\n Document = 2,\n\n /** Whiteboard mode. */\n Whiteboard = 3,\n\n /** Business card mode. */\n BusinessCard = 4,\n}\n\n/**\n * Specifies the image source\n */\nexport enum Source {\n /** Image source is camera. */\n Camera = 1,\n\n /** Image source is gallery. */\n Gallery = 2,\n}\n\n/**\n * Specifies the type of Media\n */\nexport enum MediaType {\n /** Media type photo or image */\n Image = 1,\n\n /** Media type video. */\n Video = 2,\n\n /** Media type video and image. */\n VideoAndImage = 3,\n\n /** Media type audio. */\n Audio = 4,\n}\n\n/**\n * Specifies the image output formats.\n */\nexport enum ImageOutputFormats {\n /** Outputs image. */\n IMAGE = 1,\n\n /** Outputs pdf. */\n PDF = 2,\n}\n\n/**\n * Input for view images API\n */\nexport type ImageUri = {\n /** Image location */\n value: string;\n\n /** Image Uri type */\n type: ImageUriType;\n};\n\n/**\n * ID contains a mapping for content uri on platform's side, URL is generic\n */\nexport enum ImageUriType {\n /** Image Id. */\n ID = 1,\n\n /** Image URL. */\n URL = 2,\n}\n\n/**\n * Input parameter supplied to the select Media API\n */\nexport type MediaInputs = {\n /**\n * Only one media type can be selected at a time\n */\n mediaType: MediaType;\n\n /**\n * max limit of media allowed to be selected in one go, current max limit is 10 set by office lens.\n */\n maxMediaCount: number;\n\n /**\n * Additional properties for customization of select media - Image in mobile devices\n */\n imageProps?: ImageProps;\n\n /**\n * Additional properties for customization of select media - Video in mobile devices\n */\n videoProps?: VideoProps;\n\n /**\n * Additional properties for customization of select media - VideoAndImage in mobile devices\n */\n videoAndImageProps?: VideoAndImageProps;\n\n /**\n * Additional properties for audio capture flows.\n */\n audioProps?: AudioProps;\n};\n\n/**\n * @hidden\n * Hide from docs\n * --------\n * All properties common to Image and Video Props\n */\ntype MediaProps = {\n /**\n * Optional; Lets the developer specify the media source, more than one can be specified.\n * Default value is both camera and gallery\n */\n sources?: Source[];\n\n /**\n * Optional; Specify in which mode the camera will be opened.\n * Default value is Photo\n */\n startMode?: CameraStartMode;\n\n /**\n * Optional; indicate if user is allowed to move between front and back camera\n * Default value is true\n */\n cameraSwitcher?: boolean;\n};\n\n/**\n * All properties in ImageProps are optional and have default values in the platform\n */\nexport type ImageProps = MediaProps & {\n /**\n * Optional; indicate if inking on the selected Image is allowed or not\n * Default value is true\n */\n ink?: boolean;\n\n /**\n * Optional; indicate if putting text stickers on the selected Image is allowed or not\n * Default value is true\n */\n textSticker?: boolean;\n\n /**\n * Optional; indicate if image filtering mode is enabled on the selected image\n * Default value is false\n */\n enableFilter?: boolean;\n\n /**\n * Optional; Lets the developer specify the image output formats, more than one can be specified.\n * Default value is Image.\n */\n imageOutputFormats?: ImageOutputFormats[];\n};\n\n/**\n * All properties in VideoProps are optional and have default values in the platform\n */\nexport type VideoProps = MediaProps & {\n /**\n * Optional; the maximum duration in seconds after which the recording should terminate automatically.\n * Default value is defined by the platform serving the API.\n */\n maxDuration?: number;\n\n /**\n * Optional; to determine if the video capturing flow needs to be launched\n * in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation).\n * Default value is true, indicating video will always launch in Full Screen Mode via lens.\n */\n isFullScreenMode?: boolean;\n\n /**\n * Optional; controls the visibility of stop button in PictureInPicture Mode.\n * Default value is true, indicating the user will be able to stop the video.\n */\n isStopButtonVisible?: boolean;\n};\n\n/**\n * All properties in VideoAndImageProps are optional and have default values in the platform\n */\nexport type VideoAndImageProps = ImageProps & VideoProps;\n\n/**\n * All properties in AudioProps are optional and have default values in the platform\n */\nexport type AudioProps = {\n /**\n * Optional; the maximum duration in minutes after which the recording should terminate automatically\n * Default value is defined by the platform serving the API.\n */\n maxDuration?: number;\n};\n\nexport class MediaClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async get(localUriId: string) {\n const [err, res] = await this.window.send<[ClientError | undefined, blob: Blob]>(\n 'getMedia',\n localUriId\n );\n\n if (err) {\n throw err;\n }\n\n return res;\n }\n\n async select(inputs: MediaInputs) {\n const [err, res] = await this.window.send<[ClientError | undefined, Array<File>]>(\n 'selectMedia',\n inputs\n );\n\n if (err) {\n throw err;\n }\n\n return res;\n }\n\n async captureImage() {\n await this.window.send('media.captureImage');\n }\n\n async viewImages(uris: ImageUri[]) {\n const [err] = await this.window.send<[ClientError | undefined]>('viewImages', uris);\n\n if (err) {\n throw err;\n }\n }\n}\n"]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
var CameraStartMode = /* @__PURE__ */ ((CameraStartMode2) => {
|
|
2
|
-
CameraStartMode2[CameraStartMode2["Photo"] = 1] = "Photo";
|
|
3
|
-
CameraStartMode2[CameraStartMode2["Document"] = 2] = "Document";
|
|
4
|
-
CameraStartMode2[CameraStartMode2["Whiteboard"] = 3] = "Whiteboard";
|
|
5
|
-
CameraStartMode2[CameraStartMode2["BusinessCard"] = 4] = "BusinessCard";
|
|
6
|
-
return CameraStartMode2;
|
|
7
|
-
})(CameraStartMode || {});
|
|
8
|
-
var Source = /* @__PURE__ */ ((Source2) => {
|
|
9
|
-
Source2[Source2["Camera"] = 1] = "Camera";
|
|
10
|
-
Source2[Source2["Gallery"] = 2] = "Gallery";
|
|
11
|
-
return Source2;
|
|
12
|
-
})(Source || {});
|
|
13
|
-
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
14
|
-
MediaType2[MediaType2["Image"] = 1] = "Image";
|
|
15
|
-
MediaType2[MediaType2["Video"] = 2] = "Video";
|
|
16
|
-
MediaType2[MediaType2["VideoAndImage"] = 3] = "VideoAndImage";
|
|
17
|
-
MediaType2[MediaType2["Audio"] = 4] = "Audio";
|
|
18
|
-
return MediaType2;
|
|
19
|
-
})(MediaType || {});
|
|
20
|
-
var ImageOutputFormats = /* @__PURE__ */ ((ImageOutputFormats2) => {
|
|
21
|
-
ImageOutputFormats2[ImageOutputFormats2["IMAGE"] = 1] = "IMAGE";
|
|
22
|
-
ImageOutputFormats2[ImageOutputFormats2["PDF"] = 2] = "PDF";
|
|
23
|
-
return ImageOutputFormats2;
|
|
24
|
-
})(ImageOutputFormats || {});
|
|
25
|
-
var ImageUriType = /* @__PURE__ */ ((ImageUriType2) => {
|
|
26
|
-
ImageUriType2[ImageUriType2["ID"] = 1] = "ID";
|
|
27
|
-
ImageUriType2[ImageUriType2["URL"] = 2] = "URL";
|
|
28
|
-
return ImageUriType2;
|
|
29
|
-
})(ImageUriType || {});
|
|
30
|
-
class MediaClient {
|
|
31
|
-
window;
|
|
32
|
-
constructor(client) {
|
|
33
|
-
this.window = client;
|
|
34
|
-
}
|
|
35
|
-
async get(localUriId) {
|
|
36
|
-
const [err, res] = await this.window.send(
|
|
37
|
-
"getMedia",
|
|
38
|
-
localUriId
|
|
39
|
-
);
|
|
40
|
-
if (err) {
|
|
41
|
-
throw err;
|
|
42
|
-
}
|
|
43
|
-
return res;
|
|
44
|
-
}
|
|
45
|
-
async select(inputs) {
|
|
46
|
-
const [err, res] = await this.window.send(
|
|
47
|
-
"selectMedia",
|
|
48
|
-
inputs
|
|
49
|
-
);
|
|
50
|
-
if (err) {
|
|
51
|
-
throw err;
|
|
52
|
-
}
|
|
53
|
-
return res;
|
|
54
|
-
}
|
|
55
|
-
async captureImage() {
|
|
56
|
-
await this.window.send("media.captureImage");
|
|
57
|
-
}
|
|
58
|
-
async viewImages(uris) {
|
|
59
|
-
const [err] = await this.window.send("viewImages", uris);
|
|
60
|
-
if (err) {
|
|
61
|
-
throw err;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { CameraStartMode, ImageOutputFormats, ImageUriType, MediaClient, MediaType, Source };
|
|
67
|
-
//# sourceMappingURL=media.mjs.map
|
|
68
|
-
//# sourceMappingURL=media.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/media.ts"],"names":["CameraStartMode","Source","MediaType","ImageOutputFormats","ImageUriType"],"mappings":"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","file":"media.mjs","sourcesContent":["import { ClientError } from '../client-error';\nimport { File } from '../types';\nimport { WindowClient } from '../window-client';\n\n/**\n * The modes in which camera can be launched in select Media API\n */\nexport enum CameraStartMode {\n /** Photo mode. */\n Photo = 1,\n\n /** Document mode. */\n Document = 2,\n\n /** Whiteboard mode. */\n Whiteboard = 3,\n\n /** Business card mode. */\n BusinessCard = 4,\n}\n\n/**\n * Specifies the image source\n */\nexport enum Source {\n /** Image source is camera. */\n Camera = 1,\n\n /** Image source is gallery. */\n Gallery = 2,\n}\n\n/**\n * Specifies the type of Media\n */\nexport enum MediaType {\n /** Media type photo or image */\n Image = 1,\n\n /** Media type video. */\n Video = 2,\n\n /** Media type video and image. */\n VideoAndImage = 3,\n\n /** Media type audio. */\n Audio = 4,\n}\n\n/**\n * Specifies the image output formats.\n */\nexport enum ImageOutputFormats {\n /** Outputs image. */\n IMAGE = 1,\n\n /** Outputs pdf. */\n PDF = 2,\n}\n\n/**\n * Input for view images API\n */\nexport type ImageUri = {\n /** Image location */\n value: string;\n\n /** Image Uri type */\n type: ImageUriType;\n};\n\n/**\n * ID contains a mapping for content uri on platform's side, URL is generic\n */\nexport enum ImageUriType {\n /** Image Id. */\n ID = 1,\n\n /** Image URL. */\n URL = 2,\n}\n\n/**\n * Input parameter supplied to the select Media API\n */\nexport type MediaInputs = {\n /**\n * Only one media type can be selected at a time\n */\n mediaType: MediaType;\n\n /**\n * max limit of media allowed to be selected in one go, current max limit is 10 set by office lens.\n */\n maxMediaCount: number;\n\n /**\n * Additional properties for customization of select media - Image in mobile devices\n */\n imageProps?: ImageProps;\n\n /**\n * Additional properties for customization of select media - Video in mobile devices\n */\n videoProps?: VideoProps;\n\n /**\n * Additional properties for customization of select media - VideoAndImage in mobile devices\n */\n videoAndImageProps?: VideoAndImageProps;\n\n /**\n * Additional properties for audio capture flows.\n */\n audioProps?: AudioProps;\n};\n\n/**\n * @hidden\n * Hide from docs\n * --------\n * All properties common to Image and Video Props\n */\ntype MediaProps = {\n /**\n * Optional; Lets the developer specify the media source, more than one can be specified.\n * Default value is both camera and gallery\n */\n sources?: Source[];\n\n /**\n * Optional; Specify in which mode the camera will be opened.\n * Default value is Photo\n */\n startMode?: CameraStartMode;\n\n /**\n * Optional; indicate if user is allowed to move between front and back camera\n * Default value is true\n */\n cameraSwitcher?: boolean;\n};\n\n/**\n * All properties in ImageProps are optional and have default values in the platform\n */\nexport type ImageProps = MediaProps & {\n /**\n * Optional; indicate if inking on the selected Image is allowed or not\n * Default value is true\n */\n ink?: boolean;\n\n /**\n * Optional; indicate if putting text stickers on the selected Image is allowed or not\n * Default value is true\n */\n textSticker?: boolean;\n\n /**\n * Optional; indicate if image filtering mode is enabled on the selected image\n * Default value is false\n */\n enableFilter?: boolean;\n\n /**\n * Optional; Lets the developer specify the image output formats, more than one can be specified.\n * Default value is Image.\n */\n imageOutputFormats?: ImageOutputFormats[];\n};\n\n/**\n * All properties in VideoProps are optional and have default values in the platform\n */\nexport type VideoProps = MediaProps & {\n /**\n * Optional; the maximum duration in seconds after which the recording should terminate automatically.\n * Default value is defined by the platform serving the API.\n */\n maxDuration?: number;\n\n /**\n * Optional; to determine if the video capturing flow needs to be launched\n * in Full Screen Mode (Lens implementation) or PictureInPicture Mode (Native implementation).\n * Default value is true, indicating video will always launch in Full Screen Mode via lens.\n */\n isFullScreenMode?: boolean;\n\n /**\n * Optional; controls the visibility of stop button in PictureInPicture Mode.\n * Default value is true, indicating the user will be able to stop the video.\n */\n isStopButtonVisible?: boolean;\n};\n\n/**\n * All properties in VideoAndImageProps are optional and have default values in the platform\n */\nexport type VideoAndImageProps = ImageProps & VideoProps;\n\n/**\n * All properties in AudioProps are optional and have default values in the platform\n */\nexport type AudioProps = {\n /**\n * Optional; the maximum duration in minutes after which the recording should terminate automatically\n * Default value is defined by the platform serving the API.\n */\n maxDuration?: number;\n};\n\nexport class MediaClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async get(localUriId: string) {\n const [err, res] = await this.window.send<[ClientError | undefined, blob: Blob]>(\n 'getMedia',\n localUriId\n );\n\n if (err) {\n throw err;\n }\n\n return res;\n }\n\n async select(inputs: MediaInputs) {\n const [err, res] = await this.window.send<[ClientError | undefined, Array<File>]>(\n 'selectMedia',\n inputs\n );\n\n if (err) {\n throw err;\n }\n\n return res;\n }\n\n async captureImage() {\n await this.window.send('media.captureImage');\n }\n\n async viewImages(uris: ImageUri[]) {\n const [err] = await this.window.send<[ClientError | undefined]>('viewImages', uris);\n\n if (err) {\n throw err;\n }\n }\n}\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NotificationType } from '../types/notification-type.mjs';
|
|
2
|
-
import { WindowClient } from '../window-client.mjs';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.mjs';
|
|
5
|
-
import '../client-error.mjs';
|
|
6
|
-
|
|
7
|
-
type ShowNotificationParams = {
|
|
8
|
-
message: string;
|
|
9
|
-
notificationType: NotificationType;
|
|
10
|
-
};
|
|
11
|
-
declare class NotificationClient {
|
|
12
|
-
readonly window: WindowClient;
|
|
13
|
-
constructor(client: WindowClient);
|
|
14
|
-
show(params: ShowNotificationParams): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { NotificationClient, type ShowNotificationParams };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NotificationType } from '../types/notification-type.js';
|
|
2
|
-
import { WindowClient } from '../window-client.js';
|
|
3
|
-
import '@microsoft/teams.common';
|
|
4
|
-
import '../message.js';
|
|
5
|
-
import '../client-error.js';
|
|
6
|
-
|
|
7
|
-
type ShowNotificationParams = {
|
|
8
|
-
message: string;
|
|
9
|
-
notificationType: NotificationType;
|
|
10
|
-
};
|
|
11
|
-
declare class NotificationClient {
|
|
12
|
-
readonly window: WindowClient;
|
|
13
|
-
constructor(client: WindowClient);
|
|
14
|
-
show(params: ShowNotificationParams): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { NotificationClient, type ShowNotificationParams };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class NotificationClient {
|
|
4
|
-
window;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.window = client;
|
|
7
|
-
}
|
|
8
|
-
async show(params) {
|
|
9
|
-
await this.window.send("notifications.showNotification", params);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
exports.NotificationClient = NotificationClient;
|
|
14
|
-
//# sourceMappingURL=notification.js.map
|
|
15
|
-
//# sourceMappingURL=notification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/window/clients/notification.ts"],"names":[],"mappings":";;AAQO,MAAM,kBAAmB,CAAA;AAAA,EACrB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,KAAK,MAAgC,EAAA;AACzC,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,gCAAA,EAAkC,MAAM,CAAA;AAAA;AAEnE","file":"notification.js","sourcesContent":["import { NotificationType } from '../types';\nimport { WindowClient } from '../window-client';\n\nexport type ShowNotificationParams = {\n message: string;\n notificationType: NotificationType;\n};\n\nexport class NotificationClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async show(params: ShowNotificationParams) {\n await this.window.send('notifications.showNotification', params);\n }\n}\n"]}
|