busroot-sdk 0.0.8-dev.2825825717 → 0.0.8-dev.2831682194
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 +16 -0
- package/build/index.js +34 -9
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
38
38
|
enableAutoEndOnQuantityComplete: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
39
39
|
enableDragBetweenStationsOnGantt: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
40
40
|
enableProductionCorrection: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
41
|
+
enableHistoricalCorrection: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
41
42
|
enableManualProduction: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
42
43
|
enableQuickScheduleStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
43
44
|
enableScheduleCutShort: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
@@ -104,6 +105,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
104
105
|
enableAutoEndOnQuantityComplete: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
105
106
|
enableDragBetweenStationsOnGantt: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
106
107
|
enableProductionCorrection: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
108
|
+
enableHistoricalCorrection: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
107
109
|
enableManualProduction: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
108
110
|
enableQuickScheduleStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
109
111
|
enableScheduleCutShort: z.ZodOptional<z.ZodNullable<z.ZodEnum<["on", "off"]>>>;
|
|
@@ -919,6 +921,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
919
921
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
920
922
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
921
923
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
924
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
922
925
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
923
926
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
924
927
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -1098,6 +1101,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1098
1101
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
1099
1102
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
1100
1103
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
1104
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
1101
1105
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
1102
1106
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
1103
1107
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -1279,6 +1283,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1279
1283
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
1280
1284
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
1281
1285
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
1286
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
1282
1287
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
1283
1288
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
1284
1289
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -1461,6 +1466,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1461
1466
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
1462
1467
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
1463
1468
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
1469
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
1464
1470
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
1465
1471
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
1466
1472
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -1643,6 +1649,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1643
1649
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
1644
1650
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
1645
1651
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
1652
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
1646
1653
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
1647
1654
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
1648
1655
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -1825,6 +1832,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1825
1832
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
1826
1833
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
1827
1834
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
1835
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
1828
1836
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
1829
1837
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
1830
1838
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -2011,6 +2019,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
2011
2019
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
2012
2020
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
2013
2021
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
2022
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
2014
2023
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
2015
2024
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
2016
2025
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -2108,6 +2117,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
2108
2117
|
enableLostProductionCost?: "on" | "off" | null | undefined;
|
|
2109
2118
|
enableAutoEndOnQuantityComplete?: "on" | "off" | null | undefined;
|
|
2110
2119
|
enableDragBetweenStationsOnGantt?: "on" | "off" | null | undefined;
|
|
2120
|
+
enableHistoricalCorrection?: "on" | "off" | null | undefined;
|
|
2111
2121
|
stationCountLimit?: number | null | undefined;
|
|
2112
2122
|
electricalPricePerKwh?: number | null | undefined;
|
|
2113
2123
|
electricalCo2PerKwh?: number | null | undefined;
|
|
@@ -2227,6 +2237,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
2227
2237
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
2228
2238
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
2229
2239
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
2240
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
2230
2241
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
2231
2242
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
2232
2243
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -2324,6 +2335,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
2324
2335
|
enableLostProductionCost?: "on" | "off" | null | undefined;
|
|
2325
2336
|
enableAutoEndOnQuantityComplete?: "on" | "off" | null | undefined;
|
|
2326
2337
|
enableDragBetweenStationsOnGantt?: "on" | "off" | null | undefined;
|
|
2338
|
+
enableHistoricalCorrection?: "on" | "off" | null | undefined;
|
|
2327
2339
|
stationCountLimit?: number | null | undefined;
|
|
2328
2340
|
electricalPricePerKwh?: number | null | undefined;
|
|
2329
2341
|
electricalCo2PerKwh?: number | null | undefined;
|
|
@@ -2596,6 +2608,7 @@ declare class BusrootClient {
|
|
|
2596
2608
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
2597
2609
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
2598
2610
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
2611
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
2599
2612
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
2600
2613
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
2601
2614
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -2693,6 +2706,7 @@ declare class BusrootClient {
|
|
|
2693
2706
|
enableLostProductionCost?: "on" | "off" | null | undefined;
|
|
2694
2707
|
enableAutoEndOnQuantityComplete?: "on" | "off" | null | undefined;
|
|
2695
2708
|
enableDragBetweenStationsOnGantt?: "on" | "off" | null | undefined;
|
|
2709
|
+
enableHistoricalCorrection?: "on" | "off" | null | undefined;
|
|
2696
2710
|
stationCountLimit?: number | null | undefined;
|
|
2697
2711
|
electricalPricePerKwh?: number | null | undefined;
|
|
2698
2712
|
electricalCo2PerKwh?: number | null | undefined;
|
|
@@ -2818,6 +2832,7 @@ declare class BusrootClient {
|
|
|
2818
2832
|
enableAutoEndOnQuantityComplete?: "off" | "on" | null | undefined;
|
|
2819
2833
|
enableDragBetweenStationsOnGantt?: "off" | "on" | null | undefined;
|
|
2820
2834
|
enableProductionCorrection?: "off" | "on" | null | undefined;
|
|
2835
|
+
enableHistoricalCorrection?: "off" | "on" | null | undefined;
|
|
2821
2836
|
enableManualProduction?: "off" | "on" | null | undefined;
|
|
2822
2837
|
enableQuickScheduleStart?: "off" | "on" | null | undefined;
|
|
2823
2838
|
enableScheduleCutShort?: "off" | "on" | null | undefined;
|
|
@@ -2915,6 +2930,7 @@ declare class BusrootClient {
|
|
|
2915
2930
|
enableLostProductionCost?: "on" | "off" | null | undefined;
|
|
2916
2931
|
enableAutoEndOnQuantityComplete?: "on" | "off" | null | undefined;
|
|
2917
2932
|
enableDragBetweenStationsOnGantt?: "on" | "off" | null | undefined;
|
|
2933
|
+
enableHistoricalCorrection?: "on" | "off" | null | undefined;
|
|
2918
2934
|
stationCountLimit?: number | null | undefined;
|
|
2919
2935
|
electricalPricePerKwh?: number | null | undefined;
|
|
2920
2936
|
electricalCo2PerKwh?: number | null | undefined;
|
package/build/index.js
CHANGED
|
@@ -265,6 +265,13 @@ var require_registry = __commonJS({
|
|
|
265
265
|
allowedLevels: ["account", "plant", "stationGroup", "station"],
|
|
266
266
|
oiManaged: false
|
|
267
267
|
},
|
|
268
|
+
enableHistoricalCorrection: {
|
|
269
|
+
key: "enableHistoricalCorrection",
|
|
270
|
+
label: "Allow Historical Production Correction",
|
|
271
|
+
description: "Allow admins to correct the production count of a schedule that has already ended, from the schedule list and the Gantt. Independent of `enableProductionCorrection`, which gates the tablet's in-schedule corrections.",
|
|
272
|
+
allowedLevels: ["account"],
|
|
273
|
+
oiManaged: false
|
|
274
|
+
},
|
|
268
275
|
enableManualProduction: {
|
|
269
276
|
key: "enableManualProduction",
|
|
270
277
|
label: "Allow Manual Production",
|
|
@@ -854,9 +861,9 @@ var require_error_key = __commonJS({
|
|
|
854
861
|
"../../packages/common/build/error-key.js"(exports2) {
|
|
855
862
|
"use strict";
|
|
856
863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
857
|
-
exports2.
|
|
858
|
-
exports2.
|
|
859
|
-
exports2.TOO_MANY_ACCESS_CODE_ATTEMPTS = exports2.TOO_MANY_REQUESTS = exports2.PRODUCTION_EXCEEDS_MAX_COUNT = exports2.PRODUCTION_BLOCKED_BY_MANUAL_DOWNTIME = exports2.PRODUCTION_CORRECTION_NOT_ALLOWED = exports2.PRODUCTION_QUANTITY_BELOW_ZERO = exports2.INVALID_PRODUCTION_ID = exports2.RESET_EXCEED_30_DAYS = exports2.INVALID_REASON_CODE = exports2.SELF_REFERENCING_CODE = exports2.PARENT_CODE_IN_USE = exports2.DUPLICATED_REASON_CODE = exports2.DATABASE_ERROR_MESSAGE = exports2.INVALID_API_KEY = void 0;
|
|
864
|
+
exports2.TARGET_STATION_NOT_FOUND = exports2.INVALID_PARTS_PER_CYCLE = exports2.PARTS_PER_CYCLE_NOT_ALLOWED_FOR_STATION = exports2.SCHEDULE_CANNOT_STOP_FUTURE = exports2.SCHEDULE_NON_PROD_OR_ENDED = exports2.SCHEDULE_CANNOT_CUT_SHORT = exports2.SCHEDULE_AUTO_ENDED_BY_QUANTITY = exports2.SCHEDULE_NOT_STARTED_OR_ENDED = exports2.ACTUAL_START_IN_PAST = exports2.PLANNED_START_IN_PAST = exports2.SCHEDULE_CANNOT_CHANGE_PROD_TO_NON_PROD = exports2.SCHEDULE_CANNOT_CHANGE_NON_PROD_TO_PROD = exports2.SCHEDULE_CANNOT_SET_PRIORITY_AFTER_START = exports2.SCHEDULE_ALREADY_STARTED_CANNOT_EDIT_START = exports2.SCHEDULE_ALREADY_ENDED = exports2.UNSUPPORTED_SCHEDULE_OPERATION = exports2.INVALID_RESOLUTION_MODE = exports2.EXISTED_EVENT = exports2.INVALID_SEARCH_TEXT = exports2.INVALID_SKIP = exports2.INVALID_LIMIT = exports2.INVALID_WINDOW_TIME = exports2.INVALID_NOTIFICATION_PREFERENCE = exports2.OVERLAPPED_SHIFT = exports2.INVALID_SHIFT_NAME = exports2.INVALID_WEEK_DAY = exports2.INVALID_FILE_TYPE = exports2.INVALID_HEADER_FIELDS = exports2.DELETE_LAST_SHIFT_PATTERN = exports2.INVALID_ACTUAL_START_AT_STATE = exports2.INVALID_DOMAIN = exports2.SKU_NOT_FOUND = exports2.STATION_GROUP_NOT_FOUND = exports2.WORK_ORDER_ENDED = exports2.SCHEDULE_NOT_FOUND = exports2.INVALID_SKU = exports2.INVALID_SCHEDULE = exports2.EXPIRED_TOKEN = exports2.UNAUTHORIZED_USER = exports2.UNAUTHENTICATED_USER = exports2.SHIFT_PATTERN_NOT_FOUND = exports2.INVALID_SHIFT_PATTERN_TITLE = exports2.INVALID_SHIFT_PATTERN_ID = exports2.INVALID_DELETE_SHIFTS = exports2.UNSUPPORTED_SHIFT_OVER_MID_NIGHT = exports2.INVALID_SHIFTS = exports2.INVALID_PLANTCODE = exports2.INVALID_RANGECODE = exports2.INTERNAL_SERVER_ERROR = exports2.CACHE_NOT_COMPLETE = void 0;
|
|
865
|
+
exports2.ACCOUNT_ARCHIVED = exports2.ACCOUNT_DENIED = exports2.ACCOUNT_NOT_FOUND = exports2.ACCOUNT_MISMATCH = exports2.USER_ACCOUNT_IS_BLOCKED = exports2.ACCOUNT_NOT_SELECTED = exports2.INVALID_USER_ACCOUNT = exports2.NO_ACCOUNT_AVAILABLE = exports2.EXPIRED_USER = exports2.USER_IS_BLOCKED = exports2.INVALID_USER = exports2.USER_NOT_FOUND = exports2.MULTIPLE_ACCOUNT_ASSOCIATED = exports2.UNSUPPORTED_USER_OPERATION = exports2.EMAIL_TYPE_NOT_FOUND = exports2.INVALID_STATION_CODE = exports2.DUPLICATED_STATION_CODE = exports2.DUPLICATED_STATION_GROUP_CODE = exports2.INVALID_INPUT = exports2.DUPLICATED_SKU_CODE = exports2.INVALID_SKU_CODE = exports2.TOO_LARGE = exports2.BUSINESS_CONFLICT = exports2.FORBIDDEN = exports2.INVALID_ACCESS_CODE = exports2.EXPIRED_API_KEY = exports2.UNSUPPORTED_ARCHIVE_LAST_PLANT = exports2.PLANT_NOT_EXISTS = exports2.NOT_EMPTY_STATION_GROUP = exports2.INVALID_AGGREGATE_WINDOW = exports2.DUPLICATED_SCHEDULE = exports2.INVALID_SCHEDULE_ORDER_TYPE = exports2.INVALID_SKU_GROUP_NAME = exports2.SKU_GROUP_NOT_FOUND = exports2.INVALID_SKU_GROUP = exports2.INVALID_DOWNTIMNE_DURATION_THRESHOLD_MULTIPLIER = exports2.REASON_NOT_DOWNTIME_TYPE = exports2.MANUAL_DOWNTIME_NO_ACTIVE_SCHEDULE = exports2.MANUAL_DOWNTIME_ALREADY_ONGOING = exports2.CACHE_WARMING_DISABLED = exports2.MANUAL_DOWNTIME_DISABLED = exports2.DOWNTIME_NOT_MANUAL = exports2.DOWNTIME_NOT_FOUND = exports2.STATION_NOT_FOUND = exports2.TASK_LIST_NOT_FOUND = exports2.REASON_NOTE_REQUIRED = exports2.REASON_NOT_ALLOWED_FOR_STATION = exports2.REASON_NOT_FOUND = exports2.SKU_REQUIRED = exports2.STATION_REASSIGN_CROSS_GROUP = void 0;
|
|
866
|
+
exports2.TOO_MANY_ACCESS_CODE_ATTEMPTS = exports2.TOO_MANY_REQUESTS = exports2.HISTORICAL_CORRECTION_CURSOR_RESET_FAILED = exports2.HISTORICAL_CORRECTION_WINDOW_EXPIRED = exports2.SCHEDULE_NOT_CORRECTABLE = exports2.HISTORICAL_CORRECTION_NOT_ALLOWED = exports2.PRODUCTION_EXCEEDS_MAX_COUNT = exports2.PRODUCTION_BLOCKED_BY_MANUAL_DOWNTIME = exports2.PRODUCTION_CORRECTION_NOT_ALLOWED = exports2.PRODUCTION_QUANTITY_BELOW_ZERO = exports2.INVALID_PRODUCTION_ID = exports2.RESET_EXCEED_30_DAYS = exports2.INVALID_REASON_CODE = exports2.SELF_REFERENCING_CODE = exports2.PARENT_CODE_IN_USE = exports2.DUPLICATED_REASON_CODE = exports2.DATABASE_ERROR_MESSAGE = exports2.INVALID_API_KEY = exports2.UNSUPPORTED_API_KEY_OPERATION = void 0;
|
|
860
867
|
exports2.CACHE_NOT_COMPLETE = "cacheNotComplete";
|
|
861
868
|
exports2.INTERNAL_SERVER_ERROR = "internalServerError";
|
|
862
869
|
exports2.INVALID_RANGECODE = "invalidRangeCode";
|
|
@@ -905,6 +912,7 @@ var require_error_key = __commonJS({
|
|
|
905
912
|
exports2.SCHEDULE_NON_PROD_OR_ENDED = "scheduleNonProdOrEnded";
|
|
906
913
|
exports2.SCHEDULE_CANNOT_STOP_FUTURE = "scheduleCannotStopFuture";
|
|
907
914
|
exports2.PARTS_PER_CYCLE_NOT_ALLOWED_FOR_STATION = "partsPerCycleNotAllowedForStation";
|
|
915
|
+
exports2.INVALID_PARTS_PER_CYCLE = "invalidPartsPerCycle";
|
|
908
916
|
exports2.TARGET_STATION_NOT_FOUND = "targetStationNotFound";
|
|
909
917
|
exports2.STATION_REASSIGN_CROSS_GROUP = "stationReassignCrossGroup";
|
|
910
918
|
exports2.SKU_REQUIRED = "skuRequired";
|
|
@@ -973,6 +981,10 @@ var require_error_key = __commonJS({
|
|
|
973
981
|
exports2.PRODUCTION_CORRECTION_NOT_ALLOWED = "productionCorrectionNotAllowed";
|
|
974
982
|
exports2.PRODUCTION_BLOCKED_BY_MANUAL_DOWNTIME = "productionBlockedByManualDowntime";
|
|
975
983
|
exports2.PRODUCTION_EXCEEDS_MAX_COUNT = "productionExceedsMaxCount";
|
|
984
|
+
exports2.HISTORICAL_CORRECTION_NOT_ALLOWED = "historicalCorrectionNotAllowed";
|
|
985
|
+
exports2.SCHEDULE_NOT_CORRECTABLE = "scheduleNotCorrectable";
|
|
986
|
+
exports2.HISTORICAL_CORRECTION_WINDOW_EXPIRED = "historicalCorrectionWindowExpired";
|
|
987
|
+
exports2.HISTORICAL_CORRECTION_CURSOR_RESET_FAILED = "historicalCorrectionCursorResetFailed";
|
|
976
988
|
exports2.TOO_MANY_REQUESTS = "tooManyRequests";
|
|
977
989
|
exports2.TOO_MANY_ACCESS_CODE_ATTEMPTS = "tooManyAccessCodeAttempts";
|
|
978
990
|
}
|
|
@@ -2503,13 +2515,14 @@ var require_schedule = __commonJS({
|
|
|
2503
2515
|
"../../packages/common/build/schemas/schedule.js"(exports2) {
|
|
2504
2516
|
"use strict";
|
|
2505
2517
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2506
|
-
exports2.ScheduleLogSchema = exports2.ScheduleQueryResult = exports2.ScheduleSchema = exports2.ScheduleIdSchema = exports2.SCHEDULE_LOG_MODEL = exports2.SCHEDULE_MODEL = void 0;
|
|
2518
|
+
exports2.ScheduleLogSchema = exports2.ScheduleQueryResult = exports2.ScheduleSchema = exports2.ScheduleIdSchema = exports2.SCHEDULE_LOG_MODEL = exports2.SCHEDULE_MODEL = exports2.MAX_PARTS_PER_CYCLE = void 0;
|
|
2507
2519
|
var zod_1 = require("zod");
|
|
2508
2520
|
var shared_1 = require_shared();
|
|
2509
2521
|
var time_1 = require_time();
|
|
2510
2522
|
var base_station_1 = require_base_station();
|
|
2511
2523
|
var sku_1 = require_sku();
|
|
2512
2524
|
var base_reason_1 = require_base_reason();
|
|
2525
|
+
exports2.MAX_PARTS_PER_CYCLE = 99999;
|
|
2513
2526
|
exports2.SCHEDULE_MODEL = "schedule";
|
|
2514
2527
|
exports2.SCHEDULE_LOG_MODEL = "schedule_log";
|
|
2515
2528
|
exports2.ScheduleIdSchema = zod_1.z.coerce.number().int().gt(0);
|
|
@@ -2538,10 +2551,10 @@ var require_schedule = __commonJS({
|
|
|
2538
2551
|
unitsPerMinute: zod_1.z.number({ coerce: true }).int().gt(0).nullish().describe("Override Units per Minute: "),
|
|
2539
2552
|
unitsPerHour: zod_1.z.number({ coerce: true }).int().gt(0).nullish().describe("Override Units per Hour: "),
|
|
2540
2553
|
lineSpeedTarget: zod_1.z.number({ coerce: true }).int().gt(0).nullish().describe("Override Movement Speed: "),
|
|
2541
|
-
partsPerCycle: zod_1.z.number().gt(0).
|
|
2554
|
+
partsPerCycle: zod_1.z.number().gt(0).lte(exports2.MAX_PARTS_PER_CYCLE).nullish().describe("Override Parts per Cycle: A specific PPC can be set for the schedule, to be used instead of the standard PPC of the SKU."),
|
|
2542
2555
|
priorityAt: zod_1.z.string().nullish().describe("Indicates that the schedule is to be prioritised, and then it was set."),
|
|
2543
2556
|
autoEndOnQuantityComplete: zod_1.z.boolean().nullish().describe("Auto End On Quantity Complete: Schedule will end when the Planned Quantity is reached."),
|
|
2544
|
-
partsPerCycleOverride: zod_1.z.number().nullish(),
|
|
2557
|
+
partsPerCycleOverride: zod_1.z.number().gt(0).lte(exports2.MAX_PARTS_PER_CYCLE).nullish(),
|
|
2545
2558
|
createdAt: zod_1.z.string().nullish(),
|
|
2546
2559
|
updatedAt: zod_1.z.string().nullish()
|
|
2547
2560
|
});
|
|
@@ -6140,7 +6153,7 @@ var require_schedule2 = __commonJS({
|
|
|
6140
6153
|
id: true
|
|
6141
6154
|
});
|
|
6142
6155
|
exports2.ScheduleEditPartsPerCycleOverridePostBodyRequest = zod_1.z.object({
|
|
6143
|
-
partsPerCycleOverride: zod_1.z.coerce.number().gt(0)
|
|
6156
|
+
partsPerCycleOverride: zod_1.z.coerce.number().gt(0).lte(schemas_1.MAX_PARTS_PER_CYCLE)
|
|
6144
6157
|
});
|
|
6145
6158
|
var ScheduleLogSchema = zod_1.z.object({
|
|
6146
6159
|
rangecode: common_1.RangeCodeSchema
|
|
@@ -6320,7 +6333,7 @@ var require_production2 = __commonJS({
|
|
|
6320
6333
|
"../../packages/common/build/api-schemas/production.js"(exports2) {
|
|
6321
6334
|
"use strict";
|
|
6322
6335
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6323
|
-
exports2.ProductionAggregateWindowGetRequest = exports2.ProductionManualPostRequest = void 0;
|
|
6336
|
+
exports2.ProductionAggregateWindowGetRequest = exports2.ProductionHistoricalCorrectionPostRequest = exports2.MAX_HISTORICAL_CORRECTION_QUANTITY = exports2.ProductionManualPostRequest = void 0;
|
|
6324
6337
|
var zod_1 = require("zod");
|
|
6325
6338
|
var schemas_1 = require_schemas();
|
|
6326
6339
|
var ProductionSchema = zod_1.z.object({
|
|
@@ -6340,6 +6353,12 @@ var require_production2 = __commonJS({
|
|
|
6340
6353
|
badReasonCode: schemas_1.ReasonCodeSchema.optional()
|
|
6341
6354
|
});
|
|
6342
6355
|
exports2.ProductionManualPostRequest = ProductionSchema.omit({ id: true });
|
|
6356
|
+
exports2.MAX_HISTORICAL_CORRECTION_QUANTITY = 1e6;
|
|
6357
|
+
exports2.ProductionHistoricalCorrectionPostRequest = zod_1.z.object({
|
|
6358
|
+
scheduleId: schemas_1.ScheduleIdSchema,
|
|
6359
|
+
operation: zod_1.z.enum(["add", "subtract"]),
|
|
6360
|
+
quantity: zod_1.z.number().int().gt(0).lte(exports2.MAX_HISTORICAL_CORRECTION_QUANTITY)
|
|
6361
|
+
});
|
|
6343
6362
|
exports2.ProductionAggregateWindowGetRequest = zod_1.z.object({
|
|
6344
6363
|
aggregatewindow: zod_1.z.enum(["15m", "30m", "1h"]).optional()
|
|
6345
6364
|
});
|
|
@@ -6652,7 +6671,7 @@ var require_api_schemas = __commonJS({
|
|
|
6652
6671
|
"use strict";
|
|
6653
6672
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
6654
6673
|
exports2.ScheduleEditPartsPerCycleOverridePostBodyRequest = exports2.ScheduleEditPartsPerCycleOverridePostParamRequest = exports2.ScheduleFutureGetParamRequest = exports2.ScheduleCutShortPostRequest = exports2.ScheduleDeleteRequest = exports2.SchedulePostRequestTransform = exports2.SchedulePostRequestSuperRefine = exports2.SchedulePostRequest = exports2.ScheduleWorkderGetRequest = exports2.ScheduleGetRequest = exports2.ReasonDeleteRequest = exports2.ReasonPostRequest = exports2.ReasonGetRequest = exports2.ReasonBreadcrumb = exports2.NotificationRefferencesRequest = exports2.StationGroupDeleteRquest = exports2.StationGroupGetRquest = exports2.StationGroupPostRequest = exports2.StationGroupCodeSchema = exports2.StationOperatorPostRequest = exports2.StationTargetGetRequest = exports2.StationWindowGetRequest = exports2.StationLogGetRequest = exports2.AdminStationPutBodyRequest = exports2.StationGetRequest = exports2.StationPostRequest = exports2.StationPostRequestTransform = exports2.StationPostRequestSuperRefine = exports2.StationDeleteRequest = exports2.AccountArchivePostRequest = exports2.AccountSettingPostRequest = exports2.SelectAccountPostRequest = exports2.NewAccountPostRequest = exports2.ArchivePlantPostRequest = exports2.PlantPostRequest = exports2.UserGetRequest = exports2.UserPostRequest = exports2.SkuCycleTimeAnalysisGetRequest = exports2.SkuDeleteRequest = exports2.SkuPostBulkRequest = exports2.SkuPostRequestTransform = exports2.SkuPostRequestSuperRefine = exports2.SkuPostRequest = exports2.BooleanTypeSchema = exports2.SortByStandardParam = exports2.BusrootPagingResponse = exports2.StandardRequestSuperRefine = exports2.StandardRequestParams = exports2.RangeCodeSchema = exports2.UNKNOWN_CODE = void 0;
|
|
6655
|
-
exports2.BufferedDauMessageSchema = exports2.DauMessagesGetParams = exports2.AgentRequest = exports2.AgentMessage = exports2.TaskListDeleteRequest = exports2.TaskListPostRequest = exports2.TaskDeleteRequest = exports2.TaskPostRequest = exports2.NotePostRequest = exports2.NoteGetRequest = exports2.DeleteNoteRequest = exports2.DeleteKeyDeleteRequest = exports2.FilterGetRequest = exports2.AccessCodeGetRequest = exports2.DebugMockClearPostRequest = exports2.DebugResetCursorPostRequest = exports2.DebugEmailDowntimeSummaryGetRequest = exports2.EmailTestHarnessPostRequestRefinement = exports2.EmailTestHarnessPostRequest = exports2.LoginPostRequest = exports2.CallBackGetRequest = exports2.DevicePostRequest = exports2.DeviceDeleteRequest = exports2.DashboardGetRquest = exports2.ManualDowntimeEndByStationRequest = exports2.IssueEventPostRequestRefinement = exports2.IssueEventPostRequest = exports2.IssueEventQueryRequest = exports2.IssuePostRequest = exports2.IssueIdGetRequest = exports2.DOWNTIME_NOTE_MAX_LENGTH = exports2.ProductionAggregateWindowGetRequest = exports2.ProductionManualPostRequest = exports2.ShiftPatternDeleteRequest = exports2.ShiftPostRequest = exports2.ScheduleLogGetRequest = void 0;
|
|
6674
|
+
exports2.BufferedDauMessageSchema = exports2.DauMessagesGetParams = exports2.AgentRequest = exports2.AgentMessage = exports2.TaskListDeleteRequest = exports2.TaskListPostRequest = exports2.TaskDeleteRequest = exports2.TaskPostRequest = exports2.NotePostRequest = exports2.NoteGetRequest = exports2.DeleteNoteRequest = exports2.DeleteKeyDeleteRequest = exports2.FilterGetRequest = exports2.AccessCodeGetRequest = exports2.DebugMockClearPostRequest = exports2.DebugResetCursorPostRequest = exports2.DebugEmailDowntimeSummaryGetRequest = exports2.EmailTestHarnessPostRequestRefinement = exports2.EmailTestHarnessPostRequest = exports2.LoginPostRequest = exports2.CallBackGetRequest = exports2.DevicePostRequest = exports2.DeviceDeleteRequest = exports2.DashboardGetRquest = exports2.ManualDowntimeEndByStationRequest = exports2.IssueEventPostRequestRefinement = exports2.IssueEventPostRequest = exports2.IssueEventQueryRequest = exports2.IssuePostRequest = exports2.IssueIdGetRequest = exports2.DOWNTIME_NOTE_MAX_LENGTH = exports2.MAX_HISTORICAL_CORRECTION_QUANTITY = exports2.ProductionAggregateWindowGetRequest = exports2.ProductionHistoricalCorrectionPostRequest = exports2.ProductionManualPostRequest = exports2.ShiftPatternDeleteRequest = exports2.ShiftPostRequest = exports2.ScheduleLogGetRequest = void 0;
|
|
6656
6675
|
var common_1 = require_common();
|
|
6657
6676
|
Object.defineProperty(exports2, "UNKNOWN_CODE", { enumerable: true, get: function() {
|
|
6658
6677
|
return common_1.UNKNOWN_CODE;
|
|
@@ -6826,9 +6845,15 @@ var require_api_schemas = __commonJS({
|
|
|
6826
6845
|
Object.defineProperty(exports2, "ProductionManualPostRequest", { enumerable: true, get: function() {
|
|
6827
6846
|
return production_1.ProductionManualPostRequest;
|
|
6828
6847
|
} });
|
|
6848
|
+
Object.defineProperty(exports2, "ProductionHistoricalCorrectionPostRequest", { enumerable: true, get: function() {
|
|
6849
|
+
return production_1.ProductionHistoricalCorrectionPostRequest;
|
|
6850
|
+
} });
|
|
6829
6851
|
Object.defineProperty(exports2, "ProductionAggregateWindowGetRequest", { enumerable: true, get: function() {
|
|
6830
6852
|
return production_1.ProductionAggregateWindowGetRequest;
|
|
6831
6853
|
} });
|
|
6854
|
+
Object.defineProperty(exports2, "MAX_HISTORICAL_CORRECTION_QUANTITY", { enumerable: true, get: function() {
|
|
6855
|
+
return production_1.MAX_HISTORICAL_CORRECTION_QUANTITY;
|
|
6856
|
+
} });
|
|
6832
6857
|
var issue_1 = require_issue();
|
|
6833
6858
|
Object.defineProperty(exports2, "DOWNTIME_NOTE_MAX_LENGTH", { enumerable: true, get: function() {
|
|
6834
6859
|
return issue_1.DOWNTIME_NOTE_MAX_LENGTH;
|
package/package.json
CHANGED