jitera_proto 0.0.25 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 927588e11a88df7dd8b88569f96a3820064de695de226736492a5f6f24dcd132
4
- data.tar.gz: 44d97278af404351b7436daa05a95d28027b8045ae77ff63acd11acaade25b06
3
+ metadata.gz: 92d7893fc7581129afa2cbc18f9af0a66c7f3fbb5b43585d197270404b37de61
4
+ data.tar.gz: a6cbf029f62d4b74d9a36fec86db20811cc9e2d5250a0202063499a265b1be40
5
5
  SHA512:
6
- metadata.gz: 6d264a541643efaef5d70dd1d3f14160b20c83439fa698dba278396819bb4f64a1e9e7512b3f5e5b43bb2a0c0eb88eb2edade38da057773ab196792624aa3c8f
7
- data.tar.gz: 07aba76151d7ffe85ce0c8897d991c740c1c276f1e18e378b877fb9290102635b2917c5507dacd59154c3625f65c0cd32a2cbe85ed5e79f940cf36ddea0a1b20
6
+ metadata.gz: 260c6a67b4a4295b17768f195c10138920d8c4faf9c1ff493bd005e68ae85372274dfd5247386b02070d37efa497ba1044a1e8b499edc1cf99a5e5a25a5b2133
7
+ data.tar.gz: ca1e038081f86ff89336cf862bf60edbd54bef9ee791c44f86f6d9edb6048f38194d85a26e966cfd69eb9d52930d0a4ab03dced8b2580c67fcf8238992a32ff5
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in proto.gemspec
6
6
  gemspec
7
7
 
8
- gem 'grpc', "~> 1.50.0"
9
- gem 'grpc-tools', "~> 1.50.0"
10
- gem 'google-protobuf', "~> 3.21.12"
11
- gem "rake", "~> 13.0"
8
+ gem 'google-protobuf', '~> 3.23'
9
+ gem 'grpc', '~> 1.54.2'
10
+ gem 'grpc-tools', '~> 1.54.2'
11
+ gem 'rake', '~> 13.0'
data/Gemfile.lock CHANGED
@@ -1,30 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jitera_proto (0.0.10)
5
- google-protobuf (~> 3.21.12)
6
- grpc (~> 1.50.0)
4
+ jitera_proto (0.0.29)
5
+ google-protobuf (~> 3.23)
6
+ grpc (~> 1.54.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- google-protobuf (3.21.12)
12
- googleapis-common-protos-types (1.5.0)
11
+ google-protobuf (3.23.0-arm64-darwin)
12
+ googleapis-common-protos-types (1.6.0)
13
13
  google-protobuf (~> 3.14)
14
- grpc (1.50.0)
14
+ grpc (1.54.2)
15
15
  google-protobuf (~> 3.21)
16
16
  googleapis-common-protos-types (~> 1.0)
17
- grpc-tools (1.50.0)
17
+ grpc-tools (1.54.2)
18
18
  rake (13.0.6)
19
19
 
20
20
  PLATFORMS
21
- arm64-darwin-20
22
21
  arm64-darwin-21
23
22
 
24
23
  DEPENDENCIES
25
- google-protobuf (~> 3.21.12)
26
- grpc (~> 1.50.0)
27
- grpc-tools (~> 1.50.0)
24
+ google-protobuf (~> 3.23)
25
+ grpc (~> 1.54.2)
26
+ grpc-tools (~> 1.54.2)
28
27
  jitera_proto!
29
28
  rake (~> 13.0)
30
29
 
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,7 +262,8 @@ message Controller {
289
262
  bool writable = 14;
290
263
  optional string feature_action = 15;
291
264
  optional string feature_table = 16;
292
-
265
+ repeated AuthorizationGroup authorization_groups = 17;
266
+ bool restrict_access = 18;
293
267
  message List {
294
268
  RequestContent queries = 1;
295
269
  ResourceCondition conditions = 2;
@@ -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
+ string authentication_class = 6;
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,8 @@ 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"
188
+ optional :restrict_access, :bool, 18
209
189
  oneof :resource do
210
190
  optional :table, :string, 3
211
191
  optional :feature, :enum, 4, "schema.v1.Feature.FeatureName"
@@ -308,6 +288,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
308
288
  optional :authorization_id, :int32, 1
309
289
  optional :table_name, :string, 2
310
290
  end
291
+ add_message "schema.v1.Controller.AuthorizationGroup" do
292
+ optional :table_name, :string, 1
293
+ repeated :authorization_conditions, :message, 2, "schema.v1.Controller.AuthorizationCondition"
294
+ end
295
+ add_message "schema.v1.Controller.AuthorizationCondition" do
296
+ optional :column_definition_name, :string, 1
297
+ optional :column_definition_display_name, :string, 2
298
+ optional :joining_condition, :enum, 3, "schema.v1.Controller.AuthorizationCondition.JoiningCondition"
299
+ optional :query, :enum, 4, "schema.v1.Controller.AuthorizationCondition.Query"
300
+ optional :default_value, :string, 5
301
+ optional :authentication_class, :string, 6
302
+ end
303
+ add_enum "schema.v1.Controller.AuthorizationCondition.Query" do
304
+ value :EQUAL, 0
305
+ value :IS_NOT_EQUAL, 1
306
+ value :GREATER_THAN, 2
307
+ value :LESS_THAN, 3
308
+ value :GREATER_THAN_OR_EQUAL_TO, 4
309
+ value :LESS_THAN_OR_EQUAL_TO, 5
310
+ end
311
+ add_enum "schema.v1.Controller.AuthorizationCondition.JoiningCondition" do
312
+ value :AND_JOIN, 0
313
+ value :OR_JOIN, 1
314
+ end
311
315
  add_message "schema.v1.Table" do
312
316
  optional :name, :string, 1
313
317
  repeated :columns, :message, 2, "schema.v1.Table.Column"
@@ -774,10 +778,6 @@ end
774
778
 
775
779
  module Schema
776
780
  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
781
  Backend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Backend").msgclass
782
782
  Localization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Localization").msgclass
783
783
  Localization::Namespace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Localization.Namespace").msgclass
@@ -824,6 +824,10 @@ module Schema
824
824
  Controller::ResourceUpdate::Field = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.ResourceUpdate.Field").msgclass
825
825
  Controller::Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.Authentication").msgclass
826
826
  Controller::Authorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.Authorization").msgclass
827
+ Controller::AuthorizationGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationGroup").msgclass
828
+ Controller::AuthorizationCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition").msgclass
829
+ Controller::AuthorizationCondition::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition.Query").enummodule
830
+ Controller::AuthorizationCondition::JoiningCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Controller.AuthorizationCondition.JoiningCondition").enummodule
827
831
  Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table").msgclass
828
832
  Table::Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column").msgclass
829
833
  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.29'
5
5
  end
metadata CHANGED
@@ -1,43 +1,43 @@
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.29
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-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: grpc
14
+ name: google-protobuf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.50.0
19
+ version: '3.23'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.50.0
26
+ version: '3.23'
27
27
  - !ruby/object:Gem::Dependency
28
- name: google-protobuf
28
+ name: grpc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.21.12
33
+ version: 1.54.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.21.12
40
+ version: 1.54.2
41
41
  description:
42
42
  email:
43
43
  - quy.truong@jitera.com
@@ -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