@synnaxlabs/client 0.56.2 → 0.57.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/dist/client-B08VDLSA.js +14463 -0
- package/dist/client-B08VDLSA.js.map +1 -0
- package/dist/client.js +1128 -14876
- package/dist/client.js.map +1 -0
- package/dist/src/access/client.d.ts +10 -1
- package/dist/src/access/client.d.ts.map +1 -1
- package/dist/src/access/enforce.d.ts.map +1 -1
- package/dist/src/access/external.d.ts +1 -0
- package/dist/src/access/external.d.ts.map +1 -1
- package/dist/src/access/granted.d.ts +39 -0
- package/dist/src/access/granted.d.ts.map +1 -0
- package/dist/src/access/policy/client.d.ts +136 -147
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/access/policy/types.gen.d.ts +15 -68
- package/dist/src/access/policy/types.gen.d.ts.map +1 -1
- package/dist/src/access/role/client.d.ts +77 -58
- package/dist/src/access/role/client.d.ts.map +1 -1
- package/dist/src/access/role/types.gen.d.ts +8 -14
- package/dist/src/access/role/types.gen.d.ts.map +1 -1
- package/dist/src/actions/actions.d.ts +5 -6
- package/dist/src/actions/actions.d.ts.map +1 -1
- package/dist/src/actions/controller.d.ts +194 -0
- package/dist/src/actions/controller.d.ts.map +1 -0
- package/dist/src/actions/external.d.ts +1 -0
- package/dist/src/actions/external.d.ts.map +1 -1
- package/dist/src/arc/actions.d.ts +575 -0
- package/dist/src/arc/actions.d.ts.map +1 -0
- package/dist/src/arc/actions.gen.d.ts +1439 -0
- package/dist/src/arc/actions.gen.d.ts.map +1 -0
- package/dist/src/arc/client.d.ts +97 -13
- package/dist/src/arc/client.d.ts.map +1 -1
- package/dist/src/arc/compiler/types.gen.d.ts +3 -3
- package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
- package/dist/src/arc/external.d.ts +2 -0
- package/dist/src/arc/external.d.ts.map +1 -1
- package/dist/src/arc/graph/types.gen.d.ts +45 -597
- package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
- package/dist/src/arc/ir/index.d.ts +1 -1
- package/dist/src/arc/ir/index.d.ts.map +1 -1
- package/dist/src/arc/ir/ir.d.ts +2 -0
- package/dist/src/arc/ir/ir.d.ts.map +1 -0
- package/dist/src/arc/ir/types.gen.d.ts +58 -2807
- package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
- package/dist/src/arc/module/types.gen.d.ts +18 -1090
- package/dist/src/arc/module/types.gen.d.ts.map +1 -1
- package/dist/src/arc/program/types.gen.d.ts +18 -1090
- package/dist/src/arc/program/types.gen.d.ts.map +1 -1
- package/dist/src/arc/text/types.gen.d.ts +54 -1
- package/dist/src/arc/text/types.gen.d.ts.map +1 -1
- package/dist/src/arc/types/types.gen.d.ts +35 -153
- package/dist/src/arc/types/types.gen.d.ts.map +1 -1
- package/dist/src/arc/types.gen.d.ts +98 -2278
- package/dist/src/arc/types.gen.d.ts.map +1 -1
- package/dist/src/auth/auth.d.ts +14 -2
- package/dist/src/auth/auth.d.ts.map +1 -1
- package/dist/src/channel/client.d.ts +113 -75
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/external.d.ts +0 -1
- package/dist/src/channel/external.d.ts.map +1 -1
- package/dist/src/channel/payload.d.ts +65 -56
- package/dist/src/channel/payload.d.ts.map +1 -1
- package/dist/src/channel/types.gen.d.ts +26 -73
- package/dist/src/channel/types.gen.d.ts.map +1 -1
- package/dist/src/channel/writer.d.ts +1 -3
- package/dist/src/channel/writer.d.ts.map +1 -1
- package/dist/src/client.d.ts +55 -27
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/connection/client.d.ts +146 -0
- package/dist/src/connection/client.d.ts.map +1 -0
- package/dist/src/connection/external.d.ts +3 -0
- package/dist/src/connection/external.d.ts.map +1 -0
- package/dist/src/connection/index.d.ts +1 -1
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/status.d.ts +252 -0
- package/dist/src/connection/status.d.ts.map +1 -0
- package/dist/src/control/client.d.ts +31 -7
- package/dist/src/control/client.d.ts.map +1 -1
- package/dist/src/control/state.d.ts +47 -16
- package/dist/src/control/state.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +59 -17
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/types.gen.d.ts +17 -67
- package/dist/src/device/types.gen.d.ts.map +1 -1
- package/dist/src/errors.d.ts +17 -20
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/ethercat/external.d.ts +2 -0
- package/dist/src/ethercat/external.d.ts.map +1 -0
- package/dist/src/ethercat/index.d.ts +2 -0
- package/dist/src/ethercat/index.d.ts.map +1 -0
- package/dist/src/ethercat/types.gen.d.ts +243 -0
- package/dist/src/ethercat/types.gen.d.ts.map +1 -0
- package/dist/src/framer/adapter.d.ts +8 -5
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/benchutil.d.ts +19 -0
- package/dist/src/framer/benchutil.d.ts.map +1 -0
- package/dist/src/framer/cache/cache.d.ts +38 -0
- package/dist/src/framer/cache/cache.d.ts.map +1 -0
- package/dist/src/framer/cache/dynamic.d.ts +71 -0
- package/dist/src/framer/cache/dynamic.d.ts.map +1 -0
- package/dist/src/framer/cache/reader.d.ts +43 -0
- package/dist/src/framer/cache/reader.d.ts.map +1 -0
- package/dist/src/framer/cache/static.d.ts +66 -0
- package/dist/src/framer/cache/static.d.ts.map +1 -0
- package/dist/src/framer/cache/streamer.d.ts +86 -0
- package/dist/src/framer/cache/streamer.d.ts.map +1 -0
- package/dist/src/framer/cache/transform.d.ts +18 -0
- package/dist/src/framer/cache/transform.d.ts.map +1 -0
- package/dist/src/framer/cache/unary.d.ts +37 -0
- package/dist/src/framer/cache/unary.d.ts.map +1 -0
- package/dist/src/framer/client.d.ts +35 -14
- package/dist/src/framer/client.d.ts.map +1 -1
- package/dist/src/framer/codec.d.ts.map +1 -1
- package/dist/src/framer/deleter.d.ts +3 -2
- package/dist/src/framer/deleter.d.ts.map +1 -1
- package/dist/src/framer/external.d.ts +6 -0
- package/dist/src/framer/external.d.ts.map +1 -1
- package/dist/src/framer/feed.d.ts +40 -0
- package/dist/src/framer/feed.d.ts.map +1 -0
- package/dist/src/framer/frame.d.ts +16 -20
- package/dist/src/framer/frame.d.ts.map +1 -1
- package/dist/src/framer/hardened.d.ts +70 -0
- package/dist/src/framer/hardened.d.ts.map +1 -0
- package/dist/src/framer/iterator.d.ts +36 -43
- package/dist/src/framer/iterator.d.ts.map +1 -1
- package/dist/src/framer/reader.d.ts +3 -2
- package/dist/src/framer/reader.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +132 -205
- package/dist/src/framer/streamer.d.ts.map +1 -1
- package/dist/src/framer/writer.d.ts +130 -161
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/group/client.d.ts +66 -9
- package/dist/src/group/client.d.ts.map +1 -1
- package/dist/src/group/types.gen.d.ts +2 -2
- package/dist/src/http/external.d.ts +2 -0
- package/dist/src/http/external.d.ts.map +1 -0
- package/dist/src/http/index.d.ts +2 -0
- package/dist/src/http/index.d.ts.map +1 -0
- package/dist/src/http/types.gen.d.ts +451 -0
- package/dist/src/http/types.gen.d.ts.map +1 -0
- package/dist/src/imex/client.d.ts +88 -0
- package/dist/src/imex/client.d.ts.map +1 -0
- package/dist/src/imex/index.d.ts +2 -0
- package/dist/src/imex/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +18 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/label/client.d.ts +55 -36
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/label/external.d.ts +2 -0
- package/dist/src/label/external.d.ts.map +1 -1
- package/dist/src/label/payload.d.ts +4 -46
- package/dist/src/label/payload.d.ts.map +1 -1
- package/dist/src/label/store.d.ts +8 -0
- package/dist/src/label/store.d.ts.map +1 -0
- package/dist/src/label/types.gen.d.ts +45 -0
- package/dist/src/label/types.gen.d.ts.map +1 -0
- package/dist/src/labjack/external.d.ts +2 -0
- package/dist/src/labjack/external.d.ts.map +1 -0
- package/dist/src/labjack/index.d.ts +2 -0
- package/dist/src/labjack/index.d.ts.map +1 -0
- package/dist/src/labjack/types.gen.d.ts +442 -0
- package/dist/src/labjack/types.gen.d.ts.map +1 -0
- package/dist/src/lineplot/actions.d.ts +914 -0
- package/dist/src/lineplot/actions.d.ts.map +1 -0
- package/dist/src/lineplot/actions.gen.d.ts +4208 -0
- package/dist/src/lineplot/actions.gen.d.ts.map +1 -0
- package/dist/src/lineplot/client.d.ts +66 -16
- package/dist/src/lineplot/client.d.ts.map +1 -1
- package/dist/src/lineplot/external.d.ts +3 -0
- package/dist/src/lineplot/external.d.ts.map +1 -1
- package/dist/src/lineplot/line.d.ts +16 -0
- package/dist/src/lineplot/line.d.ts.map +1 -0
- package/dist/src/lineplot/types.gen.d.ts +837 -14
- package/dist/src/lineplot/types.gen.d.ts.map +1 -1
- package/dist/src/log/actions.d.ts +271 -0
- package/dist/src/log/actions.d.ts.map +1 -0
- package/dist/src/log/actions.gen.d.ts +1529 -0
- package/dist/src/log/actions.gen.d.ts.map +1 -0
- package/dist/src/log/client.d.ts +66 -16
- package/dist/src/log/client.d.ts.map +1 -1
- package/dist/src/log/external.d.ts +2 -0
- package/dist/src/log/external.d.ts.map +1 -1
- package/dist/src/log/types.gen.d.ts +139 -14
- package/dist/src/log/types.gen.d.ts.map +1 -1
- package/dist/src/modbus/external.d.ts +2 -0
- package/dist/src/modbus/external.d.ts.map +1 -0
- package/dist/src/modbus/index.d.ts +2 -0
- package/dist/src/modbus/index.d.ts.map +1 -0
- package/dist/src/modbus/types.gen.d.ts +280 -0
- package/dist/src/modbus/types.gen.d.ts.map +1 -0
- package/dist/src/ni/external.d.ts +2 -0
- package/dist/src/ni/external.d.ts.map +1 -0
- package/dist/src/ni/index.d.ts +2 -0
- package/dist/src/ni/index.d.ts.map +1 -0
- package/dist/src/ni/types.gen.d.ts +21029 -0
- package/dist/src/ni/types.gen.d.ts.map +1 -0
- package/dist/src/node/index.d.ts +2 -0
- package/dist/src/node/index.d.ts.map +1 -0
- package/dist/src/node/types.gen.d.ts +4 -0
- package/dist/src/node/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/client.d.ts +314 -67
- package/dist/src/ontology/client.d.ts.map +1 -1
- package/dist/src/ontology/external.d.ts +1 -0
- package/dist/src/ontology/external.d.ts.map +1 -1
- package/dist/src/ontology/payload.d.ts +60 -18
- package/dist/src/ontology/payload.d.ts.map +1 -1
- package/dist/src/ontology/store.d.ts +32 -0
- package/dist/src/ontology/store.d.ts.map +1 -0
- package/dist/src/ontology/types.gen.d.ts +3 -2
- package/dist/src/ontology/types.gen.d.ts.map +1 -1
- package/dist/src/ontology/writer.d.ts +16 -10
- package/dist/src/ontology/writer.d.ts.map +1 -1
- package/dist/src/opcua/external.d.ts +2 -0
- package/dist/src/opcua/external.d.ts.map +1 -0
- package/dist/src/opcua/index.d.ts +2 -0
- package/dist/src/opcua/index.d.ts.map +1 -0
- package/dist/src/opcua/types.gen.d.ts +82 -0
- package/dist/src/opcua/types.gen.d.ts.map +1 -0
- package/dist/src/pagerduty/external.d.ts +2 -0
- package/dist/src/pagerduty/external.d.ts.map +1 -0
- package/dist/src/pagerduty/index.d.ts +2 -0
- package/dist/src/pagerduty/index.d.ts.map +1 -0
- package/dist/src/pagerduty/types.gen.d.ts +30 -0
- package/dist/src/pagerduty/types.gen.d.ts.map +1 -0
- package/dist/src/panel/actions.d.ts +273 -0
- package/dist/src/panel/actions.d.ts.map +1 -0
- package/dist/src/panel/actions.gen.d.ts +1255 -0
- package/dist/src/panel/actions.gen.d.ts.map +1 -0
- package/dist/src/panel/client.d.ts +148 -0
- package/dist/src/panel/client.d.ts.map +1 -0
- package/dist/src/panel/external.d.ts +6 -0
- package/dist/src/panel/external.d.ts.map +1 -0
- package/dist/src/panel/index.d.ts +2 -0
- package/dist/src/panel/index.d.ts.map +1 -0
- package/dist/src/panel/tree.d.ts +50 -0
- package/dist/src/panel/tree.d.ts.map +1 -0
- package/dist/src/panel/types.gen.d.ts +370 -0
- package/dist/src/panel/types.gen.d.ts.map +1 -0
- package/dist/src/project/client.d.ts +89 -0
- package/dist/src/project/client.d.ts.map +1 -0
- package/dist/src/project/external.d.ts.map +1 -0
- package/dist/src/project/index.d.ts +2 -0
- package/dist/src/project/index.d.ts.map +1 -0
- package/dist/src/project/types.gen.d.ts +27 -0
- package/dist/src/project/types.gen.d.ts.map +1 -0
- package/dist/src/query/cache.d.ts +132 -0
- package/dist/src/query/cache.d.ts.map +1 -0
- package/dist/src/query/deleted.d.ts +20 -0
- package/dist/src/query/deleted.d.ts.map +1 -0
- package/dist/src/query/derived.d.ts +33 -0
- package/dist/src/query/derived.d.ts.map +1 -0
- package/dist/src/query/external.d.ts +10 -0
- package/dist/src/query/external.d.ts.map +1 -0
- package/dist/src/query/index.d.ts +2 -0
- package/dist/src/query/index.d.ts.map +1 -0
- package/dist/src/query/query.d.ts +235 -0
- package/dist/src/query/query.d.ts.map +1 -0
- package/dist/src/query/retriever.d.ts +135 -0
- package/dist/src/query/retriever.d.ts.map +1 -0
- package/dist/src/query/streamer.d.ts +67 -0
- package/dist/src/query/streamer.d.ts.map +1 -0
- package/dist/src/query/table.d.ts +219 -0
- package/dist/src/query/table.d.ts.map +1 -0
- package/dist/src/query/types.d.ts +35 -0
- package/dist/src/query/types.d.ts.map +1 -0
- package/dist/src/query/write.d.ts +21 -0
- package/dist/src/query/write.d.ts.map +1 -0
- package/dist/src/rack/client.d.ts +58 -20
- package/dist/src/rack/client.d.ts.map +1 -1
- package/dist/src/rack/types.gen.d.ts +11 -12
- package/dist/src/rack/types.gen.d.ts.map +1 -1
- package/dist/src/range/alias/types.gen.d.ts +2 -3
- package/dist/src/range/alias/types.gen.d.ts.map +1 -1
- package/dist/src/ranger/client.d.ts +138 -27
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts +7 -4
- package/dist/src/ranger/kv/client.d.ts.map +1 -1
- package/dist/src/ranger/payload.d.ts +3 -0
- package/dist/src/ranger/payload.d.ts.map +1 -1
- package/dist/src/ranger/types.gen.d.ts +45 -101
- package/dist/src/ranger/types.gen.d.ts.map +1 -1
- package/dist/src/ranger/writer.d.ts +2 -74
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/actions.d.ts +90 -33
- package/dist/src/schematic/actions.d.ts.map +1 -1
- package/dist/src/schematic/actions.gen.d.ts +207 -114
- package/dist/src/schematic/actions.gen.d.ts.map +1 -1
- package/dist/src/schematic/client.d.ts +70 -68
- package/dist/src/schematic/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/client.d.ts +133 -27
- package/dist/src/schematic/symbol/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/types.gen.d.ts +258 -153
- package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
- package/dist/src/schematic/types.gen.d.ts +17 -96
- package/dist/src/schematic/types.gen.d.ts.map +1 -1
- package/dist/src/status/client.d.ts +69 -14
- package/dist/src/status/client.d.ts.map +1 -1
- package/dist/src/status/external.d.ts +2 -0
- package/dist/src/status/external.d.ts.map +1 -1
- package/dist/src/status/payload.d.ts +2 -36
- package/dist/src/status/payload.d.ts.map +1 -1
- package/dist/src/status/status.d.ts +65 -0
- package/dist/src/status/status.d.ts.map +1 -0
- package/dist/src/status/types.gen.d.ts +58 -0
- package/dist/src/status/types.gen.d.ts.map +1 -0
- package/dist/src/table/actions.d.ts +72 -13
- package/dist/src/table/actions.d.ts.map +1 -1
- package/dist/src/table/actions.gen.d.ts +221 -137
- package/dist/src/table/actions.gen.d.ts.map +1 -1
- package/dist/src/table/client.d.ts +64 -40
- package/dist/src/table/client.d.ts.map +1 -1
- package/dist/src/table/types.gen.d.ts +20 -55
- package/dist/src/table/types.gen.d.ts.map +1 -1
- package/dist/src/task/client.d.ts +149 -28
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/task/types.gen.d.ts +71 -89
- package/dist/src/task/types.gen.d.ts.map +1 -1
- package/dist/src/testutil/access.d.ts +27 -1
- package/dist/src/testutil/access.d.ts.map +1 -1
- package/dist/src/testutil/channels.d.ts +2 -0
- package/dist/src/testutil/channels.d.ts.map +1 -1
- package/dist/src/testutil/client.d.ts +5 -0
- package/dist/src/testutil/client.d.ts.map +1 -1
- package/dist/src/testutil/connection.d.ts +10 -0
- package/dist/src/testutil/connection.d.ts.map +1 -0
- package/dist/src/testutil/index.d.ts +9 -0
- package/dist/src/testutil/index.d.ts.map +1 -0
- package/dist/src/testutil/panels.d.ts +8 -0
- package/dist/src/testutil/panels.d.ts.map +1 -0
- package/dist/src/testutil/proxy.d.ts +29 -0
- package/dist/src/testutil/proxy.d.ts.map +1 -0
- package/dist/src/testutil/query.d.ts +7 -0
- package/dist/src/testutil/query.d.ts.map +1 -0
- package/dist/src/testutil/telem.d.ts +4 -0
- package/dist/src/testutil/telem.d.ts.map +1 -1
- package/dist/src/transport.d.ts +10 -4
- package/dist/src/transport.d.ts.map +1 -1
- package/dist/src/user/client.d.ts +29 -28
- 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 +4 -4
- package/dist/src/util/retrieve.d.ts +2 -2
- package/dist/src/util/retrieve.d.ts.map +1 -1
- package/dist/src/util/telem.d.ts.map +1 -1
- package/dist/src/view/client.d.ts +30 -14
- package/dist/src/view/client.d.ts.map +1 -1
- package/dist/src/view/types.gen.d.ts +7 -15
- package/dist/src/view/types.gen.d.ts.map +1 -1
- package/dist/testutil.js +189 -0
- package/dist/testutil.js.map +1 -0
- package/package.json +40 -17
- package/src/access/client.ts +14 -3
- package/src/access/enforce.ts +0 -3
- package/src/access/external.ts +1 -0
- package/src/access/granted.ts +114 -0
- package/src/access/policy/client.ts +135 -43
- package/src/access/policy/types.gen.ts +9 -11
- package/src/access/role/client.ts +160 -38
- package/src/access/role/types.gen.ts +8 -12
- package/src/actions/actions.ts +5 -6
- package/src/actions/controller.ts +626 -0
- package/src/actions/external.ts +11 -0
- package/src/arc/actions.gen.ts +313 -0
- package/src/arc/actions.ts +192 -0
- package/src/arc/client.ts +424 -41
- package/src/arc/compiler/types.gen.ts +5 -6
- package/src/arc/external.ts +2 -0
- package/src/arc/graph/types.gen.ts +24 -22
- package/src/arc/ir/index.ts +1 -1
- package/{eslint.config.ts → src/arc/ir/ir.ts} +1 -4
- package/src/arc/ir/types.gen.ts +42 -41
- package/src/arc/text/types.gen.ts +21 -2
- package/src/arc/types/types.gen.ts +40 -32
- package/src/arc/types.gen.ts +31 -29
- package/src/auth/auth.ts +40 -8
- package/src/channel/client.ts +529 -132
- package/src/channel/external.ts +0 -1
- package/src/channel/payload.ts +30 -3
- package/src/channel/types.gen.ts +37 -48
- package/src/channel/writer.ts +2 -11
- package/src/client.ts +215 -91
- package/src/connection/client.ts +495 -0
- package/src/connection/external.ts +34 -0
- package/src/connection/index.ts +1 -1
- package/src/connection/status.ts +442 -0
- package/src/control/client.ts +84 -12
- package/src/control/state.ts +17 -36
- package/src/device/client.ts +293 -41
- package/src/device/types.gen.ts +15 -26
- package/src/errors.ts +45 -22
- package/src/{workspace → ethercat}/external.ts +1 -2
- package/src/{workspace → ethercat}/index.ts +1 -1
- package/src/ethercat/types.gen.ts +151 -0
- package/src/framer/adapter.ts +60 -37
- package/src/framer/benchutil.ts +67 -0
- package/src/framer/cache/cache.ts +115 -0
- package/src/framer/cache/dynamic.ts +279 -0
- package/src/framer/cache/reader.ts +160 -0
- package/src/framer/cache/static.ts +215 -0
- package/src/framer/cache/streamer.ts +391 -0
- package/src/framer/cache/transform.ts +31 -0
- package/src/framer/cache/unary.ts +104 -0
- package/src/framer/client.ts +71 -43
- package/src/framer/codec.ts +55 -18
- package/src/framer/deleter.ts +4 -6
- package/src/framer/external.ts +10 -0
- package/src/framer/feed.ts +108 -0
- package/src/framer/frame.ts +13 -23
- package/src/framer/hardened.ts +283 -0
- package/src/framer/iterator.ts +31 -42
- package/src/framer/reader.ts +11 -11
- package/src/framer/streamer.ts +18 -178
- package/src/framer/writer.ts +39 -59
- package/src/group/client.ts +158 -23
- package/src/http/external.ts +10 -0
- package/src/{cluster → http}/index.ts +1 -1
- package/src/http/types.gen.ts +245 -0
- package/src/imex/client.ts +125 -0
- package/src/imex/index.ts +10 -0
- package/src/index.ts +18 -6
- package/src/label/client.ts +193 -54
- package/src/label/external.ts +2 -0
- package/src/label/payload.ts +4 -9
- package/src/label/store.ts +28 -0
- package/src/label/types.gen.ts +31 -0
- package/src/labjack/external.ts +10 -0
- package/src/labjack/index.ts +10 -0
- package/src/labjack/types.gen.ts +251 -0
- package/src/lineplot/actions.gen.ts +880 -0
- package/src/lineplot/actions.ts +535 -0
- package/src/lineplot/client.ts +224 -52
- package/src/lineplot/external.ts +3 -0
- package/src/lineplot/line.ts +80 -0
- package/src/lineplot/types.gen.ts +225 -12
- package/src/log/actions.gen.ts +474 -0
- package/src/log/actions.ts +242 -0
- package/src/log/client.ts +223 -52
- package/src/log/external.ts +2 -0
- package/src/log/types.gen.ts +45 -14
- package/src/modbus/external.ts +10 -0
- package/src/modbus/index.ts +10 -0
- package/src/modbus/types.gen.ts +185 -0
- package/src/ni/external.ts +10 -0
- package/src/ni/index.ts +10 -0
- package/src/ni/types.gen.ts +1632 -0
- package/src/node/index.ts +10 -0
- package/src/{cluster → node}/types.gen.ts +2 -2
- package/src/ontology/client.ts +408 -99
- package/src/ontology/external.ts +7 -0
- package/src/ontology/payload.ts +48 -7
- package/src/ontology/store.ts +83 -0
- package/src/ontology/types.gen.ts +2 -1
- package/src/ontology/writer.ts +1 -0
- package/src/opcua/external.ts +10 -0
- package/src/opcua/index.ts +10 -0
- package/src/opcua/types.gen.ts +65 -0
- package/src/pagerduty/external.ts +10 -0
- package/src/pagerduty/index.ts +10 -0
- package/src/pagerduty/types.gen.ts +41 -0
- package/src/panel/actions.gen.ts +267 -0
- package/src/panel/actions.ts +357 -0
- package/src/panel/client.ts +327 -0
- package/src/panel/external.ts +14 -0
- package/src/panel/index.ts +10 -0
- package/src/panel/tree.ts +163 -0
- package/src/panel/types.gen.ts +164 -0
- package/src/project/client.ts +273 -0
- package/src/project/external.ts +11 -0
- package/src/project/index.ts +10 -0
- package/src/project/types.gen.ts +40 -0
- package/src/query/cache.ts +326 -0
- package/src/query/deleted.ts +38 -0
- package/src/query/derived.ts +101 -0
- package/src/query/external.ts +51 -0
- package/src/query/index.ts +10 -0
- package/src/query/query.ts +865 -0
- package/src/query/retriever.ts +308 -0
- package/src/query/streamer.ts +207 -0
- package/src/query/table.ts +625 -0
- package/src/query/types.ts +54 -0
- package/src/query/write.ts +42 -0
- package/src/rack/client.ts +233 -45
- package/src/rack/types.gen.ts +15 -16
- package/src/range/alias/types.gen.ts +2 -3
- package/src/ranger/client.ts +581 -70
- package/src/ranger/kv/client.ts +52 -21
- package/src/ranger/payload.ts +3 -0
- package/src/ranger/types.gen.ts +21 -23
- package/src/ranger/writer.ts +4 -8
- package/src/schematic/actions.gen.ts +62 -53
- package/src/schematic/actions.ts +44 -42
- package/src/schematic/client.ts +226 -70
- package/src/schematic/symbol/client.ts +277 -48
- package/src/schematic/symbol/types.gen.ts +22 -34
- package/src/schematic/types.gen.ts +22 -29
- package/src/status/client.ts +321 -44
- package/src/status/external.ts +2 -0
- package/src/status/payload.ts +1 -23
- package/src/status/status.ts +241 -0
- package/src/status/types.gen.ts +108 -0
- package/src/table/actions.gen.ts +96 -63
- package/src/table/actions.ts +44 -19
- package/src/table/client.ts +220 -56
- package/src/table/types.gen.ts +24 -31
- package/src/task/client.ts +580 -101
- package/src/task/types.gen.ts +68 -75
- package/src/testutil/access.ts +102 -6
- package/src/testutil/channels.ts +29 -0
- package/src/testutil/client.ts +27 -2
- package/src/testutil/connection.ts +47 -0
- package/src/testutil/index.ts +17 -0
- package/src/testutil/panels.ts +26 -0
- package/src/testutil/proxy.ts +106 -0
- package/src/testutil/query.ts +28 -0
- package/src/testutil/telem.ts +17 -1
- package/src/transport.ts +18 -7
- package/src/user/client.ts +165 -64
- package/src/user/external.ts +1 -1
- package/src/user/types.gen.ts +5 -5
- package/src/util/retrieve.ts +4 -4
- package/src/util/telem.ts +0 -1
- package/src/view/client.ts +120 -37
- package/src/view/types.gen.ts +8 -11
- package/.turbo/turbo-build.log +0 -20
- package/.vscode/settings.json +0 -3
- package/CONTRIBUTING.md +0 -47
- package/dist/client.cjs +0 -118
- package/dist/eslint.config.d.ts +0 -4
- package/dist/eslint.config.d.ts.map +0 -1
- package/dist/src/access/enforce.spec.d.ts +0 -2
- package/dist/src/access/enforce.spec.d.ts.map +0 -1
- package/dist/src/access/policy/access.spec.d.ts +0 -2
- package/dist/src/access/policy/access.spec.d.ts.map +0 -1
- package/dist/src/access/role/role.spec.d.ts +0 -2
- package/dist/src/access/role/role.spec.d.ts.map +0 -1
- package/dist/src/actions/actions.spec.d.ts +0 -2
- package/dist/src/actions/actions.spec.d.ts.map +0 -1
- package/dist/src/arc/access.spec.d.ts +0 -2
- package/dist/src/arc/access.spec.d.ts.map +0 -1
- package/dist/src/arc/arc.spec.d.ts +0 -2
- package/dist/src/arc/arc.spec.d.ts.map +0 -1
- package/dist/src/arc/lsp.spec.d.ts +0 -2
- package/dist/src/arc/lsp.spec.d.ts.map +0 -1
- package/dist/src/auth/auth.spec.d.ts +0 -2
- package/dist/src/auth/auth.spec.d.ts.map +0 -1
- package/dist/src/channel/access.spec.d.ts +0 -2
- package/dist/src/channel/access.spec.d.ts.map +0 -1
- package/dist/src/channel/batchRetriever.spec.d.ts +0 -2
- package/dist/src/channel/batchRetriever.spec.d.ts.map +0 -1
- package/dist/src/channel/channel.spec.d.ts +0 -2
- package/dist/src/channel/channel.spec.d.ts.map +0 -1
- package/dist/src/channel/payload.spec.d.ts +0 -2
- package/dist/src/channel/payload.spec.d.ts.map +0 -1
- package/dist/src/channel/retriever.d.ts +0 -64
- package/dist/src/channel/retriever.d.ts.map +0 -1
- package/dist/src/cluster/index.d.ts +0 -2
- package/dist/src/cluster/index.d.ts.map +0 -1
- package/dist/src/cluster/types.gen.d.ts +0 -4
- package/dist/src/cluster/types.gen.d.ts.map +0 -1
- package/dist/src/connection/checker.d.ts +0 -86
- package/dist/src/connection/checker.d.ts.map +0 -1
- package/dist/src/connection/connection.spec.d.ts +0 -2
- package/dist/src/connection/connection.spec.d.ts.map +0 -1
- package/dist/src/connection.spec.d.ts +0 -2
- package/dist/src/connection.spec.d.ts.map +0 -1
- package/dist/src/control/state.spec.d.ts +0 -2
- package/dist/src/control/state.spec.d.ts.map +0 -1
- package/dist/src/device/access.spec.d.ts +0 -2
- package/dist/src/device/access.spec.d.ts.map +0 -1
- package/dist/src/device/device.spec.d.ts +0 -2
- package/dist/src/device/device.spec.d.ts.map +0 -1
- package/dist/src/device/payload.spec.d.ts +0 -2
- package/dist/src/device/payload.spec.d.ts.map +0 -1
- package/dist/src/errors.spec.d.ts +0 -2
- package/dist/src/errors.spec.d.ts.map +0 -1
- package/dist/src/framer/adapter.spec.d.ts +0 -2
- package/dist/src/framer/adapter.spec.d.ts.map +0 -1
- package/dist/src/framer/client.spec.d.ts +0 -2
- package/dist/src/framer/client.spec.d.ts.map +0 -1
- package/dist/src/framer/codec.spec.d.ts +0 -2
- package/dist/src/framer/codec.spec.d.ts.map +0 -1
- package/dist/src/framer/deleter.spec.d.ts +0 -2
- package/dist/src/framer/deleter.spec.d.ts.map +0 -1
- package/dist/src/framer/frame.spec.d.ts +0 -2
- package/dist/src/framer/frame.spec.d.ts.map +0 -1
- package/dist/src/framer/iterator.spec.d.ts +0 -2
- package/dist/src/framer/iterator.spec.d.ts.map +0 -1
- package/dist/src/framer/reader.spec.d.ts +0 -2
- package/dist/src/framer/reader.spec.d.ts.map +0 -1
- package/dist/src/framer/streamer.spec.d.ts +0 -2
- package/dist/src/framer/streamer.spec.d.ts.map +0 -1
- package/dist/src/framer/writer.spec.d.ts +0 -2
- package/dist/src/framer/writer.spec.d.ts.map +0 -1
- package/dist/src/group/access.spec.d.ts +0 -2
- package/dist/src/group/access.spec.d.ts.map +0 -1
- package/dist/src/group/group.spec.d.ts +0 -2
- package/dist/src/group/group.spec.d.ts.map +0 -1
- package/dist/src/label/access.spec.d.ts +0 -2
- package/dist/src/label/access.spec.d.ts.map +0 -1
- package/dist/src/label/label.spec.d.ts +0 -2
- package/dist/src/label/label.spec.d.ts.map +0 -1
- package/dist/src/lineplot/access.spec.d.ts +0 -2
- package/dist/src/lineplot/access.spec.d.ts.map +0 -1
- package/dist/src/lineplot/lineplot.spec.d.ts +0 -2
- package/dist/src/lineplot/lineplot.spec.d.ts.map +0 -1
- package/dist/src/log/access.spec.d.ts +0 -2
- package/dist/src/log/access.spec.d.ts.map +0 -1
- package/dist/src/log/log.spec.d.ts +0 -2
- package/dist/src/log/log.spec.d.ts.map +0 -1
- package/dist/src/ontology/ontology.spec.d.ts +0 -2
- package/dist/src/ontology/ontology.spec.d.ts.map +0 -1
- package/dist/src/rack/access.spec.d.ts +0 -2
- package/dist/src/rack/access.spec.d.ts.map +0 -1
- package/dist/src/rack/rack.spec.d.ts +0 -2
- package/dist/src/rack/rack.spec.d.ts.map +0 -1
- package/dist/src/ranger/access.spec.d.ts +0 -2
- package/dist/src/ranger/access.spec.d.ts.map +0 -1
- package/dist/src/ranger/alias/payload.spec.d.ts +0 -2
- package/dist/src/ranger/alias/payload.spec.d.ts.map +0 -1
- package/dist/src/ranger/ranger.spec.d.ts +0 -2
- package/dist/src/ranger/ranger.spec.d.ts.map +0 -1
- package/dist/src/schematic/access.spec.d.ts +0 -2
- package/dist/src/schematic/access.spec.d.ts.map +0 -1
- package/dist/src/schematic/actions.spec.d.ts +0 -2
- package/dist/src/schematic/actions.spec.d.ts.map +0 -1
- package/dist/src/schematic/schematic.spec.d.ts +0 -2
- package/dist/src/schematic/schematic.spec.d.ts.map +0 -1
- package/dist/src/schematic/symbol/access.spec.d.ts +0 -2
- package/dist/src/schematic/symbol/access.spec.d.ts.map +0 -1
- package/dist/src/schematic/symbol/client.spec.d.ts +0 -2
- package/dist/src/schematic/symbol/client.spec.d.ts.map +0 -1
- package/dist/src/status/access.spec.d.ts +0 -2
- package/dist/src/status/access.spec.d.ts.map +0 -1
- package/dist/src/status/status.spec.d.ts +0 -2
- package/dist/src/status/status.spec.d.ts.map +0 -1
- package/dist/src/table/access.spec.d.ts +0 -2
- package/dist/src/table/access.spec.d.ts.map +0 -1
- package/dist/src/table/table.spec.d.ts +0 -2
- package/dist/src/table/table.spec.d.ts.map +0 -1
- package/dist/src/task/access.spec.d.ts +0 -2
- package/dist/src/task/access.spec.d.ts.map +0 -1
- package/dist/src/task/payload.spec.d.ts +0 -2
- package/dist/src/task/payload.spec.d.ts.map +0 -1
- package/dist/src/task/task.spec.d.ts +0 -2
- package/dist/src/task/task.spec.d.ts.map +0 -1
- package/dist/src/user/access.spec.d.ts +0 -2
- package/dist/src/user/access.spec.d.ts.map +0 -1
- package/dist/src/user/user.spec.d.ts +0 -2
- package/dist/src/user/user.spec.d.ts.map +0 -1
- package/dist/src/util/retrieve.spec.d.ts +0 -2
- package/dist/src/util/retrieve.spec.d.ts.map +0 -1
- package/dist/src/view/view.spec.d.ts +0 -2
- package/dist/src/view/view.spec.d.ts.map +0 -1
- package/dist/src/workspace/access.spec.d.ts +0 -2
- package/dist/src/workspace/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/client.d.ts +0 -36
- package/dist/src/workspace/client.d.ts.map +0 -1
- package/dist/src/workspace/external.d.ts.map +0 -1
- package/dist/src/workspace/index.d.ts +0 -2
- package/dist/src/workspace/index.d.ts.map +0 -1
- package/dist/src/workspace/types.gen.d.ts +0 -34
- package/dist/src/workspace/types.gen.d.ts.map +0 -1
- package/dist/src/workspace/workspace.spec.d.ts +0 -2
- package/dist/src/workspace/workspace.spec.d.ts.map +0 -1
- package/examples/node/basicReadWrite.js +0 -86
- package/examples/node/createChannels.js +0 -50
- package/examples/node/createRange.js +0 -67
- package/examples/node/package-lock.json +0 -133
- package/examples/node/package.json +0 -17
- package/examples/node/readLatest.js +0 -76
- package/examples/node/seriesAndFrames.js +0 -173
- package/examples/node/streamRead.js +0 -50
- package/examples/node/streamWrite.js +0 -87
- package/src/access/enforce.spec.ts +0 -188
- package/src/access/policy/access.spec.ts +0 -147
- package/src/access/role/role.spec.ts +0 -95
- package/src/actions/actions.spec.ts +0 -229
- package/src/arc/access.spec.ts +0 -149
- package/src/arc/arc.spec.ts +0 -44
- package/src/arc/lsp.spec.ts +0 -717
- package/src/auth/auth.spec.ts +0 -101
- package/src/channel/access.spec.ts +0 -116
- package/src/channel/batchRetriever.spec.ts +0 -115
- package/src/channel/channel.spec.ts +0 -352
- package/src/channel/payload.spec.ts +0 -117
- package/src/channel/retriever.ts +0 -252
- package/src/connection/checker.ts +0 -203
- package/src/connection/connection.spec.ts +0 -152
- package/src/connection.spec.ts +0 -145
- package/src/control/state.spec.ts +0 -22
- package/src/device/access.spec.ts +0 -159
- package/src/device/device.spec.ts +0 -461
- package/src/device/payload.spec.ts +0 -142
- package/src/errors.spec.ts +0 -71
- package/src/framer/adapter.spec.ts +0 -620
- package/src/framer/client.spec.ts +0 -180
- package/src/framer/codec.spec.ts +0 -383
- package/src/framer/deleter.spec.ts +0 -103
- package/src/framer/frame.spec.ts +0 -973
- package/src/framer/iterator.spec.ts +0 -169
- package/src/framer/reader.spec.ts +0 -865
- package/src/framer/streamer.spec.ts +0 -871
- package/src/framer/writer.spec.ts +0 -486
- package/src/group/access.spec.ts +0 -77
- package/src/group/group.spec.ts +0 -65
- package/src/label/access.spec.ts +0 -109
- package/src/label/label.spec.ts +0 -83
- package/src/lineplot/access.spec.ts +0 -134
- package/src/lineplot/lineplot.spec.ts +0 -120
- package/src/log/access.spec.ts +0 -132
- package/src/log/log.spec.ts +0 -106
- package/src/ontology/ontology.spec.ts +0 -521
- package/src/rack/access.spec.ts +0 -102
- package/src/rack/rack.spec.ts +0 -171
- package/src/ranger/access.spec.ts +0 -115
- package/src/ranger/alias/payload.spec.ts +0 -52
- package/src/ranger/ranger.spec.ts +0 -343
- package/src/schematic/access.spec.ts +0 -134
- package/src/schematic/actions.spec.ts +0 -699
- package/src/schematic/schematic.spec.ts +0 -340
- package/src/schematic/symbol/access.spec.ts +0 -172
- package/src/schematic/symbol/client.spec.ts +0 -160
- package/src/status/access.spec.ts +0 -129
- package/src/status/status.spec.ts +0 -448
- package/src/table/access.spec.ts +0 -128
- package/src/table/table.spec.ts +0 -651
- package/src/task/access.spec.ts +0 -131
- package/src/task/payload.spec.ts +0 -113
- package/src/task/task.spec.ts +0 -657
- package/src/user/access.spec.ts +0 -107
- package/src/user/user.spec.ts +0 -290
- package/src/util/retrieve.spec.ts +0 -49
- package/src/view/view.spec.ts +0 -165
- package/src/workspace/access.spec.ts +0 -108
- package/src/workspace/client.ts +0 -112
- package/src/workspace/types.gen.ts +0 -46
- package/src/workspace/workspace.spec.ts +0 -111
- package/tsconfig.json +0 -5
- package/tsconfig.vite.json +0 -4
- package/vite.config.ts +0 -29
- /package/dist/src/{workspace → project}/external.d.ts +0 -0
|
@@ -2,11 +2,13 @@ import { change, record } from '@synnaxlabs/x';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { RESOURCE_TYPES, ResourceType, resourceTypeZ } from './types.gen';
|
|
4
4
|
export { RESOURCE_TYPES, type ResourceType, resourceTypeZ };
|
|
5
|
+
/** A resource created, updated, or deleted. */
|
|
5
6
|
export type ResourceChange = change.Change<ID, Resource>;
|
|
6
7
|
export interface ResourceSet extends change.Set<ID, Resource> {
|
|
7
8
|
}
|
|
8
9
|
export interface ResourceDelete extends change.Delete<ID, Resource> {
|
|
9
10
|
}
|
|
11
|
+
/** A relationship created or deleted. Relationships carry no value of their own. */
|
|
10
12
|
export type RelationshipChange = change.Change<Relationship, undefined>;
|
|
11
13
|
export interface RelationshipSet extends change.Set<Relationship, undefined> {
|
|
12
14
|
}
|
|
@@ -14,6 +16,12 @@ export interface RelationshipDelete extends change.Delete<Relationship, undefine
|
|
|
14
16
|
}
|
|
15
17
|
export interface RelationshipDelete extends change.Delete<Relationship, undefined> {
|
|
16
18
|
}
|
|
19
|
+
/** Zod schema parsing a `"type:key"` string into an {@link ID}. */
|
|
20
|
+
export declare const stringIDZ: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
21
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
22
|
+
key: string;
|
|
23
|
+
}, string>>;
|
|
24
|
+
/** Zod schema for {@link ID}, accepting either the object or the `"type:key"` string. */
|
|
17
25
|
export declare const idZ: z.ZodUnion<[z.ZodObject<{
|
|
18
26
|
type: z.ZodEnum<{
|
|
19
27
|
arc: "arc";
|
|
@@ -26,7 +34,9 @@ export declare const idZ: z.ZodUnion<[z.ZodObject<{
|
|
|
26
34
|
lineplot: "lineplot";
|
|
27
35
|
log: "log";
|
|
28
36
|
node: "node";
|
|
37
|
+
panel: "panel";
|
|
29
38
|
policy: "policy";
|
|
39
|
+
project: "project";
|
|
30
40
|
rack: "rack";
|
|
31
41
|
range: "range";
|
|
32
42
|
"range-alias": "range-alias";
|
|
@@ -38,28 +48,48 @@ export declare const idZ: z.ZodUnion<[z.ZodObject<{
|
|
|
38
48
|
task: "task";
|
|
39
49
|
user: "user";
|
|
40
50
|
view: "view";
|
|
41
|
-
workspace: "workspace";
|
|
42
51
|
}>;
|
|
43
52
|
key: z.ZodString;
|
|
44
53
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
45
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
54
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
46
55
|
key: string;
|
|
47
56
|
}, string>>]>;
|
|
57
|
+
/** Names one resource in the ontology: what kind it is, and which one. */
|
|
48
58
|
export type ID = z.infer<typeof idZ>;
|
|
59
|
+
/** The root of the ontology. Every other resource descends from it. */
|
|
49
60
|
export declare const ROOT_ID: ID;
|
|
61
|
+
/** Builds {@link ID}s of one resource type, singly or in bulk. */
|
|
50
62
|
export interface CreateID<K extends record.Key> {
|
|
51
63
|
(key: K): ID;
|
|
52
64
|
(keys: K[]): ID[];
|
|
53
65
|
(keys: K | K[]): ID | ID[];
|
|
54
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* @returns a {@link CreateID} that stamps the given resource type onto keys. Each
|
|
69
|
+
* resource package exports one as `ontologyID`.
|
|
70
|
+
*
|
|
71
|
+
* @example const ontologyID = createIDFactory<Key>("channel");
|
|
72
|
+
*/
|
|
55
73
|
export declare const createIDFactory: <K extends record.Key>(type: ResourceType) => CreateID<K>;
|
|
56
74
|
export interface IDToString {
|
|
57
75
|
(id: ID | string): string;
|
|
58
76
|
(ids: (ID | string)[]): string[];
|
|
59
77
|
}
|
|
78
|
+
/** Renders an {@link ID} as `"type:key"`, the form used as a map key. */
|
|
60
79
|
export declare const idToString: IDToString;
|
|
80
|
+
/** @returns whether the two IDs name the same resource. */
|
|
61
81
|
export declare const idsEqual: (a: ID, b: ID) => boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Parses a crude ID (an object or a "type:key" string) into an ID.
|
|
84
|
+
* @throws {zod.ParseError} if the value is not a valid ontology ID.
|
|
85
|
+
*/
|
|
86
|
+
export declare const parseID: (id: unknown) => ID;
|
|
87
|
+
/**
|
|
88
|
+
* Resolves IDs, `"type:key"` strings, or whole resources into an {@link ID} array.
|
|
89
|
+
* @throws {zod.ParseError} if a value is not a valid ontology ID.
|
|
90
|
+
*/
|
|
62
91
|
export declare const parseIDs: (ids: ID | string | Resource | (ID | string | Resource)[]) => ID[];
|
|
92
|
+
/** Zod schema for {@link Resource}. */
|
|
63
93
|
export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
64
94
|
id: z.ZodUnion<[z.ZodObject<{
|
|
65
95
|
type: z.ZodEnum<{
|
|
@@ -73,7 +103,9 @@ export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
|
73
103
|
lineplot: "lineplot";
|
|
74
104
|
log: "log";
|
|
75
105
|
node: "node";
|
|
106
|
+
panel: "panel";
|
|
76
107
|
policy: "policy";
|
|
108
|
+
project: "project";
|
|
77
109
|
rack: "rack";
|
|
78
110
|
range: "range";
|
|
79
111
|
"range-alias": "range-alias";
|
|
@@ -85,21 +117,20 @@ export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
|
85
117
|
task: "task";
|
|
86
118
|
user: "user";
|
|
87
119
|
view: "view";
|
|
88
|
-
workspace: "workspace";
|
|
89
120
|
}>;
|
|
90
121
|
key: z.ZodString;
|
|
91
122
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
92
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
123
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
93
124
|
key: string;
|
|
94
125
|
}, string>>]>;
|
|
95
126
|
name: z.ZodString;
|
|
96
127
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>>;
|
|
97
128
|
}, z.core.$strip>, z.ZodTransform<{
|
|
98
129
|
id: {
|
|
99
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
130
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
100
131
|
key: string;
|
|
101
132
|
} | {
|
|
102
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
133
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
103
134
|
key: string;
|
|
104
135
|
};
|
|
105
136
|
name: string;
|
|
@@ -107,20 +138,24 @@ export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
|
107
138
|
key: string;
|
|
108
139
|
}, {
|
|
109
140
|
id: {
|
|
110
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
141
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
111
142
|
key: string;
|
|
112
143
|
} | {
|
|
113
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
144
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
114
145
|
key: string;
|
|
115
146
|
};
|
|
116
147
|
name: string;
|
|
117
148
|
data?: Record<string | number, unknown> | null | undefined;
|
|
118
149
|
}>>;
|
|
150
|
+
/** A node in the ontology: its ID, its display name, and the payload it stands for. */
|
|
119
151
|
export interface Resource<T extends record.Unknown = record.Unknown> extends Omit<z.infer<typeof resourceZ>, "data"> {
|
|
120
152
|
data?: T | null;
|
|
121
153
|
}
|
|
154
|
+
/** Which end of a relationship a traversal starts from. */
|
|
122
155
|
export type RelationshipDirection = "to" | "from";
|
|
156
|
+
/** @returns the other end of a relationship. */
|
|
123
157
|
export declare const oppositeRelationshipDirection: (direction: RelationshipDirection) => RelationshipDirection;
|
|
158
|
+
/** Zod schema for {@link Relationship}, accepting the `"from->type->to"` string too. */
|
|
124
159
|
export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
125
160
|
from: z.ZodUnion<[z.ZodObject<{
|
|
126
161
|
type: z.ZodEnum<{
|
|
@@ -134,7 +169,9 @@ export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
|
134
169
|
lineplot: "lineplot";
|
|
135
170
|
log: "log";
|
|
136
171
|
node: "node";
|
|
172
|
+
panel: "panel";
|
|
137
173
|
policy: "policy";
|
|
174
|
+
project: "project";
|
|
138
175
|
rack: "rack";
|
|
139
176
|
range: "range";
|
|
140
177
|
"range-alias": "range-alias";
|
|
@@ -146,11 +183,10 @@ export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
|
146
183
|
task: "task";
|
|
147
184
|
user: "user";
|
|
148
185
|
view: "view";
|
|
149
|
-
workspace: "workspace";
|
|
150
186
|
}>;
|
|
151
187
|
key: z.ZodString;
|
|
152
188
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
153
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
189
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
154
190
|
key: string;
|
|
155
191
|
}, string>>]>;
|
|
156
192
|
type: z.ZodString;
|
|
@@ -166,7 +202,9 @@ export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
|
166
202
|
lineplot: "lineplot";
|
|
167
203
|
log: "log";
|
|
168
204
|
node: "node";
|
|
205
|
+
panel: "panel";
|
|
169
206
|
policy: "policy";
|
|
207
|
+
project: "project";
|
|
170
208
|
rack: "rack";
|
|
171
209
|
range: "range";
|
|
172
210
|
"range-alias": "range-alias";
|
|
@@ -178,37 +216,41 @@ export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
|
178
216
|
task: "task";
|
|
179
217
|
user: "user";
|
|
180
218
|
view: "view";
|
|
181
|
-
workspace: "workspace";
|
|
182
219
|
}>;
|
|
183
220
|
key: z.ZodString;
|
|
184
221
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
185
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
222
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
186
223
|
key: string;
|
|
187
224
|
}, string>>]>;
|
|
188
225
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
189
226
|
from: {
|
|
190
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
227
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
191
228
|
key: string;
|
|
192
229
|
} | {
|
|
193
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
230
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
194
231
|
key: string;
|
|
195
232
|
};
|
|
196
233
|
type: string;
|
|
197
234
|
to: {
|
|
198
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
235
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
199
236
|
key: string;
|
|
200
237
|
} | {
|
|
201
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
238
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
202
239
|
key: string;
|
|
203
240
|
};
|
|
204
241
|
}, string>>]>;
|
|
242
|
+
/** A directed edge between two resources, such as a group and its child. */
|
|
205
243
|
export type Relationship = z.infer<typeof relationshipZ>;
|
|
244
|
+
/** Renders a {@link Relationship} as `"from->type->to"`. */
|
|
206
245
|
export declare const relationshipToString: (relationship: Relationship) => string;
|
|
246
|
+
/** Relationship type joining a parent resource to its children. */
|
|
207
247
|
export declare const PARENT_OF_RELATIONSHIP_TYPE = "parent";
|
|
208
|
-
|
|
248
|
+
/** A relationship pattern. An absent field, or field part, matches anything. */
|
|
249
|
+
export interface MatchRelationshipParams {
|
|
209
250
|
from?: Partial<ID>;
|
|
210
251
|
type: string;
|
|
211
252
|
to?: Partial<ID>;
|
|
212
253
|
}
|
|
213
|
-
|
|
254
|
+
/** @returns whether the relationship fits the pattern. */
|
|
255
|
+
export declare const matchRelationship: (relationship: Relationship, match: MatchRelationshipParams) => boolean;
|
|
214
256
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAS,KAAK,MAAM,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAS,KAAK,MAAM,EAAa,MAAM,EAAO,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,CAAC;AAE5D,+CAA+C;AAC/C,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AAChE,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AACtE,oFAAoF;AACpF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACxE,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC;CAAG;AAC/E,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC;CAAG;AAErF,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC;CAAG;AAErF,mEAAmE;AACnE,eAAO,MAAM,SAAS;;;WAQpB,CAAC;AAEH,yFAAyF;AACzF,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAmE,CAAC;AAEpF,0EAA0E;AAC1E,MAAM,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;AAErC,uEAAuE;AACvE,eAAO,MAAM,OAAO,EAAE,EAAqC,CAAC;AAE5D,kEAAkE;AAClE,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG;IAC5C,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;IACb,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC;IAClB,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAClD,MAAM,YAAY,KACjB,QAAQ,CAAC,CAAC,CAMZ,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,EAAE,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;CAClC;AAED,yEAAyE;AACzE,eAAO,MAAM,UAAU,EAIjB,UAAU,CAAC;AAEjB,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,GAAI,GAAG,EAAE,EAAE,GAAG,EAAE,YAAyC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,IAAI,OAAO,KAAG,EACQ,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,KAAK,EAAE,GAAG,MAAM,GAAG,QAAQ,GAAG,CAAC,EAAE,GAAG,MAAM,GAAG,QAAQ,CAAC,EAAE,KACvD,EAAE,EAMJ,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMqD,CAAC;AAC5E,uFAAuF;AACvF,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAE,SAAQ,IAAI,CAC/E,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,EACzB,MAAM,CACP;IACC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,gDAAgD;AAChD,eAAO,MAAM,6BAA6B,GACxC,WAAW,qBAAqB,KAC/B,qBAA6D,CAAC;AAEjE,wFAAwF;AACxF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKzB,CAAC;AACF,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,GAAI,cAAc,YAAY,WAC2B,CAAC;AAE3F,mEAAmE;AACnE,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,GAC5B,cAAc,YAAY,EAC1B,OAAO,uBAAuB,YAS/B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { destructor } from '@synnaxlabs/x';
|
|
2
|
+
import { ID, Relationship, Resource } from './payload';
|
|
3
|
+
import { query } from '../query';
|
|
4
|
+
/** Channels the Core writes ontology changes to. */
|
|
5
|
+
export declare const RESOURCE_SET_CHANNEL_NAME = "sy_ontology_resource_set";
|
|
6
|
+
export declare const RESOURCE_DELETE_CHANNEL_NAME = "sy_ontology_resource_delete";
|
|
7
|
+
export declare const RELATIONSHIP_SET_CHANNEL_NAME = "sy_ontology_relationship_set";
|
|
8
|
+
export declare const RELATIONSHIP_DELETE_CHANNEL_NAME = "sy_ontology_relationship_delete";
|
|
9
|
+
/** The ontology record tables: resources and the relationships between them. */
|
|
10
|
+
export declare class Cache {
|
|
11
|
+
readonly relationships: query.Table<string, Relationship>;
|
|
12
|
+
readonly resources: query.Table<string, Resource>;
|
|
13
|
+
constructor(relationships: query.Table<string, Relationship>, resources: query.Table<string, Resource>);
|
|
14
|
+
/** Returns the cached parent ID of the given ontology ID, or null if unknown. */
|
|
15
|
+
parentID(id: ID): ID | null;
|
|
16
|
+
/**
|
|
17
|
+
* Optimistically renames the cached resource for the given ID. Returns a
|
|
18
|
+
* rollback restoring the prior name. A no-op when the resource isn't cached.
|
|
19
|
+
*/
|
|
20
|
+
renameResource(id: ID, name: string): destructor.Destructor;
|
|
21
|
+
/**
|
|
22
|
+
* Optimistically drops every cached relationship touching the given IDs.
|
|
23
|
+
* Returns a rollback restoring them.
|
|
24
|
+
*/
|
|
25
|
+
deleteRelationships(ids: ID | ID[]): destructor.Destructor;
|
|
26
|
+
/**
|
|
27
|
+
* Optimistically drops the cached resources for the given IDs along with
|
|
28
|
+
* every relationship touching them. Returns a rollback restoring both.
|
|
29
|
+
*/
|
|
30
|
+
deleteResources(ids: ID | ID[]): destructor.Destructor;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/ontology/store.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EACL,KAAK,EAAE,EAKP,KAAK,YAAY,EACjB,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,oDAAoD;AACpD,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AACpE,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAC1E,eAAO,MAAM,6BAA6B,iCAAiC,CAAC;AAC5E,eAAO,MAAM,gCAAgC,oCAAoC,CAAC;AAElF,gFAAgF;AAChF,qBAAa,KAAK;IAChB,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1D,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gBAGhD,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,EAChD,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC;IAM1C,iFAAiF;IACjF,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;IAQ3B;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU;IAI3D;;;OAGG;IACH,mBAAmB,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC,UAAU;IAO1D;;;OAGG;IACH,eAAe,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC,UAAU;CASvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RESOURCE_TYPES: readonly ["arc", "builtin", "channel", "device", "framer", "group", "label", "lineplot", "log", "node", "policy", "rack", "range", "range-alias", "role", "schematic", "schematic_symbol", "status", "table", "task", "user", "view"
|
|
2
|
+
export declare const RESOURCE_TYPES: readonly ["arc", "builtin", "channel", "device", "framer", "group", "label", "lineplot", "log", "node", "panel", "policy", "project", "rack", "range", "range-alias", "role", "schematic", "schematic_symbol", "status", "table", "task", "user", "view"];
|
|
3
3
|
export declare const resourceTypeZ: z.ZodEnum<{
|
|
4
4
|
arc: "arc";
|
|
5
5
|
builtin: "builtin";
|
|
@@ -11,7 +11,9 @@ export declare const resourceTypeZ: z.ZodEnum<{
|
|
|
11
11
|
lineplot: "lineplot";
|
|
12
12
|
log: "log";
|
|
13
13
|
node: "node";
|
|
14
|
+
panel: "panel";
|
|
14
15
|
policy: "policy";
|
|
16
|
+
project: "project";
|
|
15
17
|
rack: "rack";
|
|
16
18
|
range: "range";
|
|
17
19
|
"range-alias": "range-alias";
|
|
@@ -23,7 +25,6 @@ export declare const resourceTypeZ: z.ZodEnum<{
|
|
|
23
25
|
task: "task";
|
|
24
26
|
user: "user";
|
|
25
27
|
view: "view";
|
|
26
|
-
workspace: "workspace";
|
|
27
28
|
}>;
|
|
28
29
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
29
30
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/ontology/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/ontology/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,2PAyBjB,CAAC;AACX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -14,7 +14,9 @@ export declare const addRemoveChildrenReqZ: z.ZodObject<{
|
|
|
14
14
|
lineplot: "lineplot";
|
|
15
15
|
log: "log";
|
|
16
16
|
node: "node";
|
|
17
|
+
panel: "panel";
|
|
17
18
|
policy: "policy";
|
|
19
|
+
project: "project";
|
|
18
20
|
rack: "rack";
|
|
19
21
|
range: "range";
|
|
20
22
|
"range-alias": "range-alias";
|
|
@@ -26,11 +28,10 @@ export declare const addRemoveChildrenReqZ: z.ZodObject<{
|
|
|
26
28
|
task: "task";
|
|
27
29
|
user: "user";
|
|
28
30
|
view: "view";
|
|
29
|
-
workspace: "workspace";
|
|
30
31
|
}>;
|
|
31
32
|
key: z.ZodString;
|
|
32
33
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
33
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
34
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
34
35
|
key: string;
|
|
35
36
|
}, string>>]>;
|
|
36
37
|
children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -45,7 +46,9 @@ export declare const addRemoveChildrenReqZ: z.ZodObject<{
|
|
|
45
46
|
lineplot: "lineplot";
|
|
46
47
|
log: "log";
|
|
47
48
|
node: "node";
|
|
49
|
+
panel: "panel";
|
|
48
50
|
policy: "policy";
|
|
51
|
+
project: "project";
|
|
49
52
|
rack: "rack";
|
|
50
53
|
range: "range";
|
|
51
54
|
"range-alias": "range-alias";
|
|
@@ -57,11 +60,10 @@ export declare const addRemoveChildrenReqZ: z.ZodObject<{
|
|
|
57
60
|
task: "task";
|
|
58
61
|
user: "user";
|
|
59
62
|
view: "view";
|
|
60
|
-
workspace: "workspace";
|
|
61
63
|
}>;
|
|
62
64
|
key: z.ZodString;
|
|
63
65
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
64
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
66
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
65
67
|
key: string;
|
|
66
68
|
}, string>>]>>;
|
|
67
69
|
}, z.core.$strip>;
|
|
@@ -78,7 +80,9 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
78
80
|
lineplot: "lineplot";
|
|
79
81
|
log: "log";
|
|
80
82
|
node: "node";
|
|
83
|
+
panel: "panel";
|
|
81
84
|
policy: "policy";
|
|
85
|
+
project: "project";
|
|
82
86
|
rack: "rack";
|
|
83
87
|
range: "range";
|
|
84
88
|
"range-alias": "range-alias";
|
|
@@ -90,11 +94,10 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
90
94
|
task: "task";
|
|
91
95
|
user: "user";
|
|
92
96
|
view: "view";
|
|
93
|
-
workspace: "workspace";
|
|
94
97
|
}>;
|
|
95
98
|
key: z.ZodString;
|
|
96
99
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
97
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
100
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
98
101
|
key: string;
|
|
99
102
|
}, string>>]>;
|
|
100
103
|
to: z.ZodUnion<[z.ZodObject<{
|
|
@@ -109,7 +112,9 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
109
112
|
lineplot: "lineplot";
|
|
110
113
|
log: "log";
|
|
111
114
|
node: "node";
|
|
115
|
+
panel: "panel";
|
|
112
116
|
policy: "policy";
|
|
117
|
+
project: "project";
|
|
113
118
|
rack: "rack";
|
|
114
119
|
range: "range";
|
|
115
120
|
"range-alias": "range-alias";
|
|
@@ -121,11 +126,10 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
121
126
|
task: "task";
|
|
122
127
|
user: "user";
|
|
123
128
|
view: "view";
|
|
124
|
-
workspace: "workspace";
|
|
125
129
|
}>;
|
|
126
130
|
key: z.ZodString;
|
|
127
131
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
128
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
132
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
129
133
|
key: string;
|
|
130
134
|
}, string>>]>;
|
|
131
135
|
children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -140,7 +144,9 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
140
144
|
lineplot: "lineplot";
|
|
141
145
|
log: "log";
|
|
142
146
|
node: "node";
|
|
147
|
+
panel: "panel";
|
|
143
148
|
policy: "policy";
|
|
149
|
+
project: "project";
|
|
144
150
|
rack: "rack";
|
|
145
151
|
range: "range";
|
|
146
152
|
"range-alias": "range-alias";
|
|
@@ -152,15 +158,15 @@ export declare const moveChildrenReqZ: z.ZodObject<{
|
|
|
152
158
|
task: "task";
|
|
153
159
|
user: "user";
|
|
154
160
|
view: "view";
|
|
155
|
-
workspace: "workspace";
|
|
156
161
|
}>;
|
|
157
162
|
key: z.ZodString;
|
|
158
163
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
159
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
164
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
160
165
|
key: string;
|
|
161
166
|
}, string>>]>>;
|
|
162
167
|
}, z.core.$strip>;
|
|
163
168
|
export declare const emptyResZ: z.ZodObject<{}, z.core.$strip>;
|
|
169
|
+
/** Edits the parent-child relationships in the ontology. Reach it through the client. */
|
|
164
170
|
export declare class Writer {
|
|
165
171
|
client: UnaryClient;
|
|
166
172
|
constructor(client: UnaryClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,EAAO,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,EAAO,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA+C,CAAC;AAClF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0D,CAAC;AACxF,eAAO,MAAM,SAAS,gCAAe,CAAC;AAEtC,yFAAyF;AACzF,qBAAa,MAAM;IACjB,MAAM,EAAE,WAAW,CAAC;gBAER,MAAM,EAAE,WAAW;IAIzB,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IASrD,cAAc,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IASxD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAQvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/opcua/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/opcua/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** BaseChannel carries the fields every OPC UA channel shares. */
|
|
3
|
+
export declare const baseChannelZ: z.ZodObject<{
|
|
4
|
+
key: z.ZodDefault<z.ZodString>;
|
|
5
|
+
name: z.ZodDefault<z.ZodString>;
|
|
6
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
nodeId: z.ZodDefault<z.ZodString>;
|
|
8
|
+
nodeName: z.ZodDefault<z.ZodString>;
|
|
9
|
+
dataType: z.ZodDefault<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export interface BaseChannel extends z.infer<typeof baseChannelZ> {
|
|
12
|
+
}
|
|
13
|
+
export declare const scanConfigZ: z.ZodObject<{
|
|
14
|
+
key: z.ZodDefault<z.ZodUUID>;
|
|
15
|
+
rate: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export interface ScanConfig extends z.infer<typeof scanConfigZ> {
|
|
19
|
+
}
|
|
20
|
+
export declare const readChannelZ: z.ZodObject<{
|
|
21
|
+
key: z.ZodDefault<z.ZodString>;
|
|
22
|
+
name: z.ZodDefault<z.ZodString>;
|
|
23
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
nodeId: z.ZodDefault<z.ZodString>;
|
|
25
|
+
nodeName: z.ZodDefault<z.ZodString>;
|
|
26
|
+
dataType: z.ZodDefault<z.ZodString>;
|
|
27
|
+
channel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
28
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export interface ReadChannel extends z.infer<typeof readChannelZ> {
|
|
31
|
+
}
|
|
32
|
+
export declare const writeChannelZ: z.ZodObject<{
|
|
33
|
+
key: z.ZodDefault<z.ZodString>;
|
|
34
|
+
name: z.ZodDefault<z.ZodString>;
|
|
35
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
nodeId: z.ZodDefault<z.ZodString>;
|
|
37
|
+
nodeName: z.ZodDefault<z.ZodString>;
|
|
38
|
+
dataType: z.ZodDefault<z.ZodString>;
|
|
39
|
+
cmdChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export interface WriteChannel extends z.infer<typeof writeChannelZ> {
|
|
42
|
+
}
|
|
43
|
+
export declare const readConfigZ: z.ZodObject<{
|
|
44
|
+
key: z.ZodDefault<z.ZodUUID>;
|
|
45
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
dataSavingDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
+
sampleRate: z.ZodDefault<z.ZodNumber>;
|
|
48
|
+
streamRate: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
device: z.ZodDefault<z.ZodString>;
|
|
50
|
+
arrayMode: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
+
arraySize: z.ZodDefault<z.ZodInt32>;
|
|
52
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
key: z.ZodDefault<z.ZodString>;
|
|
54
|
+
name: z.ZodDefault<z.ZodString>;
|
|
55
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
nodeId: z.ZodDefault<z.ZodString>;
|
|
57
|
+
nodeName: z.ZodDefault<z.ZodString>;
|
|
58
|
+
dataType: z.ZodDefault<z.ZodString>;
|
|
59
|
+
channel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
60
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
+
}, z.core.$strip>>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export interface ReadConfig extends z.infer<typeof readConfigZ> {
|
|
64
|
+
}
|
|
65
|
+
export declare const writeConfigZ: z.ZodObject<{
|
|
66
|
+
key: z.ZodDefault<z.ZodUUID>;
|
|
67
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
dataSavingDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
device: z.ZodDefault<z.ZodString>;
|
|
70
|
+
channels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
71
|
+
key: z.ZodDefault<z.ZodString>;
|
|
72
|
+
name: z.ZodDefault<z.ZodString>;
|
|
73
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
74
|
+
nodeId: z.ZodDefault<z.ZodString>;
|
|
75
|
+
nodeName: z.ZodDefault<z.ZodString>;
|
|
76
|
+
dataType: z.ZodDefault<z.ZodString>;
|
|
77
|
+
cmdChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export interface WriteConfig extends z.infer<typeof writeConfigZ> {
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/opcua/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,kEAAkE;AAClE,eAAO,MAAM,YAAY;;;;;;;iBAavB,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG;AAEpE,eAAO,MAAM,WAAW;;;;iBAAmB,CAAC;AAC5C,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC;CAAG;AAElE,eAAO,MAAM,YAAY;;;;;;;;;iBAGvB,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG;AAEpE,eAAO,MAAM,aAAa;;;;;;;;iBAExB,CAAC;AACH,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC;CAAG;AAEtE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;iBASpB,CAAC;AACL,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC;CAAG;AAElE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;iBAEvB,CAAC;AACH,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/pagerduty/external.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pagerduty/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Alert maps a Synnax status to a PagerDuty event routing rule. */
|
|
3
|
+
export declare const alertZ: z.ZodObject<{
|
|
4
|
+
key: z.ZodDefault<z.ZodString>;
|
|
5
|
+
status: z.ZodDefault<z.ZodString>;
|
|
6
|
+
errorsCritical: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
component: z.ZodDefault<z.ZodString>;
|
|
8
|
+
group: z.ZodDefault<z.ZodString>;
|
|
9
|
+
class: z.ZodDefault<z.ZodString>;
|
|
10
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export interface Alert extends z.infer<typeof alertZ> {
|
|
13
|
+
}
|
|
14
|
+
export declare const taskConfigZ: z.ZodObject<{
|
|
15
|
+
key: z.ZodDefault<z.ZodUUID>;
|
|
16
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
routingKey: z.ZodDefault<z.ZodString>;
|
|
18
|
+
alerts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
19
|
+
key: z.ZodDefault<z.ZodString>;
|
|
20
|
+
status: z.ZodDefault<z.ZodString>;
|
|
21
|
+
errorsCritical: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
component: z.ZodDefault<z.ZodString>;
|
|
23
|
+
group: z.ZodDefault<z.ZodString>;
|
|
24
|
+
class: z.ZodDefault<z.ZodString>;
|
|
25
|
+
disabled: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export interface TaskConfig extends z.infer<typeof taskConfigZ> {
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/pagerduty/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,oEAAoE;AACpE,eAAO,MAAM,MAAM;;;;;;;;iBAejB,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAExD,eAAO,MAAM,WAAW;;;;;;;;;;;;;iBAGtB,CAAC;AACH,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC;CAAG"}
|