1187 lines
75 KiB
TypeScript
1187 lines
75 KiB
TypeScript
// Generated by quixos-codegen-ts. Do not edit. Binding ABI version 1.
|
|||
|
|
import { defineQxInterfaceContract, bindQxHandler, type QxObjectRef, type QxWatchHandle, type QxHandler, type QxDerived, type QxContextLifecycle, type QxConformer, type QxInterfaceContract, type QxLiveValue, type QxQueryDescriptor, type QxHandlerSpec, type QxMessages } from "@quixos/camino-package-runtime";
|
||
|
|
|
||
|
|
export const packageRevisionId = "package:project-react-runtime@1";
|
||
|
|
declare const appliedType: unique symbol;
|
||
|
|
type QxApplied<Definition extends string, Arguments extends readonly unknown[]> = string & {readonly [appliedType]: (value: [Definition, Arguments]) => [Definition, Arguments]};
|
||
|
|
export type Contexts = { "createComponent": { "conform": QxConformer; "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxObjectRef<"atom:atom:project">; "ports": { } } & QxContextLifecycle<{ "conform": QxConformer; "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": QxObjectRef<"atom:atom:project">; "ports": { } } & {signal?: AbortSignal}>; "propsGet": { "conform": QxConformer; "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tags.resolve": () => Promise<Array<QxObjectRef<"atom:atom:tag">>>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tags.resolve": () => Promise<Array<QxObjectRef<"atom:atom:tag">>>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null> }> } } } & QxContextLifecycle<{ "conform": QxConformer; "objectId": QxObjectRef<"atom:atom:project-react-component">; "input": null; "ports": { "named": { "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }> }; "tasks": { "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">
|
||
|
|
export type Results = { "createComponent": QxObjectRef<"atom:atom:project-react-component">; "propsGet": { "named": QxObjectRef<"interface:interface:named@1">; "tasks": QxObjectRef<"interface:interface:project-tasks@1"> }; "propsWatch": { "named": QxObjectRef<"interface:interface:named@1">; "tasks": QxObjectRef<"interface:interface:project-tasks@1"> }; "propsWatchStop": null; "sourceGet": string };
|
||
|
|
export type Implementation = { "createComponent": QxHandler<Contexts["createComponent"], QxObjectRef<"atom:atom:project-react-component">>; "propsGet": QxHandler<Contexts["propsGet"], { "named": QxObjectRef<"interface:interface:named@1">; "tasks": QxObjectRef<"interface:interface:project-tasks@1"> }> | QxDerived<Contexts["propsGet"], { "named": QxObjectRef<"interface:interface:named@1">; "tasks": QxObjectRef<"interface:interface:project-tasks@1"> }>; "propsWatch": QxDerived<Contexts["propsWatch"], { "named": QxObjectRef<"interface:interface:named@1">; "tasks": QxObjectRef<"interface:interface:project-tasks@1"> }>; "propsWatchStop": QxHandler<Contexts["propsWatchStop"], null>; "sourceGet": QxHandler<Contexts["sourceGet"], string> | QxDerived<Contexts["sourceGet"], string> };
|
||
|
|
export type QueryVariables = { "Tasks": { "first": number; "after": (string | null); "statuses": Array<string> }; "TaggedTasks": { "first": number; "after": (string | null); "statuses": Array<string>; "tags": Array<QxObjectRef<"interface:interface:tag-data@1">> }; "UntaggedTasks": { "first": number; "after": (string | null); "statuses": Array<string> }; "Catalog": { }; "Summary": { } };
|
||
|
|
export type QueryResults = { "Tasks": { "root": { "tasks": { "entries": Array<{ "key": string; "node": { "_qx": { "ref": QxObjectRef<"interface:interface:task-data@1">; "relations": { "completions": { "aggregate": { "count": bigint; "max": { "completedAt": (number | null) } } } } }; "title": string; "status": string; "priority": string; "dueDate": string; "repeatDays": number; "estimatedHours": number; "tags": { "entries": Array<{ "node": { "_qx": { "ref": QxObjectRef<"interface:interface:tag-data@1"> }; "name": string; "color": string } }> } } }>; "pageInfo": { "hasNextPage": boolean; "endCursor": (string | null) } } } }; "TaggedTasks": { "root": { "tasks": { "entries": Array<{ "key": string; "node": { "_qx": { "ref": QxObjectRef<"interface:interface:task-data@1">; "relations": { "completions": { "aggregate": { "count": bigint; "max": { "completedAt": (number | null) } } } } }; "title": string; "status": string; "priority": string; "dueDate": string; "repeatDays": number; "estimatedHours": number; "tags": { "entries": Array<{ "node": { "_qx": { "ref": QxObjectRef<"interface:interface:tag-data@1"> }; "name": string; "color": string } }> } } }>; "pageInfo": { "hasNextPage": boolean; "endCursor": (string | null) } } } }; "UntaggedTasks": { "root": { "tasks": { "entries": Array<{ "key": string; "node": { "_qx": { "ref": QxObjectRef<"interface:interface:task-data@1">; "relations": { "completions": { "aggregate": { "count": bigint; "max": { "completedAt": (number | null) } } } } }; "title": string; "status": string; "priority": string; "dueDate": string; "repeatDays": number; "estimatedHours": number; "tags": { "entries": Array<{ "node": { "_qx": { "ref": QxObjectRef<"interface:interface:tag-data@1"> }; "name": string; "color": string } }> } } }>; "pageInfo": { "hasNextPage": boolean; "endCursor": (string | null) } } } }; "Catalog": { "root": { "tags": { "entries": Array<{ "node": { "_qx": { "ref": QxObjectRef<"interface:interface:tag-data@1"> }; "name": string; "color": string } }> } } }; "Summary": { "root": { "_qx": { "relations": { "tasks": { "aggregate": { "count": bigint; "sum": { "estimatedHours": (number | null) } }; "groups": { "entries": Array<{ "group": { "status": string }; "aggregate": { "count": bigint; "sum": { "estimatedHours": (number | null) } } }> }; "filter": { "expand": { "tags": { "groups": { "entries": Array<{ "group": { "target": { "_qx": { "ref": QxObjectRef<"interface:interface:tag-data@1"> }; "name": string; "color": string } }; "aggregate": { "count": bigint; "sum": { "source": { "estimatedHours": (number | null) } } } }> } } } } } } } } } };
|
||
|
|
export const queries: { "Tasks": QxQueryDescriptor<QueryVariables["Tasks"], QueryResults["Tasks"], "interface:project-tasks@1">; "TaggedTasks": QxQueryDescriptor<QueryVariables["TaggedTasks"], QueryResults["TaggedTasks"], "interface:project-tasks@1">; "UntaggedTasks": QxQueryDescriptor<QueryVariables["UntaggedTasks"], QueryResults["UntaggedTasks"], "interface:project-tasks@1">; "Catalog": QxQueryDescriptor<QueryVariables["Catalog"], QueryResults["Catalog"], "interface:project-tasks@1">; "Summary": QxQueryDescriptor<QueryVariables["Summary"], QueryResults["Summary"], "interface:project-tasks@1"> } = {
|
||
|
|
"Tasks": {
|
||
|
|
"id": "package:project-react-runtime@1:query:Tasks",
|
||
|
|
"definitionDigest": "90fb955b4306497b7e779b659b52982cca7d5e5e9a640170b22b8b88beb55071",
|
||
|
|
"rootInterfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"variables": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"first": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"after": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"statuses": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"root": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tasks": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"key": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:task-data@1"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"relations": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completions": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"max": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completedAt": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"title": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"dueDate": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"repeatDays": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
},
|
||
|
|
"tags": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pageInfo": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"hasNextPage": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "bool"
|
||
|
|
},
|
||
|
|
"endCursor": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"watch": true
|
||
|
|
},
|
||
|
|
"TaggedTasks": {
|
||
|
|
"id": "package:project-react-runtime@1:query:TaggedTasks",
|
||
|
|
"definitionDigest": "040521ef951ed94ddd7b74d2cc05bed6eec0095f30dcf5930a1e59585068abcd",
|
||
|
|
"rootInterfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"variables": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"first": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"after": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"statuses": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"root": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tasks": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"key": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:task-data@1"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"relations": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completions": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"max": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completedAt": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"title": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"dueDate": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"repeatDays": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
},
|
||
|
|
"tags": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pageInfo": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"hasNextPage": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "bool"
|
||
|
|
},
|
||
|
|
"endCursor": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"watch": true
|
||
|
|
},
|
||
|
|
"UntaggedTasks": {
|
||
|
|
"id": "package:project-react-runtime@1:query:UntaggedTasks",
|
||
|
|
"definitionDigest": "e4efe0274b9cb1cd2ea1b32c986f71a8637fa2fb62f9a3c062cd8f08a391ff22",
|
||
|
|
"rootInterfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"variables": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"first": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"after": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"statuses": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"root": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tasks": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"key": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:task-data@1"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"relations": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completions": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"max": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"completedAt": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"title": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"dueDate": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"repeatDays": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "int32"
|
||
|
|
},
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
},
|
||
|
|
"tags": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"pageInfo": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"hasNextPage": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "bool"
|
||
|
|
},
|
||
|
|
"endCursor": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"watch": true
|
||
|
|
},
|
||
|
|
"Catalog": {
|
||
|
|
"id": "package:project-react-runtime@1:query:Catalog",
|
||
|
|
"definitionDigest": "2f195bd0b0fee57cd8e63a054ac7e7049d4eca665b8fbe71e2ef67e50f4be7f8",
|
||
|
|
"rootInterfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"variables": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"root": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tags": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"node": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"watch": true
|
||
|
|
},
|
||
|
|
"Summary": {
|
||
|
|
"id": "package:project-react-runtime@1:query:Summary",
|
||
|
|
"definitionDigest": "7770ff6b96489b228f7b1cbe0eee77cde67f70ed9004d19f920d6ec58889e361",
|
||
|
|
"rootInterfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"variables": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"root": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"relations": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tasks": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"sum": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"groups": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"group": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"status": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"sum": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"filter": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"expand": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"tags": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"groups": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"entries": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"group": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"target": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"_qx": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"ref": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:tag-data@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"aggregate": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"count": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "uint64"
|
||
|
|
},
|
||
|
|
"sum": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"source": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"estimatedHours": {
|
||
|
|
"kind": "optional",
|
||
|
|
"value": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"watch": true
|
||
|
|
}
|
||
|
|
} as const;
|
||
|
|
export const contracts = {"interface:named@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:named@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null> }> }>("interface:named@1", {"name.get":{"id":"operation:named:name:get","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"name.set":{"id":"operation:named:name:set","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"builtin","name":"unit"}}}),
|
||
|
|
"interface:project-tasks@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tags.resolve": () => Promise<Array<QxObjectRef<"atom:atom:tag">>>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:project-tasks@1">; "live": { "tasks.resolve": () => Promise<QxLiveValue>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue> }; "tasks.resolve": () => Promise<Array<QxObjectRef<"atom:atom:task">>>; "tasks.connect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tasks.disconnect": (input: QxObjectRef<"atom:atom:task">) => Promise<null>; "tags.resolve": () => Promise<Array<QxObjectRef<"atom:atom:tag">>>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null> }> }>("interface:project-tasks@1", {"tasks.resolve":{"id":"operation:project-tasks:tasks:resolve","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"list","value":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:task"}}}},"tasks.connect":{"id":"operation:project-tasks:tasks:connect","inputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:task"}},"outputType":{"kind":"builtin","name":"unit"}},"tasks.disconnect":{"id":"operation:project-tasks:tasks:disconnect","inputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:task"}},"outputType":{"kind":"builtin","name":"unit"}},"tags.resolve":{"id":"tags:resolve","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"list","value":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:tag"}}}},"tags.connect":{"id":"tags:connect","inputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:tag"}},"outputType":{"kind":"builtin","name":"unit"}},"tags.disconnect":{"id":"tags:disconnect","inputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:tag"}},"outputType":{"kind":"builtin","name":"unit"}}}),
|
||
|
|
"interface:tag-data@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:tag-data@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue>; "color.get": () => Promise<QxLiveValue>; "color.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null>; "color.get": () => Promise<string>; "color.set": (input: string) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:tag-data@1">; "live": { "name.get": () => Promise<QxLiveValue>; "name.set": (input: string) => Promise<QxLiveValue>; "color.get": () => Promise<QxLiveValue>; "color.set": (input: string) => Promise<QxLiveValue> }; "name.get": () => Promise<string>; "name.set": (input: string) => Promise<null>; "color.get": () => Promise<string>; "color.set": (input: string) => Promise<null> }> }>("interface:tag-data@1", {"name.get":{"id":"name:get","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"name.set":{"id":"name:set","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"builtin","name":"unit"}},"color.get":{"id":"color:get","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"color.set":{"id":"color:set","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"builtin","name":"unit"}}}),
|
||
|
|
"interface:completion-data@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:completion-data@1">; "live": { "completedAt.get": () => Promise<QxLiveValue>; "completedAt.set": (input: number) => Promise<QxLiveValue>; "scheduledDate.get": () => Promise<QxLiveValue>; "scheduledDate.set": (input: string) => Promise<QxLiveValue> }; "completedAt.get": () => Promise<number>; "completedAt.set": (input: number) => Promise<null>; "scheduledDate.get": () => Promise<string>; "scheduledDate.set": (input: string) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:completion-data@1">; "live": { "completedAt.get": () => Promise<QxLiveValue>; "completedAt.set": (input: number) => Promise<QxLiveValue>; "scheduledDate.get": () => Promise<QxLiveValue>; "scheduledDate.set": (input: string) => Promise<QxLiveValue> }; "completedAt.get": () => Promise<number>; "completedAt.set": (input: number) => Promise<null>; "scheduledDate.get": () => Promise<string>; "scheduledDate.set": (input: string) => Promise<null> }> }>("interface:completion-data@1", {"completedAt.get":{"id":"completedAt:get","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"double"}},"completedAt.set":{"id":"completedAt:set","inputType":{"kind":"scalar","name":"double"},"outputType":{"kind":"builtin","name":"unit"}},"scheduledDate.get":{"id":"scheduledDate:get","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"scheduledDate.set":{"id":"scheduledDate:set","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"builtin","name":"unit"}}}),
|
||
|
|
"interface:task-data@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:task-data@1">; "live": { "title.get": () => Promise<QxLiveValue>; "title.set": (input: string) => Promise<QxLiveValue>; "status.get": () => Promise<QxLiveValue>; "status.set": (input: string) => Promise<QxLiveValue>; "priority.get": () => Promise<QxLiveValue>; "priority.set": (input: string) => Promise<QxLiveValue>; "notes.get": () => Promise<QxLiveValue>; "notes.set": (input: string) => Promise<QxLiveValue>; "dueDate.get": () => Promise<QxLiveValue>; "dueDate.set": (input: string) => Promise<QxLiveValue>; "energy.get": () => Promise<QxLiveValue>; "energy.set": (input: string) => Promise<QxLiveValue>; "estimatedHours.get": () => Promise<QxLiveValue>; "estimatedHours.set": (input: number) => Promise<QxLiveValue>; "repeatDays.get": () => Promise<QxLiveValue>; "repeatDays.set": (input: number) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "completions.resolve": () => Promise<QxLiveValue>; "completions.connect": (input: QxObjectRef<"atom:atom:completion">) => Promise<QxLiveValue>; "completions.disconnect": (input: QxObjectRef<"atom:atom:completion">) => Promise<QxLiveValue> }; "title.get": () => Promise<string>; "title.set": (input: string) => Promise<null>; "status.get": () => Promise<string>; "status.set": (input: string) => Promise<null>; "priority.get": () => Promise<string>; "priority.set": (input: string) => Promise<null>; "notes.get": () => Promise<string>; "notes.set": (input: string) => Promise<null>; "dueDate.get": () => Promise<string>; "dueDate.set": (input: string) => Promise<null>; "energy.get": () => Promise<string>; "energy.set": (input: string) => Promise<null>; "estimatedHours.get": () => Promise<number>; "estimatedHours.set": (input: number) => Promise<null>; "repeatDays.get": () => Promise<number>; "repeatDays.set": (input: number) => Promise<null>; "tags.resolve": () => Promise<Array<QxObjectRef<"atom:atom:tag">>>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<null>; "completions.resolve": () => Promise<Array<QxObjectRef<"atom:atom:completion">>>; "completions.connect": (input: QxObjectRef<"atom:atom:completion">) => Promise<null>; "completions.disconnect": (input: QxObjectRef<"atom:atom:completion">) => Promise<null>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:task-data@1">; "live": { "title.get": () => Promise<QxLiveValue>; "title.set": (input: string) => Promise<QxLiveValue>; "status.get": () => Promise<QxLiveValue>; "status.set": (input: string) => Promise<QxLiveValue>; "priority.get": () => Promise<QxLiveValue>; "priority.set": (input: string) => Promise<QxLiveValue>; "notes.get": () => Promise<QxLiveValue>; "notes.set": (input: string) => Promise<QxLiveValue>; "dueDate.get": () => Promise<QxLiveValue>; "dueDate.set": (input: string) => Promise<QxLiveValue>; "energy.get": () => Promise<QxLiveValue>; "energy.set": (input: string) => Promise<QxLiveValue>; "estimatedHours.get": () => Promise<QxLiveValue>; "estimatedHours.set": (input: number) => Promise<QxLiveValue>; "repeatDays.get": () => Promise<QxLiveValue>; "repeatDays.set": (input: number) => Promise<QxLiveValue>; "tags.resolve": () => Promise<QxLiveValue>; "tags.connect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "tags.disconnect": (input: QxObjectRef<"atom:atom:tag">) => Promise<QxLiveValue>; "completions.resolve": () => Promise<QxLiveValue>; "completions.connect": (input: QxObjectRef<"atom:atom:completion">) => Promise<QxLiveValue>; "completions.disconnect": (input: QxObjectRef<"atom:atom:completion">) => Promise<QxLiveValue> }; "title.get": () => Promise<string>; "title.set": (input: string) => Promise<null>; "status.get": () => Promise<string>; "status.set": (input: string) => Promise<null>; "priority.get": () => Pr
|
||
|
|
"interface:task-actions@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:task-actions@1">; "live": { "complete.call": () => Promise<QxLiveValue>; "reopen.call": () => Promise<QxLiveValue>; "archive.call": () => Promise<QxLiveValue> }; "complete.call": () => Promise<string>; "reopen.call": () => Promise<string>; "archive.call": () => Promise<string>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:task-actions@1">; "live": { "complete.call": () => Promise<QxLiveValue>; "reopen.call": () => Promise<QxLiveValue>; "archive.call": () => Promise<QxLiveValue> }; "complete.call": () => Promise<string>; "reopen.call": () => Promise<string>; "archive.call": () => Promise<string> }> }>("interface:task-actions@1", {"complete.call":{"id":"operation:task-actions:complete","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"reopen.call":{"id":"operation:task-actions:reopen","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}},"archive.call":{"id":"operation:task-actions:archive","inputType":{"kind":"builtin","name":"unit"},"outputType":{"kind":"scalar","name":"string"}}}),
|
||
|
|
"interface:project-actions@1": defineQxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:project-actions@1">; "live": { "addTask.call": (input: string) => Promise<QxLiveValue>; "addTag.call": (input: string) => Promise<QxLiveValue> }; "addTask.call": (input: string) => Promise<QxObjectRef<"atom:atom:task">>; "addTag.call": (input: string) => Promise<QxObjectRef<"atom:atom:tag">>; "contract": QxInterfaceContract<{ "objectId": QxObjectRef<"interface:interface:project-actions@1">; "live": { "addTask.call": (input: string) => Promise<QxLiveValue>; "addTag.call": (input: string) => Promise<QxLiveValue> }; "addTask.call": (input: string) => Promise<QxObjectRef<"atom:atom:task">>; "addTag.call": (input: string) => Promise<QxObjectRef<"atom:atom:tag">> }> }>("interface:project-actions@1", {"addTask.call":{"id":"operation:project-actions:add-task","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:task"}}},"addTag.call":{"id":"add-tag:call","inputType":{"kind":"scalar","name":"string"},"outputType":{"kind":"object-ref","expectation":{"kind":"atom","atomId":"atom:tag"}}}})};
|
||
|
|
export const interfaces = {"Named": contracts["interface:named@1"],
|
||
|
|
"ProjectTasks": contracts["interface:project-tasks@1"],
|
||
|
|
"TagData": contracts["interface:tag-data@1"],
|
||
|
|
"CompletionData": contracts["interface:completion-data@1"],
|
||
|
|
"TaskData": contracts["interface:task-data@1"],
|
||
|
|
"TaskActions": contracts["interface:task-actions@1"],
|
||
|
|
"ProjectActions": contracts["interface:project-actions@1"]};
|
||
|
|
const messages = { } satisfies QxMessages;
|
||
|
|
const specs = {
|
||
|
|
"createComponent": {
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:project"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:project-react-component"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"ports": {}
|
||
|
|
},
|
||
|
|
"propsGet": {
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"named": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:named@1"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:project-tasks@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"ports": {
|
||
|
|
"named": {
|
||
|
|
"kind": "interface",
|
||
|
|
"id": "port:project-react:named",
|
||
|
|
"interfaceRevisionId": "interface:named@1",
|
||
|
|
"operations": {
|
||
|
|
"name.get": {
|
||
|
|
"id": "operation:named:name:get",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name.set": {
|
||
|
|
"id": "operation:named:name:set",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks": {
|
||
|
|
"kind": "interface",
|
||
|
|
"id": "port:project-react:tasks",
|
||
|
|
"interfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"operations": {
|
||
|
|
"tasks.resolve": {
|
||
|
|
"id": "operation:project-tasks:tasks:resolve",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks.connect": {
|
||
|
|
"id": "operation:project-tasks:tasks:connect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks.disconnect": {
|
||
|
|
"id": "operation:project-tasks:tasks:disconnect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.resolve": {
|
||
|
|
"id": "tags:resolve",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.connect": {
|
||
|
|
"id": "tags:connect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.disconnect": {
|
||
|
|
"id": "tags:disconnect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"propsWatch": {
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "watch-handle"
|
||
|
|
},
|
||
|
|
"eventType": {
|
||
|
|
"kind": "record",
|
||
|
|
"fields": {
|
||
|
|
"named": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:named@1"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "interface",
|
||
|
|
"interfaceRevisionId": "interface:project-tasks@1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"ports": {
|
||
|
|
"named": {
|
||
|
|
"kind": "interface",
|
||
|
|
"id": "port:project-react:named",
|
||
|
|
"interfaceRevisionId": "interface:named@1",
|
||
|
|
"operations": {
|
||
|
|
"name.get": {
|
||
|
|
"id": "operation:named:name:get",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"name.set": {
|
||
|
|
"id": "operation:named:name:set",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks": {
|
||
|
|
"kind": "interface",
|
||
|
|
"id": "port:project-react:tasks",
|
||
|
|
"interfaceRevisionId": "interface:project-tasks@1",
|
||
|
|
"operations": {
|
||
|
|
"tasks.resolve": {
|
||
|
|
"id": "operation:project-tasks:tasks:resolve",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks.connect": {
|
||
|
|
"id": "operation:project-tasks:tasks:connect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tasks.disconnect": {
|
||
|
|
"id": "operation:project-tasks:tasks:disconnect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:task"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.resolve": {
|
||
|
|
"id": "tags:resolve",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "list",
|
||
|
|
"value": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.connect": {
|
||
|
|
"id": "tags:connect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"tags.disconnect": {
|
||
|
|
"id": "tags:disconnect",
|
||
|
|
"inputType": {
|
||
|
|
"kind": "object-ref",
|
||
|
|
"expectation": {
|
||
|
|
"kind": "atom",
|
||
|
|
"atomId": "atom:tag"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"propsWatchStop": {
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "watch-handle"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"ports": {}
|
||
|
|
},
|
||
|
|
"sourceGet": {
|
||
|
|
"inputType": {
|
||
|
|
"kind": "builtin",
|
||
|
|
"name": "unit"
|
||
|
|
},
|
||
|
|
"outputType": {
|
||
|
|
"kind": "scalar",
|
||
|
|
"name": "string"
|
||
|
|
},
|
||
|
|
"ports": {}
|
||
|
|
}
|
||
|
|
} satisfies Record<string, QxHandlerSpec>;
|
||
|
|
export const createRuntime = (implementation: Implementation) => ({
|
||
|
|
packageRevisionId,
|
||
|
|
exports: {
|
||
|
|
"export:project-react-runtime:create-component": bindQxHandler(specs["createComponent"], implementation["createComponent"], messages),
|
||
|
|
"export:project-react-runtime:props-get": bindQxHandler(specs["propsGet"], implementation["propsGet"], messages),
|
||
|
|
"export:project-react-runtime:props-watch": bindQxHandler(specs["propsWatch"], implementation["propsWatch"], messages),
|
||
|
|
"export:project-react-runtime:props-watch-stop": bindQxHandler(specs["propsWatchStop"], implementation["propsWatchStop"], messages),
|
||
|
|
"export:project-react-runtime:source-get": bindQxHandler(specs["sourceGet"], implementation["sourceGet"], messages),
|
||
|
|
},
|
||
|
|
});
|