/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { EventProperty } from '../enums/EventProperty'; import { Event } from './Event'; /** * @ignore */ export class DataSourceFetchRequest extends Event { public async execute() { const type = this.event.getValue(EventProperty.kEventPropertyName); const payload = this.event.getValue(EventProperty.kEventPropertyValue); this.renderer.onDataSourceFetchRequest({type, payload}); this.resolve(); this.destroy(); } }