defmodule Cratis.Chronicle.Contracts.Projections.AutoMap do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Inherit, 0
field :Disabled, 1
field :Enabled, 2
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionOwner do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :PROJECTION_OWNER_None, 0
field :PROJECTION_OWNER_Client, 1
field :PROJECTION_OWNER_Server, 2
end
defmodule Cratis.Chronicle.Contracts.Projections.ReadModelObserverType do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :NotSet, 0
field :Reducer, 1
field :Projection, 2
end
defmodule Cratis.Chronicle.Contracts.Projections.ReadModelOwner do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :READ_MODEL_OWNER_None, 0
field :READ_MODEL_OWNER_Client, 1
field :READ_MODEL_OWNER_Server, 2
end
defmodule Cratis.Chronicle.Contracts.Projections.ReadModelSource do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Unknown, 0
field :Code, 1
field :User, 2
end
defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.ChildrenEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.NestedEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :IdentifiedBy, 1, type: :string
field :From, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition
field :Join, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition
field :Children, 4,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.ChildrenEntry,
map: true
field :All, 5, type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition
field :FromEventProperty, 6,
type: Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition
field :RemovedWith, 7,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition
field :RemovedWithJoin, 8,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition
field :AutoMap, 9, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true
field :Nested, 10,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.NestedEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :ContainerName, 1, type: :string
field :Schema, 2, type: :string
field :Identifier, 3, type: :string
field :DisplayName, 4, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.EventType do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Id, 1, type: :string
field :Generation, 2, type: :uint32
field :Tombstone, 3, type: :bool
end
defmodule Cratis.Chronicle.Contracts.Projections.FromDefinition.PropertiesEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.FromDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Properties, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.FromDefinition.PropertiesEntry,
map: true
field :Key, 2, type: :string
field :ParentKey, 3, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.FromDerivativesDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventTypes, 1, repeated: true, type: Cratis.Chronicle.Contracts.Projections.EventType
field :From, 2, type: Cratis.Chronicle.Contracts.Projections.FromDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Event, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
field :PropertyExpression, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.FromEveryDefinition.PropertiesEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.FromEveryDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Properties, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition.PropertiesEntry,
map: true
field :IncludeChildren, 2, type: :bool
field :AutoMap, 3, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true
end
defmodule Cratis.Chronicle.Contracts.Projections.GenerateDeclarativeCodeRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
field :Declaration, 3, type: :string
field :DraftReadModel, 4, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.GenerateModelBoundCodeRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
field :Declaration, 3, type: :string
field :DraftReadModel, 4, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.GeneratedCode do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Code, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.GetAllDeclarationsRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.GetAllDefinitionsRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :items, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionWithDeclaration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :items, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionWithDeclaration
end
defmodule Cratis.Chronicle.Contracts.Projections.IndexDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :PropertyPath, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.JoinDefinition.PropertiesEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.JoinDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :On, 1, type: :string
field :Properties, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.JoinDefinition.PropertiesEntry,
map: true
field :Key, 3, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.FromDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.JoinDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.RemovedWithDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.RemovedWithJoinDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.OneOf_GeneratedCode_ProjectionDeclarationParsingErrors do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Value0, 1, type: Cratis.Chronicle.Contracts.Projections.GeneratedCode
field :Value1, 2,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationParsingErrors
end
defmodule Cratis.Chronicle.Contracts.Projections.OneOf_ProjectionPreview_ProjectionDeclarationParsingErrors do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Value0, 1, type: Cratis.Chronicle.Contracts.Projections.ProjectionPreview
field :Value1, 2,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationParsingErrors
end
defmodule Cratis.Chronicle.Contracts.Projections.PreviewProjectionRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
field :EventSequenceId, 3, type: :string
field :Declaration, 4, type: :string
field :DraftReadModel, 5, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationParsingErrors do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Errors, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Message, 1, type: :string
field :Line, 2, type: :int32
field :Column, 3, type: :int32
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.ChildrenEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.NestedEntry do
@moduledoc false
use Protobuf, map: true, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :key, 1, type: :string
field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventSequenceId, 1, type: :string
field :Identifier, 2, type: :string
field :ReadModel, 3, type: :string
field :IsActive, 4, type: :bool
field :IsRewindable, 5, type: :bool
field :InitialModelState, 6, type: :string
field :From, 7,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition
field :Join, 8,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition
field :Children, 9,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.ChildrenEntry,
map: true
field :FromEvery, 10,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.FromDerivativesDefinition
field :All, 11, type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition
field :FromEventProperty, 12,
type: Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition
field :RemovedWith, 13,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition
field :RemovedWithJoin, 14,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition
field :LastUpdated, 15, type: Cratis.Chronicle.Contracts.Projections.SerializableDateTimeOffset
field :Tags, 16, repeated: true, type: :string
field :AutoMap, 17, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true
field :Nested, 18,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.NestedEntry,
map: true
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionPreview do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :ReadModelEntries, 1, repeated: true, type: :string
field :ReadModel, 2, type: Cratis.Chronicle.Contracts.Projections.ReadModelDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.ProjectionWithDeclaration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Identifier, 1, type: :string
field :ContainerName, 2, type: :string
field :Declaration, 3, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.ReadModelDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Type, 1, type: Cratis.Chronicle.Contracts.Projections.ReadModelType
field :ContainerName, 2, type: :string
field :DisplayName, 3, type: :string
field :Sink, 4, type: Cratis.Chronicle.Contracts.Projections.SinkDefinition
field :Schema, 5, type: :string
field :Indexes, 6, repeated: true, type: Cratis.Chronicle.Contracts.Projections.IndexDefinition
field :ObserverType, 7,
type: Cratis.Chronicle.Contracts.Projections.ReadModelObserverType,
enum: true
field :ObserverIdentifier, 8, type: :string
field :Owner, 9, type: Cratis.Chronicle.Contracts.Projections.ReadModelOwner, enum: true
field :Source, 10, type: Cratis.Chronicle.Contracts.Projections.ReadModelSource, enum: true
end
defmodule Cratis.Chronicle.Contracts.Projections.ReadModelType do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Identifier, 1, type: :string
field :Generation, 2, type: :uint32
end
defmodule Cratis.Chronicle.Contracts.Projections.RegisterRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Owner, 2, type: Cratis.Chronicle.Contracts.Projections.ProjectionOwner, enum: true
field :Projections, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.RemovedWithDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: :string
field :ParentKey, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.RemovedWithJoinDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Key, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.SaveProjectionRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
field :EventSequenceId, 3, type: :string
field :Declaration, 4, type: :string
field :DraftReadModel, 5, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end
defmodule Cratis.Chronicle.Contracts.Projections.SaveProjectionResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Errors, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError
end
defmodule Cratis.Chronicle.Contracts.Projections.SerializableDateTimeOffset do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Value, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Projections.SinkDefinition do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :ConfigurationId, 1, type: Bcl.Guid
field :TypeId, 2, type: Bcl.Guid
end
defmodule Cratis.Chronicle.Contracts.Projections.Projections.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.Projections.Projections",
protoc_gen_elixir_version: "0.16.0"
rpc :GenerateDeclarativeCode,
Cratis.Chronicle.Contracts.Projections.GenerateDeclarativeCodeRequest,
Cratis.Chronicle.Contracts.Projections.OneOf_GeneratedCode_ProjectionDeclarationParsingErrors
rpc :GenerateModelBoundCode,
Cratis.Chronicle.Contracts.Projections.GenerateModelBoundCodeRequest,
Cratis.Chronicle.Contracts.Projections.OneOf_GeneratedCode_ProjectionDeclarationParsingErrors
rpc :GetAllDeclarations,
Cratis.Chronicle.Contracts.Projections.GetAllDeclarationsRequest,
Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionWithDeclaration
rpc :GetAllDefinitions,
Cratis.Chronicle.Contracts.Projections.GetAllDefinitionsRequest,
Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionDefinition
rpc :Preview,
Cratis.Chronicle.Contracts.Projections.PreviewProjectionRequest,
Cratis.Chronicle.Contracts.Projections.OneOf_ProjectionPreview_ProjectionDeclarationParsingErrors
rpc :Register, Cratis.Chronicle.Contracts.Projections.RegisterRequest, Google.Protobuf.Empty
rpc :Save,
Cratis.Chronicle.Contracts.Projections.SaveProjectionRequest,
Cratis.Chronicle.Contracts.Projections.SaveProjectionResult
end
defmodule Cratis.Chronicle.Contracts.Projections.Projections.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Projections.Projections.Service
end