Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
Aashish-Upadhyay-101
2023-02-13 15:39:38 +05:45
137 changed files with 5942 additions and 499 deletions
+26 -8
View File
@@ -1,6 +1,8 @@
import { Schema, model, Types } from "mongoose";
import {
INTEGRATION_AZURE_KEY_VAULT,
INTEGRATION_AWS_PARAMETER_STORE,
INTEGRATION_AWS_SECRET_MANAGER,
INTEGRATION_HEROKU,
INTEGRATION_VERCEL,
INTEGRATION_NETLIFY,
@@ -19,15 +21,19 @@ export interface IIntegration {
owner: string;
targetEnvironment: string;
appId: string;
path: string;
region: string;
integration:
| "heroku"
| "vercel"
| "netlify"
| "github"
| "render"
| "flyio"
| "azure-key-vault"
| "circleci";
| 'azure-key-vault'
| 'aws-parameter-store'
| 'aws-secret-manager'
| 'heroku'
| 'vercel'
| 'netlify'
| 'github'
| 'render'
| 'flyio'
| 'circleci';
integrationAuth: Types.ObjectId;
}
@@ -68,10 +74,22 @@ const integrationSchema = new Schema<IIntegration>(
type: String,
default: null,
},
path: {
// aws-parameter-store-specific path
type: String,
default: null
},
region: {
// aws-parameter-store-specific path
type: String,
default: null
},
integration: {
type: String,
enum: [
INTEGRATION_AZURE_KEY_VAULT,
INTEGRATION_AWS_PARAMETER_STORE,
INTEGRATION_AWS_SECRET_MANAGER,
INTEGRATION_HEROKU,
INTEGRATION_VERCEL,
INTEGRATION_NETLIFY,