@texturehq/edges 5.6.0 → 5.7.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.
@@ -3091,7 +3091,7 @@ declare const ENTITY_CATEGORY_CONFIG: {
3091
3091
  };
3092
3092
  /** The coarse element-type axis (mirrors `@texturehq/grid-element-config`'s
3093
3093
  * `GridElementType`; kept in sync by transcription). */
3094
- type GridElementSourceType = "CAPACITOR" | "CONSUMER" | "GENERATOR" | "MOTOR" | "NODE" | "OVERCURRENT_DEVICE" | "OVERHEAD_LINE" | "REGULATOR" | "SOURCE" | "SWITCH" | "TRANSFORMER" | "UNDERGROUND_LINE";
3094
+ type GridElementSourceType = "CAPACITOR" | "CONSUMER" | "GENERATOR" | "MOTOR" | "NODE" | "OVERCURRENT_DEVICE" | "OVERHEAD_LINE" | "REGULATOR" | "SOURCE" | "SUPPORT_STRUCTURE" | "SWITCH" | "TRANSFORMER" | "UNDERGROUND_LINE";
3095
3095
  /**
3096
3096
  * JSONB keys that are ABSENT or PII-zeroed in prod (MR-07 coverage table). No
3097
3097
  * grid stat-list row (or headline metric) may reference one of these — enforced
@@ -3111,18 +3111,23 @@ declare const ABSENT_GRID_FIELDS: readonly ["energized", "customerName", "gs_max
3111
3111
  * 7.2 kV transformer. Listing a row here is a deliberate, reviewable admission
3112
3112
  * that its unit is unverified, not an oversight.
3113
3113
  *
3114
- * Status per row (as of 2026-08-17):
3115
- * • CAPACITOR / NODE `nominalVoltage` -- NOT measured; DQ-3 covered transformers
3116
- * only. Deliberately NOT fixed blind: added to the next DB round (DQ-10). If
3117
- * they show the transformer pattern, one decision fixes both.
3118
- * REGULATOR `outputVoltagePh{A,B,C}` -- lower risk: the SCADA audit observed
3119
- * regulator volts in the 7,261...20,538 V range, but that is TELEMETRY, not
3120
- * this metadata key.
3121
- * GENERATOR `outputVoltage` / MOTOR `voltage` -- small populations.
3114
+ * Status per row (as of 2026-08-24 -- the escape hatch worked, and emptied itself):
3115
+ * • CAPACITOR `nominalVoltage` -- MEASURED (DQ-5). 87/114 populated, all in volts, but 23 are `0`
3116
+ * placeholders that rendered "0 V". Re-sourced from the normalized `nominalVoltageV` extra.
3117
+ * NODE `nominalVoltage` -- MEASURED (DQ-5): 0% across all four spellings on all 492 Nodes. Row
3118
+ * deleted in MR-P01-5a, together with the SUPPORT_STRUCTURE split that stopped 58,158 poles from
3119
+ * sharing this (now empty) list.
3120
+ * REGULATOR `outputVoltagePh{A,B,C}` -- MEASURED (2026-08-24) and WRONG, not merely unverified:
3121
+ * the values are a per-unit multiplier (~1.025), so all three rendered "1 V". DQ-7 then found
3122
+ * they duplicate `forward_set_voltage` (123.5 V on a 120 V base). Rows deleted.
3123
+ * • GENERATOR `outputVoltage` -- MEASURED: 0% on all 2,905. Row deleted (and DQ-8 showed the type
3124
+ * is service points, not generation, so there was never a voltage to find).
3125
+ * • MOTOR `voltage` -- still unmeasured, and unmeasurable: element type 11 has ZERO rows in prod.
3126
+ * The only surviving entry, kept because the row still exists (deleting dead registry keys is P02).
3122
3127
  *
3123
3128
  * Entries are `${GridElementSourceType}.${key}`.
3124
3129
  */
