Export template source from be30143a326d5d7d7b0cbabea5bc5ac0301ef5b9:examples/local-first/packages/gutenberg-runtime

This commit is contained in:
Quixos Template Publisher
2000-01-01 00:00:00 +00:00
commit da97d4b35c
13 changed files with 624 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
symbol JavaScript id "target:org.quixos.execution.javascript@1";
external atom GutenbergCatalogObject id "atom:gutenberg:catalog";
import interface GutenbergCatalog;
type GutenbergBook = record {ebook:uint32;title:string;author:string;language:string;};
type GutenbergExcerpt = record {book:GutenbergBook;url:string;text:string;words:uint32;};
package GutenbergRuntime id "package:gutenberg:runtime" revision "package:gutenberg:runtime@1" {
function create id "gutenberg:create" : unit -> atom-ref<GutenbergCatalogObject> execution transaction targets [JavaScript,server] requires {creation catalog id "catalog" : GutenbergCatalogObject input record {name:string;};};
operation search id "gutenberg:search" : string -> list<GutenbergBook> mode call execution remote receiver any;
operation readBook id "gutenberg:read" : record {ebook:uint32;} -> GutenbergExcerpt mode call execution remote receiver any;
}