From 6515da3f23089a1a254f0be0b7700420b70bcee1 Mon Sep 17 00:00:00 2001 From: Quixos Template Publisher Date: Sat, 1 Jan 2000 00:00:00 +0000 Subject: [PATCH] Export template source from e33714a5ca38429d1bdb77a961a14461697944f5:quixos-instance/interfaces/event-subscription --- .quixos-template-source.json | 4 ++++ interface.qx | 18 ++++++++++++++++++ quixos.lock | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 .quixos-template-source.json create mode 100644 interface.qx create mode 100644 quixos.lock diff --git a/.quixos-template-source.json b/.quixos-template-source.json new file mode 100644 index 0000000..91f30f9 --- /dev/null +++ b/.quixos-template-source.json @@ -0,0 +1,4 @@ +{ + "monorepoCommit": "e33714a5ca38429d1bdb77a961a14461697944f5", + "sourcePath": "quixos-instance/interfaces/event-subscription" +} diff --git a/interface.qx b/interface.qx new file mode 100644 index 0000000..66426aa --- /dev/null +++ b/interface.qx @@ -0,0 +1,18 @@ +import interface EventStream; +import interface EventHandler; +type StartPosition = variant id "org.quixos.events:start@1" { + future id "events:start:future" : unit; + retained id "events:start:retained" : unit; + afterCursor id "events:start:after" : string; +}; +interface EventSubscription id "interface:org.quixos.events:subscription" revision "interface:org.quixos.events:subscription@1" { + operation attach id "events:attach" : record {source:interface-ref>;handler:interface-ref>;parameters:Parameters;start:StartPosition;} -> unit { + call id "events:attach:call" execution transaction; + } + queryable value status id "events:status" : record {status:string;generation:uint64;cursor:uint64;failure:optional;} { + get id "events:status:get" execution snapshot; + } + operation pause id "events:pause" : unit -> unit {call id "events:pause:call" execution transaction;} + operation resume id "events:resume" : unit -> unit {call id "events:resume:call" execution transaction;} + operation retire id "events:retire" : unit -> unit {call id "events:retire:call" execution transaction;} +} diff --git a/quixos.lock b/quixos.lock new file mode 100644 index 0000000..ac2b589 --- /dev/null +++ b/quixos.lock @@ -0,0 +1,5 @@ +quixos-lock version 1 { + quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "e33714a5ca38429d1bdb77a961a14461697944f5"; } + interface EventStream source { repository "https://repos.quixos.org/quixos-studio/interface-event-stream.git"; commit "5d9409557059ca2a3247af080a33516985916f66"; } + interface EventHandler source { repository "https://repos.quixos.org/quixos-studio/interface-event-handler.git"; commit "a57f8a5f4636228e63feeb83d4809a9f58367d78"; } +}