-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some changes related to installation token
- Loading branch information
1 parent
10b9009
commit 2dfe126
Showing
24 changed files
with
360 additions
and
188 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
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
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
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,19 +1,18 @@ | ||
import { | ||
FetchInstallationsOptions, | ||
InstallationsConnection, | ||
} from '@devhub/core' | ||
import { FetchInstallationsOptions, Installation } from '@devhub/core' | ||
import { createAction, createErrorAction } from '../helpers' | ||
|
||
export function fetchInstallationsRequest(payload: FetchInstallationsOptions) { | ||
return createAction('FETCH_INSTALLATIONS_REQUEST', payload) | ||
export function refreshInstallationsRequest( | ||
payload: FetchInstallationsOptions, | ||
) { | ||
return createAction('REFRESH_INSTALLATIONS_REQUEST', payload) | ||
} | ||
|
||
export function fetchInstallationsSuccess(payload: InstallationsConnection) { | ||
return createAction('FETCH_INSTALLATIONS_SUCCESS', payload) | ||
export function refreshInstallationsSuccess(payload: Installation[]) { | ||
return createAction('REFRESH_INSTALLATIONS_SUCCESS', payload) | ||
} | ||
|
||
export function fetchInstallationsFailure<E extends Error>( | ||
export function refreshInstallationsFailure<E extends Error>( | ||
error: E & { status?: number }, | ||
) { | ||
return createErrorAction('FETCH_INSTALLATIONS_FAILURE', error) | ||
return createErrorAction('REFRESH_INSTALLATIONS_FAILURE', error) | ||
} |
Oops, something went wrong.