feat: added api for admin and org gateway management

This commit is contained in:
=
2025-02-26 20:45:36 +05:30
parent 617aa2f533
commit 84c534ef70
25 changed files with 1053 additions and 11 deletions
+2
View File
@@ -95,6 +95,7 @@ import { TUserServiceFactory } from "@app/services/user/user-service";
import { TUserEngagementServiceFactory } from "@app/services/user-engagement/user-engagement-service";
import { TWebhookServiceFactory } from "@app/services/webhook/webhook-service";
import { TWorkflowIntegrationServiceFactory } from "@app/services/workflow-integration/workflow-integration-service";
import { TGatewayServiceFactory } from "@app/ee/services/gateway/gateway-service";
declare module "@fastify/request-context" {
interface RequestContextData {
@@ -228,6 +229,7 @@ declare module "fastify" {
secretSync: TSecretSyncServiceFactory;
kmip: TKmipServiceFactory;
kmipOperation: TKmipOperationServiceFactory;
gateway: TGatewayServiceFactory;
};
// this is exclusive use for middlewares in which we need to inject data
// everywhere else access using service layer
+20
View File
@@ -68,6 +68,12 @@ import {
TExternalKms,
TExternalKmsInsert,
TExternalKmsUpdate,
TGatewayInstanceConfig,
TGatewayInstanceConfigInsert,
TGatewayInstanceConfigUpdate,
TGateways,
TGatewaysInsert,
TGatewaysUpdate,
TGitAppInstallSessions,
TGitAppInstallSessionsInsert,
TGitAppInstallSessionsUpdate,
@@ -179,6 +185,9 @@ import {
TOrgBots,
TOrgBotsInsert,
TOrgBotsUpdate,
TOrgGatewayRootCa,
TOrgGatewayRootCaInsert,
TOrgGatewayRootCaUpdate,
TOrgMemberships,
TOrgMembershipsInsert,
TOrgMembershipsUpdate,
@@ -930,5 +939,16 @@ declare module "knex/types/tables" {
TKmipClientCertificatesInsert,
TKmipClientCertificatesUpdate
>;
[TableName.Gateway]: KnexOriginal.CompositeTableType<TGateways, TGatewaysInsert, TGatewaysUpdate>;
[TableName.GatewayInstanceConfig]: KnexOriginal.CompositeTableType<
TGatewayInstanceConfig,
TGatewayInstanceConfigInsert,
TGatewayInstanceConfigUpdate
>;
[TableName.OrgGatewayRootCa]: KnexOriginal.CompositeTableType<
TOrgGatewayRootCa,
TOrgGatewayRootCaInsert,
TOrgGatewayRootCaUpdate
>;
}
}