@synnaxlabs/client 0.55.0 → 0.56.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 +10 -13
- package/dist/client.cjs +60 -36
- package/dist/client.js +6362 -4738
- package/dist/src/access/policy/client.d.ts +70 -80
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/access/policy/types.gen.d.ts +18 -20
- package/dist/src/access/policy/types.gen.d.ts.map +1 -1
- package/dist/src/access/role/client.d.ts.map +1 -1
- package/dist/src/access/role/types.gen.d.ts +2 -2
- package/dist/src/actions/actions.d.ts +68 -0
- package/dist/src/actions/actions.d.ts.map +1 -0
- package/dist/src/actions/actions.spec.d.ts +2 -0
- package/dist/src/actions/actions.spec.d.ts.map +1 -0
- package/dist/src/actions/external.d.ts +2 -0
- package/dist/src/actions/external.d.ts.map +1 -0
- package/dist/src/actions/index.d.ts +2 -0
- package/dist/src/actions/index.d.ts.map +1 -0
- package/dist/src/arc/client.d.ts.map +1 -1
- package/dist/src/arc/compiler/types.gen.d.ts +1 -1
- package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
- package/dist/src/arc/graph/types.gen.d.ts +29 -29
- package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
- package/dist/src/arc/ir/types.gen.d.ts +123 -123
- package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
- package/dist/src/arc/module/types.gen.d.ts +45 -45
- package/dist/src/arc/program/types.gen.d.ts +45 -45
- package/dist/src/arc/types/types.gen.d.ts +11 -11
- package/dist/src/arc/types/types.gen.d.ts.map +1 -1
- package/dist/src/arc/types.gen.d.ts +99 -99
- package/dist/src/auth/auth.d.ts +3 -3
- package/dist/src/auth/auth.d.ts.map +1 -1
- package/dist/src/channel/client.d.ts +2 -2
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/retriever.d.ts +5 -8
- package/dist/src/channel/retriever.d.ts.map +1 -1
- package/dist/src/channel/types.gen.d.ts +3 -3
- package/dist/src/channel/writer.d.ts.map +1 -1
- package/dist/src/connection/checker.d.ts +1 -1
- package/dist/src/connection/checker.d.ts.map +1 -1
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/types.gen.d.ts +6 -8
- package/dist/src/device/types.gen.d.ts.map +1 -1
- package/dist/src/errors.d.ts +2 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/client.d.ts +2 -2
- package/dist/src/framer/codec.d.ts +9 -1
- package/dist/src/framer/codec.d.ts.map +1 -1
- package/dist/src/framer/deleter.d.ts.map +1 -1
- package/dist/src/framer/frame.d.ts +1 -1
- package/dist/src/framer/iterator.d.ts +84 -3
- package/dist/src/framer/iterator.d.ts.map +1 -1
- package/dist/src/framer/streamProxy.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +1 -3
- package/dist/src/framer/streamer.d.ts.map +1 -1
- package/dist/src/framer/types.gen.d.ts +18 -0
- package/dist/src/framer/types.gen.d.ts.map +1 -1
- package/dist/src/framer/writer.d.ts +8 -8
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/group/client.d.ts +1 -2
- package/dist/src/group/client.d.ts.map +1 -1
- package/dist/src/group/types.gen.d.ts +2 -2
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/label/client.d.ts +5 -8
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/lineplot/client.d.ts.map +1 -1
- package/dist/src/lineplot/types.gen.d.ts +2 -2
- package/dist/src/log/client.d.ts.map +1 -1
- package/dist/src/log/types.gen.d.ts +2 -2
- package/dist/src/ontology/client.d.ts +1 -3
- package/dist/src/ontology/client.d.ts.map +1 -1
- package/dist/src/ontology/payload.d.ts +12 -16
- package/dist/src/ontology/payload.d.ts.map +1 -1
- package/dist/src/ontology/types.gen.d.ts +1 -2
- package/dist/src/ontology/types.gen.d.ts.map +1 -1
- package/dist/src/ontology/writer.d.ts +5 -10
- package/dist/src/ontology/writer.d.ts.map +1 -1
- package/dist/src/rack/client.d.ts.map +1 -1
- package/dist/src/rack/types.gen.d.ts +3 -3
- package/dist/src/ranger/alias/client.d.ts.map +1 -1
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts.map +1 -1
- package/dist/src/ranger/types.gen.d.ts +6 -6
- package/dist/src/ranger/types.gen.d.ts.map +1 -1
- package/dist/src/ranger/writer.d.ts +2 -3
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/actions.d.ts +147 -0
- package/dist/src/schematic/actions.d.ts.map +1 -0
- package/dist/src/schematic/actions.gen.d.ts +484 -0
- package/dist/src/schematic/actions.gen.d.ts.map +1 -0
- package/dist/src/schematic/actions.spec.d.ts +2 -0
- package/dist/src/schematic/actions.spec.d.ts.map +1 -0
- package/dist/src/schematic/client.d.ts +53 -2
- package/dist/src/schematic/client.d.ts.map +1 -1
- package/dist/src/schematic/external.d.ts +2 -0
- package/dist/src/schematic/external.d.ts.map +1 -1
- package/dist/src/schematic/symbol/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/types.gen.d.ts +48 -58
- package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
- package/dist/src/schematic/types.gen.d.ts +131 -5
- package/dist/src/schematic/types.gen.d.ts.map +1 -1
- package/dist/src/status/client.d.ts.map +1 -1
- package/dist/src/status/payload.d.ts +3 -3
- package/dist/src/table/actions.d.ts +156 -0
- package/dist/src/table/actions.d.ts.map +1 -0
- package/dist/src/table/actions.gen.d.ts +587 -0
- package/dist/src/table/actions.gen.d.ts.map +1 -0
- package/dist/src/table/client.d.ts +28 -2
- package/dist/src/table/client.d.ts.map +1 -1
- package/dist/src/table/external.d.ts +2 -0
- package/dist/src/table/external.d.ts.map +1 -1
- package/dist/src/table/types.gen.d.ts +71 -4
- package/dist/src/table/types.gen.d.ts.map +1 -1
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/task/types.gen.d.ts +7 -7
- package/dist/src/task/types.gen.d.ts.map +1 -1
- package/dist/src/user/client.d.ts +2 -2
- package/dist/src/user/client.d.ts.map +1 -1
- package/dist/src/user/types.gen.d.ts +2 -2
- package/dist/src/view/client.d.ts.map +1 -1
- package/dist/src/view/types.gen.d.ts +2 -2
- package/dist/src/workspace/client.d.ts.map +1 -1
- package/dist/src/workspace/types.gen.d.ts +3 -3
- package/dist/src/workspace/types.gen.d.ts.map +1 -1
- package/package.json +10 -9
- package/src/access/policy/client.ts +4 -7
- package/src/access/role/client.ts +6 -26
- package/src/actions/actions.spec.ts +229 -0
- package/src/actions/actions.ts +104 -0
- package/src/actions/external.ts +10 -0
- package/src/actions/index.ts +10 -0
- package/src/arc/client.ts +3 -7
- package/src/arc/compiler/types.gen.ts +2 -1
- package/src/arc/ir/types.gen.ts +2 -2
- package/src/arc/lsp.spec.ts +3 -7
- package/src/arc/types/types.gen.ts +3 -3
- package/src/auth/auth.spec.ts +12 -13
- package/src/auth/auth.ts +35 -33
- package/src/channel/batchRetriever.spec.ts +13 -4
- package/src/channel/client.ts +8 -6
- package/src/channel/retriever.ts +7 -16
- package/src/channel/writer.ts +4 -20
- package/src/connection/checker.ts +4 -5
- package/src/connection/connection.spec.ts +5 -8
- package/src/device/client.ts +5 -8
- package/src/device/types.gen.ts +4 -4
- package/src/errors.ts +8 -9
- package/src/framer/adapter.ts +2 -4
- package/src/framer/codec.spec.ts +53 -3
- package/src/framer/codec.ts +58 -25
- package/src/framer/deleter.ts +2 -8
- package/src/framer/iterator.ts +42 -39
- package/src/framer/streamProxy.ts +11 -12
- package/src/framer/streamer.spec.ts +1 -1
- package/src/framer/streamer.ts +2 -7
- package/src/framer/types.gen.ts +20 -0
- package/src/framer/writer.spec.ts +77 -0
- package/src/framer/writer.ts +53 -28
- package/src/group/client.ts +4 -7
- package/src/index.ts +3 -2
- package/src/label/client.ts +6 -16
- package/src/lineplot/client.ts +6 -21
- package/src/log/client.ts +6 -21
- package/src/ontology/client.ts +2 -3
- package/src/ontology/types.gen.ts +0 -1
- package/src/ontology/writer.ts +4 -7
- package/src/rack/client.ts +4 -7
- package/src/ranger/alias/client.ts +6 -11
- package/src/ranger/client.ts +2 -3
- package/src/ranger/kv/client.ts +4 -7
- package/src/ranger/writer.ts +4 -17
- package/src/schematic/access.spec.ts +6 -6
- package/src/schematic/actions.gen.ts +200 -0
- package/src/schematic/actions.spec.ts +699 -0
- package/src/schematic/actions.ts +168 -0
- package/src/schematic/client.ts +34 -30
- package/src/schematic/external.ts +2 -0
- package/src/schematic/schematic.spec.ts +233 -69
- package/src/schematic/symbol/client.ts +6 -11
- package/src/schematic/symbol/types.gen.ts +1 -10
- package/src/schematic/types.gen.ts +55 -6
- package/src/status/client.ts +4 -10
- package/src/table/access.spec.ts +0 -6
- package/src/table/actions.gen.ts +243 -0
- package/src/table/actions.ts +255 -0
- package/src/table/client.ts +21 -25
- package/src/table/external.ts +2 -0
- package/src/table/table.spec.ts +588 -43
- package/src/table/types.gen.ts +58 -5
- package/src/task/client.ts +7 -11
- package/src/task/types.gen.ts +8 -6
- package/src/user/client.ts +6 -11
- package/src/view/client.ts +4 -7
- package/src/workspace/client.ts +6 -16
- package/src/workspace/types.gen.ts +2 -1
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { record } from '@synnaxlabs/x';
|
|
2
|
+
import { Draft } from 'immer';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { actions } from '../actions';
|
|
5
|
+
import { Schematic } from './types.gen';
|
|
6
|
+
/** Rename renames the schematic. */
|
|
7
|
+
export declare const renamePayloadZ: z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type RenamePayload = z.infer<typeof renamePayloadZ>;
|
|
11
|
+
/** SetNodePosition moves a node to a new position. */
|
|
12
|
+
export declare const setNodePositionPayloadZ: z.ZodObject<{
|
|
13
|
+
key: z.ZodString;
|
|
14
|
+
position: z.ZodObject<{
|
|
15
|
+
x: z.ZodNumber;
|
|
16
|
+
y: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SetNodePositionPayload = z.infer<typeof setNodePositionPayloadZ>;
|
|
20
|
+
/**
|
|
21
|
+
* SetNodeMeasured updates the rendered pixel size of a node. Emitted by the
|
|
22
|
+
* renderer after measuring the mounted node and stored on the
|
|
23
|
+
* node so diagram measurements stay consistent across re-renders.
|
|
24
|
+
*/
|
|
25
|
+
export declare const setNodeMeasuredPayloadZ: z.ZodObject<{
|
|
26
|
+
key: z.ZodString;
|
|
27
|
+
measured: z.ZodObject<{
|
|
28
|
+
width: z.ZodNumber;
|
|
29
|
+
height: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type SetNodeMeasuredPayload = z.infer<typeof setNodeMeasuredPayloadZ>;
|
|
33
|
+
/**
|
|
34
|
+
* SetNode inserts the node if no node with the same key exists, otherwise
|
|
35
|
+
* replaces the existing node in place. If config is non-empty it is
|
|
36
|
+
* stored under the node's key in the schematic configs map.
|
|
37
|
+
*/
|
|
38
|
+
export declare const setNodePayloadZ: z.ZodObject<{
|
|
39
|
+
node: z.ZodObject<{
|
|
40
|
+
key: z.ZodString;
|
|
41
|
+
position: z.ZodObject<{
|
|
42
|
+
x: z.ZodNumber;
|
|
43
|
+
y: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
zIndex: z.ZodOptional<z.ZodInt>;
|
|
46
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
width: z.ZodNumber;
|
|
48
|
+
height: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
config: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>, z.ZodTransform<Record<string | number, unknown> | undefined, Record<string | number, unknown> | null>>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type SetNodePayload = z.infer<typeof setNodePayloadZ>;
|
|
54
|
+
/** RemoveNode removes a node and any config stored under its key. */
|
|
55
|
+
export declare const removeNodePayloadZ: z.ZodObject<{
|
|
56
|
+
key: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type RemoveNodePayload = z.infer<typeof removeNodePayloadZ>;
|
|
59
|
+
/**
|
|
60
|
+
* AddEdge appends the edge to the schematic. No-op when an edge with the
|
|
61
|
+
* same key already exists.
|
|
62
|
+
*/
|
|
63
|
+
export declare const addEdgePayloadZ: z.ZodObject<{
|
|
64
|
+
edge: z.ZodObject<{
|
|
65
|
+
key: z.ZodString;
|
|
66
|
+
source: z.ZodObject<{
|
|
67
|
+
node: z.ZodString;
|
|
68
|
+
param: z.ZodString;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
target: z.ZodObject<{
|
|
71
|
+
node: z.ZodString;
|
|
72
|
+
param: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type AddEdgePayload = z.infer<typeof addEdgePayloadZ>;
|
|
77
|
+
/** RemoveEdge removes the edge with the given key, if present. */
|
|
78
|
+
export declare const removeEdgePayloadZ: z.ZodObject<{
|
|
79
|
+
key: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type RemoveEdgePayload = z.infer<typeof removeEdgePayloadZ>;
|
|
82
|
+
/**
|
|
83
|
+
* SetConfig merges the given config fields into the existing config entry for
|
|
84
|
+
* the given node or edge key. Top-level fields present in the payload
|
|
85
|
+
* overwrite existing fields; fields absent from the payload are
|
|
86
|
+
* preserved. When no entry exists yet and the key matches an edge
|
|
87
|
+
* whose source node carries a color, the source color overrides
|
|
88
|
+
* whatever color (if any) was in the payload.
|
|
89
|
+
*/
|
|
90
|
+
export declare const setConfigPayloadZ: z.ZodObject<{
|
|
91
|
+
key: z.ZodString;
|
|
92
|
+
config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type SetConfigPayload = z.infer<typeof setConfigPayloadZ>;
|
|
95
|
+
export declare const actionZ: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
|
+
type: z.ZodLiteral<"rename">;
|
|
97
|
+
rename: z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"set_node_position">;
|
|
102
|
+
setNodePosition: z.ZodObject<{
|
|
103
|
+
key: z.ZodString;
|
|
104
|
+
position: z.ZodObject<{
|
|
105
|
+
x: z.ZodNumber;
|
|
106
|
+
y: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
type: z.ZodLiteral<"set_node_measured">;
|
|
111
|
+
setNodeMeasured: z.ZodObject<{
|
|
112
|
+
key: z.ZodString;
|
|
113
|
+
measured: z.ZodObject<{
|
|
114
|
+
width: z.ZodNumber;
|
|
115
|
+
height: z.ZodNumber;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"set_node">;
|
|
120
|
+
setNode: z.ZodObject<{
|
|
121
|
+
node: z.ZodObject<{
|
|
122
|
+
key: z.ZodString;
|
|
123
|
+
position: z.ZodObject<{
|
|
124
|
+
x: z.ZodNumber;
|
|
125
|
+
y: z.ZodNumber;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
zIndex: z.ZodOptional<z.ZodInt>;
|
|
128
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
width: z.ZodNumber;
|
|
130
|
+
height: z.ZodNumber;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
config: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>, z.ZodTransform<Record<string | number, unknown> | undefined, Record<string | number, unknown> | null>>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"remove_node">;
|
|
137
|
+
removeNode: z.ZodObject<{
|
|
138
|
+
key: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"add_edge">;
|
|
142
|
+
addEdge: z.ZodObject<{
|
|
143
|
+
edge: z.ZodObject<{
|
|
144
|
+
key: z.ZodString;
|
|
145
|
+
source: z.ZodObject<{
|
|
146
|
+
node: z.ZodString;
|
|
147
|
+
param: z.ZodString;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
target: z.ZodObject<{
|
|
150
|
+
node: z.ZodString;
|
|
151
|
+
param: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
type: z.ZodLiteral<"remove_edge">;
|
|
157
|
+
removeEdge: z.ZodObject<{
|
|
158
|
+
key: z.ZodString;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"set_config">;
|
|
162
|
+
setConfig: z.ZodObject<{
|
|
163
|
+
key: z.ZodString;
|
|
164
|
+
config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
}, z.core.$strip>], "type">;
|
|
167
|
+
export type Action = z.infer<typeof actionZ>;
|
|
168
|
+
export declare const rename: (payload: RenamePayload) => Action;
|
|
169
|
+
export declare const setNodePosition: (payload: SetNodePositionPayload) => Action;
|
|
170
|
+
export declare const setNodeMeasured: (payload: SetNodeMeasuredPayload) => Action;
|
|
171
|
+
export declare const setNode: (payload: SetNodePayload) => Action;
|
|
172
|
+
export declare const removeNode: (payload: RemoveNodePayload) => Action;
|
|
173
|
+
export declare const addEdge: (payload: AddEdgePayload) => Action;
|
|
174
|
+
export declare const removeEdge: (payload: RemoveEdgePayload) => Action;
|
|
175
|
+
export declare const setConfig: (payload: SetConfigPayload) => Action;
|
|
176
|
+
export type HandlerResult = actions.HandlerResult<Action>;
|
|
177
|
+
export type ReduceAllResult = actions.ReduceAllResult<Schematic, Action>;
|
|
178
|
+
export interface Handlers {
|
|
179
|
+
rename: (state: Draft<Schematic>, payload: RenamePayload) => HandlerResult;
|
|
180
|
+
setNodePosition: (state: Draft<Schematic>, payload: SetNodePositionPayload) => HandlerResult;
|
|
181
|
+
setNodeMeasured: (state: Draft<Schematic>, payload: SetNodeMeasuredPayload) => HandlerResult;
|
|
182
|
+
setNode: (state: Draft<Schematic>, payload: SetNodePayload) => HandlerResult;
|
|
183
|
+
removeNode: (state: Draft<Schematic>, payload: RemoveNodePayload) => HandlerResult;
|
|
184
|
+
addEdge: (state: Draft<Schematic>, payload: AddEdgePayload) => HandlerResult;
|
|
185
|
+
removeEdge: (state: Draft<Schematic>, payload: RemoveEdgePayload) => HandlerResult;
|
|
186
|
+
setConfig: (state: Draft<Schematic>, payload: SetConfigPayload) => HandlerResult;
|
|
187
|
+
}
|
|
188
|
+
export declare const createReduceAll: (handlers: Handlers) => (state: Schematic, actions: ({
|
|
189
|
+
type: "rename";
|
|
190
|
+
rename: {
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
} | {
|
|
194
|
+
type: "set_node_position";
|
|
195
|
+
setNodePosition: {
|
|
196
|
+
key: string;
|
|
197
|
+
position: {
|
|
198
|
+
x: number;
|
|
199
|
+
y: number;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
} | {
|
|
203
|
+
type: "set_node_measured";
|
|
204
|
+
setNodeMeasured: {
|
|
205
|
+
key: string;
|
|
206
|
+
measured: {
|
|
207
|
+
width: number;
|
|
208
|
+
height: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
} | {
|
|
212
|
+
type: "set_node";
|
|
213
|
+
setNode: {
|
|
214
|
+
node: {
|
|
215
|
+
key: string;
|
|
216
|
+
position: {
|
|
217
|
+
x: number;
|
|
218
|
+
y: number;
|
|
219
|
+
};
|
|
220
|
+
zIndex?: number | undefined;
|
|
221
|
+
measured?: {
|
|
222
|
+
width: number;
|
|
223
|
+
height: number;
|
|
224
|
+
} | undefined;
|
|
225
|
+
};
|
|
226
|
+
config?: Record<string | number, unknown> | undefined;
|
|
227
|
+
};
|
|
228
|
+
} | {
|
|
229
|
+
type: "remove_node";
|
|
230
|
+
removeNode: {
|
|
231
|
+
key: string;
|
|
232
|
+
};
|
|
233
|
+
} | {
|
|
234
|
+
type: "add_edge";
|
|
235
|
+
addEdge: {
|
|
236
|
+
edge: {
|
|
237
|
+
key: string;
|
|
238
|
+
source: {
|
|
239
|
+
node: string;
|
|
240
|
+
param: string;
|
|
241
|
+
};
|
|
242
|
+
target: {
|
|
243
|
+
node: string;
|
|
244
|
+
param: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
} | {
|
|
249
|
+
type: "remove_edge";
|
|
250
|
+
removeEdge: {
|
|
251
|
+
key: string;
|
|
252
|
+
};
|
|
253
|
+
} | {
|
|
254
|
+
type: "set_config";
|
|
255
|
+
setConfig: {
|
|
256
|
+
key: string;
|
|
257
|
+
config: record.Unknown;
|
|
258
|
+
};
|
|
259
|
+
})[]) => actions.ReduceAllResult<Schematic, {
|
|
260
|
+
type: "rename";
|
|
261
|
+
rename: {
|
|
262
|
+
name: string;
|
|
263
|
+
};
|
|
264
|
+
} | {
|
|
265
|
+
type: "set_node_position";
|
|
266
|
+
setNodePosition: {
|
|
267
|
+
key: string;
|
|
268
|
+
position: {
|
|
269
|
+
x: number;
|
|
270
|
+
y: number;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
} | {
|
|
274
|
+
type: "set_node_measured";
|
|
275
|
+
setNodeMeasured: {
|
|
276
|
+
key: string;
|
|
277
|
+
measured: {
|
|
278
|
+
width: number;
|
|
279
|
+
height: number;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
} | {
|
|
283
|
+
type: "set_node";
|
|
284
|
+
setNode: {
|
|
285
|
+
node: {
|
|
286
|
+
key: string;
|
|
287
|
+
position: {
|
|
288
|
+
x: number;
|
|
289
|
+
y: number;
|
|
290
|
+
};
|
|
291
|
+
zIndex?: number | undefined;
|
|
292
|
+
measured?: {
|
|
293
|
+
width: number;
|
|
294
|
+
height: number;
|
|
295
|
+
} | undefined;
|
|
296
|
+
};
|
|
297
|
+
config?: Record<string | number, unknown> | undefined;
|
|
298
|
+
};
|
|
299
|
+
} | {
|
|
300
|
+
type: "remove_node";
|
|
301
|
+
removeNode: {
|
|
302
|
+
key: string;
|
|
303
|
+
};
|
|
304
|
+
} | {
|
|
305
|
+
type: "add_edge";
|
|
306
|
+
addEdge: {
|
|
307
|
+
edge: {
|
|
308
|
+
key: string;
|
|
309
|
+
source: {
|
|
310
|
+
node: string;
|
|
311
|
+
param: string;
|
|
312
|
+
};
|
|
313
|
+
target: {
|
|
314
|
+
node: string;
|
|
315
|
+
param: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
type: "remove_edge";
|
|
321
|
+
removeEdge: {
|
|
322
|
+
key: string;
|
|
323
|
+
};
|
|
324
|
+
} | {
|
|
325
|
+
type: "set_config";
|
|
326
|
+
setConfig: {
|
|
327
|
+
key: string;
|
|
328
|
+
config: record.Unknown;
|
|
329
|
+
};
|
|
330
|
+
}>;
|
|
331
|
+
export declare const scopedActionZ: z.ZodObject<{
|
|
332
|
+
key: z.ZodUUID;
|
|
333
|
+
dispatchKey: z.ZodString;
|
|
334
|
+
seq: z.ZodDefault<z.ZodNumber>;
|
|
335
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"rename">;
|
|
337
|
+
rename: z.ZodObject<{
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"set_node_position">;
|
|
342
|
+
setNodePosition: z.ZodObject<{
|
|
343
|
+
key: z.ZodString;
|
|
344
|
+
position: z.ZodObject<{
|
|
345
|
+
x: z.ZodNumber;
|
|
346
|
+
y: z.ZodNumber;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"set_node_measured">;
|
|
351
|
+
setNodeMeasured: z.ZodObject<{
|
|
352
|
+
key: z.ZodString;
|
|
353
|
+
measured: z.ZodObject<{
|
|
354
|
+
width: z.ZodNumber;
|
|
355
|
+
height: z.ZodNumber;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
359
|
+
type: z.ZodLiteral<"set_node">;
|
|
360
|
+
setNode: z.ZodObject<{
|
|
361
|
+
node: z.ZodObject<{
|
|
362
|
+
key: z.ZodString;
|
|
363
|
+
position: z.ZodObject<{
|
|
364
|
+
x: z.ZodNumber;
|
|
365
|
+
y: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
zIndex: z.ZodOptional<z.ZodInt>;
|
|
368
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
width: z.ZodNumber;
|
|
370
|
+
height: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
config: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>, z.ZodTransform<Record<string | number, unknown> | undefined, Record<string | number, unknown> | null>>>;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
376
|
+
type: z.ZodLiteral<"remove_node">;
|
|
377
|
+
removeNode: z.ZodObject<{
|
|
378
|
+
key: z.ZodString;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
type: z.ZodLiteral<"add_edge">;
|
|
382
|
+
addEdge: z.ZodObject<{
|
|
383
|
+
edge: z.ZodObject<{
|
|
384
|
+
key: z.ZodString;
|
|
385
|
+
source: z.ZodObject<{
|
|
386
|
+
node: z.ZodString;
|
|
387
|
+
param: z.ZodString;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
target: z.ZodObject<{
|
|
390
|
+
node: z.ZodString;
|
|
391
|
+
param: z.ZodString;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
396
|
+
type: z.ZodLiteral<"remove_edge">;
|
|
397
|
+
removeEdge: z.ZodObject<{
|
|
398
|
+
key: z.ZodString;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"set_config">;
|
|
402
|
+
setConfig: z.ZodObject<{
|
|
403
|
+
key: z.ZodString;
|
|
404
|
+
config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
}, z.core.$strip>], "type">>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
export declare const dispatchReqZ: z.ZodObject<{
|
|
409
|
+
key: z.ZodUUID;
|
|
410
|
+
dispatchKey: z.ZodString;
|
|
411
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"rename">;
|
|
413
|
+
rename: z.ZodObject<{
|
|
414
|
+
name: z.ZodString;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"set_node_position">;
|
|
418
|
+
setNodePosition: z.ZodObject<{
|
|
419
|
+
key: z.ZodString;
|
|
420
|
+
position: z.ZodObject<{
|
|
421
|
+
x: z.ZodNumber;
|
|
422
|
+
y: z.ZodNumber;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
type: z.ZodLiteral<"set_node_measured">;
|
|
427
|
+
setNodeMeasured: z.ZodObject<{
|
|
428
|
+
key: z.ZodString;
|
|
429
|
+
measured: z.ZodObject<{
|
|
430
|
+
width: z.ZodNumber;
|
|
431
|
+
height: z.ZodNumber;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
435
|
+
type: z.ZodLiteral<"set_node">;
|
|
436
|
+
setNode: z.ZodObject<{
|
|
437
|
+
node: z.ZodObject<{
|
|
438
|
+
key: z.ZodString;
|
|
439
|
+
position: z.ZodObject<{
|
|
440
|
+
x: z.ZodNumber;
|
|
441
|
+
y: z.ZodNumber;
|
|
442
|
+
}, z.core.$strip>;
|
|
443
|
+
zIndex: z.ZodOptional<z.ZodInt>;
|
|
444
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
width: z.ZodNumber;
|
|
446
|
+
height: z.ZodNumber;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
config: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>, z.ZodTransform<Record<string | number, unknown> | undefined, Record<string | number, unknown> | null>>>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
452
|
+
type: z.ZodLiteral<"remove_node">;
|
|
453
|
+
removeNode: z.ZodObject<{
|
|
454
|
+
key: z.ZodString;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
457
|
+
type: z.ZodLiteral<"add_edge">;
|
|
458
|
+
addEdge: z.ZodObject<{
|
|
459
|
+
edge: z.ZodObject<{
|
|
460
|
+
key: z.ZodString;
|
|
461
|
+
source: z.ZodObject<{
|
|
462
|
+
node: z.ZodString;
|
|
463
|
+
param: z.ZodString;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
target: z.ZodObject<{
|
|
466
|
+
node: z.ZodString;
|
|
467
|
+
param: z.ZodString;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
}, z.core.$strip>;
|
|
471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
472
|
+
type: z.ZodLiteral<"remove_edge">;
|
|
473
|
+
removeEdge: z.ZodObject<{
|
|
474
|
+
key: z.ZodString;
|
|
475
|
+
}, z.core.$strip>;
|
|
476
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
477
|
+
type: z.ZodLiteral<"set_config">;
|
|
478
|
+
setConfig: z.ZodObject<{
|
|
479
|
+
key: z.ZodString;
|
|
480
|
+
config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
}, z.core.$strip>], "type">>;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
//# sourceMappingURL=actions.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.gen.d.ts","sourceRoot":"","sources":["../../../src/schematic/actions.gen.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,MAAM,EAAgB,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE3E,oCAAoC;AACpC,eAAO,MAAM,cAAc;;iBAEzB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,sDAAsD;AACtD,eAAO,MAAM,uBAAuB;;;;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE7D,qEAAqE;AACrE,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,eAAe;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AAiC,CAAC;AAE5D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.spec.d.ts","sourceRoot":"","sources":["../../../src/schematic/actions.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { record } from '@synnaxlabs/x';
|
|
3
2
|
import { z } from 'zod';
|
|
3
|
+
import { Action } from './actions.gen';
|
|
4
4
|
import { symbol } from './symbol';
|
|
5
5
|
import { Key, New, Schematic } from './types.gen';
|
|
6
6
|
import { workspace } from '../workspace';
|
|
7
|
+
export declare const SET_CHANNEL_NAME = "sy_schematic_set";
|
|
8
|
+
declare const setDataBodyZ: z.ZodObject<{
|
|
9
|
+
nodes: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
|
|
10
|
+
key: string;
|
|
11
|
+
position: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
zIndex?: number | undefined;
|
|
16
|
+
measured?: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
} | undefined;
|
|
20
|
+
}[], null>>, z.ZodArray<z.ZodObject<{
|
|
21
|
+
key: z.ZodString;
|
|
22
|
+
position: z.ZodObject<{
|
|
23
|
+
x: z.ZodNumber;
|
|
24
|
+
y: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
zIndex: z.ZodOptional<z.ZodInt>;
|
|
27
|
+
measured: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
width: z.ZodNumber;
|
|
29
|
+
height: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>>]>>;
|
|
32
|
+
edges: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
|
|
33
|
+
key: string;
|
|
34
|
+
source: {
|
|
35
|
+
node: string;
|
|
36
|
+
param: string;
|
|
37
|
+
};
|
|
38
|
+
target: {
|
|
39
|
+
node: string;
|
|
40
|
+
param: string;
|
|
41
|
+
};
|
|
42
|
+
}[], null>>, z.ZodArray<z.ZodObject<{
|
|
43
|
+
key: z.ZodString;
|
|
44
|
+
source: z.ZodObject<{
|
|
45
|
+
node: z.ZodString;
|
|
46
|
+
param: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
target: z.ZodObject<{
|
|
49
|
+
node: z.ZodString;
|
|
50
|
+
param: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
}, z.core.$strip>>]>>;
|
|
53
|
+
configs: z.ZodType<Record<string, Record<string | number, unknown>>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string | number, unknown>>, unknown>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type SetDataBody = z.input<typeof setDataBodyZ>;
|
|
7
56
|
declare const copyReqZ: z.ZodObject<{
|
|
8
57
|
key: z.ZodUUID;
|
|
9
58
|
name: z.ZodString;
|
|
@@ -39,11 +88,13 @@ export declare class Client {
|
|
|
39
88
|
create(workspace: workspace.Key, schematic: New): Promise<Schematic>;
|
|
40
89
|
create(workspace: workspace.Key, schematics: New[]): Promise<Schematic[]>;
|
|
41
90
|
rename(key: Key, name: string): Promise<void>;
|
|
42
|
-
setData(key: Key, data:
|
|
91
|
+
setData(key: Key, data: SetDataBody): Promise<void>;
|
|
92
|
+
dispatch(key: Key, dispatchKey: string, actions: Action[]): Promise<void>;
|
|
43
93
|
retrieve(args: RetrieveSingleParams): Promise<Schematic>;
|
|
44
94
|
retrieve(args: RetrieveMultipleParams): Promise<Schematic[]>;
|
|
45
95
|
delete(keys: Key | Key[]): Promise<void>;
|
|
46
96
|
copy(args: CopyArgs): Promise<Schematic>;
|
|
47
97
|
}
|
|
98
|
+
export declare const ZERO_NEW: New;
|
|
48
99
|
export {};
|
|
49
100
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/schematic/client.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/schematic/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6D,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAIvD,QAAA,MAAM,QAAQ;;;;iBAIZ,CAAC;AAEH,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,sBAA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ematic/external.ts"],"names":[],"mappings":"AASA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/schematic/external.ts"],"names":[],"mappings":"AASA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/client.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,MAAM,EAEZ,MAAM,8BAA8B,CAAC;AAOtC,QAAA,MAAM,gBAAgB;;;iBAGpB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;;;;GAEmB,CAAC;AAE7C,QAAA,MAAM,aAAa;;;;;;;;;mBAAmD,CAAC;AAEvE,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,gBAAgB,CAAC,CAAC;AAQtE,eAAO,MAAM,gBAAgB,4BAA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