@apocaliss92/nodelink-js 0.4.16 → 0.4.17

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.
@@ -5101,11 +5101,20 @@ async function captureModelFixtures(params) {
5101
5101
  return void 0;
5102
5102
  }
5103
5103
  }
5104
- const info = await capture(
5104
+ const channelInfo = await capture(
5105
5105
  "getInfo",
5106
- () => api.getInfo(channel),
5107
- (v) => writeJsonSafe(path2.join(outDir, "device-info.json"), v)
5106
+ () => api.getInfo(channel)
5108
5107
  );
5108
+ const baseInfo = await capture(
5109
+ "getInfoBase",
5110
+ () => api.getInfo()
5111
+ );
5112
+ const mergedInfo = { ...baseInfo ?? {} };
5113
+ for (const [k, v] of Object.entries(channelInfo ?? {})) {
5114
+ if (v !== void 0 && v !== null && v !== "") mergedInfo[k] = v;
5115
+ }
5116
+ const info = Object.keys(mergedInfo).length > 0 ? mergedInfo : void 0;
5117
+ if (info) writeJsonSafe(path2.join(outDir, "device-info.json"), info);
5109
5118
  const support = await capture(
5110
5119
  "getSupportInfo",
5111
5120
  () => api.getSupportInfo(),
@@ -5221,6 +5230,76 @@ async function captureModelFixtures(params) {
5221
5230
  () => api.getDualLensChannelInfo(channel),
5222
5231
  (v) => writeJsonSafe(path2.join(outDir, "dual-lens-info.json"), v)
5223
5232
  );
5233
+ await capture(
5234
+ "getEncOptions",
5235
+ () => api.getEncOptions(channel),
5236
+ (v) => writeJsonSafe(path2.join(outDir, "enc-options.json"), v)
5237
+ );
5238
+ await capture(
5239
+ "getEnc",
5240
+ () => api.getEnc(channel),
5241
+ (v) => writeJsonSafe(path2.join(outDir, "enc.json"), v)
5242
+ );
5243
+ await capture(
5244
+ "getStreamInfoList",
5245
+ () => api.getStreamInfoList(channel),
5246
+ (v) => writeJsonSafe(path2.join(outDir, "stream-info-list.json"), v)
5247
+ );
5248
+ await capture(
5249
+ "getAutoFocus",
5250
+ () => api.getAutoFocus(channel),
5251
+ (v) => writeJsonSafe(path2.join(outDir, "autofocus.json"), v)
5252
+ );
5253
+ await capture(
5254
+ "getLedState",
5255
+ () => api.getLedState(channel),
5256
+ (v) => writeJsonSafe(path2.join(outDir, "led-state.json"), v)
5257
+ );
5258
+ await capture(
5259
+ "getIrLights",
5260
+ () => api.getIrLights(channel),
5261
+ (v) => writeJsonSafe(path2.join(outDir, "ir-lights.json"), v)
5262
+ );
5263
+ await capture(
5264
+ "getImage",
5265
+ () => api.getImage(channel),
5266
+ (v) => writeJsonSafe(path2.join(outDir, "image.json"), v)
5267
+ );
5268
+ await capture(
5269
+ "getIsp",
5270
+ () => api.getIsp(channel),
5271
+ (v) => writeJsonSafe(path2.join(outDir, "isp.json"), v)
5272
+ );
5273
+ await capture(
5274
+ "getDayNightThreshold",
5275
+ () => api.getDayNightThreshold(channel),
5276
+ (v) => writeJsonSafe(path2.join(outDir, "day-night-threshold.json"), v)
5277
+ );
5278
+ await capture(
5279
+ "getMask",
5280
+ () => api.getMask(channel),
5281
+ (v) => writeJsonSafe(path2.join(outDir, "mask.json"), v)
5282
+ );
5283
+ await capture(
5284
+ "getAudioCfg",
5285
+ () => api.getAudioCfg(channel),
5286
+ (v) => writeJsonSafe(path2.join(outDir, "audio-cfg.json"), v)
5287
+ );
5288
+ await capture(
5289
+ "getOsdDatetime",
5290
+ () => api.getOsdDatetime(channel),
5291
+ (v) => writeJsonSafe(path2.join(outDir, "osd-datetime.json"), v)
5292
+ );
5293
+ await capture(
5294
+ "getPtzPosition",
5295
+ () => api.getPtzPosition(channel),
5296
+ (v) => writeJsonSafe(path2.join(outDir, "ptz-position.json"), v)
5297
+ );
5298
+ await capture(
5299
+ "getZoomFocus",
5300
+ () => api.getZoomFocus(channel),
5301
+ (v) => writeJsonSafe(path2.join(outDir, "zoom-focus.json"), v)
5302
+ );
5224
5303
  if (!params.skipStreamCombinationTest) await capture("streamCombinationTest", async () => {
5225
5304
  let dualLensInfo;
5226
5305
  try {
@@ -5438,4 +5517,4 @@ export {
5438
5517
  parseRecordingFileName,
5439
5518
  ReolinkCgiApi
5440
5519
  };
5441
- //# sourceMappingURL=chunk-2JNXKT3C.js.map
5520
+ //# sourceMappingURL=chunk-S2UTGNFN.js.map