jitera_proto 0.0.14 → 0.0.15

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: 7f6b083755f318b579007e050bc0cc9d6c7656b70a96d94701b1ab45f14d19ff
4
- data.tar.gz: d5ad0e0009e7bebff3bfd6b87b650194082d4b37cccfd107de003afa8ca97b1c
3
+ metadata.gz: 2c8b15664196f3e87ebc40024288cf168dbc0dc32e69996563c0eb98ad0a3498
4
+ data.tar.gz: 3137faed20ccc9f88cfb3459d9e707c29db8ee15e3dd2081e37a91cd40f1ade6
5
5
  SHA512:
6
- metadata.gz: c48795f455819c6f3813c7a847096d429b476f09646200b2184b38fc8b936e97deccd8dd0e330710808b83cc312504bd01390b6da5325beb89da51c18e57f670
7
- data.tar.gz: 7b9c5cbcd7ae7965f33359384d8f0665644d0491bfa87ea8bb52ab42b21688873a04a2068a525f4e64dc7126209c24e2bd40057b424391ac6471ed397f2edbad
6
+ metadata.gz: 30097b4fdd3c34dec0bf78639fa8580b6de76fa1834d521057027c66076ba614309804d5ffffc0e04d1b153bab47deb19c44915eb5a39b00cb2fbf12787b86d7
7
+ data.tar.gz: 5c745593574014bedc5681b46bd2490b9a15a61ec90bec289efd8eb423952342ee0f6b87dd0050234e8a502bb33540ae8d1e162ebbbc79898ea23e414a91deca
data/Gemfile.lock CHANGED
@@ -18,6 +18,7 @@ GEM
18
18
  rake (13.0.6)
19
19
 
20
20
  PLATFORMS
21
+ arm64-darwin-20
21
22
  arm64-darwin-21
22
23
 
23
24
  DEPENDENCIES
