@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.cjs
CHANGED
|
@@ -3743,473 +3743,6 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3743
3743
|
return message;
|
|
3744
3744
|
}
|
|
3745
3745
|
};
|
|
3746
|
-
function createBaseGraphLayout() {
|
|
3747
|
-
return { nodes: {}, groups: {} };
|
|
3748
|
-
}
|
|
3749
|
-
var GraphLayout = {
|
|
3750
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
3751
|
-
globalThis.Object.entries(message.nodes).forEach(([key, value]) => {
|
|
3752
|
-
GraphLayout_NodesEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
3753
|
-
});
|
|
3754
|
-
globalThis.Object.entries(message.groups).forEach(([key, value]) => {
|
|
3755
|
-
GraphLayout_GroupsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3756
|
-
});
|
|
3757
|
-
return writer;
|
|
3758
|
-
},
|
|
3759
|
-
decode(input, length) {
|
|
3760
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
3761
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3762
|
-
const message = createBaseGraphLayout();
|
|
3763
|
-
while (reader.pos < end) {
|
|
3764
|
-
const tag = reader.uint32();
|
|
3765
|
-
switch (tag >>> 3) {
|
|
3766
|
-
case 1: {
|
|
3767
|
-
if (tag !== 10) {
|
|
3768
|
-
break;
|
|
3769
|
-
}
|
|
3770
|
-
const entry1 = GraphLayout_NodesEntry.decode(reader, reader.uint32());
|
|
3771
|
-
if (entry1.value !== void 0) {
|
|
3772
|
-
message.nodes[entry1.key] = entry1.value;
|
|
3773
|
-
}
|
|
3774
|
-
continue;
|
|
3775
|
-
}
|
|
3776
|
-
case 2: {
|
|
3777
|
-
if (tag !== 18) {
|
|
3778
|
-
break;
|
|
3779
|
-
}
|
|
3780
|
-
const entry2 = GraphLayout_GroupsEntry.decode(reader, reader.uint32());
|
|
3781
|
-
if (entry2.value !== void 0) {
|
|
3782
|
-
message.groups[entry2.key] = entry2.value;
|
|
3783
|
-
}
|
|
3784
|
-
continue;
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3788
|
-
break;
|
|
3789
|
-
}
|
|
3790
|
-
reader.skip(tag & 7);
|
|
3791
|
-
}
|
|
3792
|
-
return message;
|
|
3793
|
-
},
|
|
3794
|
-
fromJSON(object) {
|
|
3795
|
-
return {
|
|
3796
|
-
nodes: isObject2(object.nodes) ? globalThis.Object.entries(object.nodes).reduce(
|
|
3797
|
-
(acc, [key, value]) => {
|
|
3798
|
-
acc[key] = NodeLayout.fromJSON(value);
|
|
3799
|
-
return acc;
|
|
3800
|
-
},
|
|
3801
|
-
{}
|
|
3802
|
-
) : {},
|
|
3803
|
-
groups: isObject2(object.groups) ? globalThis.Object.entries(object.groups).reduce(
|
|
3804
|
-
(acc, [key, value]) => {
|
|
3805
|
-
acc[key] = NodeGroup.fromJSON(value);
|
|
3806
|
-
return acc;
|
|
3807
|
-
},
|
|
3808
|
-
{}
|
|
3809
|
-
) : {}
|
|
3810
|
-
};
|
|
3811
|
-
},
|
|
3812
|
-
toJSON(message) {
|
|
3813
|
-
const obj = {};
|
|
3814
|
-
if (message.nodes) {
|
|
3815
|
-
const entries = globalThis.Object.entries(message.nodes);
|
|
3816
|
-
if (entries.length > 0) {
|
|
3817
|
-
obj.nodes = {};
|
|
3818
|
-
entries.forEach(([k, v]) => {
|
|
3819
|
-
obj.nodes[k] = NodeLayout.toJSON(v);
|
|
3820
|
-
});
|
|
3821
|
-
}
|
|
3822
|
-
}
|
|
3823
|
-
if (message.groups) {
|
|
3824
|
-
const entries = globalThis.Object.entries(message.groups);
|
|
3825
|
-
if (entries.length > 0) {
|
|
3826
|
-
obj.groups = {};
|
|
3827
|
-
entries.forEach(([k, v]) => {
|
|
3828
|
-
obj.groups[k] = NodeGroup.toJSON(v);
|
|
3829
|
-
});
|
|
3830
|
-
}
|
|
3831
|
-
}
|
|
3832
|
-
return obj;
|
|
3833
|
-
},
|
|
3834
|
-
create(base) {
|
|
3835
|
-
return GraphLayout.fromPartial(base ?? {});
|
|
3836
|
-
},
|
|
3837
|
-
fromPartial(object) {
|
|
3838
|
-
const message = createBaseGraphLayout();
|
|
3839
|
-
message.nodes = globalThis.Object.entries(object.nodes ?? {}).reduce(
|
|
3840
|
-
(acc, [key, value]) => {
|
|
3841
|
-
if (value !== void 0) {
|
|
3842
|
-
acc[key] = NodeLayout.fromPartial(value);
|
|
3843
|
-
}
|
|
3844
|
-
return acc;
|
|
3845
|
-
},
|
|
3846
|
-
{}
|
|
3847
|
-
);
|
|
3848
|
-
message.groups = globalThis.Object.entries(object.groups ?? {}).reduce(
|
|
3849
|
-
(acc, [key, value]) => {
|
|
3850
|
-
if (value !== void 0) {
|
|
3851
|
-
acc[key] = NodeGroup.fromPartial(value);
|
|
3852
|
-
}
|
|
3853
|
-
return acc;
|
|
3854
|
-
},
|
|
3855
|
-
{}
|
|
3856
|
-
);
|
|
3857
|
-
return message;
|
|
3858
|
-
}
|
|
3859
|
-
};
|
|
3860
|
-
function createBaseGraphLayout_NodesEntry() {
|
|
3861
|
-
return { key: "", value: void 0 };
|
|
3862
|
-
}
|
|
3863
|
-
var GraphLayout_NodesEntry = {
|
|
3864
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
3865
|
-
if (message.key !== "") {
|
|
3866
|
-
writer.uint32(10).string(message.key);
|
|
3867
|
-
}
|
|
3868
|
-
if (message.value !== void 0) {
|
|
3869
|
-
NodeLayout.encode(message.value, writer.uint32(18).fork()).join();
|
|
3870
|
-
}
|
|
3871
|
-
return writer;
|
|
3872
|
-
},
|
|
3873
|
-
decode(input, length) {
|
|
3874
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
3875
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3876
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3877
|
-
while (reader.pos < end) {
|
|
3878
|
-
const tag = reader.uint32();
|
|
3879
|
-
switch (tag >>> 3) {
|
|
3880
|
-
case 1: {
|
|
3881
|
-
if (tag !== 10) {
|
|
3882
|
-
break;
|
|
3883
|
-
}
|
|
3884
|
-
message.key = reader.string();
|
|
3885
|
-
continue;
|
|
3886
|
-
}
|
|
3887
|
-
case 2: {
|
|
3888
|
-
if (tag !== 18) {
|
|
3889
|
-
break;
|
|
3890
|
-
}
|
|
3891
|
-
message.value = NodeLayout.decode(reader, reader.uint32());
|
|
3892
|
-
continue;
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3896
|
-
break;
|
|
3897
|
-
}
|
|
3898
|
-
reader.skip(tag & 7);
|
|
3899
|
-
}
|
|
3900
|
-
return message;
|
|
3901
|
-
},
|
|
3902
|
-
fromJSON(object) {
|
|
3903
|
-
return {
|
|
3904
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3905
|
-
value: isSet2(object.value) ? NodeLayout.fromJSON(object.value) : void 0
|
|
3906
|
-
};
|
|
3907
|
-
},
|
|
3908
|
-
toJSON(message) {
|
|
3909
|
-
const obj = {};
|
|
3910
|
-
if (message.key !== "") {
|
|
3911
|
-
obj.key = message.key;
|
|
3912
|
-
}
|
|
3913
|
-
if (message.value !== void 0) {
|
|
3914
|
-
obj.value = NodeLayout.toJSON(message.value);
|
|
3915
|
-
}
|
|
3916
|
-
return obj;
|
|
3917
|
-
},
|
|
3918
|
-
create(base) {
|
|
3919
|
-
return GraphLayout_NodesEntry.fromPartial(base ?? {});
|
|
3920
|
-
},
|
|
3921
|
-
fromPartial(object) {
|
|
3922
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3923
|
-
message.key = object.key ?? "";
|
|
3924
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeLayout.fromPartial(object.value) : void 0;
|
|
3925
|
-
return message;
|
|
3926
|
-
}
|
|
3927
|
-
};
|
|
3928
|
-
function createBaseGraphLayout_GroupsEntry() {
|
|
3929
|
-
return { key: "", value: void 0 };
|
|
3930
|
-
}
|
|
3931
|
-
var GraphLayout_GroupsEntry = {
|
|
3932
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
3933
|
-
if (message.key !== "") {
|
|
3934
|
-
writer.uint32(10).string(message.key);
|
|
3935
|
-
}
|
|
3936
|
-
if (message.value !== void 0) {
|
|
3937
|
-
NodeGroup.encode(message.value, writer.uint32(18).fork()).join();
|
|
3938
|
-
}
|
|
3939
|
-
return writer;
|
|
3940
|
-
},
|
|
3941
|
-
decode(input, length) {
|
|
3942
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
3943
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3944
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3945
|
-
while (reader.pos < end) {
|
|
3946
|
-
const tag = reader.uint32();
|
|
3947
|
-
switch (tag >>> 3) {
|
|
3948
|
-
case 1: {
|
|
3949
|
-
if (tag !== 10) {
|
|
3950
|
-
break;
|
|
3951
|
-
}
|
|
3952
|
-
message.key = reader.string();
|
|
3953
|
-
continue;
|
|
3954
|
-
}
|
|
3955
|
-
case 2: {
|
|
3956
|
-
if (tag !== 18) {
|
|
3957
|
-
break;
|
|
3958
|
-
}
|
|
3959
|
-
message.value = NodeGroup.decode(reader, reader.uint32());
|
|
3960
|
-
continue;
|
|
3961
|
-
}
|
|
3962
|
-
}
|
|
3963
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3964
|
-
break;
|
|
3965
|
-
}
|
|
3966
|
-
reader.skip(tag & 7);
|
|
3967
|
-
}
|
|
3968
|
-
return message;
|
|
3969
|
-
},
|
|
3970
|
-
fromJSON(object) {
|
|
3971
|
-
return {
|
|
3972
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3973
|
-
value: isSet2(object.value) ? NodeGroup.fromJSON(object.value) : void 0
|
|
3974
|
-
};
|
|
3975
|
-
},
|
|
3976
|
-
toJSON(message) {
|
|
3977
|
-
const obj = {};
|
|
3978
|
-
if (message.key !== "") {
|
|
3979
|
-
obj.key = message.key;
|
|
3980
|
-
}
|
|
3981
|
-
if (message.value !== void 0) {
|
|
3982
|
-
obj.value = NodeGroup.toJSON(message.value);
|
|
3983
|
-
}
|
|
3984
|
-
return obj;
|
|
3985
|
-
},
|
|
3986
|
-
create(base) {
|
|
3987
|
-
return GraphLayout_GroupsEntry.fromPartial(base ?? {});
|
|
3988
|
-
},
|
|
3989
|
-
fromPartial(object) {
|
|
3990
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3991
|
-
message.key = object.key ?? "";
|
|
3992
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeGroup.fromPartial(object.value) : void 0;
|
|
3993
|
-
return message;
|
|
3994
|
-
}
|
|
3995
|
-
};
|
|
3996
|
-
function createBaseNodeGroup() {
|
|
3997
|
-
return { id: "", label: "", node_ids: [], collapsed: false };
|
|
3998
|
-
}
|
|
3999
|
-
var NodeGroup = {
|
|
4000
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
4001
|
-
if (message.id !== "") {
|
|
4002
|
-
writer.uint32(10).string(message.id);
|
|
4003
|
-
}
|
|
4004
|
-
if (message.label !== "") {
|
|
4005
|
-
writer.uint32(18).string(message.label);
|
|
4006
|
-
}
|
|
4007
|
-
for (const v of message.node_ids) {
|
|
4008
|
-
writer.uint32(26).string(v);
|
|
4009
|
-
}
|
|
4010
|
-
if (message.collapsed !== false) {
|
|
4011
|
-
writer.uint32(32).bool(message.collapsed);
|
|
4012
|
-
}
|
|
4013
|
-
return writer;
|
|
4014
|
-
},
|
|
4015
|
-
decode(input, length) {
|
|
4016
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
4017
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4018
|
-
const message = createBaseNodeGroup();
|
|
4019
|
-
while (reader.pos < end) {
|
|
4020
|
-
const tag = reader.uint32();
|
|
4021
|
-
switch (tag >>> 3) {
|
|
4022
|
-
case 1: {
|
|
4023
|
-
if (tag !== 10) {
|
|
4024
|
-
break;
|
|
4025
|
-
}
|
|
4026
|
-
message.id = reader.string();
|
|
4027
|
-
continue;
|
|
4028
|
-
}
|
|
4029
|
-
case 2: {
|
|
4030
|
-
if (tag !== 18) {
|
|
4031
|
-
break;
|
|
4032
|
-
}
|
|
4033
|
-
message.label = reader.string();
|
|
4034
|
-
continue;
|
|
4035
|
-
}
|
|
4036
|
-
case 3: {
|
|
4037
|
-
if (tag !== 26) {
|
|
4038
|
-
break;
|
|
4039
|
-
}
|
|
4040
|
-
message.node_ids.push(reader.string());
|
|
4041
|
-
continue;
|
|
4042
|
-
}
|
|
4043
|
-
case 4: {
|
|
4044
|
-
if (tag !== 32) {
|
|
4045
|
-
break;
|
|
4046
|
-
}
|
|
4047
|
-
message.collapsed = reader.bool();
|
|
4048
|
-
continue;
|
|
4049
|
-
}
|
|
4050
|
-
}
|
|
4051
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4052
|
-
break;
|
|
4053
|
-
}
|
|
4054
|
-
reader.skip(tag & 7);
|
|
4055
|
-
}
|
|
4056
|
-
return message;
|
|
4057
|
-
},
|
|
4058
|
-
fromJSON(object) {
|
|
4059
|
-
return {
|
|
4060
|
-
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
4061
|
-
label: isSet2(object.label) ? globalThis.String(object.label) : "",
|
|
4062
|
-
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)) : [],
|
|
4063
|
-
collapsed: isSet2(object.collapsed) ? globalThis.Boolean(object.collapsed) : false
|
|
4064
|
-
};
|
|
4065
|
-
},
|
|
4066
|
-
toJSON(message) {
|
|
4067
|
-
const obj = {};
|
|
4068
|
-
if (message.id !== "") {
|
|
4069
|
-
obj.id = message.id;
|
|
4070
|
-
}
|
|
4071
|
-
if (message.label !== "") {
|
|
4072
|
-
obj.label = message.label;
|
|
4073
|
-
}
|
|
4074
|
-
if (message.node_ids?.length) {
|
|
4075
|
-
obj.nodeIds = message.node_ids;
|
|
4076
|
-
}
|
|
4077
|
-
if (message.collapsed !== false) {
|
|
4078
|
-
obj.collapsed = message.collapsed;
|
|
4079
|
-
}
|
|
4080
|
-
return obj;
|
|
4081
|
-
},
|
|
4082
|
-
create(base) {
|
|
4083
|
-
return NodeGroup.fromPartial(base ?? {});
|
|
4084
|
-
},
|
|
4085
|
-
fromPartial(object) {
|
|
4086
|
-
const message = createBaseNodeGroup();
|
|
4087
|
-
message.id = object.id ?? "";
|
|
4088
|
-
message.label = object.label ?? "";
|
|
4089
|
-
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
4090
|
-
message.collapsed = object.collapsed ?? false;
|
|
4091
|
-
return message;
|
|
4092
|
-
}
|
|
4093
|
-
};
|
|
4094
|
-
function createBaseNodeLayout() {
|
|
4095
|
-
return { position: void 0 };
|
|
4096
|
-
}
|
|
4097
|
-
var NodeLayout = {
|
|
4098
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
4099
|
-
if (message.position !== void 0) {
|
|
4100
|
-
Position.encode(message.position, writer.uint32(10).fork()).join();
|
|
4101
|
-
}
|
|
4102
|
-
return writer;
|
|
4103
|
-
},
|
|
4104
|
-
decode(input, length) {
|
|
4105
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
4106
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4107
|
-
const message = createBaseNodeLayout();
|
|
4108
|
-
while (reader.pos < end) {
|
|
4109
|
-
const tag = reader.uint32();
|
|
4110
|
-
switch (tag >>> 3) {
|
|
4111
|
-
case 1: {
|
|
4112
|
-
if (tag !== 10) {
|
|
4113
|
-
break;
|
|
4114
|
-
}
|
|
4115
|
-
message.position = Position.decode(reader, reader.uint32());
|
|
4116
|
-
continue;
|
|
4117
|
-
}
|
|
4118
|
-
}
|
|
4119
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4120
|
-
break;
|
|
4121
|
-
}
|
|
4122
|
-
reader.skip(tag & 7);
|
|
4123
|
-
}
|
|
4124
|
-
return message;
|
|
4125
|
-
},
|
|
4126
|
-
fromJSON(object) {
|
|
4127
|
-
return { position: isSet2(object.position) ? Position.fromJSON(object.position) : void 0 };
|
|
4128
|
-
},
|
|
4129
|
-
toJSON(message) {
|
|
4130
|
-
const obj = {};
|
|
4131
|
-
if (message.position !== void 0) {
|
|
4132
|
-
obj.position = Position.toJSON(message.position);
|
|
4133
|
-
}
|
|
4134
|
-
return obj;
|
|
4135
|
-
},
|
|
4136
|
-
create(base) {
|
|
4137
|
-
return NodeLayout.fromPartial(base ?? {});
|
|
4138
|
-
},
|
|
4139
|
-
fromPartial(object) {
|
|
4140
|
-
const message = createBaseNodeLayout();
|
|
4141
|
-
message.position = object.position !== void 0 && object.position !== null ? Position.fromPartial(object.position) : void 0;
|
|
4142
|
-
return message;
|
|
4143
|
-
}
|
|
4144
|
-
};
|
|
4145
|
-
function createBasePosition() {
|
|
4146
|
-
return { x: 0, y: 0 };
|
|
4147
|
-
}
|
|
4148
|
-
var Position = {
|
|
4149
|
-
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
4150
|
-
if (message.x !== 0) {
|
|
4151
|
-
writer.uint32(9).double(message.x);
|
|
4152
|
-
}
|
|
4153
|
-
if (message.y !== 0) {
|
|
4154
|
-
writer.uint32(17).double(message.y);
|
|
4155
|
-
}
|
|
4156
|
-
return writer;
|
|
4157
|
-
},
|
|
4158
|
-
decode(input, length) {
|
|
4159
|
-
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
4160
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4161
|
-
const message = createBasePosition();
|
|
4162
|
-
while (reader.pos < end) {
|
|
4163
|
-
const tag = reader.uint32();
|
|
4164
|
-
switch (tag >>> 3) {
|
|
4165
|
-
case 1: {
|
|
4166
|
-
if (tag !== 9) {
|
|
4167
|
-
break;
|
|
4168
|
-
}
|
|
4169
|
-
message.x = reader.double();
|
|
4170
|
-
continue;
|
|
4171
|
-
}
|
|
4172
|
-
case 2: {
|
|
4173
|
-
if (tag !== 17) {
|
|
4174
|
-
break;
|
|
4175
|
-
}
|
|
4176
|
-
message.y = reader.double();
|
|
4177
|
-
continue;
|
|
4178
|
-
}
|
|
4179
|
-
}
|
|
4180
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
4181
|
-
break;
|
|
4182
|
-
}
|
|
4183
|
-
reader.skip(tag & 7);
|
|
4184
|
-
}
|
|
4185
|
-
return message;
|
|
4186
|
-
},
|
|
4187
|
-
fromJSON(object) {
|
|
4188
|
-
return {
|
|
4189
|
-
x: isSet2(object.x) ? globalThis.Number(object.x) : 0,
|
|
4190
|
-
y: isSet2(object.y) ? globalThis.Number(object.y) : 0
|
|
4191
|
-
};
|
|
4192
|
-
},
|
|
4193
|
-
toJSON(message) {
|
|
4194
|
-
const obj = {};
|
|
4195
|
-
if (message.x !== 0) {
|
|
4196
|
-
obj.x = message.x;
|
|
4197
|
-
}
|
|
4198
|
-
if (message.y !== 0) {
|
|
4199
|
-
obj.y = message.y;
|
|
4200
|
-
}
|
|
4201
|
-
return obj;
|
|
4202
|
-
},
|
|
4203
|
-
create(base) {
|
|
4204
|
-
return Position.fromPartial(base ?? {});
|
|
4205
|
-
},
|
|
4206
|
-
fromPartial(object) {
|
|
4207
|
-
const message = createBasePosition();
|
|
4208
|
-
message.x = object.x ?? 0;
|
|
4209
|
-
message.y = object.y ?? 0;
|
|
4210
|
-
return message;
|
|
4211
|
-
}
|
|
4212
|
-
};
|
|
4213
3746
|
function createBasePolicyResolution() {
|
|
4214
3747
|
return {
|
|
4215
3748
|
mode: "",
|
|
@@ -8370,299 +7903,25 @@ var DeleteInstanceAction = {
|
|
|
8370
7903
|
return DeleteInstanceAction.fromPartial(base ?? {});
|
|
8371
7904
|
},
|
|
8372
7905
|
fromPartial(object) {
|
|
8373
|
-
const message = createBaseDeleteInstanceAction();
|
|
8374
|
-
message.instance_id = object.instance_id ?? "";
|
|
8375
|
-
return message;
|
|
8376
|
-
}
|
|
8377
|
-
};
|
|
8378
|
-
function createBaseCopyInstancesAction() {
|
|
8379
|
-
return { instance_ids: [] };
|
|
8380
|
-
}
|
|
8381
|
-
var CopyInstancesAction = {
|
|
8382
|
-
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8383
|
-
for (const v of message.instance_ids) {
|
|
8384
|
-
writer.uint32(10).string(v);
|
|
8385
|
-
}
|
|
8386
|
-
return writer;
|
|
8387
|
-
},
|
|
8388
|
-
decode(input, length) {
|
|
8389
|
-
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8390
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8391
|
-
const message = createBaseCopyInstancesAction();
|
|
8392
|
-
while (reader.pos < end) {
|
|
8393
|
-
const tag = reader.uint32();
|
|
8394
|
-
switch (tag >>> 3) {
|
|
8395
|
-
case 1: {
|
|
8396
|
-
if (tag !== 10) {
|
|
8397
|
-
break;
|
|
8398
|
-
}
|
|
8399
|
-
message.instance_ids.push(reader.string());
|
|
8400
|
-
continue;
|
|
8401
|
-
}
|
|
8402
|
-
}
|
|
8403
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8404
|
-
break;
|
|
8405
|
-
}
|
|
8406
|
-
reader.skip(tag & 7);
|
|
8407
|
-
}
|
|
8408
|
-
return message;
|
|
8409
|
-
},
|
|
8410
|
-
fromJSON(object) {
|
|
8411
|
-
return {
|
|
8412
|
-
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)) : []
|
|
8413
|
-
};
|
|
8414
|
-
},
|
|
8415
|
-
toJSON(message) {
|
|
8416
|
-
const obj = {};
|
|
8417
|
-
if (message.instance_ids?.length) {
|
|
8418
|
-
obj.instanceIds = message.instance_ids;
|
|
8419
|
-
}
|
|
8420
|
-
return obj;
|
|
8421
|
-
},
|
|
8422
|
-
create(base) {
|
|
8423
|
-
return CopyInstancesAction.fromPartial(base ?? {});
|
|
8424
|
-
},
|
|
8425
|
-
fromPartial(object) {
|
|
8426
|
-
const message = createBaseCopyInstancesAction();
|
|
8427
|
-
message.instance_ids = object.instance_ids?.map((e) => e) || [];
|
|
8428
|
-
return message;
|
|
8429
|
-
}
|
|
8430
|
-
};
|
|
8431
|
-
function createBaseSyncLayoutAction() {
|
|
8432
|
-
return { positions: {} };
|
|
8433
|
-
}
|
|
8434
|
-
var SyncLayoutAction = {
|
|
8435
|
-
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8436
|
-
globalThis.Object.entries(message.positions).forEach(([key, value]) => {
|
|
8437
|
-
SyncLayoutAction_PositionsEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
8438
|
-
});
|
|
8439
|
-
return writer;
|
|
8440
|
-
},
|
|
8441
|
-
decode(input, length) {
|
|
8442
|
-
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8443
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8444
|
-
const message = createBaseSyncLayoutAction();
|
|
8445
|
-
while (reader.pos < end) {
|
|
8446
|
-
const tag = reader.uint32();
|
|
8447
|
-
switch (tag >>> 3) {
|
|
8448
|
-
case 1: {
|
|
8449
|
-
if (tag !== 10) {
|
|
8450
|
-
break;
|
|
8451
|
-
}
|
|
8452
|
-
const entry1 = SyncLayoutAction_PositionsEntry.decode(reader, reader.uint32());
|
|
8453
|
-
if (entry1.value !== void 0) {
|
|
8454
|
-
message.positions[entry1.key] = entry1.value;
|
|
8455
|
-
}
|
|
8456
|
-
continue;
|
|
8457
|
-
}
|
|
8458
|
-
}
|
|
8459
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8460
|
-
break;
|
|
8461
|
-
}
|
|
8462
|
-
reader.skip(tag & 7);
|
|
8463
|
-
}
|
|
8464
|
-
return message;
|
|
8465
|
-
},
|
|
8466
|
-
fromJSON(object) {
|
|
8467
|
-
return {
|
|
8468
|
-
positions: isObject3(object.positions) ? globalThis.Object.entries(object.positions).reduce(
|
|
8469
|
-
(acc, [key, value]) => {
|
|
8470
|
-
acc[key] = Position2.fromJSON(value);
|
|
8471
|
-
return acc;
|
|
8472
|
-
},
|
|
8473
|
-
{}
|
|
8474
|
-
) : {}
|
|
8475
|
-
};
|
|
8476
|
-
},
|
|
8477
|
-
toJSON(message) {
|
|
8478
|
-
const obj = {};
|
|
8479
|
-
if (message.positions) {
|
|
8480
|
-
const entries = globalThis.Object.entries(message.positions);
|
|
8481
|
-
if (entries.length > 0) {
|
|
8482
|
-
obj.positions = {};
|
|
8483
|
-
entries.forEach(([k, v]) => {
|
|
8484
|
-
obj.positions[k] = Position2.toJSON(v);
|
|
8485
|
-
});
|
|
8486
|
-
}
|
|
8487
|
-
}
|
|
8488
|
-
return obj;
|
|
8489
|
-
},
|
|
8490
|
-
create(base) {
|
|
8491
|
-
return SyncLayoutAction.fromPartial(base ?? {});
|
|
8492
|
-
},
|
|
8493
|
-
fromPartial(object) {
|
|
8494
|
-
const message = createBaseSyncLayoutAction();
|
|
8495
|
-
message.positions = globalThis.Object.entries(object.positions ?? {}).reduce(
|
|
8496
|
-
(acc, [key, value]) => {
|
|
8497
|
-
if (value !== void 0) {
|
|
8498
|
-
acc[key] = Position2.fromPartial(value);
|
|
8499
|
-
}
|
|
8500
|
-
return acc;
|
|
8501
|
-
},
|
|
8502
|
-
{}
|
|
8503
|
-
);
|
|
8504
|
-
return message;
|
|
8505
|
-
}
|
|
8506
|
-
};
|
|
8507
|
-
function createBaseSyncLayoutAction_PositionsEntry() {
|
|
8508
|
-
return { key: "", value: void 0 };
|
|
8509
|
-
}
|
|
8510
|
-
var SyncLayoutAction_PositionsEntry = {
|
|
8511
|
-
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8512
|
-
if (message.key !== "") {
|
|
8513
|
-
writer.uint32(10).string(message.key);
|
|
8514
|
-
}
|
|
8515
|
-
if (message.value !== void 0) {
|
|
8516
|
-
Position2.encode(message.value, writer.uint32(18).fork()).join();
|
|
8517
|
-
}
|
|
8518
|
-
return writer;
|
|
8519
|
-
},
|
|
8520
|
-
decode(input, length) {
|
|
8521
|
-
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8522
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8523
|
-
const message = createBaseSyncLayoutAction_PositionsEntry();
|
|
8524
|
-
while (reader.pos < end) {
|
|
8525
|
-
const tag = reader.uint32();
|
|
8526
|
-
switch (tag >>> 3) {
|
|
8527
|
-
case 1: {
|
|
8528
|
-
if (tag !== 10) {
|
|
8529
|
-
break;
|
|
8530
|
-
}
|
|
8531
|
-
message.key = reader.string();
|
|
8532
|
-
continue;
|
|
8533
|
-
}
|
|
8534
|
-
case 2: {
|
|
8535
|
-
if (tag !== 18) {
|
|
8536
|
-
break;
|
|
8537
|
-
}
|
|
8538
|
-
message.value = Position2.decode(reader, reader.uint32());
|
|
8539
|
-
continue;
|
|
8540
|
-
}
|
|
8541
|
-
}
|
|
8542
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8543
|
-
break;
|
|
8544
|
-
}
|
|
8545
|
-
reader.skip(tag & 7);
|
|
8546
|
-
}
|
|
8547
|
-
return message;
|
|
8548
|
-
},
|
|
8549
|
-
fromJSON(object) {
|
|
8550
|
-
return {
|
|
8551
|
-
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
8552
|
-
value: isSet3(object.value) ? Position2.fromJSON(object.value) : void 0
|
|
8553
|
-
};
|
|
8554
|
-
},
|
|
8555
|
-
toJSON(message) {
|
|
8556
|
-
const obj = {};
|
|
8557
|
-
if (message.key !== "") {
|
|
8558
|
-
obj.key = message.key;
|
|
8559
|
-
}
|
|
8560
|
-
if (message.value !== void 0) {
|
|
8561
|
-
obj.value = Position2.toJSON(message.value);
|
|
8562
|
-
}
|
|
8563
|
-
return obj;
|
|
8564
|
-
},
|
|
8565
|
-
create(base) {
|
|
8566
|
-
return SyncLayoutAction_PositionsEntry.fromPartial(base ?? {});
|
|
8567
|
-
},
|
|
8568
|
-
fromPartial(object) {
|
|
8569
|
-
const message = createBaseSyncLayoutAction_PositionsEntry();
|
|
8570
|
-
message.key = object.key ?? "";
|
|
8571
|
-
message.value = object.value !== void 0 && object.value !== null ? Position2.fromPartial(object.value) : void 0;
|
|
8572
|
-
return message;
|
|
8573
|
-
}
|
|
8574
|
-
};
|
|
8575
|
-
function createBaseCreateGroupAction() {
|
|
8576
|
-
return { label: "", node_ids: [] };
|
|
8577
|
-
}
|
|
8578
|
-
var CreateGroupAction = {
|
|
8579
|
-
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8580
|
-
if (message.label !== "") {
|
|
8581
|
-
writer.uint32(10).string(message.label);
|
|
8582
|
-
}
|
|
8583
|
-
for (const v of message.node_ids) {
|
|
8584
|
-
writer.uint32(18).string(v);
|
|
8585
|
-
}
|
|
8586
|
-
return writer;
|
|
8587
|
-
},
|
|
8588
|
-
decode(input, length) {
|
|
8589
|
-
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8590
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8591
|
-
const message = createBaseCreateGroupAction();
|
|
8592
|
-
while (reader.pos < end) {
|
|
8593
|
-
const tag = reader.uint32();
|
|
8594
|
-
switch (tag >>> 3) {
|
|
8595
|
-
case 1: {
|
|
8596
|
-
if (tag !== 10) {
|
|
8597
|
-
break;
|
|
8598
|
-
}
|
|
8599
|
-
message.label = reader.string();
|
|
8600
|
-
continue;
|
|
8601
|
-
}
|
|
8602
|
-
case 2: {
|
|
8603
|
-
if (tag !== 18) {
|
|
8604
|
-
break;
|
|
8605
|
-
}
|
|
8606
|
-
message.node_ids.push(reader.string());
|
|
8607
|
-
continue;
|
|
8608
|
-
}
|
|
8609
|
-
}
|
|
8610
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8611
|
-
break;
|
|
8612
|
-
}
|
|
8613
|
-
reader.skip(tag & 7);
|
|
8614
|
-
}
|
|
8615
|
-
return message;
|
|
8616
|
-
},
|
|
8617
|
-
fromJSON(object) {
|
|
8618
|
-
return {
|
|
8619
|
-
label: isSet3(object.label) ? globalThis.String(object.label) : "",
|
|
8620
|
-
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)) : []
|
|
8621
|
-
};
|
|
8622
|
-
},
|
|
8623
|
-
toJSON(message) {
|
|
8624
|
-
const obj = {};
|
|
8625
|
-
if (message.label !== "") {
|
|
8626
|
-
obj.label = message.label;
|
|
8627
|
-
}
|
|
8628
|
-
if (message.node_ids?.length) {
|
|
8629
|
-
obj.nodeIds = message.node_ids;
|
|
8630
|
-
}
|
|
8631
|
-
return obj;
|
|
8632
|
-
},
|
|
8633
|
-
create(base) {
|
|
8634
|
-
return CreateGroupAction.fromPartial(base ?? {});
|
|
8635
|
-
},
|
|
8636
|
-
fromPartial(object) {
|
|
8637
|
-
const message = createBaseCreateGroupAction();
|
|
8638
|
-
message.label = object.label ?? "";
|
|
8639
|
-
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
7906
|
+
const message = createBaseDeleteInstanceAction();
|
|
7907
|
+
message.instance_id = object.instance_id ?? "";
|
|
8640
7908
|
return message;
|
|
8641
7909
|
}
|
|
8642
7910
|
};
|
|
8643
|
-
function
|
|
8644
|
-
return {
|
|
7911
|
+
function createBaseCopyInstancesAction() {
|
|
7912
|
+
return { instance_ids: [] };
|
|
8645
7913
|
}
|
|
8646
|
-
var
|
|
7914
|
+
var CopyInstancesAction = {
|
|
8647
7915
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8648
|
-
|
|
8649
|
-
writer.uint32(10).string(
|
|
8650
|
-
}
|
|
8651
|
-
if (message.label !== void 0) {
|
|
8652
|
-
writer.uint32(18).string(message.label);
|
|
8653
|
-
}
|
|
8654
|
-
if (message.collapsed !== void 0) {
|
|
8655
|
-
writer.uint32(24).bool(message.collapsed);
|
|
8656
|
-
}
|
|
8657
|
-
if (message.node_ids !== void 0) {
|
|
8658
|
-
UpdateGroupNodeIds.encode(message.node_ids, writer.uint32(34).fork()).join();
|
|
7916
|
+
for (const v of message.instance_ids) {
|
|
7917
|
+
writer.uint32(10).string(v);
|
|
8659
7918
|
}
|
|
8660
7919
|
return writer;
|
|
8661
7920
|
},
|
|
8662
7921
|
decode(input, length) {
|
|
8663
7922
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8664
7923
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8665
|
-
const message =
|
|
7924
|
+
const message = createBaseCopyInstancesAction();
|
|
8666
7925
|
while (reader.pos < end) {
|
|
8667
7926
|
const tag = reader.uint32();
|
|
8668
7927
|
switch (tag >>> 3) {
|
|
@@ -8670,28 +7929,7 @@ var UpdateGroupAction = {
|
|
|
8670
7929
|
if (tag !== 10) {
|
|
8671
7930
|
break;
|
|
8672
7931
|
}
|
|
8673
|
-
message.
|
|
8674
|
-
continue;
|
|
8675
|
-
}
|
|
8676
|
-
case 2: {
|
|
8677
|
-
if (tag !== 18) {
|
|
8678
|
-
break;
|
|
8679
|
-
}
|
|
8680
|
-
message.label = reader.string();
|
|
8681
|
-
continue;
|
|
8682
|
-
}
|
|
8683
|
-
case 3: {
|
|
8684
|
-
if (tag !== 24) {
|
|
8685
|
-
break;
|
|
8686
|
-
}
|
|
8687
|
-
message.collapsed = reader.bool();
|
|
8688
|
-
continue;
|
|
8689
|
-
}
|
|
8690
|
-
case 4: {
|
|
8691
|
-
if (tag !== 34) {
|
|
8692
|
-
break;
|
|
8693
|
-
}
|
|
8694
|
-
message.node_ids = UpdateGroupNodeIds.decode(reader, reader.uint32());
|
|
7932
|
+
message.instance_ids.push(reader.string());
|
|
8695
7933
|
continue;
|
|
8696
7934
|
}
|
|
8697
7935
|
}
|
|
@@ -8704,59 +7942,44 @@ var UpdateGroupAction = {
|
|
|
8704
7942
|
},
|
|
8705
7943
|
fromJSON(object) {
|
|
8706
7944
|
return {
|
|
8707
|
-
|
|
8708
|
-
label: isSet3(object.label) ? globalThis.String(object.label) : void 0,
|
|
8709
|
-
collapsed: isSet3(object.collapsed) ? globalThis.Boolean(object.collapsed) : void 0,
|
|
8710
|
-
node_ids: isSet3(object.nodeIds) ? UpdateGroupNodeIds.fromJSON(object.nodeIds) : isSet3(object.node_ids) ? UpdateGroupNodeIds.fromJSON(object.node_ids) : void 0
|
|
7945
|
+
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)) : []
|
|
8711
7946
|
};
|
|
8712
7947
|
},
|
|
8713
7948
|
toJSON(message) {
|
|
8714
7949
|
const obj = {};
|
|
8715
|
-
if (message.
|
|
8716
|
-
obj.
|
|
8717
|
-
}
|
|
8718
|
-
if (message.label !== void 0) {
|
|
8719
|
-
obj.label = message.label;
|
|
8720
|
-
}
|
|
8721
|
-
if (message.collapsed !== void 0) {
|
|
8722
|
-
obj.collapsed = message.collapsed;
|
|
8723
|
-
}
|
|
8724
|
-
if (message.node_ids !== void 0) {
|
|
8725
|
-
obj.nodeIds = UpdateGroupNodeIds.toJSON(message.node_ids);
|
|
7950
|
+
if (message.instance_ids?.length) {
|
|
7951
|
+
obj.instanceIds = message.instance_ids;
|
|
8726
7952
|
}
|
|
8727
7953
|
return obj;
|
|
8728
7954
|
},
|
|
8729
7955
|
create(base) {
|
|
8730
|
-
return
|
|
7956
|
+
return CopyInstancesAction.fromPartial(base ?? {});
|
|
8731
7957
|
},
|
|
8732
7958
|
fromPartial(object) {
|
|
8733
|
-
const message =
|
|
8734
|
-
message.
|
|
8735
|
-
message.label = object.label ?? void 0;
|
|
8736
|
-
message.collapsed = object.collapsed ?? void 0;
|
|
8737
|
-
message.node_ids = object.node_ids !== void 0 && object.node_ids !== null ? UpdateGroupNodeIds.fromPartial(object.node_ids) : void 0;
|
|
7959
|
+
const message = createBaseCopyInstancesAction();
|
|
7960
|
+
message.instance_ids = object.instance_ids?.map((e) => e) || [];
|
|
8738
7961
|
return message;
|
|
8739
7962
|
}
|
|
8740
7963
|
};
|
|
8741
|
-
function
|
|
7964
|
+
function createBaseCreateGroupAction() {
|
|
8742
7965
|
return { node_ids: [] };
|
|
8743
7966
|
}
|
|
8744
|
-
var
|
|
7967
|
+
var CreateGroupAction = {
|
|
8745
7968
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8746
7969
|
for (const v of message.node_ids) {
|
|
8747
|
-
writer.uint32(
|
|
7970
|
+
writer.uint32(18).string(v);
|
|
8748
7971
|
}
|
|
8749
7972
|
return writer;
|
|
8750
7973
|
},
|
|
8751
7974
|
decode(input, length) {
|
|
8752
7975
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8753
7976
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8754
|
-
const message =
|
|
7977
|
+
const message = createBaseCreateGroupAction();
|
|
8755
7978
|
while (reader.pos < end) {
|
|
8756
7979
|
const tag = reader.uint32();
|
|
8757
7980
|
switch (tag >>> 3) {
|
|
8758
|
-
case
|
|
8759
|
-
if (tag !==
|
|
7981
|
+
case 2: {
|
|
7982
|
+
if (tag !== 18) {
|
|
8760
7983
|
break;
|
|
8761
7984
|
}
|
|
8762
7985
|
message.node_ids.push(reader.string());
|
|
@@ -8783,18 +8006,18 @@ var UpdateGroupNodeIds = {
|
|
|
8783
8006
|
return obj;
|
|
8784
8007
|
},
|
|
8785
8008
|
create(base) {
|
|
8786
|
-
return
|
|
8009
|
+
return CreateGroupAction.fromPartial(base ?? {});
|
|
8787
8010
|
},
|
|
8788
8011
|
fromPartial(object) {
|
|
8789
|
-
const message =
|
|
8012
|
+
const message = createBaseCreateGroupAction();
|
|
8790
8013
|
message.node_ids = object.node_ids?.map((e) => e) || [];
|
|
8791
8014
|
return message;
|
|
8792
8015
|
}
|
|
8793
8016
|
};
|
|
8794
|
-
function
|
|
8017
|
+
function createBaseUngroupAction() {
|
|
8795
8018
|
return { group_id: "" };
|
|
8796
8019
|
}
|
|
8797
|
-
var
|
|
8020
|
+
var UngroupAction = {
|
|
8798
8021
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
8799
8022
|
if (message.group_id !== "") {
|
|
8800
8023
|
writer.uint32(10).string(message.group_id);
|
|
@@ -8804,7 +8027,7 @@ var DeleteGroupAction = {
|
|
|
8804
8027
|
decode(input, length) {
|
|
8805
8028
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
8806
8029
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8807
|
-
const message =
|
|
8030
|
+
const message = createBaseUngroupAction();
|
|
8808
8031
|
while (reader.pos < end) {
|
|
8809
8032
|
const tag = reader.uint32();
|
|
8810
8033
|
switch (tag >>> 3) {
|
|
@@ -8836,10 +8059,10 @@ var DeleteGroupAction = {
|
|
|
8836
8059
|
return obj;
|
|
8837
8060
|
},
|
|
8838
8061
|
create(base) {
|
|
8839
|
-
return
|
|
8062
|
+
return UngroupAction.fromPartial(base ?? {});
|
|
8840
8063
|
},
|
|
8841
8064
|
fromPartial(object) {
|
|
8842
|
-
const message =
|
|
8065
|
+
const message = createBaseUngroupAction();
|
|
8843
8066
|
message.group_id = object.group_id ?? "";
|
|
8844
8067
|
return message;
|
|
8845
8068
|
}
|
|
@@ -9912,7 +9135,7 @@ var RedoAction = {
|
|
|
9912
9135
|
}
|
|
9913
9136
|
};
|
|
9914
9137
|
function createBasePlaceModuleAction() {
|
|
9915
|
-
return { name: "", system: "", version: "", organization: ""
|
|
9138
|
+
return { name: "", system: "", version: "", organization: "" };
|
|
9916
9139
|
}
|
|
9917
9140
|
var PlaceModuleAction = {
|
|
9918
9141
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -9928,9 +9151,6 @@ var PlaceModuleAction = {
|
|
|
9928
9151
|
if (message.organization !== "") {
|
|
9929
9152
|
writer.uint32(34).string(message.organization);
|
|
9930
9153
|
}
|
|
9931
|
-
if (message.position !== void 0) {
|
|
9932
|
-
Position2.encode(message.position, writer.uint32(42).fork()).join();
|
|
9933
|
-
}
|
|
9934
9154
|
return writer;
|
|
9935
9155
|
},
|
|
9936
9156
|
decode(input, length) {
|
|
@@ -9968,13 +9188,6 @@ var PlaceModuleAction = {
|
|
|
9968
9188
|
message.organization = reader.string();
|
|
9969
9189
|
continue;
|
|
9970
9190
|
}
|
|
9971
|
-
case 5: {
|
|
9972
|
-
if (tag !== 42) {
|
|
9973
|
-
break;
|
|
9974
|
-
}
|
|
9975
|
-
message.position = Position2.decode(reader, reader.uint32());
|
|
9976
|
-
continue;
|
|
9977
|
-
}
|
|
9978
9191
|
}
|
|
9979
9192
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9980
9193
|
break;
|
|
@@ -9988,8 +9201,7 @@ var PlaceModuleAction = {
|
|
|
9988
9201
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
9989
9202
|
system: isSet3(object.system) ? globalThis.String(object.system) : "",
|
|
9990
9203
|
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
9991
|
-
organization: isSet3(object.organization) ? globalThis.String(object.organization) : ""
|
|
9992
|
-
position: isSet3(object.position) ? Position2.fromJSON(object.position) : void 0
|
|
9204
|
+
organization: isSet3(object.organization) ? globalThis.String(object.organization) : ""
|
|
9993
9205
|
};
|
|
9994
9206
|
},
|
|
9995
9207
|
toJSON(message) {
|
|
@@ -10006,9 +9218,6 @@ var PlaceModuleAction = {
|
|
|
10006
9218
|
if (message.organization !== "") {
|
|
10007
9219
|
obj.organization = message.organization;
|
|
10008
9220
|
}
|
|
10009
|
-
if (message.position !== void 0) {
|
|
10010
|
-
obj.position = Position2.toJSON(message.position);
|
|
10011
|
-
}
|
|
10012
9221
|
return obj;
|
|
10013
9222
|
},
|
|
10014
9223
|
create(base) {
|
|
@@ -10020,7 +9229,6 @@ var PlaceModuleAction = {
|
|
|
10020
9229
|
message.system = object.system ?? "";
|
|
10021
9230
|
message.version = object.version ?? "";
|
|
10022
9231
|
message.organization = object.organization ?? "";
|
|
10023
|
-
message.position = object.position !== void 0 && object.position !== null ? Position2.fromPartial(object.position) : void 0;
|
|
10024
9232
|
return message;
|
|
10025
9233
|
}
|
|
10026
9234
|
};
|
|
@@ -10034,10 +9242,7 @@ function createBaseAction() {
|
|
|
10034
9242
|
rename_instance: void 0,
|
|
10035
9243
|
delete_instance: void 0,
|
|
10036
9244
|
copy_instances: void 0,
|
|
10037
|
-
sync_layout: void 0,
|
|
10038
9245
|
create_group: void 0,
|
|
10039
|
-
update_group: void 0,
|
|
10040
|
-
delete_group: void 0,
|
|
10041
9246
|
set_variables: void 0,
|
|
10042
9247
|
set_exports: void 0,
|
|
10043
9248
|
set_terraform: void 0,
|
|
@@ -10048,7 +9253,8 @@ function createBaseAction() {
|
|
|
10048
9253
|
undo: void 0,
|
|
10049
9254
|
redo: void 0,
|
|
10050
9255
|
place_module: void 0,
|
|
10051
|
-
set_use_providers: void 0
|
|
9256
|
+
set_use_providers: void 0,
|
|
9257
|
+
ungroup: void 0
|
|
10052
9258
|
};
|
|
10053
9259
|
}
|
|
10054
9260
|
var Action = {
|
|
@@ -10077,18 +9283,9 @@ var Action = {
|
|
|
10077
9283
|
if (message.copy_instances !== void 0) {
|
|
10078
9284
|
CopyInstancesAction.encode(message.copy_instances, writer.uint32(66).fork()).join();
|
|
10079
9285
|
}
|
|
10080
|
-
if (message.sync_layout !== void 0) {
|
|
10081
|
-
SyncLayoutAction.encode(message.sync_layout, writer.uint32(74).fork()).join();
|
|
10082
|
-
}
|
|
10083
9286
|
if (message.create_group !== void 0) {
|
|
10084
9287
|
CreateGroupAction.encode(message.create_group, writer.uint32(82).fork()).join();
|
|
10085
9288
|
}
|
|
10086
|
-
if (message.update_group !== void 0) {
|
|
10087
|
-
UpdateGroupAction.encode(message.update_group, writer.uint32(90).fork()).join();
|
|
10088
|
-
}
|
|
10089
|
-
if (message.delete_group !== void 0) {
|
|
10090
|
-
DeleteGroupAction.encode(message.delete_group, writer.uint32(98).fork()).join();
|
|
10091
|
-
}
|
|
10092
9289
|
if (message.set_variables !== void 0) {
|
|
10093
9290
|
SetVariablesAction.encode(message.set_variables, writer.uint32(106).fork()).join();
|
|
10094
9291
|
}
|
|
@@ -10122,6 +9319,9 @@ var Action = {
|
|
|
10122
9319
|
if (message.set_use_providers !== void 0) {
|
|
10123
9320
|
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
10124
9321
|
}
|
|
9322
|
+
if (message.ungroup !== void 0) {
|
|
9323
|
+
UngroupAction.encode(message.ungroup, writer.uint32(194).fork()).join();
|
|
9324
|
+
}
|
|
10125
9325
|
return writer;
|
|
10126
9326
|
},
|
|
10127
9327
|
decode(input, length) {
|
|
@@ -10187,13 +9387,6 @@ var Action = {
|
|
|
10187
9387
|
message.copy_instances = CopyInstancesAction.decode(reader, reader.uint32());
|
|
10188
9388
|
continue;
|
|
10189
9389
|
}
|
|
10190
|
-
case 9: {
|
|
10191
|
-
if (tag !== 74) {
|
|
10192
|
-
break;
|
|
10193
|
-
}
|
|
10194
|
-
message.sync_layout = SyncLayoutAction.decode(reader, reader.uint32());
|
|
10195
|
-
continue;
|
|
10196
|
-
}
|
|
10197
9390
|
case 10: {
|
|
10198
9391
|
if (tag !== 82) {
|
|
10199
9392
|
break;
|
|
@@ -10201,20 +9394,6 @@ var Action = {
|
|
|
10201
9394
|
message.create_group = CreateGroupAction.decode(reader, reader.uint32());
|
|
10202
9395
|
continue;
|
|
10203
9396
|
}
|
|
10204
|
-
case 11: {
|
|
10205
|
-
if (tag !== 90) {
|
|
10206
|
-
break;
|
|
10207
|
-
}
|
|
10208
|
-
message.update_group = UpdateGroupAction.decode(reader, reader.uint32());
|
|
10209
|
-
continue;
|
|
10210
|
-
}
|
|
10211
|
-
case 12: {
|
|
10212
|
-
if (tag !== 98) {
|
|
10213
|
-
break;
|
|
10214
|
-
}
|
|
10215
|
-
message.delete_group = DeleteGroupAction.decode(reader, reader.uint32());
|
|
10216
|
-
continue;
|
|
10217
|
-
}
|
|
10218
9397
|
case 13: {
|
|
10219
9398
|
if (tag !== 106) {
|
|
10220
9399
|
break;
|
|
@@ -10292,6 +9471,13 @@ var Action = {
|
|
|
10292
9471
|
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
10293
9472
|
continue;
|
|
10294
9473
|
}
|
|
9474
|
+
case 24: {
|
|
9475
|
+
if (tag !== 194) {
|
|
9476
|
+
break;
|
|
9477
|
+
}
|
|
9478
|
+
message.ungroup = UngroupAction.decode(reader, reader.uint32());
|
|
9479
|
+
continue;
|
|
9480
|
+
}
|
|
10295
9481
|
}
|
|
10296
9482
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10297
9483
|
break;
|
|
@@ -10310,10 +9496,7 @@ var Action = {
|
|
|
10310
9496
|
rename_instance: isSet3(object.renameInstance) ? RenameInstanceAction.fromJSON(object.renameInstance) : isSet3(object.rename_instance) ? RenameInstanceAction.fromJSON(object.rename_instance) : void 0,
|
|
10311
9497
|
delete_instance: isSet3(object.deleteInstance) ? DeleteInstanceAction.fromJSON(object.deleteInstance) : isSet3(object.delete_instance) ? DeleteInstanceAction.fromJSON(object.delete_instance) : void 0,
|
|
10312
9498
|
copy_instances: isSet3(object.copyInstances) ? CopyInstancesAction.fromJSON(object.copyInstances) : isSet3(object.copy_instances) ? CopyInstancesAction.fromJSON(object.copy_instances) : void 0,
|
|
10313
|
-
sync_layout: isSet3(object.syncLayout) ? SyncLayoutAction.fromJSON(object.syncLayout) : isSet3(object.sync_layout) ? SyncLayoutAction.fromJSON(object.sync_layout) : void 0,
|
|
10314
9499
|
create_group: isSet3(object.createGroup) ? CreateGroupAction.fromJSON(object.createGroup) : isSet3(object.create_group) ? CreateGroupAction.fromJSON(object.create_group) : void 0,
|
|
10315
|
-
update_group: isSet3(object.updateGroup) ? UpdateGroupAction.fromJSON(object.updateGroup) : isSet3(object.update_group) ? UpdateGroupAction.fromJSON(object.update_group) : void 0,
|
|
10316
|
-
delete_group: isSet3(object.deleteGroup) ? DeleteGroupAction.fromJSON(object.deleteGroup) : isSet3(object.delete_group) ? DeleteGroupAction.fromJSON(object.delete_group) : void 0,
|
|
10317
9500
|
set_variables: isSet3(object.setVariables) ? SetVariablesAction.fromJSON(object.setVariables) : isSet3(object.set_variables) ? SetVariablesAction.fromJSON(object.set_variables) : void 0,
|
|
10318
9501
|
set_exports: isSet3(object.setExports) ? SetExportsAction.fromJSON(object.setExports) : isSet3(object.set_exports) ? SetExportsAction.fromJSON(object.set_exports) : void 0,
|
|
10319
9502
|
set_terraform: isSet3(object.setTerraform) ? SetTerraformAction.fromJSON(object.setTerraform) : isSet3(object.set_terraform) ? SetTerraformAction.fromJSON(object.set_terraform) : void 0,
|
|
@@ -10324,7 +9507,8 @@ var Action = {
|
|
|
10324
9507
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
10325
9508
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
10326
9509
|
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
10327
|
-
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
|
|
9510
|
+
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0,
|
|
9511
|
+
ungroup: isSet3(object.ungroup) ? UngroupAction.fromJSON(object.ungroup) : void 0
|
|
10328
9512
|
};
|
|
10329
9513
|
},
|
|
10330
9514
|
toJSON(message) {
|
|
@@ -10353,18 +9537,9 @@ var Action = {
|
|
|
10353
9537
|
if (message.copy_instances !== void 0) {
|
|
10354
9538
|
obj.copyInstances = CopyInstancesAction.toJSON(message.copy_instances);
|
|
10355
9539
|
}
|
|
10356
|
-
if (message.sync_layout !== void 0) {
|
|
10357
|
-
obj.syncLayout = SyncLayoutAction.toJSON(message.sync_layout);
|
|
10358
|
-
}
|
|
10359
9540
|
if (message.create_group !== void 0) {
|
|
10360
9541
|
obj.createGroup = CreateGroupAction.toJSON(message.create_group);
|
|
10361
9542
|
}
|
|
10362
|
-
if (message.update_group !== void 0) {
|
|
10363
|
-
obj.updateGroup = UpdateGroupAction.toJSON(message.update_group);
|
|
10364
|
-
}
|
|
10365
|
-
if (message.delete_group !== void 0) {
|
|
10366
|
-
obj.deleteGroup = DeleteGroupAction.toJSON(message.delete_group);
|
|
10367
|
-
}
|
|
10368
9543
|
if (message.set_variables !== void 0) {
|
|
10369
9544
|
obj.setVariables = SetVariablesAction.toJSON(message.set_variables);
|
|
10370
9545
|
}
|
|
@@ -10398,6 +9573,9 @@ var Action = {
|
|
|
10398
9573
|
if (message.set_use_providers !== void 0) {
|
|
10399
9574
|
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
10400
9575
|
}
|
|
9576
|
+
if (message.ungroup !== void 0) {
|
|
9577
|
+
obj.ungroup = UngroupAction.toJSON(message.ungroup);
|
|
9578
|
+
}
|
|
10401
9579
|
return obj;
|
|
10402
9580
|
},
|
|
10403
9581
|
create(base) {
|
|
@@ -10413,10 +9591,7 @@ var Action = {
|
|
|
10413
9591
|
message.rename_instance = object.rename_instance !== void 0 && object.rename_instance !== null ? RenameInstanceAction.fromPartial(object.rename_instance) : void 0;
|
|
10414
9592
|
message.delete_instance = object.delete_instance !== void 0 && object.delete_instance !== null ? DeleteInstanceAction.fromPartial(object.delete_instance) : void 0;
|
|
10415
9593
|
message.copy_instances = object.copy_instances !== void 0 && object.copy_instances !== null ? CopyInstancesAction.fromPartial(object.copy_instances) : void 0;
|
|
10416
|
-
message.sync_layout = object.sync_layout !== void 0 && object.sync_layout !== null ? SyncLayoutAction.fromPartial(object.sync_layout) : void 0;
|
|
10417
9594
|
message.create_group = object.create_group !== void 0 && object.create_group !== null ? CreateGroupAction.fromPartial(object.create_group) : void 0;
|
|
10418
|
-
message.update_group = object.update_group !== void 0 && object.update_group !== null ? UpdateGroupAction.fromPartial(object.update_group) : void 0;
|
|
10419
|
-
message.delete_group = object.delete_group !== void 0 && object.delete_group !== null ? DeleteGroupAction.fromPartial(object.delete_group) : void 0;
|
|
10420
9595
|
message.set_variables = object.set_variables !== void 0 && object.set_variables !== null ? SetVariablesAction.fromPartial(object.set_variables) : void 0;
|
|
10421
9596
|
message.set_exports = object.set_exports !== void 0 && object.set_exports !== null ? SetExportsAction.fromPartial(object.set_exports) : void 0;
|
|
10422
9597
|
message.set_terraform = object.set_terraform !== void 0 && object.set_terraform !== null ? SetTerraformAction.fromPartial(object.set_terraform) : void 0;
|
|
@@ -10428,6 +9603,7 @@ var Action = {
|
|
|
10428
9603
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
10429
9604
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
10430
9605
|
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
9606
|
+
message.ungroup = object.ungroup !== void 0 && object.ungroup !== null ? UngroupAction.fromPartial(object.ungroup) : void 0;
|
|
10431
9607
|
return message;
|
|
10432
9608
|
}
|
|
10433
9609
|
};
|
|
@@ -11502,16 +10678,13 @@ var BundleStateEvent = {
|
|
|
11502
10678
|
}
|
|
11503
10679
|
};
|
|
11504
10680
|
function createBaseBundleState() {
|
|
11505
|
-
return { bundle: void 0,
|
|
10681
|
+
return { bundle: void 0, can_undo: false, can_redo: false, is_dirty: false };
|
|
11506
10682
|
}
|
|
11507
10683
|
var BundleState = {
|
|
11508
10684
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
11509
10685
|
if (message.bundle !== void 0) {
|
|
11510
10686
|
Bundle.encode(message.bundle, writer.uint32(10).fork()).join();
|
|
11511
10687
|
}
|
|
11512
|
-
globalThis.Object.entries(message.layouts).forEach(([key, value]) => {
|
|
11513
|
-
BundleState_LayoutsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
11514
|
-
});
|
|
11515
10688
|
if (message.can_undo !== false) {
|
|
11516
10689
|
writer.uint32(24).bool(message.can_undo);
|
|
11517
10690
|
}
|
|
@@ -11537,16 +10710,6 @@ var BundleState = {
|
|
|
11537
10710
|
message.bundle = Bundle.decode(reader, reader.uint32());
|
|
11538
10711
|
continue;
|
|
11539
10712
|
}
|
|
11540
|
-
case 2: {
|
|
11541
|
-
if (tag !== 18) {
|
|
11542
|
-
break;
|
|
11543
|
-
}
|
|
11544
|
-
const entry2 = BundleState_LayoutsEntry.decode(reader, reader.uint32());
|
|
11545
|
-
if (entry2.value !== void 0) {
|
|
11546
|
-
message.layouts[entry2.key] = entry2.value;
|
|
11547
|
-
}
|
|
11548
|
-
continue;
|
|
11549
|
-
}
|
|
11550
10713
|
case 3: {
|
|
11551
10714
|
if (tag !== 24) {
|
|
11552
10715
|
break;
|
|
@@ -11579,13 +10742,6 @@ var BundleState = {
|
|
|
11579
10742
|
fromJSON(object) {
|
|
11580
10743
|
return {
|
|
11581
10744
|
bundle: isSet3(object.bundle) ? Bundle.fromJSON(object.bundle) : void 0,
|
|
11582
|
-
layouts: isObject3(object.layouts) ? globalThis.Object.entries(object.layouts).reduce(
|
|
11583
|
-
(acc, [key, value]) => {
|
|
11584
|
-
acc[key] = GraphLayout.fromJSON(value);
|
|
11585
|
-
return acc;
|
|
11586
|
-
},
|
|
11587
|
-
{}
|
|
11588
|
-
) : {},
|
|
11589
10745
|
can_undo: isSet3(object.canUndo) ? globalThis.Boolean(object.canUndo) : isSet3(object.can_undo) ? globalThis.Boolean(object.can_undo) : false,
|
|
11590
10746
|
can_redo: isSet3(object.canRedo) ? globalThis.Boolean(object.canRedo) : isSet3(object.can_redo) ? globalThis.Boolean(object.can_redo) : false,
|
|
11591
10747
|
is_dirty: isSet3(object.isDirty) ? globalThis.Boolean(object.isDirty) : isSet3(object.is_dirty) ? globalThis.Boolean(object.is_dirty) : false
|
|
@@ -11596,15 +10752,6 @@ var BundleState = {
|
|
|
11596
10752
|
if (message.bundle !== void 0) {
|
|
11597
10753
|
obj.bundle = Bundle.toJSON(message.bundle);
|
|
11598
10754
|
}
|
|
11599
|
-
if (message.layouts) {
|
|
11600
|
-
const entries = globalThis.Object.entries(message.layouts);
|
|
11601
|
-
if (entries.length > 0) {
|
|
11602
|
-
obj.layouts = {};
|
|
11603
|
-
entries.forEach(([k, v]) => {
|
|
11604
|
-
obj.layouts[k] = GraphLayout.toJSON(v);
|
|
11605
|
-
});
|
|
11606
|
-
}
|
|
11607
|
-
}
|
|
11608
10755
|
if (message.can_undo !== false) {
|
|
11609
10756
|
obj.canUndo = message.can_undo;
|
|
11610
10757
|
}
|
|
@@ -11622,53 +10769,54 @@ var BundleState = {
|
|
|
11622
10769
|
fromPartial(object) {
|
|
11623
10770
|
const message = createBaseBundleState();
|
|
11624
10771
|
message.bundle = object.bundle !== void 0 && object.bundle !== null ? Bundle.fromPartial(object.bundle) : void 0;
|
|
11625
|
-
message.layouts = globalThis.Object.entries(object.layouts ?? {}).reduce(
|
|
11626
|
-
(acc, [key, value]) => {
|
|
11627
|
-
if (value !== void 0) {
|
|
11628
|
-
acc[key] = GraphLayout.fromPartial(value);
|
|
11629
|
-
}
|
|
11630
|
-
return acc;
|
|
11631
|
-
},
|
|
11632
|
-
{}
|
|
11633
|
-
);
|
|
11634
10772
|
message.can_undo = object.can_undo ?? false;
|
|
11635
10773
|
message.can_redo = object.can_redo ?? false;
|
|
11636
10774
|
message.is_dirty = object.is_dirty ?? false;
|
|
11637
10775
|
return message;
|
|
11638
10776
|
}
|
|
11639
10777
|
};
|
|
11640
|
-
function
|
|
11641
|
-
return {
|
|
10778
|
+
function createBaseBundleApplyResult() {
|
|
10779
|
+
return { success: false, errors: [], created: [] };
|
|
11642
10780
|
}
|
|
11643
|
-
var
|
|
10781
|
+
var BundleApplyResult = {
|
|
11644
10782
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
11645
|
-
if (message.
|
|
11646
|
-
writer.uint32(
|
|
10783
|
+
if (message.success !== false) {
|
|
10784
|
+
writer.uint32(8).bool(message.success);
|
|
11647
10785
|
}
|
|
11648
|
-
|
|
11649
|
-
|
|
10786
|
+
for (const v of message.errors) {
|
|
10787
|
+
GraphError.encode(v, writer.uint32(18).fork()).join();
|
|
10788
|
+
}
|
|
10789
|
+
for (const v of message.created) {
|
|
10790
|
+
CreatedRef.encode(v, writer.uint32(26).fork()).join();
|
|
11650
10791
|
}
|
|
11651
10792
|
return writer;
|
|
11652
10793
|
},
|
|
11653
10794
|
decode(input, length) {
|
|
11654
10795
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
11655
10796
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11656
|
-
const message =
|
|
10797
|
+
const message = createBaseBundleApplyResult();
|
|
11657
10798
|
while (reader.pos < end) {
|
|
11658
10799
|
const tag = reader.uint32();
|
|
11659
10800
|
switch (tag >>> 3) {
|
|
11660
10801
|
case 1: {
|
|
11661
|
-
if (tag !==
|
|
10802
|
+
if (tag !== 8) {
|
|
11662
10803
|
break;
|
|
11663
10804
|
}
|
|
11664
|
-
message.
|
|
10805
|
+
message.success = reader.bool();
|
|
11665
10806
|
continue;
|
|
11666
10807
|
}
|
|
11667
10808
|
case 2: {
|
|
11668
10809
|
if (tag !== 18) {
|
|
11669
10810
|
break;
|
|
11670
10811
|
}
|
|
11671
|
-
message.
|
|
10812
|
+
message.errors.push(GraphError.decode(reader, reader.uint32()));
|
|
10813
|
+
continue;
|
|
10814
|
+
}
|
|
10815
|
+
case 3: {
|
|
10816
|
+
if (tag !== 26) {
|
|
10817
|
+
break;
|
|
10818
|
+
}
|
|
10819
|
+
message.created.push(CreatedRef.decode(reader, reader.uint32()));
|
|
11672
10820
|
continue;
|
|
11673
10821
|
}
|
|
11674
10822
|
}
|
|
@@ -11681,62 +10829,87 @@ var BundleState_LayoutsEntry = {
|
|
|
11681
10829
|
},
|
|
11682
10830
|
fromJSON(object) {
|
|
11683
10831
|
return {
|
|
11684
|
-
|
|
11685
|
-
|
|
10832
|
+
success: isSet3(object.success) ? globalThis.Boolean(object.success) : false,
|
|
10833
|
+
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => GraphError.fromJSON(e)) : [],
|
|
10834
|
+
created: globalThis.Array.isArray(object?.created) ? object.created.map((e) => CreatedRef.fromJSON(e)) : []
|
|
11686
10835
|
};
|
|
11687
10836
|
},
|
|
11688
10837
|
toJSON(message) {
|
|
11689
10838
|
const obj = {};
|
|
11690
|
-
if (message.
|
|
11691
|
-
obj.
|
|
10839
|
+
if (message.success !== false) {
|
|
10840
|
+
obj.success = message.success;
|
|
11692
10841
|
}
|
|
11693
|
-
if (message.
|
|
11694
|
-
obj.
|
|
10842
|
+
if (message.errors?.length) {
|
|
10843
|
+
obj.errors = message.errors.map((e) => GraphError.toJSON(e));
|
|
10844
|
+
}
|
|
10845
|
+
if (message.created?.length) {
|
|
10846
|
+
obj.created = message.created.map((e) => CreatedRef.toJSON(e));
|
|
11695
10847
|
}
|
|
11696
10848
|
return obj;
|
|
11697
10849
|
},
|
|
11698
10850
|
create(base) {
|
|
11699
|
-
return
|
|
10851
|
+
return BundleApplyResult.fromPartial(base ?? {});
|
|
11700
10852
|
},
|
|
11701
10853
|
fromPartial(object) {
|
|
11702
|
-
const message =
|
|
11703
|
-
message.
|
|
11704
|
-
message.
|
|
10854
|
+
const message = createBaseBundleApplyResult();
|
|
10855
|
+
message.success = object.success ?? false;
|
|
10856
|
+
message.errors = object.errors?.map((e) => GraphError.fromPartial(e)) || [];
|
|
10857
|
+
message.created = object.created?.map((e) => CreatedRef.fromPartial(e)) || [];
|
|
11705
10858
|
return message;
|
|
11706
10859
|
}
|
|
11707
10860
|
};
|
|
11708
|
-
function
|
|
11709
|
-
return {
|
|
10861
|
+
function createBaseCreatedRef() {
|
|
10862
|
+
return { scope: "", id: "", module_key: "", source_id: "" };
|
|
11710
10863
|
}
|
|
11711
|
-
var
|
|
10864
|
+
var CreatedRef = {
|
|
11712
10865
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
11713
|
-
if (message.
|
|
11714
|
-
writer.uint32(
|
|
10866
|
+
if (message.scope !== "") {
|
|
10867
|
+
writer.uint32(10).string(message.scope);
|
|
11715
10868
|
}
|
|
11716
|
-
|
|
11717
|
-
|
|
10869
|
+
if (message.id !== "") {
|
|
10870
|
+
writer.uint32(18).string(message.id);
|
|
10871
|
+
}
|
|
10872
|
+
if (message.module_key !== "") {
|
|
10873
|
+
writer.uint32(26).string(message.module_key);
|
|
10874
|
+
}
|
|
10875
|
+
if (message.source_id !== "") {
|
|
10876
|
+
writer.uint32(34).string(message.source_id);
|
|
11718
10877
|
}
|
|
11719
10878
|
return writer;
|
|
11720
10879
|
},
|
|
11721
10880
|
decode(input, length) {
|
|
11722
10881
|
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
11723
10882
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
11724
|
-
const message =
|
|
10883
|
+
const message = createBaseCreatedRef();
|
|
11725
10884
|
while (reader.pos < end) {
|
|
11726
10885
|
const tag = reader.uint32();
|
|
11727
10886
|
switch (tag >>> 3) {
|
|
11728
10887
|
case 1: {
|
|
11729
|
-
if (tag !==
|
|
10888
|
+
if (tag !== 10) {
|
|
11730
10889
|
break;
|
|
11731
10890
|
}
|
|
11732
|
-
message.
|
|
10891
|
+
message.scope = reader.string();
|
|
11733
10892
|
continue;
|
|
11734
10893
|
}
|
|
11735
10894
|
case 2: {
|
|
11736
10895
|
if (tag !== 18) {
|
|
11737
10896
|
break;
|
|
11738
10897
|
}
|
|
11739
|
-
message.
|
|
10898
|
+
message.id = reader.string();
|
|
10899
|
+
continue;
|
|
10900
|
+
}
|
|
10901
|
+
case 3: {
|
|
10902
|
+
if (tag !== 26) {
|
|
10903
|
+
break;
|
|
10904
|
+
}
|
|
10905
|
+
message.module_key = reader.string();
|
|
10906
|
+
continue;
|
|
10907
|
+
}
|
|
10908
|
+
case 4: {
|
|
10909
|
+
if (tag !== 34) {
|
|
10910
|
+
break;
|
|
10911
|
+
}
|
|
10912
|
+
message.source_id = reader.string();
|
|
11740
10913
|
continue;
|
|
11741
10914
|
}
|
|
11742
10915
|
}
|
|
@@ -11749,27 +10922,37 @@ var BundleApplyResult = {
|
|
|
11749
10922
|
},
|
|
11750
10923
|
fromJSON(object) {
|
|
11751
10924
|
return {
|
|
11752
|
-
|
|
11753
|
-
|
|
10925
|
+
scope: isSet3(object.scope) ? globalThis.String(object.scope) : "",
|
|
10926
|
+
id: isSet3(object.id) ? globalThis.String(object.id) : "",
|
|
10927
|
+
module_key: isSet3(object.moduleKey) ? globalThis.String(object.moduleKey) : isSet3(object.module_key) ? globalThis.String(object.module_key) : "",
|
|
10928
|
+
source_id: isSet3(object.sourceId) ? globalThis.String(object.sourceId) : isSet3(object.source_id) ? globalThis.String(object.source_id) : ""
|
|
11754
10929
|
};
|
|
11755
10930
|
},
|
|
11756
10931
|
toJSON(message) {
|
|
11757
10932
|
const obj = {};
|
|
11758
|
-
if (message.
|
|
11759
|
-
obj.
|
|
10933
|
+
if (message.scope !== "") {
|
|
10934
|
+
obj.scope = message.scope;
|
|
11760
10935
|
}
|
|
11761
|
-
if (message.
|
|
11762
|
-
obj.
|
|
10936
|
+
if (message.id !== "") {
|
|
10937
|
+
obj.id = message.id;
|
|
10938
|
+
}
|
|
10939
|
+
if (message.module_key !== "") {
|
|
10940
|
+
obj.moduleKey = message.module_key;
|
|
10941
|
+
}
|
|
10942
|
+
if (message.source_id !== "") {
|
|
10943
|
+
obj.sourceId = message.source_id;
|
|
11763
10944
|
}
|
|
11764
10945
|
return obj;
|
|
11765
10946
|
},
|
|
11766
10947
|
create(base) {
|
|
11767
|
-
return
|
|
10948
|
+
return CreatedRef.fromPartial(base ?? {});
|
|
11768
10949
|
},
|
|
11769
10950
|
fromPartial(object) {
|
|
11770
|
-
const message =
|
|
11771
|
-
message.
|
|
11772
|
-
message.
|
|
10951
|
+
const message = createBaseCreatedRef();
|
|
10952
|
+
message.scope = object.scope ?? "";
|
|
10953
|
+
message.id = object.id ?? "";
|
|
10954
|
+
message.module_key = object.module_key ?? "";
|
|
10955
|
+
message.source_id = object.source_id ?? "";
|
|
11773
10956
|
return message;
|
|
11774
10957
|
}
|
|
11775
10958
|
};
|
|
@@ -13648,74 +12831,6 @@ var RenderError = {
|
|
|
13648
12831
|
return message;
|
|
13649
12832
|
}
|
|
13650
12833
|
};
|
|
13651
|
-
function createBasePosition2() {
|
|
13652
|
-
return { x: 0, y: 0 };
|
|
13653
|
-
}
|
|
13654
|
-
var Position2 = {
|
|
13655
|
-
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
13656
|
-
if (message.x !== 0) {
|
|
13657
|
-
writer.uint32(9).double(message.x);
|
|
13658
|
-
}
|
|
13659
|
-
if (message.y !== 0) {
|
|
13660
|
-
writer.uint32(17).double(message.y);
|
|
13661
|
-
}
|
|
13662
|
-
return writer;
|
|
13663
|
-
},
|
|
13664
|
-
decode(input, length) {
|
|
13665
|
-
const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
|
|
13666
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
13667
|
-
const message = createBasePosition2();
|
|
13668
|
-
while (reader.pos < end) {
|
|
13669
|
-
const tag = reader.uint32();
|
|
13670
|
-
switch (tag >>> 3) {
|
|
13671
|
-
case 1: {
|
|
13672
|
-
if (tag !== 9) {
|
|
13673
|
-
break;
|
|
13674
|
-
}
|
|
13675
|
-
message.x = reader.double();
|
|
13676
|
-
continue;
|
|
13677
|
-
}
|
|
13678
|
-
case 2: {
|
|
13679
|
-
if (tag !== 17) {
|
|
13680
|
-
break;
|
|
13681
|
-
}
|
|
13682
|
-
message.y = reader.double();
|
|
13683
|
-
continue;
|
|
13684
|
-
}
|
|
13685
|
-
}
|
|
13686
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
13687
|
-
break;
|
|
13688
|
-
}
|
|
13689
|
-
reader.skip(tag & 7);
|
|
13690
|
-
}
|
|
13691
|
-
return message;
|
|
13692
|
-
},
|
|
13693
|
-
fromJSON(object) {
|
|
13694
|
-
return {
|
|
13695
|
-
x: isSet3(object.x) ? globalThis.Number(object.x) : 0,
|
|
13696
|
-
y: isSet3(object.y) ? globalThis.Number(object.y) : 0
|
|
13697
|
-
};
|
|
13698
|
-
},
|
|
13699
|
-
toJSON(message) {
|
|
13700
|
-
const obj = {};
|
|
13701
|
-
if (message.x !== 0) {
|
|
13702
|
-
obj.x = message.x;
|
|
13703
|
-
}
|
|
13704
|
-
if (message.y !== 0) {
|
|
13705
|
-
obj.y = message.y;
|
|
13706
|
-
}
|
|
13707
|
-
return obj;
|
|
13708
|
-
},
|
|
13709
|
-
create(base) {
|
|
13710
|
-
return Position2.fromPartial(base ?? {});
|
|
13711
|
-
},
|
|
13712
|
-
fromPartial(object) {
|
|
13713
|
-
const message = createBasePosition2();
|
|
13714
|
-
message.x = object.x ?? 0;
|
|
13715
|
-
message.y = object.y ?? 0;
|
|
13716
|
-
return message;
|
|
13717
|
-
}
|
|
13718
|
-
};
|
|
13719
12834
|
function createBaseInputDef2() {
|
|
13720
12835
|
return {
|
|
13721
12836
|
name: "",
|
|
@@ -14297,7 +13412,9 @@ var LaceEngineService = {
|
|
|
14297
13412
|
* BundleState, which acts as the "subscribed" ready signal.
|
|
14298
13413
|
*
|
|
14299
13414
|
* Consumers (portal + extension canvas engines) project locally via
|
|
14300
|
-
* `@lace-cloud/canvas`'s `projectCanvasView(bundle,
|
|
13415
|
+
* `@lace-cloud/canvas`'s `projectCanvasView(bundle, arrangement?, meta)`.
|
|
13416
|
+
* `arrangement` (node positions, group collapse/label) is consumer-owned
|
|
13417
|
+
* view state — it never travels over this RPC.
|
|
14301
13418
|
*/
|
|
14302
13419
|
subscribe: {
|
|
14303
13420
|
path: "/lace.engine.LaceEngine/Subscribe",
|