@synnaxlabs/client 0.35.0 → 0.36.0
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.
- package/.turbo/turbo-build.log +7 -7
- package/dist/client.cjs +28 -28
- package/dist/client.d.ts +35 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3078 -2955
- package/dist/control/state.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +14 -7
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/framer/writer.d.ts +8 -8
- package/dist/framer/writer.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +2 -2
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +4 -4
- package/dist/hardware/task/payload.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +3 -0
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ranger/client.d.ts +1 -0
- package/dist/ranger/client.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts.map +1 -1
- package/dist/transport.d.ts +2 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/workspace/client.d.ts +68 -11
- package/dist/workspace/client.d.ts.map +1 -1
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/lineplot/client.d.ts +48 -6
- package/dist/workspace/lineplot/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/index.d.ts +1 -1
- package/dist/workspace/lineplot/index.d.ts.map +1 -1
- package/dist/workspace/log/client.d.ts +48 -6
- package/dist/workspace/log/client.d.ts.map +1 -1
- package/dist/workspace/log/index.d.ts +1 -1
- package/dist/workspace/log/index.d.ts.map +1 -1
- package/dist/workspace/schematic/client.d.ts +72 -6
- package/dist/workspace/schematic/client.d.ts.map +1 -1
- package/dist/workspace/schematic/index.d.ts +1 -1
- package/dist/workspace/schematic/index.d.ts.map +1 -1
- package/dist/workspace/table/client.d.ts +61 -6
- package/dist/workspace/table/client.d.ts.map +1 -1
- package/dist/workspace/table/index.d.ts +1 -1
- package/dist/workspace/table/index.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/client.ts +16 -2
- package/src/control/state.ts +1 -1
- package/src/framer/frame.spec.ts +32 -3
- package/src/framer/frame.ts +17 -0
- package/src/index.ts +1 -0
- package/src/ontology/group/payload.ts +8 -7
- package/src/ranger/client.ts +4 -1
- package/src/transport.ts +8 -3
- package/src/workspace/client.ts +148 -47
- package/src/workspace/index.ts +1 -1
- package/src/workspace/lineplot/client.ts +96 -28
- package/src/workspace/lineplot/index.ts +1 -1
- package/src/workspace/log/client.ts +93 -28
- package/src/workspace/log/index.ts +1 -1
- package/src/workspace/schematic/client.ts +121 -29
- package/src/workspace/schematic/index.ts +1 -1
- package/src/workspace/table/client.ts +102 -28
- package/src/workspace/table/index.ts +1 -1
- package/dist/workspace/external.d.ts +0 -3
- package/dist/workspace/external.d.ts.map +0 -1
- package/dist/workspace/lineplot/external.d.ts +0 -3
- package/dist/workspace/lineplot/external.d.ts.map +0 -1
- package/dist/workspace/lineplot/retriever.d.ts +0 -9
- package/dist/workspace/lineplot/retriever.d.ts.map +0 -1
- package/dist/workspace/lineplot/writer.d.ts +0 -35
- package/dist/workspace/lineplot/writer.d.ts.map +0 -1
- package/dist/workspace/log/external.d.ts +0 -3
- package/dist/workspace/log/external.d.ts.map +0 -1
- package/dist/workspace/log/payload.d.ts +0 -36
- package/dist/workspace/log/payload.d.ts.map +0 -1
- package/dist/workspace/log/retriever.d.ts +0 -9
- package/dist/workspace/log/retriever.d.ts.map +0 -1
- package/dist/workspace/log/writer.d.ts +0 -35
- package/dist/workspace/log/writer.d.ts.map +0 -1
- package/dist/workspace/payload.d.ts +0 -38
- package/dist/workspace/payload.d.ts.map +0 -1
- package/dist/workspace/retriever.d.ts +0 -13
- package/dist/workspace/retriever.d.ts.map +0 -1
- package/dist/workspace/schematic/external.d.ts +0 -3
- package/dist/workspace/schematic/external.d.ts.map +0 -1
- package/dist/workspace/schematic/payload.d.ts +0 -42
- package/dist/workspace/schematic/payload.d.ts.map +0 -1
- package/dist/workspace/schematic/retriever.d.ts +0 -9
- package/dist/workspace/schematic/retriever.d.ts.map +0 -1
- package/dist/workspace/schematic/writer.d.ts +0 -41
- package/dist/workspace/schematic/writer.d.ts.map +0 -1
- package/dist/workspace/table/external.d.ts +0 -3
- package/dist/workspace/table/external.d.ts.map +0 -1
- package/dist/workspace/table/payload.d.ts +0 -36
- package/dist/workspace/table/payload.d.ts.map +0 -1
- package/dist/workspace/table/retriever.d.ts +0 -8
- package/dist/workspace/table/retriever.d.ts.map +0 -1
- package/dist/workspace/table/writer.d.ts +0 -35
- package/dist/workspace/table/writer.d.ts.map +0 -1
- package/dist/workspace/writer.d.ts +0 -66
- package/dist/workspace/writer.d.ts.map +0 -1
- package/src/workspace/external.ts +0 -11
- package/src/workspace/lineplot/external.ts +0 -11
- package/src/workspace/lineplot/retriever.ts +0 -34
- package/src/workspace/lineplot/writer.ts +0 -115
- package/src/workspace/log/external.ts +0 -11
- package/src/workspace/log/payload.ts +0 -36
- package/src/workspace/log/retriever.ts +0 -38
- package/src/workspace/log/writer.ts +0 -116
- package/src/workspace/payload.ts +0 -44
- package/src/workspace/retriever.ts +0 -70
- package/src/workspace/schematic/external.ts +0 -11
- package/src/workspace/schematic/payload.ts +0 -38
- package/src/workspace/schematic/retriever.ts +0 -42
- package/src/workspace/schematic/writer.ts +0 -140
- package/src/workspace/table/external.ts +0 -11
- package/src/workspace/table/payload.ts +0 -36
- package/src/workspace/table/retriever.ts +0 -33
- package/src/workspace/table/writer.ts +0 -102
- package/src/workspace/writer.ts +0 -111
|
@@ -1,55 +1,147 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { ontology } from "@/ontology";
|
|
2
|
+
import { nullableArrayZ } from "@/util/zod";
|
|
3
|
+
import { sendRequired, UnaryClient } from "@synnaxlabs/freighter";
|
|
4
|
+
import { toArray, UnknownRecord } from "@synnaxlabs/x";
|
|
5
|
+
import { unknownRecordZ } from "@synnaxlabs/x/record";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
export const keyZ = z.string().uuid();
|
|
9
|
+
export type Key = z.infer<typeof keyZ>;
|
|
10
|
+
export type Params = Key | Key[];
|
|
11
|
+
|
|
12
|
+
export const schematicZ = z.object({
|
|
13
|
+
key: z.string(),
|
|
14
|
+
name: z.string(),
|
|
15
|
+
data: unknownRecordZ.or(z.string().transform((s) => JSON.parse(s) as UnknownRecord)),
|
|
16
|
+
snapshot: z.boolean(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const schematicRemoteZ = z.object({
|
|
20
|
+
key: z.string(),
|
|
21
|
+
name: z.string(),
|
|
22
|
+
snapshot: z.boolean(),
|
|
23
|
+
data: z.string().transform((s) => JSON.parse(s) as UnknownRecord),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export type Schematic = z.infer<typeof schematicZ>;
|
|
27
|
+
|
|
28
|
+
export const ONTOLOGY_TYPE: ontology.ResourceType = "schematic";
|
|
29
|
+
|
|
30
|
+
export const ontologyID = (key: Key): ontology.ID =>
|
|
31
|
+
new ontology.ID({ type: ONTOLOGY_TYPE, key });
|
|
32
|
+
|
|
33
|
+
const RETRIEVE_ENDPOINT = "/workspace/schematic/retrieve";
|
|
34
|
+
const CREATE_ENDPOINT = "/workspace/schematic/create";
|
|
35
|
+
const RENAME_ENDPOINT = "/workspace/schematic/rename";
|
|
36
|
+
const SET_DATA_ENDPOINT = "/workspace/schematic/set-data";
|
|
37
|
+
const DELETE_ENDPOINT = "/workspace/schematic/delete";
|
|
38
|
+
const COPY_ENDPOINT = "/workspace/schematic/copy";
|
|
39
|
+
|
|
40
|
+
export const newSchematicZ = schematicZ
|
|
41
|
+
.partial({ key: true, snapshot: true })
|
|
42
|
+
.transform((p) => ({
|
|
43
|
+
...p,
|
|
44
|
+
data: JSON.stringify(p.data),
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
export type NewSchematic = z.input<typeof newSchematicZ>;
|
|
48
|
+
|
|
49
|
+
const retrieveReqZ = z.object({ keys: z.string().array() });
|
|
50
|
+
const createReqZ = z.object({
|
|
51
|
+
workspace: z.string(),
|
|
52
|
+
schematics: newSchematicZ.array(),
|
|
53
|
+
});
|
|
54
|
+
const renameReqZ = z.object({ key: z.string(), name: z.string() });
|
|
55
|
+
const setDataReqZ = z.object({ key: z.string(), data: z.string() });
|
|
56
|
+
const deleteReqZ = z.object({ keys: z.string().array() });
|
|
57
|
+
const copyReqZ = z.object({ key: z.string(), name: z.string(), snapshot: z.boolean() });
|
|
58
|
+
|
|
59
|
+
const retrieveResZ = z.object({ schematics: nullableArrayZ(schematicRemoteZ) });
|
|
60
|
+
const createResZ = z.object({ schematics: schematicRemoteZ.array() });
|
|
61
|
+
const copyResZ = z.object({ schematic: schematicZ });
|
|
62
|
+
const emptyResZ = z.object({});
|
|
16
63
|
|
|
17
64
|
export class Client {
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly retriever: Retriever;
|
|
65
|
+
private readonly client: UnaryClient;
|
|
20
66
|
|
|
21
67
|
constructor(client: UnaryClient) {
|
|
22
|
-
this.
|
|
23
|
-
this.retriever = new Retriever(client);
|
|
68
|
+
this.client = client;
|
|
24
69
|
}
|
|
25
70
|
|
|
26
|
-
async create(workspace: string, schematic: NewSchematic): Promise<Schematic
|
|
27
|
-
|
|
71
|
+
async create(workspace: string, schematic: NewSchematic): Promise<Schematic>;
|
|
72
|
+
async create(workspace: string, schematics: NewSchematic[]): Promise<Schematic[]>;
|
|
73
|
+
async create(
|
|
74
|
+
workspace: string,
|
|
75
|
+
schematics: NewSchematic | NewSchematic[],
|
|
76
|
+
): Promise<Schematic | Schematic[]> {
|
|
77
|
+
const isMany = Array.isArray(schematics);
|
|
78
|
+
const normalized = toArray(schematics);
|
|
79
|
+
const res = await sendRequired(
|
|
80
|
+
this.client,
|
|
81
|
+
CREATE_ENDPOINT,
|
|
82
|
+
{ workspace, schematics: normalized },
|
|
83
|
+
createReqZ,
|
|
84
|
+
createResZ,
|
|
85
|
+
);
|
|
86
|
+
return isMany ? res.schematics : res.schematics[0];
|
|
28
87
|
}
|
|
29
88
|
|
|
30
89
|
async rename(key: Key, name: string): Promise<void> {
|
|
31
|
-
await
|
|
90
|
+
await sendRequired(
|
|
91
|
+
this.client,
|
|
92
|
+
RENAME_ENDPOINT,
|
|
93
|
+
{ key, name },
|
|
94
|
+
renameReqZ,
|
|
95
|
+
emptyResZ,
|
|
96
|
+
);
|
|
32
97
|
}
|
|
33
98
|
|
|
34
99
|
async setData(key: Key, data: UnknownRecord): Promise<void> {
|
|
35
|
-
await
|
|
100
|
+
await sendRequired(
|
|
101
|
+
this.client,
|
|
102
|
+
SET_DATA_ENDPOINT,
|
|
103
|
+
{ key, data: JSON.stringify(data) },
|
|
104
|
+
setDataReqZ,
|
|
105
|
+
emptyResZ,
|
|
106
|
+
);
|
|
36
107
|
}
|
|
37
108
|
|
|
38
109
|
async retrieve(key: Key): Promise<Schematic>;
|
|
39
|
-
|
|
40
110
|
async retrieve(keys: Key[]): Promise<Schematic[]>;
|
|
41
|
-
|
|
42
111
|
async retrieve(keys: Params): Promise<Schematic | Schematic[]> {
|
|
43
112
|
const isMany = Array.isArray(keys);
|
|
44
|
-
const
|
|
45
|
-
|
|
113
|
+
const normalized = toArray(keys);
|
|
114
|
+
const res = await sendRequired(
|
|
115
|
+
this.client,
|
|
116
|
+
RETRIEVE_ENDPOINT,
|
|
117
|
+
{ keys: normalized },
|
|
118
|
+
retrieveReqZ,
|
|
119
|
+
retrieveResZ,
|
|
120
|
+
);
|
|
121
|
+
return isMany ? res.schematics : res.schematics[0];
|
|
46
122
|
}
|
|
47
123
|
|
|
124
|
+
async delete(key: Key): Promise<void>;
|
|
125
|
+
async delete(keys: Key[]): Promise<void>;
|
|
48
126
|
async delete(keys: Params): Promise<void> {
|
|
49
|
-
|
|
127
|
+
const normalized = toArray(keys);
|
|
128
|
+
await sendRequired(
|
|
129
|
+
this.client,
|
|
130
|
+
DELETE_ENDPOINT,
|
|
131
|
+
{ keys: normalized },
|
|
132
|
+
deleteReqZ,
|
|
133
|
+
emptyResZ,
|
|
134
|
+
);
|
|
50
135
|
}
|
|
51
136
|
|
|
52
137
|
async copy(key: Key, name: string, snapshot: boolean): Promise<Schematic> {
|
|
53
|
-
|
|
138
|
+
const res = await sendRequired(
|
|
139
|
+
this.client,
|
|
140
|
+
COPY_ENDPOINT,
|
|
141
|
+
{ key, name, snapshot },
|
|
142
|
+
copyReqZ,
|
|
143
|
+
copyResZ,
|
|
144
|
+
);
|
|
145
|
+
return res.schematic;
|
|
54
146
|
}
|
|
55
147
|
}
|
|
@@ -1,51 +1,125 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { ontology } from "@/ontology";
|
|
2
|
+
import { sendRequired, UnaryClient } from "@synnaxlabs/freighter";
|
|
3
|
+
import { toArray, UnknownRecord } from "@synnaxlabs/x";
|
|
4
|
+
import { unknownRecordZ } from "@synnaxlabs/x/record";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
|
|
7
|
+
export const keyZ = z.string().uuid();
|
|
8
|
+
export type Key = z.infer<typeof keyZ>;
|
|
9
|
+
export type Params = Key | Key[];
|
|
10
|
+
|
|
11
|
+
export const tableZ = z.object({
|
|
12
|
+
key: z.string(),
|
|
13
|
+
name: z.string(),
|
|
14
|
+
data: unknownRecordZ.or(z.string().transform((s) => JSON.parse(s) as UnknownRecord)),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export type Table = z.infer<typeof tableZ>;
|
|
18
|
+
|
|
19
|
+
export const ONTOLOGY_TYPE: ontology.ResourceType = "table";
|
|
20
|
+
|
|
21
|
+
export const ontologyID = (key: Key): ontology.ID =>
|
|
22
|
+
new ontology.ID({ type: ONTOLOGY_TYPE, key });
|
|
23
|
+
|
|
24
|
+
const RETRIEVE_ENDPOINT = "/workspace/table/retrieve";
|
|
25
|
+
const CREATE_ENDPOINT = "/workspace/table/create";
|
|
26
|
+
const RENAME_ENDPOINT = "/workspace/table/rename";
|
|
27
|
+
const SET_DATA_ENDPOINT = "/workspace/table/set-data";
|
|
28
|
+
const DELETE_ENDPOINT = "/workspace/table/delete";
|
|
29
|
+
|
|
30
|
+
export const newTableZ = tableZ.partial({ key: true }).transform((p) => ({
|
|
31
|
+
...p,
|
|
32
|
+
data: JSON.stringify(p.data),
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
export type NewTable = z.input<typeof newTableZ>;
|
|
36
|
+
|
|
37
|
+
export const tableRemoteZ = z.object({
|
|
38
|
+
key: z.string(),
|
|
39
|
+
name: z.string(),
|
|
40
|
+
data: z.string().transform((s) => JSON.parse(s) as UnknownRecord),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const retrieveReqZ = z.object({ keys: z.string().array() });
|
|
44
|
+
const createReqZ = z.object({ workspace: z.string(), tables: newTableZ.array() });
|
|
45
|
+
const renameReqZ = z.object({ key: z.string(), name: z.string() });
|
|
46
|
+
const setDataReqZ = z.object({ key: z.string(), data: z.string() });
|
|
47
|
+
const deleteReqZ = z.object({ keys: z.string().array() });
|
|
48
|
+
|
|
49
|
+
const retrieveResZ = z.object({ tables: tableRemoteZ.array() });
|
|
50
|
+
const createResZ = z.object({ tables: tableRemoteZ.array() });
|
|
51
|
+
const emptyResZ = z.object({});
|
|
16
52
|
|
|
17
53
|
export class Client {
|
|
18
|
-
private readonly
|
|
19
|
-
private readonly retriever: Retriever;
|
|
54
|
+
private readonly client: UnaryClient;
|
|
20
55
|
|
|
21
56
|
constructor(client: UnaryClient) {
|
|
22
|
-
this.
|
|
23
|
-
this.retriever = new Retriever(client);
|
|
57
|
+
this.client = client;
|
|
24
58
|
}
|
|
25
59
|
|
|
26
|
-
async create(workspace: string, table: NewTable): Promise<Table
|
|
27
|
-
|
|
60
|
+
async create(workspace: string, table: NewTable): Promise<Table>;
|
|
61
|
+
async create(workspace: string, tables: NewTable[]): Promise<Table[]>;
|
|
62
|
+
async create(
|
|
63
|
+
workspace: string,
|
|
64
|
+
tables: NewTable | NewTable[],
|
|
65
|
+
): Promise<Table | Table[]> {
|
|
66
|
+
const isMany = Array.isArray(tables);
|
|
67
|
+
const normalized = toArray(tables);
|
|
68
|
+
const res = await sendRequired(
|
|
69
|
+
this.client,
|
|
70
|
+
CREATE_ENDPOINT,
|
|
71
|
+
{ workspace, tables: normalized },
|
|
72
|
+
createReqZ,
|
|
73
|
+
createResZ,
|
|
74
|
+
);
|
|
75
|
+
return isMany ? res.tables : res.tables[0];
|
|
28
76
|
}
|
|
29
77
|
|
|
30
78
|
async rename(key: Key, name: string): Promise<void> {
|
|
31
|
-
await
|
|
79
|
+
await sendRequired(
|
|
80
|
+
this.client,
|
|
81
|
+
RENAME_ENDPOINT,
|
|
82
|
+
{ key, name },
|
|
83
|
+
renameReqZ,
|
|
84
|
+
emptyResZ,
|
|
85
|
+
);
|
|
32
86
|
}
|
|
33
87
|
|
|
34
88
|
async setData(key: Key, data: UnknownRecord): Promise<void> {
|
|
35
|
-
await
|
|
89
|
+
await sendRequired(
|
|
90
|
+
this.client,
|
|
91
|
+
SET_DATA_ENDPOINT,
|
|
92
|
+
{ key, data: JSON.stringify(data) },
|
|
93
|
+
setDataReqZ,
|
|
94
|
+
emptyResZ,
|
|
95
|
+
);
|
|
36
96
|
}
|
|
37
97
|
|
|
38
98
|
async retrieve(key: Key): Promise<Table>;
|
|
39
|
-
|
|
40
99
|
async retrieve(keys: Key[]): Promise<Table[]>;
|
|
41
|
-
|
|
42
100
|
async retrieve(keys: Params): Promise<Table | Table[]> {
|
|
43
101
|
const isMany = Array.isArray(keys);
|
|
44
|
-
const
|
|
45
|
-
|
|
102
|
+
const normalized = toArray(keys);
|
|
103
|
+
const res = await sendRequired(
|
|
104
|
+
this.client,
|
|
105
|
+
RETRIEVE_ENDPOINT,
|
|
106
|
+
{ keys: normalized },
|
|
107
|
+
retrieveReqZ,
|
|
108
|
+
retrieveResZ,
|
|
109
|
+
);
|
|
110
|
+
return isMany ? res.tables : res.tables[0];
|
|
46
111
|
}
|
|
47
112
|
|
|
113
|
+
async delete(key: Key): Promise<void>;
|
|
114
|
+
async delete(keys: Key[]): Promise<void>;
|
|
48
115
|
async delete(keys: Params): Promise<void> {
|
|
49
|
-
|
|
116
|
+
const normalized = toArray(keys);
|
|
117
|
+
await sendRequired(
|
|
118
|
+
this.client,
|
|
119
|
+
DELETE_ENDPOINT,
|
|
120
|
+
{ keys: normalized },
|
|
121
|
+
deleteReqZ,
|
|
122
|
+
emptyResZ,
|
|
123
|
+
);
|
|
50
124
|
}
|
|
51
125
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/workspace/external.ts"],"names":[],"mappings":"AASA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/workspace/lineplot/external.ts"],"names":[],"mappings":"AASA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { LinePlot, Params } from './payload';
|
|
3
|
-
export declare class Retriever {
|
|
4
|
-
private readonly ENDPOINT;
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: UnaryClient);
|
|
7
|
-
retrieve(linePlots: Params): Promise<LinePlot[]>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=retriever.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/workspace/lineplot/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIvE,OAAO,EAAE,KAAK,QAAQ,EAAa,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAMrF,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAMvD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { Key, LinePlot, Params } from './payload';
|
|
5
|
-
export declare const newLinePlotZ: z.ZodEffects<z.ZodObject<{
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
key: z.ZodOptional<z.ZodString>;
|
|
8
|
-
data: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
name: string;
|
|
11
|
-
data: UnknownRecord | Record<string | number | symbol, unknown>;
|
|
12
|
-
key?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
name: string;
|
|
15
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
16
|
-
key?: string | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
data: string;
|
|
19
|
-
name: string;
|
|
20
|
-
key?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
name: string;
|
|
23
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
24
|
-
key?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export type NewLinePlot = z.input<typeof newLinePlotZ>;
|
|
27
|
-
export declare class Writer {
|
|
28
|
-
private readonly client;
|
|
29
|
-
constructor(client: UnaryClient);
|
|
30
|
-
create(workspace: string, plot: NewLinePlot): Promise<LinePlot>;
|
|
31
|
-
delete(workspaces: Params): Promise<void>;
|
|
32
|
-
rename(plot: Key, name: string): Promise<void>;
|
|
33
|
-
setData(plot: Key, data: UnknownRecord): Promise<void>;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/workspace/lineplot/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAER,KAAK,QAAQ,EAEb,KAAK,MAAM,EACZ,MAAM,8BAA8B,CAAC;AAGtC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAoCvD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAa/D,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU9C,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAS7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/workspace/log/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { ontology } from '../../ontology';
|
|
4
|
-
export declare const keyZ: z.ZodString;
|
|
5
|
-
export type Key = z.infer<typeof keyZ>;
|
|
6
|
-
export type Params = Key | Key[];
|
|
7
|
-
export declare const logZ: z.ZodObject<{
|
|
8
|
-
key: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
data: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
|
-
key: string;
|
|
14
|
-
data: UnknownRecord | Record<string | number | symbol, unknown>;
|
|
15
|
-
}, {
|
|
16
|
-
name: string;
|
|
17
|
-
key: string;
|
|
18
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
19
|
-
}>;
|
|
20
|
-
export declare const logRemoteZ: z.ZodObject<{
|
|
21
|
-
key: z.ZodString;
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
name: string;
|
|
26
|
-
key: string;
|
|
27
|
-
data: UnknownRecord;
|
|
28
|
-
}, {
|
|
29
|
-
name: string;
|
|
30
|
-
key: string;
|
|
31
|
-
data: string;
|
|
32
|
-
}>;
|
|
33
|
-
export type Log = z.infer<typeof logZ>;
|
|
34
|
-
export declare const ONTOLOGY_TYPE: ontology.ResourceType;
|
|
35
|
-
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
36
|
-
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/workspace/log/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,IAAI;;;;;;;;;;;;EAIf,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,YAAoB,CAAC;AAE1D,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { Log, Params } from './payload';
|
|
3
|
-
export declare class Retriever {
|
|
4
|
-
private readonly ENDPOINT;
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: UnaryClient);
|
|
7
|
-
retrieve(logs: Params): Promise<Log[]>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=retriever.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/workspace/log/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIvE,OAAO,EAAE,KAAK,GAAG,EAAc,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAK5E,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;CAW7C"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { Key, Log, Params } from './payload';
|
|
5
|
-
export declare const newLogZ: z.ZodEffects<z.ZodObject<{
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
key: z.ZodOptional<z.ZodString>;
|
|
8
|
-
data: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
name: string;
|
|
11
|
-
data: UnknownRecord | Record<string | number | symbol, unknown>;
|
|
12
|
-
key?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
name: string;
|
|
15
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
16
|
-
key?: string | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
data: string;
|
|
19
|
-
name: string;
|
|
20
|
-
key?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
name: string;
|
|
23
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
24
|
-
key?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export type NewLog = z.input<typeof newLogZ>;
|
|
27
|
-
export declare class Writer {
|
|
28
|
-
private readonly client;
|
|
29
|
-
constructor(client: UnaryClient);
|
|
30
|
-
create(workspace: string, log: NewLog): Promise<Log>;
|
|
31
|
-
delete(logs: Params): Promise<void>;
|
|
32
|
-
rename(log: Key, name: string): Promise<void>;
|
|
33
|
-
setData(log: Key, data: UnknownRecord): Promise<void>;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/workspace/log/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAGR,KAAK,MAAM,EACZ,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;EAGjB,CAAC;AAEJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAoC7C,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAapD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWnC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7C,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAS5D"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { ontology } from '../ontology';
|
|
4
|
-
export declare const keyZ: z.ZodString;
|
|
5
|
-
export type Key = z.infer<typeof keyZ>;
|
|
6
|
-
export type Params = Key | Key[];
|
|
7
|
-
export declare const workspaceZ: z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
key: z.ZodString;
|
|
10
|
-
layout: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
|
-
key: string;
|
|
14
|
-
layout: UnknownRecord | Record<string | number | symbol, unknown>;
|
|
15
|
-
}, {
|
|
16
|
-
name: string;
|
|
17
|
-
key: string;
|
|
18
|
-
layout: string | Record<string | number | symbol, unknown>;
|
|
19
|
-
}>;
|
|
20
|
-
export declare const workspaceRemoteZ: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
key: z.ZodString;
|
|
23
|
-
layout: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
24
|
-
}, "layout">, {
|
|
25
|
-
layout: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
26
|
-
}>, "strip", z.ZodTypeAny, {
|
|
27
|
-
name: string;
|
|
28
|
-
key: string;
|
|
29
|
-
layout: UnknownRecord;
|
|
30
|
-
}, {
|
|
31
|
-
name: string;
|
|
32
|
-
key: string;
|
|
33
|
-
layout: string;
|
|
34
|
-
}>;
|
|
35
|
-
export type Workspace = z.infer<typeof workspaceZ>;
|
|
36
|
-
export declare const ONTOLOGY_TYPE: ontology.ResourceType;
|
|
37
|
-
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
38
|
-
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/workspace/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAUjC,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,YAA0B,CAAC;AAEhE,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { Params, Workspace } from './payload';
|
|
3
|
-
export declare class Retriever {
|
|
4
|
-
private static readonly ENDPOINT;
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: UnaryClient);
|
|
7
|
-
retrieve(workspaces: Params): Promise<Workspace[]>;
|
|
8
|
-
retrieveByAuthor(author: string): Promise<Workspace[]>;
|
|
9
|
-
search(term: string): Promise<Workspace[]>;
|
|
10
|
-
page(offset: number, limit: number): Promise<Workspace[]>;
|
|
11
|
-
private execute;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=retriever.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../src/workspace/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKvE,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,SAAS,EAEf,MAAM,qBAAqB,CAAC;AAc7B,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAKlD,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAItD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAI1C,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;YAIjD,OAAO;CAUtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/workspace/schematic/external.ts"],"names":[],"mappings":"AASA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { ontology } from '../../ontology';
|
|
4
|
-
export declare const keyZ: z.ZodString;
|
|
5
|
-
export type Key = z.infer<typeof keyZ>;
|
|
6
|
-
export type Params = Key | Key[];
|
|
7
|
-
export declare const schematicZ: z.ZodObject<{
|
|
8
|
-
key: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
data: z.ZodUnion<[z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>, z.ZodEffects<z.ZodString, UnknownRecord, string>]>;
|
|
11
|
-
snapshot: z.ZodBoolean;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
name: string;
|
|
14
|
-
key: string;
|
|
15
|
-
data: UnknownRecord | Record<string | number | symbol, unknown>;
|
|
16
|
-
snapshot: boolean;
|
|
17
|
-
}, {
|
|
18
|
-
name: string;
|
|
19
|
-
key: string;
|
|
20
|
-
data: string | Record<string | number | symbol, unknown>;
|
|
21
|
-
snapshot: boolean;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const schematicRemoteZ: z.ZodObject<{
|
|
24
|
-
key: z.ZodString;
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
snapshot: z.ZodBoolean;
|
|
27
|
-
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
name: string;
|
|
30
|
-
key: string;
|
|
31
|
-
data: UnknownRecord;
|
|
32
|
-
snapshot: boolean;
|
|
33
|
-
}, {
|
|
34
|
-
name: string;
|
|
35
|
-
key: string;
|
|
36
|
-
data: string;
|
|
37
|
-
snapshot: boolean;
|
|
38
|
-
}>;
|
|
39
|
-
export type Schematic = z.infer<typeof schematicZ>;
|
|
40
|
-
export declare const ONTOLOGY_TYPE: ontology.ResourceType;
|
|
41
|
-
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
42
|
-
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/workspace/schematic/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;EAKrB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,YAA0B,CAAC;AAEhE,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { Params, Schematic } from './payload';
|
|
3
|
-
export declare class Retriever {
|
|
4
|
-
private readonly ENDPOINT;
|
|
5
|
-
private readonly client;
|
|
6
|
-
constructor(client: UnaryClient);
|
|
7
|
-
retrieve(schematics: Params): Promise<Schematic[]>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=retriever.d.ts.map
|