@@ -395,6 +395,8 @@ message Table {
395
395
  string name = 1;
396
396
  ColumnType type = 2;
397
397
  repeated Constraint constraints = 3;
398
+ optional bool hidden = 4;
399
+ optional ColumnValidation column_validation = 5;
398
400
 
399
401
  message ColumnType {
400
402
  oneof types {
@@ -508,6 +510,51 @@ message Table {
508
510
  }
509
511
  }
510
512
 
513
+ message ColumnValidation {
514
+ repeated ColumnValidationOption column_validation_options = 1;
515
+ bool presence = 2;
516
+ bool uniqueness = 3;
517
+ bool allow_nil = 4;
518
+ }
519
+
520
+ message ColumnValidationOption {
521
+ oneof validation_type {
522
+ LengthValidation length_validation = 1;
523
+ CharValidation char_validation = 2;
524
+ DateValidation date_validation = 3;
525
+ DateValidation date_time_validation = 4;
526
+ NumericalityValidation numericality_validation = 5;
527
+ FileValidation file_validation = 6;
528
+ }
529
+ message LengthValidation {
530
+ int32 maximum = 1;
531
+ int32 minimum = 2;
532
+ int32 is = 3;
533
+ }
534
+ message CharValidation {
535
+ bool email = 1;
536
+ bool hiragana = 2;
537
+ bool katakana = 3;
538
+ bool phone_number = 4;
539
+ bool url = 5;
540
+ }
541
+ message DateValidation {
542
+ bool past = 1;
543
+ bool future = 2;
544
+ }
545
+ message NumericalityValidation {
546
+ int32 greater_than = 1;
547
+ int32 greater_than_or_equal_to = 2;
548
+ int32 less_than = 3;
549
+ int32 less_than_or_equal_to = 4;
550
+ }
551
+
552
+ message FileValidation {
553
+ bool single = 1;
554
+ repeated string content_types = 2;
555
+ }
556
+ }
557
+
511
558
  message Constraint {
512
559
  oneof relation_key {
513
560
  PrimaryKey primary_key = 1;
@@ -308,6 +308,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
308
308
  optional :name, :string, 1
309
309
  optional :type, :message, 2, "schema.v1.Table.Column.ColumnType"
310
310
  repeated :constraints, :message, 3, "schema.v1.Table.Constraint"
311
+ proto3_optional :hidden, :bool, 4
312
+ proto3_optional :column_validation, :message, 5, "schema.v1.Table.ColumnValidation"
311
313
  end
312
314
  add_message "schema.v1.Table.Column.ColumnType" do
313
315
  oneof :types do
@@ -403,6 +405,48 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
403
405
  value :LESS_THAN_OR_EQUAL, 4
404
406
  value :NOT_EQUAL, 5
405
407
  end
408
+ add_message "schema.v1.Table.ColumnValidation" do
409
+ repeated :column_validation_options, :message, 1, "schema.v1.Table.ColumnValidationOption"
410
+ optional :presence, :bool, 2
411
+ optional :uniqueness, :bool, 3
412
+ optional :allow_nil, :bool, 4
413
+ end
414
+ add_message "schema.v1.Table.ColumnValidationOption" do
415
+ oneof :validation_type do
416
+ optional :length_validation, :message, 1, "schema.v1.Table.ColumnValidationOption.LengthValidation"
417
+ optional :char_validation, :message, 2, "schema.v1.Table.ColumnValidationOption.CharValidation"
418
+ optional :date_validation, :message, 3, "schema.v1.Table.ColumnValidationOption.DateValidation"
419
+ optional :date_time_validation, :message, 4, "schema.v1.Table.ColumnValidationOption.DateValidation"
420
+ optional :numericality_validation, :message, 5, "schema.v1.Table.ColumnValidationOption.NumericalityValidation"
421
+ optional :file_validation, :message, 6, "schema.v1.Table.ColumnValidationOption.FileValidation"
422
+ end
423
+ end
424
+ add_message "schema.v1.Table.ColumnValidationOption.LengthValidation" do
425
+ optional :maximum, :int32, 1
426
+ optional :minimum, :int32, 2
427
+ optional :is, :int32, 3
428
+ end
429
+ add_message "schema.v1.Table.ColumnValidationOption.CharValidation" do
430
+ optional :email, :bool, 1
431
+ optional :hiragana, :bool, 2
432
+ optional :katakana, :bool, 3
433
+ optional :phone_number, :bool, 4
434
+ optional :url, :bool, 5
435
+ end
436
+ add_message "schema.v1.Table.ColumnValidationOption.DateValidation" do
437
+ optional :past, :bool, 1
438
+ optional :future, :bool, 2
439
+ end
440
+ add_message "schema.v1.Table.ColumnValidationOption.NumericalityValidation" do
441
+ optional :greater_than, :int32, 1
442
+ optional :greater_than_or_equal_to, :int32, 2
443
+ optional :less_than, :int32, 3
444
+ optional :less_than_or_equal_to, :int32, 4
445
+ end
446
+ add_message "schema.v1.Table.ColumnValidationOption.FileValidation" do
447
+ optional :single, :bool, 1
448
+ repeated :content_types, :string, 2
449
+ end
406
450
  add_message "schema.v1.Table.Constraint" do
407
451
  oneof :relation_key do
408
452
  optional :primary_key, :message, 1, "schema.v1.Table.Constraint.PrimaryKey"
@@ -777,6 +821,13 @@ module Schema
777
821
  Table::Column::FileType::ContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column.FileType.ContentType").enummodule
778
822
  Table::Column::EnumType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column.EnumType").msgclass
779
823
  Table::Column::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Column.Operator").enummodule
824
+ Table::ColumnValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidation").msgclass
825
+ Table::ColumnValidationOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption").msgclass
826
+ Table::ColumnValidationOption::LengthValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption.LengthValidation").msgclass
827
+ Table::ColumnValidationOption::CharValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption.CharValidation").msgclass
828
+ Table::ColumnValidationOption::DateValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption.DateValidation").msgclass
829
+ Table::ColumnValidationOption::NumericalityValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption.NumericalityValidation").msgclass
830
+ Table::ColumnValidationOption::FileValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.ColumnValidationOption.FileValidation").msgclass
780
831
  Table::Constraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Constraint").msgclass
781
832
  Table::Constraint::PrimaryKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Constraint.PrimaryKey").msgclass
782
833
  Table::Constraint::ForeignKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.Table.Constraint.ForeignKey").msgclass
@@ -316,6 +316,7 @@ message NodeReference {
316
316
  MOBILE_NAVIGATION_NODE = 13;
317
317
  MOBILE_MOLECULE_PROP = 14;
318
318
  TABLE_DEFINITION = 15;
319
+ PROJECT_VARIABLE = 16;
319
320
  }
320
321
  }
321
322
 
@@ -367,6 +368,7 @@ message NodeVariable {
367
368
  CONTEXT_VALUES = 7;
368
369
  LOCAL_CONTEXT_RESPONSE = 8;
369
370
  FORM_VALIDATION_ERROR_MESSAGE = 9;
371
+ CSS_VARIABLE = 10;
370
372
  }
371
373
 
372
374
  enum VariableType {
@@ -431,6 +433,12 @@ message NodeCustom {
431
433
  repeated NodeParam props = 12;
432
434
  repeated NodeVariable children_data = 13;
433
435
  repeated FormValidation form_validations = 14;
436
+ repeated FormDefaultValue form_default_values = 15;
437
+ }
438
+
439
+ message FormDefaultValue {
440
+ NodeReference reference = 1;
441
+ NodeVariable value = 2;
434
442
  }
435
443
 
436
444
  message NodeMediaQuery {
@@ -291,6 +291,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
291
291
  value :MOBILE_NAVIGATION_NODE, 13
292
292
  value :MOBILE_MOLECULE_PROP, 14
293
293
  value :TABLE_DEFINITION, 15
294
+ value :PROJECT_VARIABLE, 16
294
295
  end
295
296
  add_message "schema.v1.FunctionArgument" do
296
297
  optional :name, :string, 1
@@ -337,6 +338,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
337
338
  value :CONTEXT_VALUES, 7
338
339
  value :LOCAL_CONTEXT_RESPONSE, 8
339
340
  value :FORM_VALIDATION_ERROR_MESSAGE, 9
341
+ value :CSS_VARIABLE, 10
340
342
  end
341
343
  add_enum "schema.v1.NodeVariable.VariableType" do
342
344
  value :STATIC, 0
@@ -393,6 +395,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
393
395
  repeated :props, :message, 12, "schema.v1.NodeParam"
394
396
  repeated :children_data, :message, 13, "schema.v1.NodeVariable"
395
397
  repeated :form_validations, :message, 14, "schema.v1.FormValidation"
398
+ repeated :form_default_values, :message, 15, "schema.v1.FormDefaultValue"
399
+ end
400
+ add_message "schema.v1.FormDefaultValue" do
401
+ optional :reference, :message, 1, "schema.v1.NodeReference"
402
+ optional :value, :message, 2, "schema.v1.NodeVariable"
396
403
  end
397
404
  add_message "schema.v1.NodeMediaQuery" do
398
405
  optional :lower, :int32, 1
@@ -476,6 +483,7 @@ module Schema
476
483
  NodePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodePayload").msgclass
477
484
  MoleculeComponent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.MoleculeComponent").msgclass
478
485
  NodeCustom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodeCustom").msgclass
486
+ FormDefaultValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.FormDefaultValue").msgclass
479
487
  NodeMediaQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodeMediaQuery").msgclass
480
488
  RenderCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.RenderCondition").msgclass
481
489
  RenderCondition::Condition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.RenderCondition.Condition").msgclass
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.14'
4
+ VERSION = '0.0.15'
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.14
4
+ version: 0.0.15
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-08 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc