@synnaxlabs/client 0.23.0 → 0.24.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 -6
- package/dist/auth/auth.d.ts +2 -2
- package/dist/channel/client.d.ts +7 -0
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +5 -3
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +3 -1
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +22 -18
- package/dist/client.d.ts +1 -1
- package/dist/client.js +4469 -4218
- package/dist/errors.d.ts +33 -8
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.spec.d.ts +2 -0
- package/dist/errors.spec.d.ts.map +1 -0
- package/dist/framer/client.d.ts +6 -5
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/iterator.d.ts +12 -2
- package/dist/framer/iterator.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/task/client.d.ts +13 -2
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +4 -4
- package/dist/ontology/group/external.d.ts +1 -0
- package/dist/ontology/group/external.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +2 -2
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ontology/group/writer.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +34 -34
- package/dist/ranger/active.d.ts.map +1 -1
- package/examples/node/basicReadWrite.js +4 -4
- package/examples/node/package-lock.json +8 -8
- package/package.json +5 -5
- package/src/auth/auth.ts +1 -1
- package/src/channel/channel.spec.ts +6 -5
- package/src/channel/client.ts +30 -1
- package/src/channel/retriever.ts +60 -10
- package/src/channel/writer.ts +13 -10
- package/src/client.ts +2 -2
- package/src/errors.spec.ts +40 -0
- package/src/errors.ts +35 -7
- package/src/framer/client.spec.ts +6 -0
- package/src/framer/client.ts +25 -18
- package/src/framer/deleter.spec.ts +39 -38
- package/src/framer/iterator.spec.ts +26 -1
- package/src/framer/iterator.ts +15 -1
- package/src/framer/streamProxy.ts +1 -1
- package/src/framer/streamer.ts +1 -1
- package/src/hardware/device/client.ts +2 -2
- package/src/hardware/task/client.ts +46 -7
- package/src/hardware/task/task.spec.ts +12 -0
- package/src/index.ts +2 -0
- package/src/ontology/group/external.ts +1 -0
- package/src/ontology/group/payload.ts +2 -2
- package/src/ontology/group/writer.ts +2 -2
- package/src/ranger/active.ts +2 -2
package/src/index.ts
CHANGED
|
@@ -17,12 +17,12 @@ export type Keys = Key[];
|
|
|
17
17
|
export type Names = Name[];
|
|
18
18
|
export type Params = Key | Name | Keys | Names;
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const groupZ = z.object({
|
|
21
21
|
key: keyZ,
|
|
22
22
|
name: z.string(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
export type Payload = z.infer<typeof
|
|
25
|
+
export type Payload = z.infer<typeof groupZ>;
|
|
26
26
|
|
|
27
27
|
export type ParamAnalysisResult =
|
|
28
28
|
| {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
|
-
import { type Payload,
|
|
13
|
+
import { type Payload, groupZ } from "@/ontology/group/payload";
|
|
14
14
|
import { type ID, idZ } from "@/ontology/payload";
|
|
15
15
|
|
|
16
16
|
const resZ = z.object({
|
|
17
|
-
group:
|
|
17
|
+
group: groupZ,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
const createReqZ = z.object({
|
package/src/ranger/active.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { sendRequired, type UnaryClient } from "@synnaxlabs/freighter";
|
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
import { QueryError } from "@/errors";
|
|
14
|
-
import { type Key, keyZ,type Payload, payloadZ } from "@/ranger/payload";
|
|
14
|
+
import { type Key, keyZ, type Payload, payloadZ } from "@/ranger/payload";
|
|
15
15
|
|
|
16
16
|
const setActiveResZ = z.object({});
|
|
17
17
|
|
|
@@ -57,7 +57,7 @@ export class Active {
|
|
|
57
57
|
z.object({}),
|
|
58
58
|
retrieveActiveResZ,
|
|
59
59
|
);
|
|
60
|
-
if (err
|
|
60
|
+
if (QueryError.matches(err)) return null;
|
|
61
61
|
if (err != null) throw err;
|
|
62
62
|
return res.range;
|
|
63
63
|
}
|