@blueid/access-proto 12.26.0 → 12.30.0
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/BlueCore.proto +39 -10
- package/BlueSDK.proto +0 -7
- package/BlueSystem.proto +1 -15
- package/cjs/BlueCore_pb.d.ts +178 -1
- package/cjs/BlueCore_pb.js +69 -0
- package/cjs/BlueSDK_pb.d.ts +0 -26
- package/cjs/BlueSDK_pb.js +1 -10
- package/cjs/BlueSystem_pb.d.ts +0 -39
- package/cjs/BlueSystem_pb.js +2 -14
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -1
- package/es/BlueCore_pb.d.ts +178 -1
- package/es/BlueCore_pb.js +67 -0
- package/es/BlueSDK_pb.d.ts +0 -26
- package/es/BlueSDK_pb.js +0 -12
- package/es/BlueSystem_pb.d.ts +0 -39
- package/es/BlueSystem_pb.js +0 -15
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/nanopb/BlueCore.pb.c +20 -2
- package/nanopb/BlueCore.pb.h +125 -4
- package/nanopb/BlueSDK.pb.c +0 -1
- package/nanopb/BlueSDK.pb.h +3 -16
- package/nanopb/BlueSystem.pb.c +0 -1
- package/nanopb/BlueSystem.pb.h +12 -57
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +851 -361
- package/swift/BlueLock.pb.swift +12 -12
- package/swift/BlueSDK.pb.swift +301 -332
- package/swift/BlueSystem.pb.swift +154 -198
- package/BlueNetworkCore.proto +0 -122
- package/cjs/BlueNetworkCore_pb.d.ts +0 -591
- package/cjs/BlueNetworkCore_pb.js +0 -234
- package/es/BlueNetworkCore_pb.d.ts +0 -591
- package/es/BlueNetworkCore_pb.js +0 -215
- package/nanopb/BlueNetworkCore.pb.c +0 -63
- package/nanopb/BlueNetworkCore.pb.h +0 -409
- package/swift/BlueNetworkCore.pb.swift +0 -1700
package/swift/BlueLock.pb.swift
CHANGED
|
@@ -43,41 +43,41 @@ public struct BlueLockConfig: Sendable {
|
|
|
43
43
|
/// If set to true then the lock opens by schedule only after it was first
|
|
44
44
|
/// opened by an authenticated user and is within any of the open schedules
|
|
45
45
|
public var openScheduleByUser: Bool {
|
|
46
|
-
get {
|
|
46
|
+
get {_openScheduleByUser ?? false}
|
|
47
47
|
set {_openScheduleByUser = newValue}
|
|
48
48
|
}
|
|
49
49
|
/// Returns true if `openScheduleByUser` has been explicitly set.
|
|
50
|
-
public var hasOpenScheduleByUser: Bool {
|
|
50
|
+
public var hasOpenScheduleByUser: Bool {self._openScheduleByUser != nil}
|
|
51
51
|
/// Clears the value of `openScheduleByUser`. Subsequent reads from it will return its default value.
|
|
52
52
|
public mutating func clearOpenScheduleByUser() {self._openScheduleByUser = nil}
|
|
53
53
|
|
|
54
54
|
/// If set keeps the lock closed on federal vacation days
|
|
55
55
|
public var keepClosedOnHolidays: Bool {
|
|
56
|
-
get {
|
|
56
|
+
get {_keepClosedOnHolidays ?? false}
|
|
57
57
|
set {_keepClosedOnHolidays = newValue}
|
|
58
58
|
}
|
|
59
59
|
/// Returns true if `keepClosedOnHolidays` has been explicitly set.
|
|
60
|
-
public var hasKeepClosedOnHolidays: Bool {
|
|
60
|
+
public var hasKeepClosedOnHolidays: Bool {self._keepClosedOnHolidays != nil}
|
|
61
61
|
/// Clears the value of `keepClosedOnHolidays`. Subsequent reads from it will return its default value.
|
|
62
62
|
public mutating func clearKeepClosedOnHolidays() {self._keepClosedOnHolidays = nil}
|
|
63
63
|
|
|
64
64
|
/// Default time in seconds to keep the lock open
|
|
65
65
|
public var defaultOpenTimeSec: UInt32 {
|
|
66
|
-
get {
|
|
66
|
+
get {_defaultOpenTimeSec ?? 5}
|
|
67
67
|
set {_defaultOpenTimeSec = newValue}
|
|
68
68
|
}
|
|
69
69
|
/// Returns true if `defaultOpenTimeSec` has been explicitly set.
|
|
70
|
-
public var hasDefaultOpenTimeSec: Bool {
|
|
70
|
+
public var hasDefaultOpenTimeSec: Bool {self._defaultOpenTimeSec != nil}
|
|
71
71
|
/// Clears the value of `defaultOpenTimeSec`. Subsequent reads from it will return its default value.
|
|
72
72
|
public mutating func clearDefaultOpenTimeSec() {self._defaultOpenTimeSec = nil}
|
|
73
73
|
|
|
74
74
|
/// Extended time in seconds to keep the lock open
|
|
75
75
|
public var extendedOpenTimeSec: UInt32 {
|
|
76
|
-
get {
|
|
76
|
+
get {_extendedOpenTimeSec ?? 3600}
|
|
77
77
|
set {_extendedOpenTimeSec = newValue}
|
|
78
78
|
}
|
|
79
79
|
/// Returns true if `extendedOpenTimeSec` has been explicitly set.
|
|
80
|
-
public var hasExtendedOpenTimeSec: Bool {
|
|
80
|
+
public var hasExtendedOpenTimeSec: Bool {self._extendedOpenTimeSec != nil}
|
|
81
81
|
/// Clears the value of `extendedOpenTimeSec`. Subsequent reads from it will return its default value.
|
|
82
82
|
public mutating func clearExtendedOpenTimeSec() {self._extendedOpenTimeSec = nil}
|
|
83
83
|
|
|
@@ -97,20 +97,20 @@ public struct BlueLockStatus: Sendable {
|
|
|
97
97
|
// methods supported on all messages.
|
|
98
98
|
|
|
99
99
|
public var state: BlueLockState {
|
|
100
|
-
get {
|
|
100
|
+
get {_state ?? .unknownLockState}
|
|
101
101
|
set {_state = newValue}
|
|
102
102
|
}
|
|
103
103
|
/// Returns true if `state` has been explicitly set.
|
|
104
|
-
public var hasState: Bool {
|
|
104
|
+
public var hasState: Bool {self._state != nil}
|
|
105
105
|
/// Clears the value of `state`. Subsequent reads from it will return its default value.
|
|
106
106
|
public mutating func clearState() {self._state = nil}
|
|
107
107
|
|
|
108
108
|
public var openings: UInt32 {
|
|
109
|
-
get {
|
|
109
|
+
get {_openings ?? 0}
|
|
110
110
|
set {_openings = newValue}
|
|
111
111
|
}
|
|
112
112
|
/// Returns true if `openings` has been explicitly set.
|
|
113
|
-
public var hasOpenings: Bool {
|
|
113
|
+
public var hasOpenings: Bool {self._openings != nil}
|
|
114
114
|
/// Clears the value of `openings`. Subsequent reads from it will return its default value.
|
|
115
115
|
public mutating func clearOpenings() {self._openings = nil}
|
|
116
116
|
|