@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/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=c
47 lines (44 loc) • 1.03 kB
JavaScript
;
var core = require('../../core');
class TaskFetchAction extends core.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({ ...this.data, ...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