General improvements to Humanitec integration

This commit is contained in:
carlosmonastyrski
2025-03-13 09:41:12 -03:00
parent 568aadef75
commit b0b55344ce
27 changed files with 340 additions and 166 deletions
@@ -4,13 +4,26 @@ import { TRootSecretSync } from "@app/hooks/api/secretSyncs/types/root-sync";
export type THumanitecSync = TRootSecretSync & {
destination: SecretSync.Humanitec;
destinationConfig: {
org: string;
app: string;
};
destinationConfig:
| {
scope: HumanitecSyncScope.Application;
org: string;
app: string;
}
| {
scope: HumanitecSyncScope.Environment;
org: string;
app: string;
env: string;
};
connection: {
app: AppConnection.Humanitec;
name: string;
id: string;
};
};
export enum HumanitecSyncScope {
Application = "application",
Environment = "environment"
}