Export template source from e33714a5ca38429d1bdb77a961a14461697944f5:examples/local-first/interfaces/reading-feature
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"monorepoCommit": "e33714a5ca38429d1bdb77a961a14461697944f5",
|
||||
"sourcePath": "examples/local-first/interfaces/reading-feature"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import interface ReadingOwner;
|
||||
external atom ReadingJobObject id "atom:reading:job";
|
||||
external interface ReadingReader revision "interface:reading:reader@1";
|
||||
type FeatureData = record {name:string;processor:string;enabled:bool;configRevision:uint32;};
|
||||
interface ReadingFeature id "interface:reading:feature" revision "interface:reading:feature@1" {
|
||||
queryable relation authoring id "reading:feature:authoring" : optional-one atom ReadingJobObject {resolve id "reading:feature:authoring:resolve" execution snapshot;connect id "reading:feature:authoring:connect" execution transaction;}
|
||||
operation setEnabled id "reading:feature:set-enabled" : bool -> unit {call id "reading:feature:set-enabled:call" execution transaction;}
|
||||
queryable relation reader id "reading:feature:reader" : optional-one interface ReadingReader {resolve id "reading:feature:reader:resolve" execution snapshot;connect id "reading:feature:reader:connect" execution transaction;}
|
||||
queryable value data id "reading:feature:data" : FeatureData {get id "reading:feature:data:get" execution snapshot;}
|
||||
value processorRevision id "reading:feature:processor-revision" : string {get id "reading:feature:processor-revision:get" execution snapshot;}
|
||||
queryable value options id "reading:feature:options" : string {get id "reading:feature:options:get" execution snapshot;}
|
||||
operation configureOptions id "reading:feature:configure-options" : record {expectedRevision:uint32;options:string;} -> unit {call id "reading:feature:configure-options:call" execution transaction;}
|
||||
queryable relation library id "reading:feature:library" : exactly-one interface ReadingOwner {resolve id "reading:feature:library:resolve" execution snapshot;}
|
||||
operation configure id "reading:feature:configure" : record {expectedRevision:uint32;name:string;enabled:bool;} -> unit {call id "reading:feature:configure:call" execution transaction;}
|
||||
operation remove id "reading:feature:remove" : unit -> unit {call id "reading:feature:remove:call" execution transaction;}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
quixos-lock version 1 {
|
||||
quixos source { repository "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git"; commit "e33714a5ca38429d1bdb77a961a14461697944f5"; }
|
||||
interface ReadingOwner source { repository "https://repos.quixos.org/quixos-local-first-examples/interface-reading-owner.git"; commit "ca870ff6dc5ee7d8cc7f4ad1754e48fcf3f250cf"; }
|
||||
}
|
||||
Reference in New Issue
Block a user