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