jitera_proto 0.0.14 → 0.0.16
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 +4 -4
- data/Gemfile.lock +1 -0
- data/lib/payloads/v1/backend.proto +47 -0
- data/lib/payloads/v1/backend_pb.rb +51 -0
- data/lib/payloads/v1/web_app.proto +12 -3
- data/lib/payloads/v1/web_app_pb.rb +12 -3
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 729452386ea8805c166950021fd234da16bc27d2c1f4834eeb6eeadbf1acde7a
|
4
|
+
data.tar.gz: e0dbbd168f904bfc360b1c600171666b7aac756c782928e25dced57da376713c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bf09f24a4058442aa9b1899f15a7e0ba29312803bb79e3df2274d867423e20357a19605390336dbb495e2cb0506569b71ffa560e15fb328b78bd2414ae2c7d9
|
7
|
+
data.tar.gz: f6f92528090d11f00afcd56108574d1c0f9c5486f8151c67bda75ac2ff50fb457b437d7cf6a6a5b15133137bb60c1146fa5e1a960a14b0f1847db1d1850edda6
|
data/Gemfile.lock
CHANGED
@@ -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
|
@@ -10,9 +10,10 @@ message WebApp {
|
|
10
10
|
repeated AppPageCategory categories = 4;
|
11
11
|
|
12
12
|
message Variable {
|
13
|
-
|
14
|
-
|
15
|
-
string
|
13
|
+
string id = 1;
|
14
|
+
VariableType type = 2;
|
15
|
+
string name = 3;
|
16
|
+
string value = 4;
|
16
17
|
}
|
17
18
|
|
18
19
|
enum VariableType {
|
@@ -316,6 +317,7 @@ message NodeReference {
|
|
316
317
|
MOBILE_NAVIGATION_NODE = 13;
|
317
318
|
MOBILE_MOLECULE_PROP = 14;
|
318
319
|
TABLE_DEFINITION = 15;
|
320
|
+
PROJECT_VARIABLE = 16;
|
319
321
|
}
|
320
322
|
}
|
321
323
|
|
@@ -367,6 +369,7 @@ message NodeVariable {
|
|
367
369
|
CONTEXT_VALUES = 7;
|
368
370
|
LOCAL_CONTEXT_RESPONSE = 8;
|
369
371
|
FORM_VALIDATION_ERROR_MESSAGE = 9;
|
372
|
+
CSS_VARIABLE = 10;
|
370
373
|
}
|
371
374
|
|
372
375
|
enum VariableType {
|
@@ -431,6 +434,12 @@ message NodeCustom {
|
|
431
434
|
repeated NodeParam props = 12;
|
432
435
|
repeated NodeVariable children_data = 13;
|
433
436
|
repeated FormValidation form_validations = 14;
|
437
|
+
repeated FormDefaultValue form_default_values = 15;
|
438
|
+
}
|
439
|
+
|
440
|
+
message FormDefaultValue {
|
441
|
+
NodeReference reference = 1;
|
442
|
+
NodeVariable value = 2;
|
434
443
|
}
|
435
444
|
|
436
445
|
message NodeMediaQuery {
|
@@ -14,9 +14,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
14
|
repeated :categories, :message, 4, "schema.v1.AppPageCategory"
|
15
15
|
end
|
16
16
|
add_message "schema.v1.WebApp.Variable" do
|
17
|
-
optional :
|
18
|
-
optional :
|
19
|
-
optional :
|
17
|
+
optional :id, :string, 1
|
18
|
+
optional :type, :enum, 2, "schema.v1.WebApp.VariableType"
|
19
|
+
optional :name, :string, 3
|
20
|
+
optional :value, :string, 4
|
20
21
|
end
|
21
22
|
add_enum "schema.v1.WebApp.VariableType" do
|
22
23
|
value :JS, 0
|
@@ -291,6 +292,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
291
292
|
value :MOBILE_NAVIGATION_NODE, 13
|
292
293
|
value :MOBILE_MOLECULE_PROP, 14
|
293
294
|
value :TABLE_DEFINITION, 15
|
295
|
+
value :PROJECT_VARIABLE, 16
|
294
296
|
end
|
295
297
|
add_message "schema.v1.FunctionArgument" do
|
296
298
|
optional :name, :string, 1
|
@@ -337,6 +339,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
337
339
|
value :CONTEXT_VALUES, 7
|
338
340
|
value :LOCAL_CONTEXT_RESPONSE, 8
|
339
341
|
value :FORM_VALIDATION_ERROR_MESSAGE, 9
|
342
|
+
value :CSS_VARIABLE, 10
|
340
343
|
end
|
341
344
|
add_enum "schema.v1.NodeVariable.VariableType" do
|
342
345
|
value :STATIC, 0
|
@@ -393,6 +396,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
393
396
|
repeated :props, :message, 12, "schema.v1.NodeParam"
|
394
397
|
repeated :children_data, :message, 13, "schema.v1.NodeVariable"
|
395
398
|
repeated :form_validations, :message, 14, "schema.v1.FormValidation"
|
399
|
+
repeated :form_default_values, :message, 15, "schema.v1.FormDefaultValue"
|
400
|
+
end
|
401
|
+
add_message "schema.v1.FormDefaultValue" do
|
402
|
+
optional :reference, :message, 1, "schema.v1.NodeReference"
|
403
|
+
optional :value, :message, 2, "schema.v1.NodeVariable"
|
396
404
|
end
|
397
405
|
add_message "schema.v1.NodeMediaQuery" do
|
398
406
|
optional :lower, :int32, 1
|
@@ -476,6 +484,7 @@ module Schema
|
|
476
484
|
NodePayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodePayload").msgclass
|
477
485
|
MoleculeComponent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.MoleculeComponent").msgclass
|
478
486
|
NodeCustom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodeCustom").msgclass
|
487
|
+
FormDefaultValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.FormDefaultValue").msgclass
|
479
488
|
NodeMediaQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.NodeMediaQuery").msgclass
|
480
489
|
RenderCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.RenderCondition").msgclass
|
481
490
|
RenderCondition::Condition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("schema.v1.RenderCondition.Condition").msgclass
|
data/lib/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.16
|
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-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|