busroot-sdk 0.0.8-dev.2702581438 → 0.0.8-dev.2705659883
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 +101 -0
- package/build/index.js +123 -13
- 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: {
|
|
@@ -2978,6 +3038,7 @@ declare class BusrootClient {
|
|
|
2978
3038
|
effectiveCycleTime?: number | null | undefined;
|
|
2979
3039
|
scheduleId?: number | null | undefined;
|
|
2980
3040
|
operatorInitials?: string | null | undefined;
|
|
3041
|
+
badReasonCode?: string | null | undefined;
|
|
2981
3042
|
skuValue?: number | null | undefined;
|
|
2982
3043
|
}[]>;
|
|
2983
3044
|
"production.getEntries": (args_0: {
|
|
@@ -3000,6 +3061,7 @@ declare class BusrootClient {
|
|
|
3000
3061
|
effectiveCycleTime?: number | null | undefined;
|
|
3001
3062
|
scheduleId?: number | null | undefined;
|
|
3002
3063
|
operatorInitials?: string | null | undefined;
|
|
3064
|
+
badReasonCode?: string | null | undefined;
|
|
3003
3065
|
skuValue?: number | null | undefined;
|
|
3004
3066
|
}[]>;
|
|
3005
3067
|
"metrics.get": (args_0: {
|
|
@@ -3532,6 +3594,7 @@ declare const BusrootSignalsPayload: z.ZodObject<{
|
|
|
3532
3594
|
production_count: z.ZodOptional<z.ZodNumber>;
|
|
3533
3595
|
production_count_bad: z.ZodOptional<z.ZodNumber>;
|
|
3534
3596
|
bad_production_count: z.ZodOptional<z.ZodNumber>;
|
|
3597
|
+
bad_production_reason: z.ZodOptional<z.ZodString>;
|
|
3535
3598
|
productive: z.ZodOptional<z.ZodNumber>;
|
|
3536
3599
|
line_speed: z.ZodOptional<z.ZodNumber>;
|
|
3537
3600
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3556,6 +3619,7 @@ declare const BusrootSignalsPayload: z.ZodObject<{
|
|
|
3556
3619
|
production_count?: number | undefined;
|
|
3557
3620
|
production_count_bad?: number | undefined;
|
|
3558
3621
|
bad_production_count?: number | undefined;
|
|
3622
|
+
bad_production_reason?: string | undefined;
|
|
3559
3623
|
productive?: number | undefined;
|
|
3560
3624
|
status_code?: string | undefined;
|
|
3561
3625
|
electrical_kwh?: number | undefined;
|
|
@@ -3578,6 +3642,7 @@ declare const BusrootSignalsPayload: z.ZodObject<{
|
|
|
3578
3642
|
production_count?: number | undefined;
|
|
3579
3643
|
production_count_bad?: number | undefined;
|
|
3580
3644
|
bad_production_count?: number | undefined;
|
|
3645
|
+
bad_production_reason?: string | undefined;
|
|
3581
3646
|
productive?: number | undefined;
|
|
3582
3647
|
status_code?: string | undefined;
|
|
3583
3648
|
electrical_kwh?: number | undefined;
|
|
@@ -3601,6 +3666,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3601
3666
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3602
3667
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3603
3668
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3669
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3604
3670
|
stationGroups: z.ZodArray<z.ZodObject<{
|
|
3605
3671
|
code: z.ZodString;
|
|
3606
3672
|
name: z.ZodString;
|
|
@@ -3611,6 +3677,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3611
3677
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3612
3678
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3613
3679
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3680
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3614
3681
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3615
3682
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3616
3683
|
} & {
|
|
@@ -3640,6 +3707,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3640
3707
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3641
3708
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3642
3709
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3710
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3643
3711
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3644
3712
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3645
3713
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3692,6 +3760,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3692
3760
|
allowRejectProduction?: boolean | null | undefined;
|
|
3693
3761
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3694
3762
|
schedulingOnly?: boolean | null | undefined;
|
|
3763
|
+
meterOnly?: boolean | null | undefined;
|
|
3695
3764
|
currentOperatorInitials?: string | null | undefined;
|
|
3696
3765
|
statusCode?: string | null | undefined;
|
|
3697
3766
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3734,6 +3803,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3734
3803
|
allowRejectProduction?: boolean | null | undefined;
|
|
3735
3804
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3736
3805
|
schedulingOnly?: boolean | null | undefined;
|
|
3806
|
+
meterOnly?: boolean | null | undefined;
|
|
3737
3807
|
currentOperatorInitials?: string | null | undefined;
|
|
3738
3808
|
statusCode?: string | null | undefined;
|
|
3739
3809
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3781,6 +3851,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3781
3851
|
allowRejectProduction?: boolean | null | undefined;
|
|
3782
3852
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3783
3853
|
schedulingOnly?: boolean | null | undefined;
|
|
3854
|
+
meterOnly?: boolean | null | undefined;
|
|
3784
3855
|
currentOperatorInitials?: string | null | undefined;
|
|
3785
3856
|
statusCode?: string | null | undefined;
|
|
3786
3857
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3795,6 +3866,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3795
3866
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3796
3867
|
includeReasonCodes?: string[] | null | undefined;
|
|
3797
3868
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3869
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3798
3870
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3799
3871
|
}, {
|
|
3800
3872
|
code: string;
|
|
@@ -3836,6 +3908,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3836
3908
|
allowRejectProduction?: boolean | null | undefined;
|
|
3837
3909
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3838
3910
|
schedulingOnly?: boolean | null | undefined;
|
|
3911
|
+
meterOnly?: boolean | null | undefined;
|
|
3839
3912
|
currentOperatorInitials?: string | null | undefined;
|
|
3840
3913
|
statusCode?: string | null | undefined;
|
|
3841
3914
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3850,6 +3923,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3850
3923
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3851
3924
|
includeReasonCodes?: string[] | null | undefined;
|
|
3852
3925
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3926
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3853
3927
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3854
3928
|
}>, "many">;
|
|
3855
3929
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3901,6 +3975,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3901
3975
|
allowRejectProduction?: boolean | null | undefined;
|
|
3902
3976
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3903
3977
|
schedulingOnly?: boolean | null | undefined;
|
|
3978
|
+
meterOnly?: boolean | null | undefined;
|
|
3904
3979
|
currentOperatorInitials?: string | null | undefined;
|
|
3905
3980
|
statusCode?: string | null | undefined;
|
|
3906
3981
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3915,6 +3990,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3915
3990
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3916
3991
|
includeReasonCodes?: string[] | null | undefined;
|
|
3917
3992
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3993
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3918
3994
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3919
3995
|
}[];
|
|
3920
3996
|
createdAt?: string | null | undefined;
|
|
@@ -3923,6 +3999,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3923
3999
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3924
4000
|
includeReasonCodes?: string[] | null | undefined;
|
|
3925
4001
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4002
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3926
4003
|
archivedAt?: string | null | undefined;
|
|
3927
4004
|
}, {
|
|
3928
4005
|
code: string;
|
|
@@ -3969,6 +4046,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3969
4046
|
allowRejectProduction?: boolean | null | undefined;
|
|
3970
4047
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3971
4048
|
schedulingOnly?: boolean | null | undefined;
|
|
4049
|
+
meterOnly?: boolean | null | undefined;
|
|
3972
4050
|
currentOperatorInitials?: string | null | undefined;
|
|
3973
4051
|
statusCode?: string | null | undefined;
|
|
3974
4052
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3983,6 +4061,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3983
4061
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3984
4062
|
includeReasonCodes?: string[] | null | undefined;
|
|
3985
4063
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4064
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3986
4065
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3987
4066
|
}[];
|
|
3988
4067
|
createdAt?: string | null | undefined;
|
|
@@ -3992,6 +4071,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3992
4071
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3993
4072
|
includeReasonCodes?: string[] | null | undefined;
|
|
3994
4073
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4074
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3995
4075
|
archivedAt?: string | null | undefined;
|
|
3996
4076
|
}>;
|
|
3997
4077
|
type PlantSchema = z.infer<typeof PlantSchema>;
|
|
@@ -4011,6 +4091,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4011
4091
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4012
4092
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4013
4093
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4094
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4014
4095
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4015
4096
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4016
4097
|
} & {
|
|
@@ -4040,6 +4121,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4040
4121
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4041
4122
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4042
4123
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4124
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4043
4125
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4044
4126
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4045
4127
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4092,6 +4174,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4092
4174
|
allowRejectProduction?: boolean | null | undefined;
|
|
4093
4175
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4094
4176
|
schedulingOnly?: boolean | null | undefined;
|
|
4177
|
+
meterOnly?: boolean | null | undefined;
|
|
4095
4178
|
currentOperatorInitials?: string | null | undefined;
|
|
4096
4179
|
statusCode?: string | null | undefined;
|
|
4097
4180
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4134,6 +4217,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4134
4217
|
allowRejectProduction?: boolean | null | undefined;
|
|
4135
4218
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4136
4219
|
schedulingOnly?: boolean | null | undefined;
|
|
4220
|
+
meterOnly?: boolean | null | undefined;
|
|
4137
4221
|
currentOperatorInitials?: string | null | undefined;
|
|
4138
4222
|
statusCode?: string | null | undefined;
|
|
4139
4223
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4181,6 +4265,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4181
4265
|
allowRejectProduction?: boolean | null | undefined;
|
|
4182
4266
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4183
4267
|
schedulingOnly?: boolean | null | undefined;
|
|
4268
|
+
meterOnly?: boolean | null | undefined;
|
|
4184
4269
|
currentOperatorInitials?: string | null | undefined;
|
|
4185
4270
|
statusCode?: string | null | undefined;
|
|
4186
4271
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4195,6 +4280,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4195
4280
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4196
4281
|
includeReasonCodes?: string[] | null | undefined;
|
|
4197
4282
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4283
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4198
4284
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4199
4285
|
}, {
|
|
4200
4286
|
code: string;
|
|
@@ -4236,6 +4322,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4236
4322
|
allowRejectProduction?: boolean | null | undefined;
|
|
4237
4323
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4238
4324
|
schedulingOnly?: boolean | null | undefined;
|
|
4325
|
+
meterOnly?: boolean | null | undefined;
|
|
4239
4326
|
currentOperatorInitials?: string | null | undefined;
|
|
4240
4327
|
statusCode?: string | null | undefined;
|
|
4241
4328
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4250,10 +4337,12 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4250
4337
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4251
4338
|
includeReasonCodes?: string[] | null | undefined;
|
|
4252
4339
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4340
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4253
4341
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4254
4342
|
}>, "many">;
|
|
4255
4343
|
dayStartHour: z.ZodNumber;
|
|
4256
4344
|
weekStartDay: z.ZodNumber;
|
|
4345
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4257
4346
|
}, "strip", z.ZodTypeAny, {
|
|
4258
4347
|
code: string;
|
|
4259
4348
|
name: string;
|
|
@@ -4301,6 +4390,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4301
4390
|
allowRejectProduction?: boolean | null | undefined;
|
|
4302
4391
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4303
4392
|
schedulingOnly?: boolean | null | undefined;
|
|
4393
|
+
meterOnly?: boolean | null | undefined;
|
|
4304
4394
|
currentOperatorInitials?: string | null | undefined;
|
|
4305
4395
|
statusCode?: string | null | undefined;
|
|
4306
4396
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4315,8 +4405,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4315
4405
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4316
4406
|
includeReasonCodes?: string[] | null | undefined;
|
|
4317
4407
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4408
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4318
4409
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4319
4410
|
}[];
|
|
4411
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4320
4412
|
}, {
|
|
4321
4413
|
code: string;
|
|
4322
4414
|
name: string;
|
|
@@ -4364,6 +4456,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4364
4456
|
allowRejectProduction?: boolean | null | undefined;
|
|
4365
4457
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4366
4458
|
schedulingOnly?: boolean | null | undefined;
|
|
4459
|
+
meterOnly?: boolean | null | undefined;
|
|
4367
4460
|
currentOperatorInitials?: string | null | undefined;
|
|
4368
4461
|
statusCode?: string | null | undefined;
|
|
4369
4462
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4378,8 +4471,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4378
4471
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4379
4472
|
includeReasonCodes?: string[] | null | undefined;
|
|
4380
4473
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4474
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4381
4475
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4382
4476
|
}[];
|
|
4477
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4383
4478
|
}>;
|
|
4384
4479
|
type PlantViewModel = z.infer<typeof PlantViewModel>;
|
|
4385
4480
|
|
|
@@ -4690,6 +4785,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4690
4785
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4691
4786
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4692
4787
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4788
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4693
4789
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4694
4790
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4695
4791
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4747,6 +4843,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4747
4843
|
allowRejectProduction?: boolean | null | undefined;
|
|
4748
4844
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4749
4845
|
schedulingOnly?: boolean | null | undefined;
|
|
4846
|
+
meterOnly?: boolean | null | undefined;
|
|
4750
4847
|
currentOperatorInitials?: string | null | undefined;
|
|
4751
4848
|
statusCode?: string | null | undefined;
|
|
4752
4849
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4791,6 +4888,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4791
4888
|
allowRejectProduction?: boolean | null | undefined;
|
|
4792
4889
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4793
4890
|
schedulingOnly?: boolean | null | undefined;
|
|
4891
|
+
meterOnly?: boolean | null | undefined;
|
|
4794
4892
|
currentOperatorInitials?: string | null | undefined;
|
|
4795
4893
|
statusCode?: string | null | undefined;
|
|
4796
4894
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4830,6 +4928,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
4830
4928
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4831
4929
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4832
4930
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4931
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4833
4932
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4834
4933
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4835
4934
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5269,6 +5368,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5269
5368
|
allowRejectProduction?: boolean | null | undefined;
|
|
5270
5369
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5271
5370
|
schedulingOnly?: boolean | null | undefined;
|
|
5371
|
+
meterOnly?: boolean | null | undefined;
|
|
5272
5372
|
currentOperatorInitials?: string | null | undefined;
|
|
5273
5373
|
statusCode?: string | null | undefined;
|
|
5274
5374
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -5434,6 +5534,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5434
5534
|
allowRejectProduction?: boolean | null | undefined;
|
|
5435
5535
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5436
5536
|
schedulingOnly?: boolean | null | undefined;
|
|
5537
|
+
meterOnly?: boolean | null | undefined;
|
|
5437
5538
|
currentOperatorInitials?: string | null | undefined;
|
|
5438
5539
|
statusCode?: string | null | undefined;
|
|
5439
5540
|
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();
|
|
@@ -477,6 +478,7 @@ var require_enums = __commonJS({
|
|
|
477
478
|
(function(REASON_TYPE2) {
|
|
478
479
|
REASON_TYPE2["downtime"] = "downtime";
|
|
479
480
|
REASON_TYPE2["non_production"] = "non-production";
|
|
481
|
+
REASON_TYPE2["quality"] = "quality";
|
|
480
482
|
})(REASON_TYPE || (exports2.REASON_TYPE = REASON_TYPE = {}));
|
|
481
483
|
exports2.MqttEventType = {
|
|
482
484
|
StationMetricNew: "STATION_METRIC_NEW",
|
|
@@ -563,6 +565,7 @@ var require_base_station = __commonJS({
|
|
|
563
565
|
allowRejectProduction: zod_1.z.boolean().default(false).nullish().describe("Allow Reject Production: Enables reject (bad quality) production to be recorded by operators."),
|
|
564
566
|
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
567
|
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"),
|
|
568
|
+
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
569
|
// Current State
|
|
567
570
|
currentOperatorInitials: zod_1.z.string().min(3).max(3).nullish().describe("Current Operator Initials: Current operator's initials (exactly 3 characters, system managed)"),
|
|
568
571
|
statusCode: zod_1.z.string().nullish().describe("Status Code: Current status code of the station (system managed)"),
|
|
@@ -607,6 +610,7 @@ var require_plant = __commonJS({
|
|
|
607
610
|
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
611
|
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
612
|
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."),
|
|
613
|
+
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
614
|
stationGroups: zod_1.z.array(base_station_group_1.BaseStationGroupSchema.extend({
|
|
611
615
|
stations: zod_1.z.array(base_station_1.BaseStationSchema).describe("Array of stations within this group (minimum 1)")
|
|
612
616
|
}).describe("Station group configuration with nested stations")).describe("Array of station groups within this plant (minimum 1)"),
|
|
@@ -1832,12 +1836,12 @@ var require_base_reason = __commonJS({
|
|
|
1832
1836
|
exports2.BaseReasonSchema = zod_1.z.object({
|
|
1833
1837
|
code: exports2.ReasonCodeSchema,
|
|
1834
1838
|
description: zod_1.z.string().describe("Human-readable description of this reason (e.g., 'Planned maintenance', 'Equipment breakdown', 'Material shortage')"),
|
|
1835
|
-
type: zod_1.z.array(zod_1.z.nativeEnum(enums_1.REASON_TYPE)).min(1).describe("Array of reason types this code applies to. Options: 'downtime' (for unplanned stoppages), 'non-production' (for planned activities). A reason can have multiple types. Example: ['downtime'], ['non-production'], ['downtime', 'non-production']")
|
|
1839
|
+
type: zod_1.z.array(zod_1.z.nativeEnum(enums_1.REASON_TYPE)).min(1).describe("Array of reason types this code applies to. Options: 'downtime' (for unplanned stoppages), 'non-production' (for planned activities), 'quality' (for bad/rejected production). A reason can have multiple types. Example: ['downtime'], ['non-production'], ['downtime', 'non-production']")
|
|
1836
1840
|
}).strict();
|
|
1837
1841
|
exports2.ManifestReasonSchema = zod_1.z.object({
|
|
1838
1842
|
code: zod_1.z.string().describe("Unique reason code used to reference this reason (e.g., 'MAINTENANCE', 'BREAKDOWN', 'PLANNED-PM'). Must be unique within the account."),
|
|
1839
1843
|
description: zod_1.z.string().describe("Human-readable description of this reason (e.g., 'Planned maintenance', 'Equipment breakdown', 'Material shortage')"),
|
|
1840
|
-
type: zod_1.z.array(zod_1.z.nativeEnum(enums_1.REASON_TYPE)).min(1).describe("Array of reason types this code applies to. Options: 'downtime' (for unplanned stoppages), 'non-production' (for planned activities). A reason can have multiple types. Example: ['downtime'], ['non-production'], ['downtime', 'non-production']"),
|
|
1844
|
+
type: zod_1.z.array(zod_1.z.nativeEnum(enums_1.REASON_TYPE)).min(1).describe("Array of reason types this code applies to. Options: 'downtime' (for unplanned stoppages), 'non-production' (for planned activities), 'quality' (for bad/rejected production). A reason can have multiple types. Example: ['downtime'], ['non-production'], ['downtime', 'non-production']"),
|
|
1841
1845
|
reasons: zod_1.z.lazy(() => zod_1.z.array(exports2.ManifestReasonSchema)).optional().describe("Optional array of child reasons that are subcategories of this reason. Used to create hierarchical reason structures (e.g., 'Maintenance' \u2192 'Preventive Maintenance' \u2192 'PM Check').")
|
|
1842
1846
|
}).strict().openapi({ ref: "ManifestReason" });
|
|
1843
1847
|
}
|
|
@@ -1970,7 +1974,7 @@ var require_manifest = __commonJS({
|
|
|
1970
1974
|
"../../packages/common/build/schemas/manifest.js"(exports2) {
|
|
1971
1975
|
"use strict";
|
|
1972
1976
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1973
|
-
exports2.ManifestSchema = void 0;
|
|
1977
|
+
exports2.StrictManifestSchema = exports2.ManifestSchema = void 0;
|
|
1974
1978
|
var zod_1 = require("zod");
|
|
1975
1979
|
var base_account_1 = require_base_account();
|
|
1976
1980
|
var plant_1 = require_plant();
|
|
@@ -2048,19 +2052,52 @@ var require_manifest = __commonJS({
|
|
|
2048
2052
|
validateNoOverlap(level.includeTaskCodes, level.excludeTaskCodes, "Task code", [...basePath, "includeTaskCodes"], [...basePath, "excludeTaskCodes"]);
|
|
2049
2053
|
};
|
|
2050
2054
|
validateLevel(data.account, ["account"]);
|
|
2055
|
+
const validateTotalEnergyStationCodes = (codes, activeStationCodesLower, scopeLabel, path) => {
|
|
2056
|
+
for (const code of codes ?? []) {
|
|
2057
|
+
if (!activeStationCodesLower.has(code.toLowerCase())) {
|
|
2058
|
+
ctx.addIssue({
|
|
2059
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2060
|
+
message: `Total energy station code '${code}' does not match a non-archived station in ${scopeLabel}`,
|
|
2061
|
+
path
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2051
2066
|
for (const [pi, plant] of data.account.plants.entries()) {
|
|
2052
2067
|
const plantPath = ["account", "plants", pi];
|
|
2053
2068
|
validateLevel(plant, plantPath);
|
|
2069
|
+
const plantActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2054
2070
|
for (const [gi, group] of plant.stationGroups.entries()) {
|
|
2055
2071
|
const groupPath = [...plantPath, "stationGroups", gi];
|
|
2056
2072
|
validateLevel(group, groupPath);
|
|
2057
2073
|
validateShiftPatternCode(group.shiftPatternCode, [...groupPath, "shiftPatternCode"]);
|
|
2074
|
+
const groupActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2058
2075
|
for (const [si, station] of group.stations.entries()) {
|
|
2059
2076
|
const stationPath = [...groupPath, "stations", si];
|
|
2060
2077
|
validateLevel(station, stationPath);
|
|
2061
2078
|
validateShiftPatternCode(station.shiftPatternCode, [...stationPath, "shiftPatternCode"]);
|
|
2079
|
+
if (station.meterOnly && station.schedulingOnly) {
|
|
2080
|
+
ctx.addIssue({
|
|
2081
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2082
|
+
message: `Station '${station.code}' cannot be both meterOnly and schedulingOnly`,
|
|
2083
|
+
path: [...stationPath, "meterOnly"]
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
if (!station.archivedAt) {
|
|
2087
|
+
const codeLower = station.code.toLowerCase();
|
|
2088
|
+
groupActiveStationCodesLower.add(codeLower);
|
|
2089
|
+
plantActiveStationCodesLower.add(codeLower);
|
|
2090
|
+
}
|
|
2062
2091
|
}
|
|
2092
|
+
validateTotalEnergyStationCodes(group.totalEnergyStationCodes, groupActiveStationCodesLower, `station group '${group.code}'`, [
|
|
2093
|
+
...groupPath,
|
|
2094
|
+
"totalEnergyStationCodes"
|
|
2095
|
+
]);
|
|
2063
2096
|
}
|
|
2097
|
+
validateTotalEnergyStationCodes(plant.totalEnergyStationCodes, plantActiveStationCodesLower, `plant '${plant.code}'`, [
|
|
2098
|
+
...plantPath,
|
|
2099
|
+
"totalEnergyStationCodes"
|
|
2100
|
+
]);
|
|
2064
2101
|
}
|
|
2065
2102
|
for (const [ki, sku] of (data.account.skus ?? []).entries()) {
|
|
2066
2103
|
const skuPath = ["account", "skus", ki];
|
|
@@ -2068,6 +2105,48 @@ var require_manifest = __commonJS({
|
|
|
2068
2105
|
validateCodes(sku.includeTaskCodes, validTaskCodes, "Task code", [...skuPath, "includeTaskCodes"]);
|
|
2069
2106
|
}
|
|
2070
2107
|
});
|
|
2108
|
+
exports2.StrictManifestSchema = exports2.ManifestSchema.superRefine((data, ctx) => {
|
|
2109
|
+
const stationCodesLower = /* @__PURE__ */ new Set();
|
|
2110
|
+
const plantCodesLower = /* @__PURE__ */ new Set();
|
|
2111
|
+
const groupCodesLower = /* @__PURE__ */ new Set();
|
|
2112
|
+
for (const plant of data.account.plants) {
|
|
2113
|
+
plantCodesLower.add(plant.code.toLowerCase());
|
|
2114
|
+
for (const group of plant.stationGroups) {
|
|
2115
|
+
groupCodesLower.add(group.code.toLowerCase());
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
for (const [pi, plant] of data.account.plants.entries()) {
|
|
2119
|
+
for (const [gi, group] of plant.stationGroups.entries()) {
|
|
2120
|
+
const groupPath = ["account", "plants", pi, "stationGroups", gi];
|
|
2121
|
+
if (plantCodesLower.has(group.code.toLowerCase())) {
|
|
2122
|
+
ctx.addIssue({
|
|
2123
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2124
|
+
message: `Station group code '${group.code}' collides with a plant code`,
|
|
2125
|
+
path: [...groupPath, "code"]
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
for (const [si, station] of group.stations.entries()) {
|
|
2129
|
+
const stationPath = [...groupPath, "stations", si, "code"];
|
|
2130
|
+
const codeLower = station.code.toLowerCase();
|
|
2131
|
+
if (stationCodesLower.has(codeLower)) {
|
|
2132
|
+
ctx.addIssue({
|
|
2133
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2134
|
+
message: `Station code '${station.code}' is already used by another station (station codes must be unique account-wide, case-insensitively, including archived stations)`,
|
|
2135
|
+
path: stationPath
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
stationCodesLower.add(codeLower);
|
|
2139
|
+
if (plantCodesLower.has(codeLower) || groupCodesLower.has(codeLower)) {
|
|
2140
|
+
ctx.addIssue({
|
|
2141
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
2142
|
+
message: `Station code '${station.code}' collides with a plant or station group code`,
|
|
2143
|
+
path: stationPath
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
2071
2150
|
}
|
|
2072
2151
|
});
|
|
2073
2152
|
|
|
@@ -2169,6 +2248,7 @@ var require_shared = __commonJS({
|
|
|
2169
2248
|
production_count: zod_1.z.number().optional().describe("Alias for production_count_good."),
|
|
2170
2249
|
production_count_bad: zod_1.z.number().optional().describe("The cumulative number of bad production cycles complete."),
|
|
2171
2250
|
bad_production_count: zod_1.z.number().optional().describe("Alias for production_count_bad."),
|
|
2251
|
+
bad_production_reason: zod_1.z.string().optional().describe("Quality reason code for the bad production reported in this message. Must match a reason code of type 'quality' configured on the account; unknown or missing codes are recorded as bad production with no reason."),
|
|
2172
2252
|
productive: zod_1.z.number().optional().describe("An indication that this station is productive. Any number greater than 0 is considered true."),
|
|
2173
2253
|
line_speed: zod_1.z.number().optional().describe("A number indicating the speed of the station. No units are assumed, so could be percentage or speed such as m/s."),
|
|
2174
2254
|
speed: zod_1.z.number().optional().describe("Alias for line_speed."),
|
|
@@ -2469,7 +2549,8 @@ var require_plant2 = __commonJS({
|
|
|
2469
2549
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2470
2550
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2471
2551
|
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.")
|
|
2552
|
+
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."),
|
|
2553
|
+
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
2554
|
});
|
|
2474
2555
|
exports2.ArchivePlantPostRequest = zod_1.z.object({
|
|
2475
2556
|
plantCode: schemas_1.PlantCodeSchema
|
|
@@ -2616,7 +2697,8 @@ var require_station2 = __commonJS({
|
|
|
2616
2697
|
exports2.StationGetRequest = zod_1.z.object({
|
|
2617
2698
|
sortby: common_1.SortByStandardParam.optional(),
|
|
2618
2699
|
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()
|
|
2700
|
+
includeschedulingonly: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2701
|
+
includemeteronly: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional()
|
|
2620
2702
|
});
|
|
2621
2703
|
exports2.AdminStationPutBodyRequest = schemas_1.StationSchema;
|
|
2622
2704
|
var StationLogSchema = zod_1.z.object({
|
|
@@ -2627,7 +2709,8 @@ var require_station2 = __commonJS({
|
|
|
2627
2709
|
});
|
|
2628
2710
|
exports2.StationWindowGetRequest = zod_1.z.object({
|
|
2629
2711
|
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()
|
|
2712
|
+
inshiftaverages: zod_1.z.coerce.boolean().optional(),
|
|
2713
|
+
includemeteronly: zod_1.z.string().trim().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional()
|
|
2631
2714
|
});
|
|
2632
2715
|
exports2.StationTargetGetRequest = zod_1.z.object({
|
|
2633
2716
|
sortby: common_1.SortByStandardParam.optional()
|
|
@@ -2659,7 +2742,8 @@ var require_station_group2 = __commonJS({
|
|
|
2659
2742
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2660
2743
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2661
2744
|
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.")
|
|
2745
|
+
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."),
|
|
2746
|
+
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
2747
|
});
|
|
2664
2748
|
exports2.StationGroupPostRequest = StationGroupSchema;
|
|
2665
2749
|
exports2.StationGroupGetRquest = zod_1.z.object({ code: exports2.StationGroupCodeSchema });
|
|
@@ -6016,7 +6100,8 @@ var require_production2 = __commonJS({
|
|
|
6016
6100
|
quantityBad: zod_1.z.number().int().optional(),
|
|
6017
6101
|
lastUnitAt: zod_1.z.string().datetime().optional(),
|
|
6018
6102
|
lastUnitAtTimestamp: zod_1.z.number().int().gte(0).optional(),
|
|
6019
|
-
operatorInitials: zod_1.z.string().trim().min(1).optional()
|
|
6103
|
+
operatorInitials: zod_1.z.string().trim().min(1).optional(),
|
|
6104
|
+
badReasonCode: schemas_1.ReasonCodeSchema.optional()
|
|
6020
6105
|
});
|
|
6021
6106
|
exports2.ProductionManualPostRequest = ProductionSchema.omit({ id: true });
|
|
6022
6107
|
exports2.ProductionAggregateWindowGetRequest = zod_1.z.object({
|
|
@@ -6913,6 +6998,7 @@ var require_station3 = __commonJS({
|
|
|
6913
6998
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6914
6999
|
exports2.stationsFromManifest = stationsFromManifest;
|
|
6915
7000
|
exports2.stationByCode = stationByCode;
|
|
7001
|
+
exports2.stationCodeExists = stationCodeExists;
|
|
6916
7002
|
exports2.stationCodesFromManifest = stationCodesFromManifest;
|
|
6917
7003
|
var shift_1 = require_shift3();
|
|
6918
7004
|
var station_allowed_list_1 = require_station_allowed_list();
|
|
@@ -6939,6 +7025,9 @@ var require_station3 = __commonJS({
|
|
|
6939
7025
|
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
6940
7026
|
continue;
|
|
6941
7027
|
}
|
|
7028
|
+
if (station.meterOnly && !options?.includeMeterOnly && !options?.codes?.length) {
|
|
7029
|
+
continue;
|
|
7030
|
+
}
|
|
6942
7031
|
const resolvedShiftPatternCode = station.shiftPatternCode || group.shiftPatternCode;
|
|
6943
7032
|
let shifts = [];
|
|
6944
7033
|
let shiftPattern;
|
|
@@ -6982,6 +7071,7 @@ var require_station3 = __commonJS({
|
|
|
6982
7071
|
allowScheduleCutShort: station.allowScheduleCutShort,
|
|
6983
7072
|
allowEditPartsPerCycle: station.allowEditPartsPerCycle,
|
|
6984
7073
|
schedulingOnly: station.schedulingOnly ?? false,
|
|
7074
|
+
meterOnly: station.meterOnly ?? false,
|
|
6985
7075
|
allowRejectProduction: station.allowRejectProduction,
|
|
6986
7076
|
currentOperatorInitials: station.currentOperatorInitials ?? null,
|
|
6987
7077
|
statusCode: station.statusCode ?? null,
|
|
@@ -7013,7 +7103,18 @@ var require_station3 = __commonJS({
|
|
|
7013
7103
|
const stations = stationsFromManifest(manifest, { ...options, codes: [code] });
|
|
7014
7104
|
return stations[0];
|
|
7015
7105
|
}
|
|
7016
|
-
function
|
|
7106
|
+
function stationCodeExists(manifest, code) {
|
|
7107
|
+
const codeLower = code.toLowerCase();
|
|
7108
|
+
for (const plant of manifest?.account.plants ?? []) {
|
|
7109
|
+
for (const group of plant.stationGroups) {
|
|
7110
|
+
if (group.stations.some((station) => station.code.toLowerCase() === codeLower)) {
|
|
7111
|
+
return true;
|
|
7112
|
+
}
|
|
7113
|
+
}
|
|
7114
|
+
}
|
|
7115
|
+
return false;
|
|
7116
|
+
}
|
|
7117
|
+
function stationCodesFromManifest(manifest, plantCode, options) {
|
|
7017
7118
|
if (!manifest) {
|
|
7018
7119
|
return [];
|
|
7019
7120
|
}
|
|
@@ -7027,6 +7128,12 @@ var require_station3 = __commonJS({
|
|
|
7027
7128
|
if (station.archivedAt) {
|
|
7028
7129
|
continue;
|
|
7029
7130
|
}
|
|
7131
|
+
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
7132
|
+
continue;
|
|
7133
|
+
}
|
|
7134
|
+
if (station.meterOnly && !options?.includeMeterOnly) {
|
|
7135
|
+
continue;
|
|
7136
|
+
}
|
|
7030
7137
|
result.push({
|
|
7031
7138
|
code: station.code
|
|
7032
7139
|
});
|
|
@@ -7695,7 +7802,7 @@ var require_production3 = __commonJS({
|
|
|
7695
7802
|
var enums_1 = require_enums();
|
|
7696
7803
|
var time_1 = require_time();
|
|
7697
7804
|
var _1 = require_utils();
|
|
7698
|
-
function processProduction(accountId, stationCode, schedule, timestamp, quantityGood = 0, quantityBad = 0, type, existedProduction) {
|
|
7805
|
+
function processProduction(accountId, stationCode, schedule, timestamp, quantityGood = 0, quantityBad = 0, type, existedProduction, badReasonCode) {
|
|
7699
7806
|
const nowIso = (0, moment_timezone_1.default)().toISOString();
|
|
7700
7807
|
const momentIsoString = (0, moment_timezone_1.default)(timestamp).toISOString();
|
|
7701
7808
|
let partsPerCycle = 1;
|
|
@@ -7716,7 +7823,8 @@ var require_production3 = __commonJS({
|
|
|
7716
7823
|
type,
|
|
7717
7824
|
createdAt: nowIso,
|
|
7718
7825
|
updatedAt: nowIso,
|
|
7719
|
-
partsPerCycle
|
|
7826
|
+
partsPerCycle,
|
|
7827
|
+
badReasonCode: badReasonCode ?? null
|
|
7720
7828
|
}
|
|
7721
7829
|
];
|
|
7722
7830
|
return productions;
|
|
@@ -8640,7 +8748,8 @@ var require_production4 = __commonJS({
|
|
|
8640
8748
|
lastUnitAtTimestamp: zod_1.z.number(),
|
|
8641
8749
|
operatorInitials: zod_1.z.string().nullish(),
|
|
8642
8750
|
type: zod_1.z.nativeEnum(enums_1.PRODUCTION_TYPE).nullish(),
|
|
8643
|
-
partsPerCycle: zod_1.z.number().nullish()
|
|
8751
|
+
partsPerCycle: zod_1.z.number().nullish(),
|
|
8752
|
+
badReasonCode: zod_1.z.string().nullish()
|
|
8644
8753
|
});
|
|
8645
8754
|
exports2.ProductionAggregateWindowViewModel = zod_1.z.object({
|
|
8646
8755
|
windowStart: zod_1.z.string(),
|
|
@@ -8671,7 +8780,8 @@ var require_plant3 = __commonJS({
|
|
|
8671
8780
|
stations: zod_1.z.array(schemas_1.BaseStationSchema)
|
|
8672
8781
|
})),
|
|
8673
8782
|
dayStartHour: zod_1.z.number(),
|
|
8674
|
-
weekStartDay: zod_1.z.number()
|
|
8783
|
+
weekStartDay: zod_1.z.number(),
|
|
8784
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish()
|
|
8675
8785
|
});
|
|
8676
8786
|
}
|
|
8677
8787
|
});
|
package/package.json
CHANGED