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

47 lines (44 loc) 1.02 kB
'use strict'; var submit = require('./submit'); class TaskFetchAction extends submit.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); } } } exports.TaskFetchAction = TaskFetchAction; exports.TaskFetchData = TaskFetchData; //# sourceMappingURL=task-fetch.js.map //# sourceMappingURL=task-fetch.js.map