@lace-cloud/host 0.14.0 → 0.15.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/LICENSE +86 -13
- package/README.md +1 -1
- package/dist/index.cjs +139 -1022
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +55 -71
- package/dist/index.d.ts +55 -71
- package/dist/index.mjs +139 -1022
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -3710,473 +3710,6 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3710
3710
|
return message;
|
|
3711
3711
|
}
|
|
3712
3712
|
};
|
|
3713
|
-
function createBaseGraphLayout() {
|
|
3714
|
-
return { nodes: {}, groups: {} };
|
|
3715
|
-
}
|
|
3716
|
-
var GraphLayout = {
|
|
3717
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3718
|
-
globalThis.Object.entries(message.nodes).forEach(([key, value]) => {
|
|
3719
|
-
GraphLayout_NodesEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
3720
|
-
});
|
|
3721
|
-
globalThis.Object.entries(message.groups).forEach(([key, value]) => {
|
|
3722
|
-
GraphLayout_GroupsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3723
|
-
});
|
|
3724
|
-
return writer;
|
|
3725
|
-
},
|
|
3726
|
-
decode(input, length) {
|
|
3727
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3728
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3729
|
-
const message = createBaseGraphLayout();
|
|
3730
|
-
while (reader.pos < end) {
|
|
3731
|
-
const tag = reader.uint32();
|
|
3732
|
-
switch (tag >>> 3) {
|
|
3733
|
-
case 1: {
|
|
3734
|
-
if (tag !== 10) {
|
|
3735
|
-
break;
|
|
3736
|
-
}
|
|
3737
|
-
const entry1 = GraphLayout_NodesEntry.decode(reader, reader.uint32());
|
|
3738
|
-
if (entry1.value !== void 0) {
|
|
3739
|
-
message.nodes[entry1.key] = entry1.value;
|
|
3740
|
-
}
|
|
3741
|
-
continue;
|
|
3742
|
-
}
|
|
3743
|
-
case 2: {
|
|
3744
|
-
if (tag !== 18) {
|
|
3745
|
-
break;
|
|
3746
|
-
}
|
|
3747
|
-
const entry2 = GraphLayout_GroupsEntry.decode(reader, reader.uint32());
|
|
3748
|
-
if (entry2.value !== void 0) {
|
|
3749
|
-
message.groups[entry2.key] = entry2.value;
|
|
3750
|
-
}
|
|
3751
|
-
continue;
|
|
3752
|
-
}
|
|
3753
|
-
}
|
|
3754
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3755
|
-
break;
|
|
3756
|
-
}
|
|
3757
|
-
reader.skip(tag & 7);
|
|
3758
|
-
}
|
|
3759
|
-
return message;
|
|
3760
|
-
},
|
|
3761
|
-
fromJSON(object) {
|
|
3762
|
-
return {
|
|
3763
|
-
nodes: isObject2(object.nodes) ? globalThis.Object.entries(object.nodes).reduce(
|
|
3764
|
-
(acc, [key, value]) => {
|
|
3765
|
-
acc[key] = NodeLayout.fromJSON(value);
|
|
3766
|
-
return acc;
|
|
3767
|
-
},
|
|
3768
|
-
{}
|
|
3769
|
-
) : {},
|
|
3770
|
-
groups: isObject2(object.groups) ? globalThis.Object.entries(object.groups).reduce(
|
|
3771
|
-
(acc, [key, value]) => {
|
|
3772
|
-
acc[key] = NodeGroup.fromJSON(value);
|
|
3773
|
-
return acc;
|
|
3774
|
-
},
|
|
3775
|
-
{}
|
|
3776
|
-
) : {}
|
|
3777
|
-
};
|
|
3778
|
-
},
|
|
3779
|
-
toJSON(message) {
|
|
3780
|
-
const obj = {};
|
|
3781
|
-
if (message.nodes) {
|
|
3782
|
-
const entries = globalThis.Object.entries(message.nodes);
|
|
3783
|
-
if (entries.length > 0) {
|
|
3784
|
-
obj.nodes = {};
|
|
3785
|
-
entries.forEach(([k, v]) => {
|
|
3786
|
-
obj.nodes[k] = NodeLayout.toJSON(v);
|
|
3787
|
-
});
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
if (message.groups) {
|
|
3791
|
-
const entries = globalThis.Object.entries(message.groups);
|
|
3792
|
-
if (entries.length > 0) {
|
|
3793
|
-
obj.groups = {};
|
|
3794
|
-
entries.forEach(([k, v]) => {
|
|
3795
|
-
obj.groups[k] = NodeGroup.toJSON(v);
|
|
3796
|
-
});
|
|
3797
|
-
}
|
|
3798
|
-
}
|
|
3799
|
-
return obj;
|
|
3800
|
-
},
|
|
3801
|
-
create(base) {
|
|
3802
|
-
return GraphLayout.fromPartial(base ?? {});
|
|
3803
|
-
},
|
|
3804
|
-
fromPartial(object) {
|
|
3805
|
-
const message = createBaseGraphLayout();
|
|
3806
|
-
message.nodes = globalThis.Object.entries(object.nodes ?? {}).reduce(
|
|
3807
|
-
(acc, [key, value]) => {
|
|
3808
|
-
if (value !== void 0) {
|
|
3809
|
-
acc[key] = NodeLayout.fromPartial(value);
|
|
3810
|
-
}
|
|
3811
|
-
return acc;
|
|
3812
|
-
},
|
|
3813
|
-
{}
|
|
3814
|
-
);
|
|
3815
|
-
message.groups = globalThis.Object.entries(object.groups ?? {}).reduce(
|
|
3816
|
-
(acc, [key, value]) => {
|
|
3817
|
-
if (value !== void 0) {
|
|
3818
|
-
acc[key] = NodeGroup.fromPartial(value);
|
|
3819
|
-
}
|
|
3820
|
-
return acc;
|
|
3821
|
-
},
|
|
3822
|
-
{}
|
|
3823
|
-
);
|
|
3824
|
-
return message;
|
|
3825
|
-
}
|
|
3826
|
-
};
|
|
3827
|
-
function createBaseGraphLayout_NodesEntry() {
|
|
3828
|
-
return { key: "", value: void 0 };
|
|
3829
|
-
}
|
|
3830
|
-
var GraphLayout_NodesEntry = {
|
|
3831
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3832
|
-
if (message.key !== "") {
|
|
3833
|
-
writer.uint32(10).string(message.key);
|
|
3834
|
-
}
|
|
3835
|
-
if (message.value !== void 0) {
|
|
3836
|
-
NodeLayout.encode(message.value, writer.uint32(18).fork()).join();
|
|
3837
|
-
}
|
|
3838
|
-
return writer;
|
|
3839
|
-
},
|
|
3840
|
-
decode(input, length) {
|
|
3841
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3842
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3843
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3844
|
-
while (reader.pos < end) {
|
|
3845
|
-
const tag = reader.uint32();
|
|
3846
|
-
switch (tag >>> 3) {
|
|
3847
|
-
case 1: {
|
|
3848
|
-
if (tag !== 10) {
|
|
3849
|
-
break;
|
|
3850
|
-
}
|
|
3851
|
-
message.key = reader.string();
|
|
3852
|
-
continue;
|
|
3853
|
-
}
|
|
3854
|
-
case 2: {
|
|
3855
|
-
if (tag !== 18) {
|
|
3856
|
-
break;
|
|
3857
|
-
}
|
|
3858
|
-
message.value = NodeLayout.decode(reader, reader.uint32());
|
|
3859
|
-
continue;
|
|
3860
|
-
}
|
|
3861
|
-
}
|
|
3862
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3863
|
-
break;
|
|
3864
|
-
}
|
|
3865
|
-
reader.skip(tag & 7);
|
|
3866
|
-
}
|
|
3867
|
-
return message;
|
|
3868
|
-
},
|
|
3869
|
-
fromJSON(object) {
|
|
3870
|
-
return {
|
|
3871
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3872
|
-
value: isSet2(object.value) ? NodeLayout.fromJSON(object.value) : void 0
|
|
3873
|
-
};
|
|
3874
|
-
},
|
|
3875
|
-
toJSON(message) {
|
|
3876
|
-
const obj = {};
|
|
3877
|
-
if (message.key !== "") {
|
|
3878
|
-
obj.key = message.key;
|
|
3879
|
-
}
|
|
3880
|
-
if (message.value !== void 0) {
|
|
3881
|
-
obj.value = NodeLayout.toJSON(message.value);
|
|
3882
|
-
}
|
|
3883
|
-
return obj;
|
|
3884
|
-
},
|
|
3885
|
-
create(base) {
|
|
3886
|
-
return GraphLayout_NodesEntry.fromPartial(base ?? {});
|
|
3887
|
-
},
|
|
3888
|
-
fromPartial(object) {
|
|
3889
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3890
|
-
message.key = object.key ?? "";
|
|
3891
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeLayout.fromPartial(object.value) : void 0;
|
|
3892
|
-
return message;
|
|
3893
|
-
}
|
|
3894
|
-
};
|
|
3895
|
-
function createBaseGraphLayout_GroupsEntry() {
|
|
3896
|
-
return { key: "", value: void 0 };
|
|
3897
|
-
}
|
|
3898
|
-
var GraphLayout_GroupsEntry = {
|
|
3899
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3900
|
-
if (message.key !== "") {
|
|
3901
|
-
writer.uint32(10).string(message.key);
|
|
3902
|
-
}
|
|
3903
|
-
if (message.value !== void 0) {
|
|
3904
|
-
NodeGroup.encode(message.value, writer.uint32(18).fork()).join();
|
|
3905
|
-
}
|
|
3906
|
-
return writer;
|
|
3907
|
-
},
|
|
3908
|
-
decode(input, length) {
|
|
3909
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3910
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3911
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3912
|
-
while (reader.pos < end) {
|
|
3913
|
-
const tag = reader.uint32();
|
|
3914
|
-
switch (tag >>> 3) {
|
|
3915
|
-
case 1: {
|
|
3916
|
-
if (tag !== 10) {
|
|
3917
|
-
break;
|
|
3918
|
-
}
|
|
3919
|
-
message.key = reader.string();
|
|
3920
|
-
continue;
|
|
3921
|
-
}
|
|
3922
|
-
case 2: {
|
|
3923
|
-
if (tag !== 18) {
|
|
3924
|
-
break;
|
|
3925
|
-
}
|
|
3926
|
-
message.value = NodeGroup.decode(reader, reader.uint32());
|
|
3927
|
-
continue;
|
|
3928
|
-
}
|
|
3929
|
-
}
|
|
3930
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3931
|
-
break;
|
|
3932
|
-
}
|
|
3933
|
-
reader.skip(tag & 7);
|
|
3934
|
-
}
|
|
3935
|
-
return message;
|
|
3936
|
-
},
|
|
3937
|
-
fromJSON(object) {
|
|
3938
|
-
return {
|
|
3939
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3940
|
-
value: isSet2(object.value) ? NodeGroup.fromJSON(object.value) : void 0
|
|
3941
|
-
};
|
|
3942
|
-
},
|
|
3943
|
-
toJSON(message) {
|
|
3944
|
-
const obj = {};
|
|
3945
|
-
if (message.key !== "") {
|
|
3946
|
-
obj.key = message.key;
|
|
3947
|
-
}
|
|
3948
|
-
if (message.value !== void 0) {
|
|
3949
|
-
obj.value = NodeGroup.toJSON(message.value);
|
|
3950
|
-
}
|
|
3951
|
-
return obj;
|
|
3952
|
-
},
|
|
3953
|
-
create(base) {
|
|
3954
|
-
return GraphLayout_GroupsEntry.fromPartial(base ?? {});
|
|
3955
|
-
},
|
|
3956
|
-
fromPartial(object) {
|
|
3957
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3958
|
-
message.key = object.key ?? "";
|
|
3959
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeGroup.fromPartial(object.value) : void 0;
|
|
3960
|
-
return message;
|
|
3961
|
-
}
|
|
3962
|
-
};
|
|
3963
|
-
function createBaseNodeGroup() {
|
|
3964
|
-
return { id: "", label: "", node_ids: [], collapsed: false };
|
|
3965
|
-
}
|
|
3966
|
-
var NodeGroup = {
|
|
3967
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
3968
|
-
if (message.id !== "") {
|
|
3969
|
-
writer.uint32(10).string(message.id);
|
|
3970
|
-
}
|
|
3971
|
-
if (message.label !== "") {
|
|
3972
|
-
writer.uint32(18).string(message.label);
|
|
3973
|
-
}
|
|
3974
|
-
for (const v of message.node_ids) {
|
|
3975
|
-
writer.uint32(26).string(v);
|
|
3976
|
-
}
|
|
3977
|
-
if (message.collapsed !== false) {
|
|
3978
|
-
writer.uint32(32).bool(message.collapsed);
|
|
3979
|
-
}
|
|
3980
|
-
return writer;
|
|
3981
|
-
},
|
|
3982
|
-
decode(input, length) {
|
|
3983
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3984
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3985
|
-
const message = createBaseNodeGroup();
|
|
3986
|
-
while (reader.pos < end) {
|
|
3987
|
-
const tag = reader.uint32();
|
|
3988
|
-
switch (tag >>> 3) {
|
|
3989
|
-
case 1: {
|
|
3990
|
-
if (tag !== 10) {
|
|
3991
|
-
break;
|
|
3992
|
-
}
|
|
3993
|
-
message.id = reader.string();
|
|
3994
|
-
continue;
|
|
3995
|
-
}
|
|
3996
|
-
case 2: {
|
|
3997
|
-
if (tag !== 18) {
|
|
3998
|
-
break;
|
|
3999
|
-
}
|
|
4000
|
-
message.label = reader.string();
|
|
4001
|
-
continue;
|
|
4002
|
-
}
|
|
4003
|
-
case 3: {
|
|
4004
|
-
if (tag !== 26) {
|
|
4005
|
-
break;
|
|
4006
|
-
}
|
|
4007
|
-
message.node_ids.push(reader.string());
|
|
4008
|
-
continue;
|
|
4009
|
-
}
|
|
4010
|
-
case 4: {
|
|
4011
|
-
if (tag !== 32) {
|
|
4012
|
-
break;
|
|
4013
|
-
}
|
|
4014
|
-
message.collapsed = reader.bool();
|
|
4015
|
-
continue;
|
|
4016
|
-
}
|
|
4017
|
-
}
|
|
4018
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4019
|
-
break;
|
|
4020
|
-
}
|
|
4021
|
-
reader.skip(tag & 7);
|
|
4022
|
-
}
|
|
4023
|
-
return message;
|
|
4024
|
-
},
|
|
4025
|
-
fromJSON(object) {
|
|
4026
|
-
return {
|
|
4027
|
-
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
4028
|
-
label: isSet2(object.label) ? globalThis.String(object.label) : "",
|
|
4029
|
-
node_ids: globalThis.Array.isArray(object?.nodeIds) ? object.nodeIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.node_ids) ? object.node_ids.map((e) => globalThis.String(e)) : [],
|
|
4030
|
-
collapsed: isSet2(object.collapsed) ? globalThis.Boolean(object.collapsed) : false
|
|
4031
|
-
};
|
|
4032
|
-
},
|
|
4033
|
-
toJSON(message) {
|
|
4034
|
-
const obj = {};
|
|
4035
|
-
if (message.id !== "") {
|
|
4036
|
-
obj.id = message.id;
|
|
4037
|
-
}
|
|
4038
|
-
if (message.label !== "") {
|
|
4039
|
-
obj.label = message.label;
|
|
4040
|
-
}
|
|
4041
|
-
if (message.node_ids?.length) {
|
|
4042
|
-
obj.nodeIds = message.node_ids;
|
|
4043
|
-
}
|
|
4044
|
-
if (message.collapsed !== false) {
|
|
4045
|
-
obj.collapsed = message.collapsed;
|
|
4046
|
-
}
|
|
4047
|
-
return obj;
|
|
4048
|
-
},
|
|
4049
|
-
create(base) {
|
|
4050
|
-
return NodeGroup.fromPartial(base ?? {});
|
|
4051
|
-
},
|
|
4052
|
-
fromPartial(object) {
|
|
4053
|
-
const message = createBaseNodeGroup();
|
|
4054
|
-
message.id = object.id ?? "";
|
|
4055
|
-
message.label = object.label ?? "";
|
|
4056
|
-
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
4057
|
-
message.collapsed = object.collapsed ?? false;
|
|
4058
|
-
return message;
|
|
4059
|
-
}
|
|
4060
|
-
};
|
|
4061
|
-
function createBaseNodeLayout() {
|
|
4062
|
-
return { position: void 0 };
|
|
4063
|
-
}
|
|
4064
|
-
var NodeLayout = {
|
|
4065
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
4066
|
-
if (message.position !== void 0) {
|
|
4067
|
-
Position.encode(message.position, writer.uint32(10).fork()).join();
|
|
4068
|
-
}
|
|
4069
|
-
return writer;
|
|
4070
|
-
},
|
|
4071
|
-
decode(input, length) {
|
|
4072
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
4073
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4074
|
-
const message = createBaseNodeLayout();
|
|
4075
|
-
while (reader.pos < end) {
|
|
4076
|
-
const tag = reader.uint32();
|
|
4077
|
-
switch (tag >>> 3) {
|
|
4078
|
-
case 1: {
|
|
4079
|
-
if (tag !== 10) {
|
|
4080
|
-
break;
|
|
4081
|
-
}
|
|
4082
|
-
message.position = Position.decode(reader, reader.uint32());
|
|
4083
|
-
continue;
|
|
4084
|
-
}
|
|
4085
|
-
}
|
|
4086
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4087
|
-
break;
|
|
4088
|
-
}
|
|
4089
|
-
reader.skip(tag & 7);
|
|
4090
|
-
}
|
|
4091
|
-
return message;
|
|
4092
|
-
},
|
|
4093
|
-
fromJSON(object) {
|
|
4094
|
-
return { position: isSet2(object.position) ? Position.fromJSON(object.position) : void 0 };
|
|
4095
|
-
},
|
|
4096
|
-
toJSON(message) {
|
|
4097
|
-
const obj = {};
|
|
4098
|
-
if (message.position !== void 0) {
|
|
4099
|
-
obj.position = Position.toJSON(message.position);
|
|
4100
|
-
}
|
|
4101
|
-
return obj;
|
|
4102
|
-
},
|
|
4103
|
-
create(base) {
|
|
4104
|
-
return NodeLayout.fromPartial(base ?? {});
|
|
4105
|
-
},
|
|
4106
|
-
fromPartial(object) {
|
|
4107
|
-
const message = createBaseNodeLayout();
|
|
4108
|
-
message.position = object.position !== void 0 && object.position !== null ? Position.fromPartial(object.position) : void 0;
|
|
4109
|
-
return message;
|
|
4110
|
-
}
|
|
4111
|
-
};
|
|
4112
|
-
function createBasePosition() {
|
|
4113
|
-
return { x: 0, y: 0 };
|
|
4114
|
-
}
|
|
4115
|
-
var Position = {
|
|
4116
|
-
encode(message, writer = new BinaryWriter3()) {
|
|
4117
|
-
if (message.x !== 0) {
|
|
4118
|
-
writer.uint32(9).double(message.x);
|
|
4119
|
-
}
|
|
4120
|
-
if (message.y !== 0) {
|
|
4121
|
-
writer.uint32(17).double(message.y);
|
|
4122
|
-
}
|
|
4123
|
-
return writer;
|
|
4124
|
-
},
|
|
4125
|
-
decode(input, length) {
|
|
4126
|
-
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
4127
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4128
|
-
const message = createBasePosition();
|
|
4129
|
-
while (reader.pos < end) {
|
|
4130
|
-
const tag = reader.uint32();
|
|
4131
|
-
switch (tag >>> 3) {
|
|
4132
|
-
case 1: {
|
|
4133
|
-
if (tag !== 9) {
|
|
4134
|
-
break;
|
|
4135
|
-
}
|
|
4136
|
-
message.x = reader.double();
|
|
4137
|
-
continue;
|
|
4138
|
-
}
|
|
4139
|
-
case 2: {
|
|
4140
|
-
if (tag !== 17) {
|
|
4141
|
-
break;
|
|
4142
|
-
}
|
|
4143
|
-
message.y = reader.double();
|
|
4144
|
-
continue;
|
|
4145
|
-
}
|
|
4146
|
-
}
|
|
4147
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4148
|
-
break;
|
|
4149
|
-
}
|
|
4150
|
-
reader.skip(tag & 7);
|
|
4151
|
-
}
|
|
4152
|
-
return message;
|
|
4153
|
-
},
|
|
4154
|
-
fromJSON(object) {
|
|
4155
|
-
return {
|
|
4156
|
-
x: isSet2(object.x) ? globalThis.Number(object.x) : 0,
|
|
4157
|
-
y: isSet2(object.y) ? globalThis.Number(object.y) : 0
|
|
4158
|
-
};
|
|
4159
|
-
},
|
|
4160
|
-
toJSON(message) {
|
|
4161
|
-
const obj = {};
|
|
4162
|
-
if (message.x !== 0) {
|
|
4163
|
-
obj.x = message.x;
|
|
4164
|
-
}
|
|
4165
|
-
if (message.y !== 0) {
|
|
4166
|
-
obj.y = message.y;
|
|
4167
|
-
}
|
|
4168
|
-
return obj;
|
|
4169
|
-
},
|
|
4170
|
-
create(base) {
|
|
4171
|
-
return Position.fromPartial(base ?? {});
|
|
4172
|
-
},
|
|
4173
|
-
fromPartial(object) {
|
|
4174
|
-
const message = createBasePosition();
|
|
4175
|
-
message.x = object.x ?? 0;
|
|
4176
|
-
message.y = object.y ?? 0;
|
|
4177
|
-
return message;
|
|
4178
|
-
}
|
|
4179
|
-
};
|
|
4180
3713
|
function createBasePolicyResolution() {
|
|
4181
3714
|
return {
|
|
4182
3715
|
mode: "",
|
|
@@ -8337,299 +7870,25 @@ var DeleteInstanceAction = {
|
|
|
8337
7870
|
return DeleteInstanceAction.fromPartial(base ?? {});
|
|
8338
7871
|
},
|
|
8339
7872
|
fromPartial(object) {
|
|
8340
|
-
const message = createBaseDeleteInstanceAction();
|
|
8341
|
-
message.instance_id = object.instance_id ?? "";
|
|
8342
|
-
return message;
|
|
8343
|
-
}
|
|
8344
|
-
};
|
|
8345
|
-
function createBaseCopyInstancesAction() {
|
|
8346
|
-
return { instance_ids: [] };
|
|
8347
|
-
}
|
|
8348
|
-
var CopyInstancesAction = {
|
|
8349
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
8350
|
-
for (const v of message.instance_ids) {
|
|
8351
|
-
writer.uint32(10).string(v);
|
|
8352
|
-
}
|
|
8353
|
-
return writer;
|
|
8354
|
-
},
|
|
8355
|
-
decode(input, length) {
|
|
8356
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8357
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8358
|
-
const message = createBaseCopyInstancesAction();
|
|
8359
|
-
while (reader.pos < end) {
|
|
8360
|
-
const tag = reader.uint32();
|
|
8361
|
-
switch (tag >>> 3) {
|
|
8362
|
-
case 1: {
|
|
8363
|
-
if (tag !== 10) {
|
|
8364
|
-
break;
|
|
8365
|
-
}
|
|
8366
|
-
message.instance_ids.push(reader.string());
|
|
8367
|
-
continue;
|
|
8368
|
-
}
|
|
8369
|
-
}
|
|
8370
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8371
|
-
break;
|
|
8372
|
-
}
|
|
8373
|
-
reader.skip(tag & 7);
|
|
8374
|
-
}
|
|
8375
|
-
return message;
|
|
8376
|
-
},
|
|
8377
|
-
fromJSON(object) {
|
|
8378
|
-
return {
|
|
8379
|
-
instance_ids: globalThis.Array.isArray(object?.instanceIds) ? object.instanceIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.instance_ids) ? object.instance_ids.map((e) => globalThis.String(e)) : []
|
|
8380
|
-
};
|
|
8381
|
-
},
|
|
8382
|
-
toJSON(message) {
|
|
8383
|
-
const obj = {};
|
|
8384
|
-
if (message.instance_ids?.length) {
|
|
8385
|
-
obj.instanceIds = message.instance_ids;
|
|
8386
|
-
}
|
|
8387
|
-
return obj;
|
|
8388
|
-
},
|
|
8389
|
-
create(base) {
|
|
8390
|
-
return CopyInstancesAction.fromPartial(base ?? {});
|
|
8391
|
-
},
|
|
8392
|
-
fromPartial(object) {
|
|
8393
|
-
const message = createBaseCopyInstancesAction();
|
|
8394
|
-
message.instance_ids = object.instance_ids?.map((e) => e) || [];
|
|
8395
|
-
return message;
|
|
8396
|
-
}
|
|
8397
|
-
};
|
|
8398
|
-
function createBaseSyncLayoutAction() {
|
|
8399
|
-
return { positions: {} };
|
|
8400
|
-
}
|
|
8401
|
-
var SyncLayoutAction = {
|
|
8402
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
8403
|
-
globalThis.Object.entries(message.positions).forEach(([key, value]) => {
|
|
8404
|
-
SyncLayoutAction_PositionsEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
8405
|
-
});
|
|
8406
|
-
return writer;
|
|
8407
|
-
},
|
|
8408
|
-
decode(input, length) {
|
|
8409
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8410
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8411
|
-
const message = createBaseSyncLayoutAction();
|
|
8412
|
-
while (reader.pos < end) {
|
|
8413
|
-
const tag = reader.uint32();
|
|
8414
|
-
switch (tag >>> 3) {
|
|
8415
|
-
case 1: {
|
|
8416
|
-
if (tag !== 10) {
|
|
8417
|
-
break;
|
|
8418
|
-
}
|
|
8419
|
-
const entry1 = SyncLayoutAction_PositionsEntry.decode(reader, reader.uint32());
|
|
8420
|
-
if (entry1.value !== void 0) {
|
|
8421
|
-
message.positions[entry1.key] = entry1.value;
|
|
8422
|
-
}
|
|
8423
|
-
continue;
|
|
8424
|
-
}
|
|
8425
|
-
}
|
|
8426
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8427
|
-
break;
|
|
8428
|
-
}
|
|
8429
|
-
reader.skip(tag & 7);
|
|
8430
|
-
}
|
|
8431
|
-
return message;
|
|
8432
|
-
},
|
|
8433
|
-
fromJSON(object) {
|
|
8434
|
-
return {
|
|
8435
|
-
positions: isObject3(object.positions) ? globalThis.Object.entries(object.positions).reduce(
|
|
8436
|
-
(acc, [key, value]) => {
|
|
8437
|
-
acc[key] = Position2.fromJSON(value);
|
|
8438
|
-
return acc;
|
|
8439
|
-
},
|
|
8440
|
-
{}
|
|
8441
|
-
) : {}
|
|
8442
|
-
};
|
|
8443
|
-
},
|
|
8444
|
-
toJSON(message) {
|
|
8445
|
-
const obj = {};
|
|
8446
|
-
if (message.positions) {
|
|
8447
|
-
const entries = globalThis.Object.entries(message.positions);
|
|
8448
|
-
if (entries.length > 0) {
|
|
8449
|
-
obj.positions = {};
|
|
8450
|
-
entries.forEach(([k, v]) => {
|
|
8451
|
-
obj.positions[k] = Position2.toJSON(v);
|
|
8452
|
-
});
|
|
8453
|
-
}
|
|
8454
|
-
}
|
|
8455
|
-
return obj;
|
|
8456
|
-
},
|
|
8457
|
-
create(base) {
|
|
8458
|
-
return SyncLayoutAction.fromPartial(base ?? {});
|
|
8459
|
-
},
|
|
8460
|
-
fromPartial(object) {
|
|
8461
|
-
const message = createBaseSyncLayoutAction();
|
|
8462
|
-
message.positions = globalThis.Object.entries(object.positions ?? {}).reduce(
|
|
8463
|
-
(acc, [key, value]) => {
|
|
8464
|
-
if (value !== void 0) {
|
|
8465
|
-
acc[key] = Position2.fromPartial(value);
|
|
8466
|
-
}
|
|
8467
|
-
return acc;
|
|
8468
|
-
},
|
|
8469
|
-
{}
|
|
8470
|
-
);
|
|
8471
|
-
return message;
|
|
8472
|
-
}
|
|
8473
|
-
};
|
|
8474
|
-
function createBaseSyncLayoutAction_PositionsEntry() {
|
|
8475
|
-
return { key: "", value: void 0 };
|
|
8476
|
-
}
|
|
8477
|
-
var SyncLayoutAction_PositionsEntry = {
|
|
8478
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
8479
|
-
if (message.key !== "") {
|
|
8480
|
-
writer.uint32(10).string(message.key);
|
|
8481
|
-
}
|
|
8482
|
-
if (message.value !== void 0) {
|
|
8483
|
-
Position2.encode(message.value, writer.uint32(18).fork()).join();
|
|
8484
|
-
}
|
|
8485
|
-
return writer;
|
|
8486
|
-
},
|
|
8487
|
-
decode(input, length) {
|
|
8488
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8489
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8490
|
-
const message = createBaseSyncLayoutAction_PositionsEntry();
|
|
8491
|
-
while (reader.pos < end) {
|
|
8492
|
-
const tag = reader.uint32();
|
|
8493
|
-
switch (tag >>> 3) {
|
|
8494
|
-
case 1: {
|
|
8495
|
-
if (tag !== 10) {
|
|
8496
|
-
break;
|
|
8497
|
-
}
|
|
8498
|
-
message.key = reader.string();
|
|
8499
|
-
continue;
|
|
8500
|
-
}
|
|
8501
|
-
case 2: {
|
|
8502
|
-
if (tag !== 18) {
|
|
8503
|
-
break;
|
|
8504
|
-
}
|
|
8505
|
-
message.value = Position2.decode(reader, reader.uint32());
|
|
8506
|
-
continue;
|
|
8507
|
-
}
|
|
8508
|
-
}
|
|
8509
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8510
|
-
break;
|
|
8511
|
-
}
|
|
8512
|
-
reader.skip(tag & 7);
|
|
8513
|
-
}
|
|
8514
|
-
return message;
|
|
8515
|
-
},
|
|
8516
|
-
fromJSON(object) {
|
|
8517
|
-
return {
|
|
8518
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
8519
|
-
value: isSet3(object.value) ? Position2.fromJSON(object.value) : void 0
|
|
8520
|
-
};
|
|
8521
|
-
},
|
|
8522
|
-
toJSON(message) {
|
|
8523
|
-
const obj = {};
|
|
8524
|
-
if (message.key !== "") {
|
|
8525
|
-
obj.key = message.key;
|
|
8526
|
-
}
|
|
8527
|
-
if (message.value !== void 0) {
|
|
8528
|
-
obj.value = Position2.toJSON(message.value);
|
|
8529
|
-
}
|
|
8530
|
-
return obj;
|
|
8531
|
-
},
|
|
8532
|
-
create(base) {
|
|
8533
|
-
return SyncLayoutAction_PositionsEntry.fromPartial(base ?? {});
|
|
8534
|
-
},
|
|
8535
|
-
fromPartial(object) {
|
|
8536
|
-
const message = createBaseSyncLayoutAction_PositionsEntry();
|
|
8537
|
-
message.key = object.key ?? "";
|
|
8538
|
-
message.value = object.value !== void 0 && object.value !== null ? Position2.fromPartial(object.value) : void 0;
|
|
8539
|
-
return message;
|
|
8540
|
-
}
|
|
8541
|
-
};
|
|
8542
|
-
function createBaseCreateGroupAction() {
|
|
8543
|
-
return { label: "", node_ids: [] };
|
|
8544
|
-
}
|
|
8545
|
-
var CreateGroupAction = {
|
|
8546
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
8547
|
-
if (message.label !== "") {
|
|
8548
|
-
writer.uint32(10).string(message.label);
|
|
8549
|
-
}
|
|
8550
|
-
for (const v of message.node_ids) {
|
|
8551
|
-
writer.uint32(18).string(v);
|
|
8552
|
-
}
|
|
8553
|
-
return writer;
|
|
8554
|
-
},
|
|
8555
|
-
decode(input, length) {
|
|
8556
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8557
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8558
|
-
const message = createBaseCreateGroupAction();
|
|
8559
|
-
while (reader.pos < end) {
|
|
8560
|
-
const tag = reader.uint32();
|
|
8561
|
-
switch (tag >>> 3) {
|
|
8562
|
-
case 1: {
|
|
8563
|
-
if (tag !== 10) {
|
|
8564
|
-
break;
|
|
8565
|
-
}
|
|
8566
|
-
message.label = reader.string();
|
|
8567
|
-
continue;
|
|
8568
|
-
}
|
|
8569
|
-
case 2: {
|
|
8570
|
-
if (tag !== 18) {
|
|
8571
|
-
break;
|
|
8572
|
-
}
|
|
8573
|
-
message.node_ids.push(reader.string());
|
|
8574
|
-
continue;
|
|
8575
|
-
}
|
|
8576
|
-
}
|
|
8577
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8578
|
-
break;
|
|
8579
|
-
}
|
|
8580
|
-
reader.skip(tag & 7);
|
|
8581
|
-
}
|
|
8582
|
-
return message;
|
|
8583
|
-
},
|
|
8584
|
-
fromJSON(object) {
|
|
8585
|
-
return {
|
|
8586
|
-
label: isSet3(object.label) ? globalThis.String(object.label) : "",
|
|
8587
|
-
node_ids: globalThis.Array.isArray(object?.nodeIds) ? object.nodeIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.node_ids) ? object.node_ids.map((e) => globalThis.String(e)) : []
|
|
8588
|
-
};
|
|
8589
|
-
},
|
|
8590
|
-
toJSON(message) {
|
|
8591
|
-
const obj = {};
|
|
8592
|
-
if (message.label !== "") {
|
|
8593
|
-
obj.label = message.label;
|
|
8594
|
-
}
|
|
8595
|
-
if (message.node_ids?.length) {
|
|
8596
|
-
obj.nodeIds = message.node_ids;
|
|
8597
|
-
}
|
|
8598
|
-
return obj;
|
|
8599
|
-
},
|
|
8600
|
-
create(base) {
|
|
8601
|
-
return CreateGroupAction.fromPartial(base ?? {});
|
|
8602
|
-
},
|
|
8603
|
-
fromPartial(object) {
|
|
8604
|
-
const message = createBaseCreateGroupAction();
|
|
8605
|
-
message.label = object.label ?? "";
|
|
8606
|
-
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
7873
|
+
const message = createBaseDeleteInstanceAction();
|
|
7874
|
+
message.instance_id = object.instance_id ?? "";
|
|
8607
7875
|
return message;
|
|
8608
7876
|
}
|
|
8609
7877
|
};
|
|
8610
|
-
function
|
|
8611
|
-
return {
|
|
7878
|
+
function createBaseCopyInstancesAction() {
|
|
7879
|
+
return { instance_ids: [] };
|
|
8612
7880
|
}
|
|
8613
|
-
var
|
|
7881
|
+
var CopyInstancesAction = {
|
|
8614
7882
|
encode(message, writer = new BinaryWriter4()) {
|
|
8615
|
-
|
|
8616
|
-
writer.uint32(10).string(
|
|
8617
|
-
}
|
|
8618
|
-
if (message.label !== void 0) {
|
|
8619
|
-
writer.uint32(18).string(message.label);
|
|
8620
|
-
}
|
|
8621
|
-
if (message.collapsed !== void 0) {
|
|
8622
|
-
writer.uint32(24).bool(message.collapsed);
|
|
8623
|
-
}
|
|
8624
|
-
if (message.node_ids !== void 0) {
|
|
8625
|
-
UpdateGroupNodeIds.encode(message.node_ids, writer.uint32(34).fork()).join();
|
|
7883
|
+
for (const v of message.instance_ids) {
|
|
7884
|
+
writer.uint32(10).string(v);
|
|
8626
7885
|
}
|
|
8627
7886
|
return writer;
|
|
8628
7887
|
},
|
|
8629
7888
|
decode(input, length) {
|
|
8630
7889
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8631
7890
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8632
|
-
const message =
|
|
7891
|
+
const message = createBaseCopyInstancesAction();
|
|
8633
7892
|
while (reader.pos < end) {
|
|
8634
7893
|
const tag = reader.uint32();
|
|
8635
7894
|
switch (tag >>> 3) {
|
|
@@ -8637,28 +7896,7 @@ var UpdateGroupAction = {
|
|
|
8637
7896
|
if (tag !== 10) {
|
|
8638
7897
|
break;
|
|
8639
7898
|
}
|
|
8640
|
-
message.
|
|
8641
|
-
continue;
|
|
8642
|
-
}
|
|
8643
|
-
case 2: {
|
|
8644
|
-
if (tag !== 18) {
|
|
8645
|
-
break;
|
|
8646
|
-
}
|
|
8647
|
-
message.label = reader.string();
|
|
8648
|
-
continue;
|
|
8649
|
-
}
|
|
8650
|
-
case 3: {
|
|
8651
|
-
if (tag !== 24) {
|
|
8652
|
-
break;
|
|
8653
|
-
}
|
|
8654
|
-
message.collapsed = reader.bool();
|
|
8655
|
-
continue;
|
|
8656
|
-
}
|
|
8657
|
-
case 4: {
|
|
8658
|
-
if (tag !== 34) {
|
|
8659
|
-
break;
|
|
8660
|
-
}
|
|
8661
|
-
message.node_ids = UpdateGroupNodeIds.decode(reader, reader.uint32());
|
|
7899
|
+
message.instance_ids.push(reader.string());
|
|
8662
7900
|
continue;
|
|
8663
7901
|
}
|
|
8664
7902
|
}
|
|
@@ -8671,59 +7909,44 @@ var UpdateGroupAction = {
|
|
|
8671
7909
|
},
|
|
8672
7910
|
fromJSON(object) {
|
|
8673
7911
|
return {
|
|
8674
|
-
|
|
8675
|
-
label: isSet3(object.label) ? globalThis.String(object.label) : void 0,
|
|
8676
|
-
collapsed: isSet3(object.collapsed) ? globalThis.Boolean(object.collapsed) : void 0,
|
|
8677
|
-
node_ids: isSet3(object.nodeIds) ? UpdateGroupNodeIds.fromJSON(object.nodeIds) : isSet3(object.node_ids) ? UpdateGroupNodeIds.fromJSON(object.node_ids) : void 0
|
|
7912
|
+
instance_ids: globalThis.Array.isArray(object?.instanceIds) ? object.instanceIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.instance_ids) ? object.instance_ids.map((e) => globalThis.String(e)) : []
|
|
8678
7913
|
};
|
|
8679
7914
|
},
|
|
8680
7915
|
toJSON(message) {
|
|
8681
7916
|
const obj = {};
|
|
8682
|
-
if (message.
|
|
8683
|
-
obj.
|
|
8684
|
-
}
|
|
8685
|
-
if (message.label !== void 0) {
|
|
8686
|
-
obj.label = message.label;
|
|
8687
|
-
}
|
|
8688
|
-
if (message.collapsed !== void 0) {
|
|
8689
|
-
obj.collapsed = message.collapsed;
|
|
8690
|
-
}
|
|
8691
|
-
if (message.node_ids !== void 0) {
|
|
8692
|
-
obj.nodeIds = UpdateGroupNodeIds.toJSON(message.node_ids);
|
|
7917
|
+
if (message.instance_ids?.length) {
|
|
7918
|
+
obj.instanceIds = message.instance_ids;
|
|
8693
7919
|
}
|
|
8694
7920
|
return obj;
|
|
8695
7921
|
},
|
|
8696
7922
|
create(base) {
|
|
8697
|
-
return
|
|
7923
|
+
return CopyInstancesAction.fromPartial(base ?? {});
|
|
8698
7924
|
},
|
|
8699
7925
|
fromPartial(object) {
|
|
8700
|
-
const message =
|
|
8701
|
-
message.
|
|
8702
|
-
message.label = object.label ?? void 0;
|
|
8703
|
-
message.collapsed = object.collapsed ?? void 0;
|
|
8704
|
-
message.node_ids = object.node_ids !== void 0 && object.node_ids !== null ? UpdateGroupNodeIds.fromPartial(object.node_ids) : void 0;
|
|
7926
|
+
const message = createBaseCopyInstancesAction();
|
|
7927
|
+
message.instance_ids = object.instance_ids?.map((e) => e) || [];
|
|
8705
7928
|
return message;
|
|
8706
7929
|
}
|
|
8707
7930
|
};
|
|
8708
|
-
function
|
|
7931
|
+
function createBaseCreateGroupAction() {
|
|
8709
7932
|
return { node_ids: [] };
|
|
8710
7933
|
}
|
|
8711
|
-
var
|
|
7934
|
+
var CreateGroupAction = {
|
|
8712
7935
|
encode(message, writer = new BinaryWriter4()) {
|
|
8713
7936
|
for (const v of message.node_ids) {
|
|
8714
|
-
writer.uint32(
|
|
7937
|
+
writer.uint32(18).string(v);
|
|
8715
7938
|
}
|
|
8716
7939
|
return writer;
|
|
8717
7940
|
},
|
|
8718
7941
|
decode(input, length) {
|
|
8719
7942
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8720
7943
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8721
|
-
const message =
|
|
7944
|
+
const message = createBaseCreateGroupAction();
|
|
8722
7945
|
while (reader.pos < end) {
|
|
8723
7946
|
const tag = reader.uint32();
|
|
8724
7947
|
switch (tag >>> 3) {
|
|
8725
|
-
case
|
|
8726
|
-
if (tag !==
|
|
7948
|
+
case 2: {
|
|
7949
|
+
if (tag !== 18) {
|
|
8727
7950
|
break;
|
|
8728
7951
|
}
|
|
8729
7952
|
message.node_ids.push(reader.string());
|
|
@@ -8750,18 +7973,18 @@ var UpdateGroupNodeIds = {
|
|
|
8750
7973
|
return obj;
|
|
8751
7974
|
},
|
|
8752
7975
|
create(base) {
|
|
8753
|
-
return
|
|
7976
|
+
return CreateGroupAction.fromPartial(base ?? {});
|
|
8754
7977
|
},
|
|
8755
7978
|
fromPartial(object) {
|
|
8756
|
-
const message =
|
|
7979
|
+
const message = createBaseCreateGroupAction();
|
|
8757
7980
|
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
8758
7981
|
return message;
|
|
8759
7982
|
}
|
|
8760
7983
|
};
|
|
8761
|
-
function
|
|
7984
|
+
function createBaseUngroupAction() {
|
|
8762
7985
|
return { group_id: "" };
|
|
8763
7986
|
}
|
|
8764
|
-
var
|
|
7987
|
+
var UngroupAction = {
|
|
8765
7988
|
encode(message, writer = new BinaryWriter4()) {
|
|
8766
7989
|
if (message.group_id !== "") {
|
|
8767
7990
|
writer.uint32(10).string(message.group_id);
|
|
@@ -8771,7 +7994,7 @@ var DeleteGroupAction = {
|
|
|
8771
7994
|
decode(input, length) {
|
|
8772
7995
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
8773
7996
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8774
|
-
const message =
|
|
7997
|
+
const message = createBaseUngroupAction();
|
|
8775
7998
|
while (reader.pos < end) {
|
|
8776
7999
|
const tag = reader.uint32();
|
|
8777
8000
|
switch (tag >>> 3) {
|
|
@@ -8803,10 +8026,10 @@ var DeleteGroupAction = {
|
|
|
8803
8026
|
return obj;
|
|
8804
8027
|
},
|
|
8805
8028
|
create(base) {
|
|
8806
|
-
return
|
|
8029
|
+
return UngroupAction.fromPartial(base ?? {});
|
|
8807
8030
|
},
|
|
8808
8031
|
fromPartial(object) {
|
|
8809
|
-
const message =
|
|
8032
|
+
const message = createBaseUngroupAction();
|
|
8810
8033
|
message.group_id = object.group_id ?? "";
|
|
8811
8034
|
return message;
|
|
8812
8035
|
}
|
|
@@ -9879,7 +9102,7 @@ var RedoAction = {
|
|
|
9879
9102
|
}
|
|
9880
9103
|
};
|
|
9881
9104
|
function createBasePlaceModuleAction() {
|
|
9882
|
-
return { name: "", system: "", version: "", organization: ""
|
|
9105
|
+
return { name: "", system: "", version: "", organization: "" };
|
|
9883
9106
|
}
|
|
9884
9107
|
var PlaceModuleAction = {
|
|
9885
9108
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -9895,9 +9118,6 @@ var PlaceModuleAction = {
|
|
|
9895
9118
|
if (message.organization !== "") {
|
|
9896
9119
|
writer.uint32(34).string(message.organization);
|
|
9897
9120
|
}
|
|
9898
|
-
if (message.position !== void 0) {
|
|
9899
|
-
Position2.encode(message.position, writer.uint32(42).fork()).join();
|
|
9900
|
-
}
|
|
9901
9121
|
return writer;
|
|
9902
9122
|
},
|
|
9903
9123
|
decode(input, length) {
|
|
@@ -9935,13 +9155,6 @@ var PlaceModuleAction = {
|
|
|
9935
9155
|
message.organization = reader.string();
|
|
9936
9156
|
continue;
|
|
9937
9157
|
}
|
|
9938
|
-
case 5: {
|
|
9939
|
-
if (tag !== 42) {
|
|
9940
|
-
break;
|
|
9941
|
-
}
|
|
9942
|
-
message.position = Position2.decode(reader, reader.uint32());
|
|
9943
|
-
continue;
|
|
9944
|
-
}
|
|
9945
9158
|
}
|
|
9946
9159
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9947
9160
|
break;
|
|
@@ -9955,8 +9168,7 @@ var PlaceModuleAction = {
|
|
|
9955
9168
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9956
9169
|
system: isSet3(object.system) ? globalThis.String(object.system) : "",
|
|
9957
9170
|
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
9958
|
-
organization: isSet3(object.organization) ? globalThis.String(object.organization) : ""
|
|
9959
|
-
position: isSet3(object.position) ? Position2.fromJSON(object.position) : void 0
|
|
9171
|
+
organization: isSet3(object.organization) ? globalThis.String(object.organization) : ""
|
|
9960
9172
|
};
|
|
9961
9173
|
},
|
|
9962
9174
|
toJSON(message) {
|
|
@@ -9973,9 +9185,6 @@ var PlaceModuleAction = {
|
|
|
9973
9185
|
if (message.organization !== "") {
|
|
9974
9186
|
obj.organization = message.organization;
|
|
9975
9187
|
}
|
|
9976
|
-
if (message.position !== void 0) {
|
|
9977
|
-
obj.position = Position2.toJSON(message.position);
|
|
9978
|
-
}
|
|
9979
9188
|
return obj;
|
|
9980
9189
|
},
|
|
9981
9190
|
create(base) {
|
|
@@ -9987,7 +9196,6 @@ var PlaceModuleAction = {
|
|
|
9987
9196
|
message.system = object.system ?? "";
|
|
9988
9197
|
message.version = object.version ?? "";
|
|
9989
9198
|
message.organization = object.organization ?? "";
|
|
9990
|
-
message.position = object.position !== void 0 && object.position !== null ? Position2.fromPartial(object.position) : void 0;
|
|
9991
9199
|
return message;
|
|
9992
9200
|
}
|
|
9993
9201
|
};
|
|
@@ -10001,10 +9209,7 @@ function createBaseAction() {
|
|
|
10001
9209
|
rename_instance: void 0,
|
|
10002
9210
|
delete_instance: void 0,
|
|
10003
9211
|
copy_instances: void 0,
|
|
10004
|
-
sync_layout: void 0,
|
|
10005
9212
|
create_group: void 0,
|
|
10006
|
-
update_group: void 0,
|
|
10007
|
-
delete_group: void 0,
|
|
10008
9213
|
set_variables: void 0,
|
|
10009
9214
|
set_exports: void 0,
|
|
10010
9215
|
set_terraform: void 0,
|
|
@@ -10015,7 +9220,8 @@ function createBaseAction() {
|
|
|
10015
9220
|
undo: void 0,
|
|
10016
9221
|
redo: void 0,
|
|
10017
9222
|
place_module: void 0,
|
|
10018
|
-
set_use_providers: void 0
|
|
9223
|
+
set_use_providers: void 0,
|
|
9224
|
+
ungroup: void 0
|
|
10019
9225
|
};
|
|
10020
9226
|
}
|
|
10021
9227
|
var Action = {
|
|
@@ -10044,18 +9250,9 @@ var Action = {
|
|
|
10044
9250
|
if (message.copy_instances !== void 0) {
|
|
10045
9251
|
CopyInstancesAction.encode(message.copy_instances, writer.uint32(66).fork()).join();
|
|
10046
9252
|
}
|
|
10047
|
-
if (message.sync_layout !== void 0) {
|
|
10048
|
-
SyncLayoutAction.encode(message.sync_layout, writer.uint32(74).fork()).join();
|
|
10049
|
-
}
|
|
10050
9253
|
if (message.create_group !== void 0) {
|
|
10051
9254
|
CreateGroupAction.encode(message.create_group, writer.uint32(82).fork()).join();
|
|
10052
9255
|
}
|
|
10053
|
-
if (message.update_group !== void 0) {
|
|
10054
|
-
UpdateGroupAction.encode(message.update_group, writer.uint32(90).fork()).join();
|
|
10055
|
-
}
|
|
10056
|
-
if (message.delete_group !== void 0) {
|
|
10057
|
-
DeleteGroupAction.encode(message.delete_group, writer.uint32(98).fork()).join();
|
|
10058
|
-
}
|
|
10059
9256
|
if (message.set_variables !== void 0) {
|
|
10060
9257
|
SetVariablesAction.encode(message.set_variables, writer.uint32(106).fork()).join();
|
|
10061
9258
|
}
|
|
@@ -10089,6 +9286,9 @@ var Action = {
|
|
|
10089
9286
|
if (message.set_use_providers !== void 0) {
|
|
10090
9287
|
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
10091
9288
|
}
|
|
9289
|
+
if (message.ungroup !== void 0) {
|
|
9290
|
+
UngroupAction.encode(message.ungroup, writer.uint32(194).fork()).join();
|
|
9291
|
+
}
|
|
10092
9292
|
return writer;
|
|
10093
9293
|
},
|
|
10094
9294
|
decode(input, length) {
|
|
@@ -10154,13 +9354,6 @@ var Action = {
|
|
|
10154
9354
|
message.copy_instances = CopyInstancesAction.decode(reader, reader.uint32());
|
|
10155
9355
|
continue;
|
|
10156
9356
|
}
|
|
10157
|
-
case 9: {
|
|
10158
|
-
if (tag !== 74) {
|
|
10159
|
-
break;
|
|
10160
|
-
}
|
|
10161
|
-
message.sync_layout = SyncLayoutAction.decode(reader, reader.uint32());
|
|
10162
|
-
continue;
|
|
10163
|
-
}
|
|
10164
9357
|
case 10: {
|
|
10165
9358
|
if (tag !== 82) {
|
|
10166
9359
|
break;
|
|
@@ -10168,20 +9361,6 @@ var Action = {
|
|
|
10168
9361
|
message.create_group = CreateGroupAction.decode(reader, reader.uint32());
|
|
10169
9362
|
continue;
|
|
10170
9363
|
}
|
|
10171
|
-
case 11: {
|
|
10172
|
-
if (tag !== 90) {
|
|
10173
|
-
break;
|
|
10174
|
-
}
|
|
10175
|
-
message.update_group = UpdateGroupAction.decode(reader, reader.uint32());
|
|
10176
|
-
continue;
|
|
10177
|
-
}
|
|
10178
|
-
case 12: {
|
|
10179
|
-
if (tag !== 98) {
|
|
10180
|
-
break;
|
|
10181
|
-
}
|
|
10182
|
-
message.delete_group = DeleteGroupAction.decode(reader, reader.uint32());
|
|
10183
|
-
continue;
|
|
10184
|
-
}
|
|
10185
9364
|
case 13: {
|
|
10186
9365
|
if (tag !== 106) {
|
|
10187
9366
|
break;
|
|
@@ -10259,6 +9438,13 @@ var Action = {
|
|
|
10259
9438
|
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
10260
9439
|
continue;
|
|
10261
9440
|
}
|
|
9441
|
+
case 24: {
|
|
9442
|
+
if (tag !== 194) {
|
|
9443
|
+
break;
|
|
9444
|
+
}
|
|
9445
|
+
message.ungroup = UngroupAction.decode(reader, reader.uint32());
|
|
9446
|
+
continue;
|
|
9447
|
+
}
|
|
10262
9448
|
}
|
|
10263
9449
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10264
9450
|
break;
|
|
@@ -10277,10 +9463,7 @@ var Action = {
|
|
|
10277
9463
|
rename_instance: isSet3(object.renameInstance) ? RenameInstanceAction.fromJSON(object.renameInstance) : isSet3(object.rename_instance) ? RenameInstanceAction.fromJSON(object.rename_instance) : void 0,
|
|
10278
9464
|
delete_instance: isSet3(object.deleteInstance) ? DeleteInstanceAction.fromJSON(object.deleteInstance) : isSet3(object.delete_instance) ? DeleteInstanceAction.fromJSON(object.delete_instance) : void 0,
|
|
10279
9465
|
copy_instances: isSet3(object.copyInstances) ? CopyInstancesAction.fromJSON(object.copyInstances) : isSet3(object.copy_instances) ? CopyInstancesAction.fromJSON(object.copy_instances) : void 0,
|
|
10280
|
-
sync_layout: isSet3(object.syncLayout) ? SyncLayoutAction.fromJSON(object.syncLayout) : isSet3(object.sync_layout) ? SyncLayoutAction.fromJSON(object.sync_layout) : void 0,
|
|
10281
9466
|
create_group: isSet3(object.createGroup) ? CreateGroupAction.fromJSON(object.createGroup) : isSet3(object.create_group) ? CreateGroupAction.fromJSON(object.create_group) : void 0,
|
|
10282
|
-
update_group: isSet3(object.updateGroup) ? UpdateGroupAction.fromJSON(object.updateGroup) : isSet3(object.update_group) ? UpdateGroupAction.fromJSON(object.update_group) : void 0,
|
|
10283
|
-
delete_group: isSet3(object.deleteGroup) ? DeleteGroupAction.fromJSON(object.deleteGroup) : isSet3(object.delete_group) ? DeleteGroupAction.fromJSON(object.delete_group) : void 0,
|
|
10284
9467
|
set_variables: isSet3(object.setVariables) ? SetVariablesAction.fromJSON(object.setVariables) : isSet3(object.set_variables) ? SetVariablesAction.fromJSON(object.set_variables) : void 0,
|
|
10285
9468
|
set_exports: isSet3(object.setExports) ? SetExportsAction.fromJSON(object.setExports) : isSet3(object.set_exports) ? SetExportsAction.fromJSON(object.set_exports) : void 0,
|
|
10286
9469
|
set_terraform: isSet3(object.setTerraform) ? SetTerraformAction.fromJSON(object.setTerraform) : isSet3(object.set_terraform) ? SetTerraformAction.fromJSON(object.set_terraform) : void 0,
|
|
@@ -10291,7 +9474,8 @@ var Action = {
|
|
|
10291
9474
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
10292
9475
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
10293
9476
|
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
10294
|
-
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
|
|
9477
|
+
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0,
|
|
9478
|
+
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0
|
|
10295
9479
|
};
|
|
10296
9480
|
},
|
|
10297
9481
|
toJSON(message) {
|
|
@@ -10320,18 +9504,9 @@ var Action = {
|
|
|
10320
9504
|
if (message.copy_instances !== void 0) {
|
|
10321
9505
|
obj.copyInstances = CopyInstancesAction.toJSON(message.copy_instances);
|
|
10322
9506
|
}
|
|
10323
|
-
if (message.sync_layout !== void 0) {
|
|
10324
|
-
obj.syncLayout = SyncLayoutAction.toJSON(message.sync_layout);
|
|
10325
|
-
}
|
|
10326
9507
|
if (message.create_group !== void 0) {
|
|
10327
9508
|
obj.createGroup = CreateGroupAction.toJSON(message.create_group);
|
|
10328
9509
|
}
|
|
10329
|
-
if (message.update_group !== void 0) {
|
|
10330
|
-
obj.updateGroup = UpdateGroupAction.toJSON(message.update_group);
|
|
10331
|
-
}
|
|
10332
|
-
if (message.delete_group !== void 0) {
|
|
10333
|
-
obj.deleteGroup = DeleteGroupAction.toJSON(message.delete_group);
|
|
10334
|
-
}
|
|
10335
9510
|
if (message.set_variables !== void 0) {
|
|
10336
9511
|
obj.setVariables = SetVariablesAction.toJSON(message.set_variables);
|
|
10337
9512
|
}
|
|
@@ -10365,6 +9540,9 @@ var Action = {
|
|
|
10365
9540
|
if (message.set_use_providers !== void 0) {
|
|
10366
9541
|
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
10367
9542
|
}
|
|
9543
|
+
if (message.ungroup !== void 0) {
|
|
9544
|
+
obj.ungroup = UngroupAction.toJSON(message.ungroup);
|
|
9545
|
+
}
|
|
10368
9546
|
return obj;
|
|
10369
9547
|
},
|
|
10370
9548
|
create(base) {
|
|
@@ -10380,10 +9558,7 @@ var Action = {
|
|
|
10380
9558
|
message.rename_instance = object.rename_instance !== void 0 && object.rename_instance !== null ? RenameInstanceAction.fromPartial(object.rename_instance) : void 0;
|
|
10381
9559
|
message.delete_instance = object.delete_instance !== void 0 && object.delete_instance !== null ? DeleteInstanceAction.fromPartial(object.delete_instance) : void 0;
|
|
10382
9560
|
message.copy_instances = object.copy_instances !== void 0 && object.copy_instances !== null ? CopyInstancesAction.fromPartial(object.copy_instances) : void 0;
|
|
10383
|
-
message.sync_layout = object.sync_layout !== void 0 && object.sync_layout !== null ? SyncLayoutAction.fromPartial(object.sync_layout) : void 0;
|
|
10384
9561
|
message.create_group = object.create_group !== void 0 && object.create_group !== null ? CreateGroupAction.fromPartial(object.create_group) : void 0;
|
|
10385
|
-
message.update_group = object.update_group !== void 0 && object.update_group !== null ? UpdateGroupAction.fromPartial(object.update_group) : void 0;
|
|
10386
|
-
message.delete_group = object.delete_group !== void 0 && object.delete_group !== null ? DeleteGroupAction.fromPartial(object.delete_group) : void 0;
|
|
10387
9562
|
message.set_variables = object.set_variables !== void 0 && object.set_variables !== null ? SetVariablesAction.fromPartial(object.set_variables) : void 0;
|
|
10388
9563
|
message.set_exports = object.set_exports !== void 0 && object.set_exports !== null ? SetExportsAction.fromPartial(object.set_exports) : void 0;
|
|
10389
9564
|
message.set_terraform = object.set_terraform !== void 0 && object.set_terraform !== null ? SetTerraformAction.fromPartial(object.set_terraform) : void 0;
|
|
@@ -10395,6 +9570,7 @@ var Action = {
|
|
|
10395
9570
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
10396
9571
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
10397
9572
|
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
9573
|
+
message.ungroup = object.ungroup !== void 0 && object.ungroup !== null ? UngroupAction.fromPartial(object.ungroup) : void 0;
|
|
10398
9574
|
return message;
|
|
10399
9575
|
}
|
|
10400
9576
|
};
|
|
@@ -11469,16 +10645,13 @@ var BundleStateEvent = {
|
|
|
11469
10645
|
}
|
|
11470
10646
|
};
|
|
11471
10647
|
function createBaseBundleState() {
|
|
11472
|
-
return { bundle: void 0,
|
|
10648
|
+
return { bundle: void 0, can_undo: false, can_redo: false, is_dirty: false };
|
|
11473
10649
|
}
|
|
11474
10650
|
var BundleState = {
|
|
11475
10651
|
encode(message, writer = new BinaryWriter4()) {
|
|
11476
10652
|
if (message.bundle !== void 0) {
|
|
11477
10653
|
Bundle.encode(message.bundle, writer.uint32(10).fork()).join();
|
|
11478
10654
|
}
|
|
11479
|
-
globalThis.Object.entries(message.layouts).forEach(([key, value]) => {
|
|
11480
|
-
BundleState_LayoutsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
11481
|
-
});
|
|
11482
10655
|
if (message.can_undo !== false) {
|
|
11483
10656
|
writer.uint32(24).bool(message.can_undo);
|
|
11484
10657
|
}
|
|
@@ -11504,16 +10677,6 @@ var BundleState = {
|
|
|
11504
10677
|
message.bundle = Bundle.decode(reader, reader.uint32());
|
|
11505
10678
|
continue;
|
|
11506
10679
|
}
|
|
11507
|
-
case 2: {
|
|
11508
|
-
if (tag !== 18) {
|
|
11509
|
-
break;
|
|
11510
|
-
}
|
|
11511
|
-
const entry2 = BundleState_LayoutsEntry.decode(reader, reader.uint32());
|
|
11512
|
-
if (entry2.value !== void 0) {
|
|
11513
|
-
message.layouts[entry2.key] = entry2.value;
|
|
11514
|
-
}
|
|
11515
|
-
continue;
|
|
11516
|
-
}
|
|
11517
10680
|
case 3: {
|
|
11518
10681
|
if (tag !== 24) {
|
|
11519
10682
|
break;
|
|
@@ -11546,13 +10709,6 @@ var BundleState = {
|
|
|
11546
10709
|
fromJSON(object) {
|
|
11547
10710
|
return {
|
|
11548
10711
|
bundle: isSet3(object.bundle) ? Bundle.fromJSON(object.bundle) : void 0,
|
|
11549
|
-
layouts: isObject3(object.layouts) ? globalThis.Object.entries(object.layouts).reduce(
|
|
11550
|
-
(acc, [key, value]) => {
|
|
11551
|
-
acc[key] = GraphLayout.fromJSON(value);
|
|
11552
|
-
return acc;
|
|
11553
|
-
},
|
|
11554
|
-
{}
|
|
11555
|
-
) : {},
|
|
11556
10712
|
can_undo: isSet3(object.canUndo) ? globalThis.Boolean(object.canUndo) : isSet3(object.can_undo) ? globalThis.Boolean(object.can_undo) : false,
|
|
11557
10713
|
can_redo: isSet3(object.canRedo) ? globalThis.Boolean(object.canRedo) : isSet3(object.can_redo) ? globalThis.Boolean(object.can_redo) : false,
|
|
11558
10714
|
is_dirty: isSet3(object.isDirty) ? globalThis.Boolean(object.isDirty) : isSet3(object.is_dirty) ? globalThis.Boolean(object.is_dirty) : false
|
|
@@ -11563,15 +10719,6 @@ var BundleState = {
|
|
|
11563
10719
|
if (message.bundle !== void 0) {
|
|
11564
10720
|
obj.bundle = Bundle.toJSON(message.bundle);
|
|
11565
10721
|
}
|
|
11566
|
-
if (message.layouts) {
|
|
11567
|
-
const entries = globalThis.Object.entries(message.layouts);
|
|
11568
|
-
if (entries.length > 0) {
|
|
11569
|
-
obj.layouts = {};
|
|
11570
|
-
entries.forEach(([k, v]) => {
|
|
11571
|
-
obj.layouts[k] = GraphLayout.toJSON(v);
|
|
11572
|
-
});
|
|
11573
|
-
}
|
|
11574
|
-
}
|
|
11575
10722
|
if (message.can_undo !== false) {
|
|
11576
10723
|
obj.canUndo = message.can_undo;
|
|
11577
10724
|
}
|
|
@@ -11589,53 +10736,54 @@ var BundleState = {
|
|
|
11589
10736
|
fromPartial(object) {
|
|
11590
10737
|
const message = createBaseBundleState();
|
|
11591
10738
|
message.bundle = object.bundle !== void 0 && object.bundle !== null ? Bundle.fromPartial(object.bundle) : void 0;
|
|
11592
|
-
message.layouts = globalThis.Object.entries(object.layouts ?? {}).reduce(
|
|
11593
|
-
(acc, [key, value]) => {
|
|
11594
|
-
if (value !== void 0) {
|
|
11595
|
-
acc[key] = GraphLayout.fromPartial(value);
|
|
11596
|
-
}
|
|
11597
|
-
return acc;
|
|
11598
|
-
},
|
|
11599
|
-
{}
|
|
11600
|
-
);
|
|
11601
10739
|
message.can_undo = object.can_undo ?? false;
|
|
11602
10740
|
message.can_redo = object.can_redo ?? false;
|
|
11603
10741
|
message.is_dirty = object.is_dirty ?? false;
|
|
11604
10742
|
return message;
|
|
11605
10743
|
}
|
|
11606
10744
|
};
|
|
11607
|
-
function
|
|
11608
|
-
return {
|
|
10745
|
+
function createBaseBundleApplyResult() {
|
|
10746
|
+
return { success: false, errors: [], created: [] };
|
|
11609
10747
|
}
|
|
11610
|
-
var
|
|
10748
|
+
var BundleApplyResult = {
|
|
11611
10749
|
encode(message, writer = new BinaryWriter4()) {
|
|
11612
|
-
if (message.
|
|
11613
|
-
writer.uint32(
|
|
10750
|
+
if (message.success !== false) {
|
|
10751
|
+
writer.uint32(8).bool(message.success);
|
|
11614
10752
|
}
|
|
11615
|
-
|
|
11616
|
-
|
|
10753
|
+
for (const v of message.errors) {
|
|
10754
|
+
GraphError.encode(v, writer.uint32(18).fork()).join();
|
|
10755
|
+
}
|
|
10756
|
+
for (const v of message.created) {
|
|
10757
|
+
CreatedRef.encode(v, writer.uint32(26).fork()).join();
|
|
11617
10758
|
}
|
|
11618
10759
|
return writer;
|
|
11619
10760
|
},
|
|
11620
10761
|
decode(input, length) {
|
|
11621
10762
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
11622
10763
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11623
|
-
const message =
|
|
10764
|
+
const message = createBaseBundleApplyResult();
|
|
11624
10765
|
while (reader.pos < end) {
|
|
11625
10766
|
const tag = reader.uint32();
|
|
11626
10767
|
switch (tag >>> 3) {
|
|
11627
10768
|
case 1: {
|
|
11628
|
-
if (tag !==
|
|
10769
|
+
if (tag !== 8) {
|
|
11629
10770
|
break;
|
|
11630
10771
|
}
|
|
11631
|
-
message.
|
|
10772
|
+
message.success = reader.bool();
|
|
11632
10773
|
continue;
|
|
11633
10774
|
}
|
|
11634
10775
|
case 2: {
|
|
11635
10776
|
if (tag !== 18) {
|
|
11636
10777
|
break;
|
|
11637
10778
|
}
|
|
11638
|
-
message.
|
|
10779
|
+
message.errors.push(GraphError.decode(reader, reader.uint32()));
|
|
10780
|
+
continue;
|
|
10781
|
+
}
|
|
10782
|
+
case 3: {
|
|
10783
|
+
if (tag !== 26) {
|
|
10784
|
+
break;
|
|
10785
|
+
}
|
|
10786
|
+
message.created.push(CreatedRef.decode(reader, reader.uint32()));
|
|
11639
10787
|
continue;
|
|
11640
10788
|
}
|
|
11641
10789
|
}
|
|
@@ -11648,62 +10796,87 @@ var BundleState_LayoutsEntry = {
|
|
|
11648
10796
|
},
|
|
11649
10797
|
fromJSON(object) {
|
|
11650
10798
|
return {
|
|
11651
|
-
|
|
11652
|
-
|
|
10799
|
+
success: isSet3(object.success) ? globalThis.Boolean(object.success) : false,
|
|
10800
|
+
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => GraphError.fromJSON(e)) : [],
|
|
10801
|
+
created: globalThis.Array.isArray(object?.created) ? object.created.map((e) => CreatedRef.fromJSON(e)) : []
|
|
11653
10802
|
};
|
|
11654
10803
|
},
|
|
11655
10804
|
toJSON(message) {
|
|
11656
10805
|
const obj = {};
|
|
11657
|
-
if (message.
|
|
11658
|
-
obj.
|
|
10806
|
+
if (message.success !== false) {
|
|
10807
|
+
obj.success = message.success;
|
|
11659
10808
|
}
|
|
11660
|
-
if (message.
|
|
11661
|
-
obj.
|
|
10809
|
+
if (message.errors?.length) {
|
|
10810
|
+
obj.errors = message.errors.map((e) => GraphError.toJSON(e));
|
|
10811
|
+
}
|
|
10812
|
+
if (message.created?.length) {
|
|
10813
|
+
obj.created = message.created.map((e) => CreatedRef.toJSON(e));
|
|
11662
10814
|
}
|
|
11663
10815
|
return obj;
|
|
11664
10816
|
},
|
|
11665
10817
|
create(base) {
|
|
11666
|
-
return
|
|
10818
|
+
return BundleApplyResult.fromPartial(base ?? {});
|
|
11667
10819
|
},
|
|
11668
10820
|
fromPartial(object) {
|
|
11669
|
-
const message =
|
|
11670
|
-
message.
|
|
11671
|
-
message.
|
|
10821
|
+
const message = createBaseBundleApplyResult();
|
|
10822
|
+
message.success = object.success ?? false;
|
|
10823
|
+
message.errors = object.errors?.map((e) => GraphError.fromPartial(e)) || [];
|
|
10824
|
+
message.created = object.created?.map((e) => CreatedRef.fromPartial(e)) || [];
|
|
11672
10825
|
return message;
|
|
11673
10826
|
}
|
|
11674
10827
|
};
|
|
11675
|
-
function
|
|
11676
|
-
return {
|
|
10828
|
+
function createBaseCreatedRef() {
|
|
10829
|
+
return { scope: "", id: "", module_key: "", source_id: "" };
|
|
11677
10830
|
}
|
|
11678
|
-
var
|
|
10831
|
+
var CreatedRef = {
|
|
11679
10832
|
encode(message, writer = new BinaryWriter4()) {
|
|
11680
|
-
if (message.
|
|
11681
|
-
writer.uint32(
|
|
10833
|
+
if (message.scope !== "") {
|
|
10834
|
+
writer.uint32(10).string(message.scope);
|
|
11682
10835
|
}
|
|
11683
|
-
|
|
11684
|
-
|
|
10836
|
+
if (message.id !== "") {
|
|
10837
|
+
writer.uint32(18).string(message.id);
|
|
10838
|
+
}
|
|
10839
|
+
if (message.module_key !== "") {
|
|
10840
|
+
writer.uint32(26).string(message.module_key);
|
|
10841
|
+
}
|
|
10842
|
+
if (message.source_id !== "") {
|
|
10843
|
+
writer.uint32(34).string(message.source_id);
|
|
11685
10844
|
}
|
|
11686
10845
|
return writer;
|
|
11687
10846
|
},
|
|
11688
10847
|
decode(input, length) {
|
|
11689
10848
|
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
11690
10849
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11691
|
-
const message =
|
|
10850
|
+
const message = createBaseCreatedRef();
|
|
11692
10851
|
while (reader.pos < end) {
|
|
11693
10852
|
const tag = reader.uint32();
|
|
11694
10853
|
switch (tag >>> 3) {
|
|
11695
10854
|
case 1: {
|
|
11696
|
-
if (tag !==
|
|
10855
|
+
if (tag !== 10) {
|
|
11697
10856
|
break;
|
|
11698
10857
|
}
|
|
11699
|
-
message.
|
|
10858
|
+
message.scope = reader.string();
|
|
11700
10859
|
continue;
|
|
11701
10860
|
}
|
|
11702
10861
|
case 2: {
|
|
11703
10862
|
if (tag !== 18) {
|
|
11704
10863
|
break;
|
|
11705
10864
|
}
|
|
11706
|
-
message.
|
|
10865
|
+
message.id = reader.string();
|
|
10866
|
+
continue;
|
|
10867
|
+
}
|
|
10868
|
+
case 3: {
|
|
10869
|
+
if (tag !== 26) {
|
|
10870
|
+
break;
|
|
10871
|
+
}
|
|
10872
|
+
message.module_key = reader.string();
|
|
10873
|
+
continue;
|
|
10874
|
+
}
|
|
10875
|
+
case 4: {
|
|
10876
|
+
if (tag !== 34) {
|
|
10877
|
+
break;
|
|
10878
|
+
}
|
|
10879
|
+
message.source_id = reader.string();
|
|
11707
10880
|
continue;
|
|
11708
10881
|
}
|
|
11709
10882
|
}
|
|
@@ -11716,27 +10889,37 @@ var BundleApplyResult = {
|
|
|
11716
10889
|
},
|
|
11717
10890
|
fromJSON(object) {
|
|
11718
10891
|
return {
|
|
11719
|
-
|
|
11720
|
-
|
|
10892
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : "",
|
|
10893
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
10894
|
+
module_key: isSet3(object.moduleKey) ? globalThis.String(object.moduleKey) : isSet3(object.module_key) ? globalThis.String(object.module_key) : "",
|
|
10895
|
+
source_id: isSet3(object.sourceId) ? globalThis.String(object.sourceId) : isSet3(object.source_id) ? globalThis.String(object.source_id) : ""
|
|
11721
10896
|
};
|
|
11722
10897
|
},
|
|
11723
10898
|
toJSON(message) {
|
|
11724
10899
|
const obj = {};
|
|
11725
|
-
if (message.
|
|
11726
|
-
obj.
|
|
10900
|
+
if (message.scope !== "") {
|
|
10901
|
+
obj.scope = message.scope;
|
|
11727
10902
|
}
|
|
11728
|
-
if (message.
|
|
11729
|
-
obj.
|
|
10903
|
+
if (message.id !== "") {
|
|
10904
|
+
obj.id = message.id;
|
|
10905
|
+
}
|
|
10906
|
+
if (message.module_key !== "") {
|
|
10907
|
+
obj.moduleKey = message.module_key;
|
|
10908
|
+
}
|
|
10909
|
+
if (message.source_id !== "") {
|
|
10910
|
+
obj.sourceId = message.source_id;
|
|
11730
10911
|
}
|
|
11731
10912
|
return obj;
|
|
11732
10913
|
},
|
|
11733
10914
|
create(base) {
|
|
11734
|
-
return
|
|
10915
|
+
return CreatedRef.fromPartial(base ?? {});
|
|
11735
10916
|
},
|
|
11736
10917
|
fromPartial(object) {
|
|
11737
|
-
const message =
|
|
11738
|
-
message.
|
|
11739
|
-
message.
|
|
10918
|
+
const message = createBaseCreatedRef();
|
|
10919
|
+
message.scope = object.scope ?? "";
|
|
10920
|
+
message.id = object.id ?? "";
|
|
10921
|
+
message.module_key = object.module_key ?? "";
|
|
10922
|
+
message.source_id = object.source_id ?? "";
|
|
11740
10923
|
return message;
|
|
11741
10924
|
}
|
|
11742
10925
|
};
|
|
@@ -13615,74 +12798,6 @@ var RenderError = {
|
|
|
13615
12798
|
return message;
|
|
13616
12799
|
}
|
|
13617
12800
|
};
|
|
13618
|
-
function createBasePosition2() {
|
|
13619
|
-
return { x: 0, y: 0 };
|
|
13620
|
-
}
|
|
13621
|
-
var Position2 = {
|
|
13622
|
-
encode(message, writer = new BinaryWriter4()) {
|
|
13623
|
-
if (message.x !== 0) {
|
|
13624
|
-
writer.uint32(9).double(message.x);
|
|
13625
|
-
}
|
|
13626
|
-
if (message.y !== 0) {
|
|
13627
|
-
writer.uint32(17).double(message.y);
|
|
13628
|
-
}
|
|
13629
|
-
return writer;
|
|
13630
|
-
},
|
|
13631
|
-
decode(input, length) {
|
|
13632
|
-
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
13633
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13634
|
-
const message = createBasePosition2();
|
|
13635
|
-
while (reader.pos < end) {
|
|
13636
|
-
const tag = reader.uint32();
|
|
13637
|
-
switch (tag >>> 3) {
|
|
13638
|
-
case 1: {
|
|
13639
|
-
if (tag !== 9) {
|
|
13640
|
-
break;
|
|
13641
|
-
}
|
|
13642
|
-
message.x = reader.double();
|
|
13643
|
-
continue;
|
|
13644
|
-
}
|
|
13645
|
-
case 2: {
|
|
13646
|
-
if (tag !== 17) {
|
|
13647
|
-
break;
|
|
13648
|
-
}
|
|
13649
|
-
message.y = reader.double();
|
|
13650
|
-
continue;
|
|
13651
|
-
}
|
|
13652
|
-
}
|
|
13653
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
13654
|
-
break;
|
|
13655
|
-
}
|
|
13656
|
-
reader.skip(tag & 7);
|
|
13657
|
-
}
|
|
13658
|
-
return message;
|
|
13659
|
-
},
|
|
13660
|
-
fromJSON(object) {
|
|
13661
|
-
return {
|
|
13662
|
-
x: isSet3(object.x) ? globalThis.Number(object.x) : 0,
|
|
13663
|
-
y: isSet3(object.y) ? globalThis.Number(object.y) : 0
|
|
13664
|
-
};
|
|
13665
|
-
},
|
|
13666
|
-
toJSON(message) {
|
|
13667
|
-
const obj = {};
|
|
13668
|
-
if (message.x !== 0) {
|
|
13669
|
-
obj.x = message.x;
|
|
13670
|
-
}
|
|
13671
|
-
if (message.y !== 0) {
|
|
13672
|
-
obj.y = message.y;
|
|
13673
|
-
}
|
|
13674
|
-
return obj;
|
|
13675
|
-
},
|
|
13676
|
-
create(base) {
|
|
13677
|
-
return Position2.fromPartial(base ?? {});
|
|
13678
|
-
},
|
|
13679
|
-
fromPartial(object) {
|
|
13680
|
-
const message = createBasePosition2();
|
|
13681
|
-
message.x = object.x ?? 0;
|
|
13682
|
-
message.y = object.y ?? 0;
|
|
13683
|
-
return message;
|
|
13684
|
-
}
|
|
13685
|
-
};
|
|
13686
12801
|
function createBaseInputDef2() {
|
|
13687
12802
|
return {
|
|
13688
12803
|
name: "",
|
|
@@ -14264,7 +13379,9 @@ var LaceEngineService = {
|
|
|
14264
13379
|
* BundleState, which acts as the "subscribed" ready signal.
|
|
14265
13380
|
*
|
|
14266
13381
|
* Consumers (portal + extension canvas engines) project locally via
|
|
14267
|
-
* `@lace-cloud/canvas`'s `projectCanvasView(bundle,
|
|
13382
|
+
* `@lace-cloud/canvas`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
13383
|
+
* `arrangement` (node positions, group collapse/label) is consumer-owned
|
|
13384
|
+
* view state — it never travels over this RPC.
|
|
14268
13385
|
*/
|
|
14269
13386
|
subscribe: {
|
|
14270
13387
|
path: "/lace.engine.LaceEngine/Subscribe",
|