src/backend/integrations-configurations/services/env-variable.service.ts
import type { AbstractConfigDataPersistenceService } from "@/backend/lib/config-persistence";
import { createConfigDomainPersistenceService } from "@/backend/lib/config-persistence";
import type { EncryptionApiService } from "@/backend/lib/encryption/encryption.service";
import { encryptionApiService } from "@/backend/lib/encryption/encryption.service";
import { IntegrationsConfigurationApiService } from "./_base";
class PlainConfigurationService extends IntegrationsConfigurationApiService {
constructor(
_credentialsPersistenceService: AbstractConfigDataPersistenceService<string>,
_encryptionService: EncryptionApiService
) {
super(_credentialsPersistenceService, _encryptionService);
}
}
export const environmentVariablesApiService = new PlainConfigurationService(
createConfigDomainPersistenceService<string>("environment-variables"),
encryptionApiService
);
export const appConstantsApiService = new PlainConfigurationService(
createConfigDomainPersistenceService<string>("constants"),
encryptionApiService
);