@it-enterprise/digital-signature 1.2.10 → 1.2.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@it-enterprise/digital-signature",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "digital signature",
5
5
  "private": false,
6
6
  "main": "src/index.js",
@@ -484,9 +484,12 @@ export default class DigitalSignature {
484
484
  * Добавить коллбэк идентификации для облачных провайдеров
485
485
  * @param {authenticationCallback} event - Коллбэк. Вызывается при запросе на подписание.
486
486
  */
487
- async addConfirmKSPOperationEventListener(event) {
488
- await this._euSignFile.AddEventListener(EndUserConstants.EndUserEventType.ConfirmKSPOperation, event);
489
- }
487
+ async addConfirmKSPOperationEventListener(event) {
488
+ await this._euSignFile.AddEventListener(EndUserConstants.EndUserEventType.ConfirmKSPOperation, function(data) {
489
+ data.qrCode = "data:image/bmp;base64," + data.qrCode;
490
+ event(data);
491
+ });
492
+ }
490
493
 
491
494
  /**
492
495
  * Получить список облачных провайдеров
@@ -516,6 +519,13 @@ export default class DigitalSignature {
516
519
  this._readedKey = null;
517
520
  }
518
521
 
522
+ /**
523
+ * Остановить операцио с облачным ключом
524
+ */
525
+ async resetKSPOperation() {
526
+ await this._euSignFile.ResetOperationKSP();
527
+ }
528
+
519
529
  /**
520
530
  * Получить список центров сертификации
521
531
  * @returns {Promise<Array<CASettings>>}
package/src/Models.js CHANGED
@@ -437,6 +437,7 @@ export function getDefaultKSPs() {
437
437
  depositsign.name = "DepositSign";
438
438
  depositsign.ksp = EndUserConstants.EU_KSP_PB;
439
439
  depositsign.address = "https://depositsign.com/api/v1/it-enterprise/sign-server";
440
+ depositsign.clientIdPrefix = "";
440
441
  depositsign.directAccess = true;
441
442
  depositsign.needQRCode = false;
442
443
 
@@ -466,6 +467,7 @@ export function getDefaultKSPs() {
466
467
  vchasno.name = "Вчасно - хмарний підпис";
467
468
  vchasno.ksp = EndUserConstants.EU_KSP_PB;
468
469
  vchasno.address = "https://cs.vchasno.ua/ss/";
470
+ vchasno.clientIdPrefix = "";
469
471
  vchasno.directAccess = false;
470
472
  vchasno.needQRCode = false;
471
473