busroot-sdk 0.0.8-dev.2702092024 → 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 +121 -0
- package/build/index.js +117 -8
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -169,12 +169,15 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
169
169
|
}>, z.ZodObject<{
|
|
170
170
|
type: z.ZodLiteral<"cron">;
|
|
171
171
|
pattern: z.ZodString;
|
|
172
|
+
availableBeforeDeadlineMinutes: z.ZodOptional<z.ZodNumber>;
|
|
172
173
|
}, "strict", z.ZodTypeAny, {
|
|
173
174
|
type: "cron";
|
|
174
175
|
pattern: string;
|
|
176
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
175
177
|
}, {
|
|
176
178
|
type: "cron";
|
|
177
179
|
pattern: string;
|
|
180
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
178
181
|
}>]>>;
|
|
179
182
|
}, "strict", z.ZodTypeAny, {
|
|
180
183
|
code: string;
|
|
@@ -185,6 +188,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
185
188
|
} | {
|
|
186
189
|
type: "cron";
|
|
187
190
|
pattern: string;
|
|
191
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
188
192
|
};
|
|
189
193
|
}, {
|
|
190
194
|
code: string;
|
|
@@ -195,6 +199,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
195
199
|
} | {
|
|
196
200
|
type: "cron";
|
|
197
201
|
pattern: string;
|
|
202
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
198
203
|
} | undefined;
|
|
199
204
|
}>, "many">>;
|
|
200
205
|
skus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -262,6 +267,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
262
267
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
263
268
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
264
269
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
270
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
265
271
|
stationGroups: z.ZodArray<z.ZodObject<{
|
|
266
272
|
code: z.ZodString;
|
|
267
273
|
name: z.ZodString;
|
|
@@ -272,6 +278,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
272
278
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
273
279
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
274
280
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
281
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
275
282
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
283
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
284
|
} & {
|
|
@@ -301,6 +308,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
301
308
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
302
309
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
303
310
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
311
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
304
312
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
313
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
314
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -353,6 +361,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
353
361
|
allowRejectProduction?: boolean | null | undefined;
|
|
354
362
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
355
363
|
schedulingOnly?: boolean | null | undefined;
|
|
364
|
+
meterOnly?: boolean | null | undefined;
|
|
356
365
|
currentOperatorInitials?: string | null | undefined;
|
|
357
366
|
statusCode?: string | null | undefined;
|
|
358
367
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -395,6 +404,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
395
404
|
allowRejectProduction?: boolean | null | undefined;
|
|
396
405
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
397
406
|
schedulingOnly?: boolean | null | undefined;
|
|
407
|
+
meterOnly?: boolean | null | undefined;
|
|
398
408
|
currentOperatorInitials?: string | null | undefined;
|
|
399
409
|
statusCode?: string | null | undefined;
|
|
400
410
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -442,6 +452,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
442
452
|
allowRejectProduction?: boolean | null | undefined;
|
|
443
453
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
444
454
|
schedulingOnly?: boolean | null | undefined;
|
|
455
|
+
meterOnly?: boolean | null | undefined;
|
|
445
456
|
currentOperatorInitials?: string | null | undefined;
|
|
446
457
|
statusCode?: string | null | undefined;
|
|
447
458
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -456,6 +467,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
456
467
|
excludeTaskCodes?: string[] | null | undefined;
|
|
457
468
|
includeReasonCodes?: string[] | null | undefined;
|
|
458
469
|
excludeReasonCodes?: string[] | null | undefined;
|
|
470
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
459
471
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
460
472
|
}, {
|
|
461
473
|
code: string;
|
|
@@ -497,6 +509,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
497
509
|
allowRejectProduction?: boolean | null | undefined;
|
|
498
510
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
499
511
|
schedulingOnly?: boolean | null | undefined;
|
|
512
|
+
meterOnly?: boolean | null | undefined;
|
|
500
513
|
currentOperatorInitials?: string | null | undefined;
|
|
501
514
|
statusCode?: string | null | undefined;
|
|
502
515
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -511,6 +524,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
511
524
|
excludeTaskCodes?: string[] | null | undefined;
|
|
512
525
|
includeReasonCodes?: string[] | null | undefined;
|
|
513
526
|
excludeReasonCodes?: string[] | null | undefined;
|
|
527
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
514
528
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
515
529
|
}>, "many">;
|
|
516
530
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -562,6 +576,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
562
576
|
allowRejectProduction?: boolean | null | undefined;
|
|
563
577
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
564
578
|
schedulingOnly?: boolean | null | undefined;
|
|
579
|
+
meterOnly?: boolean | null | undefined;
|
|
565
580
|
currentOperatorInitials?: string | null | undefined;
|
|
566
581
|
statusCode?: string | null | undefined;
|
|
567
582
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -576,6 +591,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
576
591
|
excludeTaskCodes?: string[] | null | undefined;
|
|
577
592
|
includeReasonCodes?: string[] | null | undefined;
|
|
578
593
|
excludeReasonCodes?: string[] | null | undefined;
|
|
594
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
579
595
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
580
596
|
}[];
|
|
581
597
|
createdAt?: string | null | undefined;
|
|
@@ -584,6 +600,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
584
600
|
excludeTaskCodes?: string[] | null | undefined;
|
|
585
601
|
includeReasonCodes?: string[] | null | undefined;
|
|
586
602
|
excludeReasonCodes?: string[] | null | undefined;
|
|
603
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
587
604
|
archivedAt?: string | null | undefined;
|
|
588
605
|
}, {
|
|
589
606
|
code: string;
|
|
@@ -630,6 +647,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
630
647
|
allowRejectProduction?: boolean | null | undefined;
|
|
631
648
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
632
649
|
schedulingOnly?: boolean | null | undefined;
|
|
650
|
+
meterOnly?: boolean | null | undefined;
|
|
633
651
|
currentOperatorInitials?: string | null | undefined;
|
|
634
652
|
statusCode?: string | null | undefined;
|
|
635
653
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -644,6 +662,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
644
662
|
excludeTaskCodes?: string[] | null | undefined;
|
|
645
663
|
includeReasonCodes?: string[] | null | undefined;
|
|
646
664
|
excludeReasonCodes?: string[] | null | undefined;
|
|
665
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
647
666
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
648
667
|
}[];
|
|
649
668
|
createdAt?: string | null | undefined;
|
|
@@ -653,6 +672,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
653
672
|
excludeTaskCodes?: string[] | null | undefined;
|
|
654
673
|
includeReasonCodes?: string[] | null | undefined;
|
|
655
674
|
excludeReasonCodes?: string[] | null | undefined;
|
|
675
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
656
676
|
archivedAt?: string | null | undefined;
|
|
657
677
|
}>, "many">;
|
|
658
678
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -704,6 +724,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
704
724
|
allowRejectProduction?: boolean | null | undefined;
|
|
705
725
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
706
726
|
schedulingOnly?: boolean | null | undefined;
|
|
727
|
+
meterOnly?: boolean | null | undefined;
|
|
707
728
|
currentOperatorInitials?: string | null | undefined;
|
|
708
729
|
statusCode?: string | null | undefined;
|
|
709
730
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -718,6 +739,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
718
739
|
excludeTaskCodes?: string[] | null | undefined;
|
|
719
740
|
includeReasonCodes?: string[] | null | undefined;
|
|
720
741
|
excludeReasonCodes?: string[] | null | undefined;
|
|
742
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
721
743
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
722
744
|
}[];
|
|
723
745
|
createdAt?: string | null | undefined;
|
|
@@ -726,6 +748,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
726
748
|
excludeTaskCodes?: string[] | null | undefined;
|
|
727
749
|
includeReasonCodes?: string[] | null | undefined;
|
|
728
750
|
excludeReasonCodes?: string[] | null | undefined;
|
|
751
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
729
752
|
archivedAt?: string | null | undefined;
|
|
730
753
|
}[];
|
|
731
754
|
createdAt?: string | null | undefined;
|
|
@@ -771,6 +794,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
771
794
|
} | {
|
|
772
795
|
type: "cron";
|
|
773
796
|
pattern: string;
|
|
797
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
774
798
|
};
|
|
775
799
|
}[] | undefined;
|
|
776
800
|
skus?: {
|
|
@@ -840,6 +864,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
840
864
|
allowRejectProduction?: boolean | null | undefined;
|
|
841
865
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
842
866
|
schedulingOnly?: boolean | null | undefined;
|
|
867
|
+
meterOnly?: boolean | null | undefined;
|
|
843
868
|
currentOperatorInitials?: string | null | undefined;
|
|
844
869
|
statusCode?: string | null | undefined;
|
|
845
870
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -854,6 +879,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
854
879
|
excludeTaskCodes?: string[] | null | undefined;
|
|
855
880
|
includeReasonCodes?: string[] | null | undefined;
|
|
856
881
|
excludeReasonCodes?: string[] | null | undefined;
|
|
882
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
857
883
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
858
884
|
}[];
|
|
859
885
|
createdAt?: string | null | undefined;
|
|
@@ -863,6 +889,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
863
889
|
excludeTaskCodes?: string[] | null | undefined;
|
|
864
890
|
includeReasonCodes?: string[] | null | undefined;
|
|
865
891
|
excludeReasonCodes?: string[] | null | undefined;
|
|
892
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
866
893
|
archivedAt?: string | null | undefined;
|
|
867
894
|
}[];
|
|
868
895
|
createdAt?: string | null | undefined;
|
|
@@ -908,6 +935,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
908
935
|
} | {
|
|
909
936
|
type: "cron";
|
|
910
937
|
pattern: string;
|
|
938
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
911
939
|
} | undefined;
|
|
912
940
|
}[] | undefined;
|
|
913
941
|
skus?: {
|
|
@@ -981,6 +1009,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
981
1009
|
allowRejectProduction?: boolean | null | undefined;
|
|
982
1010
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
983
1011
|
schedulingOnly?: boolean | null | undefined;
|
|
1012
|
+
meterOnly?: boolean | null | undefined;
|
|
984
1013
|
currentOperatorInitials?: string | null | undefined;
|
|
985
1014
|
statusCode?: string | null | undefined;
|
|
986
1015
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -995,6 +1024,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
995
1024
|
excludeTaskCodes?: string[] | null | undefined;
|
|
996
1025
|
includeReasonCodes?: string[] | null | undefined;
|
|
997
1026
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1027
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
998
1028
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
999
1029
|
}[];
|
|
1000
1030
|
createdAt?: string | null | undefined;
|
|
@@ -1003,6 +1033,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1003
1033
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1004
1034
|
includeReasonCodes?: string[] | null | undefined;
|
|
1005
1035
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1036
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1006
1037
|
archivedAt?: string | null | undefined;
|
|
1007
1038
|
}[];
|
|
1008
1039
|
createdAt?: string | null | undefined;
|
|
@@ -1048,6 +1079,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1048
1079
|
} | {
|
|
1049
1080
|
type: "cron";
|
|
1050
1081
|
pattern: string;
|
|
1082
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1051
1083
|
};
|
|
1052
1084
|
}[] | undefined;
|
|
1053
1085
|
skus?: {
|
|
@@ -1120,6 +1152,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1120
1152
|
allowRejectProduction?: boolean | null | undefined;
|
|
1121
1153
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1122
1154
|
schedulingOnly?: boolean | null | undefined;
|
|
1155
|
+
meterOnly?: boolean | null | undefined;
|
|
1123
1156
|
currentOperatorInitials?: string | null | undefined;
|
|
1124
1157
|
statusCode?: string | null | undefined;
|
|
1125
1158
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1134,6 +1167,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1134
1167
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1135
1168
|
includeReasonCodes?: string[] | null | undefined;
|
|
1136
1169
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1170
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1137
1171
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1138
1172
|
}[];
|
|
1139
1173
|
createdAt?: string | null | undefined;
|
|
@@ -1143,6 +1177,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1143
1177
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1144
1178
|
includeReasonCodes?: string[] | null | undefined;
|
|
1145
1179
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1180
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1146
1181
|
archivedAt?: string | null | undefined;
|
|
1147
1182
|
}[];
|
|
1148
1183
|
createdAt?: string | null | undefined;
|
|
@@ -1188,6 +1223,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1188
1223
|
} | {
|
|
1189
1224
|
type: "cron";
|
|
1190
1225
|
pattern: string;
|
|
1226
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1191
1227
|
} | undefined;
|
|
1192
1228
|
}[] | undefined;
|
|
1193
1229
|
skus?: {
|
|
@@ -1261,6 +1297,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1261
1297
|
allowRejectProduction?: boolean | null | undefined;
|
|
1262
1298
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1263
1299
|
schedulingOnly?: boolean | null | undefined;
|
|
1300
|
+
meterOnly?: boolean | null | undefined;
|
|
1264
1301
|
currentOperatorInitials?: string | null | undefined;
|
|
1265
1302
|
statusCode?: string | null | undefined;
|
|
1266
1303
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1275,6 +1312,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1275
1312
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1276
1313
|
includeReasonCodes?: string[] | null | undefined;
|
|
1277
1314
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1315
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1278
1316
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1279
1317
|
}[];
|
|
1280
1318
|
createdAt?: string | null | undefined;
|
|
@@ -1283,6 +1321,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1283
1321
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1284
1322
|
includeReasonCodes?: string[] | null | undefined;
|
|
1285
1323
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1324
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1286
1325
|
archivedAt?: string | null | undefined;
|
|
1287
1326
|
}[];
|
|
1288
1327
|
createdAt?: string | null | undefined;
|
|
@@ -1328,6 +1367,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1328
1367
|
} | {
|
|
1329
1368
|
type: "cron";
|
|
1330
1369
|
pattern: string;
|
|
1370
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1331
1371
|
};
|
|
1332
1372
|
}[] | undefined;
|
|
1333
1373
|
skus?: {
|
|
@@ -1400,6 +1440,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1400
1440
|
allowRejectProduction?: boolean | null | undefined;
|
|
1401
1441
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1402
1442
|
schedulingOnly?: boolean | null | undefined;
|
|
1443
|
+
meterOnly?: boolean | null | undefined;
|
|
1403
1444
|
currentOperatorInitials?: string | null | undefined;
|
|
1404
1445
|
statusCode?: string | null | undefined;
|
|
1405
1446
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1414,6 +1455,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1414
1455
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1415
1456
|
includeReasonCodes?: string[] | null | undefined;
|
|
1416
1457
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1458
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1417
1459
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1418
1460
|
}[];
|
|
1419
1461
|
createdAt?: string | null | undefined;
|
|
@@ -1423,6 +1465,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1423
1465
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1424
1466
|
includeReasonCodes?: string[] | null | undefined;
|
|
1425
1467
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1468
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1426
1469
|
archivedAt?: string | null | undefined;
|
|
1427
1470
|
}[];
|
|
1428
1471
|
createdAt?: string | null | undefined;
|
|
@@ -1468,6 +1511,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1468
1511
|
} | {
|
|
1469
1512
|
type: "cron";
|
|
1470
1513
|
pattern: string;
|
|
1514
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1471
1515
|
} | undefined;
|
|
1472
1516
|
}[] | undefined;
|
|
1473
1517
|
skus?: {
|
|
@@ -1545,6 +1589,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1545
1589
|
allowRejectProduction?: boolean | null | undefined;
|
|
1546
1590
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1547
1591
|
schedulingOnly?: boolean | null | undefined;
|
|
1592
|
+
meterOnly?: boolean | null | undefined;
|
|
1548
1593
|
currentOperatorInitials?: string | null | undefined;
|
|
1549
1594
|
statusCode?: string | null | undefined;
|
|
1550
1595
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1559,6 +1604,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1559
1604
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1560
1605
|
includeReasonCodes?: string[] | null | undefined;
|
|
1561
1606
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1607
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1562
1608
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1563
1609
|
}[];
|
|
1564
1610
|
createdAt?: string | null | undefined;
|
|
@@ -1567,6 +1613,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1567
1613
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1568
1614
|
includeReasonCodes?: string[] | null | undefined;
|
|
1569
1615
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1616
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1570
1617
|
archivedAt?: string | null | undefined;
|
|
1571
1618
|
}[];
|
|
1572
1619
|
createdAt?: string | null | undefined;
|
|
@@ -1612,6 +1659,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1612
1659
|
} | {
|
|
1613
1660
|
type: "cron";
|
|
1614
1661
|
pattern: string;
|
|
1662
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1615
1663
|
};
|
|
1616
1664
|
}[] | undefined;
|
|
1617
1665
|
skus?: {
|
|
@@ -1710,6 +1758,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1710
1758
|
allowRejectProduction?: boolean | null | undefined;
|
|
1711
1759
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
1712
1760
|
schedulingOnly?: boolean | null | undefined;
|
|
1761
|
+
meterOnly?: boolean | null | undefined;
|
|
1713
1762
|
currentOperatorInitials?: string | null | undefined;
|
|
1714
1763
|
statusCode?: string | null | undefined;
|
|
1715
1764
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -1724,6 +1773,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1724
1773
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1725
1774
|
includeReasonCodes?: string[] | null | undefined;
|
|
1726
1775
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1776
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1727
1777
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
1728
1778
|
}[];
|
|
1729
1779
|
createdAt?: string | null | undefined;
|
|
@@ -1733,6 +1783,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1733
1783
|
excludeTaskCodes?: string[] | null | undefined;
|
|
1734
1784
|
includeReasonCodes?: string[] | null | undefined;
|
|
1735
1785
|
excludeReasonCodes?: string[] | null | undefined;
|
|
1786
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
1736
1787
|
archivedAt?: string | null | undefined;
|
|
1737
1788
|
}[];
|
|
1738
1789
|
createdAt?: string | null | undefined;
|
|
@@ -1778,6 +1829,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1778
1829
|
} | {
|
|
1779
1830
|
type: "cron";
|
|
1780
1831
|
pattern: string;
|
|
1832
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1781
1833
|
} | undefined;
|
|
1782
1834
|
}[] | undefined;
|
|
1783
1835
|
skus?: {
|
|
@@ -2032,6 +2084,7 @@ declare class BusrootClient {
|
|
|
2032
2084
|
allowRejectProduction?: boolean | null | undefined;
|
|
2033
2085
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2034
2086
|
schedulingOnly?: boolean | null | undefined;
|
|
2087
|
+
meterOnly?: boolean | null | undefined;
|
|
2035
2088
|
currentOperatorInitials?: string | null | undefined;
|
|
2036
2089
|
statusCode?: string | null | undefined;
|
|
2037
2090
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2046,6 +2099,7 @@ declare class BusrootClient {
|
|
|
2046
2099
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2047
2100
|
includeReasonCodes?: string[] | null | undefined;
|
|
2048
2101
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2102
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2049
2103
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2050
2104
|
}[];
|
|
2051
2105
|
createdAt?: string | null | undefined;
|
|
@@ -2055,6 +2109,7 @@ declare class BusrootClient {
|
|
|
2055
2109
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2056
2110
|
includeReasonCodes?: string[] | null | undefined;
|
|
2057
2111
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2112
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2058
2113
|
archivedAt?: string | null | undefined;
|
|
2059
2114
|
}[];
|
|
2060
2115
|
createdAt?: string | null | undefined;
|
|
@@ -2100,6 +2155,7 @@ declare class BusrootClient {
|
|
|
2100
2155
|
} | {
|
|
2101
2156
|
type: "cron";
|
|
2102
2157
|
pattern: string;
|
|
2158
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2103
2159
|
} | undefined;
|
|
2104
2160
|
}[] | undefined;
|
|
2105
2161
|
skus?: {
|
|
@@ -2204,6 +2260,7 @@ declare class BusrootClient {
|
|
|
2204
2260
|
allowRejectProduction?: boolean | null | undefined;
|
|
2205
2261
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2206
2262
|
schedulingOnly?: boolean | null | undefined;
|
|
2263
|
+
meterOnly?: boolean | null | undefined;
|
|
2207
2264
|
currentOperatorInitials?: string | null | undefined;
|
|
2208
2265
|
statusCode?: string | null | undefined;
|
|
2209
2266
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2218,6 +2275,7 @@ declare class BusrootClient {
|
|
|
2218
2275
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2219
2276
|
includeReasonCodes?: string[] | null | undefined;
|
|
2220
2277
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2278
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2221
2279
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2222
2280
|
}[];
|
|
2223
2281
|
createdAt?: string | null | undefined;
|
|
@@ -2227,6 +2285,7 @@ declare class BusrootClient {
|
|
|
2227
2285
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2228
2286
|
includeReasonCodes?: string[] | null | undefined;
|
|
2229
2287
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2288
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2230
2289
|
archivedAt?: string | null | undefined;
|
|
2231
2290
|
}[];
|
|
2232
2291
|
createdAt?: string | null | undefined;
|
|
@@ -2272,6 +2331,7 @@ declare class BusrootClient {
|
|
|
2272
2331
|
} | {
|
|
2273
2332
|
type: "cron";
|
|
2274
2333
|
pattern: string;
|
|
2334
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2275
2335
|
} | undefined;
|
|
2276
2336
|
}[] | undefined;
|
|
2277
2337
|
skus?: {
|
|
@@ -2373,6 +2433,7 @@ declare class BusrootClient {
|
|
|
2373
2433
|
allowRejectProduction?: boolean | null | undefined;
|
|
2374
2434
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2375
2435
|
schedulingOnly?: boolean | null | undefined;
|
|
2436
|
+
meterOnly?: boolean | null | undefined;
|
|
2376
2437
|
currentOperatorInitials?: string | null | undefined;
|
|
2377
2438
|
statusCode?: string | null | undefined;
|
|
2378
2439
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2387,8 +2448,10 @@ declare class BusrootClient {
|
|
|
2387
2448
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2388
2449
|
includeReasonCodes?: string[] | null | undefined;
|
|
2389
2450
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2451
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2390
2452
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2391
2453
|
}[];
|
|
2454
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2392
2455
|
}[]>;
|
|
2393
2456
|
"plant.get": (args_0: {
|
|
2394
2457
|
plantCode: string;
|
|
@@ -2439,6 +2502,7 @@ declare class BusrootClient {
|
|
|
2439
2502
|
allowRejectProduction?: boolean | null | undefined;
|
|
2440
2503
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2441
2504
|
schedulingOnly?: boolean | null | undefined;
|
|
2505
|
+
meterOnly?: boolean | null | undefined;
|
|
2442
2506
|
currentOperatorInitials?: string | null | undefined;
|
|
2443
2507
|
statusCode?: string | null | undefined;
|
|
2444
2508
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2453,8 +2517,10 @@ declare class BusrootClient {
|
|
|
2453
2517
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2454
2518
|
includeReasonCodes?: string[] | null | undefined;
|
|
2455
2519
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2520
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2456
2521
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2457
2522
|
}[];
|
|
2523
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2458
2524
|
}>;
|
|
2459
2525
|
"plant.createUpdate": (args_0: {
|
|
2460
2526
|
code: string;
|
|
@@ -2466,6 +2532,7 @@ declare class BusrootClient {
|
|
|
2466
2532
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2467
2533
|
includeReasonCodes?: string[] | null | undefined;
|
|
2468
2534
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2535
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2469
2536
|
}, ...args: unknown[]) => Promise<{
|
|
2470
2537
|
code: string;
|
|
2471
2538
|
name: string;
|
|
@@ -2513,6 +2580,7 @@ declare class BusrootClient {
|
|
|
2513
2580
|
allowRejectProduction?: boolean | null | undefined;
|
|
2514
2581
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2515
2582
|
schedulingOnly?: boolean | null | undefined;
|
|
2583
|
+
meterOnly?: boolean | null | undefined;
|
|
2516
2584
|
currentOperatorInitials?: string | null | undefined;
|
|
2517
2585
|
statusCode?: string | null | undefined;
|
|
2518
2586
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2527,8 +2595,10 @@ declare class BusrootClient {
|
|
|
2527
2595
|
excludeTaskCodes?: string[] | null | undefined;
|
|
2528
2596
|
includeReasonCodes?: string[] | null | undefined;
|
|
2529
2597
|
excludeReasonCodes?: string[] | null | undefined;
|
|
2598
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2530
2599
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2531
2600
|
}[];
|
|
2601
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2532
2602
|
}>;
|
|
2533
2603
|
"station.get": (args_0: {
|
|
2534
2604
|
stationCode: string;
|
|
@@ -2582,6 +2652,7 @@ declare class BusrootClient {
|
|
|
2582
2652
|
allowRejectProduction?: boolean | null | undefined;
|
|
2583
2653
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2584
2654
|
schedulingOnly?: boolean | null | undefined;
|
|
2655
|
+
meterOnly?: boolean | null | undefined;
|
|
2585
2656
|
currentOperatorInitials?: string | null | undefined;
|
|
2586
2657
|
statusCode?: string | null | undefined;
|
|
2587
2658
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2697,6 +2768,7 @@ declare class BusrootClient {
|
|
|
2697
2768
|
} | {
|
|
2698
2769
|
type: "cron";
|
|
2699
2770
|
pattern: string;
|
|
2771
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2700
2772
|
} | undefined;
|
|
2701
2773
|
completedAt?: string | null | undefined;
|
|
2702
2774
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -2853,6 +2925,7 @@ declare class BusrootClient {
|
|
|
2853
2925
|
allowRejectProduction?: boolean | null | undefined;
|
|
2854
2926
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2855
2927
|
schedulingOnly?: boolean | null | undefined;
|
|
2928
|
+
meterOnly?: boolean | null | undefined;
|
|
2856
2929
|
cycleTime?: number | null | undefined;
|
|
2857
2930
|
unitsPerMinute?: number | null | undefined;
|
|
2858
2931
|
unitsPerHour?: number | null | undefined;
|
|
@@ -2879,6 +2952,7 @@ declare class BusrootClient {
|
|
|
2879
2952
|
excludeTaskCodes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
2880
2953
|
plantCode: z.ZodOptional<z.ZodString>;
|
|
2881
2954
|
allowScheduleStationFlexibility: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2955
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
2882
2956
|
}, z.ZodTypeAny, "passthrough">, ...args: unknown[]) => Promise<{
|
|
2883
2957
|
code: string;
|
|
2884
2958
|
accountId: string;
|
|
@@ -2931,6 +3005,7 @@ declare class BusrootClient {
|
|
|
2931
3005
|
allowRejectProduction?: boolean | null | undefined;
|
|
2932
3006
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
2933
3007
|
schedulingOnly?: boolean | null | undefined;
|
|
3008
|
+
meterOnly?: boolean | null | undefined;
|
|
2934
3009
|
currentOperatorInitials?: string | null | undefined;
|
|
2935
3010
|
statusCode?: string | null | undefined;
|
|
2936
3011
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -2940,6 +3015,7 @@ declare class BusrootClient {
|
|
|
2940
3015
|
}[];
|
|
2941
3016
|
plantTimezone: string;
|
|
2942
3017
|
shiftPatternCode?: string | null | undefined;
|
|
3018
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
2943
3019
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
2944
3020
|
}>;
|
|
2945
3021
|
"production.get": (args_0: {
|
|
@@ -3236,6 +3312,7 @@ declare class BusrootClient {
|
|
|
3236
3312
|
} | {
|
|
3237
3313
|
type: "cron";
|
|
3238
3314
|
pattern: string;
|
|
3315
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
3239
3316
|
};
|
|
3240
3317
|
}, ...args: unknown[]) => Promise<{
|
|
3241
3318
|
code: string;
|
|
@@ -3246,6 +3323,7 @@ declare class BusrootClient {
|
|
|
3246
3323
|
} | {
|
|
3247
3324
|
type: "cron";
|
|
3248
3325
|
pattern: string;
|
|
3326
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
3249
3327
|
} | undefined;
|
|
3250
3328
|
}>;
|
|
3251
3329
|
"shiftPattern.createUpdate": (args_0: {
|
|
@@ -3583,6 +3661,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3583
3661
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3584
3662
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3585
3663
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3664
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3586
3665
|
stationGroups: z.ZodArray<z.ZodObject<{
|
|
3587
3666
|
code: z.ZodString;
|
|
3588
3667
|
name: z.ZodString;
|
|
@@ -3593,6 +3672,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3593
3672
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3594
3673
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3595
3674
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3675
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3596
3676
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3597
3677
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3598
3678
|
} & {
|
|
@@ -3622,6 +3702,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3622
3702
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3623
3703
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3624
3704
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3705
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
3625
3706
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3626
3707
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3627
3708
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3674,6 +3755,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3674
3755
|
allowRejectProduction?: boolean | null | undefined;
|
|
3675
3756
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3676
3757
|
schedulingOnly?: boolean | null | undefined;
|
|
3758
|
+
meterOnly?: boolean | null | undefined;
|
|
3677
3759
|
currentOperatorInitials?: string | null | undefined;
|
|
3678
3760
|
statusCode?: string | null | undefined;
|
|
3679
3761
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3716,6 +3798,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3716
3798
|
allowRejectProduction?: boolean | null | undefined;
|
|
3717
3799
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3718
3800
|
schedulingOnly?: boolean | null | undefined;
|
|
3801
|
+
meterOnly?: boolean | null | undefined;
|
|
3719
3802
|
currentOperatorInitials?: string | null | undefined;
|
|
3720
3803
|
statusCode?: string | null | undefined;
|
|
3721
3804
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3763,6 +3846,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3763
3846
|
allowRejectProduction?: boolean | null | undefined;
|
|
3764
3847
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3765
3848
|
schedulingOnly?: boolean | null | undefined;
|
|
3849
|
+
meterOnly?: boolean | null | undefined;
|
|
3766
3850
|
currentOperatorInitials?: string | null | undefined;
|
|
3767
3851
|
statusCode?: string | null | undefined;
|
|
3768
3852
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3777,6 +3861,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3777
3861
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3778
3862
|
includeReasonCodes?: string[] | null | undefined;
|
|
3779
3863
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3864
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3780
3865
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3781
3866
|
}, {
|
|
3782
3867
|
code: string;
|
|
@@ -3818,6 +3903,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3818
3903
|
allowRejectProduction?: boolean | null | undefined;
|
|
3819
3904
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3820
3905
|
schedulingOnly?: boolean | null | undefined;
|
|
3906
|
+
meterOnly?: boolean | null | undefined;
|
|
3821
3907
|
currentOperatorInitials?: string | null | undefined;
|
|
3822
3908
|
statusCode?: string | null | undefined;
|
|
3823
3909
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3832,6 +3918,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3832
3918
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3833
3919
|
includeReasonCodes?: string[] | null | undefined;
|
|
3834
3920
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3921
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3835
3922
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3836
3923
|
}>, "many">;
|
|
3837
3924
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3883,6 +3970,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3883
3970
|
allowRejectProduction?: boolean | null | undefined;
|
|
3884
3971
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3885
3972
|
schedulingOnly?: boolean | null | undefined;
|
|
3973
|
+
meterOnly?: boolean | null | undefined;
|
|
3886
3974
|
currentOperatorInitials?: string | null | undefined;
|
|
3887
3975
|
statusCode?: string | null | undefined;
|
|
3888
3976
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3897,6 +3985,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3897
3985
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3898
3986
|
includeReasonCodes?: string[] | null | undefined;
|
|
3899
3987
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3988
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3900
3989
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3901
3990
|
}[];
|
|
3902
3991
|
createdAt?: string | null | undefined;
|
|
@@ -3905,6 +3994,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3905
3994
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3906
3995
|
includeReasonCodes?: string[] | null | undefined;
|
|
3907
3996
|
excludeReasonCodes?: string[] | null | undefined;
|
|
3997
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3908
3998
|
archivedAt?: string | null | undefined;
|
|
3909
3999
|
}, {
|
|
3910
4000
|
code: string;
|
|
@@ -3951,6 +4041,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3951
4041
|
allowRejectProduction?: boolean | null | undefined;
|
|
3952
4042
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
3953
4043
|
schedulingOnly?: boolean | null | undefined;
|
|
4044
|
+
meterOnly?: boolean | null | undefined;
|
|
3954
4045
|
currentOperatorInitials?: string | null | undefined;
|
|
3955
4046
|
statusCode?: string | null | undefined;
|
|
3956
4047
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -3965,6 +4056,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3965
4056
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3966
4057
|
includeReasonCodes?: string[] | null | undefined;
|
|
3967
4058
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4059
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3968
4060
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
3969
4061
|
}[];
|
|
3970
4062
|
createdAt?: string | null | undefined;
|
|
@@ -3974,6 +4066,7 @@ declare const PlantSchema: z.ZodObject<{
|
|
|
3974
4066
|
excludeTaskCodes?: string[] | null | undefined;
|
|
3975
4067
|
includeReasonCodes?: string[] | null | undefined;
|
|
3976
4068
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4069
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
3977
4070
|
archivedAt?: string | null | undefined;
|
|
3978
4071
|
}>;
|
|
3979
4072
|
type PlantSchema = z.infer<typeof PlantSchema>;
|
|
@@ -3993,6 +4086,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
3993
4086
|
excludeReasonCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3994
4087
|
includeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3995
4088
|
excludeTaskCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4089
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
3996
4090
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3997
4091
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3998
4092
|
} & {
|
|
@@ -4022,6 +4116,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4022
4116
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4023
4117
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4024
4118
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4119
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4025
4120
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4026
4121
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4027
4122
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4074,6 +4169,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4074
4169
|
allowRejectProduction?: boolean | null | undefined;
|
|
4075
4170
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4076
4171
|
schedulingOnly?: boolean | null | undefined;
|
|
4172
|
+
meterOnly?: boolean | null | undefined;
|
|
4077
4173
|
currentOperatorInitials?: string | null | undefined;
|
|
4078
4174
|
statusCode?: string | null | undefined;
|
|
4079
4175
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4116,6 +4212,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4116
4212
|
allowRejectProduction?: boolean | null | undefined;
|
|
4117
4213
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4118
4214
|
schedulingOnly?: boolean | null | undefined;
|
|
4215
|
+
meterOnly?: boolean | null | undefined;
|
|
4119
4216
|
currentOperatorInitials?: string | null | undefined;
|
|
4120
4217
|
statusCode?: string | null | undefined;
|
|
4121
4218
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4163,6 +4260,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4163
4260
|
allowRejectProduction?: boolean | null | undefined;
|
|
4164
4261
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4165
4262
|
schedulingOnly?: boolean | null | undefined;
|
|
4263
|
+
meterOnly?: boolean | null | undefined;
|
|
4166
4264
|
currentOperatorInitials?: string | null | undefined;
|
|
4167
4265
|
statusCode?: string | null | undefined;
|
|
4168
4266
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4177,6 +4275,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4177
4275
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4178
4276
|
includeReasonCodes?: string[] | null | undefined;
|
|
4179
4277
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4278
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4180
4279
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4181
4280
|
}, {
|
|
4182
4281
|
code: string;
|
|
@@ -4218,6 +4317,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4218
4317
|
allowRejectProduction?: boolean | null | undefined;
|
|
4219
4318
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4220
4319
|
schedulingOnly?: boolean | null | undefined;
|
|
4320
|
+
meterOnly?: boolean | null | undefined;
|
|
4221
4321
|
currentOperatorInitials?: string | null | undefined;
|
|
4222
4322
|
statusCode?: string | null | undefined;
|
|
4223
4323
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4232,10 +4332,12 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4232
4332
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4233
4333
|
includeReasonCodes?: string[] | null | undefined;
|
|
4234
4334
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4335
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4235
4336
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4236
4337
|
}>, "many">;
|
|
4237
4338
|
dayStartHour: z.ZodNumber;
|
|
4238
4339
|
weekStartDay: z.ZodNumber;
|
|
4340
|
+
totalEnergyStationCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
4239
4341
|
}, "strip", z.ZodTypeAny, {
|
|
4240
4342
|
code: string;
|
|
4241
4343
|
name: string;
|
|
@@ -4283,6 +4385,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4283
4385
|
allowRejectProduction?: boolean | null | undefined;
|
|
4284
4386
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4285
4387
|
schedulingOnly?: boolean | null | undefined;
|
|
4388
|
+
meterOnly?: boolean | null | undefined;
|
|
4286
4389
|
currentOperatorInitials?: string | null | undefined;
|
|
4287
4390
|
statusCode?: string | null | undefined;
|
|
4288
4391
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4297,8 +4400,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4297
4400
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4298
4401
|
includeReasonCodes?: string[] | null | undefined;
|
|
4299
4402
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4403
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4300
4404
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4301
4405
|
}[];
|
|
4406
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4302
4407
|
}, {
|
|
4303
4408
|
code: string;
|
|
4304
4409
|
name: string;
|
|
@@ -4346,6 +4451,7 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4346
4451
|
allowRejectProduction?: boolean | null | undefined;
|
|
4347
4452
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4348
4453
|
schedulingOnly?: boolean | null | undefined;
|
|
4454
|
+
meterOnly?: boolean | null | undefined;
|
|
4349
4455
|
currentOperatorInitials?: string | null | undefined;
|
|
4350
4456
|
statusCode?: string | null | undefined;
|
|
4351
4457
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4360,8 +4466,10 @@ declare const PlantViewModel: z.ZodObject<{
|
|
|
4360
4466
|
excludeTaskCodes?: string[] | null | undefined;
|
|
4361
4467
|
includeReasonCodes?: string[] | null | undefined;
|
|
4362
4468
|
excludeReasonCodes?: string[] | null | undefined;
|
|
4469
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4363
4470
|
allowQuickScheduleStart?: boolean | null | undefined;
|
|
4364
4471
|
}[];
|
|
4472
|
+
totalEnergyStationCodes?: string[] | null | undefined;
|
|
4365
4473
|
}>;
|
|
4366
4474
|
type PlantViewModel = z.infer<typeof PlantViewModel>;
|
|
4367
4475
|
|
|
@@ -4672,6 +4780,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4672
4780
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4673
4781
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4674
4782
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4783
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4675
4784
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4676
4785
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4677
4786
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4729,6 +4838,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4729
4838
|
allowRejectProduction?: boolean | null | undefined;
|
|
4730
4839
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4731
4840
|
schedulingOnly?: boolean | null | undefined;
|
|
4841
|
+
meterOnly?: boolean | null | undefined;
|
|
4732
4842
|
currentOperatorInitials?: string | null | undefined;
|
|
4733
4843
|
statusCode?: string | null | undefined;
|
|
4734
4844
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4773,6 +4883,7 @@ declare const StationSchema: z.ZodObject<{
|
|
|
4773
4883
|
allowRejectProduction?: boolean | null | undefined;
|
|
4774
4884
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
4775
4885
|
schedulingOnly?: boolean | null | undefined;
|
|
4886
|
+
meterOnly?: boolean | null | undefined;
|
|
4776
4887
|
currentOperatorInitials?: string | null | undefined;
|
|
4777
4888
|
statusCode?: string | null | undefined;
|
|
4778
4889
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -4812,6 +4923,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
4812
4923
|
allowRejectProduction: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4813
4924
|
allowEditPartsPerCycle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4814
4925
|
schedulingOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4926
|
+
meterOnly: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
4815
4927
|
currentOperatorInitials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4816
4928
|
statusCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4817
4929
|
statusCodeUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5162,12 +5274,15 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5162
5274
|
}>, z.ZodObject<{
|
|
5163
5275
|
type: z.ZodLiteral<"cron">;
|
|
5164
5276
|
pattern: z.ZodString;
|
|
5277
|
+
availableBeforeDeadlineMinutes: z.ZodOptional<z.ZodNumber>;
|
|
5165
5278
|
}, "strict", z.ZodTypeAny, {
|
|
5166
5279
|
type: "cron";
|
|
5167
5280
|
pattern: string;
|
|
5281
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5168
5282
|
}, {
|
|
5169
5283
|
type: "cron";
|
|
5170
5284
|
pattern: string;
|
|
5285
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5171
5286
|
}>]>>;
|
|
5172
5287
|
} & {
|
|
5173
5288
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5183,6 +5298,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5183
5298
|
} | {
|
|
5184
5299
|
type: "cron";
|
|
5185
5300
|
pattern: string;
|
|
5301
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5186
5302
|
};
|
|
5187
5303
|
completedAt?: string | null | undefined;
|
|
5188
5304
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5197,6 +5313,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5197
5313
|
} | {
|
|
5198
5314
|
type: "cron";
|
|
5199
5315
|
pattern: string;
|
|
5316
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5200
5317
|
} | undefined;
|
|
5201
5318
|
completedAt?: string | null | undefined;
|
|
5202
5319
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5246,6 +5363,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5246
5363
|
allowRejectProduction?: boolean | null | undefined;
|
|
5247
5364
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5248
5365
|
schedulingOnly?: boolean | null | undefined;
|
|
5366
|
+
meterOnly?: boolean | null | undefined;
|
|
5249
5367
|
currentOperatorInitials?: string | null | undefined;
|
|
5250
5368
|
statusCode?: string | null | undefined;
|
|
5251
5369
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -5361,6 +5479,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5361
5479
|
} | {
|
|
5362
5480
|
type: "cron";
|
|
5363
5481
|
pattern: string;
|
|
5482
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5364
5483
|
};
|
|
5365
5484
|
completedAt?: string | null | undefined;
|
|
5366
5485
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5410,6 +5529,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5410
5529
|
allowRejectProduction?: boolean | null | undefined;
|
|
5411
5530
|
allowEditPartsPerCycle?: boolean | null | undefined;
|
|
5412
5531
|
schedulingOnly?: boolean | null | undefined;
|
|
5532
|
+
meterOnly?: boolean | null | undefined;
|
|
5413
5533
|
currentOperatorInitials?: string | null | undefined;
|
|
5414
5534
|
statusCode?: string | null | undefined;
|
|
5415
5535
|
statusCodeUpdatedAt?: string | null | undefined;
|
|
@@ -5525,6 +5645,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5525
5645
|
} | {
|
|
5526
5646
|
type: "cron";
|
|
5527
5647
|
pattern: string;
|
|
5648
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5528
5649
|
} | undefined;
|
|
5529
5650
|
completedAt?: string | null | undefined;
|
|
5530
5651
|
completedOperatorInitials?: string | null | undefined;
|
package/build/index.js
CHANGED
|
@@ -163,7 +163,11 @@ var require_task = __commonJS({
|
|
|
163
163
|
}).strict(),
|
|
164
164
|
zod_1.z.object({
|
|
165
165
|
type: zod_1.z.literal(exports2.TASK_FREQUENCY_TYPE_CRON),
|
|
166
|
-
pattern: zod_1.z.string().min(1).describe("Standard 5-field cron pattern (minute hour day-of-month month day-of-week), evaluated in the station's plant timezone")
|
|
166
|
+
pattern: zod_1.z.string().min(1).describe("Standard 5-field cron pattern (minute hour day-of-month month day-of-week), evaluated in the station's plant timezone"),
|
|
167
|
+
// Optional at the schema level so pre-existing cron Tasks (written before this
|
|
168
|
+
// field existed) still parse — the admin form/API require it for new/edited
|
|
169
|
+
// cron Tasks, and the tablet falls back to whole-period availability when absent.
|
|
170
|
+
availableBeforeDeadlineMinutes: zod_1.z.number().int().positive().optional().describe("How many minutes before the deadline (the cron fire) this Task becomes available to complete on the tablet. Required for cron Tasks; must be shorter than the smallest gap between consecutive cron fires.")
|
|
167
171
|
}).strict()
|
|
168
172
|
]).describe("How often this Task must be completed. 'schedule' = once per production schedule; 'cron' = every cron interval.");
|
|
169
173
|
exports2.TaskSchema = zod_1.z.object({
|
|
@@ -192,6 +196,7 @@ var require_base_station_group = __commonJS({
|
|
|
192
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."),
|
|
193
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."),
|
|
194
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."),
|
|
195
200
|
createdAt: zod_1.z.string().nullish().describe("Group creation timestamp (ISO 8601, system managed)"),
|
|
196
201
|
updatedAt: zod_1.z.string().nullish().describe("Last update timestamp (ISO 8601, system managed)")
|
|
197
202
|
}).strict();
|
|
@@ -559,6 +564,7 @@ var require_base_station = __commonJS({
|
|
|
559
564
|
allowRejectProduction: zod_1.z.boolean().default(false).nullish().describe("Allow Reject Production: Enables reject (bad quality) production to be recorded by operators."),
|
|
560
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."),
|
|
561
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"),
|
|
562
568
|
// Current State
|
|
563
569
|
currentOperatorInitials: zod_1.z.string().min(3).max(3).nullish().describe("Current Operator Initials: Current operator's initials (exactly 3 characters, system managed)"),
|
|
564
570
|
statusCode: zod_1.z.string().nullish().describe("Status Code: Current status code of the station (system managed)"),
|
|
@@ -603,6 +609,7 @@ var require_plant = __commonJS({
|
|
|
603
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."),
|
|
604
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."),
|
|
605
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."),
|
|
606
613
|
stationGroups: zod_1.z.array(base_station_group_1.BaseStationGroupSchema.extend({
|
|
607
614
|
stations: zod_1.z.array(base_station_1.BaseStationSchema).describe("Array of stations within this group (minimum 1)")
|
|
608
615
|
}).describe("Station group configuration with nested stations")).describe("Array of station groups within this plant (minimum 1)"),
|
|
@@ -1966,7 +1973,7 @@ var require_manifest = __commonJS({
|
|
|
1966
1973
|
"../../packages/common/build/schemas/manifest.js"(exports2) {
|
|
1967
1974
|
"use strict";
|
|
1968
1975
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1969
|
-
exports2.ManifestSchema = void 0;
|
|
1976
|
+
exports2.StrictManifestSchema = exports2.ManifestSchema = void 0;
|
|
1970
1977
|
var zod_1 = require("zod");
|
|
1971
1978
|
var base_account_1 = require_base_account();
|
|
1972
1979
|
var plant_1 = require_plant();
|
|
@@ -2044,19 +2051,52 @@ var require_manifest = __commonJS({
|
|
|
2044
2051
|
validateNoOverlap(level.includeTaskCodes, level.excludeTaskCodes, "Task code", [...basePath, "includeTaskCodes"], [...basePath, "excludeTaskCodes"]);
|
|
2045
2052
|
};
|
|
2046
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
|
+
};
|
|
2047
2065
|
for (const [pi, plant] of data.account.plants.entries()) {
|
|
2048
2066
|
const plantPath = ["account", "plants", pi];
|
|
2049
2067
|
validateLevel(plant, plantPath);
|
|
2068
|
+
const plantActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2050
2069
|
for (const [gi, group] of plant.stationGroups.entries()) {
|
|
2051
2070
|
const groupPath = [...plantPath, "stationGroups", gi];
|
|
2052
2071
|
validateLevel(group, groupPath);
|
|
2053
2072
|
validateShiftPatternCode(group.shiftPatternCode, [...groupPath, "shiftPatternCode"]);
|
|
2073
|
+
const groupActiveStationCodesLower = /* @__PURE__ */ new Set();
|
|
2054
2074
|
for (const [si, station] of group.stations.entries()) {
|
|
2055
2075
|
const stationPath = [...groupPath, "stations", si];
|
|
2056
2076
|
validateLevel(station, stationPath);
|
|
2057
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
|
+
}
|
|
2058
2090
|
}
|
|
2091
|
+
validateTotalEnergyStationCodes(group.totalEnergyStationCodes, groupActiveStationCodesLower, `station group '${group.code}'`, [
|
|
2092
|
+
...groupPath,
|
|
2093
|
+
"totalEnergyStationCodes"
|
|
2094
|
+
]);
|
|
2059
2095
|
}
|
|
2096
|
+
validateTotalEnergyStationCodes(plant.totalEnergyStationCodes, plantActiveStationCodesLower, `plant '${plant.code}'`, [
|
|
2097
|
+
...plantPath,
|
|
2098
|
+
"totalEnergyStationCodes"
|
|
2099
|
+
]);
|
|
2060
2100
|
}
|
|
2061
2101
|
for (const [ki, sku] of (data.account.skus ?? []).entries()) {
|
|
2062
2102
|
const skuPath = ["account", "skus", ki];
|
|
@@ -2064,6 +2104,48 @@ var require_manifest = __commonJS({
|
|
|
2064
2104
|
validateCodes(sku.includeTaskCodes, validTaskCodes, "Task code", [...skuPath, "includeTaskCodes"]);
|
|
2065
2105
|
}
|
|
2066
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
|
+
});
|
|
2067
2149
|
}
|
|
2068
2150
|
});
|
|
2069
2151
|
|
|
@@ -2465,7 +2547,8 @@ var require_plant2 = __commonJS({
|
|
|
2465
2547
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2466
2548
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2467
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."),
|
|
2468
|
-
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.")
|
|
2469
2552
|
});
|
|
2470
2553
|
exports2.ArchivePlantPostRequest = zod_1.z.object({
|
|
2471
2554
|
plantCode: schemas_1.PlantCodeSchema
|
|
@@ -2612,7 +2695,8 @@ var require_station2 = __commonJS({
|
|
|
2612
2695
|
exports2.StationGetRequest = zod_1.z.object({
|
|
2613
2696
|
sortby: common_1.SortByStandardParam.optional(),
|
|
2614
2697
|
skipcache: zod_1.z.string().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2615
|
-
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()
|
|
2616
2700
|
});
|
|
2617
2701
|
exports2.AdminStationPutBodyRequest = schemas_1.StationSchema;
|
|
2618
2702
|
var StationLogSchema = zod_1.z.object({
|
|
@@ -2623,7 +2707,8 @@ var require_station2 = __commonJS({
|
|
|
2623
2707
|
});
|
|
2624
2708
|
exports2.StationWindowGetRequest = zod_1.z.object({
|
|
2625
2709
|
includefuture: zod_1.z.string().trim().min(1).refine((value) => value.toLowerCase() === "true" || value.toLowerCase() === "false").transform((value) => value.toLowerCase() === "true").optional(),
|
|
2626
|
-
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()
|
|
2627
2712
|
});
|
|
2628
2713
|
exports2.StationTargetGetRequest = zod_1.z.object({
|
|
2629
2714
|
sortby: common_1.SortByStandardParam.optional()
|
|
@@ -2655,7 +2740,8 @@ var require_station_group2 = __commonJS({
|
|
|
2655
2740
|
includeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Include Task Codes: Only these Task codes are available at this level."),
|
|
2656
2741
|
excludeTaskCodes: zod_1.z.array(zod_1.z.string()).nullish().describe("Exclude Task Codes: These Task codes are removed at this level."),
|
|
2657
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."),
|
|
2658
|
-
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.")
|
|
2659
2745
|
});
|
|
2660
2746
|
exports2.StationGroupPostRequest = StationGroupSchema;
|
|
2661
2747
|
exports2.StationGroupGetRquest = zod_1.z.object({ code: exports2.StationGroupCodeSchema });
|
|
@@ -6909,6 +6995,7 @@ var require_station3 = __commonJS({
|
|
|
6909
6995
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6910
6996
|
exports2.stationsFromManifest = stationsFromManifest;
|
|
6911
6997
|
exports2.stationByCode = stationByCode;
|
|
6998
|
+
exports2.stationCodeExists = stationCodeExists;
|
|
6912
6999
|
exports2.stationCodesFromManifest = stationCodesFromManifest;
|
|
6913
7000
|
var shift_1 = require_shift3();
|
|
6914
7001
|
var station_allowed_list_1 = require_station_allowed_list();
|
|
@@ -6935,6 +7022,9 @@ var require_station3 = __commonJS({
|
|
|
6935
7022
|
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
6936
7023
|
continue;
|
|
6937
7024
|
}
|
|
7025
|
+
if (station.meterOnly && !options?.includeMeterOnly && !options?.codes?.length) {
|
|
7026
|
+
continue;
|
|
7027
|
+
}
|
|
6938
7028
|
const resolvedShiftPatternCode = station.shiftPatternCode || group.shiftPatternCode;
|
|
6939
7029
|
let shifts = [];
|
|
6940
7030
|
let shiftPattern;
|
|
@@ -6978,6 +7068,7 @@ var require_station3 = __commonJS({
|
|
|
6978
7068
|
allowScheduleCutShort: station.allowScheduleCutShort,
|
|
6979
7069
|
allowEditPartsPerCycle: station.allowEditPartsPerCycle,
|
|
6980
7070
|
schedulingOnly: station.schedulingOnly ?? false,
|
|
7071
|
+
meterOnly: station.meterOnly ?? false,
|
|
6981
7072
|
allowRejectProduction: station.allowRejectProduction,
|
|
6982
7073
|
currentOperatorInitials: station.currentOperatorInitials ?? null,
|
|
6983
7074
|
statusCode: station.statusCode ?? null,
|
|
@@ -7009,7 +7100,18 @@ var require_station3 = __commonJS({
|
|
|
7009
7100
|
const stations = stationsFromManifest(manifest, { ...options, codes: [code] });
|
|
7010
7101
|
return stations[0];
|
|
7011
7102
|
}
|
|
7012
|
-
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) {
|
|
7013
7115
|
if (!manifest) {
|
|
7014
7116
|
return [];
|
|
7015
7117
|
}
|
|
@@ -7023,6 +7125,12 @@ var require_station3 = __commonJS({
|
|
|
7023
7125
|
if (station.archivedAt) {
|
|
7024
7126
|
continue;
|
|
7025
7127
|
}
|
|
7128
|
+
if (station.schedulingOnly && !options?.includeSchedulingOnly) {
|
|
7129
|
+
continue;
|
|
7130
|
+
}
|
|
7131
|
+
if (station.meterOnly && !options?.includeMeterOnly) {
|
|
7132
|
+
continue;
|
|
7133
|
+
}
|
|
7026
7134
|
result.push({
|
|
7027
7135
|
code: station.code
|
|
7028
7136
|
});
|
|
@@ -8667,7 +8775,8 @@ var require_plant3 = __commonJS({
|
|
|
8667
8775
|
stations: zod_1.z.array(schemas_1.BaseStationSchema)
|
|
8668
8776
|
})),
|
|
8669
8777
|
dayStartHour: zod_1.z.number(),
|
|
8670
|
-
weekStartDay: zod_1.z.number()
|
|
8778
|
+
weekStartDay: zod_1.z.number(),
|
|
8779
|
+
totalEnergyStationCodes: zod_1.z.array(zod_1.z.string()).nullish()
|
|
8671
8780
|
});
|
|
8672
8781
|
}
|
|
8673
8782
|
});
|
package/package.json
CHANGED