@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,70 @@
|
|
|
1
|
+
import { ChannelType, ChannelTypes } from './window/types/channel-type.mjs';
|
|
2
|
+
import { FileOpenPreference, FileOpenPreferences } from './window/types/file-open-preference.mjs';
|
|
3
|
+
import { FrameContext, FrameContexts } from './window/types/frame-context.mjs';
|
|
4
|
+
import { HostClientType, HostClientTypes, HostName, HostNames } from './window/types/host.mjs';
|
|
5
|
+
import { Locale } from './window/types/locale.mjs';
|
|
6
|
+
import { TeamType, TeamTypes, mapTeamType } from './window/types/team-type.mjs';
|
|
7
|
+
import { UserMeetingRole, UserMeetingRoles } from './window/types/user-meeting-role.mjs';
|
|
8
|
+
import { UserTeamRole, UserTeamRoles, mapUserTeamRole } from './window/types/user-team-role.mjs';
|
|
9
|
+
import { Context } from './window/types/context.mjs';
|
|
10
|
+
import { Theme } from './window/types/theme.mjs';
|
|
11
|
+
import { UserProfile } from './window/types/user-profile.mjs';
|
|
12
|
+
import { DataResidency } from './window/types/data-residency.mjs';
|
|
13
|
+
import { BarCodeConfig } from './window/types/bar-code-config.mjs';
|
|
14
|
+
import { Permission } from './window/types/permission.mjs';
|
|
15
|
+
import { CallModalities, CallModality } from './window/types/call-modality.mjs';
|
|
16
|
+
import { File, FileFormat, FileFormats } from './window/types/file.mjs';
|
|
17
|
+
import { ThreadMember } from './window/types/thread-member.mjs';
|
|
18
|
+
import { LegalAgeGroupClassification, LegalAgeGroupClassifications } from './window/types/legal-age-group-classification.mjs';
|
|
19
|
+
import { AppEligibilityInfo, FeatureSet } from './window/types/app-eligibility-info.mjs';
|
|
20
|
+
import { ActionOpenUrlType, ActionOpenUrlTypes } from './window/types/action-open-url-type.mjs';
|
|
21
|
+
import { Location } from './window/types/location.mjs';
|
|
22
|
+
import { NotificationType } from './window/types/notification-type.mjs';
|
|
23
|
+
import { i as index$2 } from './index-7hUkxLxx.mjs';
|
|
24
|
+
import { i as index$3 } from './index-DrTQ_GLN.mjs';
|
|
25
|
+
import { i as index$1 } from './index-D6kqtGPa.mjs';
|
|
26
|
+
|
|
27
|
+
declare const index_ActionOpenUrlType: typeof ActionOpenUrlType;
|
|
28
|
+
declare const index_ActionOpenUrlTypes: typeof ActionOpenUrlTypes;
|
|
29
|
+
declare const index_AppEligibilityInfo: typeof AppEligibilityInfo;
|
|
30
|
+
declare const index_BarCodeConfig: typeof BarCodeConfig;
|
|
31
|
+
declare const index_CallModalities: typeof CallModalities;
|
|
32
|
+
declare const index_CallModality: typeof CallModality;
|
|
33
|
+
declare const index_ChannelType: typeof ChannelType;
|
|
34
|
+
declare const index_ChannelTypes: typeof ChannelTypes;
|
|
35
|
+
declare const index_Context: typeof Context;
|
|
36
|
+
declare const index_DataResidency: typeof DataResidency;
|
|
37
|
+
declare const index_FeatureSet: typeof FeatureSet;
|
|
38
|
+
declare const index_File: typeof File;
|
|
39
|
+
declare const index_FileFormat: typeof FileFormat;
|
|
40
|
+
declare const index_FileFormats: typeof FileFormats;
|
|
41
|
+
declare const index_FileOpenPreference: typeof FileOpenPreference;
|
|
42
|
+
declare const index_FileOpenPreferences: typeof FileOpenPreferences;
|
|
43
|
+
declare const index_FrameContext: typeof FrameContext;
|
|
44
|
+
declare const index_FrameContexts: typeof FrameContexts;
|
|
45
|
+
declare const index_HostClientType: typeof HostClientType;
|
|
46
|
+
declare const index_HostClientTypes: typeof HostClientTypes;
|
|
47
|
+
declare const index_HostName: typeof HostName;
|
|
48
|
+
declare const index_HostNames: typeof HostNames;
|
|
49
|
+
declare const index_LegalAgeGroupClassification: typeof LegalAgeGroupClassification;
|
|
50
|
+
declare const index_LegalAgeGroupClassifications: typeof LegalAgeGroupClassifications;
|
|
51
|
+
declare const index_Locale: typeof Locale;
|
|
52
|
+
declare const index_Location: typeof Location;
|
|
53
|
+
declare const index_NotificationType: typeof NotificationType;
|
|
54
|
+
declare const index_Permission: typeof Permission;
|
|
55
|
+
declare const index_TeamType: typeof TeamType;
|
|
56
|
+
declare const index_TeamTypes: typeof TeamTypes;
|
|
57
|
+
declare const index_Theme: typeof Theme;
|
|
58
|
+
declare const index_ThreadMember: typeof ThreadMember;
|
|
59
|
+
declare const index_UserMeetingRole: typeof UserMeetingRole;
|
|
60
|
+
declare const index_UserMeetingRoles: typeof UserMeetingRoles;
|
|
61
|
+
declare const index_UserProfile: typeof UserProfile;
|
|
62
|
+
declare const index_UserTeamRole: typeof UserTeamRole;
|
|
63
|
+
declare const index_UserTeamRoles: typeof UserTeamRoles;
|
|
64
|
+
declare const index_mapTeamType: typeof mapTeamType;
|
|
65
|
+
declare const index_mapUserTeamRole: typeof mapUserTeamRole;
|
|
66
|
+
declare namespace index {
|
|
67
|
+
export { index_ActionOpenUrlType as ActionOpenUrlType, index_ActionOpenUrlTypes as ActionOpenUrlTypes, index_AppEligibilityInfo as AppEligibilityInfo, index_BarCodeConfig as BarCodeConfig, index_CallModalities as CallModalities, index_CallModality as CallModality, index_ChannelType as ChannelType, index_ChannelTypes as ChannelTypes, index_Context as Context, index_DataResidency as DataResidency, index_FeatureSet as FeatureSet, index_File as File, index_FileFormat as FileFormat, index_FileFormats as FileFormats, index_FileOpenPreference as FileOpenPreference, index_FileOpenPreferences as FileOpenPreferences, index_FrameContext as FrameContext, index_FrameContexts as FrameContexts, index_HostClientType as HostClientType, index_HostClientTypes as HostClientTypes, index_HostName as HostName, index_HostNames as HostNames, index_LegalAgeGroupClassification as LegalAgeGroupClassification, index_LegalAgeGroupClassifications as LegalAgeGroupClassifications, index_Locale as Locale, index_Location as Location, index_NotificationType as NotificationType, index_Permission as Permission, index_TeamType as TeamType, index_TeamTypes as TeamTypes, index_Theme as Theme, index_ThreadMember as ThreadMember, index_UserMeetingRole as UserMeetingRole, index_UserMeetingRoles as UserMeetingRoles, index_UserProfile as UserProfile, index_UserTeamRole as UserTeamRole, index_UserTeamRoles as UserTeamRoles, index$1 as dialog, index$2 as liveshare, index_mapTeamType as mapTeamType, index_mapUserTeamRole as mapUserTeamRole, index$3 as marketplace };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { index as i };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Cart } from './window/types/marketplace/cart.mjs';
|
|
2
|
+
import { CartInfo } from './window/types/marketplace/cart-info.mjs';
|
|
3
|
+
import { CartItem, Item } from './window/types/marketplace/cart-item.mjs';
|
|
4
|
+
import { CartStatus, CartStatuses } from './window/types/marketplace/cart-status.mjs';
|
|
5
|
+
import { CartVersion } from './window/types/marketplace/cart-version.mjs';
|
|
6
|
+
import { Intent, Intents } from './window/types/marketplace/intent.mjs';
|
|
7
|
+
|
|
8
|
+
declare const index_Cart: typeof Cart;
|
|
9
|
+
declare const index_CartInfo: typeof CartInfo;
|
|
10
|
+
declare const index_CartItem: typeof CartItem;
|
|
11
|
+
declare const index_CartStatus: typeof CartStatus;
|
|
12
|
+
declare const index_CartStatuses: typeof CartStatuses;
|
|
13
|
+
declare const index_CartVersion: typeof CartVersion;
|
|
14
|
+
declare const index_Intent: typeof Intent;
|
|
15
|
+
declare const index_Intents: typeof Intents;
|
|
16
|
+
declare const index_Item: typeof Item;
|
|
17
|
+
declare namespace index {
|
|
18
|
+
export { index_Cart as Cart, index_CartInfo as CartInfo, index_CartItem as CartItem, index_CartStatus as CartStatus, index_CartStatuses as CartStatuses, index_CartVersion as CartVersion, index_Intent as Intent, index_Intents as Intents, index_Item as Item };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { index as i };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContainerState, ContainerStates } from './window/types/liveshare/container-state.js';
|
|
2
|
+
import { FluidContainer } from './window/types/liveshare/fluid-container.js';
|
|
3
|
+
import { NtpTime } from './window/types/liveshare/ntp-time.js';
|
|
4
|
+
import { FluidTenant } from './window/types/liveshare/fluid-tenant.js';
|
|
5
|
+
import { ClientInfo } from './window/types/liveshare/client.js';
|
|
6
|
+
|
|
7
|
+
declare const index_ClientInfo: typeof ClientInfo;
|
|
8
|
+
declare const index_ContainerState: typeof ContainerState;
|
|
9
|
+
declare const index_ContainerStates: typeof ContainerStates;
|
|
10
|
+
declare const index_FluidContainer: typeof FluidContainer;
|
|
11
|
+
declare const index_FluidTenant: typeof FluidTenant;
|
|
12
|
+
declare const index_NtpTime: typeof NtpTime;
|
|
13
|
+
declare namespace index {
|
|
14
|
+
export { index_ClientInfo as ClientInfo, index_ContainerState as ContainerState, index_ContainerStates as ContainerStates, index_FluidContainer as FluidContainer, index_FluidTenant as FluidTenant, index_NtpTime as NtpTime };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { index as i };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Cart } from './window/types/marketplace/cart.js';
|
|
2
|
+
import { CartInfo } from './window/types/marketplace/cart-info.js';
|
|
3
|
+
import { CartItem, Item } from './window/types/marketplace/cart-item.js';
|
|
4
|
+
import { CartStatus, CartStatuses } from './window/types/marketplace/cart-status.js';
|
|
5
|
+
import { CartVersion } from './window/types/marketplace/cart-version.js';
|
|
6
|
+
import { Intent, Intents } from './window/types/marketplace/intent.js';
|
|
7
|
+
|
|
8
|
+
declare const index_Cart: typeof Cart;
|
|
9
|
+
declare const index_CartInfo: typeof CartInfo;
|
|
10
|
+
declare const index_CartItem: typeof CartItem;
|
|
11
|
+
declare const index_CartStatus: typeof CartStatus;
|
|
12
|
+
declare const index_CartStatuses: typeof CartStatuses;
|
|
13
|
+
declare const index_CartVersion: typeof CartVersion;
|
|
14
|
+
declare const index_Intent: typeof Intent;
|
|
15
|
+
declare const index_Intents: typeof Intents;
|
|
16
|
+
declare const index_Item: typeof Item;
|
|
17
|
+
declare namespace index {
|
|
18
|
+
export { index_Cart as Cart, index_CartInfo as CartInfo, index_CartItem as CartItem, index_CartStatus as CartStatus, index_CartStatuses as CartStatuses, index_CartVersion as CartVersion, index_Intent as Intent, index_Intents as Intents, index_Item as Item };
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { index as i };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export { App, AppOptions, MsalOptions } from './app.mjs';
|
|
2
|
+
export { Context, mapContext } from './context/index.mjs';
|
|
3
|
+
export { i as types } from './index-DJal_Cxb.mjs';
|
|
4
|
+
import '@azure/msal-browser';
|
|
5
|
+
import '@microsoft/teams.common/http';
|
|
6
|
+
import '@microsoft/teams.common/logging';
|
|
7
|
+
import '@microsoft/teams-js';
|
|
8
|
+
import './window/types/context.mjs';
|
|
9
|
+
import './window/types/channel-type.mjs';
|
|
10
|
+
import './window/types/file-open-preference.mjs';
|
|
11
|
+
import './window/types/frame-context.mjs';
|
|
12
|
+
import './window/types/host.mjs';
|
|
13
|
+
import './window/types/locale.mjs';
|
|
14
|
+
import './window/types/team-type.mjs';
|
|
15
|
+
import './window/types/theme.mjs';
|
|
16
|
+
import './window/types/user-team-role.mjs';
|
|
17
|
+
import './context/app.mjs';
|
|
18
|
+
import './context/app-host.mjs';
|
|
19
|
+
import './context/channel.mjs';
|
|
20
|
+
import './context/chat.mjs';
|
|
21
|
+
import './context/meeting.mjs';
|
|
22
|
+
import './context/page.mjs';
|
|
23
|
+
import './context/share-point-site.mjs';
|
|
24
|
+
import './context/team.mjs';
|
|
25
|
+
import './context/user.mjs';
|
|
26
|
+
import './context/tenant.mjs';
|
|
27
|
+
import './window/types/user-meeting-role.mjs';
|
|
28
|
+
import './window/types/user-profile.mjs';
|
|
29
|
+
import './window/types/data-residency.mjs';
|
|
30
|
+
import './window/types/bar-code-config.mjs';
|
|
31
|
+
import './window/types/permission.mjs';
|
|
32
|
+
import './window/types/call-modality.mjs';
|
|
33
|
+
import './window/types/file.mjs';
|
|
34
|
+
import './window/types/thread-member.mjs';
|
|
35
|
+
import './window/types/legal-age-group-classification.mjs';
|
|
36
|
+
import './window/types/app-eligibility-info.mjs';
|
|
37
|
+
import './window/types/action-open-url-type.mjs';
|
|
38
|
+
import './window/types/location.mjs';
|
|
39
|
+
import './window/types/notification-type.mjs';
|
|
40
|
+
import './index-7hUkxLxx.mjs';
|
|
41
|
+
import './window/types/liveshare/container-state.mjs';
|
|
42
|
+
import './window/types/liveshare/fluid-container.mjs';
|
|
43
|
+
import './window/types/liveshare/ntp-time.mjs';
|
|
44
|
+
import './window/types/liveshare/fluid-tenant.mjs';
|
|
45
|
+
import './window/types/liveshare/client.mjs';
|
|
46
|
+
import './index-DrTQ_GLN.mjs';
|
|
47
|
+
import './window/types/marketplace/cart.mjs';
|
|
48
|
+
import './window/types/marketplace/cart-info.mjs';
|
|
49
|
+
import './window/types/marketplace/cart-status.mjs';
|
|
50
|
+
import './window/types/marketplace/intent.mjs';
|
|
51
|
+
import './window/types/marketplace/cart-item.mjs';
|
|
52
|
+
import './window/types/marketplace/cart-version.mjs';
|
|
53
|
+
import './index-D6kqtGPa.mjs';
|
|
54
|
+
import './window/types/dialog/dialog-dimension.mjs';
|
|
55
|
+
import './window/types/dialog/dialog-info.mjs';
|
|
56
|
+
import './window/types/dialog/dialog-size.mjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export { App, AppOptions, MsalOptions } from './app.js';
|
|
2
|
+
export { Context, mapContext } from './context/index.js';
|
|
3
|
+
export { i as types } from './index-8IcDrPMv.js';
|
|
4
|
+
import '@azure/msal-browser';
|
|
5
|
+
import '@microsoft/teams.common/http';
|
|
6
|
+
import '@microsoft/teams.common/logging';
|
|
7
|
+
import '@microsoft/teams-js';
|
|
8
|
+
import './window/types/context.js';
|
|
9
|
+
import './window/types/channel-type.js';
|
|
10
|
+
import './window/types/file-open-preference.js';
|
|
11
|
+
import './window/types/frame-context.js';
|
|
12
|
+
import './window/types/host.js';
|
|
13
|
+
import './window/types/locale.js';
|
|
14
|
+
import './window/types/team-type.js';
|
|
15
|
+
import './window/types/theme.js';
|
|
16
|
+
import './window/types/user-team-role.js';
|
|
17
|
+
import './context/app.js';
|
|
18
|
+
import './context/app-host.js';
|
|
19
|
+
import './context/channel.js';
|
|
20
|
+
import './context/chat.js';
|
|
21
|
+
import './context/meeting.js';
|
|
22
|
+
import './context/page.js';
|
|
23
|
+
import './context/share-point-site.js';
|
|
24
|
+
import './context/team.js';
|
|
25
|
+
import './context/user.js';
|
|
26
|
+
import './context/tenant.js';
|
|
27
|
+
import './window/types/user-meeting-role.js';
|
|
28
|
+
import './window/types/user-profile.js';
|
|
29
|
+
import './window/types/data-residency.js';
|
|
30
|
+
import './window/types/bar-code-config.js';
|
|
31
|
+
import './window/types/permission.js';
|
|
32
|
+
import './window/types/call-modality.js';
|
|
33
|
+
import './window/types/file.js';
|
|
34
|
+
import './window/types/thread-member.js';
|
|
35
|
+
import './window/types/legal-age-group-classification.js';
|
|
36
|
+
import './window/types/app-eligibility-info.js';
|
|
37
|
+
import './window/types/action-open-url-type.js';
|
|
38
|
+
import './window/types/location.js';
|
|
39
|
+
import './window/types/notification-type.js';
|
|
40
|
+
import './index-DtE-Eb9L.js';
|
|
41
|
+
import './window/types/liveshare/container-state.js';
|
|
42
|
+
import './window/types/liveshare/fluid-container.js';
|
|
43
|
+
import './window/types/liveshare/ntp-time.js';
|
|
44
|
+
import './window/types/liveshare/fluid-tenant.js';
|
|
45
|
+
import './window/types/liveshare/client.js';
|
|
46
|
+
import './index-_Hc8oq9_.js';
|
|
47
|
+
import './window/types/marketplace/cart.js';
|
|
48
|
+
import './window/types/marketplace/cart-info.js';
|
|
49
|
+
import './window/types/marketplace/cart-status.js';
|
|
50
|
+
import './window/types/marketplace/intent.js';
|
|
51
|
+
import './window/types/marketplace/cart-item.js';
|
|
52
|
+
import './window/types/marketplace/cart-version.js';
|
|
53
|
+
import './index-5Ok-M8A0.js';
|
|
54
|
+
import './window/types/dialog/dialog-dimension.js';
|
|
55
|
+
import './window/types/dialog/dialog-info.js';
|
|
56
|
+
import './window/types/dialog/dialog-size.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var app = require('./app');
|
|
4
|
+
var context = require('./context');
|
|
5
|
+
var types = require('./window/types');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var types__namespace = /*#__PURE__*/_interopNamespace(types);
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.types = types__namespace;
|
|
30
|
+
Object.keys(app).forEach(function (k) {
|
|
31
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return app[k]; }
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Object.keys(context).forEach(function (k) {
|
|
37
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return context[k]; }
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as msal from '@azure/msal-browser';
|
|
2
|
+
import { ILogger } from '@microsoft/teams.common/logging';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.
|
|
6
|
+
* @param remoteClientId The client ID of the remote application.
|
|
7
|
+
* @param permission The permission to request. Defaults to 'access_as_user'.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
declare const getStandardExecSilentRequest: (remoteClientId: string, permission?: string) => msal.SilentRequest;
|
|
11
|
+
/**
|
|
12
|
+
* Builds a default MSAL configuration for the specified client ID.
|
|
13
|
+
* @param clientId The application client ID.
|
|
14
|
+
* @param logger The logger instance to use for logging MSAL events.
|
|
15
|
+
* @returns A default MSAL configuration object suitable for creating a
|
|
16
|
+
* @see{IPublicClientApplication} instance for a multi-tenant application.
|
|
17
|
+
*/
|
|
18
|
+
declare const buildMsalConfig: (clientId: string, logger: ILogger) => msal.Configuration;
|
|
19
|
+
/**
|
|
20
|
+
* Acquires an access token using MSAL. It first attempts to acquire the token silently,
|
|
21
|
+
* and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the
|
|
22
|
+
* token via a popup.
|
|
23
|
+
* @param msalInstance The MSAL instance to use for acquiring the token.
|
|
24
|
+
* @param request The token request object.
|
|
25
|
+
* @param logger The logger instance to use for logging errors.
|
|
26
|
+
* @returns A promise that resolves to the acquired access token.
|
|
27
|
+
*/
|
|
28
|
+
declare const acquireMsalAccessToken: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent" | "acquireTokenPopup">, request: msal.SilentRequest, logger: ILogger) => Promise<string>;
|
|
29
|
+
|
|
30
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as msal from '@azure/msal-browser';
|
|
2
|
+
import { ILogger } from '@microsoft/teams.common/logging';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.
|
|
6
|
+
* @param remoteClientId The client ID of the remote application.
|
|
7
|
+
* @param permission The permission to request. Defaults to 'access_as_user'.
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
declare const getStandardExecSilentRequest: (remoteClientId: string, permission?: string) => msal.SilentRequest;
|
|
11
|
+
/**
|
|
12
|
+
* Builds a default MSAL configuration for the specified client ID.
|
|
13
|
+
* @param clientId The application client ID.
|
|
14
|
+
* @param logger The logger instance to use for logging MSAL events.
|
|
15
|
+
* @returns A default MSAL configuration object suitable for creating a
|
|
16
|
+
* @see{IPublicClientApplication} instance for a multi-tenant application.
|
|
17
|
+
*/
|
|
18
|
+
declare const buildMsalConfig: (clientId: string, logger: ILogger) => msal.Configuration;
|
|
19
|
+
/**
|
|
20
|
+
* Acquires an access token using MSAL. It first attempts to acquire the token silently,
|
|
21
|
+
* and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the
|
|
22
|
+
* token via a popup.
|
|
23
|
+
* @param msalInstance The MSAL instance to use for acquiring the token.
|
|
24
|
+
* @param request The token request object.
|
|
25
|
+
* @param logger The logger instance to use for logging errors.
|
|
26
|
+
* @returns A promise that resolves to the acquired access token.
|
|
27
|
+
*/
|
|
28
|
+
declare const acquireMsalAccessToken: (msalInstance: Pick<msal.IPublicClientApplication, "acquireTokenSilent" | "acquireTokenPopup">, request: msal.SilentRequest, logger: ILogger) => Promise<string>;
|
|
29
|
+
|
|
30
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var msal = require('@azure/msal-browser');
|
|
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 msal__namespace = /*#__PURE__*/_interopNamespace(msal);
|
|
24
|
+
|
|
25
|
+
const getStandardExecSilentRequest = (remoteClientId, permission = "access_as_user") => ({
|
|
26
|
+
scopes: [`api://${remoteClientId}/${permission}`]
|
|
27
|
+
});
|
|
28
|
+
const buildMsalConfig = (clientId, logger) => {
|
|
29
|
+
return {
|
|
30
|
+
auth: {
|
|
31
|
+
clientId,
|
|
32
|
+
authority: "",
|
|
33
|
+
redirectUri: "/",
|
|
34
|
+
postLogoutRedirectUri: "/"
|
|
35
|
+
},
|
|
36
|
+
system: {
|
|
37
|
+
loggerOptions: {
|
|
38
|
+
piiLoggingEnabled: false,
|
|
39
|
+
loggerCallback: (level, message) => {
|
|
40
|
+
switch (level) {
|
|
41
|
+
case msal__namespace.LogLevel.Error:
|
|
42
|
+
logger.error(message);
|
|
43
|
+
return;
|
|
44
|
+
case msal__namespace.LogLevel.Info:
|
|
45
|
+
logger.info(message);
|
|
46
|
+
return;
|
|
47
|
+
case msal__namespace.LogLevel.Verbose:
|
|
48
|
+
logger.debug(message);
|
|
49
|
+
return;
|
|
50
|
+
case msal__namespace.LogLevel.Warning:
|
|
51
|
+
logger.warn(message);
|
|
52
|
+
return;
|
|
53
|
+
default:
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const acquireMsalAccessToken = async (msalInstance, request, logger) => {
|
|
62
|
+
try {
|
|
63
|
+
const response = await msalInstance.acquireTokenSilent(request);
|
|
64
|
+
return response.accessToken;
|
|
65
|
+
} catch (ex) {
|
|
66
|
+
const tryAcquireTokenPopup = ex instanceof msal__namespace.InteractionRequiredAuthError;
|
|
67
|
+
if (!tryAcquireTokenPopup) {
|
|
68
|
+
logger.error("acquireTokenSilent failed", ex);
|
|
69
|
+
throw ex;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
logger.debug("acquireTokenSilent failed; trying acquireTokenPopup");
|
|
74
|
+
const response = await msalInstance.acquireTokenPopup(request);
|
|
75
|
+
return response.accessToken;
|
|
76
|
+
} catch (ex) {
|
|
77
|
+
logger.error("acquireTokenPopup failed", ex);
|
|
78
|
+
throw ex;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.acquireMsalAccessToken = acquireMsalAccessToken;
|
|
83
|
+
exports.buildMsalConfig = buildMsalConfig;
|
|
84
|
+
exports.getStandardExecSilentRequest = getStandardExecSilentRequest;
|
|
85
|
+
//# sourceMappingURL=msal-utils.js.map
|
|
86
|
+
//# sourceMappingURL=msal-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/msal-utils.ts"],"names":["msal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AASO,MAAM,4BAA+B,GAAA,CAC1C,cACA,EAAA,UAAA,GAAa,gBACW,MAAA;AAAA,EACxB,QAAQ,CAAC,CAAA,MAAA,EAAS,cAAc,CAAA,CAAA,EAAI,UAAU,CAAE,CAAA;AAClD,CAAA;AASa,MAAA,eAAA,GAAkB,CAAC,QAAA,EAAkB,MAAwC,KAAA;AACxF,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAW,EAAA,EAAA;AAAA,MACX,WAAa,EAAA,GAAA;AAAA,MACb,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,aAAe,EAAA;AAAA,QACb,iBAAmB,EAAA,KAAA;AAAA,QACnB,cAAA,EAAgB,CAAC,KAAA,EAAO,OAAY,KAAA;AAClC,UAAA,QAAQ,KAAO;AAAA,YACb,KAAKA,gBAAK,QAAS,CAAA,KAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,IAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAKA,gBAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF;AACE,cAAA;AAAA;AACJ;AACF;AACF;AACF,GACF;AACF;AAWO,MAAM,sBAAyB,GAAA,OACpC,YACA,EAAA,OAAA,EACA,MACoB,KAAA;AACpB,EAAI,IAAA;AACF,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,kBAAA,CAAmB,OAAO,CAAA;AAC9D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AAGX,IAAM,MAAA,oBAAA,GAAuB,cAAcA,eAAK,CAAA,4BAAA;AAChD,IAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,MAAO,MAAA,CAAA,KAAA,CAAM,6BAA6B,EAAE,CAAA;AAC5C,MAAM,MAAA,EAAA;AAAA;AACR;AAGF,EAAI,IAAA;AACF,IAAA,MAAA,CAAO,MAAM,qDAAqD,CAAA;AAClE,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,iBAAA,CAAkB,OAAO,CAAA;AAC7D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AACX,IAAO,MAAA,CAAA,KAAA,CAAM,4BAA4B,EAAE,CAAA;AAC3C,IAAM,MAAA,EAAA;AAAA;AAEV","file":"msal-utils.js","sourcesContent":["import * as msal from '@azure/msal-browser';\nimport { ILogger } from '@microsoft/teams.common/logging';\n\n/**\n * Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.\n * @param remoteClientId The client ID of the remote application.\n * @param permission The permission to request. Defaults to 'access_as_user'.\n * @returns\n */\nexport const getStandardExecSilentRequest = (\n remoteClientId: string,\n permission = 'access_as_user'\n): msal.SilentRequest => ({\n scopes: [`api://${remoteClientId}/${permission}`],\n});\n\n/**\n * Builds a default MSAL configuration for the specified client ID.\n * @param clientId The application client ID.\n * @param logger The logger instance to use for logging MSAL events.\n * @returns A default MSAL configuration object suitable for creating a\n * @see{IPublicClientApplication} instance for a multi-tenant application.\n */\nexport const buildMsalConfig = (clientId: string, logger: ILogger): msal.Configuration => {\n return {\n auth: {\n clientId,\n authority: '',\n redirectUri: '/',\n postLogoutRedirectUri: '/',\n },\n system: {\n loggerOptions: {\n piiLoggingEnabled: false,\n loggerCallback: (level, message) => {\n switch (level) {\n case msal.LogLevel.Error:\n logger.error(message);\n return;\n case msal.LogLevel.Info:\n logger.info(message);\n return;\n case msal.LogLevel.Verbose:\n logger.debug(message);\n return;\n case msal.LogLevel.Warning:\n logger.warn(message);\n return;\n default:\n return;\n }\n },\n },\n },\n };\n};\n\n/**\n * Acquires an access token using MSAL. It first attempts to acquire the token silently,\n * and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the\n * token via a popup.\n * @param msalInstance The MSAL instance to use for acquiring the token.\n * @param request The token request object.\n * @param logger The logger instance to use for logging errors.\n * @returns A promise that resolves to the acquired access token.\n */\nexport const acquireMsalAccessToken = async (\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent' | 'acquireTokenPopup'>,\n request: msal.SilentRequest,\n logger: ILogger\n): Promise<string> => {\n try {\n const response = await msalInstance.acquireTokenSilent(request);\n return response.accessToken;\n } catch (ex) {\n // InteractionRequiredAuthError indicates that the user may not have consented to the requested\n // scope yet -- for this, we can fall back on acquireTokenPopup instead.\n const tryAcquireTokenPopup = ex instanceof msal.InteractionRequiredAuthError;\n if (!tryAcquireTokenPopup) {\n logger.error('acquireTokenSilent failed', ex);\n throw ex;\n }\n }\n\n try {\n logger.debug('acquireTokenSilent failed; trying acquireTokenPopup');\n const response = await msalInstance.acquireTokenPopup(request);\n return response.accessToken;\n } catch (ex) {\n logger.error('acquireTokenPopup failed', ex);\n throw ex;\n }\n};\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as msal from '@azure/msal-browser';
|
|
2
|
+
|
|
3
|
+
const getStandardExecSilentRequest = (remoteClientId, permission = "access_as_user") => ({
|
|
4
|
+
scopes: [`api://${remoteClientId}/${permission}`]
|
|
5
|
+
});
|
|
6
|
+
const buildMsalConfig = (clientId, logger) => {
|
|
7
|
+
return {
|
|
8
|
+
auth: {
|
|
9
|
+
clientId,
|
|
10
|
+
authority: "",
|
|
11
|
+
redirectUri: "/",
|
|
12
|
+
postLogoutRedirectUri: "/"
|
|
13
|
+
},
|
|
14
|
+
system: {
|
|
15
|
+
loggerOptions: {
|
|
16
|
+
piiLoggingEnabled: false,
|
|
17
|
+
loggerCallback: (level, message) => {
|
|
18
|
+
switch (level) {
|
|
19
|
+
case msal.LogLevel.Error:
|
|
20
|
+
logger.error(message);
|
|
21
|
+
return;
|
|
22
|
+
case msal.LogLevel.Info:
|
|
23
|
+
logger.info(message);
|
|
24
|
+
return;
|
|
25
|
+
case msal.LogLevel.Verbose:
|
|
26
|
+
logger.debug(message);
|
|
27
|
+
return;
|
|
28
|
+
case msal.LogLevel.Warning:
|
|
29
|
+
logger.warn(message);
|
|
30
|
+
return;
|
|
31
|
+
default:
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
const acquireMsalAccessToken = async (msalInstance, request, logger) => {
|
|
40
|
+
try {
|
|
41
|
+
const response = await msalInstance.acquireTokenSilent(request);
|
|
42
|
+
return response.accessToken;
|
|
43
|
+
} catch (ex) {
|
|
44
|
+
const tryAcquireTokenPopup = ex instanceof msal.InteractionRequiredAuthError;
|
|
45
|
+
if (!tryAcquireTokenPopup) {
|
|
46
|
+
logger.error("acquireTokenSilent failed", ex);
|
|
47
|
+
throw ex;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
logger.debug("acquireTokenSilent failed; trying acquireTokenPopup");
|
|
52
|
+
const response = await msalInstance.acquireTokenPopup(request);
|
|
53
|
+
return response.accessToken;
|
|
54
|
+
} catch (ex) {
|
|
55
|
+
logger.error("acquireTokenPopup failed", ex);
|
|
56
|
+
throw ex;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { acquireMsalAccessToken, buildMsalConfig, getStandardExecSilentRequest };
|
|
61
|
+
//# sourceMappingURL=msal-utils.mjs.map
|
|
62
|
+
//# sourceMappingURL=msal-utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/msal-utils.ts"],"names":[],"mappings":";;AASO,MAAM,4BAA+B,GAAA,CAC1C,cACA,EAAA,UAAA,GAAa,gBACW,MAAA;AAAA,EACxB,QAAQ,CAAC,CAAA,MAAA,EAAS,cAAc,CAAA,CAAA,EAAI,UAAU,CAAE,CAAA;AAClD,CAAA;AASa,MAAA,eAAA,GAAkB,CAAC,QAAA,EAAkB,MAAwC,KAAA;AACxF,EAAO,OAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,QAAA;AAAA,MACA,SAAW,EAAA,EAAA;AAAA,MACX,WAAa,EAAA,GAAA;AAAA,MACb,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,aAAe,EAAA;AAAA,QACb,iBAAmB,EAAA,KAAA;AAAA,QACnB,cAAA,EAAgB,CAAC,KAAA,EAAO,OAAY,KAAA;AAClC,UAAA,QAAQ,KAAO;AAAA,YACb,KAAK,KAAK,QAAS,CAAA,KAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,IAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AACpB,cAAA;AAAA,YACF,KAAK,KAAK,QAAS,CAAA,OAAA;AACjB,cAAA,MAAA,CAAO,KAAK,OAAO,CAAA;AACnB,cAAA;AAAA,YACF;AACE,cAAA;AAAA;AACJ;AACF;AACF;AACF,GACF;AACF;AAWO,MAAM,sBAAyB,GAAA,OACpC,YACA,EAAA,OAAA,EACA,MACoB,KAAA;AACpB,EAAI,IAAA;AACF,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,kBAAA,CAAmB,OAAO,CAAA;AAC9D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AAGX,IAAM,MAAA,oBAAA,GAAuB,cAAc,IAAK,CAAA,4BAAA;AAChD,IAAA,IAAI,CAAC,oBAAsB,EAAA;AACzB,MAAO,MAAA,CAAA,KAAA,CAAM,6BAA6B,EAAE,CAAA;AAC5C,MAAM,MAAA,EAAA;AAAA;AACR;AAGF,EAAI,IAAA;AACF,IAAA,MAAA,CAAO,MAAM,qDAAqD,CAAA;AAClE,IAAA,MAAM,QAAW,GAAA,MAAM,YAAa,CAAA,iBAAA,CAAkB,OAAO,CAAA;AAC7D,IAAA,OAAO,QAAS,CAAA,WAAA;AAAA,WACT,EAAI,EAAA;AACX,IAAO,MAAA,CAAA,KAAA,CAAM,4BAA4B,EAAE,CAAA;AAC3C,IAAM,MAAA,EAAA;AAAA;AAEV","file":"msal-utils.mjs","sourcesContent":["import * as msal from '@azure/msal-browser';\nimport { ILogger } from '@microsoft/teams.common/logging';\n\n/**\n * Gets a silent request used to acquire an Entra access token for invoking remote functions on behalf of a user.\n * @param remoteClientId The client ID of the remote application.\n * @param permission The permission to request. Defaults to 'access_as_user'.\n * @returns\n */\nexport const getStandardExecSilentRequest = (\n remoteClientId: string,\n permission = 'access_as_user'\n): msal.SilentRequest => ({\n scopes: [`api://${remoteClientId}/${permission}`],\n});\n\n/**\n * Builds a default MSAL configuration for the specified client ID.\n * @param clientId The application client ID.\n * @param logger The logger instance to use for logging MSAL events.\n * @returns A default MSAL configuration object suitable for creating a\n * @see{IPublicClientApplication} instance for a multi-tenant application.\n */\nexport const buildMsalConfig = (clientId: string, logger: ILogger): msal.Configuration => {\n return {\n auth: {\n clientId,\n authority: '',\n redirectUri: '/',\n postLogoutRedirectUri: '/',\n },\n system: {\n loggerOptions: {\n piiLoggingEnabled: false,\n loggerCallback: (level, message) => {\n switch (level) {\n case msal.LogLevel.Error:\n logger.error(message);\n return;\n case msal.LogLevel.Info:\n logger.info(message);\n return;\n case msal.LogLevel.Verbose:\n logger.debug(message);\n return;\n case msal.LogLevel.Warning:\n logger.warn(message);\n return;\n default:\n return;\n }\n },\n },\n },\n };\n};\n\n/**\n * Acquires an access token using MSAL. It first attempts to acquire the token silently,\n * and if that fails with an InteractionRequiredAuthError, it falls back to acquiring the\n * token via a popup.\n * @param msalInstance The MSAL instance to use for acquiring the token.\n * @param request The token request object.\n * @param logger The logger instance to use for logging errors.\n * @returns A promise that resolves to the acquired access token.\n */\nexport const acquireMsalAccessToken = async (\n msalInstance: Pick<msal.IPublicClientApplication, 'acquireTokenSilent' | 'acquireTokenPopup'>,\n request: msal.SilentRequest,\n logger: ILogger\n): Promise<string> => {\n try {\n const response = await msalInstance.acquireTokenSilent(request);\n return response.accessToken;\n } catch (ex) {\n // InteractionRequiredAuthError indicates that the user may not have consented to the requested\n // scope yet -- for this, we can fall back on acquireTokenPopup instead.\n const tryAcquireTokenPopup = ex instanceof msal.InteractionRequiredAuthError;\n if (!tryAcquireTokenPopup) {\n logger.error('acquireTokenSilent failed', ex);\n throw ex;\n }\n }\n\n try {\n logger.debug('acquireTokenSilent failed; trying acquireTokenPopup');\n const response = await msalInstance.acquireTokenPopup(request);\n return response.accessToken;\n } catch (ex) {\n logger.error('acquireTokenPopup failed', ex);\n throw ex;\n }\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"client-error.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"client-error.mjs"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WindowClient } from '../window-client.mjs';
|
|
2
|
+
import '@microsoft/teams.common';
|
|
3
|
+
import '../message.mjs';
|
|
4
|
+
import '../client-error.mjs';
|
|
5
|
+
|
|
6
|
+
declare class AppEntityClient {
|
|
7
|
+
readonly window: WindowClient;
|
|
8
|
+
constructor(client: WindowClient);
|
|
9
|
+
select(threadId: string, categories: string[], subEntityId: string): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AppEntityClient };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WindowClient } from '../window-client.js';
|
|
2
|
+
import '@microsoft/teams.common';
|
|
3
|
+
import '../message.js';
|
|
4
|
+
import '../client-error.js';
|
|
5
|
+
|
|
6
|
+
declare class AppEntityClient {
|
|
7
|
+
readonly window: WindowClient;
|
|
8
|
+
constructor(client: WindowClient);
|
|
9
|
+
select(threadId: string, categories: string[], subEntityId: string): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AppEntityClient };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class AppEntityClient {
|
|
4
|
+
window;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.window = client;
|
|
7
|
+
}
|
|
8
|
+
async select(threadId, categories, subEntityId) {
|
|
9
|
+
await this.window.send("appEntity.selectAppEntity", threadId, categories, subEntityId);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.AppEntityClient = AppEntityClient;
|
|
14
|
+
//# sourceMappingURL=app-entity.js.map
|
|
15
|
+
//# sourceMappingURL=app-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/window/clients/app-entity.ts"],"names":[],"mappings":";;AAEO,MAAM,eAAgB,CAAA;AAAA,EAClB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,MAAA,CAAO,QAAkB,EAAA,UAAA,EAAsB,WAAqB,EAAA;AACxE,IAAA,MAAM,KAAK,MAAO,CAAA,IAAA,CAAK,2BAA6B,EAAA,QAAA,EAAU,YAAY,WAAW,CAAA;AAAA;AAEzF","file":"app-entity.js","sourcesContent":["import { WindowClient } from '../window-client';\n\nexport class AppEntityClient {\n readonly window: WindowClient;\n\n constructor(client: WindowClient) {\n this.window = client;\n }\n\n async select(threadId: string, categories: string[], subEntityId: string) {\n await this.window.send('appEntity.selectAppEntity', threadId, categories, subEntityId);\n }\n}\n"]}
|