3125
- declare const UNVERIFIED_VOLTAGE_UNIT_ROWS: readonly ["CAPACITOR.nominalVoltage", "NODE.nominalVoltage", "REGULATOR.outputVoltagePhA", "REGULATOR.outputVoltagePhB", "REGULATOR.outputVoltagePhC", "GENERATOR.outputVoltage", "MOTOR.voltage"];
3130
+ declare const UNVERIFIED_VOLTAGE_UNIT_ROWS: readonly ["MOTOR.voltage"];
3126
3131
  /**
3127
3132
  * Static property rows per `GridElementType`, transcribed from
3128
3133
  * `grid-element-config/src/configs/*.config.ts` `metadataFields`. Serializable:
@@ -3243,36 +3248,32 @@ declare const GRID_STAT_LIST: {
3243
3248
  readonly type: "text";
3244
3249
  };
3245
3250
  }, {
3246
- readonly key: "ratedCurrent";
3247
- readonly label: "Rated Current";
3251
+ readonly key: "switchIsOpen";
3252
+ readonly label: "Position";
3248
3253
  readonly format: {
3249
- readonly type: "number";
3250
- readonly unit: "A";
3251
- readonly decimals: 0;
3254
+ readonly type: "text";
3252
3255
  };
3253
3256
  }, {
3254
- readonly key: "normalState";
3255
- readonly label: "Normal State";
3257
+ readonly key: "switch_status";
3258
+ readonly label: "Status";
3256
3259
  readonly format: {
3257
3260
  readonly type: "text";
3258
3261
  };
3259
- }];
3260
- readonly CAPACITOR: [{
3261
- readonly key: "unitSizeKvar";
3262
- readonly label: "Capacity";
3262
+ }, {
3263
+ readonly key: "partnerIdentifier";
3264
+ readonly label: "Partner ID";
3263
3265
  readonly format: {
3264
- readonly type: "power";
3265
- readonly unit: "kVar";
3266
- readonly decimals: 1;
3266
+ readonly type: "text";
3267
3267
  };
3268
- }, {
3268
+ }];
3269
+ readonly CAPACITOR: [{
3269
3270
  readonly key: "phase";
3270
3271
  readonly label: "Phase";
3271
3272
  readonly format: {
3272
3273
  readonly type: "text";
3273
3274
  };
3274
3275
  }, {
3275
- readonly key: "nominalVoltage";
3276
+ readonly key: "nominalVoltageV";
3276
3277
  readonly label: "Nominal Voltage";
3277
3278
  readonly format: {
3278
3279
  readonly type: "voltage";
@@ -3294,41 +3295,37 @@ declare const GRID_STAT_LIST: {
3294
3295
  };
3295
3296
  }];
3296
3297
  readonly REGULATOR: [{
3298
+ readonly key: "rated_kva";
3299
+ readonly label: "Rated kVA";
3300
+ readonly format: {
3301
+ readonly type: "power";
3302
+ readonly unit: "kVA";
3303
+ readonly decimals: 0;
3304
+ };
3305
+ }, {
3297
3306
  readonly key: "phase";
3298
3307
  readonly label: "Phase";
3299
3308
  readonly format: {
3300
3309
  readonly type: "text";
3301
3310
  };
3302
3311
  }, {
3303
- readonly key: "outputVoltagePhA";
3304
- readonly label: "Output Voltage Phase A";
3312
+ readonly key: "manufacturer";
3313
+ readonly label: "Manufacturer";
3305
3314
  readonly format: {
3306
- readonly type: "voltage";
3307
- readonly unit: "V";
3308
- readonly decimals: 0;
3315
+ readonly type: "text";
3309
3316
  };
3310
3317
  }, {
3311
- readonly key: "outputVoltagePhB";
3312
- readonly label: "Output Voltage Phase B";
3318
+ readonly key: "high_side_configuration";
3319
+ readonly label: "High Side";
3313
3320
  readonly format: {
3314
- readonly type: "voltage";
3315
- readonly unit: "V";
3316
- readonly decimals: 0;
3321
+ readonly type: "text";
3317
3322
  };
3318
3323
  }, {
3319
- readonly key: "outputVoltagePhC";
3320
- readonly label: "Output Voltage Phase C";
3324
+ readonly key: "forwardSetVoltageV";
3325
+ readonly label: "Forward Set Voltage";
3321
3326
  readonly format: {
3322
3327
  readonly type: "voltage";
3323
3328
  readonly unit: "V";
3324
- readonly decimals: 0;
3325
- };
3326
- }, {
3327
- readonly key: "ratedPower";
3328
- readonly label: "Rated Power";
3329
- readonly format: {
3330
- readonly type: "power";
3331
- readonly unit: "kVA";
3332
3329
  readonly decimals: 1;
3333
3330
  };
3334
3331
  }];
@@ -3358,12 +3355,24 @@ declare const GRID_STAT_LIST: {
3358
3355
  readonly format: {
3359
3356
  readonly type: "text";
3360
3357
  };
3358
+ }, {
3359
+ readonly key: "conductorDescNeutral";
3360
+ readonly label: "Conductor Neutral";
3361
+ readonly format: {
3362
+ readonly type: "text";
3363
+ };
3361
3364
  }, {
3362
3365
  readonly key: "phase";
3363
3366
  readonly label: "Phase";
3364
3367
  readonly format: {
3365
3368
  readonly type: "text";
3366
3369
  };
3370
+ }, {
3371
+ readonly key: "subtype_cd";
3372
+ readonly label: "Subtype";
3373
+ readonly format: {
3374
+ readonly type: "text";
3375
+ };
3367
3376
  }];
3368
3377
  readonly UNDERGROUND_LINE: [{
3369
3378
  readonly key: "impedanceLength";
@@ -3397,23 +3406,33 @@ declare const GRID_STAT_LIST: {
3397
3406
  readonly format: {
3398
3407
  readonly type: "text";
3399
3408
  };
3409
+ }, {
3410
+ readonly key: "subtype_cd";
3411
+ readonly label: "Subtype";
3412
+ readonly format: {
3413
+ readonly type: "text";
3414
+ };
3400
3415
  }];
3401
- readonly NODE: [{
3402
- readonly key: "nominalVoltage";
3403
- readonly label: "Nominal Voltage";
3416
+ readonly NODE: [];
3417
+ readonly SUPPORT_STRUCTURE: [{
3418
+ readonly key: "height";
3419
+ readonly label: "Height";
3404
3420
  readonly format: {
3405
- readonly type: "voltage";
3406
- readonly unit: "V";
3421
+ readonly type: "distance";
3422
+ readonly unit: "ft";
3407
3423
  readonly decimals: 0;
3408
3424
  };
3409
- }];
3410
- readonly GENERATOR: [{
3411
- readonly key: "ratedPower";
3412
- readonly label: "Rated Power";
3425
+ }, {
3426
+ readonly key: "class";
3427
+ readonly label: "Class";
3413
3428
  readonly format: {
3414
- readonly type: "power";
3415
- readonly unit: "kW";
3416
- readonly decimals: 1;
3429
+ readonly type: "text";
3430
+ };
3431
+ }, {
3432
+ readonly key: "species";
3433
+ readonly label: "Material";
3434
+ readonly format: {
3435
+ readonly type: "text";
3417
3436
  };
3418
3437
  }, {
3419
3438
  readonly key: "phase";
@@ -3422,12 +3441,17 @@ declare const GRID_STAT_LIST: {
3422
3441
  readonly type: "text";
3423
3442
  };
3424
3443
  }, {
3425
- readonly key: "outputVoltage";
3426
- readonly label: "Output Voltage";
3444
+ readonly key: "substation";
3445
+ readonly label: "Substation";
3427
3446
  readonly format: {
3428
- readonly type: "voltage";
3429
- readonly unit: "V";
3430
- readonly decimals: 0;
3447
+ readonly type: "text";
3448
+ };
3449
+ }];
3450
+ readonly GENERATOR: [{
3451
+ readonly key: "phase";
3452
+ readonly label: "Phase";
3453
+ readonly format: {
3454
+ readonly type: "text";
3431
3455
  };
3432
3456
  }];
3433
3457
  readonly MOTOR: [{
@@ -3690,21 +3714,13 @@ declare const ENTITY_CONFIG: {
3690
3714
  readonly detailPage: true;
3691
3715
  readonly properties: {
3692
3716
  readonly statList: [{
3693
- readonly key: "unitSizeKvar";
3694
- readonly label: "Capacity";
3695
- readonly format: {
3696
- readonly type: "power";
3697
- readonly unit: "kVar";
3698
- readonly decimals: 1;
3699
- };
3700
- }, {
3701
3717
  readonly key: "phase";
3702
3718
  readonly label: "Phase";
3703
3719
  readonly format: {
3704
3720
  readonly type: "text";
3705
3721
  };
3706
3722
  }, {
3707
- readonly key: "nominalVoltage";
3723
+ readonly key: "nominalVoltageV";
3708
3724
  readonly label: "Nominal Voltage";
3709
3725
  readonly format: {
3710
3726
  readonly type: "voltage";
@@ -3738,16 +3754,20 @@ declare const ENTITY_CONFIG: {
3738
3754
  readonly type: "text";
3739
3755
  };
3740
3756
  }, {
3741
- readonly key: "ratedCurrent";
3742
- readonly label: "Rated Current";
3757
+ readonly key: "switchIsOpen";
3758
+ readonly label: "Position";
3743
3759
  readonly format: {
3744
- readonly type: "number";
3745
- readonly unit: "A";
3746
- readonly decimals: 0;
3760
+ readonly type: "text";
3761
+ };
3762
+ }, {
3763
+ readonly key: "switch_status";
3764
+ readonly label: "Status";
3765
+ readonly format: {
3766
+ readonly type: "text";
3747
3767
  };
3748
3768
  }, {
3749
- readonly key: "normalState";
3750
- readonly label: "Normal State";
3769
+ readonly key: "partnerIdentifier";
3770
+ readonly label: "Partner ID";
3751
3771
  readonly format: {
3752
3772
  readonly type: "text";
3753
3773
  };
@@ -3788,16 +3808,20 @@ declare const ENTITY_CONFIG: {
3788
3808
  readonly type: "text";
3789
3809
  };
3790
3810
  }, {
3791
- readonly key: "ratedCurrent";
3792
- readonly label: "Rated Current";
3811
+ readonly key: "switchIsOpen";
3812
+ readonly label: "Position";
3793
3813
  readonly format: {
3794
- readonly type: "number";
3795
- readonly unit: "A";
3796
- readonly decimals: 0;
3814
+ readonly type: "text";
3815
+ };
3816
+ }, {
3817
+ readonly key: "switch_status";
3818
+ readonly label: "Status";
3819
+ readonly format: {
3820
+ readonly type: "text";
3797
3821
  };
3798
3822
  }, {
3799
- readonly key: "normalState";
3800
- readonly label: "Normal State";
3823
+ readonly key: "partnerIdentifier";
3824
+ readonly label: "Partner ID";
3801
3825
  readonly format: {
3802
3826
  readonly type: "text";
3803
3827
  };
@@ -3825,15 +3849,7 @@ declare const ENTITY_CONFIG: {
3825
3849
  readonly archetype: "grid-energized";
3826
3850
  readonly detailPage: true;
3827
3851
  readonly properties: {
3828
- readonly statList: [{
3829
- readonly key: "nominalVoltage";
3830
- readonly label: "Nominal Voltage";
3831
- readonly format: {
3832
- readonly type: "voltage";
3833
- readonly unit: "V";
3834
- readonly decimals: 0;
3835
- };
3836
- }];
3852
+ readonly statList: [];
3837
3853
  };
3838
3854
  readonly label: {
3839
3855
  readonly singular: "Relay";
@@ -4017,12 +4033,24 @@ declare const ENTITY_CONFIG: {
4017
4033
  readonly format: {
4018
4034
  readonly type: "text";
4019
4035
  };
4036
+ }, {
4037
+ readonly key: "conductorDescNeutral";
4038
+ readonly label: "Conductor Neutral";
4039
+ readonly format: {
4040
+ readonly type: "text";
4041
+ };
4020
4042
  }, {
4021
4043
  readonly key: "phase";
4022
4044
  readonly label: "Phase";
4023
4045
  readonly format: {
4024
4046
  readonly type: "text";
4025
4047
  };
4048
+ }, {
4049
+ readonly key: "subtype_cd";
4050
+ readonly label: "Subtype";
4051
+ readonly format: {
4052
+ readonly type: "text";
4053
+ };
4026
4054
  }];
4027
4055
  };
4028
4056
  readonly label: {
@@ -4063,12 +4091,24 @@ declare const ENTITY_CONFIG: {
4063
4091
  readonly format: {
4064
4092
  readonly type: "text";
4065
4093
  };
4094
+ }, {
4095
+ readonly key: "conductorDescNeutral";
4096
+ readonly label: "Conductor Neutral";
4097
+ readonly format: {
4098
+ readonly type: "text";
4099
+ };
4066
4100
  }, {
4067
4101
  readonly key: "phase";
4068
4102
  readonly label: "Phase";
4069
4103
  readonly format: {
4070
4104
  readonly type: "text";
4071
4105
  };
4106
+ }, {
4107
+ readonly key: "subtype_cd";
4108
+ readonly label: "Subtype";
4109
+ readonly format: {
4110
+ readonly type: "text";
4111
+ };
4072
4112
  }];
4073
4113
  };
4074
4114
  readonly label: {
@@ -4109,12 +4149,24 @@ declare const ENTITY_CONFIG: {
4109
4149
  readonly format: {
4110
4150
  readonly type: "text";
4111
4151
  };
4152
+ }, {
4153
+ readonly key: "conductorDescNeutral";
4154
+ readonly label: "Conductor Neutral";
4155
+ readonly format: {
4156
+ readonly type: "text";
4157
+ };
4112
4158
  }, {
4113
4159
  readonly key: "phase";
4114
4160
  readonly label: "Phase";
4115
4161
  readonly format: {
4116
4162
  readonly type: "text";
4117
4163
  };
4164
+ }, {
4165
+ readonly key: "subtype_cd";
4166
+ readonly label: "Subtype";
4167
+ readonly format: {
4168
+ readonly type: "text";
4169
+ };
4118
4170
  }];
4119
4171
  };
4120
4172
  readonly label: {
@@ -4161,6 +4213,12 @@ declare const ENTITY_CONFIG: {
4161
4213
  readonly format: {
4162
4214
  readonly type: "text";
4163
4215
  };
4216
+ }, {
4217
+ readonly key: "subtype_cd";
4218
+ readonly label: "Subtype";
4219
+ readonly format: {
4220
+ readonly type: "text";
4221
+ };
4164
4222
  }];
4165
4223
  };
4166
4224
  readonly label: {
@@ -4207,6 +4265,12 @@ declare const ENTITY_CONFIG: {
4207
4265
  readonly format: {
4208
4266
  readonly type: "text";
4209
4267
  };
4268
+ }, {
4269
+ readonly key: "subtype_cd";
4270
+ readonly label: "Subtype";
4271
+ readonly format: {
4272
+ readonly type: "text";
4273
+ };
4210
4274
  }];
4211
4275
  };
4212
4276
  readonly label: {
@@ -4253,6 +4317,12 @@ declare const ENTITY_CONFIG: {
4253
4317
  readonly format: {
4254
4318
  readonly type: "text";
4255
4319
  };
4320
+ }, {
4321
+ readonly key: "subtype_cd";
4322
+ readonly label: "Subtype";
4323
+ readonly format: {
4324
+ readonly type: "text";
4325
+ };
4256
4326
  }];
4257
4327
  };
4258
4328
  readonly label: {
@@ -4392,27 +4462,11 @@ declare const ENTITY_CONFIG: {
4392
4462
  readonly detailPage: true;
4393
4463
  readonly properties: {
4394
4464
  readonly statList: [{
4395
- readonly key: "ratedPower";
4396
- readonly label: "Rated Power";
4397
- readonly format: {
4398
- readonly type: "power";
4399
- readonly unit: "kW";
4400
- readonly decimals: 1;
4401
- };
4402
- }, {
4403
4465
  readonly key: "phase";
4404
4466
  readonly label: "Phase";
4405
4467
  readonly format: {
4406
4468
  readonly type: "text";
4407
4469
  };
4408
- }, {
4409
- readonly key: "outputVoltage";
4410
- readonly label: "Output Voltage";
4411
- readonly format: {
4412
- readonly type: "voltage";
4413
- readonly unit: "V";
4414
- readonly decimals: 0;
4415
- };
4416
4470
  }];
4417
4471
  };
4418
4472
  readonly label: {
@@ -4428,41 +4482,37 @@ declare const ENTITY_CONFIG: {
4428
4482
  readonly detailPage: true;
4429
4483
  readonly properties: {
4430
4484
  readonly statList: [{
4485
+ readonly key: "rated_kva";
4486
+ readonly label: "Rated kVA";
4487
+ readonly format: {
4488
+ readonly type: "power";
4489
+ readonly unit: "kVA";
4490
+ readonly decimals: 0;
4491
+ };
4492
+ }, {
4431
4493
  readonly key: "phase";
4432
4494
  readonly label: "Phase";
4433
4495
  readonly format: {
4434
4496
  readonly type: "text";
4435
4497
  };
4436
4498
  }, {
4437
- readonly key: "outputVoltagePhA";
4438
- readonly label: "Output Voltage Phase A";
4499
+ readonly key: "manufacturer";
4500
+ readonly label: "Manufacturer";
4439
4501
  readonly format: {
4440
- readonly type: "voltage";
4441
- readonly unit: "V";
4442
- readonly decimals: 0;
4502
+ readonly type: "text";
4443
4503
  };
4444
4504
  }, {
4445
- readonly key: "outputVoltagePhB";
4446
- readonly label: "Output Voltage Phase B";
4505
+ readonly key: "high_side_configuration";
4506
+ readonly label: "High Side";
4447
4507
  readonly format: {
4448
- readonly type: "voltage";
4449
- readonly unit: "V";
4450
- readonly decimals: 0;
4508
+ readonly type: "text";
4451
4509
  };
4452
4510
  }, {
4453
- readonly key: "outputVoltagePhC";
4454
- readonly label: "Output Voltage Phase C";
4511
+ readonly key: "forwardSetVoltageV";
4512
+ readonly label: "Forward Set Voltage";
4455
4513
  readonly format: {
4456
4514
  readonly type: "voltage";
4457
4515
  readonly unit: "V";
4458
- readonly decimals: 0;
4459
- };
4460
- }, {
4461
- readonly key: "ratedPower";
4462
- readonly label: "Rated Power";
4463
- readonly format: {
4464
- readonly type: "power";
4465
- readonly unit: "kVA";
4466
4516
  readonly decimals: 1;
4467
4517
  };
4468
4518
  }];
@@ -4480,13 +4530,37 @@ declare const ENTITY_CONFIG: {
4480
4530
  readonly detailPage: true;
4481
4531
  readonly properties: {
4482
4532
  readonly statList: [{
4483
- readonly key: "nominalVoltage";
4484
- readonly label: "Nominal Voltage";
4533
+ readonly key: "height";
4534
+ readonly label: "Height";
4485
4535
  readonly format: {
4486
- readonly type: "voltage";
4487
- readonly unit: "V";
4536
+ readonly type: "distance";
4537
+ readonly unit: "ft";
4488
4538
  readonly decimals: 0;
4489
4539
  };
4540
+ }, {
4541
+ readonly key: "class";
4542
+ readonly label: "Class";
4543
+ readonly format: {
4544
+ readonly type: "text";
4545
+ };
4546
+ }, {
4547
+ readonly key: "species";
4548
+ readonly label: "Material";
4549
+ readonly format: {
4550
+ readonly type: "text";
4551
+ };
4552
+ }, {
4553
+ readonly key: "phase";
4554
+ readonly label: "Phase";
4555
+ readonly format: {
4556
+ readonly type: "text";
4557
+ };
4558
+ }, {
4559
+ readonly key: "substation";
4560
+ readonly label: "Substation";
4561
+ readonly format: {
4562
+ readonly type: "text";
4563
+ };
4490
4564
  }];
4491
4565
  };
4492
4566
  readonly label: {
@@ -4932,7 +5006,7 @@ declare const GRID_ELEMENT_TYPE_BY_ENTITY: {
4932
5006
  readonly breaker: "OVERCURRENT_DEVICE";
4933
5007
  readonly generator: "GENERATOR";
4934
5008
  readonly regulator: "REGULATOR";
4935
- readonly supportStructure: "NODE";
5009
+ readonly supportStructure: "SUPPORT_STRUCTURE";
4936
5010
  };
4937
5011
  /**
4938
5012
  * Get entity configuration by type