Resolve merge conflicts

This commit is contained in:
Tuan Dang
2023-06-21 11:44:07 +07:00
700 changed files with 9499 additions and 9346 deletions
+25 -25
View File
@@ -1,24 +1,24 @@
import { Schema, model, Types, Document } from "mongoose";
import { Document, Schema, Types, model } from "mongoose";
import {
INTEGRATION_AZURE_KEY_VAULT,
ALGORITHM_AES_256_GCM,
ENCODING_SCHEME_BASE64,
ENCODING_SCHEME_UTF8,
INTEGRATION_AWS_PARAMETER_STORE,
INTEGRATION_AWS_SECRET_MANAGER,
INTEGRATION_HEROKU,
INTEGRATION_VERCEL,
INTEGRATION_NETLIFY,
INTEGRATION_AZURE_KEY_VAULT,
INTEGRATION_CIRCLECI,
INTEGRATION_FLYIO,
INTEGRATION_GITHUB,
INTEGRATION_GITLAB,
INTEGRATION_RENDER,
INTEGRATION_RAILWAY,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
INTEGRATION_TRAVISCI,
INTEGRATION_SUPABASE,
INTEGRATION_HASHICORP_VAULT,
INTEGRATION_HEROKU,
INTEGRATION_NETLIFY,
INTEGRATION_RAILWAY,
INTEGRATION_RENDER,
INTEGRATION_SUPABASE,
INTEGRATION_CLOUDFLARE_PAGES,
ALGORITHM_AES_256_GCM,
ENCODING_SCHEME_UTF8,
ENCODING_SCHEME_BASE64
INTEGRATION_TRAVISCI,
INTEGRATION_VERCEL,
} from "../variables";
export interface IIntegrationAuth extends Document {
@@ -38,8 +38,8 @@ export interface IIntegrationAuth extends Document {
accessCiphertext?: string;
accessIV?: string;
accessTag?: string;
algorithm?: 'aes-256-gcm';
keyEncoding?: 'utf8' | 'base64';
algorithm?: "aes-256-gcm";
keyEncoding?: "utf8" | "base64";
accessExpiresAt?: Date;
}
@@ -78,11 +78,11 @@ const integrationAuthSchema = new Schema<IIntegrationAuth>(
},
url: {
// for any self-hosted integrations (e.g. self-hosted hashicorp-vault)
type: String
type: String,
},
namespace: {
// hashicorp-vault-specific integration param
type: String
type: String,
},
accountId: {
// netlify-specific integration param
@@ -102,15 +102,15 @@ const integrationAuthSchema = new Schema<IIntegrationAuth>(
},
accessIdCiphertext: {
type: String,
select: false
select: false,
},
accessIdIV: {
type: String,
select: false
select: false,
},
accessIdTag: {
type: String,
select: false
select: false,
},
accessCiphertext: {
type: String,
@@ -131,16 +131,16 @@ const integrationAuthSchema = new Schema<IIntegrationAuth>(
algorithm: { // the encryption algorithm used
type: String,
enum: [ALGORITHM_AES_256_GCM],
required: true
required: true,
},
keyEncoding: {
type: String,
enum: [
ENCODING_SCHEME_UTF8,
ENCODING_SCHEME_BASE64
ENCODING_SCHEME_BASE64,
],
required: true
}
required: true,
},
},
{
timestamps: true,