Skip to content

Commit

Permalink
updated protos to just have a single transformer type
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Nov 30, 2023
1 parent 0677b9e commit b865aa5
Show file tree
Hide file tree
Showing 34 changed files with 1,748 additions and 1,840 deletions.
919 changes: 457 additions & 462 deletions backend/gen/go/protos/mgmt/v1alpha1/transformer.pb.go

Large diffs are not rendered by default.

173 changes: 21 additions & 152 deletions backend/gen/go/protos/mgmt/v1alpha1/transformer.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 18 additions & 16 deletions backend/protos/mgmt/v1alpha1/transformer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ message GetCustomTransformersRequest {
}

message GetCustomTransformersResponse {
repeated CustomTransformer transformers = 1;
repeated Transformer transformers = 1;
}

message GetCustomTransformerByIdRequest {
string transformer_id = 1 [(buf.validate.field).string.uuid = true];
}

message GetCustomTransformerByIdResponse {
CustomTransformer transformer = 1;
Transformer transformer = 1;
}

message CreateCustomTransformerRequest {
Expand All @@ -37,7 +37,7 @@ message CreateCustomTransformerRequest {
}

message CreateCustomTransformerResponse {
CustomTransformer transformer = 1;
Transformer transformer = 1;
}

message DeleteCustomTransformerRequest {
Expand All @@ -54,7 +54,7 @@ message UpdateCustomTransformerRequest {
}

message UpdateCustomTransformerResponse {
CustomTransformer transformer = 1;
Transformer transformer = 1;
}

message IsTransformerNameAvailableRequest {
Expand All @@ -66,21 +66,23 @@ message IsTransformerNameAvailableResponse {
bool is_available = 1;
}

message CustomTransformer {
string id = 1 [(buf.validate.field).string.uuid = true];
string name = 2;
string description = 3;
string type = 4;
string source = 5;
TransformerConfig config = 6;
google.protobuf.Timestamp created_at = 7;
google.protobuf.Timestamp updated_at = 8;
string account_id = 9;
enum TransformerType {
TRANSFORMER_TYPE_UNSPECIFIED = 0;
TRANSFORMER_TYPE_CUSTOM = 1;
TRANSFORMER_TYPE_SYSTEM = 2;
}

message Transformer {
string value = 1;
TransformerConfig config = 2;
string id = 1 [(buf.validate.field).string.uuid = true];
string name = 2;
string description = 3;
TransformerType type = 4;
string data_type = 5;
string source = 6;
TransformerConfig config = 7;
google.protobuf.Timestamp created_at = 8;
google.protobuf.Timestamp updated_at = 9;
string account_id = 10;
}

message TransformerConfig {
Expand Down
Loading

0 comments on commit b865aa5

Please sign in to comment.