@ray-js/lock-sdk 1.1.3-beta.1 → 1.1.3-beta.3
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/lib/temporary.js +23 -22
- package/lib/unlock-method.js +13 -11
- package/package.json +1 -1
package/lib/temporary.js
CHANGED
|
@@ -332,28 +332,29 @@ export const getTempEffectiveList = async () => {
|
|
|
332
332
|
});
|
|
333
333
|
return res.map((item) => {
|
|
334
334
|
const type = passwordTypeMap[`${item.opModeType}-${item.opModeSubType}`] || "custom";
|
|
335
|
-
let status = "
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
335
|
+
let status = "synchronizing";
|
|
336
|
+
switch (item.phase) {
|
|
337
|
+
case 1:
|
|
338
|
+
status = "effective";
|
|
339
|
+
if (item.effective === 1) {
|
|
340
|
+
status = "toBeEffective";
|
|
341
|
+
}
|
|
342
|
+
break;
|
|
343
|
+
case 2:
|
|
344
|
+
status = "synchronizing";
|
|
345
|
+
break;
|
|
346
|
+
case 3:
|
|
347
|
+
status = "frozen";
|
|
348
|
+
break;
|
|
349
|
+
case 4:
|
|
350
|
+
status = "freezing";
|
|
351
|
+
break;
|
|
352
|
+
case 9:
|
|
353
|
+
status = "toBeDeleted";
|
|
354
|
+
break;
|
|
355
|
+
case 10:
|
|
356
|
+
status = "synchronizing";
|
|
357
|
+
break;
|
|
357
358
|
}
|
|
358
359
|
const effectiveConfig = {
|
|
359
360
|
effectiveDate: item.effectiveTime,
|
package/lib/unlock-method.js
CHANGED
|
@@ -399,6 +399,19 @@ export const startAddUnlockMethod = async (params) => {
|
|
|
399
399
|
if (result.sn !== sn) {
|
|
400
400
|
console.warn("AddPassword: An invalid sn may have been reported");
|
|
401
401
|
}
|
|
402
|
+
if (result.stage === 0) {
|
|
403
|
+
monitoringAddReport({
|
|
404
|
+
timeout: params.timeout,
|
|
405
|
+
unlockMethodConfig,
|
|
406
|
+
total: res.total,
|
|
407
|
+
dpCode: addDpCode,
|
|
408
|
+
dpMap: addDpReportMap,
|
|
409
|
+
sn,
|
|
410
|
+
lockUserId,
|
|
411
|
+
userId: params.userId,
|
|
412
|
+
unlockDpId: dpId,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
402
415
|
return result;
|
|
403
416
|
}
|
|
404
417
|
return false;
|
|
@@ -408,17 +421,6 @@ export const startAddUnlockMethod = async (params) => {
|
|
|
408
421
|
},
|
|
409
422
|
});
|
|
410
423
|
if (res.stage === 0) {
|
|
411
|
-
monitoringAddReport({
|
|
412
|
-
timeout: params.timeout,
|
|
413
|
-
unlockMethodConfig,
|
|
414
|
-
total: res.total,
|
|
415
|
-
dpCode: addDpCode,
|
|
416
|
-
dpMap: addDpReportMap,
|
|
417
|
-
sn,
|
|
418
|
-
lockUserId,
|
|
419
|
-
userId: params.userId,
|
|
420
|
-
unlockDpId: dpId,
|
|
421
|
-
});
|
|
422
424
|
return { total: res.total };
|
|
423
425
|
}
|
|
424
426
|
if (res.stage === 0xfd) {
|