import { JsonMap } from '@salesforce/ts-types' ; import { DATA_JSON_EXT } from '../../constants' ; import { DataProvider } from './iDataProvider' ; export class JsonDataProvider implements DataProvider { public readonly fileExtension = DATA_JSON_EXT ; constructor ( public readonly documentName ) { } public getFileContent ( query , data ) { const queryRecordsJson = JSON . stringify ( data , null , 2 ) ; return queryRecordsJson ; } public getFileName ( ) { return `${ this . documentName }.${ this . fileExtension }` ; } }