@furo/open-models 1.6.0 → 1.6.2
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.
- package/custom-elements.json +1058 -1058
- package/dist/OPEN_MODELS_OPTIONS.d.ts +2 -1
- package/dist/OPEN_MODELS_OPTIONS.js.map +1 -1
- package/package.json +5 -3
- package/dist/protoc-gen-open-models/API_OPTIONS.d.ts +0 -5
- package/dist/protoc-gen-open-models/API_OPTIONS.js +0 -11
- package/dist/protoc-gen-open-models/API_OPTIONS.js.map +0 -1
- package/dist/protoc-gen-open-models/BusinessValidators.d.ts +0 -1
- package/dist/protoc-gen-open-models/BusinessValidators.js +0 -201
- package/dist/protoc-gen-open-models/BusinessValidators.js.map +0 -1
- package/dist/protoc-gen-open-models/CustomPrototypes.d.ts +0 -1
- package/dist/protoc-gen-open-models/CustomPrototypes.js +0 -17
- package/dist/protoc-gen-open-models/CustomPrototypes.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/Colour.d.ts +0 -54
- package/dist/protoc-gen-open-models/furo/cube/Colour.js +0 -104
- package/dist/protoc-gen-open-models/furo/cube/Colour.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.d.ts +0 -62
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.js +0 -152
- package/dist/protoc-gen-open-models/furo/cube/CubeDefinition.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.d.ts +0 -36
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.js +0 -83
- package/dist/protoc-gen-open-models/furo/cube/CubeEntity.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeService.d.ts +0 -12
- package/dist/protoc-gen-open-models/furo/cube/CubeService.js +0 -14
- package/dist/protoc-gen-open-models/furo/cube/CubeService.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.d.ts +0 -31
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.js +0 -56
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListRequest.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.d.ts +0 -26
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.js +0 -55
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetListResponse.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.d.ts +0 -44
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.js +0 -76
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetRequest.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.d.ts +0 -26
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.js +0 -55
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceGetResponse.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.d.ts +0 -37
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.js +0 -70
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateRequest.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.d.ts +0 -26
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.js +0 -55
- package/dist/protoc-gen-open-models/furo/cube/CubeServiceUpdateResponse.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/Materials.d.ts +0 -12
- package/dist/protoc-gen-open-models/furo/cube/Materials.js +0 -21
- package/dist/protoc-gen-open-models/furo/cube/Materials.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.d.ts +0 -65
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.js +0 -158
- package/dist/protoc-gen-open-models/furo/cube/Wrappers.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.d.ts +0 -50
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.js +0 -80
- package/dist/protoc-gen-open-models/furo/fat/Any.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.d.ts +0 -50
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.js +0 -80
- package/dist/protoc-gen-open-models/furo/fat/Any.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Any.d.ts +0 -74
- package/dist/protoc-gen-open-models/furo/fat/Any.js +0 -91
- package/dist/protoc-gen-open-models/furo/fat/Any.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Bool.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Bool.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bool.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Bool.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Bool.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Bytes.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.js +0 -73
- package/dist/protoc-gen-open-models/furo/fat/Bytes.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Bytes.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Bytes.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Bytes.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.d.ts +0 -58
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.js +0 -78
- package/dist/protoc-gen-open-models/furo/fat/DecimalRange.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Double.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Double.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Double.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Double.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Double.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Empty.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.js +0 -73
- package/dist/protoc-gen-open-models/furo/fat/Empty.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Empty.d.ts +0 -57
- package/dist/protoc-gen-open-models/furo/fat/Empty.js +0 -74
- package/dist/protoc-gen-open-models/furo/fat/Empty.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Float.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.js +0 -73
- package/dist/protoc-gen-open-models/furo/fat/Float.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Float.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Float.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Float.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Int32.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.js +0 -73
- package/dist/protoc-gen-open-models/furo/fat/Int32.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int32.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Int32.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Int32.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Int64.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.js +0 -73
- package/dist/protoc-gen-open-models/furo/fat/Int64.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Int64.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Int64.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Int64.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/String.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/String.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/String.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/String.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/String.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Uint32.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Uint32.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint32.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Uint32.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Uint32.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Uint64.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.js +0 -72
- package/dist/protoc-gen-open-models/furo/fat/Uint64.LabelsEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/fat/Uint64.d.ts +0 -68
- package/dist/protoc-gen-open-models/furo/fat/Uint64.js +0 -89
- package/dist/protoc-gen-open-models/furo/fat/Uint64.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.d.ts +0 -11
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.js +0 -15
- package/dist/protoc-gen-open-models/furo/type/BookingCenter.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.d.ts +0 -75
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.js +0 -218
- package/dist/protoc-gen-open-models/furo/type/ConstraintWrappers.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Decimal.d.ts +0 -37
- package/dist/protoc-gen-open-models/furo/type/Decimal.js +0 -58
- package/dist/protoc-gen-open-models/furo/type/Decimal.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/DecimalB.d.ts +0 -37
- package/dist/protoc-gen-open-models/furo/type/DecimalB.js +0 -58
- package/dist/protoc-gen-open-models/furo/type/DecimalB.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.d.ts +0 -58
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.js +0 -78
- package/dist/protoc-gen-open-models/furo/type/DecimalRange.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.d.ts +0 -31
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.js +0 -69
- package/dist/protoc-gen-open-models/furo/type/DeepRecursion.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.d.ts +0 -30
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.js +0 -67
- package/dist/protoc-gen-open-models/furo/type/Defaults.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Defaults.d.ts +0 -111
- package/dist/protoc-gen-open-models/furo/type/Defaults.js +0 -210
- package/dist/protoc-gen-open-models/furo/type/Defaults.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.d.ts +0 -30
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.js +0 -67
- package/dist/protoc-gen-open-models/furo/type/Identifier.AttributesEntry.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Identifier.d.ts +0 -117
- package/dist/protoc-gen-open-models/furo/type/Identifier.js +0 -203
- package/dist/protoc-gen-open-models/furo/type/Identifier.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Numeric.d.ts +0 -42
- package/dist/protoc-gen-open-models/furo/type/Numeric.js +0 -77
- package/dist/protoc-gen-open-models/furo/type/Numeric.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Other.d.ts +0 -26
- package/dist/protoc-gen-open-models/furo/type/Other.js +0 -55
- package/dist/protoc-gen-open-models/furo/type/Other.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/RefSystem.d.ts +0 -13
- package/dist/protoc-gen-open-models/furo/type/RefSystem.js +0 -17
- package/dist/protoc-gen-open-models/furo/type/RefSystem.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/RefType.d.ts +0 -53
- package/dist/protoc-gen-open-models/furo/type/RefType.js +0 -57
- package/dist/protoc-gen-open-models/furo/type/RefType.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Tree.d.ts +0 -53
- package/dist/protoc-gen-open-models/furo/type/Tree.js +0 -86
- package/dist/protoc-gen-open-models/furo/type/Tree.js.map +0 -1
- package/dist/protoc-gen-open-models/furo/type/Wrappers.d.ts +0 -65
- package/dist/protoc-gen-open-models/furo/type/Wrappers.js +0 -158
- package/dist/protoc-gen-open-models/furo/type/Wrappers.js.map +0 -1
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.d.ts +0 -45
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.js +0 -73
- package/dist/protoc-gen-open-models/google/api/CustomHttpPattern.js.map +0 -1
- package/dist/protoc-gen-open-models/google/api/Http.d.ts +0 -66
- package/dist/protoc-gen-open-models/google/api/Http.js +0 -89
- package/dist/protoc-gen-open-models/google/api/Http.js.map +0 -1
- package/dist/protoc-gen-open-models/google/api/HttpRule.d.ts +0 -985
- package/dist/protoc-gen-open-models/google/api/HttpRule.js +0 -502
- package/dist/protoc-gen-open-models/google/api/HttpRule.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/Any.d.ts +0 -356
- package/dist/protoc-gen-open-models/google/protobuf/Any.js +0 -213
- package/dist/protoc-gen-open-models/google/protobuf/Any.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.js +0 -59
- package/dist/protoc-gen-open-models/google/protobuf/BoolValue.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.js +0 -59
- package/dist/protoc-gen-open-models/google/protobuf/BytesValue.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.d.ts +0 -36
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.js +0 -81
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ExtensionRange.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.d.ts +0 -30
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.js +0 -67
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.ReservedRange.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.d.ts +0 -87
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.js +0 -183
- package/dist/protoc-gen-open-models/google/protobuf/DescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.js +0 -60
- package/dist/protoc-gen-open-models/google/protobuf/DoubleValue.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/Edition.d.ts +0 -11
- package/dist/protoc-gen-open-models/google/protobuf/Edition.js +0 -26
- package/dist/protoc-gen-open-models/google/protobuf/Edition.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.d.ts +0 -30
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.js +0 -68
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.EnumReservedRange.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.d.ts +0 -69
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.js +0 -121
- package/dist/protoc-gen-open-models/google/protobuf/EnumDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.d.ts +0 -95
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.js +0 -137
- package/dist/protoc-gen-open-models/google/protobuf/EnumOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.d.ts +0 -39
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.js +0 -82
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.d.ts +0 -76
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.js +0 -115
- package/dist/protoc-gen-open-models/google/protobuf/EnumValueOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.d.ts +0 -81
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.js +0 -126
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.Declaration.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.d.ts +0 -4
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.js +0 -8
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.VerificationState.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.d.ts +0 -76
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.js +0 -115
- package/dist/protoc-gen-open-models/google/protobuf/ExtensionRangeOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.js +0 -15
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.EnumType.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.d.ts +0 -6
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.js +0 -16
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.FieldPresence.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.js +0 -15
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.JsonFormat.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.js +0 -15
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.MessageEncoding.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.js +0 -15
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.RepeatedFieldEncoding.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.js +0 -15
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.Utf8Validation.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.d.ts +0 -74
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.js +0 -132
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSet.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.d.ts +0 -32
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.js +0 -70
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.FeatureSetEditionDefault.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.d.ts +0 -65
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.js +0 -95
- package/dist/protoc-gen-open-models/google/protobuf/FeatureSetDefaults.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.js +0 -10
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Label.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.d.ts +0 -20
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.js +0 -25
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.Type.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.d.ts +0 -189
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.js +0 -269
- package/dist/protoc-gen-open-models/google/protobuf/FieldDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.js +0 -9
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.CType.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.d.ts +0 -31
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.js +0 -68
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.EditionDefault.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.js +0 -9
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.JSType.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.js +0 -9
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionRetention.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.d.ts +0 -12
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.js +0 -16
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.OptionTargetType.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.d.ts +0 -264
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.js +0 -350
- package/dist/protoc-gen-open-models/google/protobuf/FieldOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.d.ts +0 -151
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.js +0 -247
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.d.ts +0 -32
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.js +0 -58
- package/dist/protoc-gen-open-models/google/protobuf/FileDescriptorSet.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.js +0 -9
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.OptimizeMode.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.d.ts +0 -333
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.js +0 -459
- package/dist/protoc-gen-open-models/google/protobuf/FileOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.js +0 -59
- package/dist/protoc-gen-open-models/google/protobuf/FloatValue.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.js +0 -12
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.Semantic.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.d.ts +0 -78
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.js +0 -124
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.Annotation.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.d.ts +0 -43
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.js +0 -63
- package/dist/protoc-gen-open-models/google/protobuf/GeneratedCodeInfo.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.js +0 -59
- package/dist/protoc-gen-open-models/google/protobuf/Int32Value.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.js +0 -59
- package/dist/protoc-gen-open-models/google/protobuf/Int64Value.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.d.ts +0 -201
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.js +0 -251
- package/dist/protoc-gen-open-models/google/protobuf/MessageOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.d.ts +0 -74
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.js +0 -130
- package/dist/protoc-gen-open-models/google/protobuf/MethodDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.d.ts +0 -5
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.js +0 -9
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.IdempotencyLevel.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.d.ts +0 -67
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.js +0 -110
- package/dist/protoc-gen-open-models/google/protobuf/MethodOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.d.ts +0 -34
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.js +0 -70
- package/dist/protoc-gen-open-models/google/protobuf/OneofDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.d.ts +0 -44
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.js +0 -74
- package/dist/protoc-gen-open-models/google/protobuf/OneofOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.js +0 -83
- package/dist/protoc-gen-open-models/google/protobuf/ServiceDescriptorProto.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.d.ts +0 -61
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.js +0 -95
- package/dist/protoc-gen-open-models/google/protobuf/ServiceOptions.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.d.ts +0 -207
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.js +0 -256
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.Location.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.d.ts +0 -122
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.js +0 -144
- package/dist/protoc-gen-open-models/google/protobuf/SourceCodeInfo.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.js +0 -60
- package/dist/protoc-gen-open-models/google/protobuf/StringValue.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.js +0 -60
- package/dist/protoc-gen-open-models/google/protobuf/UInt32Value.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.d.ts +0 -40
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.js +0 -60
- package/dist/protoc-gen-open-models/google/protobuf/UInt64Value.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.d.ts +0 -30
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.js +0 -67
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.NamePart.js.map +0 -1
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.d.ts +0 -82
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.js +0 -144
- package/dist/protoc-gen-open-models/google/protobuf/UninterpretedOption.js.map +0 -1
- package/dist/protoc-gen-open-models/init.d.ts +0 -10
- package/dist/protoc-gen-open-models/init.js +0 -10
- package/dist/protoc-gen-open-models/init.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.d.ts +0 -31
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.js +0 -68
- package/dist/protoc-gen-open-models/openapiv3/AdditionalPropertiesItem.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Any.d.ts +0 -30
- package/dist/protoc-gen-open-models/openapiv3/Any.js +0 -67
- package/dist/protoc-gen-open-models/openapiv3/Any.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/AnyOrExpression.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Callback.d.ts +0 -35
- package/dist/protoc-gen-open-models/openapiv3/Callback.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/Callback.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/CallbackOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/CallbacksOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Components.d.ts +0 -83
- package/dist/protoc-gen-open-models/openapiv3/Components.js +0 -182
- package/dist/protoc-gen-open-models/openapiv3/Components.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Contact.d.ts +0 -44
- package/dist/protoc-gen-open-models/openapiv3/Contact.js +0 -95
- package/dist/protoc-gen-open-models/openapiv3/Contact.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.d.ts +0 -35
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.js +0 -81
- package/dist/protoc-gen-open-models/openapiv3/DefaultType.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.d.ts +0 -40
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.js +0 -84
- package/dist/protoc-gen-open-models/openapiv3/Discriminator.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Document.d.ts +0 -73
- package/dist/protoc-gen-open-models/openapiv3/Document.js +0 -166
- package/dist/protoc-gen-open-models/openapiv3/Document.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Encoding.d.ts +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Encoding.js +0 -122
- package/dist/protoc-gen-open-models/openapiv3/Encoding.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Encodings.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/Encodings.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Encodings.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Example.d.ts +0 -47
- package/dist/protoc-gen-open-models/openapiv3/Example.js +0 -108
- package/dist/protoc-gen-open-models/openapiv3/Example.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/ExampleOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/ExamplesOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Expression.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/Expression.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Expression.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.d.ts +0 -39
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.js +0 -83
- package/dist/protoc-gen-open-models/openapiv3/ExternalDocs.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Header.d.ts +0 -88
- package/dist/protoc-gen-open-models/openapiv3/Header.js +0 -203
- package/dist/protoc-gen-open-models/openapiv3/Header.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/HeaderOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/HeadersOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Info.d.ts +0 -66
- package/dist/protoc-gen-open-models/openapiv3/Info.js +0 -149
- package/dist/protoc-gen-open-models/openapiv3/Info.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/ItemsItem.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/License.d.ts +0 -39
- package/dist/protoc-gen-open-models/openapiv3/License.js +0 -82
- package/dist/protoc-gen-open-models/openapiv3/License.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Link.d.ts +0 -61
- package/dist/protoc-gen-open-models/openapiv3/Link.js +0 -136
- package/dist/protoc-gen-open-models/openapiv3/Link.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/LinkOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/LinksOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/MediaType.d.ts +0 -53
- package/dist/protoc-gen-open-models/openapiv3/MediaType.js +0 -112
- package/dist/protoc-gen-open-models/openapiv3/MediaType.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/MediaTypes.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedAny.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedCallbackOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.js +0 -74
- package/dist/protoc-gen-open-models/openapiv3/NamedEncoding.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedExampleOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedHeaderOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.js +0 -74
- package/dist/protoc-gen-open-models/openapiv3/NamedLinkOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.js +0 -74
- package/dist/protoc-gen-open-models/openapiv3/NamedMediaType.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedParameterOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.js +0 -74
- package/dist/protoc-gen-open-models/openapiv3/NamedPathItem.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedRequestBodyOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedResponseOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedSchemaOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedSecuritySchemeOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.js +0 -74
- package/dist/protoc-gen-open-models/openapiv3/NamedServerVariable.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedString.d.ts +0 -45
- package/dist/protoc-gen-open-models/openapiv3/NamedString.js +0 -73
- package/dist/protoc-gen-open-models/openapiv3/NamedString.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.d.ts +0 -46
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.js +0 -75
- package/dist/protoc-gen-open-models/openapiv3/NamedStringArray.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.d.ts +0 -50
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.js +0 -109
- package/dist/protoc-gen-open-models/openapiv3/OauthFlow.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.d.ts +0 -50
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.js +0 -109
- package/dist/protoc-gen-open-models/openapiv3/OauthFlows.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Object.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/Object.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Object.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Operation.d.ts +0 -96
- package/dist/protoc-gen-open-models/openapiv3/Operation.js +0 -219
- package/dist/protoc-gen-open-models/openapiv3/Operation.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Parameter.d.ts +0 -98
- package/dist/protoc-gen-open-models/openapiv3/Parameter.js +0 -229
- package/dist/protoc-gen-open-models/openapiv3/Parameter.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/ParameterOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/ParametersOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/PathItem.d.ts +0 -97
- package/dist/protoc-gen-open-models/openapiv3/PathItem.js +0 -228
- package/dist/protoc-gen-open-models/openapiv3/PathItem.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Paths.d.ts +0 -35
- package/dist/protoc-gen-open-models/openapiv3/Paths.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/Paths.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Properties.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/Properties.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Properties.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Reference.d.ts +0 -38
- package/dist/protoc-gen-open-models/openapiv3/Reference.js +0 -81
- package/dist/protoc-gen-open-models/openapiv3/Reference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/RequestBodiesOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.d.ts +0 -45
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.js +0 -97
- package/dist/protoc-gen-open-models/openapiv3/RequestBody.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.js +0 -69
- package/dist/protoc-gen-open-models/openapiv3/RequestBodyOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Response.d.ts +0 -52
- package/dist/protoc-gen-open-models/openapiv3/Response.js +0 -111
- package/dist/protoc-gen-open-models/openapiv3/Response.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/ResponseOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Responses.d.ts +0 -41
- package/dist/protoc-gen-open-models/openapiv3/Responses.js +0 -84
- package/dist/protoc-gen-open-models/openapiv3/Responses.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/ResponsesOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Schema.d.ts +0 -213
- package/dist/protoc-gen-open-models/openapiv3/Schema.js +0 -520
- package/dist/protoc-gen-open-models/openapiv3/Schema.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.js +0 -70
- package/dist/protoc-gen-open-models/openapiv3/SchemaOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/SchemasOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.d.ts +0 -29
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.js +0 -57
- package/dist/protoc-gen-open-models/openapiv3/SecurityRequirement.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.d.ts +0 -70
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.js +0 -162
- package/dist/protoc-gen-open-models/openapiv3/SecurityScheme.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.d.ts +0 -32
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.js +0 -69
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemeOrReference.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/SecuritySchemesOrReferences.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Server.d.ts +0 -45
- package/dist/protoc-gen-open-models/openapiv3/Server.js +0 -96
- package/dist/protoc-gen-open-models/openapiv3/Server.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.d.ts +0 -44
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.js +0 -96
- package/dist/protoc-gen-open-models/openapiv3/ServerVariable.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.js +0 -56
- package/dist/protoc-gen-open-models/openapiv3/ServerVariables.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.d.ts +0 -38
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.js +0 -81
- package/dist/protoc-gen-open-models/openapiv3/SpecificationExtension.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/StringArray.d.ts +0 -25
- package/dist/protoc-gen-open-models/openapiv3/StringArray.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/StringArray.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Strings.d.ts +0 -26
- package/dist/protoc-gen-open-models/openapiv3/Strings.js +0 -55
- package/dist/protoc-gen-open-models/openapiv3/Strings.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Tag.d.ts +0 -45
- package/dist/protoc-gen-open-models/openapiv3/Tag.js +0 -96
- package/dist/protoc-gen-open-models/openapiv3/Tag.js.map +0 -1
- package/dist/protoc-gen-open-models/openapiv3/Xml.d.ts +0 -54
- package/dist/protoc-gen-open-models/openapiv3/Xml.js +0 -121
- package/dist/protoc-gen-open-models/openapiv3/Xml.js.map +0 -1
- package/dist/test_components/form-furo-type-defaults.d.ts +0 -30
- package/dist/test_components/form-furo-type-defaults.js +0 -67
- package/dist/test_components/form-furo-type-defaults.js.map +0 -1
- package/dist/test_components/form-number.d.ts +0 -42
- package/dist/test_components/form-number.js +0 -125
- package/dist/test_components/form-number.js.map +0 -1
- package/dist/test_components/form-string.d.ts +0 -1
- package/dist/test_components/form-string.js +0 -80
- package/dist/test_components/form-string.js.map +0 -1
- package/dist/test_components/page-index.d.ts +0 -39
- package/dist/test_components/page-index.js +0 -156
- package/dist/test_components/page-index.js.map +0 -1
|
@@ -9,7 +9,8 @@ export interface Options {
|
|
|
9
9
|
EmitDefaultValues: boolean;
|
|
10
10
|
/**
|
|
11
11
|
* Use this method to translate the value state messages.
|
|
12
|
-
* @param key
|
|
12
|
+
* @param key - message key
|
|
13
|
+
* @param params - message params
|
|
13
14
|
*/
|
|
14
15
|
valueStateMessageFormatter: (key: string, ...params: string[]) => string;
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OPEN_MODELS_OPTIONS.js","sourceRoot":"","sources":["../src/OPEN_MODELS_OPTIONS.ts"],"names":[],"mappings":"AAwDA,MAAM,CAAC,MAAM,mBAAmB,GAAY;IAC1C,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE;IAC7D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,EAAE,CAC7C,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;CAC7D,CAAC","sourcesContent":["export interface Options {\n // UseProtoNames uses proto field name instead of lowerCamelCase name in JSON\n // field names.\n // UseProtoNames bool\n UseProtoNames: boolean;\n /**\n * Replace with your own label formatter, if you want to use translations for the labels.\n * @param key\n */\n labelFormatter: (key: string, ...params: string[]) => string;\n\n // EmitUnpopulated specifies whether to emit unpopulated fields. It does not\n // emit unpopulated oneof fields or unpopulated extension fields.\n // The JSON value emitted for unpopulated fields are as follows:\n // ╔═══════╤════════════════════════════╗\n // ║ JSON │ Protobuf field ║\n // ╠═══════╪════════════════════════════╣\n // ║ false │ proto3 boolean fields ║\n // ║ 0 │ proto3 numeric fields ║\n // ║ \"\" │ proto3 string/bytes fields ║\n // ║ null │ proto2 scalar fields ║\n // ║ null │ message fields ║\n // ║ [] │ list fields ║\n // ║ {} │ map fields ║\n // ╚═══════╧════════════════════════════╝\n EmitUnpopulated: boolean;\n\n // EmitDefaultValues specifies whether to emit default-valued primitive fields,\n // empty lists, and empty maps. The fields affected are as follows:\n // ╔═══════╤════════════════════════════════════════╗\n // ║ JSON │ Protobuf field ║\n // ╠═══════╪════════════════════════════════════════╣\n // ║ false │ non-optional scalar boolean fields ║\n // ║ 0 │ non-optional scalar numeric fields ║\n // ║ \"\" │ non-optional scalar string/byte fields ║\n // ║ [] │ empty repeated fields ║\n // ║ {} │ empty map fields ║\n // ╚═══════╧════════════════════════════════════════╝\n //\n // Behaves similarly to EmitUnpopulated, but does not emit \"null\"-value fields,\n // i.e. presence-sensing fields that are omitted will remain omitted to preserve\n // presence-sensing.\n // EmitUnpopulated takes precedence over EmitDefaultValues since the former generates\n // a strict superset of the latter.\n // EmitDefaultValues: boolean;\n\n EmitDefaultValues: boolean;\n /**\n * Use this method to translate the value state messages.\n * @param key\n */\n valueStateMessageFormatter: (key: string, ...params: string[]) => string;\n // todo
|
|
1
|
+
{"version":3,"file":"OPEN_MODELS_OPTIONS.js","sourceRoot":"","sources":["../src/OPEN_MODELS_OPTIONS.ts"],"names":[],"mappings":"AAwDA,MAAM,CAAC,MAAM,mBAAmB,GAAY;IAC1C,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE;IAC7D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,EAAE,CAC7C,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;CAC7D,CAAC","sourcesContent":["export interface Options {\n // UseProtoNames uses proto field name instead of lowerCamelCase name in JSON\n // field names.\n // UseProtoNames bool\n UseProtoNames: boolean;\n /**\n * Replace with your own label formatter, if you want to use translations for the labels.\n * @param key\n */\n labelFormatter: (key: string, ...params: string[]) => string;\n\n // EmitUnpopulated specifies whether to emit unpopulated fields. It does not\n // emit unpopulated oneof fields or unpopulated extension fields.\n // The JSON value emitted for unpopulated fields are as follows:\n // ╔═══════╤════════════════════════════╗\n // ║ JSON │ Protobuf field ║\n // ╠═══════╪════════════════════════════╣\n // ║ false │ proto3 boolean fields ║\n // ║ 0 │ proto3 numeric fields ║\n // ║ \"\" │ proto3 string/bytes fields ║\n // ║ null │ proto2 scalar fields ║\n // ║ null │ message fields ║\n // ║ [] │ list fields ║\n // ║ {} │ map fields ║\n // ╚═══════╧════════════════════════════╝\n EmitUnpopulated: boolean;\n\n // EmitDefaultValues specifies whether to emit default-valued primitive fields,\n // empty lists, and empty maps. The fields affected are as follows:\n // ╔═══════╤════════════════════════════════════════╗\n // ║ JSON │ Protobuf field ║\n // ╠═══════╪════════════════════════════════════════╣\n // ║ false │ non-optional scalar boolean fields ║\n // ║ 0 │ non-optional scalar numeric fields ║\n // ║ \"\" │ non-optional scalar string/byte fields ║\n // ║ [] │ empty repeated fields ║\n // ║ {} │ empty map fields ║\n // ╚═══════╧════════════════════════════════════════╝\n //\n // Behaves similarly to EmitUnpopulated, but does not emit \"null\"-value fields,\n // i.e. presence-sensing fields that are omitted will remain omitted to preserve\n // presence-sensing.\n // EmitUnpopulated takes precedence over EmitDefaultValues since the former generates\n // a strict superset of the latter.\n // EmitDefaultValues: boolean;\n\n EmitDefaultValues: boolean;\n /**\n * Use this method to translate the value state messages.\n * @param key - message key\n * @param params - message params\n */\n valueStateMessageFormatter: (key: string, ...params: string[]) => string;\n // todo merge all formatters to one formatter\n}\n\nexport const OPEN_MODELS_OPTIONS: Options = {\n UseProtoNames: true,\n labelFormatter: key => key.replaceAll('.', '_').toUpperCase(),\n EmitDefaultValues: false,\n EmitUnpopulated: false,\n valueStateMessageFormatter: (key, ...params) =>\n `${key}${params.length > 0 ? ` ${params.join(' ')}` : ''}`,\n};\n"]}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"homepage": "https://github.com/eclipse/eclipsefuro-web/tree/main/packages",
|
|
6
6
|
"repository": "git@github.com:eclipse/eclipsefuro-web.git",
|
|
7
7
|
"author": "eclipse furo",
|
|
8
|
-
"version": "1.6.
|
|
8
|
+
"version": "1.6.2",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"module": "dist/index.js",
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"bootstrap": "npm install && npm link && npm link @furo/open-models"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
|
-
"./dist
|
|
31
|
+
"./dist/*.js",
|
|
32
|
+
"./dist/*.map",
|
|
33
|
+
"./dist/*.ts",
|
|
32
34
|
"./dist/primitives",
|
|
33
35
|
"./dist/proxies",
|
|
34
36
|
"./dist/well_known",
|
|
@@ -81,5 +83,5 @@
|
|
|
81
83
|
"prettier --write"
|
|
82
84
|
]
|
|
83
85
|
},
|
|
84
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "97a29edba2fb86760755e9c6ee6a806c4e2f45f6"
|
|
85
87
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set the API OPTIONS.
|
|
3
|
-
*/
|
|
4
|
-
export const API_OPTIONS = {
|
|
5
|
-
serverAddr: '', // Set the serverAddr, if you need to address the API on a different host.
|
|
6
|
-
ApiBaseURL: '/api',
|
|
7
|
-
headers: new Headers({ 'Content-Type': 'application/json' }),
|
|
8
|
-
timeout: 3000, // Timeout for requests.
|
|
9
|
-
PreserveProtoNames: false,
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=API_OPTIONS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"API_OPTIONS.js","sourceRoot":"","sources":["../../protoc-gen-open-models/API_OPTIONS.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC,UAAU,EAAE,EAAE,EAAE,0EAA0E;IAC1F,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,IAAI,OAAO,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC;IAC5D,OAAO,EAAE,IAAI,EAAE,wBAAwB;IACvC,kBAAkB,EAAE,KAAK;CAC1B,CAAC","sourcesContent":["import { type IApiOptions } from '@furo/open-models/dist/Fetcher';\n\n/**\n * Set the API OPTIONS.\n */\nexport const API_OPTIONS: IApiOptions = {\n serverAddr: '', // Set the serverAddr, if you need to address the API on a different host.\n ApiBaseURL: '/api',\n headers: new Headers({ 'Content-Type': 'application/json' }),\n timeout: 3000, // Timeout for requests.\n PreserveProtoNames: false,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { Validators } from '@furo/open-models/dist/Validator';
|
|
2
|
-
import { ValueState } from '@furo/open-models/dist';
|
|
3
|
-
Validators.set('furo.type.DecimalRange', (node) => {
|
|
4
|
-
if (parseFloat(node.start.value.toString()) >
|
|
5
|
-
parseFloat(node.end.value.toString())) {
|
|
6
|
-
node.__setValueState(ValueState.Negative, [
|
|
7
|
-
'decimal.start.must.be.smaller.then.end',
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
node.__setValueState(ValueState.None, ['']);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Validators.set('furo.type.Defaults', (node) => {
|
|
15
|
-
if (node.id.value === '----') {
|
|
16
|
-
node.id.__setValueState(ValueState.Negative, [
|
|
17
|
-
'defaults.id.can.not.be.4',
|
|
18
|
-
'----',
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
node.__setValueState(ValueState.None, ['']);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Validators.set('furo.type.Decimal', (node) => {
|
|
26
|
-
if (!node.value.value.match(/^[+-]?(\d*\.)?\d+$/)) {
|
|
27
|
-
// maybe ^[+-]?(\d*\.)?\d*$ ???
|
|
28
|
-
node.__setValueState(ValueState.Negative, [
|
|
29
|
-
'decimal.invalid.number',
|
|
30
|
-
node.value.value,
|
|
31
|
-
]);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
const fieldConstraints = node.__getConstraints();
|
|
35
|
-
if (fieldConstraints) {
|
|
36
|
-
for (const [constraint, value] of Object.entries(fieldConstraints)) {
|
|
37
|
-
if (constraint === 'minimum') {
|
|
38
|
-
if (parseFloat(node.value.value) < value) {
|
|
39
|
-
node.__setValueState(ValueState.Negative, [
|
|
40
|
-
'constraint.violation.minimum',
|
|
41
|
-
value,
|
|
42
|
-
node.value.value,
|
|
43
|
-
]);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
node.__setValueState(ValueState.None, ['']);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
Validators.set('furo.cube.CubeDefinition', (cube) => {
|
|
53
|
-
// make sure the cubes are cube-ish enough
|
|
54
|
-
/**
|
|
55
|
-
* Implemented Business Validators
|
|
56
|
-
* To ensure that we have a good cube, following business validators are implemented:
|
|
57
|
-
* When l == b == h, we have a perfect cube (value state "Success").
|
|
58
|
-
* When we have a deviation of 10% to the average sizes, we recommend adjusting the deviating values (value state "Informative").
|
|
59
|
-
* When we have a deviation of 20% to the average sizes, we strongly recommend adjusting the deviating values (value state "Warning").
|
|
60
|
-
* When we have a deviation of 30% to the average sizes, we force adjusting the deviating values (value state "Error").
|
|
61
|
-
*/
|
|
62
|
-
const valueStateSummary = [];
|
|
63
|
-
const avg = (cube.length.value + cube.breadth.value + cube.height.value) / 3;
|
|
64
|
-
let isValid = true;
|
|
65
|
-
if (cube.length.value >= 100 && cube.length.value <= 1000) {
|
|
66
|
-
const lengthState = {
|
|
67
|
-
field: 'length',
|
|
68
|
-
message: '',
|
|
69
|
-
state: ValueState.None,
|
|
70
|
-
};
|
|
71
|
-
if (cube.length.value < avg * 0.9) {
|
|
72
|
-
lengthState.state = ValueState.Information;
|
|
73
|
-
lengthState.message =
|
|
74
|
-
'Please consider to make this value bigger, to have a perfect cube';
|
|
75
|
-
}
|
|
76
|
-
if (cube.length.value < avg * 0.8) {
|
|
77
|
-
lengthState.state = ValueState.Critical;
|
|
78
|
-
lengthState.message =
|
|
79
|
-
'A perfect cube should have the same length, breadth and height.\n It is strongly recommended to increase this value';
|
|
80
|
-
}
|
|
81
|
-
if (cube.length.value < avg * 0.7) {
|
|
82
|
-
lengthState.state = ValueState.Negative;
|
|
83
|
-
lengthState.message =
|
|
84
|
-
'A perfect cube should have the same length, breadth and height.\n Increase this value';
|
|
85
|
-
isValid = false;
|
|
86
|
-
}
|
|
87
|
-
if (cube.length.value === cube.breadth.value &&
|
|
88
|
-
cube.length.value === cube.height.value) {
|
|
89
|
-
lengthState.state = ValueState.Positive;
|
|
90
|
-
}
|
|
91
|
-
if (cube.length.value > avg * 1.1) {
|
|
92
|
-
lengthState.state = ValueState.Information;
|
|
93
|
-
lengthState.message =
|
|
94
|
-
'Please consider to make this value smaller, to have a perfect cube';
|
|
95
|
-
}
|
|
96
|
-
if (cube.length.value > avg * 1.2) {
|
|
97
|
-
lengthState.state = ValueState.Critical;
|
|
98
|
-
lengthState.message =
|
|
99
|
-
'A perfect cube should have the same length, breadth and height.\n It is strongly recommended to decrease this value';
|
|
100
|
-
}
|
|
101
|
-
if (cube.length.value > avg * 1.3) {
|
|
102
|
-
lengthState.state = ValueState.Negative;
|
|
103
|
-
lengthState.message =
|
|
104
|
-
'A perfect cube should have the same length, breadth and height.\n Decrease this value';
|
|
105
|
-
isValid = false;
|
|
106
|
-
}
|
|
107
|
-
valueStateSummary.push(lengthState);
|
|
108
|
-
}
|
|
109
|
-
if (cube.breadth.value >= 100 && cube.breadth.value <= 1000) {
|
|
110
|
-
const breadthState = {
|
|
111
|
-
field: 'breadth',
|
|
112
|
-
message: '',
|
|
113
|
-
state: ValueState.None,
|
|
114
|
-
};
|
|
115
|
-
if (cube.breadth.value < avg * 0.9) {
|
|
116
|
-
breadthState.state = ValueState.Information;
|
|
117
|
-
breadthState.message =
|
|
118
|
-
'Please consider to make this value bigger, to have a perfect cube';
|
|
119
|
-
}
|
|
120
|
-
if (cube.breadth.value < avg * 0.8) {
|
|
121
|
-
breadthState.state = ValueState.Critical;
|
|
122
|
-
breadthState.message =
|
|
123
|
-
'A perfect cube should have the same breadth, breadth and height.\n It is strongly recommended to increase this value';
|
|
124
|
-
}
|
|
125
|
-
if (cube.breadth.value < avg * 0.7) {
|
|
126
|
-
breadthState.state = ValueState.Negative;
|
|
127
|
-
breadthState.message =
|
|
128
|
-
'A perfect cube should have the same breadth, breadth and height.\n Increase this value';
|
|
129
|
-
isValid = false;
|
|
130
|
-
}
|
|
131
|
-
if (cube.length.value === cube.breadth.value &&
|
|
132
|
-
cube.length.value === cube.height.value) {
|
|
133
|
-
breadthState.state = ValueState.Positive;
|
|
134
|
-
}
|
|
135
|
-
if (cube.breadth.value > avg * 1.1) {
|
|
136
|
-
breadthState.state = ValueState.Information;
|
|
137
|
-
breadthState.message =
|
|
138
|
-
'Please consider to make this value smaller, to have a perfect cube';
|
|
139
|
-
}
|
|
140
|
-
if (cube.breadth.value > avg * 1.2) {
|
|
141
|
-
breadthState.state = ValueState.Critical;
|
|
142
|
-
breadthState.message =
|
|
143
|
-
'A perfect cube should have the same breadth, breadth and height.\n It is strongly recommended to decrease this value';
|
|
144
|
-
}
|
|
145
|
-
if (cube.breadth.value > avg * 1.3) {
|
|
146
|
-
breadthState.state = ValueState.Negative;
|
|
147
|
-
breadthState.message =
|
|
148
|
-
'A perfect cube should have the same breadth, breadth and height.\n Decrease this value';
|
|
149
|
-
isValid = false;
|
|
150
|
-
}
|
|
151
|
-
valueStateSummary.push(breadthState);
|
|
152
|
-
}
|
|
153
|
-
if (cube.height.value >= 100 && cube.height.value <= 1000) {
|
|
154
|
-
const heightState = {
|
|
155
|
-
field: 'height',
|
|
156
|
-
message: '',
|
|
157
|
-
state: ValueState.None,
|
|
158
|
-
};
|
|
159
|
-
if (cube.height.value < avg * 0.9) {
|
|
160
|
-
heightState.state = ValueState.Information;
|
|
161
|
-
heightState.message =
|
|
162
|
-
'Please consider to make this value bigger, to have a perfect cube';
|
|
163
|
-
}
|
|
164
|
-
if (cube.height.value < avg * 0.8) {
|
|
165
|
-
heightState.state = ValueState.Critical;
|
|
166
|
-
heightState.message =
|
|
167
|
-
'A perfect cube should have the same height, height and height.\n It is strongly recommended to increase this value';
|
|
168
|
-
}
|
|
169
|
-
if (cube.height.value < avg * 0.7) {
|
|
170
|
-
heightState.state = ValueState.Negative;
|
|
171
|
-
heightState.message =
|
|
172
|
-
'A perfect cube should have the same height, height and height.\n Increase this value';
|
|
173
|
-
isValid = false;
|
|
174
|
-
}
|
|
175
|
-
if (cube.length.value === cube.breadth.value &&
|
|
176
|
-
cube.length.value === cube.height.value) {
|
|
177
|
-
heightState.state = ValueState.Positive;
|
|
178
|
-
}
|
|
179
|
-
if (cube.height.value > avg * 1.1) {
|
|
180
|
-
heightState.state = ValueState.Information;
|
|
181
|
-
heightState.message =
|
|
182
|
-
'Please consider to make this value smaller, to have a perfect cube';
|
|
183
|
-
}
|
|
184
|
-
if (cube.height.value > avg * 1.2) {
|
|
185
|
-
heightState.state = ValueState.Critical;
|
|
186
|
-
heightState.message =
|
|
187
|
-
'A perfect cube should have the same height, breadth and height.\n It is strongly recommended to decrease this value';
|
|
188
|
-
}
|
|
189
|
-
if (cube.height.value > avg * 1.3) {
|
|
190
|
-
heightState.state = ValueState.Negative;
|
|
191
|
-
heightState.message =
|
|
192
|
-
'A perfect cube should have the same height, breadth and height.\n Decrease this value';
|
|
193
|
-
isValid = false;
|
|
194
|
-
}
|
|
195
|
-
valueStateSummary.push(heightState);
|
|
196
|
-
}
|
|
197
|
-
cube.__applyValueStates(...valueStateSummary);
|
|
198
|
-
// set the validity of the entity itself
|
|
199
|
-
cube.__setValidState(isValid);
|
|
200
|
-
});
|
|
201
|
-
//# sourceMappingURL=BusinessValidators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessValidators.js","sourceRoot":"","sources":["../../protoc-gen-open-models/BusinessValidators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAA0B,MAAM,wBAAwB,CAAC;AAO5E,UAAU,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC,IAAkB,EAAE,EAAE;IAC9D,IACE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,EACrC,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,QAAQ,EAAE;YACxC,wCAAwC;SACzC,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,UAAU,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,IAAc,EAAE,EAAE;IACtD,IAAI,IAAI,CAAC,EAAE,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;QAC7B,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,QAAQ,EAAE;YAC3C,0BAA0B;YAC1B,MAAM;SACP,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9C,CAAC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C,QAAQ,CAAC;YACxC,WAAW,CAAC,OAAO;gBACjB,qHAAqH,CAAC;QAC1H,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;YAClC,WAAW,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC;YACxC,WAAW,CAAC,OAAO;gBACjB,uFAAuF,CAAC;YAC1F,OAAO,GAAG,KAAK,CAAC;QAClB,CAAC;QACD,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC,kBAAkB,CAAC,GAAG,iBAAiB,CAAC,CAAC;IAE9C,wCAAwC;IACxC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC","sourcesContent":["import { Validators } from '@furo/open-models/dist/Validator';\nimport { ValueState, type ValueStateSummary } from '@furo/open-models/dist';\nimport { CubeDefinition } from './furo/cube/CubeDefinition';\n\nimport { DecimalRange } from './furo/type/DecimalRange';\nimport { Defaults } from './furo/type/Defaults';\nimport { Decimal } from './furo/type/Decimal';\n\nValidators.set('furo.type.DecimalRange', (node: DecimalRange) => {\n if (\n parseFloat(node.start.value.toString()) >\n parseFloat(node.end.value.toString())\n ) {\n node.__setValueState(ValueState.Negative, [\n 'decimal.start.must.be.smaller.then.end',\n ]);\n } else {\n node.__setValueState(ValueState.None, ['']);\n }\n});\n\nValidators.set('furo.type.Defaults', (node: Defaults) => {\n if (node.id.value === '----') {\n node.id.__setValueState(ValueState.Negative, [\n 'defaults.id.can.not.be.4',\n '----',\n ]);\n } else {\n node.__setValueState(ValueState.None, ['']);\n }\n});\n\nValidators.set('furo.type.Decimal', (node: Decimal) => {\n if (!node.value.value.match(/^[+-]?(\\d*\\.)?\\d+$/)) {\n // maybe ^[+-]?(\\d*\\.)?\\d*$ ???\n node.__setValueState(ValueState.Negative, [\n 'decimal.invalid.number',\n node.value.value,\n ]);\n } else {\n const fieldConstraints = node.__getConstraints();\n if (fieldConstraints) {\n for (const [constraint, value] of Object.entries(fieldConstraints)) {\n if (constraint === 'minimum') {\n if (parseFloat(node.value.value) < value) {\n node.__setValueState(ValueState.Negative, [\n 'constraint.violation.minimum',\n value,\n node.value.value,\n ]);\n return;\n }\n }\n }\n }\n\n node.__setValueState(ValueState.None, ['']);\n }\n});\n\nValidators.set('furo.cube.CubeDefinition', (cube: CubeDefinition) => {\n // make sure the cubes are cube-ish enough\n /**\n * Implemented Business Validators\n * To ensure that we have a good cube, following business validators are implemented:\n * When l == b == h, we have a perfect cube (value state \"Success\").\n * When we have a deviation of 10% to the average sizes, we recommend adjusting the deviating values (value state \"Informative\").\n * When we have a deviation of 20% to the average sizes, we strongly recommend adjusting the deviating values (value state \"Warning\").\n * When we have a deviation of 30% to the average sizes, we force adjusting the deviating values (value state \"Error\").\n */\n const valueStateSummary: ValueStateSummary[] = [];\n const avg = (cube.length.value + cube.breadth.value + cube.height.value) / 3;\n\n let isValid = true;\n\n if (cube.length.value >= 100 && cube.length.value <= 1000) {\n const lengthState: ValueStateSummary = {\n field: 'length',\n message: '',\n state: ValueState.None,\n };\n\n if (cube.length.value < avg * 0.9) {\n lengthState.state = ValueState.Information;\n lengthState.message =\n 'Please consider to make this value bigger, to have a perfect cube';\n }\n if (cube.length.value < avg * 0.8) {\n lengthState.state = ValueState.Critical;\n lengthState.message =\n 'A perfect cube should have the same length, breadth and height.\\n It is strongly recommended to increase this value';\n }\n if (cube.length.value < avg * 0.7) {\n lengthState.state = ValueState.Negative;\n lengthState.message =\n 'A perfect cube should have the same length, breadth and height.\\n Increase this value';\n isValid = false;\n }\n if (\n cube.length.value === cube.breadth.value &&\n cube.length.value === cube.height.value\n ) {\n lengthState.state = ValueState.Positive;\n }\n if (cube.length.value > avg * 1.1) {\n lengthState.state = ValueState.Information;\n lengthState.message =\n 'Please consider to make this value smaller, to have a perfect cube';\n }\n if (cube.length.value > avg * 1.2) {\n lengthState.state = ValueState.Critical;\n lengthState.message =\n 'A perfect cube should have the same length, breadth and height.\\n It is strongly recommended to decrease this value';\n }\n if (cube.length.value > avg * 1.3) {\n lengthState.state = ValueState.Negative;\n lengthState.message =\n 'A perfect cube should have the same length, breadth and height.\\n Decrease this value';\n isValid = false;\n }\n valueStateSummary.push(lengthState);\n }\n\n if (cube.breadth.value >= 100 && cube.breadth.value <= 1000) {\n const breadthState: ValueStateSummary = {\n field: 'breadth',\n message: '',\n state: ValueState.None,\n };\n\n if (cube.breadth.value < avg * 0.9) {\n breadthState.state = ValueState.Information;\n breadthState.message =\n 'Please consider to make this value bigger, to have a perfect cube';\n }\n\n if (cube.breadth.value < avg * 0.8) {\n breadthState.state = ValueState.Critical;\n breadthState.message =\n 'A perfect cube should have the same breadth, breadth and height.\\n It is strongly recommended to increase this value';\n }\n if (cube.breadth.value < avg * 0.7) {\n breadthState.state = ValueState.Negative;\n breadthState.message =\n 'A perfect cube should have the same breadth, breadth and height.\\n Increase this value';\n isValid = false;\n }\n if (\n cube.length.value === cube.breadth.value &&\n cube.length.value === cube.height.value\n ) {\n breadthState.state = ValueState.Positive;\n }\n if (cube.breadth.value > avg * 1.1) {\n breadthState.state = ValueState.Information;\n breadthState.message =\n 'Please consider to make this value smaller, to have a perfect cube';\n }\n if (cube.breadth.value > avg * 1.2) {\n breadthState.state = ValueState.Critical;\n breadthState.message =\n 'A perfect cube should have the same breadth, breadth and height.\\n It is strongly recommended to decrease this value';\n }\n if (cube.breadth.value > avg * 1.3) {\n breadthState.state = ValueState.Negative;\n breadthState.message =\n 'A perfect cube should have the same breadth, breadth and height.\\n Decrease this value';\n isValid = false;\n }\n valueStateSummary.push(breadthState);\n }\n\n if (cube.height.value >= 100 && cube.height.value <= 1000) {\n const heightState: ValueStateSummary = {\n field: 'height',\n message: '',\n state: ValueState.None,\n };\n\n if (cube.height.value < avg * 0.9) {\n heightState.state = ValueState.Information;\n heightState.message =\n 'Please consider to make this value bigger, to have a perfect cube';\n }\n\n if (cube.height.value < avg * 0.8) {\n heightState.state = ValueState.Critical;\n heightState.message =\n 'A perfect cube should have the same height, height and height.\\n It is strongly recommended to increase this value';\n }\n if (cube.height.value < avg * 0.7) {\n heightState.state = ValueState.Negative;\n heightState.message =\n 'A perfect cube should have the same height, height and height.\\n Increase this value';\n isValid = false;\n }\n if (\n cube.length.value === cube.breadth.value &&\n cube.length.value === cube.height.value\n ) {\n heightState.state = ValueState.Positive;\n }\n if (cube.height.value > avg * 1.1) {\n heightState.state = ValueState.Information;\n heightState.message =\n 'Please consider to make this value smaller, to have a perfect cube';\n }\n if (cube.height.value > avg * 1.2) {\n heightState.state = ValueState.Critical;\n heightState.message =\n 'A perfect cube should have the same height, breadth and height.\\n It is strongly recommended to decrease this value';\n }\n if (cube.height.value > avg * 1.3) {\n heightState.state = ValueState.Negative;\n heightState.message =\n 'A perfect cube should have the same height, breadth and height.\\n Decrease this value';\n isValid = false;\n }\n valueStateSummary.push(heightState);\n }\n\n cube.__applyValueStates(...valueStateSummary);\n\n // set the validity of the entity itself\n cube.__setValidState(isValid);\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ToString, ValueOf } from '@furo/open-models/dist';
|
|
2
|
-
/**
|
|
3
|
-
* In this file, we set the toString() and valueOf() methods for our types.
|
|
4
|
-
*/
|
|
5
|
-
ToString.set('furo.cube.CubeEntity', (d) => d.displayName.value);
|
|
6
|
-
/**
|
|
7
|
-
* Let the colour type return a 'rgba(22,22,22,1)' color, this can be directly used in the template literals
|
|
8
|
-
*/
|
|
9
|
-
ToString.set('furo.cube.Colour', (d) => `rgba(${d.red.value}, ${d.green.value}, ${d.blue.value}, ${d.alpha.value.toFixed(2)})`);
|
|
10
|
-
// Returns the volume of the cube. This comes very handy if you use it in calculations.
|
|
11
|
-
ValueOf.set('furo.cube.CubeEntity', (d) => d.cube.height.value * d.cube.breadth.value * d.cube.length.value);
|
|
12
|
-
ToString.set('furo.type.Decimal', (d) => d.value.value);
|
|
13
|
-
ValueOf.set('furo.type.Decimal', (d) => parseFloat(d.value.value));
|
|
14
|
-
ToString.set('furo.type.DecimalRange', (d) => `${d.start} - ${d.end}`);
|
|
15
|
-
ToString.set('furo.type.Identifier', (v) => `${v.id}`);
|
|
16
|
-
ToString.set('furo.type.Defaults', (v) => `${v.id}`);
|
|
17
|
-
//# sourceMappingURL=CustomPrototypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomPrototypes.js","sourceRoot":"","sources":["../../protoc-gen-open-models/CustomPrototypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAO3D;;GAEG;AAEH,QAAQ,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE7E;;GAEG;AACH,QAAQ,CAAC,GAAG,CACV,kBAAkB,EAClB,CAAC,CAAS,EAAE,EAAE,CACZ,QAAQ,CAAC,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,KACnC,CAAC,CAAC,IAAI,CAAC,KACT,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CACnC,CAAC;AAEF,uFAAuF;AACvF,OAAO,CAAC,GAAG,CACT,sBAAsB,EACtB,CAAC,CAAa,EAAE,EAAE,CAChB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CACnE,CAAC;AAEF,QAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACjE,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,CAAU,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAE5E,QAAQ,CAAC,GAAG,CACV,wBAAwB,EACxB,CAAC,CAAe,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,GAAG,EAAE,CAC7C,CAAC;AACF,QAAQ,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,CAAa,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACnE,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAa,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC","sourcesContent":["import { ToString, ValueOf } from '@furo/open-models/dist';\nimport { CubeEntity } from './furo/cube/CubeEntity';\nimport { Colour } from './furo/cube/Colour';\nimport { Decimal } from './furo/type/Decimal';\nimport { DecimalRange } from './furo/type/DecimalRange';\nimport { Identifier } from './furo/type/Identifier';\n\n/**\n * In this file, we set the toString() and valueOf() methods for our types.\n */\n\nToString.set('furo.cube.CubeEntity', (d: CubeEntity) => d.displayName.value);\n\n/**\n * Let the colour type return a 'rgba(22,22,22,1)' color, this can be directly used in the template literals\n */\nToString.set(\n 'furo.cube.Colour',\n (d: Colour) =>\n `rgba(${d.red.value}, ${d.green.value}, ${\n d.blue.value\n }, ${d.alpha.value.toFixed(2)})`,\n);\n\n// Returns the volume of the cube. This comes very handy if you use it in calculations.\nValueOf.set(\n 'furo.cube.CubeEntity',\n (d: CubeEntity) =>\n d.cube.height.value * d.cube.breadth.value * d.cube.length.value,\n);\n\nToString.set('furo.type.Decimal', (d: Decimal) => d.value.value);\nValueOf.set('furo.type.Decimal', (d: Decimal) => parseFloat(d.value.value));\n\nToString.set(\n 'furo.type.DecimalRange',\n (d: DecimalRange) => `${d.start} - ${d.end}`,\n);\nToString.set('furo.type.Identifier', (v: Identifier) => `${v.id}`);\nToString.set('furo.type.Defaults', (v: Identifier) => `${v.id}`);\n"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { FLOAT, FieldNode, INT32 } from '@furo/open-models/dist/index';
|
|
2
|
-
/**
|
|
3
|
-
* @interface IColour
|
|
4
|
-
*/
|
|
5
|
-
export interface IColour {
|
|
6
|
-
/**
|
|
7
|
-
* multiline leading comment
|
|
8
|
-
* the red part
|
|
9
|
-
*/
|
|
10
|
-
red?: number;
|
|
11
|
-
/**
|
|
12
|
-
* the green part
|
|
13
|
-
*/
|
|
14
|
-
green?: number;
|
|
15
|
-
blue?: number;
|
|
16
|
-
alpha?: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @interface TColour
|
|
20
|
-
*/
|
|
21
|
-
export interface TColour {
|
|
22
|
-
/**
|
|
23
|
-
* multiline leading comment
|
|
24
|
-
* the red part
|
|
25
|
-
*/
|
|
26
|
-
red?: number;
|
|
27
|
-
/**
|
|
28
|
-
* the green part
|
|
29
|
-
*/
|
|
30
|
-
green?: number;
|
|
31
|
-
blue?: number;
|
|
32
|
-
alpha?: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Colour
|
|
36
|
-
*/
|
|
37
|
-
export declare class Colour extends FieldNode {
|
|
38
|
-
private _red;
|
|
39
|
-
private _green;
|
|
40
|
-
private _blue;
|
|
41
|
-
private _alpha;
|
|
42
|
-
__defaultValues: IColour;
|
|
43
|
-
constructor(initData?: IColour, parent?: FieldNode, parentAttributeName?: string);
|
|
44
|
-
get red(): INT32;
|
|
45
|
-
set red(v: number);
|
|
46
|
-
get green(): INT32;
|
|
47
|
-
set green(v: number);
|
|
48
|
-
get blue(): INT32;
|
|
49
|
-
set blue(v: number);
|
|
50
|
-
get alpha(): FLOAT;
|
|
51
|
-
set alpha(v: number);
|
|
52
|
-
fromLiteral(data: IColour): void;
|
|
53
|
-
toLiteral(): IColour;
|
|
54
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
// Code generated by furo protoc-gen-open-models. DO NOT EDIT.
|
|
2
|
-
// protoc-gen-open-models version: ????
|
|
3
|
-
import { FLOAT, FieldNode, INT32, Registry, } from '@furo/open-models/dist/index';
|
|
4
|
-
/**
|
|
5
|
-
* Colour
|
|
6
|
-
*/
|
|
7
|
-
export class Colour extends FieldNode {
|
|
8
|
-
constructor(initData, parent, parentAttributeName) {
|
|
9
|
-
super(undefined, parent, parentAttributeName);
|
|
10
|
-
this.__meta.typeName = 'furo.cube.Colour';
|
|
11
|
-
this.__meta.nodeFields = [
|
|
12
|
-
{
|
|
13
|
-
fieldName: 'red',
|
|
14
|
-
protoName: 'red',
|
|
15
|
-
FieldConstructor: INT32,
|
|
16
|
-
constraints: { maximum: 255 },
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
fieldName: 'green',
|
|
20
|
-
protoName: 'green',
|
|
21
|
-
FieldConstructor: INT32,
|
|
22
|
-
constraints: { maximum: 255 },
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
fieldName: 'blue',
|
|
26
|
-
protoName: 'blue',
|
|
27
|
-
FieldConstructor: INT32,
|
|
28
|
-
constraints: { maximum: 255 },
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
fieldName: 'alpha',
|
|
32
|
-
protoName: 'alpha',
|
|
33
|
-
FieldConstructor: FLOAT,
|
|
34
|
-
constraints: { maximum: 1 },
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
// Initialize the fields
|
|
38
|
-
// multiline leading comment
|
|
39
|
-
// the red part
|
|
40
|
-
this._red = new INT32(undefined, this, 'red');
|
|
41
|
-
// the green part
|
|
42
|
-
this._green = new INT32(undefined, this, 'green');
|
|
43
|
-
this._blue = new INT32(undefined, this, 'blue');
|
|
44
|
-
this._alpha = new FLOAT(undefined, this, 'alpha');
|
|
45
|
-
// Set required fields
|
|
46
|
-
[].forEach(fieldName => {
|
|
47
|
-
this[fieldName].__meta.required = true;
|
|
48
|
-
});
|
|
49
|
-
// Default values from openAPI annotations
|
|
50
|
-
this.__defaultValues = {
|
|
51
|
-
alpha: 1.0,
|
|
52
|
-
blue: 88.0,
|
|
53
|
-
green: 34.0,
|
|
54
|
-
red: 22.0,
|
|
55
|
-
};
|
|
56
|
-
// Initialize the fields with init data
|
|
57
|
-
if (initData !== undefined) {
|
|
58
|
-
this.__fromLiteral({ ...this.__defaultValues, ...initData });
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
this.__fromLiteral(this.__defaultValues);
|
|
62
|
-
}
|
|
63
|
-
// Set readonly fields after the init, so child nodes are readonly too
|
|
64
|
-
[].forEach(fieldName => {
|
|
65
|
-
this[fieldName].__readonly = true;
|
|
66
|
-
});
|
|
67
|
-
this.__meta.isPristine = true;
|
|
68
|
-
}
|
|
69
|
-
// multiline leading comment
|
|
70
|
-
// the red part
|
|
71
|
-
get red() {
|
|
72
|
-
return this._red;
|
|
73
|
-
}
|
|
74
|
-
set red(v) {
|
|
75
|
-
this.__PrimitivesSetter(this._red, v);
|
|
76
|
-
}
|
|
77
|
-
// the green part
|
|
78
|
-
get green() {
|
|
79
|
-
return this._green;
|
|
80
|
-
}
|
|
81
|
-
set green(v) {
|
|
82
|
-
this.__PrimitivesSetter(this._green, v);
|
|
83
|
-
}
|
|
84
|
-
get blue() {
|
|
85
|
-
return this._blue;
|
|
86
|
-
}
|
|
87
|
-
set blue(v) {
|
|
88
|
-
this.__PrimitivesSetter(this._blue, v);
|
|
89
|
-
}
|
|
90
|
-
get alpha() {
|
|
91
|
-
return this._alpha;
|
|
92
|
-
}
|
|
93
|
-
set alpha(v) {
|
|
94
|
-
this.__PrimitivesSetter(this._alpha, v);
|
|
95
|
-
}
|
|
96
|
-
fromLiteral(data) {
|
|
97
|
-
super.__fromLiteral(data);
|
|
98
|
-
}
|
|
99
|
-
toLiteral() {
|
|
100
|
-
return super.__toLiteral();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
Registry.register('furo.cube.Colour', Colour);
|
|
104
|
-
//# sourceMappingURL=Colour.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Colour.js","sourceRoot":"","sources":["../../../../protoc-gen-open-models/furo/cube/Colour.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,uCAAuC;AAEvC,OAAO,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,GACT,MAAM,8BAA8B,CAAC;AAsCtC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,SAAS;IAcnC,YACE,QAAkB,EAClB,MAAkB,EAClB,mBAA4B;QAE5B,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,kBAAkB,CAAC;QAE1C,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG;YACvB;gBACE,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,KAAK;gBAChB,gBAAgB,EAAE,KAAK;gBACvB,WAAW,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;aAC9B;YACD;gBACE,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,KAAK;gBACvB,WAAW,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;aAC9B;YACD;gBACE,SAAS,EAAE,MAAM;gBACjB,SAAS,EAAE,MAAM;gBACjB,gBAAgB,EAAE,KAAK;gBACvB,WAAW,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;aAC9B;YACD;gBACE,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,KAAK;gBACvB,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;aAC5B;SACF,CAAC;QAEF,wBAAwB;QACxB,6BAA6B;QAC7B,gBAAgB;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,CA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S;QACtB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACxC,CAAC;IAED,kBAAkB;IAClB,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAW,KAAK,CAAC,CAAS;QACxB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED,IAAW,IAAI,CAAC,CAAS;QACvB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,IAAW,KAAK,CAAC,CAAS;QACxB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,WAAW,CAAC,IAAa;QACvB,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS;QACP,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;CACF;AAED,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC","sourcesContent":["// Code generated by furo protoc-gen-open-models. DO NOT EDIT.\n// protoc-gen-open-models version: ????\n\nimport {\n FLOAT,\n FieldNode,\n INT32,\n Registry,\n} from '@furo/open-models/dist/index';\n\n/**\n * @interface IColour\n */\nexport interface IColour {\n /**\n * multiline leading comment\n * the red part\n */\n red?: number; // with constraints\n\n /**\n * the green part\n */\n green?: number;\n blue?: number;\n alpha?: number;\n}\n\n/**\n * @interface TColour\n */\nexport interface TColour {\n /**\n * multiline leading comment\n * the red part\n */\n red?: number; // with constraints\n\n /**\n * the green part\n */\n green?: number;\n blue?: number;\n alpha?: number;\n}\n\n/**\n * Colour\n */\nexport class Colour extends FieldNode {\n // multiline leading comment\n // the red part\n private _red: INT32; // with constraints\n\n // the green part\n private _green: INT32;\n\n private _blue: INT32;\n\n private _alpha: FLOAT;\n\n public __defaultValues: IColour;\n\n constructor(\n initData?: IColour,\n parent?: FieldNode,\n parentAttributeName?: string,\n ) {\n super(undefined, parent, parentAttributeName);\n this.__meta.typeName = 'furo.cube.Colour';\n\n this.__meta.nodeFields = [\n {\n fieldName: 'red',\n protoName: 'red',\n FieldConstructor: INT32,\n constraints: { maximum: 255 },\n },\n {\n fieldName: 'green',\n protoName: 'green',\n FieldConstructor: INT32,\n constraints: { maximum: 255 },\n },\n {\n fieldName: 'blue',\n protoName: 'blue',\n FieldConstructor: INT32,\n constraints: { maximum: 255 },\n },\n {\n fieldName: 'alpha',\n protoName: 'alpha',\n FieldConstructor: FLOAT,\n constraints: { maximum: 1 },\n },\n ];\n\n // Initialize the fields\n // multiline leading comment\n // the red part\n this._red = new INT32(undefined, this, 'red');\n\n // the green part\n this._green = new INT32(undefined, this, 'green');\n\n this._blue = new INT32(undefined, this, 'blue');\n\n this._alpha = new FLOAT(undefined, this, 'alpha');\n\n // Set required fields\n [].forEach(fieldName => {\n (this[fieldName as keyof Colour] as FieldNode).__meta.required = true;\n });\n\n // Default values from openAPI annotations\n this.__defaultValues = {\n alpha: 1.0,\n blue: 88.0,\n green: 34.0,\n red: 22.0,\n };\n\n // Initialize the fields with init data\n if (initData !== undefined) {\n this.__fromLiteral({ ...this.__defaultValues, ...initData });\n } else {\n this.__fromLiteral(this.__defaultValues);\n }\n\n // Set readonly fields after the init, so child nodes are readonly too\n [].forEach(fieldName => {\n (this[fieldName as keyof Colour] as FieldNode).__readonly = true;\n });\n\n this.__meta.isPristine = true;\n }\n\n // multiline leading comment\n // the red part\n public get red(): INT32 {\n return this._red;\n }\n\n public set red(v: number) {\n this.__PrimitivesSetter(this._red, v);\n }\n\n // the green part\n public get green(): INT32 {\n return this._green;\n }\n\n public set green(v: number) {\n this.__PrimitivesSetter(this._green, v);\n }\n\n public get blue(): INT32 {\n return this._blue;\n }\n\n public set blue(v: number) {\n this.__PrimitivesSetter(this._blue, v);\n }\n\n public get alpha(): FLOAT {\n return this._alpha;\n }\n\n public set alpha(v: number) {\n this.__PrimitivesSetter(this._alpha, v);\n }\n\n fromLiteral(data: IColour) {\n super.__fromLiteral(data);\n }\n\n toLiteral(): IColour {\n return super.__toLiteral();\n }\n}\n\nRegistry.register('furo.cube.Colour', Colour);\n"]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { BOOLEAN, DOUBLE, ENUM, FieldNode, INT32, STRING } from '@furo/open-models/dist/index';
|
|
2
|
-
import { Colour as FuroCubeColour, IColour as IFuroCubeColour, TColour as TFuroCubeColour } from './Colour.js';
|
|
3
|
-
import { Materials as FuroCubeMaterials } from './Materials.js';
|
|
4
|
-
/**
|
|
5
|
-
* @interface ICubeDefinition
|
|
6
|
-
*/
|
|
7
|
-
export interface ICubeDefinition {
|
|
8
|
-
length?: number;
|
|
9
|
-
breadth?: number;
|
|
10
|
-
height?: number;
|
|
11
|
-
colour?: IFuroCubeColour;
|
|
12
|
-
material?: FuroCubeMaterials | string;
|
|
13
|
-
str?: string;
|
|
14
|
-
boo?: boolean;
|
|
15
|
-
num?: number;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @interface TCubeDefinition
|
|
19
|
-
*/
|
|
20
|
-
export interface TCubeDefinition {
|
|
21
|
-
length?: number;
|
|
22
|
-
breadth?: number;
|
|
23
|
-
height?: number;
|
|
24
|
-
colour?: TFuroCubeColour;
|
|
25
|
-
material?: FuroCubeMaterials | string;
|
|
26
|
-
str?: string;
|
|
27
|
-
boo?: boolean;
|
|
28
|
-
num?: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* CubeDefinition
|
|
32
|
-
*/
|
|
33
|
-
export declare class CubeDefinition extends FieldNode {
|
|
34
|
-
private _length;
|
|
35
|
-
private _breadth;
|
|
36
|
-
private _height;
|
|
37
|
-
private _colour;
|
|
38
|
-
private _material;
|
|
39
|
-
private _str;
|
|
40
|
-
private _boo;
|
|
41
|
-
private _num;
|
|
42
|
-
__defaultValues: ICubeDefinition;
|
|
43
|
-
constructor(initData?: ICubeDefinition, parent?: FieldNode, parentAttributeName?: string);
|
|
44
|
-
get length(): DOUBLE;
|
|
45
|
-
set length(v: number);
|
|
46
|
-
get breadth(): DOUBLE;
|
|
47
|
-
set breadth(v: number);
|
|
48
|
-
get height(): DOUBLE;
|
|
49
|
-
set height(v: number);
|
|
50
|
-
get colour(): FuroCubeColour;
|
|
51
|
-
set colour(v: IFuroCubeColour);
|
|
52
|
-
get material(): ENUM<FuroCubeMaterials>;
|
|
53
|
-
set material(v: FuroCubeMaterials);
|
|
54
|
-
get str(): STRING;
|
|
55
|
-
set str(v: string);
|
|
56
|
-
get boo(): BOOLEAN;
|
|
57
|
-
set boo(v: boolean);
|
|
58
|
-
get num(): INT32;
|
|
59
|
-
set num(v: number);
|
|
60
|
-
fromLiteral(data: ICubeDefinition): void;
|
|
61
|
-
toLiteral(): ICubeDefinition;
|
|
62
|
-
}
|