import * as XrmMock from "../xrm-mock/index" ; export default class WebApi { public static createApi ( clientContext ) { const offlineApi = this . createOfflineApi ( ) ; const onlineApi = this . createOnlineApi ( offlineApi ) ; const api = new XrmMock . WebApiMock ( clientContext , onlineApi , offlineApi ) ; return api ; } private static createOfflineApi ( ) { const offlineApi = new XrmMock . WebApiOfflineMock ( ) ; return offlineApi ; } private static createOnlineApi ( offlineApi ) { const onlineApi = new XrmMock . WebApiOnlineMock ( offlineApi ) ; return onlineApi ; } }