jitera_proto 0.0.24 → 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: cfddd7dfeb63bbf98001f1f018c88142901ff456a947e1a82b94628e857a7741
4
- data.tar.gz: 3cdd0ae6a826efadd4a74bf7e951f73ecfe09a96021a7a680135c02ec34fff34
3
+ metadata.gz: 182b9dd579553ac50e5bfe03aa4d5a1cec48b87e8e87f09a576e2d8deb31555d
4
+ data.tar.gz: a4501eb29587c16d4507b8d9fbf73f5279524b6145587ef88d3cc602b373fa30
5
5
  SHA512:
6
- metadata.gz: af6e3a18dc0a1aa3f00d9ffbdf08f6334ed9578e525089d0563e1ff1e1fd09a8c817bbf8b3296f82e26e611ad593511684a79f054b254b401225ef3aa62faa6d
7
- data.tar.gz: f4c1090a2a9c57ffa52d25cfa3c543762b75ff823d8a6fa0a8923d5a4bf484448181c05f51b37609974ac378469a8b5bd49b4c616f7c124bf62a2a2f1d818da6
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;
@@ -320,6 +320,7 @@ message NodeReference {
320
320
  MOBILE_MOLECULE_PROP = 14;
321
321
  TABLE_DEFINITION = 15;
322
322
  PROJECT_VARIABLE = 16;
323
+ LOCALIZATION = 17;
323
324
  }
324
325
  }
325
326
 
@@ -359,7 +360,7 @@ message NodeVariable {
359
360
  STRING = 0;
360
361
  VARIABLE = 1;
361
362
  }
362
-
363
+
363
364
  enum VariableSource {
364
365
  PARAMS = 0;
365
366
  FORM_VALUES = 1;
@@ -372,8 +373,9 @@ message NodeVariable {
372
373
  LOCAL_CONTEXT_RESPONSE = 8;
373
374
  FORM_VALIDATION_ERROR_MESSAGE = 9;
374
375
  CSS_VARIABLE = 10;
376
+ LOCALIZATION = 11;
375
377
  }
376
-
378
+
377
379
  enum VariableType {
378
380
  STATIC = 0;
379
381
  DYNAMIC = 1;
@@ -395,7 +397,7 @@ message NodeAction {
395
397
  API = 0;
396
398
  GENERAL = 1;
397
399
  }
398
-
400
+
399
401
  enum ActionSource {
400
402
  AUTHENTICATION = 0;
401
403
  BACKEND_CALL = 1;
@@ -429,8 +431,8 @@ message NodeCustom {
429
431
  repeated NodeMediaQuery media_queries = 5;
430
432
  optional NodeReference authentication = 6;
431
433
  optional RenderCondition render_condition = 7;
432
- repeated NodeVariable seo_title = 8;
433
- repeated NodeVariable seo_description = 9;
434
+ optional NodeVariable seo_title = 8;
435
+ optional NodeVariable seo_description = 9;
434
436
  repeated NodeAction actions = 10;
435
437
  repeated NodeParam params = 11;
436
438
  repeated NodeParam props = 12;
@@ -466,8 +468,8 @@ message RenderCondition {
466
468
  GLOBAL = 1;
467
469
  }
468
470
 
469
- enum Operator {
470
- LESS_THAN = 0;
471
+ enum Operator {
472
+ LESS_THAN = 0;
471
473
  LESS_EQUAL_THAN = 1;
472
474
  EQUAL = 2;
473
475
  NOT_EQUAL = 3;
@@ -497,7 +499,7 @@ message FormValidation {
497
499
  PHONE_NUMBER = 4;
498
500
  }
499
501
 
500
- enum RuleType {
502
+ enum RuleType {
501
503
  REQUIRED = 0;
502
504
  MAXIMUM = 1;
503
505
  MINIMUM = 2;
@@ -294,6 +294,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
294
294
  value :MOBILE_MOLECULE_PROP, 14
295
295
  value :TABLE_DEFINITION, 15
296
296
  value :PROJECT_VARIABLE, 16
297
+ value :LOCALIZATION, 17
297
298
  end
298
299
  add_message "schema.v1.FunctionArgument" do
299
300
  optional :name, :string, 1
@@ -341,6 +342,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
341
342
  value :LOCAL_CONTEXT_RESPONSE, 8
342
343
  value :FORM_VALIDATION_ERROR_MESSAGE, 9
343
344
  value :CSS_VARIABLE, 10
345
+ value :LOCALIZATION, 11
344
346
  end
345
347
  add_enum "schema.v1.NodeVariable.VariableType" do
346
348
  value :STATIC, 0
@@ -390,8 +392,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
390
392
  repeated :media_queries, :message, 5, "schema.v1.NodeMediaQuery"
391
393
  proto3_optional :authentication, :message, 6, "schema.v1.NodeReference"
392
394
  proto3_optional :render_condition, :message, 7, "schema.v1.RenderCondition"
393
- repeated :seo_title, :message, 8, "schema.v1.NodeVariable"
394
- 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"
395
397
  repeated :actions, :message, 10, "schema.v1.NodeAction"
396
398
  repeated :params, :message, 11, "schema.v1.NodeParam"
397
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.24'
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.24
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-03-30 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