-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge' into abt-async-analyses
- Loading branch information
Showing
46 changed files
with
6,477 additions
and
316 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './settings' |
16 changes: 16 additions & 0 deletions
16
api-client/src/errorRecovery/settings/getErrorRecoverySettings.ts
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,16 @@ | ||
import { GET, request } from '../../request' | ||
|
||
import type { ResponsePromise } from '../../request' | ||
import type { HostConfig } from '../../types' | ||
import type { ErrorRecoverySettingsResponse } from './types' | ||
|
||
export function getErrorRecoverySettings( | ||
config: HostConfig | ||
): ResponsePromise<ErrorRecoverySettingsResponse> { | ||
return request<ErrorRecoverySettingsResponse>( | ||
GET, | ||
'/errorRecovery/settings', | ||
null, | ||
config | ||
) | ||
} |
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,3 @@ | ||
export { getErrorRecoverySettings } from './getErrorRecoverySettings' | ||
export { updateErrorRecoverySettings } from './updateErrorRecoverySettings' | ||
export * from './types' |
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,9 @@ | ||
export interface ErrorRecoverySettingsResponse { | ||
data: { | ||
enabled: boolean | ||
} | ||
} | ||
|
||
export interface ErrorRecoverySettingsRequest { | ||
data: Partial<ErrorRecoverySettingsResponse['data']> | ||
} |
20 changes: 20 additions & 0 deletions
20
api-client/src/errorRecovery/settings/updateErrorRecoverySettings.ts
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,20 @@ | ||
import { PATCH, request } from '../../request' | ||
|
||
import type { ResponsePromise } from '../../request' | ||
import type { HostConfig } from '../../types' | ||
import type { | ||
ErrorRecoverySettingsRequest, | ||
ErrorRecoverySettingsResponse, | ||
} from './types' | ||
|
||
export function updateErrorRecoverySettings( | ||
config: HostConfig, | ||
settings: ErrorRecoverySettingsRequest | ||
): ResponsePromise<ErrorRecoverySettingsResponse> { | ||
return request<ErrorRecoverySettingsResponse, ErrorRecoverySettingsRequest>( | ||
PATCH, | ||
'/errorRecovery/settings', | ||
settings, | ||
config | ||
) | ||
} |
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
Oops, something went wrong.