@microsoft/teams.client 0.2.7
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 -0
- package/dist/app.d.mts +92 -0
- package/dist/app.d.ts +92 -0
- package/dist/app.js +122 -0
- package/dist/app.js.map +1 -0
- package/dist/app.mjs +98 -0
- package/dist/app.mjs.map +1 -0
- package/dist/context/app-host.d.mts +25 -0
- package/dist/context/app-host.d.ts +25 -0
- package/dist/context/app-host.js +4 -0
- package/dist/context/app-host.js.map +1 -0
- package/dist/context/app-host.mjs +3 -0
- package/dist/context/app-host.mjs.map +1 -0
- package/dist/context/app.d.mts +69 -0
- package/dist/context/app.d.ts +69 -0
- package/dist/context/app.js +4 -0
- package/dist/context/app.js.map +1 -0
- package/dist/context/app.mjs +3 -0
- package/dist/context/app.mjs.map +1 -0
- package/dist/context/channel.d.mts +37 -0
- package/dist/context/channel.d.ts +37 -0
- package/dist/context/channel.js +4 -0
- package/dist/context/channel.js.map +1 -0
- package/dist/context/channel.mjs +3 -0
- package/dist/context/channel.mjs.map +1 -0
- package/dist/context/chat.d.mts +11 -0
- package/dist/context/chat.d.ts +11 -0
- package/dist/context/chat.js +4 -0
- package/dist/context/chat.js.map +1 -0
- package/dist/context/chat.mjs +3 -0
- package/dist/context/chat.mjs.map +1 -0
- package/dist/context/index.d.mts +74 -0
- package/dist/context/index.d.ts +74 -0
- package/dist/context/index.js +108 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/index.mjs +86 -0
- package/dist/context/index.mjs.map +1 -0
- package/dist/context/meeting.d.mts +11 -0
- package/dist/context/meeting.d.ts +11 -0
- package/dist/context/meeting.js +4 -0
- package/dist/context/meeting.js.map +1 -0
- package/dist/context/meeting.mjs +3 -0
- package/dist/context/meeting.mjs.map +1 -0
- package/dist/context/page.d.mts +40 -0
- package/dist/context/page.d.ts +40 -0
- package/dist/context/page.js +4 -0
- package/dist/context/page.js.map +1 -0
- package/dist/context/page.mjs +3 -0
- package/dist/context/page.mjs.map +1 -0
- package/dist/context/share-point-site.d.mts +31 -0
- package/dist/context/share-point-site.d.ts +31 -0
- package/dist/context/share-point-site.js +4 -0
- package/dist/context/share-point-site.js.map +1 -0
- package/dist/context/share-point-site.mjs +3 -0
- package/dist/context/share-point-site.mjs.map +1 -0
- package/dist/context/team.d.mts +42 -0
- package/dist/context/team.d.ts +42 -0
- package/dist/context/team.js +4 -0
- package/dist/context/team.js.map +1 -0
- package/dist/context/team.mjs +3 -0
- package/dist/context/team.mjs.map +1 -0
- package/dist/context/tenant.d.mts +20 -0
- package/dist/context/tenant.d.ts +20 -0
- package/dist/context/tenant.js +4 -0
- package/dist/context/tenant.js.map +1 -0
- package/dist/context/tenant.mjs +3 -0
- package/dist/context/tenant.mjs.map +1 -0
- package/dist/context/user.d.mts +63 -0
- package/dist/context/user.d.ts +63 -0
- package/dist/context/user.js +4 -0
- package/dist/context/user.js.map +1 -0
- package/dist/context/user.mjs +3 -0
- package/dist/context/user.mjs.map +1 -0
- package/dist/index-5Ok-M8A0.d.ts +13 -0
- package/dist/index-7hUkxLxx.d.mts +17 -0
- package/dist/index-8IcDrPMv.d.ts +70 -0
- package/dist/index-D6kqtGPa.d.mts +13 -0
- package/dist/index-DJal_Cxb.d.mts +70 -0
- package/dist/index-DrTQ_GLN.d.mts +21 -0
- package/dist/index-DtE-Eb9L.d.ts +17 -0
- package/dist/index-_Hc8oq9_.d.ts +21 -0
- package/dist/index.d.mts +56 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -0
- package/dist/msal-utils.d.mts +30 -0
- package/dist/msal-utils.d.ts +30 -0
- package/dist/msal-utils.js +86 -0
- package/dist/msal-utils.js.map +1 -0
- package/dist/msal-utils.mjs +62 -0
- package/dist/msal-utils.mjs.map +1 -0
- package/dist/window/client-error.d.mts +10 -0
- package/dist/window/client-error.d.ts +10 -0
- package/dist/window/client-error.js +4 -0
- package/dist/window/client-error.js.map +1 -0
- package/dist/window/client-error.mjs +3 -0
- package/dist/window/client-error.mjs.map +1 -0
- package/dist/window/clients/app-entity.d.mts +12 -0
- package/dist/window/clients/app-entity.d.ts +12 -0
- package/dist/window/clients/app-entity.js +15 -0
- package/dist/window/clients/app-entity.js.map +1 -0
- package/dist/window/clients/app-entity.mjs +13 -0
- package/dist/window/clients/app-entity.mjs.map +1 -0
- package/dist/window/clients/app-initialization.d.mts +50 -0
- package/dist/window/clients/app-initialization.d.ts +50 -0
- package/dist/window/clients/app-initialization.js +24 -0
- package/dist/window/clients/app-initialization.js.map +1 -0
- package/dist/window/clients/app-initialization.mjs +22 -0
- package/dist/window/clients/app-initialization.mjs.map +1 -0
- package/dist/window/clients/app-install-dialog.d.mts +21 -0
- package/dist/window/clients/app-install-dialog.d.ts +21 -0
- package/dist/window/clients/app-install-dialog.js +22 -0
- package/dist/window/clients/app-install-dialog.js.map +1 -0
- package/dist/window/clients/app-install-dialog.mjs +20 -0
- package/dist/window/clients/app-install-dialog.mjs.map +1 -0
- package/dist/window/clients/authentication.d.mts +66 -0
- package/dist/window/clients/authentication.d.ts +66 -0
- package/dist/window/clients/authentication.js +47 -0
- package/dist/window/clients/authentication.js.map +1 -0
- package/dist/window/clients/authentication.mjs +45 -0
- package/dist/window/clients/authentication.mjs.map +1 -0
- package/dist/window/clients/bar-code.d.mts +13 -0
- package/dist/window/clients/bar-code.d.ts +13 -0
- package/dist/window/clients/bar-code.js +20 -0
- package/dist/window/clients/bar-code.js.map +1 -0
- package/dist/window/clients/bar-code.mjs +18 -0
- package/dist/window/clients/bar-code.mjs.map +1 -0
- package/dist/window/clients/calendar.d.mts +47 -0
- package/dist/window/clients/calendar.d.ts +47 -0
- package/dist/window/clients/calendar.js +18 -0
- package/dist/window/clients/calendar.js.map +1 -0
- package/dist/window/clients/calendar.mjs +16 -0
- package/dist/window/clients/calendar.mjs.map +1 -0
- package/dist/window/clients/call.d.mts +32 -0
- package/dist/window/clients/call.d.ts +32 -0
- package/dist/window/clients/call.js +16 -0
- package/dist/window/clients/call.js.map +1 -0
- package/dist/window/clients/call.mjs +14 -0
- package/dist/window/clients/call.mjs.map +1 -0
- package/dist/window/clients/clipboard.d.mts +26 -0
- package/dist/window/clients/clipboard.d.ts +26 -0
- package/dist/window/clients/clipboard.js +19 -0
- package/dist/window/clients/clipboard.js.map +1 -0
- package/dist/window/clients/clipboard.mjs +17 -0
- package/dist/window/clients/clipboard.mjs.map +1 -0
- package/dist/window/clients/conversation.d.mts +53 -0
- package/dist/window/clients/conversation.d.ts +53 -0
- package/dist/window/clients/conversation.js +25 -0
- package/dist/window/clients/conversation.js.map +1 -0
- package/dist/window/clients/conversation.mjs +23 -0
- package/dist/window/clients/conversation.mjs.map +1 -0
- package/dist/window/clients/dialog.d.mts +81 -0
- package/dist/window/clients/dialog.d.ts +81 -0
- package/dist/window/clients/dialog.js +37 -0
- package/dist/window/clients/dialog.js.map +1 -0
- package/dist/window/clients/dialog.mjs +35 -0
- package/dist/window/clients/dialog.mjs.map +1 -0
- package/dist/window/clients/index.d.mts +84 -0
- package/dist/window/clients/index.d.ts +84 -0
- package/dist/window/clients/index.js +159 -0
- package/dist/window/clients/index.js.map +1 -0
- package/dist/window/clients/index.mjs +87 -0
- package/dist/window/clients/index.mjs.map +1 -0
- package/dist/window/clients/location.d.mts +14 -0
- package/dist/window/clients/location.d.ts +14 -0
- package/dist/window/clients/location.js +22 -0
- package/dist/window/clients/location.js.map +1 -0
- package/dist/window/clients/location.mjs +20 -0
- package/dist/window/clients/location.mjs.map +1 -0
- package/dist/window/clients/media.d.mts +190 -0
- package/dist/window/clients/media.d.ts +190 -0
- package/dist/window/clients/media.js +75 -0
- package/dist/window/clients/media.js.map +1 -0
- package/dist/window/clients/media.mjs +68 -0
- package/dist/window/clients/media.mjs.map +1 -0
- package/dist/window/clients/notification.d.mts +17 -0
- package/dist/window/clients/notification.d.ts +17 -0
- package/dist/window/clients/notification.js +15 -0
- package/dist/window/clients/notification.js.map +1 -0
- package/dist/window/clients/notification.mjs +13 -0
- package/dist/window/clients/notification.mjs.map +1 -0
- package/dist/window/clients/permission.d.mts +14 -0
- package/dist/window/clients/permission.d.ts +14 -0
- package/dist/window/clients/permission.js +20 -0
- package/dist/window/clients/permission.js.map +1 -0
- package/dist/window/clients/permission.mjs +18 -0
- package/dist/window/clients/permission.mjs.map +1 -0
- package/dist/window/index.d.mts +59 -0
- package/dist/window/index.d.ts +59 -0
- package/dist/window/index.js +35 -0
- package/dist/window/index.js.map +1 -0
- package/dist/window/index.mjs +6 -0
- package/dist/window/index.mjs.map +1 -0
- package/dist/window/message.d.mts +24 -0
- package/dist/window/message.d.ts +24 -0
- package/dist/window/message.js +4 -0
- package/dist/window/message.js.map +1 -0
- package/dist/window/message.mjs +3 -0
- package/dist/window/message.mjs.map +1 -0
- package/dist/window/runtime.d.mts +96 -0
- package/dist/window/runtime.d.ts +96 -0
- package/dist/window/runtime.js +4 -0
- package/dist/window/runtime.js.map +1 -0
- package/dist/window/runtime.mjs +3 -0
- package/dist/window/runtime.mjs.map +1 -0
- package/dist/window/types/action-open-url-type.d.mts +15 -0
- package/dist/window/types/action-open-url-type.d.ts +15 -0
- package/dist/window/types/action-open-url-type.js +13 -0
- package/dist/window/types/action-open-url-type.js.map +1 -0
- package/dist/window/types/action-open-url-type.mjs +11 -0
- package/dist/window/types/action-open-url-type.mjs.map +1 -0
- package/dist/window/types/app-eligibility-info.d.mts +48 -0
- package/dist/window/types/app-eligibility-info.d.ts +48 -0
- package/dist/window/types/app-eligibility-info.js +4 -0
- package/dist/window/types/app-eligibility-info.js.map +1 -0
- package/dist/window/types/app-eligibility-info.mjs +3 -0
- package/dist/window/types/app-eligibility-info.mjs.map +1 -0
- package/dist/window/types/bar-code-config.d.mts +13 -0
- package/dist/window/types/bar-code-config.d.ts +13 -0
- package/dist/window/types/bar-code-config.js +4 -0
- package/dist/window/types/bar-code-config.js.map +1 -0
- package/dist/window/types/bar-code-config.mjs +3 -0
- package/dist/window/types/bar-code-config.mjs.map +1 -0
- package/dist/window/types/call-modality.d.mts +21 -0
- package/dist/window/types/call-modality.d.ts +21 -0
- package/dist/window/types/call-modality.js +14 -0
- package/dist/window/types/call-modality.js.map +1 -0
- package/dist/window/types/call-modality.mjs +12 -0
- package/dist/window/types/call-modality.mjs.map +1 -0
- package/dist/window/types/channel-type.d.mts +17 -0
- package/dist/window/types/channel-type.d.ts +17 -0
- package/dist/window/types/channel-type.js +12 -0
- package/dist/window/types/channel-type.js.map +1 -0
- package/dist/window/types/channel-type.mjs +10 -0
- package/dist/window/types/channel-type.mjs.map +1 -0
- package/dist/window/types/context.d.mts +275 -0
- package/dist/window/types/context.d.ts +275 -0
- package/dist/window/types/context.js +4 -0
- package/dist/window/types/context.js.map +1 -0
- package/dist/window/types/context.mjs +3 -0
- package/dist/window/types/context.mjs.map +1 -0
- package/dist/window/types/data-residency.d.mts +6 -0
- package/dist/window/types/data-residency.d.ts +6 -0
- package/dist/window/types/data-residency.js +4 -0
- package/dist/window/types/data-residency.js.map +1 -0
- package/dist/window/types/data-residency.mjs +3 -0
- package/dist/window/types/data-residency.mjs.map +1 -0
- package/dist/window/types/dialog/dialog-dimension.d.mts +17 -0
- package/dist/window/types/dialog/dialog-dimension.d.ts +17 -0
- package/dist/window/types/dialog/dialog-dimension.js +12 -0
- package/dist/window/types/dialog/dialog-dimension.js.map +1 -0
- package/dist/window/types/dialog/dialog-dimension.mjs +10 -0
- package/dist/window/types/dialog/dialog-dimension.mjs.map +1 -0
- package/dist/window/types/dialog/dialog-info.d.mts +43 -0
- package/dist/window/types/dialog/dialog-info.d.ts +43 -0
- package/dist/window/types/dialog/dialog-info.js +4 -0
- package/dist/window/types/dialog/dialog-info.js.map +1 -0
- package/dist/window/types/dialog/dialog-info.mjs +3 -0
- package/dist/window/types/dialog/dialog-info.mjs.map +1 -0
- package/dist/window/types/dialog/dialog-size.d.mts +14 -0
- package/dist/window/types/dialog/dialog-size.d.ts +14 -0
- package/dist/window/types/dialog/dialog-size.js +4 -0
- package/dist/window/types/dialog/dialog-size.js.map +1 -0
- package/dist/window/types/dialog/dialog-size.mjs +3 -0
- package/dist/window/types/dialog/dialog-size.mjs.map +1 -0
- package/dist/window/types/dialog/index.d.mts +3 -0
- package/dist/window/types/dialog/index.d.ts +3 -0
- package/dist/window/types/dialog/index.js +28 -0
- package/dist/window/types/dialog/index.js.map +1 -0
- package/dist/window/types/dialog/index.mjs +5 -0
- package/dist/window/types/dialog/index.mjs.map +1 -0
- package/dist/window/types/file-open-preference.d.mts +17 -0
- package/dist/window/types/file-open-preference.d.ts +17 -0
- package/dist/window/types/file-open-preference.js +12 -0
- package/dist/window/types/file-open-preference.js.map +1 -0
- package/dist/window/types/file-open-preference.mjs +10 -0
- package/dist/window/types/file-open-preference.mjs.map +1 -0
- package/dist/window/types/file.d.mts +42 -0
- package/dist/window/types/file.d.ts +42 -0
- package/dist/window/types/file.js +11 -0
- package/dist/window/types/file.js.map +1 -0
- package/dist/window/types/file.mjs +9 -0
- package/dist/window/types/file.mjs.map +1 -0
- package/dist/window/types/frame-context.d.mts +44 -0
- package/dist/window/types/frame-context.d.ts +44 -0
- package/dist/window/types/frame-context.js +17 -0
- package/dist/window/types/frame-context.js.map +1 -0
- package/dist/window/types/frame-context.mjs +15 -0
- package/dist/window/types/frame-context.mjs.map +1 -0
- package/dist/window/types/host.d.mts +73 -0
- package/dist/window/types/host.d.ts +73 -0
- package/dist/window/types/host.js +32 -0
- package/dist/window/types/host.js.map +1 -0
- package/dist/window/types/host.mjs +29 -0
- package/dist/window/types/host.mjs.map +1 -0
- package/dist/window/types/index.d.mts +39 -0
- package/dist/window/types/index.d.ts +39 -0
- package/dist/window/types/index.js +189 -0
- package/dist/window/types/index.js.map +1 -0
- package/dist/window/types/index.mjs +30 -0
- package/dist/window/types/index.mjs.map +1 -0
- package/dist/window/types/legal-age-group-classification.d.mts +34 -0
- package/dist/window/types/legal-age-group-classification.d.ts +34 -0
- package/dist/window/types/legal-age-group-classification.js +14 -0
- package/dist/window/types/legal-age-group-classification.js.map +1 -0
- package/dist/window/types/legal-age-group-classification.mjs +12 -0
- package/dist/window/types/legal-age-group-classification.mjs.map +1 -0
- package/dist/window/types/liveshare/client.d.mts +23 -0
- package/dist/window/types/liveshare/client.d.ts +23 -0
- package/dist/window/types/liveshare/client.js +4 -0
- package/dist/window/types/liveshare/client.js.map +1 -0
- package/dist/window/types/liveshare/client.mjs +3 -0
- package/dist/window/types/liveshare/client.mjs.map +1 -0
- package/dist/window/types/liveshare/container-state.d.mts +33 -0
- package/dist/window/types/liveshare/container-state.d.ts +33 -0
- package/dist/window/types/liveshare/container-state.js +13 -0
- package/dist/window/types/liveshare/container-state.js.map +1 -0
- package/dist/window/types/liveshare/container-state.mjs +11 -0
- package/dist/window/types/liveshare/container-state.mjs.map +1 -0
- package/dist/window/types/liveshare/fluid-container.d.mts +28 -0
- package/dist/window/types/liveshare/fluid-container.d.ts +28 -0
- package/dist/window/types/liveshare/fluid-container.js +4 -0
- package/dist/window/types/liveshare/fluid-container.js.map +1 -0
- package/dist/window/types/liveshare/fluid-container.mjs +3 -0
- package/dist/window/types/liveshare/fluid-container.mjs.map +1 -0
- package/dist/window/types/liveshare/fluid-tenant.d.mts +16 -0
- package/dist/window/types/liveshare/fluid-tenant.d.ts +16 -0
- package/dist/window/types/liveshare/fluid-tenant.js +4 -0
- package/dist/window/types/liveshare/fluid-tenant.js.map +1 -0
- package/dist/window/types/liveshare/fluid-tenant.mjs +3 -0
- package/dist/window/types/liveshare/fluid-tenant.mjs.map +1 -0
- package/dist/window/types/liveshare/index.d.mts +6 -0
- package/dist/window/types/liveshare/index.d.ts +6 -0
- package/dist/window/types/liveshare/index.js +42 -0
- package/dist/window/types/liveshare/index.js.map +1 -0
- package/dist/window/types/liveshare/index.mjs +7 -0
- package/dist/window/types/liveshare/index.mjs.map +1 -0
- package/dist/window/types/liveshare/ntp-time.d.mts +16 -0
- package/dist/window/types/liveshare/ntp-time.d.ts +16 -0
- package/dist/window/types/liveshare/ntp-time.js +4 -0
- package/dist/window/types/liveshare/ntp-time.js.map +1 -0
- package/dist/window/types/liveshare/ntp-time.mjs +3 -0
- package/dist/window/types/liveshare/ntp-time.mjs.map +1 -0
- package/dist/window/types/locale.d.mts +38 -0
- package/dist/window/types/locale.d.ts +38 -0
- package/dist/window/types/locale.js +4 -0
- package/dist/window/types/locale.js.map +1 -0
- package/dist/window/types/locale.mjs +3 -0
- package/dist/window/types/locale.mjs.map +1 -0
- package/dist/window/types/location.d.mts +25 -0
- package/dist/window/types/location.d.ts +25 -0
- package/dist/window/types/location.js +4 -0
- package/dist/window/types/location.js.map +1 -0
- package/dist/window/types/location.mjs +3 -0
- package/dist/window/types/location.mjs.map +1 -0
- package/dist/window/types/marketplace/cart-info.d.mts +47 -0
- package/dist/window/types/marketplace/cart-info.d.ts +47 -0
- package/dist/window/types/marketplace/cart-info.js +4 -0
- package/dist/window/types/marketplace/cart-info.js.map +1 -0
- package/dist/window/types/marketplace/cart-info.mjs +3 -0
- package/dist/window/types/marketplace/cart-info.mjs.map +1 -0
- package/dist/window/types/marketplace/cart-item.d.mts +40 -0
- package/dist/window/types/marketplace/cart-item.d.ts +40 -0
- package/dist/window/types/marketplace/cart-item.js +4 -0
- package/dist/window/types/marketplace/cart-item.js.map +1 -0
- package/dist/window/types/marketplace/cart-item.mjs +3 -0
- package/dist/window/types/marketplace/cart-item.mjs.map +1 -0
- package/dist/window/types/marketplace/cart-status.d.mts +33 -0
- package/dist/window/types/marketplace/cart-status.d.ts +33 -0
- package/dist/window/types/marketplace/cart-status.js +14 -0
- package/dist/window/types/marketplace/cart-status.js.map +1 -0
- package/dist/window/types/marketplace/cart-status.mjs +12 -0
- package/dist/window/types/marketplace/cart-status.mjs.map +1 -0
- package/dist/window/types/marketplace/cart-version.d.mts +17 -0
- package/dist/window/types/marketplace/cart-version.d.ts +17 -0
- package/dist/window/types/marketplace/cart-version.js +4 -0
- package/dist/window/types/marketplace/cart-version.js.map +1 -0
- package/dist/window/types/marketplace/cart-version.mjs +3 -0
- package/dist/window/types/marketplace/cart-version.mjs.map +1 -0
- package/dist/window/types/marketplace/cart.d.mts +29 -0
- package/dist/window/types/marketplace/cart.d.ts +29 -0
- package/dist/window/types/marketplace/cart.js +4 -0
- package/dist/window/types/marketplace/cart.js.map +1 -0
- package/dist/window/types/marketplace/cart.mjs +3 -0
- package/dist/window/types/marketplace/cart.mjs.map +1 -0
- package/dist/window/types/marketplace/index.d.mts +6 -0
- package/dist/window/types/marketplace/index.d.ts +6 -0
- package/dist/window/types/marketplace/index.js +49 -0
- package/dist/window/types/marketplace/index.js.map +1 -0
- package/dist/window/types/marketplace/index.mjs +8 -0
- package/dist/window/types/marketplace/index.mjs.map +1 -0
- package/dist/window/types/marketplace/intent.d.mts +23 -0
- package/dist/window/types/marketplace/intent.d.ts +23 -0
- package/dist/window/types/marketplace/intent.js +12 -0
- package/dist/window/types/marketplace/intent.js.map +1 -0
- package/dist/window/types/marketplace/intent.mjs +10 -0
- package/dist/window/types/marketplace/intent.mjs.map +1 -0
- package/dist/window/types/notification-type.d.mts +3 -0
- package/dist/window/types/notification-type.d.ts +3 -0
- package/dist/window/types/notification-type.js +4 -0
- package/dist/window/types/notification-type.js.map +1 -0
- package/dist/window/types/notification-type.mjs +3 -0
- package/dist/window/types/notification-type.mjs.map +1 -0
- package/dist/window/types/permission.d.mts +3 -0
- package/dist/window/types/permission.d.ts +3 -0
- package/dist/window/types/permission.js +4 -0
- package/dist/window/types/permission.js.map +1 -0
- package/dist/window/types/permission.mjs +3 -0
- package/dist/window/types/permission.mjs.map +1 -0
- package/dist/window/types/team-type.d.mts +24 -0
- package/dist/window/types/team-type.d.ts +24 -0
- package/dist/window/types/team-type.js +18 -0
- package/dist/window/types/team-type.js.map +1 -0
- package/dist/window/types/team-type.mjs +15 -0
- package/dist/window/types/team-type.mjs.map +1 -0
- package/dist/window/types/theme.d.mts +6 -0
- package/dist/window/types/theme.d.ts +6 -0
- package/dist/window/types/theme.js +4 -0
- package/dist/window/types/theme.js.map +1 -0
- package/dist/window/types/theme.mjs +3 -0
- package/dist/window/types/theme.mjs.map +1 -0
- package/dist/window/types/thread-member.d.mts +11 -0
- package/dist/window/types/thread-member.d.ts +11 -0
- package/dist/window/types/thread-member.js +4 -0
- package/dist/window/types/thread-member.js.map +1 -0
- package/dist/window/types/thread-member.mjs +3 -0
- package/dist/window/types/thread-member.mjs.map +1 -0
- package/dist/window/types/user-meeting-role.d.mts +31 -0
- package/dist/window/types/user-meeting-role.d.ts +31 -0
- package/dist/window/types/user-meeting-role.js +13 -0
- package/dist/window/types/user-meeting-role.js.map +1 -0
- package/dist/window/types/user-meeting-role.mjs +11 -0
- package/dist/window/types/user-meeting-role.mjs.map +1 -0
- package/dist/window/types/user-profile.d.mts +82 -0
- package/dist/window/types/user-profile.d.ts +82 -0
- package/dist/window/types/user-profile.js +4 -0
- package/dist/window/types/user-profile.js.map +1 -0
- package/dist/window/types/user-profile.mjs +3 -0
- package/dist/window/types/user-profile.mjs.map +1 -0
- package/dist/window/types/user-team-role.d.mts +18 -0
- package/dist/window/types/user-team-role.d.ts +18 -0
- package/dist/window/types/user-team-role.js +16 -0
- package/dist/window/types/user-team-role.js.map +1 -0
- package/dist/window/types/user-team-role.mjs +13 -0
- package/dist/window/types/user-team-role.mjs.map +1 -0
- package/dist/window/window-client.d.mts +28 -0
- package/dist/window/window-client.d.ts +28 -0
- package/dist/window/window-client.js +92 -0
- package/dist/window/window-client.js.map +1 -0
- package/dist/window/window-client.mjs +70 -0
- package/dist/window/window-client.mjs.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { FileOpenPreference } from '../window/types/file-open-preference.js';
|
|
2
|
+
import { Locale } from '../window/types/locale.js';
|
|
3
|
+
import { Theme } from '../window/types/theme.js';
|
|
4
|
+
import { AppHostContext } from './app-host.js';
|
|
5
|
+
import '../window/types/host.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Represents application information.
|
|
9
|
+
*/
|
|
10
|
+
type AppContext = {
|
|
11
|
+
/**
|
|
12
|
+
* This ID is the unique identifier assigned to the app after deployment and is critical for ensuring the correct app instance is recognized across hosts.
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* ID for the current visible app which is different for across cached sessions. Used for correlating telemetry data.
|
|
17
|
+
*/
|
|
18
|
+
launchId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Unique ID for the current session for use in correlating telemetry data. A session corresponds to the lifecycle of an app. A new session begins upon the creation of a webview (on Teams mobile) or iframe (in Teams desktop) hosting the app, and ends when it is destroyed.
|
|
21
|
+
*/
|
|
22
|
+
sessionId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The current locale that the user has configured for the app formatted as
|
|
25
|
+
* languageId-countryId (for example, en-us).
|
|
26
|
+
*/
|
|
27
|
+
locale: string;
|
|
28
|
+
/**
|
|
29
|
+
* The current UI theme of the host. Possible values: "default", "dark", "contrast" or "glass".
|
|
30
|
+
*/
|
|
31
|
+
theme: Theme;
|
|
32
|
+
/**
|
|
33
|
+
* Info of the host
|
|
34
|
+
*/
|
|
35
|
+
host: AppHostContext;
|
|
36
|
+
/**
|
|
37
|
+
* More detailed locale info from the user's OS if available. Can be used together with
|
|
38
|
+
* the @microsoft/globe NPM package to ensure your app respects the user's OS date and
|
|
39
|
+
* time format configuration
|
|
40
|
+
*/
|
|
41
|
+
osLocaleInfo?: Locale;
|
|
42
|
+
/**
|
|
43
|
+
* Personal app icon y coordinate position
|
|
44
|
+
*/
|
|
45
|
+
iconPositionVertical?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Time when the user clicked on the tab using the date.
|
|
48
|
+
*/
|
|
49
|
+
userClickTime?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Time when the user click on the app by using the performance timer API. Useful for measuring elapsed time accurately.
|
|
52
|
+
*/
|
|
53
|
+
userClickTimeV2?: number;
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the parent message from which this task module was launched.
|
|
56
|
+
* This is only available in task modules launched from bot cards.
|
|
57
|
+
*/
|
|
58
|
+
parentMessageId?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Where the user prefers the file to be opened from by default during file open
|
|
61
|
+
*/
|
|
62
|
+
userFileOpenPreference?: FileOpenPreference;
|
|
63
|
+
/**
|
|
64
|
+
* The version of the manifest that the app is running.
|
|
65
|
+
*/
|
|
66
|
+
manifestVersion?: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type { AppContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"app.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"app.mjs"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChannelType } from '../window/types/channel-type.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents Channel information.
|
|
5
|
+
*/
|
|
6
|
+
type ChannelContext = {
|
|
7
|
+
/**
|
|
8
|
+
* The Microsoft Teams ID for the channel with which the content is associated.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The name for the channel with which the content is associated.
|
|
13
|
+
*/
|
|
14
|
+
displayName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The relative path to the SharePoint folder associated with the channel.
|
|
17
|
+
*/
|
|
18
|
+
relativeUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the channel with which the content is associated.
|
|
21
|
+
*/
|
|
22
|
+
membershipType?: ChannelType;
|
|
23
|
+
/**
|
|
24
|
+
* The OneNote section ID that is linked to the channel.
|
|
25
|
+
*/
|
|
26
|
+
defaultOneNoteSectionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The tenant ID of the team which owns the channel.
|
|
29
|
+
*/
|
|
30
|
+
ownerTenantId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The Microsoft Entra group ID of the team which owns the channel.
|
|
33
|
+
*/
|
|
34
|
+
ownerGroupId?: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type { ChannelContext };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ChannelType } from '../window/types/channel-type.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents Channel information.
|
|
5
|
+
*/
|
|
6
|
+
type ChannelContext = {
|
|
7
|
+
/**
|
|
8
|
+
* The Microsoft Teams ID for the channel with which the content is associated.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The name for the channel with which the content is associated.
|
|
13
|
+
*/
|
|
14
|
+
displayName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The relative path to the SharePoint folder associated with the channel.
|
|
17
|
+
*/
|
|
18
|
+
relativeUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the channel with which the content is associated.
|
|
21
|
+
*/
|
|
22
|
+
membershipType?: ChannelType;
|
|
23
|
+
/**
|
|
24
|
+
* The OneNote section ID that is linked to the channel.
|
|
25
|
+
*/
|
|
26
|
+
defaultOneNoteSectionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The tenant ID of the team which owns the channel.
|
|
29
|
+
*/
|
|
30
|
+
ownerTenantId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The Microsoft Entra group ID of the team which owns the channel.
|
|
33
|
+
*/
|
|
34
|
+
ownerGroupId?: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type { ChannelContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"channel.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"channel.mjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chat.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chat.mjs"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Context as Context$1 } from '../window/types/context.mjs';
|
|
2
|
+
import { AppContext } from './app.mjs';
|
|
3
|
+
import { ChannelContext } from './channel.mjs';
|
|
4
|
+
import { ChatContext } from './chat.mjs';
|
|
5
|
+
import { MeetingContext } from './meeting.mjs';
|
|
6
|
+
import { PageContext } from './page.mjs';
|
|
7
|
+
import { SharePointSiteContext } from './share-point-site.mjs';
|
|
8
|
+
import { TeamContext } from './team.mjs';
|
|
9
|
+
import { UserContext } from './user.mjs';
|
|
10
|
+
import '../window/types/channel-type.mjs';
|
|
11
|
+
import '../window/types/file-open-preference.mjs';
|
|
12
|
+
import '../window/types/frame-context.mjs';
|
|
13
|
+
import '../window/types/host.mjs';
|
|
14
|
+
import '../window/types/locale.mjs';
|
|
15
|
+
import '../window/types/team-type.mjs';
|
|
16
|
+
import '../window/types/theme.mjs';
|
|
17
|
+
import '../window/types/user-team-role.mjs';
|
|
18
|
+
import './app-host.mjs';
|
|
19
|
+
import './tenant.mjs';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Represents structure of the received context message.
|
|
23
|
+
*/
|
|
24
|
+
type Context = {
|
|
25
|
+
/**
|
|
26
|
+
* Properties about the current session for your app
|
|
27
|
+
*/
|
|
28
|
+
app: AppContext;
|
|
29
|
+
/**
|
|
30
|
+
* Info about the current page context hosting your app
|
|
31
|
+
*/
|
|
32
|
+
page: PageContext;
|
|
33
|
+
/**
|
|
34
|
+
* Info about the currently logged in user running the app.
|
|
35
|
+
* If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.
|
|
36
|
+
*/
|
|
37
|
+
user?: UserContext;
|
|
38
|
+
/**
|
|
39
|
+
* When running in the context of a Teams channel, provides information about the channel, else `undefined`
|
|
40
|
+
*/
|
|
41
|
+
channel?: ChannelContext;
|
|
42
|
+
/**
|
|
43
|
+
* When running in the context of a Teams chat, provides information about the chat, else `undefined`
|
|
44
|
+
*/
|
|
45
|
+
chat?: ChatContext;
|
|
46
|
+
/**
|
|
47
|
+
* When running in the context of a Teams meeting, provides information about the meeting, else `undefined`
|
|
48
|
+
*/
|
|
49
|
+
meeting?: MeetingContext;
|
|
50
|
+
/**
|
|
51
|
+
* When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`
|
|
52
|
+
*/
|
|
53
|
+
sharepoint?: any;
|
|
54
|
+
/**
|
|
55
|
+
* When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
|
|
56
|
+
* Will be `undefined` when not running in Teams for an organization with a tenant.
|
|
57
|
+
*/
|
|
58
|
+
sharePointSite?: SharePointSiteContext;
|
|
59
|
+
/**
|
|
60
|
+
* When running in Teams, provides information about the Team context in which your app is running.
|
|
61
|
+
* Will be `undefined` when not running in Teams.
|
|
62
|
+
*/
|
|
63
|
+
team?: TeamContext;
|
|
64
|
+
/**
|
|
65
|
+
* When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.
|
|
66
|
+
* App developers need to use these `extractedParameters` in their dialog.
|
|
67
|
+
* They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
|
|
68
|
+
* If there's no key/value pairs passed, the object will be empty in the case
|
|
69
|
+
*/
|
|
70
|
+
dialogParameters: Record<string, string>;
|
|
71
|
+
};
|
|
72
|
+
declare function mapContext(ctx: Context$1): Context;
|
|
73
|
+
|
|
74
|
+
export { type Context, mapContext };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Context as Context$1 } from '../window/types/context.js';
|
|
2
|
+
import { AppContext } from './app.js';
|
|
3
|
+
import { ChannelContext } from './channel.js';
|
|
4
|
+
import { ChatContext } from './chat.js';
|
|
5
|
+
import { MeetingContext } from './meeting.js';
|
|
6
|
+
import { PageContext } from './page.js';
|
|
7
|
+
import { SharePointSiteContext } from './share-point-site.js';
|
|
8
|
+
import { TeamContext } from './team.js';
|
|
9
|
+
import { UserContext } from './user.js';
|
|
10
|
+
import '../window/types/channel-type.js';
|
|
11
|
+
import '../window/types/file-open-preference.js';
|
|
12
|
+
import '../window/types/frame-context.js';
|
|
13
|
+
import '../window/types/host.js';
|
|
14
|
+
import '../window/types/locale.js';
|
|
15
|
+
import '../window/types/team-type.js';
|
|
16
|
+
import '../window/types/theme.js';
|
|
17
|
+
import '../window/types/user-team-role.js';
|
|
18
|
+
import './app-host.js';
|
|
19
|
+
import './tenant.js';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Represents structure of the received context message.
|
|
23
|
+
*/
|
|
24
|
+
type Context = {
|
|
25
|
+
/**
|
|
26
|
+
* Properties about the current session for your app
|
|
27
|
+
*/
|
|
28
|
+
app: AppContext;
|
|
29
|
+
/**
|
|
30
|
+
* Info about the current page context hosting your app
|
|
31
|
+
*/
|
|
32
|
+
page: PageContext;
|
|
33
|
+
/**
|
|
34
|
+
* Info about the currently logged in user running the app.
|
|
35
|
+
* If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.
|
|
36
|
+
*/
|
|
37
|
+
user?: UserContext;
|
|
38
|
+
/**
|
|
39
|
+
* When running in the context of a Teams channel, provides information about the channel, else `undefined`
|
|
40
|
+
*/
|
|
41
|
+
channel?: ChannelContext;
|
|
42
|
+
/**
|
|
43
|
+
* When running in the context of a Teams chat, provides information about the chat, else `undefined`
|
|
44
|
+
*/
|
|
45
|
+
chat?: ChatContext;
|
|
46
|
+
/**
|
|
47
|
+
* When running in the context of a Teams meeting, provides information about the meeting, else `undefined`
|
|
48
|
+
*/
|
|
49
|
+
meeting?: MeetingContext;
|
|
50
|
+
/**
|
|
51
|
+
* When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`
|
|
52
|
+
*/
|
|
53
|
+
sharepoint?: any;
|
|
54
|
+
/**
|
|
55
|
+
* When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
|
|
56
|
+
* Will be `undefined` when not running in Teams for an organization with a tenant.
|
|
57
|
+
*/
|
|
58
|
+
sharePointSite?: SharePointSiteContext;
|
|
59
|
+
/**
|
|
60
|
+
* When running in Teams, provides information about the Team context in which your app is running.
|
|
61
|
+
* Will be `undefined` when not running in Teams.
|
|
62
|
+
*/
|
|
63
|
+
team?: TeamContext;
|
|
64
|
+
/**
|
|
65
|
+
* When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.
|
|
66
|
+
* App developers need to use these `extractedParameters` in their dialog.
|
|
67
|
+
* They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.
|
|
68
|
+
* If there's no key/value pairs passed, the object will be empty in the case
|
|
69
|
+
*/
|
|
70
|
+
dialogParameters: Record<string, string>;
|
|
71
|
+
};
|
|
72
|
+
declare function mapContext(ctx: Context$1): Context;
|
|
73
|
+
|
|
74
|
+
export { type Context, mapContext };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var window = require('../window');
|
|
4
|
+
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var window__namespace = /*#__PURE__*/_interopNamespace(window);
|
|
24
|
+
|
|
25
|
+
function mapContext(ctx) {
|
|
26
|
+
return {
|
|
27
|
+
app: {
|
|
28
|
+
id: ctx.appId,
|
|
29
|
+
locale: ctx.locale,
|
|
30
|
+
launchId: ctx.appLaunchId,
|
|
31
|
+
sessionId: ctx.appSessionId ? ctx.appSessionId : "",
|
|
32
|
+
theme: ctx.theme ? ctx.theme : "default",
|
|
33
|
+
iconPositionVertical: ctx.appIconPosition,
|
|
34
|
+
osLocaleInfo: ctx.osLocaleInfo,
|
|
35
|
+
parentMessageId: ctx.parentMessageId,
|
|
36
|
+
userClickTime: ctx.userClickTime,
|
|
37
|
+
userClickTimeV2: ctx.userClickTimeV2,
|
|
38
|
+
userFileOpenPreference: ctx.userFileOpenPreference,
|
|
39
|
+
host: {
|
|
40
|
+
name: ctx.hostName ? ctx.hostName : "Teams",
|
|
41
|
+
clientType: ctx.hostClientType ? ctx.hostClientType : "web",
|
|
42
|
+
sessionId: ctx.sessionId ? ctx.sessionId : "",
|
|
43
|
+
ringId: ctx.ringId
|
|
44
|
+
},
|
|
45
|
+
manifestVersion: ctx.manifestVersion
|
|
46
|
+
},
|
|
47
|
+
page: {
|
|
48
|
+
id: ctx.entityId,
|
|
49
|
+
frameContext: ctx.frameContext || "content",
|
|
50
|
+
subPageId: ctx.subEntityId,
|
|
51
|
+
isFullScreen: ctx.isFullScreen,
|
|
52
|
+
isMultiWindow: ctx.isMultiWindow,
|
|
53
|
+
isBackgroundLoad: ctx.isBackgroundLoad,
|
|
54
|
+
sourceOrigin: ctx.sourceOrigin
|
|
55
|
+
},
|
|
56
|
+
user: {
|
|
57
|
+
id: ctx.userObjectId ?? "",
|
|
58
|
+
displayName: ctx.userDisplayName,
|
|
59
|
+
isCallingAllowed: ctx.isCallingAllowed,
|
|
60
|
+
isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,
|
|
61
|
+
licenseType: ctx.userLicenseType,
|
|
62
|
+
loginHint: ctx.loginHint,
|
|
63
|
+
userPrincipalName: ctx.userPrincipalName,
|
|
64
|
+
tenant: ctx.tid ? {
|
|
65
|
+
id: ctx.tid,
|
|
66
|
+
teamsSku: ctx.tenantSKU
|
|
67
|
+
} : void 0
|
|
68
|
+
},
|
|
69
|
+
channel: ctx.channelId ? {
|
|
70
|
+
id: ctx.channelId,
|
|
71
|
+
displayName: ctx.channelName,
|
|
72
|
+
relativeUrl: ctx.channelRelativeUrl,
|
|
73
|
+
membershipType: ctx.channelType,
|
|
74
|
+
defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,
|
|
75
|
+
ownerGroupId: ctx.hostTeamGroupId,
|
|
76
|
+
ownerTenantId: ctx.hostTeamTenantId
|
|
77
|
+
} : void 0,
|
|
78
|
+
chat: ctx.chatId ? {
|
|
79
|
+
id: ctx.chatId
|
|
80
|
+
} : void 0,
|
|
81
|
+
meeting: ctx.meetingId ? {
|
|
82
|
+
id: ctx.meetingId
|
|
83
|
+
} : void 0,
|
|
84
|
+
sharepoint: ctx.sharepoint,
|
|
85
|
+
team: ctx.teamId ? {
|
|
86
|
+
internalId: ctx.teamId,
|
|
87
|
+
displayName: ctx.teamName,
|
|
88
|
+
type: ctx.teamType ? window__namespace.mapTeamType(ctx.teamType) : void 0,
|
|
89
|
+
groupId: ctx.groupId,
|
|
90
|
+
templateId: ctx.teamTemplateId,
|
|
91
|
+
isArchived: ctx.isTeamArchived,
|
|
92
|
+
userRole: ctx.userTeamRole ? window__namespace.mapUserTeamRole(ctx.userTeamRole) : void 0
|
|
93
|
+
} : void 0,
|
|
94
|
+
sharePointSite: ctx.teamSiteUrl || ctx.teamSiteDomain || ctx.teamSitePath || ctx.mySitePath || ctx.mySiteDomain ? {
|
|
95
|
+
teamSiteUrl: ctx.teamSiteUrl,
|
|
96
|
+
teamSiteDomain: ctx.teamSiteDomain,
|
|
97
|
+
teamSitePath: ctx.teamSitePath,
|
|
98
|
+
teamSiteId: ctx.teamSiteId,
|
|
99
|
+
mySitePath: ctx.mySitePath,
|
|
100
|
+
mySiteDomain: ctx.mySiteDomain
|
|
101
|
+
} : void 0,
|
|
102
|
+
dialogParameters: ctx.dialogParameters || {}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
exports.mapContext = mapContext;
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
108
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/index.ts"],"names":["window"],"mappings":"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","file":"index.js","sourcesContent":["import * as window from '../window';\n\nimport { AppContext } from './app';\nimport { ChannelContext } from './channel';\nimport { ChatContext } from './chat';\nimport { MeetingContext } from './meeting';\nimport { PageContext } from './page';\nimport { SharePointSiteContext } from './share-point-site';\nimport { TeamContext } from './team';\nimport { UserContext } from './user';\n\n/**\n * Represents structure of the received context message.\n */\nexport type Context = {\n /**\n * Properties about the current session for your app\n */\n app: AppContext;\n\n /**\n * Info about the current page context hosting your app\n */\n page: PageContext;\n\n /**\n * Info about the currently logged in user running the app.\n * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.\n */\n user?: UserContext;\n\n /**\n * When running in the context of a Teams channel, provides information about the channel, else `undefined`\n */\n channel?: ChannelContext;\n\n /**\n * When running in the context of a Teams chat, provides information about the chat, else `undefined`\n */\n chat?: ChatContext;\n\n /**\n * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`\n */\n meeting?: MeetingContext;\n\n /**\n * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`\n */\n sharepoint?: any;\n\n /**\n * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.\n * Will be `undefined` when not running in Teams for an organization with a tenant.\n */\n sharePointSite?: SharePointSiteContext;\n\n /**\n * When running in Teams, provides information about the Team context in which your app is running.\n * Will be `undefined` when not running in Teams.\n */\n team?: TeamContext;\n\n /**\n * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.\n * App developers need to use these `extractedParameters` in their dialog.\n * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.\n * If there's no key/value pairs passed, the object will be empty in the case\n */\n dialogParameters: Record<string, string>;\n};\n\nexport function mapContext(ctx: window.Context): Context {\n return {\n app: {\n id: ctx.appId,\n locale: ctx.locale,\n launchId: ctx.appLaunchId,\n sessionId: ctx.appSessionId ? ctx.appSessionId : '',\n theme: ctx.theme ? ctx.theme : 'default',\n iconPositionVertical: ctx.appIconPosition,\n osLocaleInfo: ctx.osLocaleInfo,\n parentMessageId: ctx.parentMessageId,\n userClickTime: ctx.userClickTime,\n userClickTimeV2: ctx.userClickTimeV2,\n userFileOpenPreference: ctx.userFileOpenPreference,\n host: {\n name: ctx.hostName ? ctx.hostName : 'Teams',\n clientType: ctx.hostClientType ? ctx.hostClientType : 'web',\n sessionId: ctx.sessionId ? ctx.sessionId : '',\n ringId: ctx.ringId,\n },\n manifestVersion: ctx.manifestVersion,\n },\n page: {\n id: ctx.entityId,\n frameContext: ctx.frameContext || 'content',\n subPageId: ctx.subEntityId,\n isFullScreen: ctx.isFullScreen,\n isMultiWindow: ctx.isMultiWindow,\n isBackgroundLoad: ctx.isBackgroundLoad,\n sourceOrigin: ctx.sourceOrigin,\n },\n user: {\n id: ctx.userObjectId ?? '',\n displayName: ctx.userDisplayName,\n isCallingAllowed: ctx.isCallingAllowed,\n isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,\n licenseType: ctx.userLicenseType,\n loginHint: ctx.loginHint,\n userPrincipalName: ctx.userPrincipalName,\n tenant: ctx.tid\n ? {\n id: ctx.tid,\n teamsSku: ctx.tenantSKU,\n }\n : undefined,\n },\n channel: ctx.channelId\n ? {\n id: ctx.channelId,\n displayName: ctx.channelName,\n relativeUrl: ctx.channelRelativeUrl,\n membershipType: ctx.channelType,\n defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,\n ownerGroupId: ctx.hostTeamGroupId,\n ownerTenantId: ctx.hostTeamTenantId,\n }\n : undefined,\n chat: ctx.chatId\n ? {\n id: ctx.chatId,\n }\n : undefined,\n meeting: ctx.meetingId\n ? {\n id: ctx.meetingId,\n }\n : undefined,\n sharepoint: ctx.sharepoint,\n team: ctx.teamId\n ? {\n internalId: ctx.teamId,\n displayName: ctx.teamName,\n type: ctx.teamType ? window.mapTeamType(ctx.teamType) : undefined,\n groupId: ctx.groupId,\n templateId: ctx.teamTemplateId,\n isArchived: ctx.isTeamArchived,\n userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : undefined,\n }\n : undefined,\n sharePointSite:\n ctx.teamSiteUrl ||\n ctx.teamSiteDomain ||\n ctx.teamSitePath ||\n ctx.mySitePath ||\n ctx.mySiteDomain\n ? {\n teamSiteUrl: ctx.teamSiteUrl,\n teamSiteDomain: ctx.teamSiteDomain,\n teamSitePath: ctx.teamSitePath,\n teamSiteId: ctx.teamSiteId,\n mySitePath: ctx.mySitePath,\n mySiteDomain: ctx.mySiteDomain,\n }\n : undefined,\n dialogParameters: ctx.dialogParameters || {},\n };\n}\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as window from '../window';
|
|
2
|
+
|
|
3
|
+
function mapContext(ctx) {
|
|
4
|
+
return {
|
|
5
|
+
app: {
|
|
6
|
+
id: ctx.appId,
|
|
7
|
+
locale: ctx.locale,
|
|
8
|
+
launchId: ctx.appLaunchId,
|
|
9
|
+
sessionId: ctx.appSessionId ? ctx.appSessionId : "",
|
|
10
|
+
theme: ctx.theme ? ctx.theme : "default",
|
|
11
|
+
iconPositionVertical: ctx.appIconPosition,
|
|
12
|
+
osLocaleInfo: ctx.osLocaleInfo,
|
|
13
|
+
parentMessageId: ctx.parentMessageId,
|
|
14
|
+
userClickTime: ctx.userClickTime,
|
|
15
|
+
userClickTimeV2: ctx.userClickTimeV2,
|
|
16
|
+
userFileOpenPreference: ctx.userFileOpenPreference,
|
|
17
|
+
host: {
|
|
18
|
+
name: ctx.hostName ? ctx.hostName : "Teams",
|
|
19
|
+
clientType: ctx.hostClientType ? ctx.hostClientType : "web",
|
|
20
|
+
sessionId: ctx.sessionId ? ctx.sessionId : "",
|
|
21
|
+
ringId: ctx.ringId
|
|
22
|
+
},
|
|
23
|
+
manifestVersion: ctx.manifestVersion
|
|
24
|
+
},
|
|
25
|
+
page: {
|
|
26
|
+
id: ctx.entityId,
|
|
27
|
+
frameContext: ctx.frameContext || "content",
|
|
28
|
+
subPageId: ctx.subEntityId,
|
|
29
|
+
isFullScreen: ctx.isFullScreen,
|
|
30
|
+
isMultiWindow: ctx.isMultiWindow,
|
|
31
|
+
isBackgroundLoad: ctx.isBackgroundLoad,
|
|
32
|
+
sourceOrigin: ctx.sourceOrigin
|
|
33
|
+
},
|
|
34
|
+
user: {
|
|
35
|
+
id: ctx.userObjectId ?? "",
|
|
36
|
+
displayName: ctx.userDisplayName,
|
|
37
|
+
isCallingAllowed: ctx.isCallingAllowed,
|
|
38
|
+
isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,
|
|
39
|
+
licenseType: ctx.userLicenseType,
|
|
40
|
+
loginHint: ctx.loginHint,
|
|
41
|
+
userPrincipalName: ctx.userPrincipalName,
|
|
42
|
+
tenant: ctx.tid ? {
|
|
43
|
+
id: ctx.tid,
|
|
44
|
+
teamsSku: ctx.tenantSKU
|
|
45
|
+
} : void 0
|
|
46
|
+
},
|
|
47
|
+
channel: ctx.channelId ? {
|
|
48
|
+
id: ctx.channelId,
|
|
49
|
+
displayName: ctx.channelName,
|
|
50
|
+
relativeUrl: ctx.channelRelativeUrl,
|
|
51
|
+
membershipType: ctx.channelType,
|
|
52
|
+
defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,
|
|
53
|
+
ownerGroupId: ctx.hostTeamGroupId,
|
|
54
|
+
ownerTenantId: ctx.hostTeamTenantId
|
|
55
|
+
} : void 0,
|
|
56
|
+
chat: ctx.chatId ? {
|
|
57
|
+
id: ctx.chatId
|
|
58
|
+
} : void 0,
|
|
59
|
+
meeting: ctx.meetingId ? {
|
|
60
|
+
id: ctx.meetingId
|
|
61
|
+
} : void 0,
|
|
62
|
+
sharepoint: ctx.sharepoint,
|
|
63
|
+
team: ctx.teamId ? {
|
|
64
|
+
internalId: ctx.teamId,
|
|
65
|
+
displayName: ctx.teamName,
|
|
66
|
+
type: ctx.teamType ? window.mapTeamType(ctx.teamType) : void 0,
|
|
67
|
+
groupId: ctx.groupId,
|
|
68
|
+
templateId: ctx.teamTemplateId,
|
|
69
|
+
isArchived: ctx.isTeamArchived,
|
|
70
|
+
userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : void 0
|
|
71
|
+
} : void 0,
|
|
72
|
+
sharePointSite: ctx.teamSiteUrl || ctx.teamSiteDomain || ctx.teamSitePath || ctx.mySitePath || ctx.mySiteDomain ? {
|
|
73
|
+
teamSiteUrl: ctx.teamSiteUrl,
|
|
74
|
+
teamSiteDomain: ctx.teamSiteDomain,
|
|
75
|
+
teamSitePath: ctx.teamSitePath,
|
|
76
|
+
teamSiteId: ctx.teamSiteId,
|
|
77
|
+
mySitePath: ctx.mySitePath,
|
|
78
|
+
mySiteDomain: ctx.mySiteDomain
|
|
79
|
+
} : void 0,
|
|
80
|
+
dialogParameters: ctx.dialogParameters || {}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { mapContext };
|
|
85
|
+
//# sourceMappingURL=index.mjs.map
|
|
86
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/context/index.ts"],"names":[],"mappings":"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","file":"index.mjs","sourcesContent":["import * as window from '../window';\n\nimport { AppContext } from './app';\nimport { ChannelContext } from './channel';\nimport { ChatContext } from './chat';\nimport { MeetingContext } from './meeting';\nimport { PageContext } from './page';\nimport { SharePointSiteContext } from './share-point-site';\nimport { TeamContext } from './team';\nimport { UserContext } from './user';\n\n/**\n * Represents structure of the received context message.\n */\nexport type Context = {\n /**\n * Properties about the current session for your app\n */\n app: AppContext;\n\n /**\n * Info about the current page context hosting your app\n */\n page: PageContext;\n\n /**\n * Info about the currently logged in user running the app.\n * If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be `undefined`.\n */\n user?: UserContext;\n\n /**\n * When running in the context of a Teams channel, provides information about the channel, else `undefined`\n */\n channel?: ChannelContext;\n\n /**\n * When running in the context of a Teams chat, provides information about the chat, else `undefined`\n */\n chat?: ChatContext;\n\n /**\n * When running in the context of a Teams meeting, provides information about the meeting, else `undefined`\n */\n meeting?: MeetingContext;\n\n /**\n * When hosted in SharePoint, this is the [SharePoint PageContext](https://learn.microsoft.com/javascript/api/sp-page-context/pagecontext?view=sp-typescript-latest), else `undefined`\n */\n sharepoint?: any;\n\n /**\n * When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.\n * Will be `undefined` when not running in Teams for an organization with a tenant.\n */\n sharePointSite?: SharePointSiteContext;\n\n /**\n * When running in Teams, provides information about the Team context in which your app is running.\n * Will be `undefined` when not running in Teams.\n */\n team?: TeamContext;\n\n /**\n * When `processActionCommand` activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to `processActionCommand` as `extractedParameters`.\n * App developers need to use these `extractedParameters` in their dialog.\n * They help pre-fill the dialog with necessary information (`dialogParameters`) along with other details.\n * If there's no key/value pairs passed, the object will be empty in the case\n */\n dialogParameters: Record<string, string>;\n};\n\nexport function mapContext(ctx: window.Context): Context {\n return {\n app: {\n id: ctx.appId,\n locale: ctx.locale,\n launchId: ctx.appLaunchId,\n sessionId: ctx.appSessionId ? ctx.appSessionId : '',\n theme: ctx.theme ? ctx.theme : 'default',\n iconPositionVertical: ctx.appIconPosition,\n osLocaleInfo: ctx.osLocaleInfo,\n parentMessageId: ctx.parentMessageId,\n userClickTime: ctx.userClickTime,\n userClickTimeV2: ctx.userClickTimeV2,\n userFileOpenPreference: ctx.userFileOpenPreference,\n host: {\n name: ctx.hostName ? ctx.hostName : 'Teams',\n clientType: ctx.hostClientType ? ctx.hostClientType : 'web',\n sessionId: ctx.sessionId ? ctx.sessionId : '',\n ringId: ctx.ringId,\n },\n manifestVersion: ctx.manifestVersion,\n },\n page: {\n id: ctx.entityId,\n frameContext: ctx.frameContext || 'content',\n subPageId: ctx.subEntityId,\n isFullScreen: ctx.isFullScreen,\n isMultiWindow: ctx.isMultiWindow,\n isBackgroundLoad: ctx.isBackgroundLoad,\n sourceOrigin: ctx.sourceOrigin,\n },\n user: {\n id: ctx.userObjectId ?? '',\n displayName: ctx.userDisplayName,\n isCallingAllowed: ctx.isCallingAllowed,\n isPSTNCallingAllowed: ctx.isPSTNCallingAllowed,\n licenseType: ctx.userLicenseType,\n loginHint: ctx.loginHint,\n userPrincipalName: ctx.userPrincipalName,\n tenant: ctx.tid\n ? {\n id: ctx.tid,\n teamsSku: ctx.tenantSKU,\n }\n : undefined,\n },\n channel: ctx.channelId\n ? {\n id: ctx.channelId,\n displayName: ctx.channelName,\n relativeUrl: ctx.channelRelativeUrl,\n membershipType: ctx.channelType,\n defaultOneNoteSectionId: ctx.defaultOneNoteSectionId,\n ownerGroupId: ctx.hostTeamGroupId,\n ownerTenantId: ctx.hostTeamTenantId,\n }\n : undefined,\n chat: ctx.chatId\n ? {\n id: ctx.chatId,\n }\n : undefined,\n meeting: ctx.meetingId\n ? {\n id: ctx.meetingId,\n }\n : undefined,\n sharepoint: ctx.sharepoint,\n team: ctx.teamId\n ? {\n internalId: ctx.teamId,\n displayName: ctx.teamName,\n type: ctx.teamType ? window.mapTeamType(ctx.teamType) : undefined,\n groupId: ctx.groupId,\n templateId: ctx.teamTemplateId,\n isArchived: ctx.isTeamArchived,\n userRole: ctx.userTeamRole ? window.mapUserTeamRole(ctx.userTeamRole) : undefined,\n }\n : undefined,\n sharePointSite:\n ctx.teamSiteUrl ||\n ctx.teamSiteDomain ||\n ctx.teamSitePath ||\n ctx.mySitePath ||\n ctx.mySiteDomain\n ? {\n teamSiteUrl: ctx.teamSiteUrl,\n teamSiteDomain: ctx.teamSiteDomain,\n teamSitePath: ctx.teamSitePath,\n teamSiteId: ctx.teamSiteId,\n mySitePath: ctx.mySitePath,\n mySiteDomain: ctx.mySiteDomain,\n }\n : undefined,\n dialogParameters: ctx.dialogParameters || {},\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"meeting.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"meeting.mjs"}
|