@microsoft/teams.cards 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 +41 -0
- package/dist/actions/base.d.mts +89 -0
- package/dist/actions/base.d.ts +89 -0
- package/dist/actions/base.js +90 -0
- package/dist/actions/base.js.map +1 -0
- package/dist/actions/base.mjs +88 -0
- package/dist/actions/base.mjs.map +1 -0
- package/dist/actions/execute.d.mts +47 -0
- package/dist/actions/execute.d.ts +47 -0
- package/dist/actions/execute.js +43 -0
- package/dist/actions/execute.js.map +1 -0
- package/dist/actions/execute.mjs +41 -0
- package/dist/actions/execute.mjs.map +1 -0
- package/dist/actions/index.d.mts +31 -0
- package/dist/actions/index.d.ts +31 -0
- package/dist/actions/index.js +42 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/index.mjs.map +1 -0
- package/dist/actions/open-url.d.mts +28 -0
- package/dist/actions/open-url.d.ts +28 -0
- package/dist/actions/open-url.js +28 -0
- package/dist/actions/open-url.js.map +1 -0
- package/dist/actions/open-url.mjs +26 -0
- package/dist/actions/open-url.mjs.map +1 -0
- package/dist/actions/show-card.d.mts +31 -0
- package/dist/actions/show-card.d.ts +31 -0
- package/dist/actions/show-card.js +28 -0
- package/dist/actions/show-card.js.map +1 -0
- package/dist/actions/show-card.mjs +26 -0
- package/dist/actions/show-card.mjs.map +1 -0
- package/dist/actions/submit/collab-stage.d.mts +74 -0
- package/dist/actions/submit/collab-stage.d.ts +74 -0
- package/dist/actions/submit/collab-stage.js +62 -0
- package/dist/actions/submit/collab-stage.js.map +1 -0
- package/dist/actions/submit/collab-stage.mjs +58 -0
- package/dist/actions/submit/collab-stage.mjs.map +1 -0
- package/dist/actions/submit/im-back.d.mts +40 -0
- package/dist/actions/submit/im-back.d.ts +40 -0
- package/dist/actions/submit/im-back.js +42 -0
- package/dist/actions/submit/im-back.js.map +1 -0
- package/dist/actions/submit/im-back.mjs +39 -0
- package/dist/actions/submit/im-back.mjs.map +1 -0
- package/dist/actions/submit/index.d.mts +10 -0
- package/dist/actions/submit/index.d.ts +10 -0
- package/dist/actions/submit/index.js +56 -0
- package/dist/actions/submit/index.js.map +1 -0
- package/dist/actions/submit/index.mjs +9 -0
- package/dist/actions/submit/index.mjs.map +1 -0
- package/dist/actions/submit/invoke.d.mts +40 -0
- package/dist/actions/submit/invoke.d.ts +40 -0
- package/dist/actions/submit/invoke.js +42 -0
- package/dist/actions/submit/invoke.js.map +1 -0
- package/dist/actions/submit/invoke.mjs +39 -0
- package/dist/actions/submit/invoke.mjs.map +1 -0
- package/dist/actions/submit/message-back.d.mts +60 -0
- package/dist/actions/submit/message-back.d.ts +60 -0
- package/dist/actions/submit/message-back.js +56 -0
- package/dist/actions/submit/message-back.js.map +1 -0
- package/dist/actions/submit/message-back.mjs +53 -0
- package/dist/actions/submit/message-back.mjs.map +1 -0
- package/dist/actions/submit/sign-in.d.mts +40 -0
- package/dist/actions/submit/sign-in.d.ts +40 -0
- package/dist/actions/submit/sign-in.js +42 -0
- package/dist/actions/submit/sign-in.js.map +1 -0
- package/dist/actions/submit/sign-in.mjs +39 -0
- package/dist/actions/submit/sign-in.mjs.map +1 -0
- package/dist/actions/submit/submit.d.mts +51 -0
- package/dist/actions/submit/submit.d.ts +51 -0
- package/dist/actions/submit/submit.js +38 -0
- package/dist/actions/submit/submit.js.map +1 -0
- package/dist/actions/submit/submit.mjs +36 -0
- package/dist/actions/submit/submit.mjs.map +1 -0
- package/dist/actions/submit/task-fetch.d.mts +40 -0
- package/dist/actions/submit/task-fetch.d.ts +40 -0
- package/dist/actions/submit/task-fetch.js +42 -0
- package/dist/actions/submit/task-fetch.js.map +1 -0
- package/dist/actions/submit/task-fetch.mjs +39 -0
- package/dist/actions/submit/task-fetch.mjs.map +1 -0
- package/dist/actions/toggle-visibility.d.mts +29 -0
- package/dist/actions/toggle-visibility.d.ts +29 -0
- package/dist/actions/toggle-visibility.js +29 -0
- package/dist/actions/toggle-visibility.js.map +1 -0
- package/dist/actions/toggle-visibility.mjs +27 -0
- package/dist/actions/toggle-visibility.mjs.map +1 -0
- package/dist/base.d.mts +31 -0
- package/dist/base.d.ts +31 -0
- package/dist/base.js +105 -0
- package/dist/base.js.map +1 -0
- package/dist/base.mjs +103 -0
- package/dist/base.mjs.map +1 -0
- package/dist/card.d.mts +31 -0
- package/dist/card.d.ts +31 -0
- package/dist/card.js +118 -0
- package/dist/card.js.map +1 -0
- package/dist/card.mjs +115 -0
- package/dist/card.mjs.map +1 -0
- package/dist/charts/color.d.mts +3 -0
- package/dist/charts/color.d.ts +3 -0
- package/dist/charts/color.js +4 -0
- package/dist/charts/color.js.map +1 -0
- package/dist/charts/color.mjs +3 -0
- package/dist/charts/color.mjs.map +1 -0
- package/dist/charts/donut.d.mts +31 -0
- package/dist/charts/donut.d.ts +31 -0
- package/dist/charts/donut.js +79 -0
- package/dist/charts/donut.js.map +1 -0
- package/dist/charts/donut.mjs +76 -0
- package/dist/charts/donut.mjs.map +1 -0
- package/dist/charts/index.d.mts +31 -0
- package/dist/charts/index.d.ts +31 -0
- package/dist/charts/index.js +28 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/index.mjs +5 -0
- package/dist/charts/index.mjs.map +1 -0
- package/dist/charts/line.d.mts +31 -0
- package/dist/charts/line.d.ts +31 -0
- package/dist/charts/line.js +97 -0
- package/dist/charts/line.js.map +1 -0
- package/dist/charts/line.mjs +93 -0
- package/dist/charts/line.mjs.map +1 -0
- package/dist/common/associated-inputs.d.mts +3 -0
- package/dist/common/associated-inputs.d.ts +3 -0
- package/dist/common/associated-inputs.js +4 -0
- package/dist/common/associated-inputs.js.map +1 -0
- package/dist/common/associated-inputs.mjs +3 -0
- package/dist/common/associated-inputs.mjs.map +1 -0
- package/dist/common/auth/auth-card-button.d.mts +50 -0
- package/dist/common/auth/auth-card-button.d.ts +50 -0
- package/dist/common/auth/auth-card-button.js +45 -0
- package/dist/common/auth/auth-card-button.js.map +1 -0
- package/dist/common/auth/auth-card-button.mjs +43 -0
- package/dist/common/auth/auth-card-button.mjs.map +1 -0
- package/dist/common/auth/auth.d.mts +52 -0
- package/dist/common/auth/auth.d.ts +52 -0
- package/dist/common/auth/auth.js +46 -0
- package/dist/common/auth/auth.js.map +1 -0
- package/dist/common/auth/auth.mjs +44 -0
- package/dist/common/auth/auth.mjs.map +1 -0
- package/dist/common/auth/index.d.mts +3 -0
- package/dist/common/auth/index.d.ts +3 -0
- package/dist/common/auth/index.js +28 -0
- package/dist/common/auth/index.js.map +1 -0
- package/dist/common/auth/index.mjs +5 -0
- package/dist/common/auth/index.mjs.map +1 -0
- package/dist/common/auth/token-exchange-resource.d.mts +37 -0
- package/dist/common/auth/token-exchange-resource.d.ts +37 -0
- package/dist/common/auth/token-exchange-resource.js +25 -0
- package/dist/common/auth/token-exchange-resource.js.map +1 -0
- package/dist/common/auth/token-exchange-resource.mjs +23 -0
- package/dist/common/auth/token-exchange-resource.mjs.map +1 -0
- package/dist/common/color.d.mts +3 -0
- package/dist/common/color.d.ts +3 -0
- package/dist/common/color.js +4 -0
- package/dist/common/color.js.map +1 -0
- package/dist/common/color.mjs +3 -0
- package/dist/common/color.mjs.map +1 -0
- package/dist/common/font.d.mts +5 -0
- package/dist/common/font.d.ts +5 -0
- package/dist/common/font.js +4 -0
- package/dist/common/font.js.map +1 -0
- package/dist/common/font.mjs +3 -0
- package/dist/common/font.mjs.map +1 -0
- package/dist/common/horizontal-alignment.d.mts +6 -0
- package/dist/common/horizontal-alignment.d.ts +6 -0
- package/dist/common/horizontal-alignment.js +4 -0
- package/dist/common/horizontal-alignment.js.map +1 -0
- package/dist/common/horizontal-alignment.mjs +3 -0
- package/dist/common/horizontal-alignment.mjs.map +1 -0
- package/dist/common/index.d.mts +15 -0
- package/dist/common/index.d.ts +15 -0
- package/dist/common/index.js +84 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +13 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/common/refresh.d.mts +23 -0
- package/dist/common/refresh.d.ts +23 -0
- package/dist/common/refresh.js +4 -0
- package/dist/common/refresh.js.map +1 -0
- package/dist/common/refresh.mjs +3 -0
- package/dist/common/refresh.mjs.map +1 -0
- package/dist/common/spacing.d.mts +6 -0
- package/dist/common/spacing.d.ts +6 -0
- package/dist/common/spacing.js +4 -0
- package/dist/common/spacing.js.map +1 -0
- package/dist/common/spacing.mjs +3 -0
- package/dist/common/spacing.mjs.map +1 -0
- package/dist/common/tab-info.d.mts +23 -0
- package/dist/common/tab-info.d.ts +23 -0
- package/dist/common/tab-info.js +4 -0
- package/dist/common/tab-info.js.map +1 -0
- package/dist/common/tab-info.mjs +3 -0
- package/dist/common/tab-info.mjs.map +1 -0
- package/dist/common/target-element.d.mts +16 -0
- package/dist/common/target-element.d.ts +16 -0
- package/dist/common/target-element.js +4 -0
- package/dist/common/target-element.js.map +1 -0
- package/dist/common/target-element.mjs +3 -0
- package/dist/common/target-element.mjs.map +1 -0
- package/dist/common/target-width.d.mts +9 -0
- package/dist/common/target-width.d.ts +9 -0
- package/dist/common/target-width.js +4 -0
- package/dist/common/target-width.js.map +1 -0
- package/dist/common/target-width.mjs +3 -0
- package/dist/common/target-width.mjs.map +1 -0
- package/dist/common/vertical-alignment.d.mts +6 -0
- package/dist/common/vertical-alignment.d.ts +6 -0
- package/dist/common/vertical-alignment.js +4 -0
- package/dist/common/vertical-alignment.js.map +1 -0
- package/dist/common/vertical-alignment.mjs +3 -0
- package/dist/common/vertical-alignment.mjs.map +1 -0
- package/dist/containers/action-set.d.mts +31 -0
- package/dist/containers/action-set.d.ts +31 -0
- package/dist/containers/action-set.js +28 -0
- package/dist/containers/action-set.js.map +1 -0
- package/dist/containers/action-set.mjs +26 -0
- package/dist/containers/action-set.mjs.map +1 -0
- package/dist/containers/base.d.mts +31 -0
- package/dist/containers/base.d.ts +31 -0
- package/dist/containers/base.js +68 -0
- package/dist/containers/base.js.map +1 -0
- package/dist/containers/base.mjs +66 -0
- package/dist/containers/base.mjs.map +1 -0
- package/dist/containers/carousel.d.mts +31 -0
- package/dist/containers/carousel.d.ts +31 -0
- package/dist/containers/carousel.js +158 -0
- package/dist/containers/carousel.js.map +1 -0
- package/dist/containers/carousel.mjs +155 -0
- package/dist/containers/carousel.mjs.map +1 -0
- package/dist/containers/column-set.d.mts +31 -0
- package/dist/containers/column-set.d.ts +31 -0
- package/dist/containers/column-set.js +44 -0
- package/dist/containers/column-set.js.map +1 -0
- package/dist/containers/column-set.mjs +42 -0
- package/dist/containers/column-set.mjs.map +1 -0
- package/dist/containers/column.d.mts +31 -0
- package/dist/containers/column.d.ts +31 -0
- package/dist/containers/column.js +60 -0
- package/dist/containers/column.js.map +1 -0
- package/dist/containers/column.mjs +58 -0
- package/dist/containers/column.mjs.map +1 -0
- package/dist/containers/container.d.mts +31 -0
- package/dist/containers/container.d.ts +31 -0
- package/dist/containers/container.js +52 -0
- package/dist/containers/container.js.map +1 -0
- package/dist/containers/container.mjs +50 -0
- package/dist/containers/container.mjs.map +1 -0
- package/dist/containers/fact-set.d.mts +31 -0
- package/dist/containers/fact-set.d.ts +31 -0
- package/dist/containers/fact-set.js +43 -0
- package/dist/containers/fact-set.js.map +1 -0
- package/dist/containers/fact-set.mjs +40 -0
- package/dist/containers/fact-set.mjs.map +1 -0
- package/dist/containers/image-set.d.mts +31 -0
- package/dist/containers/image-set.d.ts +31 -0
- package/dist/containers/image-set.js +46 -0
- package/dist/containers/image-set.js.map +1 -0
- package/dist/containers/image-set.mjs +44 -0
- package/dist/containers/image-set.mjs.map +1 -0
- package/dist/containers/index.d.mts +31 -0
- package/dist/containers/index.d.ts +31 -0
- package/dist/containers/index.js +56 -0
- package/dist/containers/index.js.map +1 -0
- package/dist/containers/index.mjs +9 -0
- package/dist/containers/index.mjs.map +1 -0
- package/dist/element.d.mts +31 -0
- package/dist/element.d.ts +31 -0
- package/dist/element.js +4 -0
- package/dist/element.js.map +1 -0
- package/dist/element.mjs +3 -0
- package/dist/element.mjs.map +1 -0
- package/dist/index.d.mts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +70 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -0
- package/dist/inputs/base.d.mts +31 -0
- package/dist/inputs/base.d.ts +31 -0
- package/dist/inputs/base.js +63 -0
- package/dist/inputs/base.js.map +1 -0
- package/dist/inputs/base.mjs +61 -0
- package/dist/inputs/base.mjs.map +1 -0
- package/dist/inputs/choice-set.d.mts +31 -0
- package/dist/inputs/choice-set.d.ts +31 -0
- package/dist/inputs/choice-set.js +121 -0
- package/dist/inputs/choice-set.js.map +1 -0
- package/dist/inputs/choice-set.mjs +117 -0
- package/dist/inputs/choice-set.mjs.map +1 -0
- package/dist/inputs/date.d.mts +31 -0
- package/dist/inputs/date.d.ts +31 -0
- package/dist/inputs/date.js +52 -0
- package/dist/inputs/date.js.map +1 -0
- package/dist/inputs/date.mjs +50 -0
- package/dist/inputs/date.mjs.map +1 -0
- package/dist/inputs/index.d.mts +31 -0
- package/dist/inputs/index.d.ts +31 -0
- package/dist/inputs/index.js +49 -0
- package/dist/inputs/index.js.map +1 -0
- package/dist/inputs/index.mjs +8 -0
- package/dist/inputs/index.mjs.map +1 -0
- package/dist/inputs/number.d.mts +31 -0
- package/dist/inputs/number.d.ts +31 -0
- package/dist/inputs/number.js +52 -0
- package/dist/inputs/number.js.map +1 -0
- package/dist/inputs/number.mjs +50 -0
- package/dist/inputs/number.mjs.map +1 -0
- package/dist/inputs/text.d.mts +31 -0
- package/dist/inputs/text.d.ts +31 -0
- package/dist/inputs/text.js +76 -0
- package/dist/inputs/text.js.map +1 -0
- package/dist/inputs/text.mjs +74 -0
- package/dist/inputs/text.mjs.map +1 -0
- package/dist/inputs/time.d.mts +31 -0
- package/dist/inputs/time.d.ts +31 -0
- package/dist/inputs/time.js +52 -0
- package/dist/inputs/time.js.map +1 -0
- package/dist/inputs/time.mjs +50 -0
- package/dist/inputs/time.mjs.map +1 -0
- package/dist/inputs/toggle.d.mts +31 -0
- package/dist/inputs/toggle.d.ts +31 -0
- package/dist/inputs/toggle.js +57 -0
- package/dist/inputs/toggle.js.map +1 -0
- package/dist/inputs/toggle.mjs +55 -0
- package/dist/inputs/toggle.mjs.map +1 -0
- package/dist/layouts/area-grid.d.mts +133 -0
- package/dist/layouts/area-grid.d.ts +133 -0
- package/dist/layouts/area-grid.js +113 -0
- package/dist/layouts/area-grid.js.map +1 -0
- package/dist/layouts/area-grid.mjs +110 -0
- package/dist/layouts/area-grid.mjs.map +1 -0
- package/dist/layouts/flow.d.mts +119 -0
- package/dist/layouts/flow.d.ts +119 -0
- package/dist/layouts/flow.js +96 -0
- package/dist/layouts/flow.js.map +1 -0
- package/dist/layouts/flow.mjs +94 -0
- package/dist/layouts/flow.mjs.map +1 -0
- package/dist/layouts/index.d.mts +14 -0
- package/dist/layouts/index.d.ts +14 -0
- package/dist/layouts/index.js +28 -0
- package/dist/layouts/index.js.map +1 -0
- package/dist/layouts/index.mjs +5 -0
- package/dist/layouts/index.mjs.map +1 -0
- package/dist/layouts/stack.d.mts +28 -0
- package/dist/layouts/stack.d.ts +28 -0
- package/dist/layouts/stack.js +24 -0
- package/dist/layouts/stack.js.map +1 -0
- package/dist/layouts/stack.mjs +22 -0
- package/dist/layouts/stack.mjs.map +1 -0
- package/dist/medias/background-image.d.mts +56 -0
- package/dist/medias/background-image.d.ts +56 -0
- package/dist/medias/background-image.js +49 -0
- package/dist/medias/background-image.js.map +1 -0
- package/dist/medias/background-image.mjs +47 -0
- package/dist/medias/background-image.mjs.map +1 -0
- package/dist/medias/badge.d.mts +31 -0
- package/dist/medias/badge.d.ts +31 -0
- package/dist/medias/badge.js +84 -0
- package/dist/medias/badge.js.map +1 -0
- package/dist/medias/badge.mjs +82 -0
- package/dist/medias/badge.mjs.map +1 -0
- package/dist/medias/code-block.d.mts +31 -0
- package/dist/medias/code-block.d.ts +31 -0
- package/dist/medias/code-block.js +43 -0
- package/dist/medias/code-block.js.map +1 -0
- package/dist/medias/code-block.mjs +41 -0
- package/dist/medias/code-block.mjs.map +1 -0
- package/dist/medias/icon.d.mts +2288 -0
- package/dist/medias/icon.d.ts +2288 -0
- package/dist/medias/icon.js +56 -0
- package/dist/medias/icon.js.map +1 -0
- package/dist/medias/icon.mjs +54 -0
- package/dist/medias/icon.mjs.map +1 -0
- package/dist/medias/image.d.mts +31 -0
- package/dist/medias/image.d.ts +31 -0
- package/dist/medias/image.js +80 -0
- package/dist/medias/image.js.map +1 -0
- package/dist/medias/image.mjs +78 -0
- package/dist/medias/image.mjs.map +1 -0
- package/dist/medias/index.d.mts +31 -0
- package/dist/medias/index.d.ts +31 -0
- package/dist/medias/index.js +84 -0
- package/dist/medias/index.js.map +1 -0
- package/dist/medias/index.mjs +13 -0
- package/dist/medias/index.mjs.map +1 -0
- package/dist/medias/media.d.mts +31 -0
- package/dist/medias/media.d.ts +31 -0
- package/dist/medias/media.js +91 -0
- package/dist/medias/media.js.map +1 -0
- package/dist/medias/media.mjs +87 -0
- package/dist/medias/media.mjs.map +1 -0
- package/dist/medias/progress-bar.d.mts +31 -0
- package/dist/medias/progress-bar.d.ts +31 -0
- package/dist/medias/progress-bar.js +43 -0
- package/dist/medias/progress-bar.js.map +1 -0
- package/dist/medias/progress-bar.mjs +41 -0
- package/dist/medias/progress-bar.mjs.map +1 -0
- package/dist/medias/progress-ring.d.mts +31 -0
- package/dist/medias/progress-ring.d.ts +31 -0
- package/dist/medias/progress-ring.js +46 -0
- package/dist/medias/progress-ring.js.map +1 -0
- package/dist/medias/progress-ring.mjs +44 -0
- package/dist/medias/progress-ring.mjs.map +1 -0
- package/dist/medias/rich-text-block.d.mts +31 -0
- package/dist/medias/rich-text-block.d.ts +31 -0
- package/dist/medias/rich-text-block.js +33 -0
- package/dist/medias/rich-text-block.js.map +1 -0
- package/dist/medias/rich-text-block.mjs +31 -0
- package/dist/medias/rich-text-block.mjs.map +1 -0
- package/dist/medias/text-block.d.mts +31 -0
- package/dist/medias/text-block.d.ts +31 -0
- package/dist/medias/text-block.js +95 -0
- package/dist/medias/text-block.js.map +1 -0
- package/dist/medias/text-block.mjs +93 -0
- package/dist/medias/text-block.mjs.map +1 -0
- package/dist/medias/text-run.d.mts +31 -0
- package/dist/medias/text-run.d.ts +31 -0
- package/dist/medias/text-run.js +108 -0
- package/dist/medias/text-run.js.map +1 -0
- package/dist/medias/text-run.mjs +106 -0
- package/dist/medias/text-run.mjs.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../base');
|
|
4
|
+
|
|
5
|
+
class LineChart extends base.Element {
|
|
6
|
+
type;
|
|
7
|
+
/**
|
|
8
|
+
* the title of the chart.
|
|
9
|
+
*/
|
|
10
|
+
title;
|
|
11
|
+
/**
|
|
12
|
+
* the color to use for all data points.
|
|
13
|
+
*/
|
|
14
|
+
color;
|
|
15
|
+
/**
|
|
16
|
+
* the name of the set of colors to use.
|
|
17
|
+
*/
|
|
18
|
+
colorSet;
|
|
19
|
+
/**
|
|
20
|
+
* the data to display in the chart.
|
|
21
|
+
*/
|
|
22
|
+
data;
|
|
23
|
+
constructor(...data) {
|
|
24
|
+
super();
|
|
25
|
+
this.type = "Chart.Line";
|
|
26
|
+
this.data = data;
|
|
27
|
+
}
|
|
28
|
+
withOptions(value) {
|
|
29
|
+
Object.assign(this, value);
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
withTitle(value) {
|
|
33
|
+
this.title = value;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
withColorSet(value) {
|
|
37
|
+
this.colorSet = value;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
addData(...data) {
|
|
41
|
+
this.data.push(...data);
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class LineChartData {
|
|
46
|
+
/**
|
|
47
|
+
* the color to use for the data point.
|
|
48
|
+
*/
|
|
49
|
+
color;
|
|
50
|
+
/**
|
|
51
|
+
* the legend of the chart.
|
|
52
|
+
*/
|
|
53
|
+
legend;
|
|
54
|
+
/**
|
|
55
|
+
* the data points in the series.
|
|
56
|
+
*/
|
|
57
|
+
values;
|
|
58
|
+
constructor(...dataPoints) {
|
|
59
|
+
this.values = dataPoints;
|
|
60
|
+
}
|
|
61
|
+
withOptions(value) {
|
|
62
|
+
Object.assign(this, value);
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
withColor(value) {
|
|
66
|
+
this.color = value;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
withLegend(value) {
|
|
70
|
+
this.legend = value;
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
addDataPoints(...value) {
|
|
74
|
+
this.values.push(...value);
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
class LineChartDataPoint {
|
|
79
|
+
/**
|
|
80
|
+
* the x axis value of the data point.
|
|
81
|
+
*/
|
|
82
|
+
x;
|
|
83
|
+
/**
|
|
84
|
+
* the y axis value of the data point.
|
|
85
|
+
*/
|
|
86
|
+
y;
|
|
87
|
+
constructor(x, y) {
|
|
88
|
+
this.x = x;
|
|
89
|
+
this.y = y;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.LineChart = LineChart;
|
|
94
|
+
exports.LineChartData = LineChartData;
|
|
95
|
+
exports.LineChartDataPoint = LineChartDataPoint;
|
|
96
|
+
//# sourceMappingURL=line.js.map
|
|
97
|
+
//# sourceMappingURL=line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/charts/line.ts"],"names":["Element"],"mappings":";;;;AA6BO,MAAM,kBAAkBA,YAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.js","sourcesContent":["import { IElement, Element } from '../base';\nimport { ChartColor } from './color';\n\nexport interface ILineChart extends IElement {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n}\n\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\n\nexport class LineChart extends Element implements ILineChart {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n\n constructor(...data: ILineChartData[]) {\n super();\n this.type = 'Chart.Line';\n this.data = data;\n }\n\n withOptions(value: LineChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: ILineChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n}\n\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\n\nexport class LineChartData implements ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n\n constructor(...dataPoints: ILineChartDataPoint[]) {\n this.values = dataPoints;\n }\n\n withOptions(value: LineChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n addDataPoints(...value: ILineChartDataPoint[]) {\n this.values.push(...value);\n return this;\n }\n}\n\nexport interface ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n}\n\nexport class LineChartDataPoint implements ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n\n constructor(x: number | string, y: number) {\n this.x = x;\n this.y = y;\n }\n}\n"]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Element } from '../base';
|
|
2
|
+
|
|
3
|
+
class LineChart extends Element {
|
|
4
|
+
type;
|
|
5
|
+
/**
|
|
6
|
+
* the title of the chart.
|
|
7
|
+
*/
|
|
8
|
+
title;
|
|
9
|
+
/**
|
|
10
|
+
* the color to use for all data points.
|
|
11
|
+
*/
|
|
12
|
+
color;
|
|
13
|
+
/**
|
|
14
|
+
* the name of the set of colors to use.
|
|
15
|
+
*/
|
|
16
|
+
colorSet;
|
|
17
|
+
/**
|
|
18
|
+
* the data to display in the chart.
|
|
19
|
+
*/
|
|
20
|
+
data;
|
|
21
|
+
constructor(...data) {
|
|
22
|
+
super();
|
|
23
|
+
this.type = "Chart.Line";
|
|
24
|
+
this.data = data;
|
|
25
|
+
}
|
|
26
|
+
withOptions(value) {
|
|
27
|
+
Object.assign(this, value);
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
withTitle(value) {
|
|
31
|
+
this.title = value;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
withColorSet(value) {
|
|
35
|
+
this.colorSet = value;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
addData(...data) {
|
|
39
|
+
this.data.push(...data);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class LineChartData {
|
|
44
|
+
/**
|
|
45
|
+
* the color to use for the data point.
|
|
46
|
+
*/
|
|
47
|
+
color;
|
|
48
|
+
/**
|
|
49
|
+
* the legend of the chart.
|
|
50
|
+
*/
|
|
51
|
+
legend;
|
|
52
|
+
/**
|
|
53
|
+
* the data points in the series.
|
|
54
|
+
*/
|
|
55
|
+
values;
|
|
56
|
+
constructor(...dataPoints) {
|
|
57
|
+
this.values = dataPoints;
|
|
58
|
+
}
|
|
59
|
+
withOptions(value) {
|
|
60
|
+
Object.assign(this, value);
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
withColor(value) {
|
|
64
|
+
this.color = value;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
withLegend(value) {
|
|
68
|
+
this.legend = value;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
addDataPoints(...value) {
|
|
72
|
+
this.values.push(...value);
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
class LineChartDataPoint {
|
|
77
|
+
/**
|
|
78
|
+
* the x axis value of the data point.
|
|
79
|
+
*/
|
|
80
|
+
x;
|
|
81
|
+
/**
|
|
82
|
+
* the y axis value of the data point.
|
|
83
|
+
*/
|
|
84
|
+
y;
|
|
85
|
+
constructor(x, y) {
|
|
86
|
+
this.x = x;
|
|
87
|
+
this.y = y;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { LineChart, LineChartData, LineChartDataPoint };
|
|
92
|
+
//# sourceMappingURL=line.mjs.map
|
|
93
|
+
//# sourceMappingURL=line.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/charts/line.ts"],"names":[],"mappings":";;AA6BO,MAAM,kBAAkB,OAA8B,CAAA;AAAA,EAC3D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,eAAe,IAAwB,EAAA;AACrC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AACd,EAEA,YAAY,KAAyB,EAAA;AACnC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAe,EAAA;AAC1B,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,IAAwB,EAAA;AACjC,IAAK,IAAA,CAAA,IAAA,CAAK,IAAK,CAAA,GAAG,IAAI,CAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AAEX;AAqBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA,EAEA,eAAe,UAAmC,EAAA;AAChD,IAAA,IAAA,CAAK,MAAS,GAAA,UAAA;AAAA;AAChB,EAEA,YAAY,KAA6B,EAAA;AACvC,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAmB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAA8B,EAAA;AAC7C,IAAK,IAAA,CAAA,MAAA,CAAO,IAAK,CAAA,GAAG,KAAK,CAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAcO,MAAM,kBAAkD,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7D,CAAA;AAAA;AAAA;AAAA;AAAA,EAKA,CAAA;AAAA,EAEA,WAAA,CAAY,GAAoB,CAAW,EAAA;AACzC,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AACT,IAAA,IAAA,CAAK,CAAI,GAAA,CAAA;AAAA;AAEb","file":"line.mjs","sourcesContent":["import { IElement, Element } from '../base';\nimport { ChartColor } from './color';\n\nexport interface ILineChart extends IElement {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n}\n\nexport type LineChartOptions = Omit<ILineChart, 'type' | 'data'>;\n\nexport class LineChart extends Element implements ILineChart {\n type: 'Chart.Line';\n\n /**\n * the title of the chart.\n */\n title?: string;\n\n /**\n * the color to use for all data points.\n */\n color?: ChartColor;\n\n /**\n * the name of the set of colors to use.\n */\n colorSet?: string;\n\n /**\n * the data to display in the chart.\n */\n data: ILineChartData[];\n\n constructor(...data: ILineChartData[]) {\n super();\n this.type = 'Chart.Line';\n this.data = data;\n }\n\n withOptions(value: LineChartOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withColorSet(value: string) {\n this.colorSet = value;\n return this;\n }\n\n addData(...data: ILineChartData[]) {\n this.data.push(...data);\n return this;\n }\n}\n\nexport interface ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n}\n\nexport type LineChartDataOptions = Omit<ILineChartData, 'values'>;\n\nexport class LineChartData implements ILineChartData {\n /**\n * the color to use for the data point.\n */\n color?: ChartColor;\n\n /**\n * the legend of the chart.\n */\n legend?: string;\n\n /**\n * the data points in the series.\n */\n values: ILineChartDataPoint[];\n\n constructor(...dataPoints: ILineChartDataPoint[]) {\n this.values = dataPoints;\n }\n\n withOptions(value: LineChartDataOptions) {\n Object.assign(this, value);\n return this;\n }\n\n withColor(value: ChartColor) {\n this.color = value;\n return this;\n }\n\n withLegend(value: string) {\n this.legend = value;\n return this;\n }\n\n addDataPoints(...value: ILineChartDataPoint[]) {\n this.values.push(...value);\n return this;\n }\n}\n\nexport interface ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n}\n\nexport class LineChartDataPoint implements ILineChartDataPoint {\n /**\n * the x axis value of the data point.\n */\n x: number | string;\n\n /**\n * the y axis value of the data point.\n */\n y: number;\n\n constructor(x: number | string, y: number) {\n this.x = x;\n this.y = y;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"associated-inputs.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"associated-inputs.mjs"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
3
|
+
*/
|
|
4
|
+
interface IAuthCardButton {
|
|
5
|
+
/**
|
|
6
|
+
* The type of the button.
|
|
7
|
+
*/
|
|
8
|
+
type: string;
|
|
9
|
+
/**
|
|
10
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* The caption of the button.
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A URL to an image to display alongside the button’s caption.
|
|
19
|
+
*/
|
|
20
|
+
image?: string;
|
|
21
|
+
}
|
|
22
|
+
type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;
|
|
23
|
+
/**
|
|
24
|
+
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
25
|
+
*/
|
|
26
|
+
declare class AuthCardbutton implements IAuthCardButton {
|
|
27
|
+
/**
|
|
28
|
+
* The type of the button.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
33
|
+
*/
|
|
34
|
+
value: string;
|
|
35
|
+
/**
|
|
36
|
+
* The caption of the button.
|
|
37
|
+
*/
|
|
38
|
+
title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A URL to an image to display alongside the button’s caption.
|
|
41
|
+
*/
|
|
42
|
+
image?: string;
|
|
43
|
+
constructor(type: string, value: string, options?: AuthCardButtonOptions);
|
|
44
|
+
withType(value: string): this;
|
|
45
|
+
withValue(value: string): this;
|
|
46
|
+
withTitle(value: string): this;
|
|
47
|
+
withImage(value: string): this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { type AuthCardButtonOptions, AuthCardbutton, type IAuthCardButton };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
3
|
+
*/
|
|
4
|
+
interface IAuthCardButton {
|
|
5
|
+
/**
|
|
6
|
+
* The type of the button.
|
|
7
|
+
*/
|
|
8
|
+
type: string;
|
|
9
|
+
/**
|
|
10
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* The caption of the button.
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* A URL to an image to display alongside the button’s caption.
|
|
19
|
+
*/
|
|
20
|
+
image?: string;
|
|
21
|
+
}
|
|
22
|
+
type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;
|
|
23
|
+
/**
|
|
24
|
+
* Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).
|
|
25
|
+
*/
|
|
26
|
+
declare class AuthCardbutton implements IAuthCardButton {
|
|
27
|
+
/**
|
|
28
|
+
* The type of the button.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
33
|
+
*/
|
|
34
|
+
value: string;
|
|
35
|
+
/**
|
|
36
|
+
* The caption of the button.
|
|
37
|
+
*/
|
|
38
|
+
title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* A URL to an image to display alongside the button’s caption.
|
|
41
|
+
*/
|
|
42
|
+
image?: string;
|
|
43
|
+
constructor(type: string, value: string, options?: AuthCardButtonOptions);
|
|
44
|
+
withType(value: string): this;
|
|
45
|
+
withValue(value: string): this;
|
|
46
|
+
withTitle(value: string): this;
|
|
47
|
+
withImage(value: string): this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { type AuthCardButtonOptions, AuthCardbutton, type IAuthCardButton };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class AuthCardbutton {
|
|
4
|
+
/**
|
|
5
|
+
* The type of the button.
|
|
6
|
+
*/
|
|
7
|
+
type;
|
|
8
|
+
/**
|
|
9
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
10
|
+
*/
|
|
11
|
+
value;
|
|
12
|
+
/**
|
|
13
|
+
* The caption of the button.
|
|
14
|
+
*/
|
|
15
|
+
title;
|
|
16
|
+
/**
|
|
17
|
+
* A URL to an image to display alongside the button’s caption.
|
|
18
|
+
*/
|
|
19
|
+
image;
|
|
20
|
+
constructor(type, value, options = {}) {
|
|
21
|
+
this.type = type;
|
|
22
|
+
this.value = value;
|
|
23
|
+
Object.assign(this, options);
|
|
24
|
+
}
|
|
25
|
+
withType(value) {
|
|
26
|
+
this.type = value;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
withValue(value) {
|
|
30
|
+
this.value = value;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
withTitle(value) {
|
|
34
|
+
this.title = value;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
withImage(value) {
|
|
38
|
+
this.image = value;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.AuthCardbutton = AuthCardbutton;
|
|
44
|
+
//# sourceMappingURL=auth-card-button.js.map
|
|
45
|
+
//# sourceMappingURL=auth-card-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/common/auth/auth-card-button.ts"],"names":[],"mappings":";;AA8BO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAc,KAAe,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC5E,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth-card-button.js","sourcesContent":["/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport interface IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n}\n\nexport type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;\n\n/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport class AuthCardbutton implements IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n\n constructor(type: string, value: string, options: AuthCardButtonOptions = {}) {\n this.type = type;\n this.value = value;\n Object.assign(this, options);\n }\n\n withType(value: string) {\n this.type = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withImage(value: string) {\n this.image = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
class AuthCardbutton {
|
|
2
|
+
/**
|
|
3
|
+
* The type of the button.
|
|
4
|
+
*/
|
|
5
|
+
type;
|
|
6
|
+
/**
|
|
7
|
+
* The value associated with the button. The meaning of value depends on the button’s type.
|
|
8
|
+
*/
|
|
9
|
+
value;
|
|
10
|
+
/**
|
|
11
|
+
* The caption of the button.
|
|
12
|
+
*/
|
|
13
|
+
title;
|
|
14
|
+
/**
|
|
15
|
+
* A URL to an image to display alongside the button’s caption.
|
|
16
|
+
*/
|
|
17
|
+
image;
|
|
18
|
+
constructor(type, value, options = {}) {
|
|
19
|
+
this.type = type;
|
|
20
|
+
this.value = value;
|
|
21
|
+
Object.assign(this, options);
|
|
22
|
+
}
|
|
23
|
+
withType(value) {
|
|
24
|
+
this.type = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
withValue(value) {
|
|
28
|
+
this.value = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
withTitle(value) {
|
|
32
|
+
this.title = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
withImage(value) {
|
|
36
|
+
this.image = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { AuthCardbutton };
|
|
42
|
+
//# sourceMappingURL=auth-card-button.mjs.map
|
|
43
|
+
//# sourceMappingURL=auth-card-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/common/auth/auth-card-button.ts"],"names":[],"mappings":"AA8BO,MAAM,cAA0C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAc,KAAe,EAAA,OAAA,GAAiC,EAAI,EAAA;AAC5E,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth-card-button.mjs","sourcesContent":["/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport interface IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n}\n\nexport type AuthCardButtonOptions = Omit<IAuthCardButton, 'type' | 'value'>;\n\n/**\n * Defines a button as displayed when prompting a user to authenticate. This maps to the cardAction type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.cardaction).\n */\nexport class AuthCardbutton implements IAuthCardButton {\n /**\n * The type of the button.\n */\n type: string;\n\n /**\n * The value associated with the button. The meaning of value depends on the button’s type.\n */\n value: string;\n\n /**\n * The caption of the button.\n */\n title?: string;\n\n /**\n * A URL to an image to display alongside the button’s caption.\n */\n image?: string;\n\n constructor(type: string, value: string, options: AuthCardButtonOptions = {}) {\n this.type = type;\n this.value = value;\n Object.assign(this, options);\n }\n\n withType(value: string) {\n this.type = value;\n return this;\n }\n\n withValue(value: string) {\n this.value = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withImage(value: string) {\n this.image = value;\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IAuthCardButton } from './auth-card-button.mjs';
|
|
2
|
+
import { ITokenExchangeResource } from './token-exchange-resource.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
6
|
+
*/
|
|
7
|
+
interface IAuth {
|
|
8
|
+
/**
|
|
9
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
10
|
+
*/
|
|
11
|
+
text?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The identifier for registered OAuth connection setting information.
|
|
14
|
+
*/
|
|
15
|
+
connectionName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
18
|
+
*/
|
|
19
|
+
tokenExchangeResource?: ITokenExchangeResource;
|
|
20
|
+
/**
|
|
21
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
22
|
+
*/
|
|
23
|
+
buttons?: IAuthCardButton[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
27
|
+
*/
|
|
28
|
+
declare class Auth implements IAuth {
|
|
29
|
+
/**
|
|
30
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The identifier for registered OAuth connection setting information.
|
|
35
|
+
*/
|
|
36
|
+
connectionName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
39
|
+
*/
|
|
40
|
+
tokenExchangeResource?: ITokenExchangeResource;
|
|
41
|
+
/**
|
|
42
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
43
|
+
*/
|
|
44
|
+
buttons?: IAuthCardButton[];
|
|
45
|
+
constructor(options?: IAuth);
|
|
46
|
+
withText(value: string): this;
|
|
47
|
+
withConnectionName(value: string): this;
|
|
48
|
+
withTokenExchangeResource(value: ITokenExchangeResource): this;
|
|
49
|
+
addButtons(...value: IAuthCardButton[]): this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Auth, type IAuth };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IAuthCardButton } from './auth-card-button.js';
|
|
2
|
+
import { ITokenExchangeResource } from './token-exchange-resource.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
6
|
+
*/
|
|
7
|
+
interface IAuth {
|
|
8
|
+
/**
|
|
9
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
10
|
+
*/
|
|
11
|
+
text?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The identifier for registered OAuth connection setting information.
|
|
14
|
+
*/
|
|
15
|
+
connectionName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
18
|
+
*/
|
|
19
|
+
tokenExchangeResource?: ITokenExchangeResource;
|
|
20
|
+
/**
|
|
21
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
22
|
+
*/
|
|
23
|
+
buttons?: IAuthCardButton[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)
|
|
27
|
+
*/
|
|
28
|
+
declare class Auth implements IAuth {
|
|
29
|
+
/**
|
|
30
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The identifier for registered OAuth connection setting information.
|
|
35
|
+
*/
|
|
36
|
+
connectionName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
39
|
+
*/
|
|
40
|
+
tokenExchangeResource?: ITokenExchangeResource;
|
|
41
|
+
/**
|
|
42
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
43
|
+
*/
|
|
44
|
+
buttons?: IAuthCardButton[];
|
|
45
|
+
constructor(options?: IAuth);
|
|
46
|
+
withText(value: string): this;
|
|
47
|
+
withConnectionName(value: string): this;
|
|
48
|
+
withTokenExchangeResource(value: ITokenExchangeResource): this;
|
|
49
|
+
addButtons(...value: IAuthCardButton[]): this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Auth, type IAuth };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class Auth {
|
|
4
|
+
/**
|
|
5
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
6
|
+
*/
|
|
7
|
+
text;
|
|
8
|
+
/**
|
|
9
|
+
* The identifier for registered OAuth connection setting information.
|
|
10
|
+
*/
|
|
11
|
+
connectionName;
|
|
12
|
+
/**
|
|
13
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
14
|
+
*/
|
|
15
|
+
tokenExchangeResource;
|
|
16
|
+
/**
|
|
17
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
18
|
+
*/
|
|
19
|
+
buttons;
|
|
20
|
+
constructor(options = {}) {
|
|
21
|
+
Object.assign(this, options);
|
|
22
|
+
}
|
|
23
|
+
withText(value) {
|
|
24
|
+
this.text = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
withConnectionName(value) {
|
|
28
|
+
this.connectionName = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
withTokenExchangeResource(value) {
|
|
32
|
+
this.tokenExchangeResource = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
addButtons(...value) {
|
|
36
|
+
if (!this.buttons) {
|
|
37
|
+
this.buttons = [];
|
|
38
|
+
}
|
|
39
|
+
this.buttons.push(...value);
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
exports.Auth = Auth;
|
|
45
|
+
//# sourceMappingURL=auth.js.map
|
|
46
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/common/auth/auth.ts"],"names":[],"mappings":";;AA+BO,MAAM,IAAsB,CAAA;AAAA;AAAA;AAAA;AAAA,EAIjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,mBAAmB,KAAe,EAAA;AAChC,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,0BAA0B,KAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,qBAAwB,GAAA,KAAA;AAC7B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAA0B,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth.js","sourcesContent":["import { IAuthCardButton } from './auth-card-button';\nimport { ITokenExchangeResource } from './token-exchange-resource';\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport interface IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n}\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport class Auth implements IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n\n constructor(options: IAuth = {}) {\n Object.assign(this, options);\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withConnectionName(value: string) {\n this.connectionName = value;\n return this;\n }\n\n withTokenExchangeResource(value: ITokenExchangeResource) {\n this.tokenExchangeResource = value;\n return this;\n }\n\n addButtons(...value: IAuthCardButton[]) {\n if (!this.buttons) {\n this.buttons = [];\n }\n\n this.buttons.push(...value);\n return this;\n }\n}\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
class Auth {
|
|
2
|
+
/**
|
|
3
|
+
* Text that can be displayed to the end user when prompting them to authenticate.
|
|
4
|
+
*/
|
|
5
|
+
text;
|
|
6
|
+
/**
|
|
7
|
+
* The identifier for registered OAuth connection setting information.
|
|
8
|
+
*/
|
|
9
|
+
connectionName;
|
|
10
|
+
/**
|
|
11
|
+
* Provides information required to enable on-behalf-of single sign-on user authentication.
|
|
12
|
+
*/
|
|
13
|
+
tokenExchangeResource;
|
|
14
|
+
/**
|
|
15
|
+
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
|
|
16
|
+
*/
|
|
17
|
+
buttons;
|
|
18
|
+
constructor(options = {}) {
|
|
19
|
+
Object.assign(this, options);
|
|
20
|
+
}
|
|
21
|
+
withText(value) {
|
|
22
|
+
this.text = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
withConnectionName(value) {
|
|
26
|
+
this.connectionName = value;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
withTokenExchangeResource(value) {
|
|
30
|
+
this.tokenExchangeResource = value;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
addButtons(...value) {
|
|
34
|
+
if (!this.buttons) {
|
|
35
|
+
this.buttons = [];
|
|
36
|
+
}
|
|
37
|
+
this.buttons.push(...value);
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { Auth };
|
|
43
|
+
//# sourceMappingURL=auth.mjs.map
|
|
44
|
+
//# sourceMappingURL=auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/common/auth/auth.ts"],"names":[],"mappings":"AA+BO,MAAM,IAAsB,CAAA;AAAA;AAAA;AAAA;AAAA,EAIjC,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA;AAAA;AAAA;AAAA,EAKA,qBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA,EAEA,WAAA,CAAY,OAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,mBAAmB,KAAe,EAAA;AAChC,IAAA,IAAA,CAAK,cAAiB,GAAA,KAAA;AACtB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,0BAA0B,KAA+B,EAAA;AACvD,IAAA,IAAA,CAAK,qBAAwB,GAAA,KAAA;AAC7B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAA0B,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,OAAS,EAAA;AACjB,MAAA,IAAA,CAAK,UAAU,EAAC;AAAA;AAGlB,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX","file":"auth.mjs","sourcesContent":["import { IAuthCardButton } from './auth-card-button';\nimport { ITokenExchangeResource } from './token-exchange-resource';\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport interface IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n}\n\n/**\n * Defines authentication information associated with a card. This maps to the OAuthCard type defined by the Bot Framework (https://docs.microsoft.com/dotnet/api/microsoft.bot.schema.oauthcard)\n */\nexport class Auth implements IAuth {\n /**\n * Text that can be displayed to the end user when prompting them to authenticate.\n */\n text?: string;\n\n /**\n * The identifier for registered OAuth connection setting information.\n */\n connectionName?: string;\n\n /**\n * Provides information required to enable on-behalf-of single sign-on user authentication.\n */\n tokenExchangeResource?: ITokenExchangeResource;\n\n /**\n * Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.\n */\n buttons?: IAuthCardButton[];\n\n constructor(options: IAuth = {}) {\n Object.assign(this, options);\n }\n\n withText(value: string) {\n this.text = value;\n return this;\n }\n\n withConnectionName(value: string) {\n this.connectionName = value;\n return this;\n }\n\n withTokenExchangeResource(value: ITokenExchangeResource) {\n this.tokenExchangeResource = value;\n return this;\n }\n\n addButtons(...value: IAuthCardButton[]) {\n if (!this.buttons) {\n this.buttons = [];\n }\n\n this.buttons.push(...value);\n return this;\n }\n}\n"]}
|