REFACTOR: Att Functions + Alpha Clients connection

This commit is contained in:
rodrigo.zamboni
2022-03-24 11:41:55 -03:00
parent a39ea091ee
commit 04584df44d
14 changed files with 10555 additions and 1627 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export class InputsClientConfiguration {
options: {
url: process.env.INFACTORY_URL,
package: 'input',
// credentials: credentials.createSsl(),
credentials: credentials.createSsl(),
protoPath: InputProtofile,
loader: {
enums: String,
-2
View File
@@ -105,11 +105,9 @@ export class InputsClientService implements OnModuleInit {
async update(updateInputDTO:UpdateInputRequest) {
console.log('InputClientService', 'Update');
console.log(updateInputDTO)
const updateInputResponse = await new Promise((resolve, reject) => {
this.inputService.Update(updateInputDTO).subscribe({
next(x) {
console.log(x)
resolve(x);
},
error(err) {
+2 -2
View File
@@ -30,7 +30,7 @@ interface Cron {
export interface ICreateInputRequest {
cron: Cron;
cron: string;
name: string;
plugin: string;
values: Values;
@@ -43,7 +43,7 @@ export interface IIdRequest{
interface UpdateInputRequest {
id: string;
cron: Cron;
cron: string;
name: string;
plugin: string;
values: Values;