mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 01:05:40 +00:00
Type fix
This commit is contained in:
@@ -3,14 +3,14 @@ import { TRootAppConnection } from "@app/hooks/api/appConnections/types/root-con
|
||||
|
||||
import { GitLabAccessTokenType } from "../gitlab";
|
||||
|
||||
export enum GitlabConnectionMethod {
|
||||
export enum GitLabConnectionMethod {
|
||||
AccessToken = "access-token",
|
||||
OAuth = "oauth"
|
||||
}
|
||||
|
||||
export type TGitlabConnection = TRootAppConnection & { app: AppConnection.Gitlab } & (
|
||||
export type TGitLabConnection = TRootAppConnection & { app: AppConnection.Gitlab } & (
|
||||
| {
|
||||
method: GitlabConnectionMethod.AccessToken;
|
||||
method: GitLabConnectionMethod.AccessToken;
|
||||
credentials: {
|
||||
instanceUrl?: string;
|
||||
accessToken: string;
|
||||
@@ -18,7 +18,7 @@ export type TGitlabConnection = TRootAppConnection & { app: AppConnection.Gitlab
|
||||
};
|
||||
}
|
||||
| {
|
||||
method: GitlabConnectionMethod.OAuth;
|
||||
method: GitLabConnectionMethod.OAuth;
|
||||
credentials: {
|
||||
code: string;
|
||||
instanceUrl?: string;
|
||||
|
||||
@@ -14,7 +14,7 @@ import { TFlyioConnection } from "./flyio-connection";
|
||||
import { TGcpConnection } from "./gcp-connection";
|
||||
import { TGitHubConnection } from "./github-connection";
|
||||
import { TGitHubRadarConnection } from "./github-radar-connection";
|
||||
import { TGitlabConnection } from "./gitlab-connection";
|
||||
import { TGitLabConnection } from "./gitlab-connection";
|
||||
import { THCVaultConnection } from "./hc-vault-connection";
|
||||
import { THerokuConnection } from "./heroku-connection";
|
||||
import { THumanitecConnection } from "./humanitec-connection";
|
||||
@@ -88,7 +88,7 @@ export type TAppConnection =
|
||||
| THerokuConnection
|
||||
| TRenderConnection
|
||||
| TFlyioConnection
|
||||
| TGitlabConnection
|
||||
| TGitLabConnection
|
||||
| TCloudflareConnection;
|
||||
|
||||
export type TAvailableAppConnection = Pick<TAppConnection, "name" | "id">;
|
||||
@@ -144,6 +144,6 @@ export type TAppConnectionMap = {
|
||||
[AppConnection.Heroku]: THerokuConnection;
|
||||
[AppConnection.Render]: TRenderConnection;
|
||||
[AppConnection.Flyio]: TFlyioConnection;
|
||||
[AppConnection.Gitlab]: TGitlabConnection;
|
||||
[AppConnection.Gitlab]: TGitLabConnection;
|
||||
[AppConnection.Cloudflare]: TCloudflareConnection;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user