diff --git a/src/store/cloudProviderConfigSlice.ts b/src/store/cloudProviderConfigSlice.ts index 056b52b2..55ab5d66 100644 --- a/src/store/cloudProviderConfigSlice.ts +++ b/src/store/cloudProviderConfigSlice.ts @@ -1,15 +1,10 @@ import { PayloadAction, createSlice } from '@reduxjs/toolkit'; +import type { CloudProviderConfigState } from './cockpit/types'; + import type { RootState } from '.'; -export type cloudProviderConfigState = { - aws: { - bucket?: string; - credentials?: string; - }; -}; - -export const initialState: cloudProviderConfigState = { +export const initialState: CloudProviderConfigState = { aws: {}, }; diff --git a/src/store/cockpit/types.ts b/src/store/cockpit/types.ts index cfebeb1b..5d7350fc 100644 --- a/src/store/cockpit/types.ts +++ b/src/store/cockpit/types.ts @@ -18,3 +18,16 @@ export type Package = { version: string; release: string; }; + +export type AWSWorkerConfig = { + bucket?: string | undefined; + credentials?: string | undefined; +}; + +export type WorkerConfigResponse = { + aws?: AWSWorkerConfig; +}; + +export type CloudProviderConfigState = { + aws: AWSWorkerConfig; +};