mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
36 lines
843 B
TypeScript
36 lines
843 B
TypeScript
import { ProviderType } from "./providers";
|
|
|
|
export const PROVIDER_WIZARD_STEP = {
|
|
CONNECT: 0,
|
|
CREDENTIALS: 1,
|
|
TEST: 2,
|
|
LAUNCH: 3,
|
|
} as const;
|
|
|
|
export type ProviderWizardStep =
|
|
(typeof PROVIDER_WIZARD_STEP)[keyof typeof PROVIDER_WIZARD_STEP];
|
|
|
|
export const PROVIDER_WIZARD_MODE = {
|
|
ADD: "add",
|
|
UPDATE: "update",
|
|
} as const;
|
|
|
|
export type ProviderWizardMode =
|
|
(typeof PROVIDER_WIZARD_MODE)[keyof typeof PROVIDER_WIZARD_MODE];
|
|
|
|
export interface ProviderWizardIdentity {
|
|
id: string;
|
|
type: ProviderType;
|
|
uid: string | null;
|
|
alias: string | null;
|
|
}
|
|
|
|
export type AwsConnectDraftValues = Record<string, string>;
|
|
|
|
/** What the AWS connect step typed so far; in memory only, gone with the wizard. */
|
|
export interface AwsConnectDraft {
|
|
method: string;
|
|
roleValues: AwsConnectDraftValues;
|
|
keysValues: AwsConnectDraftValues;
|
|
}
|