@nbt-dev/nbt 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ {
2
+ "cartridge": "registry",
3
+ "version": "0.1",
4
+ "owns": {
5
+ "InstalledCartridge": {
6
+ "fields": [
7
+ { "name": "id", "type": "ULID", "kind": "scalar" },
8
+ { "name": "createdAt", "type": "DateTime", "kind": "scalar" },
9
+ { "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
10
+ { "name": "tier", "type": "string", "kind": "scalar" },
11
+ { "name": "source", "type": "string", "kind": "scalar" },
12
+ { "name": "schemaChecksum", "type": "string", "kind": "scalar" },
13
+ { "name": "installedAt", "type": "u64", "kind": "scalar" },
14
+ { "name": "status", "type": "string", "kind": "scalar" }
15
+ ],
16
+ "indices": [],
17
+ "searchFields": [],
18
+ "methods": [
19
+ { "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "InstalledCartridge" } ] },
20
+ { "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<InstalledCartridge>" } ] },
21
+ { "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
22
+ { "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "tier", "type": "string" }, { "name": "source", "type": "string" }, { "name": "schemaChecksum", "type": "string" }, { "name": "installedAt", "type": "u64" }, { "name": "status", "type": "string" }], "outputs": [ { "name": "out", "type": "InstalledCartridge" } ] },
23
+ { "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "tier", "type": "string", "optional": true }, { "name": "source", "type": "string", "optional": true }, { "name": "schemaChecksum", "type": "string", "optional": true }, { "name": "installedAt", "type": "u64", "optional": true }, { "name": "status", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "InstalledCartridge" } ] }
24
+ ],
25
+ "routes": [
26
+ { "op": "list", "method": "GET", "path": "/api/registry/installedcartridge" },
27
+ { "op": "create", "method": "POST", "path": "/api/registry/installedcartridge" },
28
+ { "op": "delete_by_query", "method": "DELETE", "path": "/api/registry/installedcartridge" },
29
+ { "op": "count", "method": "GET", "path": "/api/registry/installedcartridge/count" },
30
+ { "op": "batch_get", "method": "POST", "path": "/api/registry/installedcartridge/_batch" },
31
+ { "op": "get", "method": "GET", "path": "/api/registry/installedcartridge/:id" },
32
+ { "op": "update", "method": "PUT", "path": "/api/registry/installedcartridge/:id" },
33
+ { "op": "delete", "method": "DELETE", "path": "/api/registry/installedcartridge/:id" }
34
+ ],
35
+ "exported": false
36
+ }
37
+ },
38
+ "structs": [],
39
+ "enums": [],
40
+ "imports": {
41
+ },
42
+ "actions": [],
43
+ "middleware": [],
44
+ "workflows": [],
45
+ "schedules": [],
46
+ "tasks": [],
47
+ "tools": [],
48
+ "widgets": []
49
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "cartridge": "workflows",
3
+ "owns": {
4
+ "Worker": {
5
+ "fields": [
6
+ { "name": "id", "type": "ULID", "kind": "scalar" },
7
+ { "name": "createdAt", "type": "DateTime", "kind": "scalar" },
8
+ { "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
9
+ { "name": "source", "type": "blob", "kind": "scalar" },
10
+ { "name": "contentHash", "type": "string", "kind": "scalar" },
11
+ { "name": "queue", "type": "string", "optional": true, "kind": "scalar" }
12
+ ],
13
+ "indices": [],
14
+ "searchFields": [],
15
+ "methods": [
16
+ { "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Worker" } ] },
17
+ { "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Worker>" } ] },
18
+ { "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
19
+ { "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "source", "type": "blob" }, { "name": "contentHash", "type": "string" }, { "name": "queue", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Worker" } ] },
20
+ { "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "source", "type": "blob", "optional": true }, { "name": "contentHash", "type": "string", "optional": true }, { "name": "queue", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Worker" } ] }
21
+ ],
22
+ "routes": [
23
+ { "op": "list", "method": "GET", "path": "/api/workflows/worker" },
24
+ { "op": "create", "method": "POST", "path": "/api/workflows/worker" },
25
+ { "op": "delete_by_query", "method": "DELETE", "path": "/api/workflows/worker" },
26
+ { "op": "count", "method": "GET", "path": "/api/workflows/worker/count" },
27
+ { "op": "batch_get", "method": "POST", "path": "/api/workflows/worker/_batch" },
28
+ { "op": "get", "method": "GET", "path": "/api/workflows/worker/:id" },
29
+ { "op": "update", "method": "PUT", "path": "/api/workflows/worker/:id" },
30
+ { "op": "delete", "method": "DELETE", "path": "/api/workflows/worker/:id" }
31
+ ],
32
+ "exported": false
33
+ },
34
+ "WorkflowExecution": {
35
+ "fields": [
36
+ { "name": "id", "type": "ULID", "kind": "scalar" },
37
+ { "name": "createdAt", "type": "DateTime", "kind": "scalar" },
38
+ { "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
39
+ { "name": "status", "type": "string", "kind": "scalar" },
40
+ { "name": "events", "type": "WorkflowExecutionEvent", "array": true, "kind": "relation", "target": "WorkflowExecutionEvent", "target_cart": "workflows", "relation_kind": "many_to_many" }
41
+ ],
42
+ "indices": [],
43
+ "searchFields": [],
44
+ "methods": [
45
+ { "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "WorkflowExecution" } ] },
46
+ { "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<WorkflowExecution>" } ] },
47
+ { "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
48
+ { "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "status", "type": "string" }], "outputs": [ { "name": "out", "type": "WorkflowExecution" } ] },
49
+ { "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "status", "type": "string", "optional": true }, { "name": "eventsId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "WorkflowExecution" } ] }
50
+ ],
51
+ "routes": [
52
+ { "op": "list", "method": "GET", "path": "/api/workflows/workflowexecution" },
53
+ { "op": "create", "method": "POST", "path": "/api/workflows/workflowexecution" },
54
+ { "op": "delete_by_query", "method": "DELETE", "path": "/api/workflows/workflowexecution" },
55
+ { "op": "count", "method": "GET", "path": "/api/workflows/workflowexecution/count" },
56
+ { "op": "batch_get", "method": "POST", "path": "/api/workflows/workflowexecution/_batch" },
57
+ { "op": "get", "method": "GET", "path": "/api/workflows/workflowexecution/:id" },
58
+ { "op": "update", "method": "PUT", "path": "/api/workflows/workflowexecution/:id" },
59
+ { "op": "delete", "method": "DELETE", "path": "/api/workflows/workflowexecution/:id" }
60
+ ],
61
+ "exported": false
62
+ },
63
+ "WorkflowExecutionEvent": {
64
+ "fields": [
65
+ { "name": "id", "type": "ULID", "kind": "scalar" },
66
+ { "name": "createdAt", "type": "DateTime", "kind": "scalar" },
67
+ { "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
68
+ { "name": "kind", "type": "WorkflowExecutionEventKind", "kind": "scalar" }
69
+ ],
70
+ "indices": [],
71
+ "searchFields": [],
72
+ "methods": [
73
+ { "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "WorkflowExecutionEvent" } ] },
74
+ { "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<WorkflowExecutionEvent>" } ] },
75
+ { "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
76
+ { "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "kind", "type": "WorkflowExecutionEventKind" }], "outputs": [ { "name": "out", "type": "WorkflowExecutionEvent" } ] },
77
+ { "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "kind", "type": "WorkflowExecutionEventKind", "optional": true }], "outputs": [ { "name": "out", "type": "WorkflowExecutionEvent" } ] }
78
+ ],
79
+ "routes": [
80
+ { "op": "list", "method": "GET", "path": "/api/workflows/workflowexecutionevent" },
81
+ { "op": "create", "method": "POST", "path": "/api/workflows/workflowexecutionevent" },
82
+ { "op": "delete_by_query", "method": "DELETE", "path": "/api/workflows/workflowexecutionevent" },
83
+ { "op": "count", "method": "GET", "path": "/api/workflows/workflowexecutionevent/count" },
84
+ { "op": "batch_get", "method": "POST", "path": "/api/workflows/workflowexecutionevent/_batch" },
85
+ { "op": "get", "method": "GET", "path": "/api/workflows/workflowexecutionevent/:id" },
86
+ { "op": "update", "method": "PUT", "path": "/api/workflows/workflowexecutionevent/:id" },
87
+ { "op": "delete", "method": "DELETE", "path": "/api/workflows/workflowexecutionevent/:id" }
88
+ ],
89
+ "exported": false
90
+ }
91
+ },
92
+ "structs": [],
93
+ "enums": [
94
+ {"name":"WorkerStatus","values":["WAITING","RUNNING","TERMINATED"]},
95
+ {"name":"WorkflowExecutionEventKind","values":["WORKFLOW_EXECUTION_STARTED","WORKFLOW_STEP_SCHEDULED","WORKFLOW_STEP_STARTED","WORKFLOW_STEP_COMPLETED","WORKFLOW_EXECUTION_COMPLETED"]}
96
+ ],
97
+ "imports": {
98
+ },
99
+ "actions": [],
100
+ "middleware": [],
101
+ "workflows": [],
102
+ "schedules": [],
103
+ "tasks": [],
104
+ "tools": [],
105
+ "widgets": []
106
+ }