mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-20 07:59:09 +00:00
Adding pre-commit
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export class CreateRestEnrichmentDto {
|
||||
|
||||
|
||||
type:string;
|
||||
|
||||
columns
|
||||
|
||||
@@ -59,7 +59,7 @@ export class RestEnrichmentsController {
|
||||
|
||||
@Put(':id')
|
||||
async update(@Param('id') id: string,@Headers() headers, @Body() body: UpdateRestEnrichmentDto) {
|
||||
|
||||
|
||||
const connectionResponse = await axios.put(
|
||||
`${process.env.DEV_URL}/enrichment/${id}`,
|
||||
body,
|
||||
|
||||
@@ -2,16 +2,16 @@ import { ApiProperty } from "@nestjs/swagger";
|
||||
|
||||
|
||||
export class HTTPInputValues{
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Choosen url",
|
||||
example:"http://testroute/dadosfera/inputs/values"
|
||||
})
|
||||
urls:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Schedule name",
|
||||
example:"Test_Schedule"
|
||||
})
|
||||
schedule:string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,52 +2,52 @@ import { ApiProperty } from "@nestjs/swagger";
|
||||
|
||||
|
||||
export class JDBCInputvalues{
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"JDBC user",
|
||||
example:"airflow"
|
||||
})
|
||||
jdbc_user: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"JDBC password",
|
||||
example:"password123"
|
||||
})
|
||||
jdbc_password: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Database",
|
||||
example:"airflow"
|
||||
})
|
||||
database: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Connection endpoint",
|
||||
example:"dadosfera-postgres-db.test123.us-east"
|
||||
})
|
||||
endpoint: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Schema name",
|
||||
example:"cadastros"
|
||||
})
|
||||
schema?:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Tables names",
|
||||
example:["pessoas", "clients"]
|
||||
})
|
||||
table: string[];
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Port",
|
||||
example:"5432"
|
||||
})
|
||||
port: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Engine name",
|
||||
example:"postgres"
|
||||
})
|
||||
engine: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,19 +29,19 @@ export class CreateRestInputDto {
|
||||
}
|
||||
})
|
||||
cron:CronDTO;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Name of the input",
|
||||
example:"Test_Input"
|
||||
})
|
||||
name:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Plugin",
|
||||
example:"s3"
|
||||
})
|
||||
plugin:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Values for choosen input",
|
||||
example:{
|
||||
@@ -55,7 +55,7 @@ export class CreateRestInputDto {
|
||||
}
|
||||
})
|
||||
values: SalesforceInputValuesDTO|HTTPInputValues|S3InputValues|JDBCInputvalues;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Operation name",
|
||||
example:"input"
|
||||
|
||||
@@ -14,89 +14,89 @@ export class CronDTO{
|
||||
example:true
|
||||
})
|
||||
hour_interval: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean for hour resourse",
|
||||
example:true
|
||||
})
|
||||
hour_resourse: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Value for hour resourse",
|
||||
example:3
|
||||
})
|
||||
hour_resourse_value: number;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Month day to the cron",
|
||||
example:["3"]
|
||||
})
|
||||
month_day: string[];
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean for month day interval",
|
||||
example:true
|
||||
})
|
||||
month_day_interval: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean for month day resourse",
|
||||
example:false
|
||||
})
|
||||
month_day_resourse: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Value for month day resourse",
|
||||
example:null
|
||||
})
|
||||
month_day_resourse_value:number|null;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Month to the cron",
|
||||
example:["3"]
|
||||
})
|
||||
month: string[];
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean from month interval",
|
||||
example:false
|
||||
})
|
||||
month_interval: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean from month resourse",
|
||||
example:false
|
||||
})
|
||||
month_resourse: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Value to month resourse",
|
||||
example:null
|
||||
})
|
||||
month_resourse_value:number|null;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Week days to the cron",
|
||||
example:[]
|
||||
})
|
||||
week_days: string[];
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean for the week days",
|
||||
example:false
|
||||
})
|
||||
week_days_interval: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Boolean for week day resourse",
|
||||
example:false
|
||||
})
|
||||
week_days_resourse: boolean;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Hours to the cron",
|
||||
example:null
|
||||
})
|
||||
week_days_resourse_value:number|null
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,37 +14,37 @@ export class S3InputValues{
|
||||
example:"dadosfera-test"
|
||||
})
|
||||
target_bucket?: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"client bucket path",
|
||||
example:"dadosfera-test"
|
||||
})
|
||||
client_bucket: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Format to the file",
|
||||
example:"csv"
|
||||
})
|
||||
format_file: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Clients AWS Access Key Id",
|
||||
example:"AKIBN5B19D3NGZI"
|
||||
})
|
||||
client_aws_access_key_id: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Clients AWS Secret Access Key Id",
|
||||
example:"ct5R1EjrVC78bvaJ636gG90O5NqOrOUoq4Ri"
|
||||
})
|
||||
client_aws_secret_access_key : string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"file params format",
|
||||
example:{sep: "," , header: "true"}
|
||||
})
|
||||
format_file_params?: {
|
||||
sep: string,
|
||||
sep: string,
|
||||
header: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,20 +8,20 @@ export class SalesforceInputValuesDTO{
|
||||
example:"dadosfera@devs.com"
|
||||
})
|
||||
username_salesforce: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Salesforce password",
|
||||
example:"Salesforce@test123"
|
||||
})password_salesforce: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Salesforce Security Token",
|
||||
example:"A67Tdg7qHUvhZDOFjWwtPMjmQ"
|
||||
})security_token_salesforce: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Salesforce Query",
|
||||
example:"SELECT * FROM Users"
|
||||
})query_salesforce: string;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export class testConnectionDTO{
|
||||
description:"Plugin name",
|
||||
example:{
|
||||
plugin: "mysql",
|
||||
values: {
|
||||
values: {
|
||||
jdbc_user: "test",
|
||||
jdbc_password: "test1234",
|
||||
database: "users",
|
||||
@@ -29,6 +29,6 @@ export class testConnectionDTO{
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
values:HTTPInputValues|SalesforceInputValuesDTO|S3InputValues|JDBCInputvalues
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
export class RestInput {
|
||||
|
||||
id:string;
|
||||
|
||||
|
||||
cron:string;
|
||||
|
||||
|
||||
name:string;
|
||||
|
||||
|
||||
plugin:string;
|
||||
|
||||
|
||||
values:string;
|
||||
|
||||
|
||||
operation:string;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ export class RestInputsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@ export class CreateRestOutputDto {
|
||||
example:"Test Output"
|
||||
})
|
||||
name:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Plugin name",
|
||||
example:"Test Plugin"
|
||||
})
|
||||
plugin:string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Plugin values",
|
||||
example:{
|
||||
@@ -23,7 +23,7 @@ export class CreateRestOutputDto {
|
||||
values:{
|
||||
prefix:string
|
||||
};
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Operation name",
|
||||
example:"output"
|
||||
|
||||
@@ -76,7 +76,7 @@ export class RestOutputsController {
|
||||
|
||||
@Delete(':id')
|
||||
async remove(@Param('id') id: string,@Headers() headers) {
|
||||
|
||||
|
||||
const connectionResponse = await axios.delete(
|
||||
`${process.env.DEV_URL}/output/${id}`,
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ export class RestTransformationsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export class RestTransformationsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export class RestTransformationsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export class RestTransformationsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ export class RestTransformationsController {
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
return connectionResponse.data
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
|
||||
export class CreateRestUserDto {
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"User Email",
|
||||
example:"dev@dadosfera.ai"
|
||||
})
|
||||
email: string;
|
||||
email: string;
|
||||
|
||||
@ApiProperty({
|
||||
description:"User Password",
|
||||
example:"dadospassword123"
|
||||
})
|
||||
password: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"User Username",
|
||||
example:"dev_fera"
|
||||
})
|
||||
username: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"User name",
|
||||
example:"Fulano da Silva"
|
||||
})
|
||||
name: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Customer id",
|
||||
example:"dadosfera"
|
||||
})
|
||||
customer_id: string;
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"User rules",
|
||||
example:"['admin']"
|
||||
|
||||
@@ -7,4 +7,4 @@ export class ResendCodeDTO{
|
||||
example:"dev_fera"
|
||||
})
|
||||
username:string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ export class UserAuthDTO{
|
||||
example:"dadospassword123"
|
||||
})
|
||||
password:string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ export class UserConfirmationDTO{
|
||||
})
|
||||
username:string;
|
||||
|
||||
|
||||
|
||||
@ApiProperty({
|
||||
description:"Received Confirmation Code",
|
||||
example:"315246"
|
||||
})
|
||||
confirmationCode:string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export class RestUserController {
|
||||
@Post('/auth')
|
||||
async auth(@Body() body: UserAuthDTO) {
|
||||
|
||||
|
||||
|
||||
const connectionResponse = await axios.post(
|
||||
`${process.env.DEV_URL}/user/auth`,
|
||||
body,
|
||||
@@ -50,7 +50,7 @@ export class RestUserController {
|
||||
@Post('/confirm')
|
||||
async confirm(@Body() body: UserConfirmationDTO) {
|
||||
|
||||
|
||||
|
||||
const connectionResponse = await axios.post(
|
||||
`${process.env.DEV_URL}/user/confirm`,
|
||||
body,
|
||||
@@ -81,5 +81,5 @@ export class RestUserController {
|
||||
return connectionResponse.data
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user