jitera_proto 0.0.25 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 927588e11a88df7dd8b88569f96a3820064de695de226736492a5f6f24dcd132
4
- data.tar.gz: 44d97278af404351b7436daa05a95d28027b8045ae77ff63acd11acaade25b06
3
+ metadata.gz: 182b9dd579553ac50e5bfe03aa4d5a1cec48b87e8e87f09a576e2d8deb31555d
4
+ data.tar.gz: a4501eb29587c16d4507b8d9fbf73f5279524b6145587ef88d3cc602b373fa30
5
5
  SHA512:
6
- metadata.gz: 6d264a541643efaef5d70dd1d3f14160b20c83439fa698dba278396819bb4f64a1e9e7512b3f5e5b43bb2a0c0eb88eb2edade38da057773ab196792624aa3c8f
7
- data.tar.gz: 07aba76151d7ffe85ce0c8897d991c740c1c276f1e18e378b877fb9290102635b2917c5507dacd59154c3625f65c0cd32a2cbe85ed5e79f940cf36ddea0a1b20
6
+ metadata.gz: ae733a9b390b165c90f2b80f7b1b136da33c360271b739c081c68ff0577289ddbb41c4d53fbd95fe5766f3bd6c9f7cfa74f5ccea812469dfc76642cc2bfde63e
7
+ data.tar.gz: dd38cb11b03938d960b3a9ba483e99c1d21868bd313cd47f1c5c1a13730b319b090253bd8d26693563f1ffea5bf5a2129e61a884365d0fd5a7d88f44c2464b92
data/lib/jitera_proto.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_relative 'payloads/v1/backend_pb'
3
4
  require_relative 'payloads/v1/web_app_pb'
5
+ require_relative 'payloads/v1/project_pb'
4
6
  require_relative 'payloads/v1/service_pb'
5
7
  require_relative 'payloads/v1/service_services_pb'
6
8
  require_relative 'payloads/report_pb'
@@ -1,33 +1,6 @@
1
1
  syntax = "proto3";
2
2
  package schema.v1;
3
3
 
