@blueid/access-cli 0.10.0 → 0.14.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.
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.3.3 with parameter "target=js"
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
2
  // @generated from file BlueCore.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -132,7 +132,7 @@ export const BlueAccessType = proto2.makeEnum(
132
132
  {no: 2, name: "ExtendedTime"},
133
133
  {no: 3, name: "CustomTime"},
134
134
  {no: 4, name: "Toggle"},
135
- {no: 5, name: "CloseLock"},
135
+ {no: 5, name: "Close"},
136
136
  {no: 6, name: "NoAccess"},
137
137
  {no: 7, name: "NoAccessValidity"},
138
138
  {no: 8, name: "NoAccessBlacklisted"},
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.3.3 with parameter "target=js"
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
2
  // @generated from file BlueLock.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.3.3 with parameter "target=js"
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
2
  // @generated from file BlueSDK.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -65,7 +65,7 @@ export const BlueDeviceInfo = proto2.makeMessageType(
65
65
  { no: 1, name: "deviceType", kind: "enum", T: proto2.getEnumType(BlueDeviceType) },
66
66
  { no: 2, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
67
  { no: 3, name: "distanceMeters", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
68
- { no: 4, name: "manufacturerInfo", kind: "message", T: BlueBleManufacturerInfo },
68
+ { no: 4, name: "manufacturerInfo", kind: "message", T: BlueBleManufacturerInfo, opt: true },
69
69
  { no: 5, name: "bluetooth", kind: "message", T: BlueDeviceDetailsBluetooth, oneof: "details" },
70
70
  { no: 6, name: "uwb", kind: "message", T: BlueDeviceDetailsUWB, oneof: "details" },
71
71
  ],
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.3.3 with parameter "target=js"
1
+ // @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
2
2
  // @generated from file BlueSystem.proto (syntax proto2)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -112,12 +112,34 @@ export const BlueOssConfig = proto2.makeMessageType(
112
112
  export const BlueSystemConfig = proto2.makeMessageType(
113
113
  "BlueSystemConfig",
114
114
  () => [
115
- { no: 1, name: "base", kind: "message", T: BlueBaseConfig },
116
- { no: 2, name: "ble", kind: "message", T: BlueBleConfig },
117
- { no: 3, name: "online", kind: "message", T: BlueOnlineConfig },
118
- { no: 4, name: "access", kind: "message", T: BlueAccessConfig },
119
- { no: 5, name: "oss", kind: "message", T: BlueOssConfig },
120
- { no: 6, name: "lock", kind: "message", T: BlueLockConfig, opt: true },
115
+ { no: 1, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
116
+ { no: 2, name: "base", kind: "message", T: BlueBaseConfig },
117
+ { no: 3, name: "ble", kind: "message", T: BlueBleConfig },
118
+ { no: 4, name: "online", kind: "message", T: BlueOnlineConfig },
119
+ { no: 5, name: "access", kind: "message", T: BlueAccessConfig },
120
+ { no: 6, name: "oss", kind: "message", T: BlueOssConfig },
121
+ { no: 7, name: "lock", kind: "message", T: BlueLockConfig, opt: true },
122
+ ],
123
+ );
124
+
125
+ /**
126
+ * @generated from message BlueSystemTimeUnix
127
+ */
128
+ export const BlueSystemTimeUnix = proto2.makeMessageType(
129
+ "BlueSystemTimeUnix",
130
+ () => [
131
+ { no: 1, name: "epoch", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
132
+ ],
133
+ );
134
+
135
+ /**
136
+ * @generated from message BlueSystemUpdate
137
+ */
138
+ export const BlueSystemUpdate = proto2.makeMessageType(
139
+ "BlueSystemUpdate",
140
+ () => [
141
+ { no: 1, name: "config", kind: "message", T: BlueSystemConfig, opt: true },
142
+ { no: 2, name: "timeUnix", kind: "message", T: BlueSystemTimeUnix, opt: true },
121
143
  ],
122
144
  );
123
145
 
@@ -162,19 +184,20 @@ export const BlueSystemProvisioning = proto2.makeMessageType(
162
184
  export const BlueSystemStatus = proto2.makeMessageType(
163
185
  "BlueSystemStatus",
164
186
  () => [
165
- { no: 1, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
- { no: 2, name: "serialNumber", kind: "scalar", T: 9 /* ScalarType.STRING */ },
167
- { no: 3, name: "hardwareType", kind: "enum", T: proto2.getEnumType(BlueHardwareType) },
168
- { no: 4, name: "batteryLevel", kind: "enum", T: proto2.getEnumType(BlueBatteryLevel) },
169
- { no: 5, name: "applicationVersion", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
170
- { no: 6, name: "localTime", kind: "message", T: BlueLocalTimestamp },
171
- { no: 7, name: "settings", kind: "message", T: BlueSystemSettings },
172
- { no: 8, name: "blacklistEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
173
- { no: 9, name: "eventLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
174
- { no: 10, name: "eventLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
175
- { no: 11, name: "systemLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
176
- { no: 12, name: "systemLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
177
- { no: 13, name: "lock", kind: "message", T: BlueLockStatus, opt: true },
187
+ { no: 1, name: "configVersion", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
188
+ { no: 2, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
189
+ { no: 3, name: "serialNumber", kind: "scalar", T: 9 /* ScalarType.STRING */ },
190
+ { no: 4, name: "hardwareType", kind: "enum", T: proto2.getEnumType(BlueHardwareType) },
191
+ { no: 5, name: "batteryLevel", kind: "enum", T: proto2.getEnumType(BlueBatteryLevel) },
192
+ { no: 6, name: "applicationVersion", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
193
+ { no: 7, name: "localTime", kind: "message", T: BlueLocalTimestamp },
194
+ { no: 8, name: "settings", kind: "message", T: BlueSystemSettings },
195
+ { no: 9, name: "blacklistEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
196
+ { no: 10, name: "eventLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
197
+ { no: 11, name: "eventLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
198
+ { no: 12, name: "systemLogEntriesCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
199
+ { no: 13, name: "systemLogSequenceId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
200
+ { no: 14, name: "lock", kind: "message", T: BlueLockStatus, opt: true },
178
201
  ],
179
202
  );
180
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueid/access-cli",
3
- "version": "0.10.0",
3
+ "version": "0.14.0",
4
4
  "description": "BlueID Access CLI",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -8,6 +8,11 @@
8
8
  "blueidaccess": "./index.js"
9
9
  },
10
10
  "author": "BlueID GmbH",
11
+ "files": [
12
+ "lib",
13
+ "index.js",
14
+ "package.json"
15
+ ],
11
16
  "scripts": {
12
17
  "sync-proto": "sh syncproto.sh",
13
18
  "preinstall": "npm run sync-proto",
package/.eslintrc DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": ["airbnb", "prettier"],
3
- "plugins": ["prettier"],
4
- "rules": {
5
- "prettier/prettier": ["error"],
6
- "no-console": "off",
7
- "no-bitwise": "off",
8
- "import/extensions": "off"
9
- }
10
- }
package/.prettierrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "printWidth": 120,
4
- "semi": false,
5
- "tabWidth": 4,
6
- "useTabs": false
7
- }
package/syncproto.sh DELETED
@@ -1,3 +0,0 @@
1
- if [ -d "../src/proto/es" ]; then
2
- rsync -u ../src/proto/es/*_pb.js ./lib/proto/
3
- fi