import { ClientOptions, Transport } from '@nestjs/microservices'; import { TransformationPackages, TransformationProtoFilePath, } from '@victorradael/protospack'; import { credentials } from '@grpc/grpc-js'; export class TransformationsClientConfiguration { config(): ClientOptions { return { transport: Transport.GRPC, options: { url: process.env.TRFACTORY_URL, package: TransformationPackages, credentials: credentials.createSsl(), protoPath: TransformationProtoFilePath, loader: { enums: String, objects: true, arrays: true, }, }, }; } }