@synnaxlabs/client 0.53.0 → 0.54.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 +14 -8
- package/dist/client.cjs +48 -54
- package/dist/client.js +12360 -15511
- package/dist/src/access/action/index.d.ts +2 -0
- package/dist/src/access/action/index.d.ts.map +1 -0
- package/dist/src/access/{payload.d.ts → action/types.gen.d.ts} +2 -1
- package/dist/src/access/action/types.gen.d.ts.map +1 -0
- package/dist/src/access/enforce.d.ts +2 -2
- package/dist/src/access/enforce.d.ts.map +1 -1
- package/dist/src/access/external.d.ts +1 -1
- package/dist/src/access/external.d.ts.map +1 -1
- package/dist/src/access/policy/client.d.ts +233 -389
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/access/policy/external.d.ts +1 -1
- package/dist/src/access/policy/external.d.ts.map +1 -1
- package/dist/src/access/policy/types.gen.d.ts +120 -0
- package/dist/src/access/policy/types.gen.d.ts.map +1 -0
- package/dist/src/access/role/client.d.ts +1 -1
- package/dist/src/access/role/client.d.ts.map +1 -1
- package/dist/src/access/role/external.d.ts +1 -1
- package/dist/src/access/role/external.d.ts.map +1 -1
- package/dist/src/access/role/types.gen.d.ts +34 -0
- package/dist/src/access/role/types.gen.d.ts.map +1 -0
- package/dist/src/arc/client.d.ts +2 -2
- package/dist/src/arc/client.d.ts.map +1 -1
- package/dist/src/arc/compiler/index.d.ts +2 -0
- package/dist/src/arc/compiler/index.d.ts.map +1 -0
- package/dist/src/arc/compiler/types.gen.d.ts +12 -0
- package/dist/src/arc/compiler/types.gen.d.ts.map +1 -0
- package/dist/src/arc/external.d.ts +6 -1
- package/dist/src/arc/external.d.ts.map +1 -1
- package/dist/src/arc/graph/index.d.ts +2 -0
- package/dist/src/arc/graph/index.d.ts.map +1 -0
- package/dist/src/arc/graph/types.gen.d.ts +644 -0
- package/dist/src/arc/graph/types.gen.d.ts.map +1 -0
- package/dist/src/arc/ir/index.d.ts +2 -0
- package/dist/src/arc/ir/index.d.ts.map +1 -0
- package/dist/src/arc/ir/types.gen.d.ts +2988 -0
- package/dist/src/arc/ir/types.gen.d.ts.map +1 -0
- package/dist/src/arc/module/index.d.ts +2 -0
- package/dist/src/arc/module/index.d.ts.map +1 -0
- package/dist/src/arc/module/types.gen.d.ts +1138 -0
- package/dist/src/arc/module/types.gen.d.ts.map +1 -0
- package/dist/src/arc/program/index.d.ts +2 -0
- package/dist/src/arc/program/index.d.ts.map +1 -0
- package/dist/src/arc/program/types.gen.d.ts +1138 -0
- package/dist/src/arc/program/types.gen.d.ts.map +1 -0
- package/dist/src/arc/text/index.d.ts +2 -0
- package/dist/src/arc/text/index.d.ts.map +1 -0
- package/dist/src/arc/text/types.gen.d.ts +8 -0
- package/dist/src/arc/text/types.gen.d.ts.map +1 -0
- package/dist/src/arc/types/index.d.ts +2 -0
- package/dist/src/arc/types/index.d.ts.map +1 -0
- package/dist/src/arc/types/types.gen.d.ts +237 -0
- package/dist/src/arc/types/types.gen.d.ts.map +1 -0
- package/dist/src/arc/types.gen.d.ts +2394 -0
- package/dist/src/arc/types.gen.d.ts.map +1 -0
- package/dist/src/channel/client.d.ts +5 -4
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/external.d.ts +1 -0
- package/dist/src/channel/external.d.ts.map +1 -1
- package/dist/src/channel/payload.d.ts +93 -178
- package/dist/src/channel/payload.d.ts.map +1 -1
- package/dist/src/channel/retriever.d.ts +3 -2
- package/dist/src/channel/retriever.d.ts.map +1 -1
- package/dist/src/channel/types.gen.d.ts +151 -0
- package/dist/src/channel/types.gen.d.ts.map +1 -0
- package/dist/src/channel/writer.d.ts +1 -1
- package/dist/src/channel/writer.d.ts.map +1 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/cluster/index.d.ts +2 -0
- package/dist/src/cluster/index.d.ts.map +1 -0
- package/dist/src/cluster/types.gen.d.ts +4 -0
- package/dist/src/cluster/types.gen.d.ts.map +1 -0
- package/dist/src/control/state.d.ts +14 -9
- package/dist/src/control/state.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +7 -12
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/external.d.ts +1 -1
- package/dist/src/device/external.d.ts.map +1 -1
- package/dist/src/device/types.gen.d.ts +163 -0
- package/dist/src/device/types.gen.d.ts.map +1 -0
- package/dist/src/framer/adapter.d.ts +2 -2
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/client.d.ts +7 -7
- package/dist/src/framer/client.d.ts.map +1 -1
- package/dist/src/framer/codec.d.ts +5 -5
- package/dist/src/framer/codec.d.ts.map +1 -1
- package/dist/src/framer/external.d.ts +1 -1
- package/dist/src/framer/external.d.ts.map +1 -1
- package/dist/src/framer/frame.d.ts +18 -18
- package/dist/src/framer/frame.d.ts.map +1 -1
- package/dist/src/framer/reader.d.ts +1 -1
- package/dist/src/framer/reader.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +177 -114
- package/dist/src/framer/streamer.d.ts.map +1 -1
- package/dist/src/framer/types.gen.d.ts +9 -0
- package/dist/src/framer/types.gen.d.ts.map +1 -0
- package/dist/src/framer/writer.d.ts +192 -128
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/group/client.d.ts +17 -17
- package/dist/src/group/client.d.ts.map +1 -1
- package/dist/src/group/external.d.ts +1 -1
- package/dist/src/group/external.d.ts.map +1 -1
- package/dist/src/group/types.gen.d.ts +23 -0
- package/dist/src/group/types.gen.d.ts.map +1 -0
- package/dist/src/label/client.d.ts +51 -72
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/label/payload.d.ts +30 -8
- package/dist/src/label/payload.d.ts.map +1 -1
- package/dist/src/lineplot/client.d.ts +2 -11
- package/dist/src/lineplot/client.d.ts.map +1 -1
- package/dist/src/lineplot/external.d.ts +1 -1
- package/dist/src/lineplot/external.d.ts.map +1 -1
- package/dist/src/lineplot/types.gen.d.ts +33 -0
- package/dist/src/lineplot/types.gen.d.ts.map +1 -0
- package/dist/src/log/client.d.ts +2 -11
- package/dist/src/log/client.d.ts.map +1 -1
- package/dist/src/log/external.d.ts +1 -1
- package/dist/src/log/external.d.ts.map +1 -1
- package/dist/src/log/types.gen.d.ts +33 -0
- package/dist/src/log/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/client.d.ts +31 -31
- package/dist/src/ontology/payload.d.ts +74 -99
- package/dist/src/ontology/payload.d.ts.map +1 -1
- package/dist/src/ontology/types.gen.d.ts +30 -0
- package/dist/src/ontology/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/writer.d.ts +80 -80
- package/dist/src/rack/client.d.ts +22 -11
- package/dist/src/rack/client.d.ts.map +1 -1
- package/dist/src/rack/external.d.ts +1 -1
- package/dist/src/rack/external.d.ts.map +1 -1
- package/dist/src/rack/types.gen.d.ts +72 -0
- package/dist/src/rack/types.gen.d.ts.map +1 -0
- package/dist/src/range/alias/types.gen.d.ts +14 -0
- package/dist/src/range/alias/types.gen.d.ts.map +1 -0
- package/dist/src/range/kv/types.gen.d.ts +13 -0
- package/dist/src/range/kv/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/alias/client.d.ts +1 -1
- package/dist/src/ranger/alias/client.d.ts.map +1 -1
- package/dist/src/ranger/alias/external.d.ts +3 -1
- package/dist/src/ranger/alias/external.d.ts.map +1 -1
- package/dist/src/ranger/alias/payload.d.ts +5 -9
- package/dist/src/ranger/alias/payload.d.ts.map +1 -1
- package/dist/src/ranger/alias/payload.spec.d.ts +2 -0
- package/dist/src/ranger/alias/payload.spec.d.ts.map +1 -0
- package/dist/src/ranger/alias/types.gen.d.ts +14 -0
- package/dist/src/ranger/alias/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/client.d.ts +10 -15
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/external.d.ts +4 -4
- package/dist/src/ranger/external.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts +1 -1
- package/dist/src/ranger/kv/client.d.ts.map +1 -1
- package/dist/src/ranger/kv/external.d.ts +3 -1
- package/dist/src/ranger/kv/external.d.ts.map +1 -1
- package/dist/src/ranger/kv/payload.d.ts +6 -13
- package/dist/src/ranger/kv/payload.d.ts.map +1 -1
- package/dist/src/ranger/kv/types.gen.d.ts +13 -0
- package/dist/src/ranger/kv/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/payload.d.ts +2 -97
- package/dist/src/ranger/payload.d.ts.map +1 -1
- package/dist/src/ranger/types.gen.d.ts +219 -0
- package/dist/src/ranger/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/writer.d.ts +25 -25
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/client.d.ts +2 -11
- package/dist/src/schematic/client.d.ts.map +1 -1
- package/dist/src/schematic/external.d.ts +1 -1
- package/dist/src/schematic/external.d.ts.map +1 -1
- package/dist/src/schematic/symbol/client.d.ts +1 -2
- package/dist/src/schematic/symbol/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/external.d.ts +1 -1
- package/dist/src/schematic/symbol/external.d.ts.map +1 -1
- package/dist/src/schematic/symbol/types.gen.d.ts +277 -0
- package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -0
- package/dist/src/schematic/types.gen.d.ts +35 -0
- package/dist/src/schematic/types.gen.d.ts.map +1 -0
- package/dist/src/status/client.d.ts +2 -0
- package/dist/src/status/client.d.ts.map +1 -1
- package/dist/src/status/payload.d.ts +25 -54
- package/dist/src/status/payload.d.ts.map +1 -1
- package/dist/src/table/client.d.ts +2 -11
- package/dist/src/table/client.d.ts.map +1 -1
- package/dist/src/table/external.d.ts +1 -1
- package/dist/src/table/external.d.ts.map +1 -1
- package/dist/src/table/types.gen.d.ts +33 -0
- package/dist/src/table/types.gen.d.ts.map +1 -0
- package/dist/src/task/client.d.ts +15 -20
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/task/external.d.ts +1 -1
- package/dist/src/task/external.d.ts.map +1 -1
- package/dist/src/task/types.gen.d.ts +155 -0
- package/dist/src/task/types.gen.d.ts.map +1 -0
- package/dist/src/user/client.d.ts +3 -3
- package/dist/src/user/client.d.ts.map +1 -1
- package/dist/src/user/external.d.ts +1 -1
- package/dist/src/user/external.d.ts.map +1 -1
- package/dist/src/user/types.gen.d.ts +35 -0
- package/dist/src/user/types.gen.d.ts.map +1 -0
- package/dist/src/util/decodeJSONString.d.ts.map +1 -1
- package/dist/src/view/client.d.ts +1 -10
- package/dist/src/view/client.d.ts.map +1 -1
- package/dist/src/view/external.d.ts +1 -1
- package/dist/src/view/external.d.ts.map +1 -1
- package/dist/src/view/types.gen.d.ts +35 -0
- package/dist/src/view/types.gen.d.ts.map +1 -0
- package/dist/src/workspace/client.d.ts +2 -11
- package/dist/src/workspace/client.d.ts.map +1 -1
- package/dist/src/workspace/external.d.ts +1 -1
- package/dist/src/workspace/external.d.ts.map +1 -1
- package/dist/src/workspace/types.gen.d.ts +34 -0
- package/dist/src/workspace/types.gen.d.ts.map +1 -0
- package/package.json +11 -11
- package/src/access/action/index.ts +11 -0
- package/src/access/{payload.ts → action/types.gen.ts} +4 -1
- package/src/access/enforce.spec.ts +1 -2
- package/src/access/enforce.ts +2 -2
- package/src/access/external.ts +1 -1
- package/src/access/policy/client.ts +2 -2
- package/src/access/policy/external.ts +1 -1
- package/src/access/policy/types.gen.ts +44 -0
- package/src/access/role/client.ts +2 -2
- package/src/access/role/external.ts +1 -1
- package/src/access/role/types.gen.ts +46 -0
- package/src/arc/access.spec.ts +18 -6
- package/src/arc/client.ts +3 -3
- package/src/{framer/payload.ts → arc/compiler/index.ts} +1 -6
- package/src/arc/compiler/types.gen.ts +27 -0
- package/src/arc/external.ts +6 -1
- package/src/arc/graph/index.ts +10 -0
- package/src/arc/graph/types.gen.ts +59 -0
- package/src/arc/ir/index.ts +10 -0
- package/src/arc/ir/types.gen.ts +166 -0
- package/src/arc/module/index.ts +10 -0
- package/src/arc/module/types.gen.ts +18 -0
- package/src/arc/program/index.ts +10 -0
- package/src/arc/program/types.gen.ts +18 -0
- package/src/arc/text/index.ts +10 -0
- package/src/arc/text/types.gen.ts +19 -0
- package/src/arc/types/index.ts +10 -0
- package/src/arc/types/types.gen.ts +132 -0
- package/src/arc/types.gen.ts +85 -0
- package/src/channel/client.ts +14 -15
- package/src/channel/external.ts +1 -0
- package/src/channel/payload.spec.ts +19 -16
- package/src/channel/payload.ts +14 -82
- package/src/channel/retriever.ts +9 -18
- package/src/channel/types.gen.ts +137 -0
- package/src/channel/writer.ts +2 -2
- package/src/client.ts +4 -0
- package/src/cluster/index.ts +10 -0
- package/src/cluster/types.gen.ts +16 -0
- package/src/control/state.ts +8 -6
- package/src/device/client.ts +14 -11
- package/src/device/device.spec.ts +95 -1
- package/src/device/external.ts +1 -1
- package/src/device/payload.spec.ts +26 -2
- package/src/device/types.gen.ts +100 -0
- package/src/framer/adapter.ts +7 -4
- package/src/framer/client.ts +15 -9
- package/src/framer/codec.spec.ts +25 -5
- package/src/framer/codec.ts +11 -9
- package/src/framer/deleter.spec.ts +0 -15
- package/src/framer/external.ts +1 -1
- package/src/framer/frame.ts +44 -36
- package/src/framer/reader.spec.ts +2 -2
- package/src/framer/reader.ts +6 -6
- package/src/framer/streamer.spec.ts +98 -0
- package/src/framer/streamer.ts +10 -0
- package/src/framer/types.gen.ts +20 -0
- package/src/framer/writer.ts +14 -8
- package/src/group/client.ts +1 -1
- package/src/group/external.ts +1 -1
- package/src/group/group.spec.ts +1 -1
- package/src/{access/role/payload.ts → group/types.gen.ts} +11 -11
- package/src/label/client.ts +2 -5
- package/src/label/label.spec.ts +12 -3
- package/src/label/payload.ts +3 -1
- package/src/lineplot/client.ts +9 -11
- package/src/lineplot/external.ts +1 -1
- package/src/lineplot/lineplot.spec.ts +40 -0
- package/src/lineplot/types.gen.ts +42 -0
- package/src/log/client.ts +9 -18
- package/src/log/external.ts +1 -1
- package/src/log/log.spec.ts +38 -0
- package/src/log/types.gen.ts +42 -0
- package/src/ontology/payload.ts +5 -29
- package/src/ontology/types.gen.ts +41 -0
- package/src/rack/client.ts +26 -10
- package/src/rack/external.ts +1 -1
- package/src/rack/rack.spec.ts +37 -0
- package/src/rack/types.gen.ts +62 -0
- package/src/range/alias/types.gen.ts +30 -0
- package/src/range/kv/types.gen.ts +28 -0
- package/src/ranger/alias/client.ts +1 -1
- package/src/ranger/alias/external.ts +3 -10
- package/src/ranger/alias/payload.spec.ts +52 -0
- package/src/ranger/alias/payload.ts +11 -10
- package/src/ranger/alias/types.gen.ts +30 -0
- package/src/ranger/client.ts +34 -45
- package/src/ranger/external.ts +3 -3
- package/src/ranger/kv/client.ts +3 -3
- package/src/ranger/kv/external.ts +3 -7
- package/src/ranger/kv/payload.ts +1 -6
- package/src/ranger/kv/types.gen.ts +28 -0
- package/src/ranger/payload.ts +2 -46
- package/src/ranger/ranger.spec.ts +2 -4
- package/src/ranger/types.gen.ts +66 -0
- package/src/ranger/writer.ts +2 -1
- package/src/schematic/client.ts +11 -14
- package/src/schematic/external.ts +1 -1
- package/src/schematic/schematic.spec.ts +54 -2
- package/src/schematic/symbol/client.ts +2 -4
- package/src/schematic/symbol/external.ts +1 -1
- package/src/schematic/symbol/types.gen.ts +124 -0
- package/src/schematic/types.gen.ts +44 -0
- package/src/status/client.ts +4 -3
- package/src/status/payload.ts +5 -4
- package/src/status/status.spec.ts +106 -11
- package/src/table/client.ts +10 -19
- package/src/table/external.ts +1 -1
- package/src/table/table.spec.ts +38 -0
- package/src/table/types.gen.ts +42 -0
- package/src/task/client.ts +30 -28
- package/src/task/external.ts +1 -1
- package/src/task/payload.spec.ts +19 -19
- package/src/task/task.spec.ts +127 -9
- package/src/task/types.gen.ts +169 -0
- package/src/user/client.ts +2 -2
- package/src/user/external.ts +1 -1
- package/src/user/types.gen.ts +49 -0
- package/src/util/decodeJSONString.ts +1 -1
- package/src/util/retrieve.ts +2 -2
- package/src/view/client.ts +2 -7
- package/src/view/external.ts +1 -1
- package/src/view/types.gen.ts +44 -0
- package/src/workspace/client.ts +10 -14
- package/src/workspace/external.ts +1 -1
- package/src/workspace/types.gen.ts +45 -0
- package/src/workspace/workspace.spec.ts +37 -0
- package/tsconfig.json +1 -3
- package/vite.config.ts +9 -2
- package/dist/src/access/payload.d.ts.map +0 -1
- package/dist/src/access/policy/payload.d.ts +0 -156
- package/dist/src/access/policy/payload.d.ts.map +0 -1
- package/dist/src/access/role/payload.d.ts +0 -27
- package/dist/src/access/role/payload.d.ts.map +0 -1
- package/dist/src/arc/payload.d.ts +0 -167
- package/dist/src/arc/payload.d.ts.map +0 -1
- package/dist/src/device/payload.d.ts +0 -281
- package/dist/src/device/payload.d.ts.map +0 -1
- package/dist/src/framer/payload.d.ts +0 -7
- package/dist/src/framer/payload.d.ts.map +0 -1
- package/dist/src/group/payload.d.ts +0 -16
- package/dist/src/group/payload.d.ts.map +0 -1
- package/dist/src/lineplot/payload.d.ts +0 -28
- package/dist/src/lineplot/payload.d.ts.map +0 -1
- package/dist/src/log/payload.d.ts +0 -28
- package/dist/src/log/payload.d.ts.map +0 -1
- package/dist/src/rack/payload.d.ts +0 -243
- package/dist/src/rack/payload.d.ts.map +0 -1
- package/dist/src/schematic/payload.d.ts +0 -38
- package/dist/src/schematic/payload.d.ts.map +0 -1
- package/dist/src/schematic/symbol/payload.d.ts +0 -169
- package/dist/src/schematic/symbol/payload.d.ts.map +0 -1
- package/dist/src/table/payload.d.ts +0 -33
- package/dist/src/table/payload.d.ts.map +0 -1
- package/dist/src/task/payload.d.ts +0 -123
- package/dist/src/task/payload.d.ts.map +0 -1
- package/dist/src/user/payload.d.ts +0 -22
- package/dist/src/user/payload.d.ts.map +0 -1
- package/dist/src/view/payload.d.ts +0 -20
- package/dist/src/view/payload.d.ts.map +0 -1
- package/dist/src/workspace/payload.d.ts +0 -33
- package/dist/src/workspace/payload.d.ts.map +0 -1
- package/src/access/policy/payload.ts +0 -37
- package/src/arc/payload.ts +0 -73
- package/src/device/payload.ts +0 -83
- package/src/group/payload.ts +0 -24
- package/src/lineplot/payload.ts +0 -29
- package/src/log/payload.ts +0 -29
- package/src/rack/payload.ts +0 -30
- package/src/schematic/payload.ts +0 -34
- package/src/schematic/symbol/payload.ts +0 -70
- package/src/table/payload.ts +0 -33
- package/src/task/payload.ts +0 -127
- package/src/user/payload.ts +0 -29
- package/src/view/payload.ts +0 -25
- package/src/workspace/payload.ts +0 -33
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ontology } from '../../ontology';
|
|
3
|
+
/**
|
|
4
|
+
* Region is a visual styling area within a symbol state, targeting specific SVG
|
|
5
|
+
* elements for dynamic coloring.
|
|
6
|
+
*/
|
|
7
|
+
export declare const regionZ: z.ZodObject<{
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
|
|
11
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
12
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export interface Region extends z.infer<typeof regionZ> {
|
|
15
|
+
}
|
|
16
|
+
/** Handle is a connection point on a symbol for linking to other diagram elements. */
|
|
17
|
+
export declare const handleZ: z.ZodObject<{
|
|
18
|
+
key: z.ZodString;
|
|
19
|
+
position: z.ZodObject<{
|
|
20
|
+
x: z.ZodNumber;
|
|
21
|
+
y: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
orientation: z.ZodEnum<{
|
|
24
|
+
top: "top";
|
|
25
|
+
right: "right";
|
|
26
|
+
bottom: "bottom";
|
|
27
|
+
left: "left";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export interface Handle extends z.infer<typeof handleZ> {
|
|
31
|
+
}
|
|
32
|
+
/** Viewport is the camera state for viewing or previewing a symbol. */
|
|
33
|
+
export declare const viewportZ: z.ZodObject<{
|
|
34
|
+
zoom: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
position: z.ZodObject<{
|
|
36
|
+
x: z.ZodNumber;
|
|
37
|
+
y: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export interface Viewport extends z.infer<typeof viewportZ> {
|
|
41
|
+
}
|
|
42
|
+
export declare const keyZ: z.ZodUUID;
|
|
43
|
+
export type Key = z.infer<typeof keyZ>;
|
|
44
|
+
/** State is a named visual state of a symbol with regional styling configurations. */
|
|
45
|
+
export declare const stateZ: z.ZodObject<{
|
|
46
|
+
key: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
49
|
+
key: string;
|
|
50
|
+
name: string;
|
|
51
|
+
selectors: string[];
|
|
52
|
+
strokeColor?: string | undefined;
|
|
53
|
+
fillColor?: string | undefined;
|
|
54
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
55
|
+
key: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
|
|
58
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
59
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>]>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export interface State extends z.infer<typeof stateZ> {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Spec is the complete symbol definition including geometry, states, handles, and
|
|
66
|
+
* rendering properties.
|
|
67
|
+
*/
|
|
68
|
+
export declare const specZ: z.ZodObject<{
|
|
69
|
+
svg: z.ZodString;
|
|
70
|
+
states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
71
|
+
key: string;
|
|
72
|
+
name: string;
|
|
73
|
+
regions: {
|
|
74
|
+
key: string;
|
|
75
|
+
name: string;
|
|
76
|
+
selectors: string[];
|
|
77
|
+
strokeColor?: string | undefined;
|
|
78
|
+
fillColor?: string | undefined;
|
|
79
|
+
}[];
|
|
80
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
81
|
+
key: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
84
|
+
key: string;
|
|
85
|
+
name: string;
|
|
86
|
+
selectors: string[];
|
|
87
|
+
strokeColor?: string | undefined;
|
|
88
|
+
fillColor?: string | undefined;
|
|
89
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
|
|
93
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
94
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>]>;
|
|
96
|
+
}, z.core.$strip>>]>;
|
|
97
|
+
variant: z.ZodString;
|
|
98
|
+
handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
99
|
+
key: string;
|
|
100
|
+
position: {
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
};
|
|
104
|
+
orientation: "top" | "right" | "bottom" | "left";
|
|
105
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
106
|
+
key: z.ZodString;
|
|
107
|
+
position: z.ZodObject<{
|
|
108
|
+
x: z.ZodNumber;
|
|
109
|
+
y: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
orientation: z.ZodEnum<{
|
|
112
|
+
top: "top";
|
|
113
|
+
right: "right";
|
|
114
|
+
bottom: "bottom";
|
|
115
|
+
left: "left";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strip>>]>;
|
|
118
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
119
|
+
scaleStroke: z.ZodDefault<z.ZodBoolean>;
|
|
120
|
+
previewViewport: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
zoom: z.ZodDefault<z.ZodNumber>;
|
|
122
|
+
position: z.ZodObject<{
|
|
123
|
+
x: z.ZodNumber;
|
|
124
|
+
y: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export interface Spec extends z.infer<typeof specZ> {
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Symbol is a persisted schematic symbol with versioning, defining reusable visual
|
|
132
|
+
* components for diagrams.
|
|
133
|
+
*/
|
|
134
|
+
export declare const symbolZ: z.ZodObject<{
|
|
135
|
+
key: z.ZodUUID;
|
|
136
|
+
version: z.ZodDefault<z.ZodUInt32>;
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
data: z.ZodObject<{
|
|
139
|
+
svg: z.ZodString;
|
|
140
|
+
states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
141
|
+
key: string;
|
|
142
|
+
name: string;
|
|
143
|
+
regions: {
|
|
144
|
+
key: string;
|
|
145
|
+
name: string;
|
|
146
|
+
selectors: string[];
|
|
147
|
+
strokeColor?: string | undefined;
|
|
148
|
+
fillColor?: string | undefined;
|
|
149
|
+
}[];
|
|
150
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
151
|
+
key: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
154
|
+
key: string;
|
|
155
|
+
name: string;
|
|
156
|
+
selectors: string[];
|
|
157
|
+
strokeColor?: string | undefined;
|
|
158
|
+
fillColor?: string | undefined;
|
|
159
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
160
|
+
key: z.ZodString;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
|
|
163
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
164
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>]>;
|
|
166
|
+
}, z.core.$strip>>]>;
|
|
167
|
+
variant: z.ZodString;
|
|
168
|
+
handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
169
|
+
key: string;
|
|
170
|
+
position: {
|
|
171
|
+
x: number;
|
|
172
|
+
y: number;
|
|
173
|
+
};
|
|
174
|
+
orientation: "top" | "right" | "bottom" | "left";
|
|
175
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
176
|
+
key: z.ZodString;
|
|
177
|
+
position: z.ZodObject<{
|
|
178
|
+
x: z.ZodNumber;
|
|
179
|
+
y: z.ZodNumber;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
orientation: z.ZodEnum<{
|
|
182
|
+
top: "top";
|
|
183
|
+
right: "right";
|
|
184
|
+
bottom: "bottom";
|
|
185
|
+
left: "left";
|
|
186
|
+
}>;
|
|
187
|
+
}, z.core.$strip>>]>;
|
|
188
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
189
|
+
scaleStroke: z.ZodDefault<z.ZodBoolean>;
|
|
190
|
+
previewViewport: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
zoom: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
position: z.ZodObject<{
|
|
193
|
+
x: z.ZodNumber;
|
|
194
|
+
y: z.ZodNumber;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export interface Symbol extends z.infer<typeof symbolZ> {
|
|
200
|
+
}
|
|
201
|
+
/** New contains parameters for creating a new schematic symbol. */
|
|
202
|
+
export declare const newZ: z.ZodObject<{
|
|
203
|
+
key: z.ZodOptional<z.ZodUUID>;
|
|
204
|
+
version: z.ZodDefault<z.ZodUInt32>;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
data: z.ZodObject<{
|
|
207
|
+
svg: z.ZodString;
|
|
208
|
+
states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
209
|
+
key: string;
|
|
210
|
+
name: string;
|
|
211
|
+
regions: {
|
|
212
|
+
key: string;
|
|
213
|
+
name: string;
|
|
214
|
+
selectors: string[];
|
|
215
|
+
strokeColor?: string | undefined;
|
|
216
|
+
fillColor?: string | undefined;
|
|
217
|
+
}[];
|
|
218
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
219
|
+
key: z.ZodString;
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
222
|
+
key: string;
|
|
223
|
+
name: string;
|
|
224
|
+
selectors: string[];
|
|
225
|
+
strokeColor?: string | undefined;
|
|
226
|
+
fillColor?: string | undefined;
|
|
227
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
228
|
+
key: z.ZodString;
|
|
229
|
+
name: z.ZodString;
|
|
230
|
+
selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
|
|
231
|
+
strokeColor: z.ZodOptional<z.ZodString>;
|
|
232
|
+
fillColor: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, z.core.$strip>>]>;
|
|
234
|
+
}, z.core.$strip>>]>;
|
|
235
|
+
variant: z.ZodString;
|
|
236
|
+
handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
237
|
+
key: string;
|
|
238
|
+
position: {
|
|
239
|
+
x: number;
|
|
240
|
+
y: number;
|
|
241
|
+
};
|
|
242
|
+
orientation: "top" | "right" | "bottom" | "left";
|
|
243
|
+
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
244
|
+
key: z.ZodString;
|
|
245
|
+
position: z.ZodObject<{
|
|
246
|
+
x: z.ZodNumber;
|
|
247
|
+
y: z.ZodNumber;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
orientation: z.ZodEnum<{
|
|
250
|
+
top: "top";
|
|
251
|
+
right: "right";
|
|
252
|
+
bottom: "bottom";
|
|
253
|
+
left: "left";
|
|
254
|
+
}>;
|
|
255
|
+
}, z.core.$strip>>]>;
|
|
256
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
257
|
+
scaleStroke: z.ZodDefault<z.ZodBoolean>;
|
|
258
|
+
previewViewport: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
zoom: z.ZodDefault<z.ZodNumber>;
|
|
260
|
+
position: z.ZodObject<{
|
|
261
|
+
x: z.ZodNumber;
|
|
262
|
+
y: z.ZodNumber;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
export interface New extends z.input<typeof newZ> {
|
|
268
|
+
}
|
|
269
|
+
export declare const ontologyID: ontology.CreateID<string>;
|
|
270
|
+
export declare const TYPE_ONTOLOGY_ID: {
|
|
271
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
272
|
+
key: string;
|
|
273
|
+
} | {
|
|
274
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
275
|
+
key: string;
|
|
276
|
+
};
|
|
277
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;iBAWlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,sFAAsF;AACtF,eAAO,MAAM,OAAO;;;;;;;;;;;;iBAOlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,uEAAuE;AACvE,eAAO,MAAM,SAAS;;;;;;iBAKpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC;CAAG;AAE9D,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,sFAAsF;AACtF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;iBAOjB,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAExD;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAehB,CAAC;AACH,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC;CAAG;AAEtD;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,mEAAmE;AACnE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAAoD,CAAC;AAC5E,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { record } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../ontology';
|
|
4
|
+
export declare const keyZ: z.ZodUUID;
|
|
5
|
+
export type Key = z.infer<typeof keyZ>;
|
|
6
|
+
/**
|
|
7
|
+
* Schematic is a visual diagram editor component for drawing system schematics,
|
|
8
|
+
* control flows, and process diagrams. Schematics support interactive
|
|
9
|
+
* symbols, connection handles, and dynamic state visualization.
|
|
10
|
+
*/
|
|
11
|
+
export declare const schematicZ: z.ZodObject<{
|
|
12
|
+
key: z.ZodUUID;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
15
|
+
snapshot: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export interface Schematic extends z.infer<typeof schematicZ> {
|
|
18
|
+
}
|
|
19
|
+
export declare const newZ: z.ZodObject<{
|
|
20
|
+
key: z.ZodOptional<z.ZodUUID>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
23
|
+
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export interface New extends z.input<typeof newZ> {
|
|
26
|
+
}
|
|
27
|
+
export declare const ontologyID: ontology.CreateID<string>;
|
|
28
|
+
export declare const TYPE_ONTOLOGY_ID: {
|
|
29
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
30
|
+
key: string;
|
|
31
|
+
} | {
|
|
32
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
33
|
+
key: string;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/schematic/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;iBAYrB,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,eAAO,MAAM,IAAI;;;;;iBAAoD,CAAC;AACtE,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAA6C,CAAC;AACrE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -9,6 +9,7 @@ declare const retrieveRequestZ: z.ZodObject<{
|
|
|
9
9
|
limit: z.ZodOptional<z.ZodInt>;
|
|
10
10
|
includeLabels: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
hasLabels: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
12
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
13
|
}, z.core.$strip>;
|
|
13
14
|
declare const singleRetrieveArgsZ: z.ZodPipe<z.ZodObject<{
|
|
14
15
|
key: z.ZodString;
|
|
@@ -36,6 +37,7 @@ declare const retrieveArgsZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
|
36
37
|
limit: z.ZodOptional<z.ZodInt>;
|
|
37
38
|
includeLabels: z.ZodOptional<z.ZodBoolean>;
|
|
38
39
|
hasLabels: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
40
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
41
|
}, z.core.$strip>]>;
|
|
40
42
|
export type RetrieveArgs = z.input<typeof retrieveArgsZ>;
|
|
41
43
|
export type SingleRetrieveArgs = z.input<typeof singleRetrieveArgsZ>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/status/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,GAAG,EAAQ,KAAK,GAAG,EAAQ,KAAK,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAgBxF,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/status/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,GAAG,EAAQ,KAAK,GAAG,EAAQ,KAAK,MAAM,EAAW,MAAM,kBAAkB,CAAC;AAgBxF,QAAA,MAAM,gBAAgB;;;;;;;;iBAQpB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;;;;;;;GAEiD,CAAC;AAE3E,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;mBAAmD,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAMjE,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC;CACtB;AAED,qBAAa,MAAM;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAY;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,aAAa,SAAS,CAAC,CAAC,OAAO,EAC5C,IAAI,EAAE,kBAAkB,GAAG;QAAE,aAAa,CAAC,EAAE,aAAa,CAAA;KAAE,GAC3D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAiBpD,GAAG,CAAC,aAAa,SAAS,CAAC,CAAC,OAAO,EACvC,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,EAC1B,IAAI,CAAC,EAAE,UAAU,GAAG;QAAE,aAAa,CAAC,EAAE,aAAa,CAAA;KAAE,GACpD,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC3B,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IACpD,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAuB1D,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/C"}
|
|
@@ -3,73 +3,44 @@ import { z } from 'zod';
|
|
|
3
3
|
import { ontology } from '../ontology';
|
|
4
4
|
export declare const keyZ: z.ZodString;
|
|
5
5
|
export type Key = z.infer<typeof keyZ>;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
details: DetailsSchema;
|
|
16
|
-
}), "labels">> | Exclude<"variant", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
17
|
-
details: DetailsSchema;
|
|
18
|
-
}), "labels">> | Exclude<"labels", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
19
|
-
details: DetailsSchema;
|
|
20
|
-
}), "labels">> | Exclude<"time", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
21
|
-
details: DetailsSchema;
|
|
22
|
-
}), "labels">> | Exclude<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
23
|
-
details: DetailsSchema;
|
|
24
|
-
}), "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
25
|
-
details: DetailsSchema;
|
|
26
|
-
}), "labels">>) & "key" extends never ? (Omit<{
|
|
27
|
-
key: z.ZodString;
|
|
28
|
-
name: z.ZodDefault<z.ZodString>;
|
|
29
|
-
variant: typeof status.variantZ;
|
|
6
|
+
export declare const statusZ: <Details extends z.ZodType = z.ZodNever>(detailsSchema?: Details) => status.StatusZodObject<Details, z.ZodEnum<{
|
|
7
|
+
success: "success";
|
|
8
|
+
error: "error";
|
|
9
|
+
info: "info";
|
|
10
|
+
warning: "warning";
|
|
11
|
+
loading: "loading";
|
|
12
|
+
disabled: "disabled";
|
|
13
|
+
}>>;
|
|
14
|
+
export declare const newZ: <DetailsSchema extends z.ZodType = z.ZodNever>(detailsSchema?: DetailsSchema) => z.ZodObject<{
|
|
30
15
|
message: z.ZodString;
|
|
16
|
+
key: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
17
|
+
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
31
18
|
description: z.ZodOptional<z.ZodString>;
|
|
32
|
-
|
|
33
|
-
time: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
19
|
+
time: z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
34
20
|
value: z.ZodBigInt;
|
|
35
21
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
36
22
|
value: bigint;
|
|
37
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
message: z.ZodString;
|
|
49
|
-
description: z.ZodOptional<z.ZodString>;
|
|
50
|
-
labels: z.ZodOptional<ReturnType<typeof import('@synnaxlabs/x/dist/src/array/nullable').nullableZ>>;
|
|
51
|
-
time: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
52
|
-
value: z.ZodBigInt;
|
|
53
|
-
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
54
|
-
value: bigint;
|
|
55
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
56
|
-
} & ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
57
|
-
details: DetailsSchema;
|
|
58
|
-
}), "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
59
|
-
details: DetailsSchema;
|
|
60
|
-
}), "labels">> extends infer T_3 ? { [k_1 in keyof T_3]: T_3[k_1]; } : never) extends infer T_2 extends z.core.util.SomeObject ? { [K in keyof T_2 as K extends "key" ? never : K]: T_2[K]; } : never) & {
|
|
61
|
-
key: z.ZodOptional<z.ZodString>;
|
|
62
|
-
}) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
|
|
23
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number] | [number] | [number, number, number]>>]>>>;
|
|
24
|
+
variant: z.ZodEnum<{
|
|
25
|
+
success: "success";
|
|
26
|
+
error: "error";
|
|
27
|
+
info: "info";
|
|
28
|
+
warning: "warning";
|
|
29
|
+
loading: "loading";
|
|
30
|
+
disabled: "disabled";
|
|
31
|
+
}>;
|
|
32
|
+
details: [DetailsSchema] extends [z.ZodNever] ? z.ZodOptional<z.ZodUnknown> : DetailsSchema;
|
|
33
|
+
}, z.core.$strip>;
|
|
63
34
|
export type New<DetailsSchema extends z.ZodType = z.ZodNever> = z.input<ReturnType<typeof newZ<DetailsSchema>>>;
|
|
64
35
|
export type Status<Details extends z.ZodType = z.ZodNever> = status.Status<Details>;
|
|
65
36
|
export declare const SET_CHANNEL_NAME = "sy_status_set";
|
|
66
37
|
export declare const DELETE_CHANNEL_NAME = "sy_status_delete";
|
|
67
38
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
68
39
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
69
|
-
type: "
|
|
40
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
70
41
|
key: string;
|
|
71
42
|
} | {
|
|
72
|
-
type: "
|
|
43
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
73
44
|
key: string;
|
|
74
45
|
};
|
|
75
46
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/status/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAa,CAAC;AAC/B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/status/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAa,CAAC;AAC/B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAGvC,eAAO,MAAM,OAAO,GAAI,OAAO,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,EAC5D,gBAAgB,OAAO;;;;;;;GACsB,CAAC;AAEhD,eAAO,MAAM,IAAI,GAAI,aAAa,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,EAC/D,gBAAgB,aAAa;;;;;;;;;;;;;;;;;;;iBACoC,CAAC;AAGpE,MAAM,MAAM,GAAG,CAAC,aAAa,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,CACrE,UAAU,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CACvC,CAAC;AAGF,MAAM,MAAM,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAEpF,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD,eAAO,MAAM,UAAU,2BAA0C,CAAC;AAClE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { record } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
5
|
-
import { Key, New, Params, Table } from './payload';
|
|
4
|
+
import { Key, New, Table } from './types.gen';
|
|
6
5
|
import { workspace } from '../workspace';
|
|
7
6
|
declare const retrieveReqZ: z.ZodObject<{
|
|
8
7
|
keys: z.ZodArray<z.ZodUUID>;
|
|
@@ -35,15 +34,7 @@ export declare class Client {
|
|
|
35
34
|
setData(key: Key, data: record.Unknown): Promise<void>;
|
|
36
35
|
retrieve(args: RetrieveSingleParams): Promise<Table>;
|
|
37
36
|
retrieve(args: RetrieveMultipleParams): Promise<Table[]>;
|
|
38
|
-
delete(keys:
|
|
37
|
+
delete(keys: Key | Key[]): Promise<void>;
|
|
39
38
|
}
|
|
40
|
-
export declare const ontologyID: ontology.CreateID<string>;
|
|
41
|
-
export declare const TYPE_ONTOLOGY_ID: {
|
|
42
|
-
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
43
|
-
key: string;
|
|
44
|
-
} | {
|
|
45
|
-
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
46
|
-
key: string;
|
|
47
|
-
};
|
|
48
39
|
export {};
|
|
49
40
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/table/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/table/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAmB,MAAM,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,GAAG,EAAQ,KAAK,GAAG,EAAQ,KAAK,KAAK,EAAU,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAUxC,QAAA,MAAM,YAAY;;iBAAmC,CAAC;AACtD,QAAA,MAAM,mBAAmB;;;;;;GAEmB,CAAC;AAE7C,eAAO,MAAM,aAAa;;;;;;;;mBAA+C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACvE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AASlE,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;IAC5D,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAgBjE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7C,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAUtD,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;IACpD,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAgBxD,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/table/external.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/table/external.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { record } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../ontology';
|
|
4
|
+
export declare const keyZ: z.ZodUUID;
|
|
5
|
+
export type Key = z.infer<typeof keyZ>;
|
|
6
|
+
/**
|
|
7
|
+
* Table is a tabular data display component for viewing structured telemetry
|
|
8
|
+
* data. Tables support multiple columns, channel data sources, and
|
|
9
|
+
* customizable formatting options.
|
|
10
|
+
*/
|
|
11
|
+
export declare const tableZ: z.ZodObject<{
|
|
12
|
+
key: z.ZodUUID;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export interface Table extends z.infer<typeof tableZ> {
|
|
17
|
+
}
|
|
18
|
+
export declare const newZ: z.ZodObject<{
|
|
19
|
+
key: z.ZodOptional<z.ZodUUID>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export interface New extends z.input<typeof newZ> {
|
|
24
|
+
}
|
|
25
|
+
export declare const ontologyID: ontology.CreateID<string>;
|
|
26
|
+
export declare const TYPE_ONTOLOGY_ID: {
|
|
27
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
28
|
+
key: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
31
|
+
key: string;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/table/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;iBAUjB,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAExD,eAAO,MAAM,IAAI;;;;iBAAgC,CAAC;AAClD,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAAyC,CAAC;AACjE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|