Patch integration issues

This commit is contained in:
Tuan Dang
2024-01-27 12:38:23 +05:30
committed by Akhil Mohan
parent 3afafbb885
commit b1285b401b
3 changed files with 6 additions and 5 deletions
@@ -12,13 +12,13 @@ export async function up(knex: Knex): Promise<void> {
t.string("url"); // for self hosted t.string("url"); // for self hosted
t.string("namespace"); // hashicorp specific t.string("namespace"); // hashicorp specific
t.string("accountId"); // netlify t.string("accountId"); // netlify
t.string("refreshCiphertext"); t.text("refreshCiphertext");
t.string("refreshIV"); t.string("refreshIV");
t.string("refreshTag"); t.string("refreshTag");
t.string("accessIdCiphertext"); t.string("accessIdCiphertext");
t.string("accessIdIV"); t.string("accessIdIV");
t.string("accessIdTag"); t.string("accessIdTag");
t.string("accessCiphertext"); t.text("accessCiphertext");
t.string("accessIV"); t.string("accessIV");
t.string("accessTag"); t.string("accessTag");
t.datetime("accessExpiresAt"); t.datetime("accessExpiresAt");
@@ -18,6 +18,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
.object({ .object({
name: z.string(), name: z.string(),
slug: z.string(), slug: z.string(),
clientSlug: z.string().optional(),
image: z.string(), image: z.string(),
isAvailable: z.boolean().optional(), isAvailable: z.boolean().optional(),
type: z.string(), type: z.string(),
@@ -192,7 +193,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
apps: z apps: z
.object({ .object({
name: z.string(), name: z.string(),
appId: z.string().optional(), appId: z.coerce.string().optional(),
owner: z.string().optional() owner: z.string().optional()
}) })
.array() .array()
@@ -533,7 +534,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider)
type: z.string(), type: z.string(),
is_private: z.boolean(), is_private: z.boolean(),
created_on: z.string(), created_on: z.string(),
updated_on: z.string() updated_on: z.string().optional()
}) })
.array() .array()
}) })
@@ -770,7 +770,7 @@ export const integrationAuthServiceFactory = ({
`; `;
const variables = { const variables = {
projectId: appId id: appId
}; };
const { const {