@lace-cloud/proto 0.13.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 +252 -853
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -51
- package/dist/index.d.ts +31 -51
- package/dist/index.mjs +249 -850
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -3310,7 +3310,7 @@ var TerraformBlock_RequiredProvidersEntry = {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
};
|
|
3312
3312
|
function createBaseProviderRequirement() {
|
|
3313
|
-
return { source: "", version: "" };
|
|
3313
|
+
return { source: "", version: "", configuration_aliases: [] };
|
|
3314
3314
|
}
|
|
3315
3315
|
var ProviderRequirement = {
|
|
3316
3316
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -3320,6 +3320,9 @@ var ProviderRequirement = {
|
|
|
3320
3320
|
if (message.version !== "") {
|
|
3321
3321
|
writer.uint32(18).string(message.version);
|
|
3322
3322
|
}
|
|
3323
|
+
for (const v of message.configuration_aliases) {
|
|
3324
|
+
writer.uint32(26).string(v);
|
|
3325
|
+
}
|
|
3323
3326
|
return writer;
|
|
3324
3327
|
},
|
|
3325
3328
|
decode(input, length) {
|
|
@@ -3343,692 +3346,11 @@ var ProviderRequirement = {
|
|
|
3343
3346
|
message.version = reader.string();
|
|
3344
3347
|
continue;
|
|
3345
3348
|
}
|
|
3346
|
-
}
|
|
3347
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3348
|
-
break;
|
|
3349
|
-
}
|
|
3350
|
-
reader.skip(tag & 7);
|
|
3351
|
-
}
|
|
3352
|
-
return message;
|
|
3353
|
-
},
|
|
3354
|
-
fromJSON(object) {
|
|
3355
|
-
return {
|
|
3356
|
-
source: isSet2(object.source) ? globalThis.String(object.source) : "",
|
|
3357
|
-
version: isSet2(object.version) ? globalThis.String(object.version) : ""
|
|
3358
|
-
};
|
|
3359
|
-
},
|
|
3360
|
-
toJSON(message) {
|
|
3361
|
-
const obj = {};
|
|
3362
|
-
if (message.source !== "") {
|
|
3363
|
-
obj.source = message.source;
|
|
3364
|
-
}
|
|
3365
|
-
if (message.version !== "") {
|
|
3366
|
-
obj.version = message.version;
|
|
3367
|
-
}
|
|
3368
|
-
return obj;
|
|
3369
|
-
},
|
|
3370
|
-
create(base) {
|
|
3371
|
-
return ProviderRequirement.fromPartial(base ?? {});
|
|
3372
|
-
},
|
|
3373
|
-
fromPartial(object) {
|
|
3374
|
-
const message = createBaseProviderRequirement();
|
|
3375
|
-
message.source = object.source ?? "";
|
|
3376
|
-
message.version = object.version ?? "";
|
|
3377
|
-
return message;
|
|
3378
|
-
}
|
|
3379
|
-
};
|
|
3380
|
-
function createBaseBackendConfig() {
|
|
3381
|
-
return { type: "", config: {} };
|
|
3382
|
-
}
|
|
3383
|
-
var BackendConfig = {
|
|
3384
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3385
|
-
if (message.type !== "") {
|
|
3386
|
-
writer.uint32(10).string(message.type);
|
|
3387
|
-
}
|
|
3388
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3389
|
-
if (value !== void 0) {
|
|
3390
|
-
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3391
|
-
}
|
|
3392
|
-
});
|
|
3393
|
-
return writer;
|
|
3394
|
-
},
|
|
3395
|
-
decode(input, length) {
|
|
3396
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3397
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3398
|
-
const message = createBaseBackendConfig();
|
|
3399
|
-
while (reader.pos < end) {
|
|
3400
|
-
const tag = reader.uint32();
|
|
3401
|
-
switch (tag >>> 3) {
|
|
3402
|
-
case 1: {
|
|
3403
|
-
if (tag !== 10) {
|
|
3404
|
-
break;
|
|
3405
|
-
}
|
|
3406
|
-
message.type = reader.string();
|
|
3407
|
-
continue;
|
|
3408
|
-
}
|
|
3409
|
-
case 2: {
|
|
3410
|
-
if (tag !== 18) {
|
|
3411
|
-
break;
|
|
3412
|
-
}
|
|
3413
|
-
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3414
|
-
if (entry2.value !== void 0) {
|
|
3415
|
-
message.config[entry2.key] = entry2.value;
|
|
3416
|
-
}
|
|
3417
|
-
continue;
|
|
3418
|
-
}
|
|
3419
|
-
}
|
|
3420
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3421
|
-
break;
|
|
3422
|
-
}
|
|
3423
|
-
reader.skip(tag & 7);
|
|
3424
|
-
}
|
|
3425
|
-
return message;
|
|
3426
|
-
},
|
|
3427
|
-
fromJSON(object) {
|
|
3428
|
-
return {
|
|
3429
|
-
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3430
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3431
|
-
(acc, [key, value]) => {
|
|
3432
|
-
acc[key] = value;
|
|
3433
|
-
return acc;
|
|
3434
|
-
},
|
|
3435
|
-
{}
|
|
3436
|
-
) : {}
|
|
3437
|
-
};
|
|
3438
|
-
},
|
|
3439
|
-
toJSON(message) {
|
|
3440
|
-
const obj = {};
|
|
3441
|
-
if (message.type !== "") {
|
|
3442
|
-
obj.type = message.type;
|
|
3443
|
-
}
|
|
3444
|
-
if (message.config) {
|
|
3445
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3446
|
-
if (entries.length > 0) {
|
|
3447
|
-
obj.config = {};
|
|
3448
|
-
entries.forEach(([k, v]) => {
|
|
3449
|
-
obj.config[k] = v;
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
return obj;
|
|
3454
|
-
},
|
|
3455
|
-
create(base) {
|
|
3456
|
-
return BackendConfig.fromPartial(base ?? {});
|
|
3457
|
-
},
|
|
3458
|
-
fromPartial(object) {
|
|
3459
|
-
const message = createBaseBackendConfig();
|
|
3460
|
-
message.type = object.type ?? "";
|
|
3461
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3462
|
-
(acc, [key, value]) => {
|
|
3463
|
-
if (value !== void 0) {
|
|
3464
|
-
acc[key] = value;
|
|
3465
|
-
}
|
|
3466
|
-
return acc;
|
|
3467
|
-
},
|
|
3468
|
-
{}
|
|
3469
|
-
);
|
|
3470
|
-
return message;
|
|
3471
|
-
}
|
|
3472
|
-
};
|
|
3473
|
-
function createBaseBackendConfig_ConfigEntry() {
|
|
3474
|
-
return { key: "", value: void 0 };
|
|
3475
|
-
}
|
|
3476
|
-
var BackendConfig_ConfigEntry = {
|
|
3477
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3478
|
-
if (message.key !== "") {
|
|
3479
|
-
writer.uint32(10).string(message.key);
|
|
3480
|
-
}
|
|
3481
|
-
if (message.value !== void 0) {
|
|
3482
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3483
|
-
}
|
|
3484
|
-
return writer;
|
|
3485
|
-
},
|
|
3486
|
-
decode(input, length) {
|
|
3487
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3488
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3489
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3490
|
-
while (reader.pos < end) {
|
|
3491
|
-
const tag = reader.uint32();
|
|
3492
|
-
switch (tag >>> 3) {
|
|
3493
|
-
case 1: {
|
|
3494
|
-
if (tag !== 10) {
|
|
3495
|
-
break;
|
|
3496
|
-
}
|
|
3497
|
-
message.key = reader.string();
|
|
3498
|
-
continue;
|
|
3499
|
-
}
|
|
3500
|
-
case 2: {
|
|
3501
|
-
if (tag !== 18) {
|
|
3502
|
-
break;
|
|
3503
|
-
}
|
|
3504
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
3505
|
-
continue;
|
|
3506
|
-
}
|
|
3507
|
-
}
|
|
3508
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3509
|
-
break;
|
|
3510
|
-
}
|
|
3511
|
-
reader.skip(tag & 7);
|
|
3512
|
-
}
|
|
3513
|
-
return message;
|
|
3514
|
-
},
|
|
3515
|
-
fromJSON(object) {
|
|
3516
|
-
return {
|
|
3517
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3518
|
-
value: isSet2(object?.value) ? object.value : void 0
|
|
3519
|
-
};
|
|
3520
|
-
},
|
|
3521
|
-
toJSON(message) {
|
|
3522
|
-
const obj = {};
|
|
3523
|
-
if (message.key !== "") {
|
|
3524
|
-
obj.key = message.key;
|
|
3525
|
-
}
|
|
3526
|
-
if (message.value !== void 0) {
|
|
3527
|
-
obj.value = message.value;
|
|
3528
|
-
}
|
|
3529
|
-
return obj;
|
|
3530
|
-
},
|
|
3531
|
-
create(base) {
|
|
3532
|
-
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3533
|
-
},
|
|
3534
|
-
fromPartial(object) {
|
|
3535
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3536
|
-
message.key = object.key ?? "";
|
|
3537
|
-
message.value = object.value ?? void 0;
|
|
3538
|
-
return message;
|
|
3539
|
-
}
|
|
3540
|
-
};
|
|
3541
|
-
function createBaseProviderConfig() {
|
|
3542
|
-
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3543
|
-
}
|
|
3544
|
-
var ProviderConfig = {
|
|
3545
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3546
|
-
if (message.name !== "") {
|
|
3547
|
-
writer.uint32(10).string(message.name);
|
|
3548
|
-
}
|
|
3549
|
-
if (message.alias !== "") {
|
|
3550
|
-
writer.uint32(18).string(message.alias);
|
|
3551
|
-
}
|
|
3552
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3553
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3554
|
-
});
|
|
3555
|
-
for (const v of message.blocks) {
|
|
3556
|
-
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3557
|
-
}
|
|
3558
|
-
return writer;
|
|
3559
|
-
},
|
|
3560
|
-
decode(input, length) {
|
|
3561
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3562
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3563
|
-
const message = createBaseProviderConfig();
|
|
3564
|
-
while (reader.pos < end) {
|
|
3565
|
-
const tag = reader.uint32();
|
|
3566
|
-
switch (tag >>> 3) {
|
|
3567
|
-
case 1: {
|
|
3568
|
-
if (tag !== 10) {
|
|
3569
|
-
break;
|
|
3570
|
-
}
|
|
3571
|
-
message.name = reader.string();
|
|
3572
|
-
continue;
|
|
3573
|
-
}
|
|
3574
|
-
case 2: {
|
|
3575
|
-
if (tag !== 18) {
|
|
3576
|
-
break;
|
|
3577
|
-
}
|
|
3578
|
-
message.alias = reader.string();
|
|
3579
|
-
continue;
|
|
3580
|
-
}
|
|
3581
3349
|
case 3: {
|
|
3582
3350
|
if (tag !== 26) {
|
|
3583
3351
|
break;
|
|
3584
3352
|
}
|
|
3585
|
-
|
|
3586
|
-
if (entry3.value !== void 0) {
|
|
3587
|
-
message.config[entry3.key] = entry3.value;
|
|
3588
|
-
}
|
|
3589
|
-
continue;
|
|
3590
|
-
}
|
|
3591
|
-
case 4: {
|
|
3592
|
-
if (tag !== 34) {
|
|
3593
|
-
break;
|
|
3594
|
-
}
|
|
3595
|
-
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
3596
|
-
continue;
|
|
3597
|
-
}
|
|
3598
|
-
}
|
|
3599
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3600
|
-
break;
|
|
3601
|
-
}
|
|
3602
|
-
reader.skip(tag & 7);
|
|
3603
|
-
}
|
|
3604
|
-
return message;
|
|
3605
|
-
},
|
|
3606
|
-
fromJSON(object) {
|
|
3607
|
-
return {
|
|
3608
|
-
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
3609
|
-
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3610
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3611
|
-
(acc, [key, value]) => {
|
|
3612
|
-
acc[key] = Binding.fromJSON(value);
|
|
3613
|
-
return acc;
|
|
3614
|
-
},
|
|
3615
|
-
{}
|
|
3616
|
-
) : {},
|
|
3617
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
3618
|
-
};
|
|
3619
|
-
},
|
|
3620
|
-
toJSON(message) {
|
|
3621
|
-
const obj = {};
|
|
3622
|
-
if (message.name !== "") {
|
|
3623
|
-
obj.name = message.name;
|
|
3624
|
-
}
|
|
3625
|
-
if (message.alias !== "") {
|
|
3626
|
-
obj.alias = message.alias;
|
|
3627
|
-
}
|
|
3628
|
-
if (message.config) {
|
|
3629
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3630
|
-
if (entries.length > 0) {
|
|
3631
|
-
obj.config = {};
|
|
3632
|
-
entries.forEach(([k, v]) => {
|
|
3633
|
-
obj.config[k] = Binding.toJSON(v);
|
|
3634
|
-
});
|
|
3635
|
-
}
|
|
3636
|
-
}
|
|
3637
|
-
if (message.blocks?.length) {
|
|
3638
|
-
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3639
|
-
}
|
|
3640
|
-
return obj;
|
|
3641
|
-
},
|
|
3642
|
-
create(base) {
|
|
3643
|
-
return ProviderConfig.fromPartial(base ?? {});
|
|
3644
|
-
},
|
|
3645
|
-
fromPartial(object) {
|
|
3646
|
-
const message = createBaseProviderConfig();
|
|
3647
|
-
message.name = object.name ?? "";
|
|
3648
|
-
message.alias = object.alias ?? "";
|
|
3649
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3650
|
-
(acc, [key, value]) => {
|
|
3651
|
-
if (value !== void 0) {
|
|
3652
|
-
acc[key] = Binding.fromPartial(value);
|
|
3653
|
-
}
|
|
3654
|
-
return acc;
|
|
3655
|
-
},
|
|
3656
|
-
{}
|
|
3657
|
-
);
|
|
3658
|
-
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
3659
|
-
return message;
|
|
3660
|
-
}
|
|
3661
|
-
};
|
|
3662
|
-
function createBaseProviderConfig_ConfigEntry() {
|
|
3663
|
-
return { key: "", value: void 0 };
|
|
3664
|
-
}
|
|
3665
|
-
var ProviderConfig_ConfigEntry = {
|
|
3666
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3667
|
-
if (message.key !== "") {
|
|
3668
|
-
writer.uint32(10).string(message.key);
|
|
3669
|
-
}
|
|
3670
|
-
if (message.value !== void 0) {
|
|
3671
|
-
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3672
|
-
}
|
|
3673
|
-
return writer;
|
|
3674
|
-
},
|
|
3675
|
-
decode(input, length) {
|
|
3676
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3677
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3678
|
-
const message = createBaseProviderConfig_ConfigEntry();
|
|
3679
|
-
while (reader.pos < end) {
|
|
3680
|
-
const tag = reader.uint32();
|
|
3681
|
-
switch (tag >>> 3) {
|
|
3682
|
-
case 1: {
|
|
3683
|
-
if (tag !== 10) {
|
|
3684
|
-
break;
|
|
3685
|
-
}
|
|
3686
|
-
message.key = reader.string();
|
|
3687
|
-
continue;
|
|
3688
|
-
}
|
|
3689
|
-
case 2: {
|
|
3690
|
-
if (tag !== 18) {
|
|
3691
|
-
break;
|
|
3692
|
-
}
|
|
3693
|
-
message.value = Binding.decode(reader, reader.uint32());
|
|
3694
|
-
continue;
|
|
3695
|
-
}
|
|
3696
|
-
}
|
|
3697
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3698
|
-
break;
|
|
3699
|
-
}
|
|
3700
|
-
reader.skip(tag & 7);
|
|
3701
|
-
}
|
|
3702
|
-
return message;
|
|
3703
|
-
},
|
|
3704
|
-
fromJSON(object) {
|
|
3705
|
-
return {
|
|
3706
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3707
|
-
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3708
|
-
};
|
|
3709
|
-
},
|
|
3710
|
-
toJSON(message) {
|
|
3711
|
-
const obj = {};
|
|
3712
|
-
if (message.key !== "") {
|
|
3713
|
-
obj.key = message.key;
|
|
3714
|
-
}
|
|
3715
|
-
if (message.value !== void 0) {
|
|
3716
|
-
obj.value = Binding.toJSON(message.value);
|
|
3717
|
-
}
|
|
3718
|
-
return obj;
|
|
3719
|
-
},
|
|
3720
|
-
create(base) {
|
|
3721
|
-
return ProviderConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3722
|
-
},
|
|
3723
|
-
fromPartial(object) {
|
|
3724
|
-
const message = createBaseProviderConfig_ConfigEntry();
|
|
3725
|
-
message.key = object.key ?? "";
|
|
3726
|
-
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3727
|
-
return message;
|
|
3728
|
-
}
|
|
3729
|
-
};
|
|
3730
|
-
function createBaseGraphLayout() {
|
|
3731
|
-
return { nodes: {}, groups: {} };
|
|
3732
|
-
}
|
|
3733
|
-
var GraphLayout = {
|
|
3734
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3735
|
-
globalThis.Object.entries(message.nodes).forEach(([key, value]) => {
|
|
3736
|
-
GraphLayout_NodesEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
3737
|
-
});
|
|
3738
|
-
globalThis.Object.entries(message.groups).forEach(([key, value]) => {
|
|
3739
|
-
GraphLayout_GroupsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3740
|
-
});
|
|
3741
|
-
return writer;
|
|
3742
|
-
},
|
|
3743
|
-
decode(input, length) {
|
|
3744
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3745
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3746
|
-
const message = createBaseGraphLayout();
|
|
3747
|
-
while (reader.pos < end) {
|
|
3748
|
-
const tag = reader.uint32();
|
|
3749
|
-
switch (tag >>> 3) {
|
|
3750
|
-
case 1: {
|
|
3751
|
-
if (tag !== 10) {
|
|
3752
|
-
break;
|
|
3753
|
-
}
|
|
3754
|
-
const entry1 = GraphLayout_NodesEntry.decode(reader, reader.uint32());
|
|
3755
|
-
if (entry1.value !== void 0) {
|
|
3756
|
-
message.nodes[entry1.key] = entry1.value;
|
|
3757
|
-
}
|
|
3758
|
-
continue;
|
|
3759
|
-
}
|
|
3760
|
-
case 2: {
|
|
3761
|
-
if (tag !== 18) {
|
|
3762
|
-
break;
|
|
3763
|
-
}
|
|
3764
|
-
const entry2 = GraphLayout_GroupsEntry.decode(reader, reader.uint32());
|
|
3765
|
-
if (entry2.value !== void 0) {
|
|
3766
|
-
message.groups[entry2.key] = entry2.value;
|
|
3767
|
-
}
|
|
3768
|
-
continue;
|
|
3769
|
-
}
|
|
3770
|
-
}
|
|
3771
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3772
|
-
break;
|
|
3773
|
-
}
|
|
3774
|
-
reader.skip(tag & 7);
|
|
3775
|
-
}
|
|
3776
|
-
return message;
|
|
3777
|
-
},
|
|
3778
|
-
fromJSON(object) {
|
|
3779
|
-
return {
|
|
3780
|
-
nodes: isObject2(object.nodes) ? globalThis.Object.entries(object.nodes).reduce(
|
|
3781
|
-
(acc, [key, value]) => {
|
|
3782
|
-
acc[key] = NodeLayout.fromJSON(value);
|
|
3783
|
-
return acc;
|
|
3784
|
-
},
|
|
3785
|
-
{}
|
|
3786
|
-
) : {},
|
|
3787
|
-
groups: isObject2(object.groups) ? globalThis.Object.entries(object.groups).reduce(
|
|
3788
|
-
(acc, [key, value]) => {
|
|
3789
|
-
acc[key] = NodeGroup.fromJSON(value);
|
|
3790
|
-
return acc;
|
|
3791
|
-
},
|
|
3792
|
-
{}
|
|
3793
|
-
) : {}
|
|
3794
|
-
};
|
|
3795
|
-
},
|
|
3796
|
-
toJSON(message) {
|
|
3797
|
-
const obj = {};
|
|
3798
|
-
if (message.nodes) {
|
|
3799
|
-
const entries = globalThis.Object.entries(message.nodes);
|
|
3800
|
-
if (entries.length > 0) {
|
|
3801
|
-
obj.nodes = {};
|
|
3802
|
-
entries.forEach(([k, v]) => {
|
|
3803
|
-
obj.nodes[k] = NodeLayout.toJSON(v);
|
|
3804
|
-
});
|
|
3805
|
-
}
|
|
3806
|
-
}
|
|
3807
|
-
if (message.groups) {
|
|
3808
|
-
const entries = globalThis.Object.entries(message.groups);
|
|
3809
|
-
if (entries.length > 0) {
|
|
3810
|
-
obj.groups = {};
|
|
3811
|
-
entries.forEach(([k, v]) => {
|
|
3812
|
-
obj.groups[k] = NodeGroup.toJSON(v);
|
|
3813
|
-
});
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
return obj;
|
|
3817
|
-
},
|
|
3818
|
-
create(base) {
|
|
3819
|
-
return GraphLayout.fromPartial(base ?? {});
|
|
3820
|
-
},
|
|
3821
|
-
fromPartial(object) {
|
|
3822
|
-
const message = createBaseGraphLayout();
|
|
3823
|
-
message.nodes = globalThis.Object.entries(object.nodes ?? {}).reduce(
|
|
3824
|
-
(acc, [key, value]) => {
|
|
3825
|
-
if (value !== void 0) {
|
|
3826
|
-
acc[key] = NodeLayout.fromPartial(value);
|
|
3827
|
-
}
|
|
3828
|
-
return acc;
|
|
3829
|
-
},
|
|
3830
|
-
{}
|
|
3831
|
-
);
|
|
3832
|
-
message.groups = globalThis.Object.entries(object.groups ?? {}).reduce(
|
|
3833
|
-
(acc, [key, value]) => {
|
|
3834
|
-
if (value !== void 0) {
|
|
3835
|
-
acc[key] = NodeGroup.fromPartial(value);
|
|
3836
|
-
}
|
|
3837
|
-
return acc;
|
|
3838
|
-
},
|
|
3839
|
-
{}
|
|
3840
|
-
);
|
|
3841
|
-
return message;
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
|
-
function createBaseGraphLayout_NodesEntry() {
|
|
3845
|
-
return { key: "", value: void 0 };
|
|
3846
|
-
}
|
|
3847
|
-
var GraphLayout_NodesEntry = {
|
|
3848
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3849
|
-
if (message.key !== "") {
|
|
3850
|
-
writer.uint32(10).string(message.key);
|
|
3851
|
-
}
|
|
3852
|
-
if (message.value !== void 0) {
|
|
3853
|
-
NodeLayout.encode(message.value, writer.uint32(18).fork()).join();
|
|
3854
|
-
}
|
|
3855
|
-
return writer;
|
|
3856
|
-
},
|
|
3857
|
-
decode(input, length) {
|
|
3858
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3859
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3860
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3861
|
-
while (reader.pos < end) {
|
|
3862
|
-
const tag = reader.uint32();
|
|
3863
|
-
switch (tag >>> 3) {
|
|
3864
|
-
case 1: {
|
|
3865
|
-
if (tag !== 10) {
|
|
3866
|
-
break;
|
|
3867
|
-
}
|
|
3868
|
-
message.key = reader.string();
|
|
3869
|
-
continue;
|
|
3870
|
-
}
|
|
3871
|
-
case 2: {
|
|
3872
|
-
if (tag !== 18) {
|
|
3873
|
-
break;
|
|
3874
|
-
}
|
|
3875
|
-
message.value = NodeLayout.decode(reader, reader.uint32());
|
|
3876
|
-
continue;
|
|
3877
|
-
}
|
|
3878
|
-
}
|
|
3879
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3880
|
-
break;
|
|
3881
|
-
}
|
|
3882
|
-
reader.skip(tag & 7);
|
|
3883
|
-
}
|
|
3884
|
-
return message;
|
|
3885
|
-
},
|
|
3886
|
-
fromJSON(object) {
|
|
3887
|
-
return {
|
|
3888
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3889
|
-
value: isSet2(object.value) ? NodeLayout.fromJSON(object.value) : void 0
|
|
3890
|
-
};
|
|
3891
|
-
},
|
|
3892
|
-
toJSON(message) {
|
|
3893
|
-
const obj = {};
|
|
3894
|
-
if (message.key !== "") {
|
|
3895
|
-
obj.key = message.key;
|
|
3896
|
-
}
|
|
3897
|
-
if (message.value !== void 0) {
|
|
3898
|
-
obj.value = NodeLayout.toJSON(message.value);
|
|
3899
|
-
}
|
|
3900
|
-
return obj;
|
|
3901
|
-
},
|
|
3902
|
-
create(base) {
|
|
3903
|
-
return GraphLayout_NodesEntry.fromPartial(base ?? {});
|
|
3904
|
-
},
|
|
3905
|
-
fromPartial(object) {
|
|
3906
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3907
|
-
message.key = object.key ?? "";
|
|
3908
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeLayout.fromPartial(object.value) : void 0;
|
|
3909
|
-
return message;
|
|
3910
|
-
}
|
|
3911
|
-
};
|
|
3912
|
-
function createBaseGraphLayout_GroupsEntry() {
|
|
3913
|
-
return { key: "", value: void 0 };
|
|
3914
|
-
}
|
|
3915
|
-
var GraphLayout_GroupsEntry = {
|
|
3916
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3917
|
-
if (message.key !== "") {
|
|
3918
|
-
writer.uint32(10).string(message.key);
|
|
3919
|
-
}
|
|
3920
|
-
if (message.value !== void 0) {
|
|
3921
|
-
NodeGroup.encode(message.value, writer.uint32(18).fork()).join();
|
|
3922
|
-
}
|
|
3923
|
-
return writer;
|
|
3924
|
-
},
|
|
3925
|
-
decode(input, length) {
|
|
3926
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
3927
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3928
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3929
|
-
while (reader.pos < end) {
|
|
3930
|
-
const tag = reader.uint32();
|
|
3931
|
-
switch (tag >>> 3) {
|
|
3932
|
-
case 1: {
|
|
3933
|
-
if (tag !== 10) {
|
|
3934
|
-
break;
|
|
3935
|
-
}
|
|
3936
|
-
message.key = reader.string();
|
|
3937
|
-
continue;
|
|
3938
|
-
}
|
|
3939
|
-
case 2: {
|
|
3940
|
-
if (tag !== 18) {
|
|
3941
|
-
break;
|
|
3942
|
-
}
|
|
3943
|
-
message.value = NodeGroup.decode(reader, reader.uint32());
|
|
3944
|
-
continue;
|
|
3945
|
-
}
|
|
3946
|
-
}
|
|
3947
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3948
|
-
break;
|
|
3949
|
-
}
|
|
3950
|
-
reader.skip(tag & 7);
|
|
3951
|
-
}
|
|
3952
|
-
return message;
|
|
3953
|
-
},
|
|
3954
|
-
fromJSON(object) {
|
|
3955
|
-
return {
|
|
3956
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3957
|
-
value: isSet2(object.value) ? NodeGroup.fromJSON(object.value) : void 0
|
|
3958
|
-
};
|
|
3959
|
-
},
|
|
3960
|
-
toJSON(message) {
|
|
3961
|
-
const obj = {};
|
|
3962
|
-
if (message.key !== "") {
|
|
3963
|
-
obj.key = message.key;
|
|
3964
|
-
}
|
|
3965
|
-
if (message.value !== void 0) {
|
|
3966
|
-
obj.value = NodeGroup.toJSON(message.value);
|
|
3967
|
-
}
|
|
3968
|
-
return obj;
|
|
3969
|
-
},
|
|
3970
|
-
create(base) {
|
|
3971
|
-
return GraphLayout_GroupsEntry.fromPartial(base ?? {});
|
|
3972
|
-
},
|
|
3973
|
-
fromPartial(object) {
|
|
3974
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3975
|
-
message.key = object.key ?? "";
|
|
3976
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeGroup.fromPartial(object.value) : void 0;
|
|
3977
|
-
return message;
|
|
3978
|
-
}
|
|
3979
|
-
};
|
|
3980
|
-
function createBaseNodeGroup() {
|
|
3981
|
-
return { id: "", label: "", node_ids: [], collapsed: false };
|
|
3982
|
-
}
|
|
3983
|
-
var NodeGroup = {
|
|
3984
|
-
encode(message, writer = new BinaryWriter2()) {
|
|
3985
|
-
if (message.id !== "") {
|
|
3986
|
-
writer.uint32(10).string(message.id);
|
|
3987
|
-
}
|
|
3988
|
-
if (message.label !== "") {
|
|
3989
|
-
writer.uint32(18).string(message.label);
|
|
3990
|
-
}
|
|
3991
|
-
for (const v of message.node_ids) {
|
|
3992
|
-
writer.uint32(26).string(v);
|
|
3993
|
-
}
|
|
3994
|
-
if (message.collapsed !== false) {
|
|
3995
|
-
writer.uint32(32).bool(message.collapsed);
|
|
3996
|
-
}
|
|
3997
|
-
return writer;
|
|
3998
|
-
},
|
|
3999
|
-
decode(input, length) {
|
|
4000
|
-
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
4001
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4002
|
-
const message = createBaseNodeGroup();
|
|
4003
|
-
while (reader.pos < end) {
|
|
4004
|
-
const tag = reader.uint32();
|
|
4005
|
-
switch (tag >>> 3) {
|
|
4006
|
-
case 1: {
|
|
4007
|
-
if (tag !== 10) {
|
|
4008
|
-
break;
|
|
4009
|
-
}
|
|
4010
|
-
message.id = reader.string();
|
|
4011
|
-
continue;
|
|
4012
|
-
}
|
|
4013
|
-
case 2: {
|
|
4014
|
-
if (tag !== 18) {
|
|
4015
|
-
break;
|
|
4016
|
-
}
|
|
4017
|
-
message.label = reader.string();
|
|
4018
|
-
continue;
|
|
4019
|
-
}
|
|
4020
|
-
case 3: {
|
|
4021
|
-
if (tag !== 26) {
|
|
4022
|
-
break;
|
|
4023
|
-
}
|
|
4024
|
-
message.node_ids.push(reader.string());
|
|
4025
|
-
continue;
|
|
4026
|
-
}
|
|
4027
|
-
case 4: {
|
|
4028
|
-
if (tag !== 32) {
|
|
4029
|
-
break;
|
|
4030
|
-
}
|
|
4031
|
-
message.collapsed = reader.bool();
|
|
3353
|
+
message.configuration_aliases.push(reader.string());
|
|
4032
3354
|
continue;
|
|
4033
3355
|
}
|
|
4034
3356
|
}
|
|
@@ -4041,54 +3363,54 @@ var NodeGroup = {
|
|
|
4041
3363
|
},
|
|
4042
3364
|
fromJSON(object) {
|
|
4043
3365
|
return {
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
collapsed: isSet2(object.collapsed) ? globalThis.Boolean(object.collapsed) : false
|
|
3366
|
+
source: isSet2(object.source) ? globalThis.String(object.source) : "",
|
|
3367
|
+
version: isSet2(object.version) ? globalThis.String(object.version) : "",
|
|
3368
|
+
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
4048
3369
|
};
|
|
4049
3370
|
},
|
|
4050
3371
|
toJSON(message) {
|
|
4051
3372
|
const obj = {};
|
|
4052
|
-
if (message.
|
|
4053
|
-
obj.
|
|
4054
|
-
}
|
|
4055
|
-
if (message.label !== "") {
|
|
4056
|
-
obj.label = message.label;
|
|
3373
|
+
if (message.source !== "") {
|
|
3374
|
+
obj.source = message.source;
|
|
4057
3375
|
}
|
|
4058
|
-
if (message.
|
|
4059
|
-
obj.
|
|
3376
|
+
if (message.version !== "") {
|
|
3377
|
+
obj.version = message.version;
|
|
4060
3378
|
}
|
|
4061
|
-
if (message.
|
|
4062
|
-
obj.
|
|
3379
|
+
if (message.configuration_aliases?.length) {
|
|
3380
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
4063
3381
|
}
|
|
4064
3382
|
return obj;
|
|
4065
3383
|
},
|
|
4066
3384
|
create(base) {
|
|
4067
|
-
return
|
|
3385
|
+
return ProviderRequirement.fromPartial(base ?? {});
|
|
4068
3386
|
},
|
|
4069
3387
|
fromPartial(object) {
|
|
4070
|
-
const message =
|
|
4071
|
-
message.
|
|
4072
|
-
message.
|
|
4073
|
-
message.
|
|
4074
|
-
message.collapsed = object.collapsed ?? false;
|
|
3388
|
+
const message = createBaseProviderRequirement();
|
|
3389
|
+
message.source = object.source ?? "";
|
|
3390
|
+
message.version = object.version ?? "";
|
|
3391
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
4075
3392
|
return message;
|
|
4076
3393
|
}
|
|
4077
3394
|
};
|
|
4078
|
-
function
|
|
4079
|
-
return {
|
|
3395
|
+
function createBaseBackendConfig() {
|
|
3396
|
+
return { type: "", config: {} };
|
|
4080
3397
|
}
|
|
4081
|
-
var
|
|
3398
|
+
var BackendConfig = {
|
|
4082
3399
|
encode(message, writer = new BinaryWriter2()) {
|
|
4083
|
-
if (message.
|
|
4084
|
-
|
|
3400
|
+
if (message.type !== "") {
|
|
3401
|
+
writer.uint32(10).string(message.type);
|
|
4085
3402
|
}
|
|
3403
|
+
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3404
|
+
if (value !== void 0) {
|
|
3405
|
+
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3406
|
+
}
|
|
3407
|
+
});
|
|
4086
3408
|
return writer;
|
|
4087
3409
|
},
|
|
4088
3410
|
decode(input, length) {
|
|
4089
3411
|
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
4090
3412
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4091
|
-
const message =
|
|
3413
|
+
const message = createBaseBackendConfig();
|
|
4092
3414
|
while (reader.pos < end) {
|
|
4093
3415
|
const tag = reader.uint32();
|
|
4094
3416
|
switch (tag >>> 3) {
|
|
@@ -4096,7 +3418,17 @@ var NodeLayout = {
|
|
|
4096
3418
|
if (tag !== 10) {
|
|
4097
3419
|
break;
|
|
4098
3420
|
}
|
|
4099
|
-
message.
|
|
3421
|
+
message.type = reader.string();
|
|
3422
|
+
continue;
|
|
3423
|
+
}
|
|
3424
|
+
case 2: {
|
|
3425
|
+
if (tag !== 18) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3429
|
+
if (entry2.value !== void 0) {
|
|
3430
|
+
message.config[entry2.key] = entry2.value;
|
|
3431
|
+
}
|
|
4100
3432
|
continue;
|
|
4101
3433
|
}
|
|
4102
3434
|
}
|
|
@@ -4108,56 +3440,83 @@ var NodeLayout = {
|
|
|
4108
3440
|
return message;
|
|
4109
3441
|
},
|
|
4110
3442
|
fromJSON(object) {
|
|
4111
|
-
return {
|
|
3443
|
+
return {
|
|
3444
|
+
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3445
|
+
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3446
|
+
(acc, [key, value]) => {
|
|
3447
|
+
acc[key] = value;
|
|
3448
|
+
return acc;
|
|
3449
|
+
},
|
|
3450
|
+
{}
|
|
3451
|
+
) : {}
|
|
3452
|
+
};
|
|
4112
3453
|
},
|
|
4113
3454
|
toJSON(message) {
|
|
4114
3455
|
const obj = {};
|
|
4115
|
-
if (message.
|
|
4116
|
-
obj.
|
|
3456
|
+
if (message.type !== "") {
|
|
3457
|
+
obj.type = message.type;
|
|
3458
|
+
}
|
|
3459
|
+
if (message.config) {
|
|
3460
|
+
const entries = globalThis.Object.entries(message.config);
|
|
3461
|
+
if (entries.length > 0) {
|
|
3462
|
+
obj.config = {};
|
|
3463
|
+
entries.forEach(([k, v]) => {
|
|
3464
|
+
obj.config[k] = v;
|
|
3465
|
+
});
|
|
3466
|
+
}
|
|
4117
3467
|
}
|
|
4118
3468
|
return obj;
|
|
4119
3469
|
},
|
|
4120
3470
|
create(base) {
|
|
4121
|
-
return
|
|
3471
|
+
return BackendConfig.fromPartial(base ?? {});
|
|
4122
3472
|
},
|
|
4123
3473
|
fromPartial(object) {
|
|
4124
|
-
const message =
|
|
4125
|
-
message.
|
|
3474
|
+
const message = createBaseBackendConfig();
|
|
3475
|
+
message.type = object.type ?? "";
|
|
3476
|
+
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3477
|
+
(acc, [key, value]) => {
|
|
3478
|
+
if (value !== void 0) {
|
|
3479
|
+
acc[key] = value;
|
|
3480
|
+
}
|
|
3481
|
+
return acc;
|
|
3482
|
+
},
|
|
3483
|
+
{}
|
|
3484
|
+
);
|
|
4126
3485
|
return message;
|
|
4127
3486
|
}
|
|
4128
3487
|
};
|
|
4129
|
-
function
|
|
4130
|
-
return {
|
|
3488
|
+
function createBaseBackendConfig_ConfigEntry() {
|
|
3489
|
+
return { key: "", value: void 0 };
|
|
4131
3490
|
}
|
|
4132
|
-
var
|
|
3491
|
+
var BackendConfig_ConfigEntry = {
|
|
4133
3492
|
encode(message, writer = new BinaryWriter2()) {
|
|
4134
|
-
if (message.
|
|
4135
|
-
writer.uint32(
|
|
3493
|
+
if (message.key !== "") {
|
|
3494
|
+
writer.uint32(10).string(message.key);
|
|
4136
3495
|
}
|
|
4137
|
-
if (message.
|
|
4138
|
-
writer.uint32(
|
|
3496
|
+
if (message.value !== void 0) {
|
|
3497
|
+
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
4139
3498
|
}
|
|
4140
3499
|
return writer;
|
|
4141
3500
|
},
|
|
4142
3501
|
decode(input, length) {
|
|
4143
3502
|
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
4144
3503
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4145
|
-
const message =
|
|
3504
|
+
const message = createBaseBackendConfig_ConfigEntry();
|
|
4146
3505
|
while (reader.pos < end) {
|
|
4147
3506
|
const tag = reader.uint32();
|
|
4148
3507
|
switch (tag >>> 3) {
|
|
4149
3508
|
case 1: {
|
|
4150
|
-
if (tag !==
|
|
3509
|
+
if (tag !== 10) {
|
|
4151
3510
|
break;
|
|
4152
3511
|
}
|
|
4153
|
-
message.
|
|
3512
|
+
message.key = reader.string();
|
|
4154
3513
|
continue;
|
|
4155
3514
|
}
|
|
4156
3515
|
case 2: {
|
|
4157
|
-
if (tag !==
|
|
3516
|
+
if (tag !== 18) {
|
|
4158
3517
|
break;
|
|
4159
3518
|
}
|
|
4160
|
-
message.
|
|
3519
|
+
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
4161
3520
|
continue;
|
|
4162
3521
|
}
|
|
4163
3522
|
}
|
|
@@ -4170,44 +3529,53 @@ var Position = {
|
|
|
4170
3529
|
},
|
|
4171
3530
|
fromJSON(object) {
|
|
4172
3531
|
return {
|
|
4173
|
-
|
|
4174
|
-
|
|
3532
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3533
|
+
value: isSet2(object?.value) ? object.value : void 0
|
|
4175
3534
|
};
|
|
4176
3535
|
},
|
|
4177
3536
|
toJSON(message) {
|
|
4178
3537
|
const obj = {};
|
|
4179
|
-
if (message.
|
|
4180
|
-
obj.
|
|
3538
|
+
if (message.key !== "") {
|
|
3539
|
+
obj.key = message.key;
|
|
4181
3540
|
}
|
|
4182
|
-
if (message.
|
|
4183
|
-
obj.
|
|
3541
|
+
if (message.value !== void 0) {
|
|
3542
|
+
obj.value = message.value;
|
|
4184
3543
|
}
|
|
4185
3544
|
return obj;
|
|
4186
3545
|
},
|
|
4187
3546
|
create(base) {
|
|
4188
|
-
return
|
|
3547
|
+
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
4189
3548
|
},
|
|
4190
3549
|
fromPartial(object) {
|
|
4191
|
-
const message =
|
|
4192
|
-
message.
|
|
4193
|
-
message.
|
|
3550
|
+
const message = createBaseBackendConfig_ConfigEntry();
|
|
3551
|
+
message.key = object.key ?? "";
|
|
3552
|
+
message.value = object.value ?? void 0;
|
|
4194
3553
|
return message;
|
|
4195
3554
|
}
|
|
4196
3555
|
};
|
|
4197
|
-
function
|
|
4198
|
-
return {
|
|
3556
|
+
function createBaseProviderConfig() {
|
|
3557
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
4199
3558
|
}
|
|
4200
|
-
var
|
|
3559
|
+
var ProviderConfig = {
|
|
4201
3560
|
encode(message, writer = new BinaryWriter2()) {
|
|
4202
|
-
|
|
4203
|
-
|
|
3561
|
+
if (message.name !== "") {
|
|
3562
|
+
writer.uint32(10).string(message.name);
|
|
3563
|
+
}
|
|
3564
|
+
if (message.alias !== "") {
|
|
3565
|
+
writer.uint32(18).string(message.alias);
|
|
3566
|
+
}
|
|
3567
|
+
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3568
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
4204
3569
|
});
|
|
3570
|
+
for (const v of message.blocks) {
|
|
3571
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3572
|
+
}
|
|
4205
3573
|
return writer;
|
|
4206
3574
|
},
|
|
4207
3575
|
decode(input, length) {
|
|
4208
3576
|
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
4209
3577
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4210
|
-
const message =
|
|
3578
|
+
const message = createBaseProviderConfig();
|
|
4211
3579
|
while (reader.pos < end) {
|
|
4212
3580
|
const tag = reader.uint32();
|
|
4213
3581
|
switch (tag >>> 3) {
|
|
@@ -4215,10 +3583,31 @@ var LayoutsMap = {
|
|
|
4215
3583
|
if (tag !== 10) {
|
|
4216
3584
|
break;
|
|
4217
3585
|
}
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
3586
|
+
message.name = reader.string();
|
|
3587
|
+
continue;
|
|
3588
|
+
}
|
|
3589
|
+
case 2: {
|
|
3590
|
+
if (tag !== 18) {
|
|
3591
|
+
break;
|
|
3592
|
+
}
|
|
3593
|
+
message.alias = reader.string();
|
|
3594
|
+
continue;
|
|
3595
|
+
}
|
|
3596
|
+
case 3: {
|
|
3597
|
+
if (tag !== 26) {
|
|
3598
|
+
break;
|
|
3599
|
+
}
|
|
3600
|
+
const entry3 = ProviderConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3601
|
+
if (entry3.value !== void 0) {
|
|
3602
|
+
message.config[entry3.key] = entry3.value;
|
|
3603
|
+
}
|
|
3604
|
+
continue;
|
|
3605
|
+
}
|
|
3606
|
+
case 4: {
|
|
3607
|
+
if (tag !== 34) {
|
|
3608
|
+
break;
|
|
4221
3609
|
}
|
|
3610
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
4222
3611
|
continue;
|
|
4223
3612
|
}
|
|
4224
3613
|
}
|
|
@@ -4231,62 +3620,77 @@ var LayoutsMap = {
|
|
|
4231
3620
|
},
|
|
4232
3621
|
fromJSON(object) {
|
|
4233
3622
|
return {
|
|
4234
|
-
|
|
3623
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
3624
|
+
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3625
|
+
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
4235
3626
|
(acc, [key, value]) => {
|
|
4236
|
-
acc[key] =
|
|
3627
|
+
acc[key] = Binding.fromJSON(value);
|
|
4237
3628
|
return acc;
|
|
4238
3629
|
},
|
|
4239
3630
|
{}
|
|
4240
|
-
) : {}
|
|
3631
|
+
) : {},
|
|
3632
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
4241
3633
|
};
|
|
4242
3634
|
},
|
|
4243
3635
|
toJSON(message) {
|
|
4244
3636
|
const obj = {};
|
|
4245
|
-
if (message.
|
|
4246
|
-
|
|
3637
|
+
if (message.name !== "") {
|
|
3638
|
+
obj.name = message.name;
|
|
3639
|
+
}
|
|
3640
|
+
if (message.alias !== "") {
|
|
3641
|
+
obj.alias = message.alias;
|
|
3642
|
+
}
|
|
3643
|
+
if (message.config) {
|
|
3644
|
+
const entries = globalThis.Object.entries(message.config);
|
|
4247
3645
|
if (entries.length > 0) {
|
|
4248
|
-
obj.
|
|
3646
|
+
obj.config = {};
|
|
4249
3647
|
entries.forEach(([k, v]) => {
|
|
4250
|
-
obj.
|
|
3648
|
+
obj.config[k] = Binding.toJSON(v);
|
|
4251
3649
|
});
|
|
4252
3650
|
}
|
|
4253
3651
|
}
|
|
3652
|
+
if (message.blocks?.length) {
|
|
3653
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3654
|
+
}
|
|
4254
3655
|
return obj;
|
|
4255
3656
|
},
|
|
4256
3657
|
create(base) {
|
|
4257
|
-
return
|
|
3658
|
+
return ProviderConfig.fromPartial(base ?? {});
|
|
4258
3659
|
},
|
|
4259
3660
|
fromPartial(object) {
|
|
4260
|
-
const message =
|
|
4261
|
-
message.
|
|
3661
|
+
const message = createBaseProviderConfig();
|
|
3662
|
+
message.name = object.name ?? "";
|
|
3663
|
+
message.alias = object.alias ?? "";
|
|
3664
|
+
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
4262
3665
|
(acc, [key, value]) => {
|
|
4263
3666
|
if (value !== void 0) {
|
|
4264
|
-
acc[key] =
|
|
3667
|
+
acc[key] = Binding.fromPartial(value);
|
|
4265
3668
|
}
|
|
4266
3669
|
return acc;
|
|
4267
3670
|
},
|
|
4268
3671
|
{}
|
|
4269
3672
|
);
|
|
3673
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
4270
3674
|
return message;
|
|
4271
3675
|
}
|
|
4272
3676
|
};
|
|
4273
|
-
function
|
|
3677
|
+
function createBaseProviderConfig_ConfigEntry() {
|
|
4274
3678
|
return { key: "", value: void 0 };
|
|
4275
3679
|
}
|
|
4276
|
-
var
|
|
3680
|
+
var ProviderConfig_ConfigEntry = {
|
|
4277
3681
|
encode(message, writer = new BinaryWriter2()) {
|
|
4278
3682
|
if (message.key !== "") {
|
|
4279
3683
|
writer.uint32(10).string(message.key);
|
|
4280
3684
|
}
|
|
4281
3685
|
if (message.value !== void 0) {
|
|
4282
|
-
|
|
3686
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
4283
3687
|
}
|
|
4284
3688
|
return writer;
|
|
4285
3689
|
},
|
|
4286
3690
|
decode(input, length) {
|
|
4287
3691
|
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
4288
3692
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4289
|
-
const message =
|
|
3693
|
+
const message = createBaseProviderConfig_ConfigEntry();
|
|
4290
3694
|
while (reader.pos < end) {
|
|
4291
3695
|
const tag = reader.uint32();
|
|
4292
3696
|
switch (tag >>> 3) {
|
|
@@ -4301,7 +3705,7 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4301
3705
|
if (tag !== 18) {
|
|
4302
3706
|
break;
|
|
4303
3707
|
}
|
|
4304
|
-
message.value =
|
|
3708
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
4305
3709
|
continue;
|
|
4306
3710
|
}
|
|
4307
3711
|
}
|
|
@@ -4315,7 +3719,7 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4315
3719
|
fromJSON(object) {
|
|
4316
3720
|
return {
|
|
4317
3721
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
4318
|
-
value: isSet2(object.value) ?
|
|
3722
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
4319
3723
|
};
|
|
4320
3724
|
},
|
|
4321
3725
|
toJSON(message) {
|
|
@@ -4324,17 +3728,17 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4324
3728
|
obj.key = message.key;
|
|
4325
3729
|
}
|
|
4326
3730
|
if (message.value !== void 0) {
|
|
4327
|
-
obj.value =
|
|
3731
|
+
obj.value = Binding.toJSON(message.value);
|
|
4328
3732
|
}
|
|
4329
3733
|
return obj;
|
|
4330
3734
|
},
|
|
4331
3735
|
create(base) {
|
|
4332
|
-
return
|
|
3736
|
+
return ProviderConfig_ConfigEntry.fromPartial(base ?? {});
|
|
4333
3737
|
},
|
|
4334
3738
|
fromPartial(object) {
|
|
4335
|
-
const message =
|
|
3739
|
+
const message = createBaseProviderConfig_ConfigEntry();
|
|
4336
3740
|
message.key = object.key ?? "";
|
|
4337
|
-
message.value = object.value !== void 0 && object.value !== null ?
|
|
3741
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
4338
3742
|
return message;
|
|
4339
3743
|
}
|
|
4340
3744
|
};
|
|
@@ -4359,6 +3763,47 @@ function isGroupUse(bundle, use) {
|
|
|
4359
3763
|
return (target.modules?.length ?? 0) > 0;
|
|
4360
3764
|
}
|
|
4361
3765
|
|
|
3766
|
+
// src/projection/compute-layout.ts
|
|
3767
|
+
var SPACING_X = 260;
|
|
3768
|
+
var SPACING_Y = 180;
|
|
3769
|
+
function gridPosition(index, n) {
|
|
3770
|
+
const cols = Math.max(2, Math.ceil(Math.sqrt(n)));
|
|
3771
|
+
const col = index % cols;
|
|
3772
|
+
const row = Math.floor(index / cols);
|
|
3773
|
+
return { x: col * SPACING_X, y: row * SPACING_Y };
|
|
3774
|
+
}
|
|
3775
|
+
function overlapsAny(candidate, occupied) {
|
|
3776
|
+
return occupied.some(
|
|
3777
|
+
(o) => candidate.x < o.x + SPACING_X && candidate.x + SPACING_X > o.x && candidate.y < o.y + SPACING_Y && candidate.y + SPACING_Y > o.y
|
|
3778
|
+
);
|
|
3779
|
+
}
|
|
3780
|
+
function resolveScopePositions(ids, arrangementNodes) {
|
|
3781
|
+
const positions = /* @__PURE__ */ new Map();
|
|
3782
|
+
const occupied = [];
|
|
3783
|
+
const unresolved = [];
|
|
3784
|
+
for (const id of ids) {
|
|
3785
|
+
const stored = arrangementNodes?.[id];
|
|
3786
|
+
if (stored) {
|
|
3787
|
+
positions.set(id, stored);
|
|
3788
|
+
occupied.push(stored);
|
|
3789
|
+
} else {
|
|
3790
|
+
unresolved.push(id);
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
let slot = 0;
|
|
3794
|
+
for (const id of unresolved) {
|
|
3795
|
+
let candidate = gridPosition(slot, ids.length);
|
|
3796
|
+
while (overlapsAny(candidate, occupied)) {
|
|
3797
|
+
slot += 1;
|
|
3798
|
+
candidate = gridPosition(slot, ids.length);
|
|
3799
|
+
}
|
|
3800
|
+
positions.set(id, candidate);
|
|
3801
|
+
occupied.push(candidate);
|
|
3802
|
+
slot += 1;
|
|
3803
|
+
}
|
|
3804
|
+
return positions;
|
|
3805
|
+
}
|
|
3806
|
+
|
|
4362
3807
|
// src/projection/derive-edges.ts
|
|
4363
3808
|
var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
4364
3809
|
function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
|
|
@@ -4424,11 +3869,11 @@ function joinPath(prefix, localId) {
|
|
|
4424
3869
|
}
|
|
4425
3870
|
|
|
4426
3871
|
// src/projection/project-group.ts
|
|
4427
|
-
function projectGroup(use, target, fullId,
|
|
3872
|
+
function projectGroup(use, target, fullId, parentArrangement) {
|
|
4428
3873
|
const childIds = (target.modules ?? []).map((u) => joinPath(fullId, u.id));
|
|
4429
|
-
const parentGroup =
|
|
3874
|
+
const parentGroup = parentArrangement?.groups?.[use.id];
|
|
4430
3875
|
const collapsed = parentGroup ? parentGroup.collapsed : true;
|
|
4431
|
-
const label = parentGroup
|
|
3876
|
+
const label = parentGroup?.label ? parentGroup.label : use.id;
|
|
4432
3877
|
const inputs = (target.interface?.inputs ?? []).map((in_) => ({
|
|
4433
3878
|
name: in_.name,
|
|
4434
3879
|
type: in_.type,
|
|
@@ -4452,21 +3897,6 @@ function projectGroup(use, target, fullId, parentLayout) {
|
|
|
4452
3897
|
};
|
|
4453
3898
|
}
|
|
4454
3899
|
|
|
4455
|
-
// src/projection/compute-layout.ts
|
|
4456
|
-
var SPACING_X = 260;
|
|
4457
|
-
var SPACING_Y = 180;
|
|
4458
|
-
function gridPosition(index, n) {
|
|
4459
|
-
const cols = Math.max(2, Math.ceil(Math.sqrt(n)));
|
|
4460
|
-
const col = index % cols;
|
|
4461
|
-
const row = Math.floor(index / cols);
|
|
4462
|
-
return { x: col * SPACING_X, y: row * SPACING_Y };
|
|
4463
|
-
}
|
|
4464
|
-
function resolveChildPosition(childId, childIndex, totalChildren, existing) {
|
|
4465
|
-
const stored = existing?.[childId]?.position;
|
|
4466
|
-
if (stored) return stored;
|
|
4467
|
-
return gridPosition(childIndex, totalChildren);
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
3900
|
// src/projection/resolve-schema.ts
|
|
4471
3901
|
function resolveSchema(bundle, use) {
|
|
4472
3902
|
const target = bundle.modules[use.module];
|
|
@@ -4494,8 +3924,7 @@ function descendScope(bundle, scopeKey, segments) {
|
|
|
4494
3924
|
}
|
|
4495
3925
|
|
|
4496
3926
|
// src/projection/project-node.ts
|
|
4497
|
-
function projectNode(bundle, use, fullId,
|
|
4498
|
-
const position = resolveChildPosition(use.id, childIndex, totalChildren, scopeLayout?.nodes);
|
|
3927
|
+
function projectNode(bundle, use, fullId, position, wiredIn, wiredOut, errorsByInstance) {
|
|
4499
3928
|
const errorMessages = errorsByInstance.get(use.id) ?? [];
|
|
4500
3929
|
const schema = resolveSchema(bundle, use);
|
|
4501
3930
|
return {
|
|
@@ -4524,49 +3953,38 @@ function projectNode(bundle, use, fullId, childIndex, totalChildren, scopeLayout
|
|
|
4524
3953
|
}
|
|
4525
3954
|
|
|
4526
3955
|
// src/projection/project-scope.ts
|
|
4527
|
-
function projectScope(bundle, mod, path,
|
|
3956
|
+
function projectScope(bundle, mod, path, arrangement, errorsByInstance) {
|
|
4528
3957
|
const uses = mod.modules ?? [];
|
|
4529
3958
|
const derived = deriveEdges(uses);
|
|
4530
3959
|
const { inputs: wiredIn, outputs: wiredOut } = indexWires(derived);
|
|
4531
3960
|
const scopeKey = resolveScopePath(bundle, path);
|
|
4532
|
-
const
|
|
3961
|
+
const scopeArrangement = scopeKey ? arrangement?.[scopeKey] : void 0;
|
|
4533
3962
|
const nodes = [];
|
|
4534
3963
|
const groups = [];
|
|
4535
|
-
const
|
|
4536
|
-
|
|
3964
|
+
const classified = uses.map((use) => ({ use, group: isGroupUse(bundle, use) }));
|
|
3965
|
+
const nodeUseIds = classified.filter((c) => !c.group).map((c) => c.use.id);
|
|
3966
|
+
const positions = resolveScopePositions(nodeUseIds, scopeArrangement?.nodes);
|
|
3967
|
+
for (const { use, group } of classified) {
|
|
4537
3968
|
const fullId = joinPath(path, use.id);
|
|
4538
|
-
if (
|
|
3969
|
+
if (group) {
|
|
4539
3970
|
const target = bundle.modules[use.module];
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
emittedGroupIds.add(use.id);
|
|
4543
|
-
return;
|
|
4544
|
-
}
|
|
3971
|
+
groups.push(projectGroup(use, target, fullId, scopeArrangement));
|
|
3972
|
+
continue;
|
|
4545
3973
|
}
|
|
4546
3974
|
nodes.push(
|
|
4547
3975
|
projectNode(
|
|
4548
3976
|
bundle,
|
|
4549
3977
|
use,
|
|
4550
3978
|
fullId,
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
3979
|
+
// Every non-group use is in nodeUseIds, so resolveScopePositions
|
|
3980
|
+
// always has an entry for it — a fallback here would only mask a
|
|
3981
|
+
// classification bug, not handle a real gap.
|
|
3982
|
+
positions.get(use.id),
|
|
4554
3983
|
wiredIn.get(use.id) ?? /* @__PURE__ */ new Set(),
|
|
4555
3984
|
wiredOut.get(use.id) ?? /* @__PURE__ */ new Set(),
|
|
4556
3985
|
errorsByInstance
|
|
4557
3986
|
)
|
|
4558
3987
|
);
|
|
4559
|
-
});
|
|
4560
|
-
if (layout?.groups) {
|
|
4561
|
-
for (const [groupId, g] of Object.entries(layout.groups)) {
|
|
4562
|
-
if (emittedGroupIds.has(groupId)) continue;
|
|
4563
|
-
groups.push({
|
|
4564
|
-
id: g.id,
|
|
4565
|
-
label: g.label,
|
|
4566
|
-
node_ids: g.node_ids.map((id) => joinPath(path, id)),
|
|
4567
|
-
collapsed: g.collapsed
|
|
4568
|
-
});
|
|
4569
|
-
}
|
|
4570
3988
|
}
|
|
4571
3989
|
const edges = derived.map((de) => {
|
|
4572
3990
|
const sourceId = joinPath(path, de.source_instance);
|
|
@@ -4613,25 +4031,6 @@ function danglingEdgeErrors(nodes, groups, edges) {
|
|
|
4613
4031
|
}
|
|
4614
4032
|
return errors;
|
|
4615
4033
|
}
|
|
4616
|
-
function overlappingGroupsWarnings(groups) {
|
|
4617
|
-
const errors = [];
|
|
4618
|
-
const userGroups = groups.filter((g) => !g.module_key);
|
|
4619
|
-
for (let i = 0; i < userGroups.length; i++) {
|
|
4620
|
-
for (let j = i + 1; j < userGroups.length; j++) {
|
|
4621
|
-
const a = userGroups[i];
|
|
4622
|
-
const b = userGroups[j];
|
|
4623
|
-
const aSet = new Set(a.node_ids);
|
|
4624
|
-
const overlap = b.node_ids.filter((id) => aSet.has(id));
|
|
4625
|
-
if (overlap.length > 0) {
|
|
4626
|
-
errors.push({
|
|
4627
|
-
instance_id: a.id,
|
|
4628
|
-
message: `Group "${a.label}" overlaps group "${b.label}" on ${overlap.length} member(s)`
|
|
4629
|
-
});
|
|
4630
|
-
}
|
|
4631
|
-
}
|
|
4632
|
-
}
|
|
4633
|
-
return errors;
|
|
4634
|
-
}
|
|
4635
4034
|
|
|
4636
4035
|
// src/projection/walk-modules.ts
|
|
4637
4036
|
function walk(bundle, visit) {
|
|
@@ -4650,21 +4049,20 @@ function walkFrom(bundle, mod, use, path, visit) {
|
|
|
4650
4049
|
}
|
|
4651
4050
|
|
|
4652
4051
|
// src/projection/project.ts
|
|
4653
|
-
function projectCanvasView(bundle,
|
|
4052
|
+
function projectCanvasView(bundle, arrangement, meta) {
|
|
4654
4053
|
const nodes = [];
|
|
4655
4054
|
const edges = [];
|
|
4656
4055
|
const groups = [];
|
|
4657
4056
|
const errorsByInstance = /* @__PURE__ */ new Map();
|
|
4658
4057
|
walk(bundle, (mod, _use, path) => {
|
|
4659
|
-
const scope = projectScope(bundle, mod, path,
|
|
4058
|
+
const scope = projectScope(bundle, mod, path, arrangement, errorsByInstance);
|
|
4660
4059
|
nodes.push(...scope.nodes);
|
|
4661
4060
|
edges.push(...scope.edges);
|
|
4662
4061
|
groups.push(...scope.groups);
|
|
4663
4062
|
});
|
|
4664
4063
|
const errors = [
|
|
4665
4064
|
...missingRequiredInputErrors(nodes),
|
|
4666
|
-
...danglingEdgeErrors(nodes, groups, edges)
|
|
4667
|
-
...overlappingGroupsWarnings(groups)
|
|
4065
|
+
...danglingEdgeErrors(nodes, groups, edges)
|
|
4668
4066
|
];
|
|
4669
4067
|
errors.sort((a, b) => {
|
|
4670
4068
|
const ai = a.instance_id ?? "";
|
|
@@ -4675,8 +4073,6 @@ function projectCanvasView(bundle, layouts, meta) {
|
|
|
4675
4073
|
if (an !== bn) return an < bn ? -1 : 1;
|
|
4676
4074
|
return a.message < b.message ? -1 : a.message > b.message ? 1 : 0;
|
|
4677
4075
|
});
|
|
4678
|
-
const moduleGroups = groups.filter((g) => g.module_key);
|
|
4679
|
-
const userGroups = groups.filter((g) => !g.module_key).sort((a, b) => a.id < b.id ? -1 : a.id > b.id ? 1 : 0);
|
|
4680
4076
|
const moduleName = meta.moduleName ?? parseModuleKey(bundle.entry).id;
|
|
4681
4077
|
return {
|
|
4682
4078
|
module_name: moduleName,
|
|
@@ -4686,7 +4082,10 @@ function projectCanvasView(bundle, layouts, meta) {
|
|
|
4686
4082
|
can_undo: meta.canUndo,
|
|
4687
4083
|
can_redo: meta.canRedo,
|
|
4688
4084
|
is_dirty: meta.isDirty,
|
|
4689
|
-
|
|
4085
|
+
// Every group is now a Use whose target has sub-Uses (CreateGroupAction
|
|
4086
|
+
// mints a module); emission order already mirrors Use declaration order
|
|
4087
|
+
// via the walk, so no separate user-group sort is needed.
|
|
4088
|
+
groups
|
|
4690
4089
|
};
|
|
4691
4090
|
}
|
|
4692
4091
|
|
|
@@ -5197,7 +4596,7 @@ var RenderNode = {
|
|
|
5197
4596
|
writer.uint32(42).string(message.icon_url);
|
|
5198
4597
|
}
|
|
5199
4598
|
if (message.position !== void 0) {
|
|
5200
|
-
|
|
4599
|
+
Position.encode(message.position, writer.uint32(50).fork()).join();
|
|
5201
4600
|
}
|
|
5202
4601
|
if (message.has_errors !== false) {
|
|
5203
4602
|
writer.uint32(56).bool(message.has_errors);
|
|
@@ -5259,7 +4658,7 @@ var RenderNode = {
|
|
|
5259
4658
|
if (tag !== 50) {
|
|
5260
4659
|
break;
|
|
5261
4660
|
}
|
|
5262
|
-
message.position =
|
|
4661
|
+
message.position = Position.decode(reader, reader.uint32());
|
|
5263
4662
|
continue;
|
|
5264
4663
|
}
|
|
5265
4664
|
case 7: {
|
|
@@ -5305,7 +4704,7 @@ var RenderNode = {
|
|
|
5305
4704
|
kind: isSet3(object.kind) ? nodeKindFromJSON(object.kind) : 0,
|
|
5306
4705
|
module_key: isSet3(object.moduleKey) ? globalThis.String(object.moduleKey) : isSet3(object.module_key) ? globalThis.String(object.module_key) : "",
|
|
5307
4706
|
icon_url: isSet3(object.iconUrl) ? globalThis.String(object.iconUrl) : isSet3(object.icon_url) ? globalThis.String(object.icon_url) : "",
|
|
5308
|
-
position: isSet3(object.position) ?
|
|
4707
|
+
position: isSet3(object.position) ? Position.fromJSON(object.position) : void 0,
|
|
5309
4708
|
has_errors: isSet3(object.hasErrors) ? globalThis.Boolean(object.hasErrors) : isSet3(object.has_errors) ? globalThis.Boolean(object.has_errors) : false,
|
|
5310
4709
|
error_messages: globalThis.Array.isArray(object?.errorMessages) ? object.errorMessages.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.error_messages) ? object.error_messages.map((e) => globalThis.String(e)) : [],
|
|
5311
4710
|
inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => NodePin.fromJSON(e)) : [],
|
|
@@ -5330,7 +4729,7 @@ var RenderNode = {
|
|
|
5330
4729
|
obj.iconUrl = message.icon_url;
|
|
5331
4730
|
}
|
|
5332
4731
|
if (message.position !== void 0) {
|
|
5333
|
-
obj.position =
|
|
4732
|
+
obj.position = Position.toJSON(message.position);
|
|
5334
4733
|
}
|
|
5335
4734
|
if (message.has_errors !== false) {
|
|
5336
4735
|
obj.hasErrors = message.has_errors;
|
|
@@ -5356,7 +4755,7 @@ var RenderNode = {
|
|
|
5356
4755
|
message.kind = object.kind ?? 0;
|
|
5357
4756
|
message.module_key = object.module_key ?? "";
|
|
5358
4757
|
message.icon_url = object.icon_url ?? "";
|
|
5359
|
-
message.position = object.position !== void 0 && object.position !== null ?
|
|
4758
|
+
message.position = object.position !== void 0 && object.position !== null ? Position.fromPartial(object.position) : void 0;
|
|
5360
4759
|
message.has_errors = object.has_errors ?? false;
|
|
5361
4760
|
message.error_messages = object.error_messages?.map((e) => e) || [];
|
|
5362
4761
|
message.inputs = object.inputs?.map((e) => NodePin.fromPartial(e)) || [];
|
|
@@ -7382,10 +6781,10 @@ var RenderError = {
|
|
|
7382
6781
|
return message;
|
|
7383
6782
|
}
|
|
7384
6783
|
};
|
|
7385
|
-
function
|
|
6784
|
+
function createBasePosition() {
|
|
7386
6785
|
return { x: 0, y: 0 };
|
|
7387
6786
|
}
|
|
7388
|
-
var
|
|
6787
|
+
var Position = {
|
|
7389
6788
|
encode(message, writer = new BinaryWriter3()) {
|
|
7390
6789
|
if (message.x !== 0) {
|
|
7391
6790
|
writer.uint32(9).double(message.x);
|
|
@@ -7398,7 +6797,7 @@ var Position2 = {
|
|
|
7398
6797
|
decode(input, length) {
|
|
7399
6798
|
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
7400
6799
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7401
|
-
const message =
|
|
6800
|
+
const message = createBasePosition();
|
|
7402
6801
|
while (reader.pos < end) {
|
|
7403
6802
|
const tag = reader.uint32();
|
|
7404
6803
|
switch (tag >>> 3) {
|
|
@@ -7441,10 +6840,10 @@ var Position2 = {
|
|
|
7441
6840
|
return obj;
|
|
7442
6841
|
},
|
|
7443
6842
|
create(base) {
|
|
7444
|
-
return
|
|
6843
|
+
return Position.fromPartial(base ?? {});
|
|
7445
6844
|
},
|
|
7446
6845
|
fromPartial(object) {
|
|
7447
|
-
const message =
|
|
6846
|
+
const message = createBasePosition();
|
|
7448
6847
|
message.x = object.x ?? 0;
|
|
7449
6848
|
message.y = object.y ?? 0;
|
|
7450
6849
|
return message;
|
|
@@ -7830,8 +7229,6 @@ export {
|
|
|
7830
7229
|
Bundle,
|
|
7831
7230
|
CanvasViewProto,
|
|
7832
7231
|
EdgeConfigProto,
|
|
7833
|
-
GraphLayout,
|
|
7834
|
-
LayoutsMap,
|
|
7835
7232
|
NodeConfigProto,
|
|
7836
7233
|
SettingsConfigProto,
|
|
7837
7234
|
convertCanvasView,
|
|
@@ -7847,6 +7244,8 @@ export {
|
|
|
7847
7244
|
convertSettingsConfig,
|
|
7848
7245
|
modeToInputMode,
|
|
7849
7246
|
parseModuleKey,
|
|
7850
|
-
projectCanvasView
|
|
7247
|
+
projectCanvasView,
|
|
7248
|
+
resolveScopePath,
|
|
7249
|
+
resolveScopePositions
|
|
7851
7250
|
};
|
|
7852
7251
|
//# sourceMappingURL=index.mjs.map
|