busroot-sdk 0.0.8-dev.2924506298 → 0.0.8-dev.2930158956
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 +2 -1
- package/build/index.js +12 -3
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Reason, UserRole, AuthType, AccountRole, DOWNTIME_DETECTION_MODE as DOWNTIME_DETECTION_MODE$1, PRODUCTIVE_STATUS_MODE as PRODUCTIVE_STATUS_MODE$1, PRODUCTION_TYPE, DowntimeType, SCHEDULE_TYPE } from './utils/times';
|
|
1
|
+
import { Reason, UserRole, AuthType, AccountRole, LoginMethod, DOWNTIME_DETECTION_MODE as DOWNTIME_DETECTION_MODE$1, PRODUCTIVE_STATUS_MODE as PRODUCTIVE_STATUS_MODE$1, PRODUCTION_TYPE, DowntimeType, SCHEDULE_TYPE } from './utils/times';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { IClientOptions, MqttClient } from 'mqtt';
|
|
4
4
|
import * as __ from '..';
|
|
@@ -2774,6 +2774,7 @@ declare class BusrootClient {
|
|
|
2774
2774
|
durationFormat?: "months" | "days" | "hours" | "minutes" | null | undefined;
|
|
2775
2775
|
appUrls?: string | null | undefined;
|
|
2776
2776
|
} | undefined;
|
|
2777
|
+
loginMethod?: LoginMethod | undefined;
|
|
2777
2778
|
accounts?: {
|
|
2778
2779
|
accountId: string;
|
|
2779
2780
|
role: AccountRole;
|
package/build/index.js
CHANGED
|
@@ -1853,7 +1853,7 @@ var require_enums = __commonJS({
|
|
|
1853
1853
|
"../../packages/common/build/enums.js"(exports2) {
|
|
1854
1854
|
"use strict";
|
|
1855
1855
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1856
|
-
exports2.MqttEventType = exports2.REASON_TYPE = exports2.PERFORMANCE_MODE_TYPE = exports2.EMAIL_HARNESS_TYPE = exports2.ALERT_ISSUE_TYPE = exports2.CursorType = exports2.TIMESERIES_MESSAGE_TYPE = exports2.PRODUCTIVE_STATUS_MODE = exports2.DOWNTIME_DETECTION_MODE = exports2.NOTIFICATION_PREFERENCE = exports2.WeekDay = exports2.AuthType = exports2.AccountRole = exports2.UserRole = exports2.SCHEDULE_TYPE = exports2.PRODUCTION_TYPE = exports2.MessageType = exports2.GROUP_TAG_PREFIX = exports2.DowntimeFilterState = exports2.DowntimeEventType = exports2.DowntimeType = exports2.StationStatus = exports2.RagStatus = void 0;
|
|
1856
|
+
exports2.MqttEventType = exports2.REASON_TYPE = exports2.PERFORMANCE_MODE_TYPE = exports2.EMAIL_HARNESS_TYPE = exports2.ALERT_ISSUE_TYPE = exports2.CursorType = exports2.TIMESERIES_MESSAGE_TYPE = exports2.PRODUCTIVE_STATUS_MODE = exports2.DOWNTIME_DETECTION_MODE = exports2.NOTIFICATION_PREFERENCE = exports2.WeekDay = exports2.LoginMethod = exports2.AuthType = exports2.AccountRole = exports2.UserRole = exports2.SCHEDULE_TYPE = exports2.PRODUCTION_TYPE = exports2.MessageType = exports2.GROUP_TAG_PREFIX = exports2.DowntimeFilterState = exports2.DowntimeEventType = exports2.DowntimeType = exports2.StationStatus = exports2.RagStatus = void 0;
|
|
1857
1857
|
var colours_1 = require_colours();
|
|
1858
1858
|
var RagStatus;
|
|
1859
1859
|
(function(RagStatus2) {
|
|
@@ -1941,6 +1941,13 @@ var require_enums = __commonJS({
|
|
|
1941
1941
|
AuthType2["ui"] = "ui";
|
|
1942
1942
|
AuthType2["api"] = "api";
|
|
1943
1943
|
})(AuthType || (exports2.AuthType = AuthType = {}));
|
|
1944
|
+
var LoginMethod;
|
|
1945
|
+
(function(LoginMethod2) {
|
|
1946
|
+
LoginMethod2["accessCode"] = "access_code";
|
|
1947
|
+
LoginMethod2["magicLink"] = "magic_link";
|
|
1948
|
+
LoginMethod2["microsoft"] = "microsoft";
|
|
1949
|
+
LoginMethod2["bypass"] = "bypass";
|
|
1950
|
+
})(LoginMethod || (exports2.LoginMethod = LoginMethod = {}));
|
|
1944
1951
|
var WeekDay;
|
|
1945
1952
|
(function(WeekDay2) {
|
|
1946
1953
|
WeekDay2["Monday"] = "1";
|
|
@@ -9637,7 +9644,7 @@ var require_oee2 = __commonJS({
|
|
|
9637
9644
|
const productionScheduleLossMs = utils.subtract(scheduleMs, productionScheduleMs);
|
|
9638
9645
|
const productionScheduleRatio = utils.ratio(productionScheduleMs, productionScheduleLossMs);
|
|
9639
9646
|
const availabilityLossMs = utils.add(stationWindow.downtimeMs);
|
|
9640
|
-
const availabilityMs = utils.subtract(productionScheduleMs - availabilityLossMs);
|
|
9647
|
+
const availabilityMs = Math.max(0, utils.subtract(productionScheduleMs - availabilityLossMs));
|
|
9641
9648
|
const availabilityRatio = utils.ratio(availabilityMs, availabilityLossMs);
|
|
9642
9649
|
const performanceMs = utils.add(stationWindow.productionMs);
|
|
9643
9650
|
const performanceLossMs = Math.max(0, utils.subtract(availabilityMs - performanceMs));
|
|
@@ -11210,7 +11217,9 @@ var require_auth2 = __commonJS({
|
|
|
11210
11217
|
userRole: zod_1.z.nativeEnum(enums_1.UserRole),
|
|
11211
11218
|
accountId: zod_1.z.string(),
|
|
11212
11219
|
role: zod_1.z.nativeEnum(enums_1.AccountRole).optional(),
|
|
11213
|
-
type: zod_1.z.nativeEnum(enums_1.AuthType).optional()
|
|
11220
|
+
type: zod_1.z.nativeEnum(enums_1.AuthType).optional(),
|
|
11221
|
+
// Absent on sessions signed in before it was added; see resolveLoginMethod.
|
|
11222
|
+
loginMethod: zod_1.z.nativeEnum(enums_1.LoginMethod).optional()
|
|
11214
11223
|
});
|
|
11215
11224
|
}
|
|
11216
11225
|
});
|
package/package.json
CHANGED