busroot-sdk 0.0.8-dev.2702581438 → 0.0.8-dev.2705647560
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/build/index.d.ts +96 -0
- package/build/index.js +112 -7
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -267,6 +267,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
267
267
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
268
268
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
269
269
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
270
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
270
271
|
stationGroups: z.ZodArray<z.ZodObject<{
|
|
271
272
|
code: z.ZodString;
|
|
272
273
|
name: z.ZodString;
|
|
@@ -277,6 +278,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
277
278
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
278
279
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
279
280
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
281
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
280
282
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
283
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
284
|
} & {
|
|
@@ -306,6 +308,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
306
308
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
307
309
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
308
310
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
311
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
309
312
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
313
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
314
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -358,6 +361,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
358
361
|
allowRejectProduction?: boolean | null | undefined;
|
|
359
362
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
360
363
|
schedulingOnly?: boolean | null | undefined;
|
|
364
|
+
meterOnly?: boolean | null | undefined;
|
|
361
365
|
currentOperatorInitials?: string | null | undefined;
|
|
362
366
|
statusCode?: string | null | undefined;
|
|
363
367
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -400,6 +404,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
400
404
|
allowRejectProduction?: boolean | null | undefined;
|
|
401
405
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
402
406
|
schedulingOnly?: boolean | null | undefined;
|
|
407
|
+
meterOnly?: boolean | null | undefined;
|
|
403
408
|
currentOperatorInitials?: string | null | undefined;
|
|
404
409
|
statusCode?: string | null | undefined;
|
|
405
410
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -447,6 +452,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
447
452
|
allowRejectProduction?: boolean | null | undefined;
|
|
448
453
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
449
454
|
schedulingOnly?: boolean | null | undefined;
|
|
455
|
+
meterOnly?: boolean | null | undefined;
|
|
450
456
|
currentOperatorInitials?: string | null | undefined;
|
|
451
457
|
statusCode?: string | null | undefined;
|
|
452
458
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -461,6 +467,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
461
467
|
excludeTaskCodes?: string[] | null | undefined;
|
|
462
468
|
includeReasonCodes?: string[] | null | undefined;
|
|
463
469
|
excludeReasonCodes?: string[] | null | undefined;
|
|
470
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
464
471
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
465
472
|
}, {
|
|
466
473
|
code: string;
|
|
@@ -502,6 +509,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
502
509
|
allowRejectProduction?: boolean | null | undefined;
|
|
503
510
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
504
511
|
schedulingOnly?: boolean | null | undefined;
|
|
512
|
+
meterOnly?: boolean | null | undefined;
|
|
505
513
|
currentOperatorInitials?: string | null | undefined;
|
|
506
514
|
statusCode?: string | null | undefined;
|
|
507
515
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -516,6 +524,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
516
524
|
excludeTaskCodes?: string[] | null | undefined;
|
|
517
525
|
includeReasonCodes?: string[] | null | undefined;
|
|
518
526
|
excludeReasonCodes?: string[] | null | undefined;
|
|
527
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
519
528
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
520
529
|
}>, "many">;
|
|
521
530
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -567,6 +576,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
567
576
|
allowRejectProduction?: boolean | null | undefined;
|
|
568
577
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
569
578
|
schedulingOnly?: boolean | null | undefined;
|
|
579
|
+
meterOnly?: boolean | null | undefined;
|
|
570
580
|
currentOperatorInitials?: string | null | undefined;
|
|
571
581
|
statusCode?: string | null | undefined;
|
|
572
582
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -581,6 +591,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
581
591
|
excludeTaskCodes?: string[] | null | undefined;
|
|
582
592
|
includeReasonCodes?: string[] | null | undefined;
|
|
583
593
|
excludeReasonCodes?: string[] | null | undefined;
|
|
594
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
584
595
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
585
596
|
}[];
|
|
586
597
|
createdAt?: string | null | undefined;
|
|
@@ -589,6 +600,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
589
600
|
excludeTaskCodes?: string[] | null | undefined;
|
|
590
601
|
includeReasonCodes?: string[] | null | undefined;
|
|
591
602
|
excludeReasonCodes?: string[] | null | undefined;
|
|
603
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
592
604
|
archivedAt?: string | null | undefined;
|
|
593
605
|
}, {
|
|
594
606
|
code: string;
|
|
@@ -635,6 +647,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
635
647
|
allowRejectProduction?: boolean | null | undefined;
|
|
636
648
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
637
649
|
schedulingOnly?: boolean | null | undefined;
|
|
650
|
+
meterOnly?: boolean | null | undefined;
|
|
638
651
|
currentOperatorInitials?: string | null | undefined;
|
|
639
652
|
statusCode?: string | null | undefined;
|
|
640
653
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -649,6 +662,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
649
662
|
excludeTaskCodes?: string[] | null | undefined;
|
|
650
663
|
includeReasonCodes?: string[] | null | undefined;
|
|
651
664
|
excludeReasonCodes?: string[] | null | undefined;
|
|
665
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
652
666
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
653
667
|
}[];
|
|
654
668
|
createdAt?: string | null | undefined;
|
|
@@ -658,6 +672,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
658
672
|
excludeTaskCodes?: string[] | null | undefined;
|
|
659
673
|
includeReasonCodes?: string[] | null | undefined;
|
|
660
674
|
excludeReasonCodes?: string[] | null | undefined;
|
|
675
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
661
676
|
archivedAt?: string | null | undefined;
|
|
662
677
|
}>, "many">;
|
|
663
678
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -709,6 +724,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
709
724
|
allowRejectProduction?: boolean | null | undefined;
|
|
710
725
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
711
726
|
schedulingOnly?: boolean | null | undefined;
|
|
727
|
+
meterOnly?: boolean | null | undefined;
|
|
712
728
|
currentOperatorInitials?: string | null | undefined;
|
|
713
729
|
statusCode?: string | null | undefined;
|
|
714
730
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -723,6 +739,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
723
739
|
excludeTaskCodes?: string[] | null | undefined;
|
|
724
740
|
includeReasonCodes?: string[] | null | undefined;
|
|
725
741
|
excludeReasonCodes?: string[] | null | undefined;
|
|
742
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
726
743
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
727
744
|
}[];
|
|
728
745
|
createdAt?: string | null | undefined;
|
|
@@ -731,6 +748,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
731
748
|
excludeTaskCodes?: string[] | null | undefined;
|
|
732
749
|
includeReasonCodes?: string[] | null | undefined;
|
|
733
750
|
excludeReasonCodes?: string[] | null | undefined;
|
|
751
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
734
752
|
archivedAt?: string | null | undefined;
|
|
735
753
|
}[];
|
|
736
754
|
createdAt?: string | null | undefined;
|
|
@@ -846,6 +864,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
846
864
|
allowRejectProduction?: boolean | null | undefined;
|
|
847
865
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
848
866
|
schedulingOnly?: boolean | null | undefined;
|
|
867
|
+
meterOnly?: boolean | null | undefined;
|
|
849
868
|
currentOperatorInitials?: string | null | undefined;
|
|
850
869
|
statusCode?: string | null | undefined;
|
|
851
870
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -860,6 +879,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
860
879
|
excludeTaskCodes?: string[] | null | undefined;
|
|
861
880
|
includeReasonCodes?: string[] | null | undefined;
|
|
862
881
|
excludeReasonCodes?: string[] | null | undefined;
|
|
882
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
863
883
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
864
884
|
}[];
|
|
865
885
|
createdAt?: string | null | undefined;
|
|
@@ -869,6 +889,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
869
889
|
excludeTaskCodes?: string[] | null | undefined;
|
|
870
890
|
includeReasonCodes?: string[] | null | undefined;
|
|
871
891
|
excludeReasonCodes?: string[] | null | undefined;
|
|
892
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
872
893
|
archivedAt?: string | null | undefined;
|
|
873
894
|
}[];
|
|
874
895
|
createdAt?: string | null | undefined;
|
|
@@ -988,6 +1009,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
988
1009
|
allowRejectProduction?: boolean | null | undefined;
|
|
989
1010
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
990
1011
|
schedulingOnly?: boolean | null | undefined;
|
|
1012
|
+
meterOnly?: boolean | null | undefined;
|
|
991
1013
|
currentOperatorInitials?: string | null | undefined;
|
|
992
1014
|
statusCode?: string | null | undefined;
|
|
993
1015
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1002,6 +1024,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1002
1024
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1003
1025
|
includeReasonCodes?: string[] | null | undefined;
|
|
1004
1026
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1027
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1005
1028
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1006
1029
|
}[];
|
|
1007
1030
|
createdAt?: string | null | undefined;
|
|
@@ -1010,6 +1033,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1010
1033
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1011
1034
|
includeReasonCodes?: string[] | null | undefined;
|
|
1012
1035
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1036
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1013
1037
|
archivedAt?: string | null | undefined;
|
|
1014
1038
|
}[];
|
|
1015
1039
|
createdAt?: string | null | undefined;
|
|
@@ -1128,6 +1152,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1128
1152
|
allowRejectProduction?: boolean | null | undefined;
|
|
1129
1153
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1130
1154
|
schedulingOnly?: boolean | null | undefined;
|
|
1155
|
+
meterOnly?: boolean | null | undefined;
|
|
1131
1156
|
currentOperatorInitials?: string | null | undefined;
|
|
1132
1157
|
statusCode?: string | null | undefined;
|
|
1133
1158
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1142,6 +1167,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1142
1167
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1143
1168
|
includeReasonCodes?: string[] | null | undefined;
|
|
1144
1169
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1170
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1145
1171
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1146
1172
|
}[];
|
|
1147
1173
|
createdAt?: string | null | undefined;
|
|
@@ -1151,6 +1177,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1151
1177
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1152
1178
|
includeReasonCodes?: string[] | null | undefined;
|
|
1153
1179
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1180
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1154
1181
|
archivedAt?: string | null | undefined;
|
|
1155
1182
|
}[];
|
|
1156
1183
|
createdAt?: string | null | undefined;
|
|
@@ -1270,6 +1297,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1270
1297
|
allowRejectProduction?: boolean | null | undefined;
|
|
1271
1298
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1272
1299
|
schedulingOnly?: boolean | null | undefined;
|
|
1300
|
+
meterOnly?: boolean | null | undefined;
|
|
1273
1301
|
currentOperatorInitials?: string | null | undefined;
|
|
1274
1302
|
statusCode?: string | null | undefined;
|
|
1275
1303
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1284,6 +1312,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1284
1312
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1285
1313
|
includeReasonCodes?: string[] | null | undefined;
|
|
1286
1314
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1315
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1287
1316
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1288
1317
|
}[];
|
|
1289
1318
|
createdAt?: string | null | undefined;
|
|
@@ -1292,6 +1321,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1292
1321
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1293
1322
|
includeReasonCodes?: string[] | null | undefined;
|
|
1294
1323
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1324
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1295
1325
|
archivedAt?: string | null | undefined;
|
|
1296
1326
|
}[];
|
|
1297
1327
|
createdAt?: string | null | undefined;
|
|
@@ -1410,6 +1440,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1410
1440
|
allowRejectProduction?: boolean | null | undefined;
|
|
1411
1441
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1412
1442
|
schedulingOnly?: boolean | null | undefined;
|
|
1443
|
+
meterOnly?: boolean | null | undefined;
|
|
1413
1444
|
currentOperatorInitials?: string | null | undefined;
|
|
1414
1445
|
statusCode?: string | null | undefined;
|
|
1415
1446
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1424,6 +1455,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1424
1455
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1425
1456
|
includeReasonCodes?: string[] | null | undefined;
|
|
1426
1457
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1458
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1427
1459
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1428
1460
|
}[];
|
|
1429
1461
|
createdAt?: string | null | undefined;
|
|
@@ -1433,6 +1465,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1433
1465
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1434
1466
|
includeReasonCodes?: string[] | null | undefined;
|
|
1435
1467
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1468
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1436
1469
|
archivedAt?: string | null | undefined;
|
|
1437
1470
|
}[];
|
|
1438
1471
|
createdAt?: string | null | undefined;
|
|
@@ -1556,6 +1589,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1556
1589
|
allowRejectProduction?: boolean | null | undefined;
|
|
1557
1590
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1558
1591
|
schedulingOnly?: boolean | null | undefined;
|
|
1592
|
+
meterOnly?: boolean | null | undefined;
|
|
1559
1593
|
currentOperatorInitials?: string | null | undefined;
|
|
1560
1594
|
statusCode?: string | null | undefined;
|
|
1561
1595
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1570,6 +1604,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1570
1604
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1571
1605
|
includeReasonCodes?: string[] | null | undefined;
|
|
1572
1606
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1607
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1573
1608
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1574
1609
|
}[];
|
|
1575
1610
|
createdAt?: string | null | undefined;
|
|
@@ -1578,6 +1613,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1578
1613
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1579
1614
|
includeReasonCodes?: string[] | null | undefined;
|
|
1580
1615
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1616
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1581
1617
|
archivedAt?: string | null | undefined;
|
|
1582
1618
|
}[];
|
|
1583
1619
|
createdAt?: string | null | undefined;
|
|
@@ -1722,6 +1758,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1722
1758
|
allowRejectProduction?: boolean | null | undefined;
|
|
1723
1759
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1724
1760
|
schedulingOnly?: boolean | null | undefined;
|
|
1761
|
+
meterOnly?: boolean | null | undefined;
|
|
1725
1762
|
currentOperatorInitials?: string | null | undefined;
|
|
1726
1763
|
statusCode?: string | null | undefined;
|
|
1727
1764
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1736,6 +1773,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1736
1773
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1737
1774
|
includeReasonCodes?: string[] | null | undefined;
|
|
1738
1775
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1776
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1739
1777
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1740
1778
|
}[];
|
|
1741
1779
|
createdAt?: string | null | undefined;
|
|
@@ -1745,6 +1783,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1745
1783
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1746
1784
|
includeReasonCodes?: string[] | null | undefined;
|
|
1747
1785
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1786
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1748
1787
|
archivedAt?: string | null | undefined;
|
|
1749
1788
|
}[];
|
|
1750
1789
|
createdAt?: string | null | undefined;
|
|
@@ -2045,6 +2084,7 @@ declare class BusrootClient {
|
|
|
2045
2084
|
allowRejectProduction?: boolean | null | undefined;
|
|
2046
2085
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2047
2086
|
schedulingOnly?: boolean | null | undefined;
|
|
2087
|
+
meterOnly?: boolean | null | undefined;
|
|
2048
2088
|
currentOperatorInitials?: string | null | undefined;
|
|
2049
2089
|
statusCode?: string | null | undefined;
|
|
2050
2090
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2059,6 +2099,7 @@ declare class BusrootClient {
|
|
|
2059
2099
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2060
2100
|
includeReasonCodes?: string[] | null | undefined;
|
|
2061
2101
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2102
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2062
2103
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2063
2104
|
}[];
|
|
2064
2105
|
createdAt?: string | null | undefined;
|
|
@@ -2068,6 +2109,7 @@ declare class BusrootClient {
|
|
|
2068
2109
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2069
2110
|
includeReasonCodes?: string[] | null | undefined;
|
|
2070
2111
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2112
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2071
2113
|
archivedAt?: string | null | undefined;
|
|
2072
2114
|
}[];
|
|
2073
2115
|
createdAt?: string | null | undefined;
|
|
@@ -2218,6 +2260,7 @@ declare class BusrootClient {
|
|
|
2218
2260
|
allowRejectProduction?: boolean | null | undefined;
|
|
2219
2261
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2220
2262
|
schedulingOnly?: boolean | null | undefined;
|
|
2263
|
+
meterOnly?: boolean | null | undefined;
|
|
2221
2264
|
currentOperatorInitials?: string | null | undefined;
|
|
2222
2265
|
statusCode?: string | null | undefined;
|
|
2223
2266
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2232,6 +2275,7 @@ declare class BusrootClient {
|
|
|
2232
2275
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2233
2276
|
includeReasonCodes?: string[] | null | undefined;
|
|
2234
2277
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2278
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2235
2279
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2236
2280
|
}[];
|
|
2237
2281
|
createdAt?: string | null | undefined;
|
|
@@ -2241,6 +2285,7 @@ declare class BusrootClient {
|
|
|
2241
2285
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2242
2286
|
includeReasonCodes?: string[] | null | undefined;
|
|
2243
2287
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2288
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2244
2289
|
archivedAt?: string | null | undefined;
|
|
2245
2290
|
}[];
|
|
2246
2291
|
createdAt?: string | null | undefined;
|
|
@@ -2388,6 +2433,7 @@ declare class BusrootClient {
|
|
|
2388
2433
|
allowRejectProduction?: boolean | null | undefined;
|
|
2389
2434
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2390
2435
|
schedulingOnly?: boolean | null | undefined;
|
|
2436
|
+
meterOnly?: boolean | null | undefined;
|
|
2391
2437
|
currentOperatorInitials?: string | null | undefined;
|
|
2392
2438
|
statusCode?: string | null | undefined;
|
|
2393
2439
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2402,8 +2448,10 @@ declare class BusrootClient {
|
|
|
2402
2448
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2403
2449
|
includeReasonCodes?: string[] | null | undefined;
|
|
2404
2450
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2451
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2405
2452
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2406
2453
|
}[];
|
|
2454
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2407
2455
|
}[]>;
|
|
2408
2456
|
"plant.get": (args_0: {
|
|
2409
2457
|
plantCode: string;
|
|
@@ -2454,6 +2502,7 @@ declare class BusrootClient {
|
|
|
2454
2502
|
allowRejectProduction?: boolean | null | undefined;
|
|
2455
2503
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2456
2504
|
schedulingOnly?: boolean | null | undefined;
|
|
2505
|
+
meterOnly?: boolean | null | undefined;
|
|
2457
2506
|
currentOperatorInitials?: string | null | undefined;
|
|
2458
2507
|
statusCode?: string | null | undefined;
|
|
2459
2508
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2468,8 +2517,10 @@ declare class BusrootClient {
|
|
|
2468
2517
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2469
2518
|
includeReasonCodes?: string[] | null | undefined;
|
|
2470
2519
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2520
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2471
2521
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2472
2522
|
}[];
|
|
2523
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2473
2524
|
}>;
|
|
2474
2525
|
"plant.createUpdate": (args_0: {
|
|
2475
2526
|
code: string;
|
|
@@ -2481,6 +2532,7 @@ declare class BusrootClient {
|
|
|
2481
2532
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2482
2533
|
includeReasonCodes?: string[] | null | undefined;
|
|
2483
2534
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2535
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2484
2536
|
}, ...args: unknown[]) => Promise<{
|
|
2485
2537
|
code: string;
|
|
2486
2538
|
name: string;
|
|
@@ -2528,6 +2580,7 @@ declare class BusrootClient {
|
|
|
2528
2580
|
allowRejectProduction?: boolean | null | undefined;
|
|
2529
2581
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2530
2582
|
schedulingOnly?: boolean | null | undefined;
|
|
2583
|
+
meterOnly?: boolean | null | undefined;
|
|
2531
2584
|
currentOperatorInitials?: string | null | undefined;
|
|
2532
2585
|
statusCode?: string | null | undefined;
|
|
2533
2586
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2542,8 +2595,10 @@ declare class BusrootClient {
|
|
|
2542
2595
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2543
2596
|
includeReasonCodes?: string[] | null | undefined;
|
|
2544
2597
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2598
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2545
2599
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2546
2600
|
}[];
|
|
2601
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2547
2602
|
}>;
|
|
2548
2603
|
"station.get": (args_0: {
|
|
2549
2604
|
stationCode: string;
|
|
@@ -2597,6 +2652,7 @@ declare class BusrootClient {
|
|
|
2597
2652
|
allowRejectProduction?: boolean | null | undefined;
|
|
2598
2653
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2599
2654
|
schedulingOnly?: boolean | null | undefined;
|
|
2655
|
+
meterOnly?: boolean | null | undefined;
|
|
2600
2656
|
currentOperatorInitials?: string | null | undefined;
|
|
2601
2657
|
statusCode?: string | null | undefined;
|
|
2602
2658
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2869,6 +2925,7 @@ declare class BusrootClient {
|
|
|
2869
2925
|
allowRejectProduction?: boolean | null | undefined;
|
|
2870
2926
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2871
2927
|
schedulingOnly?: boolean | null | undefined;
|
|
2928
|
+
meterOnly?: boolean | null | undefined;
|
|
2872
2929
|
cycleTime?: number | null | undefined;
|
|
2873
2930
|
unitsPerMinute?: number | null | undefined;
|
|
2874
2931
|
unitsPerHour?: number | null | undefined;
|
|
@@ -2895,6 +2952,7 @@ declare class BusrootClient {
|
|
|
2895
2952
|
excludeTaskCodes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
2896
2953
|
plantCode: z.ZodOptional<z.ZodString>;
|
|
2897
2954
|
allowScheduleStationFlexibility: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2955
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
2898
2956
|
}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => Promise<{
|
|
2899
2957
|
code: string;
|
|
2900
2958
|
accountId: string;
|
|
@@ -2947,6 +3005,7 @@ declare class BusrootClient {
|
|
|
2947
3005
|
allowRejectProduction?: boolean | null | undefined;
|
|
2948
3006
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2949
3007
|
schedulingOnly?: boolean | null | undefined;
|
|
3008
|
+
meterOnly?: boolean | null | undefined;
|
|
2950
3009
|
currentOperatorInitials?: string | null | undefined;
|
|
2951
3010
|
statusCode?: string | null | undefined;
|
|
2952
3011
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2956,6 +3015,7 @@ declare class BusrootClient {
|
|
|
2956
3015
|
}[];
|
|
2957
3016
|
plantTimezone: string;
|
|
2958
3017
|
shiftPatternCode?: string | null | undefined;
|
|
3018
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2959
3019
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2960
3020
|
}>;
|
|
2961
3021
|
"production.get": (args_0: {
|
|
@@ -3601,6 +3661,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3601
3661
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3602
3662
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3603
3663
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3664
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3604
3665
|
stationGroups: z.ZodArray<z.ZodObject<{
|
|
3605
3666
|
code: z.ZodString;
|
|
3606
3667
|
name: z.ZodString;
|
|
@@ -3611,6 +3672,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3611
3672
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3612
3673
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3613
3674
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3675
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3614
3676
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3615
3677
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3616
3678
|
} & {
|
|
@@ -3640,6 +3702,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3640
3702
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3641
3703
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3642
3704
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3705
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3643
3706
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3644
3707
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3645
3708
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3692,6 +3755,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3692
3755
|
allowRejectProduction?: boolean | null | undefined;
|
|
3693
3756
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3694
3757
|
schedulingOnly?: boolean | null | undefined;
|
|
3758
|
+
meterOnly?: boolean | null | undefined;
|
|
3695
3759
|
currentOperatorInitials?: string | null | undefined;
|
|
3696
3760
|
statusCode?: string | null | undefined;
|
|
3697
3761
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3734,6 +3798,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3734
3798
|
allowRejectProduction?: boolean | null | undefined;
|
|
3735
3799
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3736
3800
|
schedulingOnly?: boolean | null | undefined;
|
|
3801
|
+
meterOnly?: boolean | null | undefined;
|
|
3737
3802
|
currentOperatorInitials?: string | null | undefined;
|
|
3738
3803
|
statusCode?: string | null | undefined;
|
|
3739
3804
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3781,6 +3846,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3781
3846
|
allowRejectProduction?: boolean | null | undefined;
|
|
3782
3847
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3783
3848
|
schedulingOnly?: boolean | null | undefined;
|
|
3849
|
+
meterOnly?: boolean | null | undefined;
|
|
3784
3850
|
currentOperatorInitials?: string | null | undefined;
|
|
3785
3851
|
statusCode?: string | null | undefined;
|
|
3786
3852
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3795,6 +3861,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3795
3861
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3796
3862
|
includeReasonCodes?: string[] | null | undefined;
|
|
3797
3863
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3864
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3798
3865
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3799
3866
|
}, {
|
|
3800
3867
|
code: string;
|
|
@@ -3836,6 +3903,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3836
3903
|
allowRejectProduction?: boolean | null | undefined;
|
|
3837
3904
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3838
3905
|
schedulingOnly?: boolean | null | undefined;
|
|
3906
|
+
meterOnly?: boolean | null | undefined;
|
|
3839
3907
|
currentOperatorInitials?: string | null | undefined;
|
|
3840
3908
|
statusCode?: string | null | undefined;
|
|
3841
3909
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3850,6 +3918,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3850
3918
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3851
3919
|
includeReasonCodes?: string[] | null | undefined;
|
|
3852
3920
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3921
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3853
3922
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3854
3923
|
}>, "many">;
|
|
3855
3924
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3901,6 +3970,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3901
3970
|
allowRejectProduction?: boolean | null | undefined;
|
|
3902
3971
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3903
3972
|
schedulingOnly?: boolean | null | undefined;
|
|
3973
|
+
meterOnly?: boolean | null | undefined;
|
|
3904
3974
|
currentOperatorInitials?: string | null | undefined;
|
|
3905
3975
|
statusCode?: string | null | undefined;
|
|
3906
3976
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3915,6 +3985,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3915
3985
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3916
3986
|
includeReasonCodes?: string[] | null | undefined;
|
|
3917
3987
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3988
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3918
3989
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3919
3990
|
}[];
|
|
3920
3991
|
createdAt?: string | null | undefined;
|
|
@@ -3923,6 +3994,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3923
3994
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3924
3995
|
includeReasonCodes?: string[] | null | undefined;
|
|
3925
3996
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3997
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3926
3998
|
archivedAt?: string | null | undefined;
|
|
3927
3999
|
}, {
|
|
3928
4000
|
code: string;
|
|
@@ -3969,6 +4041,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3969
4041
|
allowRejectProduction?: boolean | null | undefined;
|
|
3970
4042
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3971
4043
|
schedulingOnly?: boolean | null | undefined;
|
|
4044
|
+
meterOnly?: boolean | null | undefined;
|
|
3972
4045
|
currentOperatorInitials?: string | null | undefined;
|
|
3973
4046
|
statusCode?: string | null | undefined;
|
|
3974
4047
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3983,6 +4056,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3983
4056
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3984
4057
|
includeReasonCodes?: string[] | null | undefined;
|
|
3985
4058
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4059
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3986
4060
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3987
4061
|
}[];
|
|
3988
4062
|
createdAt?: string | null | undefined;
|
|
@@ -3992,6 +4066,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3992
4066
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3993
4067
|
includeReasonCodes?: string[] | null | undefined;
|
|
3994
4068
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4069
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3995
4070
|
archivedAt?: string | null | undefined;
|
|
3996
4071
|
}>;
|
|
3997
4072
|
type PlantSchema = z.infer<typeof PlantSchema>;
|
|
@@ -4011,6 +4086,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4011
4086
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4012
4087
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4013
4088
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4089
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4014
4090
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4015
4091
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4016
4092
|
} & {
|
|
@@ -4040,6 +4116,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4040
4116
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4041
4117
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4042
4118
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4119
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4043
4120
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4044
4121
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4045
4122
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4092,6 +4169,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4092
4169
|
allowRejectProduction?: boolean | null | undefined;
|
|
4093
4170
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4094
4171
|
schedulingOnly?: boolean | null | undefined;
|
|
4172
|
+
meterOnly?: boolean | null | undefined;
|
|
4095
4173
|
currentOperatorInitials?: string | null | undefined;
|
|
4096
4174
|
statusCode?: string | null | undefined;
|
|
4097
4175
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4134,6 +4212,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4134
4212
|
allowRejectProduction?: boolean | null | undefined;
|
|
4135
4213
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4136
4214
|
schedulingOnly?: boolean | null | undefined;
|
|
4215
|
+
meterOnly?: boolean | null | undefined;
|
|
4137
4216
|
currentOperatorInitials?: string | null | undefined;
|
|
4138
4217
|
statusCode?: string | null | undefined;
|
|
4139
4218
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4181,6 +4260,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4181
4260
|
allowRejectProduction?: boolean | null | undefined;
|
|
4182
4261
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4183
4262
|
schedulingOnly?: boolean | null | undefined;
|
|
4263
|
+
meterOnly?: boolean | null | undefined;
|
|
4184
4264
|
currentOperatorInitials?: string | null | undefined;
|
|
4185
4265
|
statusCode?: string | null | undefined;
|
|
4186
4266
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4195,6 +4275,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4195
4275
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4196
4276
|
includeReasonCodes?: string[] | null | undefined;
|
|
4197
4277
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4278
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4198
4279
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4199
4280
|
}, {
|
|
4200
4281
|
code: string;
|
|
@@ -4236,6 +4317,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4236
4317
|
allowRejectProduction?: boolean | null | undefined;
|
|
4237
4318
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4238
4319
|
schedulingOnly?: boolean | null | undefined;
|
|
4320
|
+
meterOnly?: boolean | null | undefined;
|
|
4239
4321
|
currentOperatorInitials?: string | null | undefined;
|
|
4240
4322
|
statusCode?: string | null | undefined;
|
|
4241
4323
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4250,10 +4332,12 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4250
4332
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4251
4333
|
includeReasonCodes?: string[] | null | undefined;
|
|
4252
4334
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4335
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4253
4336
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4254
4337
|
}>, "many">;
|
|
4255
4338
|
dayStartHour: z.ZodNumber;
|
|
4256
4339
|
weekStartDay: z.ZodNumber;
|
|
4340
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4257
4341
|
}, "strip", z.ZodTypeAny, {
|
|
4258
4342
|
code: string;
|
|
4259
4343
|
name: string;
|
|
@@ -4301,6 +4385,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4301
4385
|
allowRejectProduction?: boolean | null | undefined;
|
|
4302
4386
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4303
4387
|
schedulingOnly?: boolean | null | undefined;
|
|
4388
|
+
meterOnly?: boolean | null | undefined;
|
|
4304
4389
|
currentOperatorInitials?: string | null | undefined;
|
|
4305
4390
|
statusCode?: string | null | undefined;
|
|
4306
4391
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4315,8 +4400,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4315
4400
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4316
4401
|
includeReasonCodes?: string[] | null | undefined;
|
|
4317
4402
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4403
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4318
4404
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4319
4405
|
}[];
|
|
4406
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4320
4407
|
}, {
|
|
4321
4408
|
code: string;
|
|
4322
4409
|
name: string;
|
|
@@ -4364,6 +4451,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4364
4451
|
allowRejectProduction?: boolean | null | undefined;
|
|
4365
4452
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4366
4453
|
schedulingOnly?: boolean | null | undefined;
|
|
4454
|
+
meterOnly?: boolean | null | undefined;
|
|
4367
4455
|
currentOperatorInitials?: string | null | undefined;
|
|
4368
4456
|
statusCode?: string | null | undefined;
|
|
4369
4457
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4378,8 +4466,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4378
4466
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4379
4467
|
includeReasonCodes?: string[] | null | undefined;
|
|
4380
4468
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4469
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4381
4470
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4382
4471
|
}[];
|
|
4472
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4383
4473
|
}>;
|
|
4384
4474
|
type PlantViewModel = z.infer<typeof PlantViewModel>;
|
|
4385
4475
|
|
|
@@ -4690,6 +4780,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4690
4780
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4691
4781
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4692
4782
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4783
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4693
4784
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4694
4785
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4695
4786
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4747,6 +4838,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4747
4838
|
allowRejectProduction?: boolean | null | undefined;
|
|
4748
4839
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4749
4840
|
schedulingOnly?: boolean | null | undefined;
|
|
4841
|
+
meterOnly?: boolean | null | undefined;
|
|
4750
4842
|
currentOperatorInitials?: string | null | undefined;
|
|
4751
4843
|
statusCode?: string | null | undefined;
|
|
4752
4844
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4791,6 +4883,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4791
4883
|
allowRejectProduction?: boolean | null | undefined;
|
|
4792
4884
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4793
4885
|
schedulingOnly?: boolean | null | undefined;
|
|
4886
|
+
meterOnly?: boolean | null | undefined;
|
|
4794
4887
|
currentOperatorInitials?: string | null | undefined;
|
|
4795
4888
|
statusCode?: string | null | undefined;
|
|
4796
4889
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4830,6 +4923,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
4830
4923
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4831
4924
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4832
4925
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4926
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4833
4927
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4834
4928
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4835
4929
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5269,6 +5363,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5269
5363
|
allowRejectProduction?: boolean | null | undefined;
|
|
5270
5364
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5271
5365
|
schedulingOnly?: boolean | null | undefined;
|
|
5366
|
+
meterOnly?: boolean | null | undefined;
|
|
5272
5367
|
currentOperatorInitials?: string | null | undefined;
|
|
5273
5368
|
statusCode?: string | null | undefined;
|
|
5274
5369
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -5434,6 +5529,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5434
5529
|
allowRejectProduction?: boolean | null | undefined;
|
|
5435
5530
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5436
5531
|
schedulingOnly?: boolean | null | undefined;
|
|
5532
|
+
meterOnly?: boolean | null | undefined;
|
|
5437
5533
|
currentOperatorInitials?: string | null | undefined;
|
|
5438
5534
|
statusCode?: string | null | undefined;
|
|
5439
5535
|
statusCodeUpdatedAt?: string | null | undefined;
|
package/build/index.js
CHANGED
|
@@ -196,6 +196,7 @@ var require_base_station_group = __commonJS({
|
|
|
196
196
|
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes."),
|
|
197
197
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: If set, only these Task codes are available at this level. Applied before excludeTaskCodes."),
|
|
198
198
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level. Applied after includeTaskCodes."),
|
|
199
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Total Energy Station Codes: When set, this group's energy (kWh, cost, CO2) is the sum of these stations' energy instead of the additive sum over member stations."),
|
|
199
200
|
createdAt: zod_1.z.string().nullish().describe("Group creation timestamp (ISO 8601, system managed)"),
|
|
200
201
|
updatedAt: zod_1.z.string().nullish().describe("Last update timestamp (ISO 8601, system managed)")
|
|
201
202
|
}).strict();
|
|
@@ -563,6 +564,7 @@ var require_base_station = __commonJS({
|
|
|
563
564
|
allowRejectProduction: zod_1.z.boolean().default(false).nullish().describe("Allow Reject Production: Enables reject (bad quality) production to be recorded by operators."),
|
|
564
565
|
allowEditPartsPerCycle: zod_1.z.boolean().default(false).nullish().describe("Allow Edit Parts per Cycle: Allow operators to edit the number of parts in the next cycle using the tablet."),
|
|
565
566
|
schedulingOnly: zod_1.z.boolean().default(false).nullish().describe("Scheduling Only: When true, this station is only visible on the Gantt Chart and Schedule List. It is hidden from dashboards, production views, reports, tablets, and other views. Default: false"),
|
|
567
|
+
meterOnly: zod_1.z.boolean().default(false).nullish().describe("Meter Only: When true, this station represents a physical energy meter (e.g. a plant incomer). It only publishes electrical signals and is hidden from production views, rollups, and station pickers by default. Default: false"),
|
|
566
568
|
// Current State
|
|
567
569
|
currentOperatorInitials: zod_1.z.string().min(3).max(3).nullish().describe("Current Operator Initials: Current operator's initials (exactly 3 characters, system managed)"),
|
|
568
570
|
statusCode: zod_1.z.string().nullish().describe("Status Code: Current status code of the station (system managed)"),
|
|
@@ -607,6 +609,7 @@ var require_plant = __commonJS({
|
|
|
607
609
|
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes."),
|
|
608
610
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: If set, only these Task codes are available at this level. Applied before excludeTaskCodes."),
|
|
609
611
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level. Applied after includeTaskCodes."),
|
|
612
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Total Energy Station Codes: When set, this plant's energy (kWh, cost, CO2) is the sum of these stations' energy instead of the additive sum over member stations."),
|
|
610
613
|
stationGroups: zod_1.z.array(base_station_group_1.BaseStationGroupSchema.extend({
|
|
611
614
|
stations: zod_1.z.array(base_station_1.BaseStationSchema).describe("Array of stations within this group (minimum 1)")
|
|
612
615
|
}).describe("Station group configuration with nested stations")).describe("Array of station groups within this plant (minimum 1)"),
|
|
@@ -1970,7 +1973,7 @@ var require_manifest = __commonJS({
|
|
|
1970
1973
|
"../../packages/common/build/schemas/manifest.js"(exports2) {
|
|
1971
1974
|
"use strict";
|
|
1972
1975
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1973
|
-
exports2.ManifestSchema = void 0;
|
|
1976
|
+
exports2.StrictManifestSchema = exports2.ManifestSchema = void 0;
|
|
1974
1977
|
var zod_1 = require("zod");
|
|
1975
1978
|
var base_account_1 = require_base_account();
|
|
1976
1979
|
var plant_1 = require_plant();
|
|
@@ -2048,19 +2051,52 @@ var require_manifest = __commonJS({
|
|
|
2048
2051
|
validateNoOverlap(level.includeTaskCodes, level.excludeTaskCodes, "Task code", [...basePath, "includeTaskCodes"], [...basePath, "excludeTaskCodes"]);
|
|
2049
2052
|
};
|
|
2050
2053
|
validateLevel(data.account, ["account"]);
|
|
2054
|
+
const validateTotalEnergyStationCodes = (codes, activeStationCodesLower, scopeLabel, path) => {
|
|
2055
|
+
for (const code of codes ?? []) {
|
|
2056
|
+
if (!activeStationCodesLower.has(code.toLowerCase())) {
|
|
2057
|
+
ctx.addIssue({
|
|
2058
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2059
|
+
message: `Total energy station code '${code}' does not match a non-archived station in ${scopeLabel}`,
|
|
2060
|
+
path
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
};
|
|
2051
2065
|
for (const [pi, plant] of data.account.plants.entries()) {
|
|
2052
2066
|
const plantPath = ["account", "plants", pi];
|
|
2053
2067
|
validateLevel(plant, plantPath);
|
|
2068
|
+
const plantActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2054
2069
|
for (const [gi, group] of plant.stationGroups.entries()) {
|
|
2055
2070
|
const groupPath = [...plantPath, "stationGroups", gi];
|
|
2056
2071
|
validateLevel(group, groupPath);
|
|
2057
2072
|
validateShiftPatternCode(group.shiftPatternCode, [...groupPath, "shiftPatternCode"]);
|
|
2073
|
+
const groupActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2058
2074
|
for (const [si, station] of group.stations.entries()) {
|
|
2059
2075
|
const stationPath = [...groupPath, "stations", si];
|
|
2060
2076
|
validateLevel(station, stationPath);
|
|
2061
2077
|
validateShiftPatternCode(station.shiftPatternCode, [...stationPath, "shiftPatternCode"]);
|
|
2078
|
+
if (station.meterOnly && station.schedulingOnly) {
|
|
2079
|
+
ctx.addIssue({
|
|
2080
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2081
|
+
message: `Station '${station.code}' cannot be both meterOnly and schedulingOnly`,
|
|
2082
|
+
path: [...stationPath, "meterOnly"]
|
|
2083
|
+
});
|
|
2084
|
+
}
|
|
2085
|
+
if (!station.archivedAt) {
|
|
2086
|
+
const codeLower = station.code.toLowerCase();
|
|
2087
|
+
groupActiveStationCodesLower.add(codeLower);
|
|
2088
|
+
plantActiveStationCodesLower.add(codeLower);
|
|
2089
|
+
}
|
|
2062
2090
|
}
|
|
2091
|
+
validateTotalEnergyStationCodes(group.totalEnergyStationCodes, groupActiveStationCodesLower, `station group '${group.code}'`, [
|
|
2092
|
+
...groupPath,
|
|
2093
|
+
"totalEnergyStationCodes"
|
|
2094
|
+
]);
|
|
2063
2095
|
}
|
|
2096
|
+
validateTotalEnergyStationCodes(plant.totalEnergyStationCodes, plantActiveStationCodesLower, `plant '${plant.code}'`, [
|
|
2097
|
+
...plantPath,
|
|
2098
|
+
"totalEnergyStationCodes"
|
|
2099
|
+
]);
|
|
2064
2100
|
}
|
|
2065
2101
|
for (const [ki, sku] of (data.account.skus ?? []).entries()) {
|
|
2066
2102
|
const skuPath = ["account", "skus", ki];
|
|
@@ -2068,6 +2104,48 @@ var require_manifest = __commonJS({
|
|
|
2068
2104
|
validateCodes(sku.includeTaskCodes, validTaskCodes, "Task code", [...skuPath, "includeTaskCodes"]);
|
|
2069
2105
|
}
|
|
2070
2106
|
});
|
|
2107
|
+
exports2.StrictManifestSchema = exports2.ManifestSchema.superRefine((data, ctx) => {
|
|
2108
|
+
const stationCodesLower = /* @__PURE__ */ new Set();
|
|
2109
|
+
const plantCodesLower = /* @__PURE__ */ new Set();
|
|
2110
|
+
const groupCodesLower = /* @__PURE__ */ new Set();
|
|
2111
|
+
for (const plant of data.account.plants) {
|
|
2112
|
+
plantCodesLower.add(plant.code.toLowerCase());
|
|
2113
|
+
for (const group of plant.stationGroups) {
|
|
2114
|
+
groupCodesLower.add(group.code.toLowerCase());
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
for (const [pi, plant] of data.account.plants.entries()) {
|
|
2118
|
+
for (const [gi, group] of plant.stationGroups.entries()) {
|
|
2119
|
+
const groupPath = ["account", "plants", pi, "stationGroups", gi];
|
|
2120
|
+
if (plantCodesLower.has(group.code.toLowerCase())) {
|
|
2121
|
+
ctx.addIssue({
|
|
2122
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2123
|
+
message: `Station group code '${group.code}' collides with a plant code`,
|
|
2124
|
+
path: [...groupPath, "code"]
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
for (const [si, station] of group.stations.entries()) {
|
|
2128
|
+
const stationPath = [...groupPath, "stations", si, "code"];
|
|
2129
|
+
const codeLower = station.code.toLowerCase();
|
|
2130
|
+
if (stationCodesLower.has(codeLower)) {
|
|
2131
|
+
ctx.addIssue({
|
|
2132
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2133
|
+
message: `Station code '${station.code}' is already used by another station (station codes must be unique account-wide, case-insensitively, including archived stations)`,
|
|
2134
|
+
path: stationPath
|
|
2135
|
+
});
|
|
2136
|
+
}
|
|
2137
|
+
stationCodesLower.add(codeLower);
|
|
2138
|
+
if (plantCodesLower.has(codeLower) || groupCodesLower.has(codeLower)) {
|
|
2139
|
+
ctx.addIssue({
|
|
2140
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2141
|
+
message: `Station code '${station.code}' collides with a plant or station group code`,
|
|
2142
|
+
path: stationPath
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
});
|
|
2071
2149
|
}
|
|
2072
2150
|
});
|
|
2073
2151
|
|
|
@@ -2469,7 +2547,8 @@ var require_plant2 = __commonJS({
|
|
|
2469
2547
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2470
2548
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2471
2549
|
includeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Reason Codes: If set, only these reason codes are available at this level. Applied before excludeReasonCodes."),
|
|
2472
|
-
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes.")
|
|
2550
|
+
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes."),
|
|
2551
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Total Energy Station Codes: When set, this plant's energy (kWh, cost, CO2) is the sum of these stations' energy instead of the additive sum over member stations.")
|
|
2473
2552
|
});
|
|
2474
2553
|
exports2.ArchivePlantPostRequest = zod_1.z.object({
|
|
2475
2554
|
plantCode: schemas_1.PlantCodeSchema
|
|
@@ -2616,7 +2695,8 @@ var require_station2 = __commonJS({
|
|
|
2616
2695
|
exports2.StationGetRequest = zod_1.z.object({
|
|
2617
2696
|
sortby: common_1.SortByStandardParam.optional(),
|
|
2618
2697
|
skipcache: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2619
|
-
includeschedulingonly: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional()
|
|
2698
|
+
includeschedulingonly: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2699
|
+
includemeteronly: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional()
|
|
2620
2700
|
});
|
|
2621
2701
|
exports2.AdminStationPutBodyRequest = schemas_1.StationSchema;
|
|
2622
2702
|
var StationLogSchema = zod_1.z.object({
|
|
@@ -2627,7 +2707,8 @@ var require_station2 = __commonJS({
|
|
|
2627
2707
|
});
|
|
2628
2708
|
exports2.StationWindowGetRequest = zod_1.z.object({
|
|
2629
2709
|
includefuture: zod_1.z.string().trim().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2630
|
-
inshiftaverages: zod_1.z.coerce.boolean().optional()
|
|
2710
|
+
inshiftaverages: zod_1.z.coerce.boolean().optional(),
|
|
2711
|
+
includemeteronly: zod_1.z.string().trim().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional()
|
|
2631
2712
|
});
|
|
2632
2713
|
exports2.StationTargetGetRequest = zod_1.z.object({
|
|
2633
2714
|
sortby: common_1.SortByStandardParam.optional()
|
|
@@ -2659,7 +2740,8 @@ var require_station_group2 = __commonJS({
|
|
|
2659
2740
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2660
2741
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2661
2742
|
includeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Reason Codes: If set, only these reason codes are available at this level. Applied before excludeReasonCodes."),
|
|
2662
|
-
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes.")
|
|
2743
|
+
excludeReasonCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Reason Codes: These reason codes are removed at this level. Applied after includeReasonCodes."),
|
|
2744
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Total Energy Station Codes: When set, this group's energy (kWh, cost, CO2) is the sum of these stations' energy instead of the additive sum over member stations.")
|
|
2663
2745
|
});
|
|
2664
2746
|
exports2.StationGroupPostRequest = StationGroupSchema;
|
|
2665
2747
|
exports2.StationGroupGetRquest = zod_1.z.object({ code: exports2.StationGroupCodeSchema });
|
|
@@ -6913,6 +6995,7 @@ var require_station3 = __commonJS({
|
|
|
6913
6995
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6914
6996
|
exports2.stationsFromManifest = stationsFromManifest;
|
|
6915
6997
|
exports2.stationByCode = stationByCode;
|
|
6998
|
+
exports2.stationCodeExists = stationCodeExists;
|
|
6916
6999
|
exports2.stationCodesFromManifest = stationCodesFromManifest;
|
|
6917
7000
|
var shift_1 = require_shift3();
|
|
6918
7001
|
var station_allowed_list_1 = require_station_allowed_list();
|
|
@@ -6939,6 +7022,9 @@ var require_station3 = __commonJS({
|
|
|
6939
7022
|
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
6940
7023
|
continue;
|
|
6941
7024
|
}
|
|
7025
|
+
if (station.meterOnly && !options?.includeMeterOnly && !options?.codes?.length) {
|
|
7026
|
+
continue;
|
|
7027
|
+
}
|
|
6942
7028
|
const resolvedShiftPatternCode = station.shiftPatternCode || group.shiftPatternCode;
|
|
6943
7029
|
let shifts = [];
|
|
6944
7030
|
let shiftPattern;
|
|
@@ -6982,6 +7068,7 @@ var require_station3 = __commonJS({
|
|
|
6982
7068
|
allowScheduleCutShort: station.allowScheduleCutShort,
|
|
6983
7069
|
allowEditPartsPerCycle: station.allowEditPartsPerCycle,
|
|
6984
7070
|
schedulingOnly: station.schedulingOnly ?? false,
|
|
7071
|
+
meterOnly: station.meterOnly ?? false,
|
|
6985
7072
|
allowRejectProduction: station.allowRejectProduction,
|
|
6986
7073
|
currentOperatorInitials: station.currentOperatorInitials ?? null,
|
|
6987
7074
|
statusCode: station.statusCode ?? null,
|
|
@@ -7013,7 +7100,18 @@ var require_station3 = __commonJS({
|
|
|
7013
7100
|
const stations = stationsFromManifest(manifest, { ...options, codes: [code] });
|
|
7014
7101
|
return stations[0];
|
|
7015
7102
|
}
|
|
7016
|
-
function
|
|
7103
|
+
function stationCodeExists(manifest, code) {
|
|
7104
|
+
const codeLower = code.toLowerCase();
|
|
7105
|
+
for (const plant of manifest?.account.plants ?? []) {
|
|
7106
|
+
for (const group of plant.stationGroups) {
|
|
7107
|
+
if (group.stations.some((station) => station.code.toLowerCase() === codeLower)) {
|
|
7108
|
+
return true;
|
|
7109
|
+
}
|
|
7110
|
+
}
|
|
7111
|
+
}
|
|
7112
|
+
return false;
|
|
7113
|
+
}
|
|
7114
|
+
function stationCodesFromManifest(manifest, plantCode, options) {
|
|
7017
7115
|
if (!manifest) {
|
|
7018
7116
|
return [];
|
|
7019
7117
|
}
|
|
@@ -7027,6 +7125,12 @@ var require_station3 = __commonJS({
|
|
|
7027
7125
|
if (station.archivedAt) {
|
|
7028
7126
|
continue;
|
|
7029
7127
|
}
|
|
7128
|
+
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
7129
|
+
continue;
|
|
7130
|
+
}
|
|
7131
|
+
if (station.meterOnly && !options?.includeMeterOnly) {
|
|
7132
|
+
continue;
|
|
7133
|
+
}
|
|
7030
7134
|
result.push({
|
|
7031
7135
|
code: station.code
|
|
7032
7136
|
});
|
|
@@ -8671,7 +8775,8 @@ var require_plant3 = __commonJS({
|
|
|
8671
8775
|
stations: zod_1.z.array(schemas_1.BaseStationSchema)
|
|
8672
8776
|
})),
|
|
8673
8777
|
dayStartHour: zod_1.z.number(),
|
|
8674
|
-
weekStartDay: zod_1.z.number()
|
|
8778
|
+
weekStartDay: zod_1.z.number(),
|
|
8779
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish()
|
|
8675
8780
|
});
|
|
8676
8781
|
}
|
|
8677
8782
|
});
|
package/package.json
CHANGED