-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor (client): Move client out of react build (#722)
* refactor (client): Move out of react build * refactor (apiclient): Rename client to API client and other changes * chore (apiClient): Rename package * chore (apiClient): rename export folder name * chore (apiClient): rename export folder name * chore (apiClient): redundant folder name * chore (apiClient): redundant folder name * chore (sdks): update pnpm-lock file * chore (sdks): rename excluding folder * fix (sdk): prefer workspace package locally * chore (api-client): rename api-client
- Loading branch information
1 parent
0b52814
commit 6c5be22
Showing
15 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
auto-install-peers = true | ||
strict-peer-dependencies = false | ||
strict-peer-dependencies = false | ||
link-workspace-packages=true |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { V1Beta1 } from './V1Beta1'; | ||
|
||
export * from './data-contracts'; | ||
export const ApiClient = V1Beta1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { V1Beta1 } from '../client/V1Beta1'; | ||
import { V1Beta1 } from '../api-client/V1Beta1'; | ||
|
||
export * from '../client/V1Beta1'; | ||
export * from '../client/data-contracts'; | ||
export * from '../api-client/V1Beta1'; | ||
export * from '../api-client/data-contracts'; | ||
export const FrontierClient = V1Beta1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ApiClient } from '@raystack/frontier/api-client' | ||
import config from '@/config/frontier'; | ||
|
||
const client = new ApiClient({ | ||
baseUrl: config.endpoint, | ||
baseApiParams: { | ||
credentials: 'include' | ||
} | ||
}); | ||
|
||
export default client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters