From 824315f77306b63eee02c441c0def248a3a732db Mon Sep 17 00:00:00 2001 From: Aashish-Upadhyay-101 Date: Wed, 22 Feb 2023 13:14:06 +0545 Subject: [PATCH] model steup for travis-ci --- backend/src/models/integration.ts | 5 ++++- backend/src/models/integrationAuth.ts | 4 +++- backend/src/variables/index.ts | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/src/models/integration.ts b/backend/src/models/integration.ts index 1b52fabd9..35ef6106b 100644 --- a/backend/src/models/integration.ts +++ b/backend/src/models/integration.ts @@ -10,6 +10,7 @@ import { INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, } from "../variables"; export interface IIntegration { @@ -33,7 +34,8 @@ export interface IIntegration { | 'github' | 'render' | 'flyio' - | 'circleci'; + | 'circleci' + | 'travisci'; integrationAuth: Types.ObjectId; } @@ -97,6 +99,7 @@ const integrationSchema = new Schema( INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, ], required: true, }, diff --git a/backend/src/models/integrationAuth.ts b/backend/src/models/integrationAuth.ts index 95f8c75af..c68fdd336 100644 --- a/backend/src/models/integrationAuth.ts +++ b/backend/src/models/integrationAuth.ts @@ -10,12 +10,13 @@ import { INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, } from "../variables"; export interface IIntegrationAuth { _id: Types.ObjectId; workspace: Types.ObjectId; - integration: 'heroku' | 'vercel' | 'netlify' | 'github' | 'render' | 'flyio' | 'azure-key-vault' | 'circleci' | 'aws-parameter-store' | 'aws-secret-manager'; + integration: 'heroku' | 'vercel' | 'netlify' | 'github' | 'render' | 'flyio' | 'azure-key-vault' | 'circleci' | 'travisci' | 'aws-parameter-store' | 'aws-secret-manager'; teamId: string; accountId: string; refreshCiphertext?: string; @@ -50,6 +51,7 @@ const integrationAuthSchema = new Schema( INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, ], required: true, }, diff --git a/backend/src/variables/index.ts b/backend/src/variables/index.ts index 23854bc58..9d16b7f43 100644 --- a/backend/src/variables/index.ts +++ b/backend/src/variables/index.ts @@ -16,6 +16,7 @@ import { INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, INTEGRATION_SET, INTEGRATION_OAUTH2, INTEGRATION_AZURE_TOKEN_URL, @@ -29,6 +30,7 @@ import { INTEGRATION_RENDER_API_URL, INTEGRATION_FLYIO_API_URL, INTEGRATION_CIRCLECI_API_URL, + INTEGRATION_TRAVISCI_API_URL, INTEGRATION_OPTIONS, } from "./integration"; import { OWNER, ADMIN, MEMBER, INVITED, ACCEPTED } from "./organization"; @@ -77,6 +79,7 @@ export { INTEGRATION_RENDER, INTEGRATION_FLYIO, INTEGRATION_CIRCLECI, + INTEGRATION_TRAVISCI, INTEGRATION_SET, INTEGRATION_OAUTH2, INTEGRATION_AZURE_TOKEN_URL, @@ -90,6 +93,7 @@ export { INTEGRATION_RENDER_API_URL, INTEGRATION_FLYIO_API_URL, INTEGRATION_CIRCLECI_API_URL, + INTEGRATION_TRAVISCI_API_URL, EVENT_PUSH_SECRETS, EVENT_PULL_SECRETS, ACTION_LOGIN,