@graview/studio 0.1.33 → 0.1.35
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/edits.d.ts.map +1 -1
- package/dist/edits.js +4 -3
- package/dist/edits.js.map +1 -1
- package/dist/from-declaration.d.ts.map +1 -1
- package/dist/from-declaration.js +19 -1
- package/dist/from-declaration.js.map +1 -1
- package/dist/meta.d.ts +220 -0
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +44 -2
- package/dist/meta.js.map +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +8 -1
- package/dist/source.js.map +1 -1
- package/dist/to-declaration.d.ts.map +1 -1
- package/dist/to-declaration.js +7 -1
- package/dist/to-declaration.js.map +1 -1
- package/dist/zod-source.d.ts +2 -0
- package/dist/zod-source.d.ts.map +1 -1
- package/dist/zod-source.js +1 -1
- package/dist/zod-source.js.map +1 -1
- package/package.json +8 -8
package/dist/meta.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export declare const edgeNode: import("@graview/core").NodeDefinition<"edge", z.
|
|
|
87
87
|
}>;
|
|
88
88
|
appendOnly: z.ZodBoolean;
|
|
89
89
|
toAny: z.ZodBoolean;
|
|
90
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
91
|
}, z.core.$strip>, {
|
|
91
92
|
readonly "from-kind": {
|
|
92
93
|
readonly to: readonly ["kind"];
|
|
@@ -283,6 +284,7 @@ export declare const STUDIO_SCHEMA: import("@graview/core").Schema<readonly [imp
|
|
|
283
284
|
}>;
|
|
284
285
|
appendOnly: z.ZodBoolean;
|
|
285
286
|
toAny: z.ZodBoolean;
|
|
287
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
288
|
}, z.core.$strip>, {
|
|
287
289
|
readonly "from-kind": {
|
|
288
290
|
readonly to: readonly ["kind"];
|
|
@@ -473,6 +475,7 @@ export declare const addKind: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
473
475
|
}>;
|
|
474
476
|
appendOnly: z.ZodBoolean;
|
|
475
477
|
toAny: z.ZodBoolean;
|
|
478
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
476
479
|
}, z.core.$strip>, {
|
|
477
480
|
readonly "from-kind": {
|
|
478
481
|
readonly to: readonly ["kind"];
|
|
@@ -662,6 +665,7 @@ export declare const renameKind: AnyMutationDefinition<import("@graview/core").S
|
|
|
662
665
|
}>;
|
|
663
666
|
appendOnly: z.ZodBoolean;
|
|
664
667
|
toAny: z.ZodBoolean;
|
|
668
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
665
669
|
}, z.core.$strip>, {
|
|
666
670
|
readonly "from-kind": {
|
|
667
671
|
readonly to: readonly ["kind"];
|
|
@@ -851,6 +855,7 @@ export declare const removeKind: AnyMutationDefinition<import("@graview/core").S
|
|
|
851
855
|
}>;
|
|
852
856
|
appendOnly: z.ZodBoolean;
|
|
853
857
|
toAny: z.ZodBoolean;
|
|
858
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
854
859
|
}, z.core.$strip>, {
|
|
855
860
|
readonly "from-kind": {
|
|
856
861
|
readonly to: readonly ["kind"];
|
|
@@ -1040,6 +1045,7 @@ export declare const addField: AnyMutationDefinition<import("@graview/core").Sch
|
|
|
1040
1045
|
}>;
|
|
1041
1046
|
appendOnly: z.ZodBoolean;
|
|
1042
1047
|
toAny: z.ZodBoolean;
|
|
1048
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1043
1049
|
}, z.core.$strip>, {
|
|
1044
1050
|
readonly "from-kind": {
|
|
1045
1051
|
readonly to: readonly ["kind"];
|
|
@@ -1229,6 +1235,7 @@ export declare const renameField: AnyMutationDefinition<import("@graview/core").
|
|
|
1229
1235
|
}>;
|
|
1230
1236
|
appendOnly: z.ZodBoolean;
|
|
1231
1237
|
toAny: z.ZodBoolean;
|
|
1238
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1232
1239
|
}, z.core.$strip>, {
|
|
1233
1240
|
readonly "from-kind": {
|
|
1234
1241
|
readonly to: readonly ["kind"];
|
|
@@ -1418,6 +1425,7 @@ export declare const removeField: AnyMutationDefinition<import("@graview/core").
|
|
|
1418
1425
|
}>;
|
|
1419
1426
|
appendOnly: z.ZodBoolean;
|
|
1420
1427
|
toAny: z.ZodBoolean;
|
|
1428
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1421
1429
|
}, z.core.$strip>, {
|
|
1422
1430
|
readonly "from-kind": {
|
|
1423
1431
|
readonly to: readonly ["kind"];
|
|
@@ -1607,6 +1615,7 @@ export declare const retypeField: AnyMutationDefinition<import("@graview/core").
|
|
|
1607
1615
|
}>;
|
|
1608
1616
|
appendOnly: z.ZodBoolean;
|
|
1609
1617
|
toAny: z.ZodBoolean;
|
|
1618
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1610
1619
|
}, z.core.$strip>, {
|
|
1611
1620
|
readonly "from-kind": {
|
|
1612
1621
|
readonly to: readonly ["kind"];
|
|
@@ -1796,6 +1805,7 @@ export declare const setRequired: AnyMutationDefinition<import("@graview/core").
|
|
|
1796
1805
|
}>;
|
|
1797
1806
|
appendOnly: z.ZodBoolean;
|
|
1798
1807
|
toAny: z.ZodBoolean;
|
|
1808
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1799
1809
|
}, z.core.$strip>, {
|
|
1800
1810
|
readonly "from-kind": {
|
|
1801
1811
|
readonly to: readonly ["kind"];
|
|
@@ -1985,6 +1995,7 @@ export declare const setRepeats: AnyMutationDefinition<import("@graview/core").S
|
|
|
1985
1995
|
}>;
|
|
1986
1996
|
appendOnly: z.ZodBoolean;
|
|
1987
1997
|
toAny: z.ZodBoolean;
|
|
1998
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1988
1999
|
}, z.core.$strip>, {
|
|
1989
2000
|
readonly "from-kind": {
|
|
1990
2001
|
readonly to: readonly ["kind"];
|
|
@@ -2174,6 +2185,7 @@ export declare const setOptions: AnyMutationDefinition<import("@graview/core").S
|
|
|
2174
2185
|
}>;
|
|
2175
2186
|
appendOnly: z.ZodBoolean;
|
|
2176
2187
|
toAny: z.ZodBoolean;
|
|
2188
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2177
2189
|
}, z.core.$strip>, {
|
|
2178
2190
|
readonly "from-kind": {
|
|
2179
2191
|
readonly to: readonly ["kind"];
|
|
@@ -2363,6 +2375,7 @@ export declare const describeField: AnyMutationDefinition<import("@graview/core"
|
|
|
2363
2375
|
}>;
|
|
2364
2376
|
appendOnly: z.ZodBoolean;
|
|
2365
2377
|
toAny: z.ZodBoolean;
|
|
2378
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2366
2379
|
}, z.core.$strip>, {
|
|
2367
2380
|
readonly "from-kind": {
|
|
2368
2381
|
readonly to: readonly ["kind"];
|
|
@@ -2552,6 +2565,197 @@ export declare const addEdge: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
2552
2565
|
}>;
|
|
2553
2566
|
appendOnly: z.ZodBoolean;
|
|
2554
2567
|
toAny: z.ZodBoolean;
|
|
2568
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2569
|
+
}, z.core.$strip>, {
|
|
2570
|
+
readonly "from-kind": {
|
|
2571
|
+
readonly to: readonly ["kind"];
|
|
2572
|
+
readonly cardinality: "one";
|
|
2573
|
+
readonly description: "the kind it is declared on";
|
|
2574
|
+
readonly inverse: "its edges";
|
|
2575
|
+
};
|
|
2576
|
+
readonly "to-kind": {
|
|
2577
|
+
readonly to: readonly ["kind"];
|
|
2578
|
+
readonly description: "the kinds it may reach";
|
|
2579
|
+
readonly inverse: "the edges that reach it";
|
|
2580
|
+
};
|
|
2581
|
+
}>, import("@graview/core").NodeDefinition<"act", z.ZodObject<{
|
|
2582
|
+
label: z.ZodString;
|
|
2583
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
fromTheOtherEnd: z.ZodOptional<z.ZodString>;
|
|
2585
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2586
|
+
destructive: z.ZodBoolean;
|
|
2587
|
+
writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2588
|
+
subjectArg: z.ZodOptional<z.ZodString>;
|
|
2589
|
+
targetArg: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
onAny: z.ZodBoolean;
|
|
2591
|
+
derived: z.ZodBoolean;
|
|
2592
|
+
}, z.core.$strip>, {
|
|
2593
|
+
readonly on: {
|
|
2594
|
+
readonly to: readonly ["kind"];
|
|
2595
|
+
readonly description: "the kinds it acts on";
|
|
2596
|
+
readonly inverse: "the acts on it";
|
|
2597
|
+
};
|
|
2598
|
+
readonly creates: {
|
|
2599
|
+
readonly to: readonly ["kind"];
|
|
2600
|
+
readonly description: "the kind it brings into being";
|
|
2601
|
+
readonly inverse: "how one comes to be";
|
|
2602
|
+
};
|
|
2603
|
+
readonly connects: {
|
|
2604
|
+
readonly to: readonly ["edge"];
|
|
2605
|
+
readonly description: "the relation it makes";
|
|
2606
|
+
readonly inverse: "the acts that make it";
|
|
2607
|
+
};
|
|
2608
|
+
readonly severs: {
|
|
2609
|
+
readonly to: readonly ["edge"];
|
|
2610
|
+
readonly description: "the relation it breaks";
|
|
2611
|
+
readonly inverse: "the acts that break it";
|
|
2612
|
+
};
|
|
2613
|
+
}>, import("@graview/core").NodeDefinition<"rule", z.ZodObject<{
|
|
2614
|
+
label: z.ZodString;
|
|
2615
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2617
|
+
judgesPast: z.ZodBoolean;
|
|
2618
|
+
readsTheClock: z.ZodOptional<z.ZodBoolean>;
|
|
2619
|
+
wholeGraph: z.ZodBoolean;
|
|
2620
|
+
derivedRepairs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2621
|
+
require: z.ZodOptional<z.ZodString>;
|
|
2622
|
+
when: z.ZodOptional<z.ZodString>;
|
|
2623
|
+
says: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
}, z.core.$strip>, {
|
|
2625
|
+
readonly over: {
|
|
2626
|
+
readonly to: readonly ["kind"];
|
|
2627
|
+
readonly description: "the kind it judges";
|
|
2628
|
+
readonly inverse: "the rules over it";
|
|
2629
|
+
};
|
|
2630
|
+
readonly repairs: {
|
|
2631
|
+
readonly to: readonly ["act"];
|
|
2632
|
+
readonly description: "the acts that put it right";
|
|
2633
|
+
readonly inverse: "the rules it repairs";
|
|
2634
|
+
};
|
|
2635
|
+
}>, import("@graview/core").NodeDefinition<"role", z.ZodObject<{
|
|
2636
|
+
label: z.ZodString;
|
|
2637
|
+
}, z.core.$strip>, import("@graview/core").EmptyEdgeMap>, import("@graview/core").NodeDefinition<"grant", z.ZodObject<{
|
|
2638
|
+
label: z.ZodString;
|
|
2639
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
self: z.ZodBoolean;
|
|
2641
|
+
ownEnd: z.ZodOptional<z.ZodBoolean>;
|
|
2642
|
+
everyone: z.ZodBoolean;
|
|
2643
|
+
allActs: z.ZodBoolean;
|
|
2644
|
+
allKinds: z.ZodBoolean;
|
|
2645
|
+
}, z.core.$strip>, {
|
|
2646
|
+
readonly lets: {
|
|
2647
|
+
readonly to: readonly ["role"];
|
|
2648
|
+
readonly description: "the roles it lets";
|
|
2649
|
+
readonly inverse: "what they are let do";
|
|
2650
|
+
};
|
|
2651
|
+
readonly may: {
|
|
2652
|
+
readonly to: readonly ["act"];
|
|
2653
|
+
readonly description: "the acts it allows";
|
|
2654
|
+
readonly inverse: "who may take it";
|
|
2655
|
+
};
|
|
2656
|
+
readonly "allows-on": {
|
|
2657
|
+
readonly to: readonly ["kind"];
|
|
2658
|
+
readonly description: "the kinds it allows those acts on";
|
|
2659
|
+
readonly inverse: "who may act on it";
|
|
2660
|
+
};
|
|
2661
|
+
}>, import("@graview/core").NodeDefinition<"sight", z.ZodObject<{
|
|
2662
|
+
label: z.ZodString;
|
|
2663
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
own: z.ZodBoolean;
|
|
2665
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2666
|
+
everyone: z.ZodBoolean;
|
|
2667
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2668
|
+
hide: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2669
|
+
}, z.core.$strip>, {
|
|
2670
|
+
readonly "seen-by": {
|
|
2671
|
+
readonly to: readonly ["role"];
|
|
2672
|
+
readonly description: "the roles it lets see";
|
|
2673
|
+
readonly inverse: "what they see";
|
|
2674
|
+
};
|
|
2675
|
+
readonly shows: {
|
|
2676
|
+
readonly to: readonly ["kind"];
|
|
2677
|
+
readonly description: "the kinds it shows";
|
|
2678
|
+
readonly inverse: "who sees it";
|
|
2679
|
+
};
|
|
2680
|
+
}>, import("@graview/core").NodeDefinition<"lens", z.ZodObject<{
|
|
2681
|
+
label: z.ZodString;
|
|
2682
|
+
binds: z.ZodOptional<z.ZodEnum<{
|
|
2683
|
+
fields: "fields";
|
|
2684
|
+
entities: "entities";
|
|
2685
|
+
}>>;
|
|
2686
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2687
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2688
|
+
}, z.core.$strip>, import("@graview/core").EmptyEdgeMap>, import("@graview/core").NodeDefinition<"brand", z.ZodObject<{
|
|
2689
|
+
label: z.ZodString;
|
|
2690
|
+
body: z.ZodOptional<z.ZodString>;
|
|
2691
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2692
|
+
}, z.core.$strip>, import("@graview/core").EmptyEdgeMap>]>>;
|
|
2693
|
+
export declare const addEdgeToAnotherApp: AnyMutationDefinition<import("@graview/core").Schema<readonly [import("@graview/core").NodeDefinition<"kind", z.ZodObject<{
|
|
2694
|
+
label: z.ZodString;
|
|
2695
|
+
plural: z.ZodOptional<z.ZodString>;
|
|
2696
|
+
noun: z.ZodOptional<z.ZodString>;
|
|
2697
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2698
|
+
lifecycleField: z.ZodOptional<z.ZodString>;
|
|
2699
|
+
retired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2700
|
+
figure: z.ZodOptional<z.ZodString>;
|
|
2701
|
+
people: z.ZodOptional<z.ZodBoolean>;
|
|
2702
|
+
neverArchived: z.ZodOptional<z.ZodBoolean>;
|
|
2703
|
+
}, z.core.$strip>, import("@graview/core").EmptyEdgeMap>, import("@graview/core").NodeDefinition<"field", z.ZodObject<{
|
|
2704
|
+
label: z.ZodString;
|
|
2705
|
+
type: z.ZodEnum<{
|
|
2706
|
+
string: "string";
|
|
2707
|
+
number: "number";
|
|
2708
|
+
boolean: "boolean";
|
|
2709
|
+
text: "text";
|
|
2710
|
+
integer: "integer";
|
|
2711
|
+
date: "date";
|
|
2712
|
+
datetime: "datetime";
|
|
2713
|
+
enum: "enum";
|
|
2714
|
+
list: "list";
|
|
2715
|
+
url: "url";
|
|
2716
|
+
email: "email";
|
|
2717
|
+
image: "image";
|
|
2718
|
+
file: "file";
|
|
2719
|
+
"app-link": "app-link";
|
|
2720
|
+
phone: "phone";
|
|
2721
|
+
place: "place";
|
|
2722
|
+
duration: "duration";
|
|
2723
|
+
}>;
|
|
2724
|
+
required: z.ZodBoolean;
|
|
2725
|
+
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2726
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2727
|
+
repeats: z.ZodOptional<z.ZodBoolean>;
|
|
2728
|
+
markdown: z.ZodOptional<z.ZodBoolean>;
|
|
2729
|
+
}, z.core.$strip>, {
|
|
2730
|
+
readonly of: {
|
|
2731
|
+
readonly to: readonly ["kind"];
|
|
2732
|
+
readonly cardinality: "one";
|
|
2733
|
+
readonly description: "the kind it belongs to";
|
|
2734
|
+
readonly inverse: "its fields";
|
|
2735
|
+
};
|
|
2736
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2737
|
+
label: z.ZodString;
|
|
2738
|
+
expr: z.ZodString;
|
|
2739
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
}, z.core.$strip>, {
|
|
2742
|
+
readonly "computed-on": {
|
|
2743
|
+
readonly to: readonly ["kind"];
|
|
2744
|
+
readonly cardinality: "one";
|
|
2745
|
+
readonly description: "the kind that works it out";
|
|
2746
|
+
readonly inverse: "what it works out";
|
|
2747
|
+
};
|
|
2748
|
+
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2749
|
+
label: z.ZodString;
|
|
2750
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2751
|
+
inverse: z.ZodOptional<z.ZodString>;
|
|
2752
|
+
cardinality: z.ZodEnum<{
|
|
2753
|
+
one: "one";
|
|
2754
|
+
many: "many";
|
|
2755
|
+
}>;
|
|
2756
|
+
appendOnly: z.ZodBoolean;
|
|
2757
|
+
toAny: z.ZodBoolean;
|
|
2758
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2555
2759
|
}, z.core.$strip>, {
|
|
2556
2760
|
readonly "from-kind": {
|
|
2557
2761
|
readonly to: readonly ["kind"];
|
|
@@ -2741,6 +2945,7 @@ export declare const removeEdge: AnyMutationDefinition<import("@graview/core").S
|
|
|
2741
2945
|
}>;
|
|
2742
2946
|
appendOnly: z.ZodBoolean;
|
|
2743
2947
|
toAny: z.ZodBoolean;
|
|
2948
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2744
2949
|
}, z.core.$strip>, {
|
|
2745
2950
|
readonly "from-kind": {
|
|
2746
2951
|
readonly to: readonly ["kind"];
|
|
@@ -2930,6 +3135,7 @@ export declare const addAct: AnyMutationDefinition<import("@graview/core").Schem
|
|
|
2930
3135
|
}>;
|
|
2931
3136
|
appendOnly: z.ZodBoolean;
|
|
2932
3137
|
toAny: z.ZodBoolean;
|
|
3138
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2933
3139
|
}, z.core.$strip>, {
|
|
2934
3140
|
readonly "from-kind": {
|
|
2935
3141
|
readonly to: readonly ["kind"];
|
|
@@ -3119,6 +3325,7 @@ export declare const removeAct: AnyMutationDefinition<import("@graview/core").Sc
|
|
|
3119
3325
|
}>;
|
|
3120
3326
|
appendOnly: z.ZodBoolean;
|
|
3121
3327
|
toAny: z.ZodBoolean;
|
|
3328
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3122
3329
|
}, z.core.$strip>, {
|
|
3123
3330
|
readonly "from-kind": {
|
|
3124
3331
|
readonly to: readonly ["kind"];
|
|
@@ -3308,6 +3515,7 @@ export declare const addRule: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
3308
3515
|
}>;
|
|
3309
3516
|
appendOnly: z.ZodBoolean;
|
|
3310
3517
|
toAny: z.ZodBoolean;
|
|
3518
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3311
3519
|
}, z.core.$strip>, {
|
|
3312
3520
|
readonly "from-kind": {
|
|
3313
3521
|
readonly to: readonly ["kind"];
|
|
@@ -3497,6 +3705,7 @@ export declare const removeRule: AnyMutationDefinition<import("@graview/core").S
|
|
|
3497
3705
|
}>;
|
|
3498
3706
|
appendOnly: z.ZodBoolean;
|
|
3499
3707
|
toAny: z.ZodBoolean;
|
|
3708
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3500
3709
|
}, z.core.$strip>, {
|
|
3501
3710
|
readonly "from-kind": {
|
|
3502
3711
|
readonly to: readonly ["kind"];
|
|
@@ -3686,6 +3895,7 @@ export declare const nameRepair: AnyMutationDefinition<import("@graview/core").S
|
|
|
3686
3895
|
}>;
|
|
3687
3896
|
appendOnly: z.ZodBoolean;
|
|
3688
3897
|
toAny: z.ZodBoolean;
|
|
3898
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3689
3899
|
}, z.core.$strip>, {
|
|
3690
3900
|
readonly "from-kind": {
|
|
3691
3901
|
readonly to: readonly ["kind"];
|
|
@@ -3875,6 +4085,7 @@ export declare const forgetRepair: AnyMutationDefinition<import("@graview/core")
|
|
|
3875
4085
|
}>;
|
|
3876
4086
|
appendOnly: z.ZodBoolean;
|
|
3877
4087
|
toAny: z.ZodBoolean;
|
|
4088
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3878
4089
|
}, z.core.$strip>, {
|
|
3879
4090
|
readonly "from-kind": {
|
|
3880
4091
|
readonly to: readonly ["kind"];
|
|
@@ -4064,6 +4275,7 @@ export declare const setFigure: AnyMutationDefinition<import("@graview/core").Sc
|
|
|
4064
4275
|
}>;
|
|
4065
4276
|
appendOnly: z.ZodBoolean;
|
|
4066
4277
|
toAny: z.ZodBoolean;
|
|
4278
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4067
4279
|
}, z.core.$strip>, {
|
|
4068
4280
|
readonly "from-kind": {
|
|
4069
4281
|
readonly to: readonly ["kind"];
|
|
@@ -4253,6 +4465,7 @@ export declare const addRole: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
4253
4465
|
}>;
|
|
4254
4466
|
appendOnly: z.ZodBoolean;
|
|
4255
4467
|
toAny: z.ZodBoolean;
|
|
4468
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4256
4469
|
}, z.core.$strip>, {
|
|
4257
4470
|
readonly "from-kind": {
|
|
4258
4471
|
readonly to: readonly ["kind"];
|
|
@@ -4442,6 +4655,7 @@ export declare const grant: AnyMutationDefinition<import("@graview/core").Schema
|
|
|
4442
4655
|
}>;
|
|
4443
4656
|
appendOnly: z.ZodBoolean;
|
|
4444
4657
|
toAny: z.ZodBoolean;
|
|
4658
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4445
4659
|
}, z.core.$strip>, {
|
|
4446
4660
|
readonly "from-kind": {
|
|
4447
4661
|
readonly to: readonly ["kind"];
|
|
@@ -4631,6 +4845,7 @@ export declare const revokeGrant: AnyMutationDefinition<import("@graview/core").
|
|
|
4631
4845
|
}>;
|
|
4632
4846
|
appendOnly: z.ZodBoolean;
|
|
4633
4847
|
toAny: z.ZodBoolean;
|
|
4848
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4634
4849
|
}, z.core.$strip>, {
|
|
4635
4850
|
readonly "from-kind": {
|
|
4636
4851
|
readonly to: readonly ["kind"];
|
|
@@ -4820,6 +5035,7 @@ export declare const addSight: AnyMutationDefinition<import("@graview/core").Sch
|
|
|
4820
5035
|
}>;
|
|
4821
5036
|
appendOnly: z.ZodBoolean;
|
|
4822
5037
|
toAny: z.ZodBoolean;
|
|
5038
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4823
5039
|
}, z.core.$strip>, {
|
|
4824
5040
|
readonly "from-kind": {
|
|
4825
5041
|
readonly to: readonly ["kind"];
|
|
@@ -5009,6 +5225,7 @@ export declare const changeSight: AnyMutationDefinition<import("@graview/core").
|
|
|
5009
5225
|
}>;
|
|
5010
5226
|
appendOnly: z.ZodBoolean;
|
|
5011
5227
|
toAny: z.ZodBoolean;
|
|
5228
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5012
5229
|
}, z.core.$strip>, {
|
|
5013
5230
|
readonly "from-kind": {
|
|
5014
5231
|
readonly to: readonly ["kind"];
|
|
@@ -5198,6 +5415,7 @@ export declare const removeSight: AnyMutationDefinition<import("@graview/core").
|
|
|
5198
5415
|
}>;
|
|
5199
5416
|
appendOnly: z.ZodBoolean;
|
|
5200
5417
|
toAny: z.ZodBoolean;
|
|
5418
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5201
5419
|
}, z.core.$strip>, {
|
|
5202
5420
|
readonly "from-kind": {
|
|
5203
5421
|
readonly to: readonly ["kind"];
|
|
@@ -5392,6 +5610,7 @@ export declare const removeLens: AnyMutationDefinition<import("@graview/core").S
|
|
|
5392
5610
|
}>;
|
|
5393
5611
|
appendOnly: z.ZodBoolean;
|
|
5394
5612
|
toAny: z.ZodBoolean;
|
|
5613
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5395
5614
|
}, z.core.$strip>, {
|
|
5396
5615
|
readonly "from-kind": {
|
|
5397
5616
|
readonly to: readonly ["kind"];
|
|
@@ -5587,6 +5806,7 @@ export declare const setLensHidden: AnyMutationDefinition<import("@graview/core"
|
|
|
5587
5806
|
}>;
|
|
5588
5807
|
appendOnly: z.ZodBoolean;
|
|
5589
5808
|
toAny: z.ZodBoolean;
|
|
5809
|
+
toAnotherApp: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5590
5810
|
}, z.core.$strip>, {
|
|
5591
5811
|
readonly "from-kind": {
|
|
5592
5812
|
readonly to: readonly ["kind"];
|
package/dist/meta.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../src/meta.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../src/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,KAAK,qBAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE/H,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,4KAAuB,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAUxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,SAAS,qBAAqB,CAAC,YAAY,CAAC,EA8B1E,CAAC;AAEF,uGAAuG;AACvG,wBAAgB,SAAS,CAAC,IAAI,SAAW,GAAG,UAAU,CAAC,YAAY,CAAC,CAOnE"}
|
package/dist/meta.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSchema, defineNode, nodeRef } from "@graview/core";
|
|
1
|
+
import { createSchema, defineNode, isLinkedTarget, nodeRef } from "@graview/core";
|
|
2
2
|
import { FIELD_TYPES as DOCUMENT_FIELD_TYPES, renameIn } from "@graview/core/document";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
/*
|
|
@@ -134,13 +134,15 @@ export const edgeNode = defineNode("edge", {
|
|
|
134
134
|
appendOnly: z.boolean(),
|
|
135
135
|
/** Declared to any kind at all. */
|
|
136
136
|
toAny: z.boolean(),
|
|
137
|
+
/** Declared to kinds of another app (FR-171), as a relation's `to` names them: `@nick/house/house`. Its links are kept on the record that links. */
|
|
138
|
+
toAnotherApp: z.array(z.string()).optional(),
|
|
137
139
|
}),
|
|
138
140
|
edges: {
|
|
139
141
|
"from-kind": { to: ["kind"], cardinality: "one", description: "the kind it is declared on", inverse: "its edges" },
|
|
140
142
|
"to-kind": { to: ["kind"], description: "the kinds it may reach", inverse: "the edges that reach it" },
|
|
141
143
|
},
|
|
142
144
|
label: (node) => node.label,
|
|
143
|
-
display: { labels: { label: "name", description: "reading from this end", inverse: "reading from the far end", appendOnly: "append only", toAny: "to any kind" } },
|
|
145
|
+
display: { labels: { label: "name", description: "reading from this end", inverse: "reading from the far end", appendOnly: "append only", toAny: "to any kind", toAnotherApp: "to another app's kind" } },
|
|
144
146
|
});
|
|
145
147
|
export const actNode = defineNode("act", {
|
|
146
148
|
// A part of the declaration is in the app or not: never set aside (FR-173).
|
|
@@ -683,6 +685,45 @@ export const addEdge = act("add-edge", {
|
|
|
683
685
|
ctx.addEdge({ kind: "to-kind", from: id, to: args.to });
|
|
684
686
|
},
|
|
685
687
|
});
|
|
688
|
+
/*
|
|
689
|
+
* A RELATION TO ANOTHER APP'S KIND (FR-171): its far end is no kind of this
|
|
690
|
+
* declaration, so it is named rather than tied — `@` + the app's address +
|
|
691
|
+
* `/` + the kind — and a record that links one keeps it as a value.
|
|
692
|
+
*/
|
|
693
|
+
export const addEdgeToAnotherApp = act("add-edge-to-another-app", {
|
|
694
|
+
title: "Link another app's records",
|
|
695
|
+
description: 'Declare a relation from one kind to a kind of another app, named like "@nick/house/house". Linking picks a record there; the other app is never changed.',
|
|
696
|
+
// No subject: offered with the studio's own acts, not on every kind's strip, where it outranked Add a field (two answers open to its three) and pushed it past the fold.
|
|
697
|
+
creates: ["edge"],
|
|
698
|
+
connects: ["from-kind"],
|
|
699
|
+
input: z.object({
|
|
700
|
+
kind: nodeRef(["kind"]),
|
|
701
|
+
label: z.string().min(1),
|
|
702
|
+
to: z.string().min(1),
|
|
703
|
+
description: z.string().optional(),
|
|
704
|
+
cardinality: z.enum(["one", "many"]).optional(),
|
|
705
|
+
}),
|
|
706
|
+
describe: (args, graph) => `Add the edge ${args.label} from ${graph.getNode(args.kind)?.label ?? args.kind} to ${args.to}`,
|
|
707
|
+
apply(ctx, args) {
|
|
708
|
+
const to = args.to.trim();
|
|
709
|
+
if (!isLinkedTarget(to))
|
|
710
|
+
throw new Error(`"${to}" does not name a kind in another app: write "@", the app's address, "/" and the kind, like "@nick/house/house"`);
|
|
711
|
+
const kind = nameOf(ctx, args.kind);
|
|
712
|
+
const name = named(args.label, RELATION_NAME);
|
|
713
|
+
const id = `edge:${kind}.${name}`;
|
|
714
|
+
ctx.addNode({
|
|
715
|
+
id,
|
|
716
|
+
kind: "edge",
|
|
717
|
+
label: name,
|
|
718
|
+
cardinality: args.cardinality ?? "many",
|
|
719
|
+
appendOnly: false,
|
|
720
|
+
toAny: false,
|
|
721
|
+
toAnotherApp: [to],
|
|
722
|
+
...(args.description ? { description: args.description } : {}),
|
|
723
|
+
});
|
|
724
|
+
ctx.addEdge({ kind: "from-kind", from: id, to: args.kind });
|
|
725
|
+
},
|
|
726
|
+
});
|
|
686
727
|
export const removeEdge = act("remove-edge", {
|
|
687
728
|
title: "Remove the edge",
|
|
688
729
|
description: "Take a relation out of the declaration. Records that hold it need a migration.",
|
|
@@ -991,6 +1032,7 @@ export const STUDIO_MUTATIONS = [
|
|
|
991
1032
|
removeSight,
|
|
992
1033
|
removeLens,
|
|
993
1034
|
setLensHidden,
|
|
1035
|
+
addEdgeToAnotherApp,
|
|
994
1036
|
];
|
|
995
1037
|
/** The studio as an app: the meta-schema, its acts, and an agent seat that may propose any of them. */
|
|
996
1038
|
export function studioApp(name = "Studio") {
|