4
- message Project {
5
- string id = 1;
6
- string project_name = 2;
7
- int32 project_id = 3;
8
- optional Infra infra = 4;
9
- string time_zone = 5;
10
- string default_language_code = 6;
11
- repeated string language_codes = 7;
12
-
13
- oneof generate_type {
14
- ProjectExport project_export = 9;
15
- ProjectPreview project_preview = 10;
16
- }
17
- }
18
-
19
- message ProjectExport {
20
- int32 id = 1;
21
- }
22
-
23
- message ProjectPreview {
24
- int32 id = 1;
25
- }
26
-
27
- message Infra {
28
- string path = 1;
29
- }
30
-
31
4
  message Backend {
32
5
  repeated Table tables = 4;
33
6
  repeated Controller controllers = 5;
@@ -289,6 +262,7 @@ message Controller {
289
262
  bool writable = 14;
290
263
  optional string feature_action = 15;
291
264
  optional string feature_table = 16;
265
+ repeated AuthorizationGroup authorization_groups = 17;
292
266
 
293
267
  message List {
294
268
  RequestContent queries = 1;
@@ -397,6 +371,33 @@ message Controller {
397
371
  int32 authorization_id = 1;
398
372
  string table_name = 2;
399
373
  }
374
+
375
+ message AuthorizationGroup {
376
+ string table_name = 1;
377
+ repeated AuthorizationCondition authorization_conditions = 2;
378
+ }
379
+
380
+ message AuthorizationCondition {
381
+ string column_definition_name = 1;
382
+ string column_definition_display_name = 2;
383
+ JoiningCondition joining_condition = 3;
384
+ Query query = 4;
385
+ string default_value = 5;
386
+
387
+ enum Query {
388
+ EQUAL = 0;
389
+ IS_NOT_EQUAL = 1;
390
+ GREATER_THAN = 2;
391
+ LESS_THAN = 3;
392
+ GREATER_THAN_OR_EQUAL_TO = 4;
393
+ LESS_THAN_OR_EQUAL_TO = 5;
394
+ }
395
+
396
+ enum JoiningCondition {
397
+ AND_JOIN = 0;
398
+ OR_JOIN = 1;
399
+ }
400
+ }
400
401
  }
401
402
 
402
403
  message Table {
@@ -5,28 +5,6 @@ require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_file("v1/backend.proto", :syntax => :proto3) do
8
- add_message "schema.v1.Project" do
9
- optional :id, :string, 1
10
- optional :project_name, :string, 2
11
- optional :project_id, :int32, 3
12
- proto3_optional :infra, :message, 4, "schema.v1.Infra"
13
- optional :time_zone, :string, 5
14
- optional :default_language_code, :string, 6
15
- repeated :language_codes, :string, 7
16
- oneof :generate_type do
17
- optional :project_export, :message, 9, "schema.v1.ProjectExport"
18
- optional :project_preview, :message, 10, "schema.v1.ProjectPreview"
19
- end
20
- end
21
- add_message "schema.v1.ProjectExport" do
22
- optional :id, :int32, 1
23
- end
24
- add_message "schema.v1.ProjectPreview" do
25
- optional :id, :int32, 1
26
- end
27
- add_message "schema.v1.Infra" do
28
- optional :path, :string, 1
29
- end
30
8
  add_message "schema.v1.Backend" do
31
9
  repeated :tables, :message, 4, "schema.v1.Table"
32
10
  repeated :controllers, :message, 5, "schema.v1.Controller"
@@ -206,6 +184,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
206
184
  optional :writable, :bool, 14
207
185
  proto3_optional :feature_action, :string, 15
208
186
  proto3_optional :feature_table, :string, 16
187
+ repeated :authorization_groups, :message, 17, "schema.v1.Controller.AuthorizationGroup"
209
188
  oneof :resource do
210
189
  optional :table, :string, 3
211
190
  optional :feature, :enum, 4, "schema.v1.Feature.FeatureName"
@@ -308,6 +287,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
308
287
  optional :authorization_id, :int32, 1
309
288
  optional :table_name, :string, 2
310
289
  end
290
+ add_message "schema.v1.Controller.AuthorizationGroup" do
291
+ optional :table_name, :string, 1
292
+ repeated :authorization_conditions, :message, 2, "schema.v1.Controller.AuthorizationCondition"
293
+ end
294
+ add_message "schema.v1.Controller.AuthorizationCondition" do
295
+ optional :column_definition_name, :string, 1
296
+ optional :column_definition_display_name, :string, 2
297
+ optional :joining_condition, :enum, 3, "schema.v1.Controller.AuthorizationCondition.JoiningCondition"
298
+ optional :query, :enum, 4, "schema.v1.Controller.AuthorizationCondition.Query"
299
+ optional :default_value, :string, 5
300
+ end
301
+ add_enum "schema.v1.Controller.AuthorizationCondition.Query" do
302
+ value :EQUAL, 0
303
+ value :IS_NOT_EQUAL, 1
304
+ value :GREATER_THAN, 2
305
+ value :LESS_THAN, 3
306
+ value :GREATER_THAN_OR_EQUAL_TO, 4
307
+ value :LESS_THAN_OR_EQUAL_TO, 5
308
+ end
309
+ add_enum "schema.v1.Controller.AuthorizationCondition.JoiningCondition" do
310
+ value :AND_JOIN, 0
311
+ value :OR_JOIN, 1
312
+ end
311
313
  add_message "schema.v1.Table" do
312
314
  optional :name, :string, 1
313
315
  repeated :columns, :message, 2, "schema.v1.Table.Column"
@@ -774,10 +776,6 @@ end
774
776
 
775
777
  module Schema
776
778
  module V1
777
- Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Project").msgclass
778
- ProjectExport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.ProjectExport").msgclass
779
- ProjectPreview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.ProjectPreview").msgclass
780
- Infra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Infra").msgclass
781
779
  Backend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Backend").msgclass
782
780
  Localization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Localization").msgclass
783
781
  Localization::Namespace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Localization.Namespace").msgclass
@@ -824,6 +822,10 @@ module Schema
824
822
  Controller::ResourceUpdate::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.ResourceUpdate.Field").msgclass
825
823
  Controller::Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.Authentication").msgclass
826
824
  Controller::Authorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.Authorization").msgclass
825
+ Controller::AuthorizationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationGroup").msgclass
826
+ Controller::AuthorizationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition").msgclass
827
+ Controller::AuthorizationCondition::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition.Query").enummodule
828
+ Controller::AuthorizationCondition::JoiningCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition.JoiningCondition").enummodule
827
829
  Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table").msgclass
828
830
  Table::Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column").msgclass
829
831
  Table::Column::ColumnType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column.ColumnType").msgclass
@@ -0,0 +1,39 @@
1
+ syntax = "proto3";
2
+ package schema.v1;
3
+
4
+ import "v1/backend.proto";
5
+ import "v1/web_app.proto";
6
+
7
+ message Project {
8
+ string id = 1;
9
+ string project_name = 2;
10
+ int32 project_id = 3;
11
+ optional Infra infra = 4;
12
+ string time_zone = 5;
13
+ string default_language_code = 6;
14
+ repeated string language_codes = 7;
15
+
16
+ oneof generate_type {
17
+ ProjectExport project_export = 9;
18
+ ProjectPreview project_preview = 10;
19
+ CodePreview code_preview = 11;
20
+ }
21
+ }
22
+
23
+ message CodePreview {
24
+ int32 id = 1;
25
+ optional Backend backend = 2;
26
+ optional WebApp web_app = 3;
27
+ }
28
+
29
+ message ProjectExport {
30
+ int32 id = 1;
31
+ }
32
+
33
+ message ProjectPreview {
34
+ int32 id = 1;
35
+ }
36
+
37
+ message Infra {
38
+ string path = 1;
39
+ }
@@ -0,0 +1,47 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: v1/project.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("v1/project.proto", :syntax => :proto3) do
8
+ add_message "schema.v1.Project" do
9
+ optional :id, :string, 1
10
+ optional :project_name, :string, 2
11
+ optional :project_id, :int32, 3
12
+ proto3_optional :infra, :message, 4, "schema.v1.Infra"
13
+ optional :time_zone, :string, 5
14
+ optional :default_language_code, :string, 6
15
+ repeated :language_codes, :string, 7
16
+ oneof :generate_type do
17
+ optional :project_export, :message, 9, "schema.v1.ProjectExport"
18
+ optional :project_preview, :message, 10, "schema.v1.ProjectPreview"
19
+ optional :code_preview, :message, 11, "schema.v1.CodePreview"
20
+ end
21
+ end
22
+ add_message "schema.v1.CodePreview" do
23
+ optional :id, :int32, 1
24
+ proto3_optional :backend, :message, 2, "schema.v1.Backend"
25
+ proto3_optional :web_app, :message, 3, "schema.v1.WebApp"
26
+ end
27
+ add_message "schema.v1.ProjectExport" do
28
+ optional :id, :int32, 1
29
+ end
30
+ add_message "schema.v1.ProjectPreview" do
31
+ optional :id, :int32, 1
32
+ end
33
+ add_message "schema.v1.Infra" do
34
+ optional :path, :string, 1
35
+ end
36
+ end
37
+ end
38
+
39
+ module Schema
40
+ module V1
41
+ Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Project").msgclass
42
+ CodePreview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.CodePreview").msgclass
43
+ ProjectExport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.ProjectExport").msgclass
44
+ ProjectPreview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.ProjectPreview").msgclass
45
+ Infra = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Infra").msgclass
46
+ end
47
+ end
@@ -298,7 +298,7 @@ message RenderMolecule {
298
298
  message NodeReference {
299
299
  string name = 1;
300
300
  string ref_id = 2;
301
- google.protobuf.Struct ref_data = 3;
301
+ google.protobuf.Struct ref_data = 3;
302
302
  string value = 4;
303
303
  ReferenceRefType ref_type = 5;
304
304
 
@@ -306,7 +306,7 @@ message NodeReference {
306
306
  NONE = 0;
307
307
  API_REQUEST = 1;
308
308
  API_REQUEST_PARAM = 2;
309
- API_BUSINESS_PROCESS = 3;
309
+ API_BUSINESS_PROCESS = 3;
310
310
  API_RESPONSE_DATA = 4;
311
311
  COLUMN_DEFINITION = 5;
312
312
  MOBILE_APP_ASSET = 6;
@@ -360,7 +360,7 @@ message NodeVariable {
360
360
  STRING = 0;
361
361
  VARIABLE = 1;
362
362
  }
363
-
363
+
364
364
  enum VariableSource {
365
365
  PARAMS = 0;
366
366
  FORM_VALUES = 1;
@@ -375,7 +375,7 @@ message NodeVariable {
375
375
  CSS_VARIABLE = 10;
376
376
  LOCALIZATION = 11;
377
377
  }
378
-
378
+
379
379
  enum VariableType {
380
380
  STATIC = 0;
381
381
  DYNAMIC = 1;
@@ -397,7 +397,7 @@ message NodeAction {
397
397
  API = 0;
398
398
  GENERAL = 1;
399
399
  }
400
-
400
+
401
401
  enum ActionSource {
402
402
  AUTHENTICATION = 0;
403
403
  BACKEND_CALL = 1;
@@ -431,8 +431,8 @@ message NodeCustom {
431
431
  repeated NodeMediaQuery media_queries = 5;
432
432
  optional NodeReference authentication = 6;
433
433
  optional RenderCondition render_condition = 7;
434
- repeated NodeVariable seo_title = 8;
435
- repeated NodeVariable seo_description = 9;
434
+ optional NodeVariable seo_title = 8;
435
+ optional NodeVariable seo_description = 9;
436
436
  repeated NodeAction actions = 10;
437
437
  repeated NodeParam params = 11;
438
438
  repeated NodeParam props = 12;
@@ -468,8 +468,8 @@ message RenderCondition {
468
468
  GLOBAL = 1;
469
469
  }
470
470
 
471
- enum Operator {
472
- LESS_THAN = 0;
471
+ enum Operator {
472
+ LESS_THAN = 0;
473
473
  LESS_EQUAL_THAN = 1;
474
474
  EQUAL = 2;
475
475
  NOT_EQUAL = 3;
@@ -499,7 +499,7 @@ message FormValidation {
499
499
  PHONE_NUMBER = 4;
500
500
  }
501
501
 
502
- enum RuleType {
502
+ enum RuleType {
503
503
  REQUIRED = 0;
504
504
  MAXIMUM = 1;
505
505
  MINIMUM = 2;
@@ -392,8 +392,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
392
392
  repeated :media_queries, :message, 5, "schema.v1.NodeMediaQuery"
393
393
  proto3_optional :authentication, :message, 6, "schema.v1.NodeReference"
394
394
  proto3_optional :render_condition, :message, 7, "schema.v1.RenderCondition"
395
- repeated :seo_title, :message, 8, "schema.v1.NodeVariable"
396
- repeated :seo_description, :message, 9, "schema.v1.NodeVariable"
395
+ proto3_optional :seo_title, :message, 8, "schema.v1.NodeVariable"
396
+ proto3_optional :seo_description, :message, 9, "schema.v1.NodeVariable"
397
397
  repeated :actions, :message, 10, "schema.v1.NodeAction"
398
398
  repeated :params, :message, 11, "schema.v1.NodeParam"
399
399
  repeated :props, :message, 12, "schema.v1.NodeParam"
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JiteraProto
4
- VERSION = '0.0.25'
4
+ VERSION = '0.0.28'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jitera_proto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -54,6 +54,8 @@ files:
54
54
  - lib/payloads/report_pb.rb
55
55
  - lib/payloads/v1/backend.proto
56
56
  - lib/payloads/v1/backend_pb.rb
57
+ - lib/payloads/v1/project.proto
58
+ - lib/payloads/v1/project_pb.rb
57
59
  - lib/payloads/v1/service.proto
58
60
  - lib/payloads/v1/service_pb.rb
59
61
  - lib/payloads/v1/service_services_pb.rb