UNPKG

@microsoft/teams.cards

Version:

<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" ta

44 lines (42 loc) 971 B
import { SubmitAction } from './submit'; class TaskFetchAction extends SubmitAction { /** * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties. */ data; constructor(value, options = {}) { super(options); Object.assign(this, options); this.data = { ...value, msteams: { type: "task/fetch" } }; } static from(options) { return new TaskFetchAction(options.data, options); } withData(value) { this.data = value; return this; } withValue(value) { super.withData({ ...value, msteams: { type: "task/fetch" } }); return this; } } class TaskFetchData { msteams = { type: "task/fetch" }; constructor(data) { if (data) { const { msteams, ...rest } = data; Object.assign(this, rest); } } } export { TaskFetchAction, TaskFetchData }; //# sourceMappingURL=task-fetch.mjs.map //# sourceMappingURL=task-fetch.mjs.map