Skip to content

Commit

Permalink
Merge pull request #431 from hallieswan/SWC-6531
Browse files Browse the repository at this point in the history
SWC-6531: expose HttpClient and BackendDestinationEnum, so duplicate code can be removed from SWC e2e helpers
  • Loading branch information
hallieswan authored Aug 25, 2023
2 parents eaad354 + 368b4d6 commit f672abb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/synapse-react-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as AppUtils from './utils/AppUtils'
import * as RegularExpressions from './utils/functions/RegularExpressions'
import { SynapseClientError } from './utils/SynapseClientError'
import * as SynapseComponents from './components'
import SynapseClient from './synapse-client'
import SynapseClient, { HttpClient } from './synapse-client'
import * as SynapseQueries from './synapse-queries'
import { SynapseConstants, SynapseUtilityFunctions } from './utils'

Expand All @@ -29,6 +29,7 @@ const SynapseContextUtils = {
}

export {
HttpClient,
SynapseClient,
SynapseClientError,
SynapseConstants,
Expand Down
3 changes: 2 additions & 1 deletion packages/synapse-react-client/src/synapse-client/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as SynapseClient from './SynapseClient'
export * from './SynapseClient'
import * as SynapseClientUtils from './SynapseClientUtils'
import * as HttpClient from './HttpClient'
export default SynapseClient
export { SynapseClientUtils }
export { SynapseClientUtils, HttpClient }
2 changes: 2 additions & 0 deletions packages/synapse-react-client/src/utils/functions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from './SqlFunctions'
import { hex2ascii } from './StringUtils'
import type { SQLOperator } from './SqlFunctions'
import type { BackendDestinationEnum } from './getEndpoint'

export {
getNextPageOfData,
Expand All @@ -16,6 +17,7 @@ export {
getIgnoredQueryFilterSearchParamKey,
resultToJson,
hex2ascii,
BackendDestinationEnum,
SQLOperator,
QUERY_FILTERS_LOCAL_STORAGE_KEY,
}

0 comments on commit f672abb

Please sign in to comment.