@qonto/embed-sdk 0.55.0 → 0.56.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 +1 @@
1
- {"version":3,"file":"sca.d.ts","sourceRoot":"","sources":["../../src/sca/sca.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,EAEtB,SAAS,EACV,MAAM,gBAAgB,CAAC;AAGxB,wBAAuB,cAAc,CAAC,EACpC,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,CAAC,sBAAsB,CAAC,mEA6BnC"}
1
+ {"version":3,"file":"sca.d.ts","sourceRoot":"","sources":["../../src/sca/sca.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,EAEtB,SAAS,EACV,MAAM,gBAAgB,CAAC;AAGxB,wBAAuB,cAAc,CAAC,EACpC,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,CAAC,sBAAsB,CAAC,mEAiCnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sca.d.ts","sourceRoot":"","sources":["../../../src/sca/sca.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,EAEtB,SAAS,EACV,MAAM,gBAAgB,CAAC;AAGxB,wBAAuB,cAAc,CAAC,EACpC,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,CAAC,sBAAsB,CAAC,mEA6BnC"}
1
+ {"version":3,"file":"sca.d.ts","sourceRoot":"","sources":["../../../src/sca/sca.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,sBAAsB,EAEtB,SAAS,EACV,MAAM,gBAAgB,CAAC;AAGxB,wBAAuB,cAAc,CAAC,EACpC,WAAW,EACX,iBAAiB,GAClB,EAAE,SAAS,CAAC,sBAAsB,CAAC,mEAiCnC"}
@@ -1 +1 @@
1
- import{callProxyFunction as o}from"../common/common.utils.js";import{prepareScaPollingCall as s}from"./sca.api.js";import{SCA_POLLING_RESULTS as t}from"./sca.constants.js";import{serializeScaPollingResponse as e}from"./sca.serializer.js";import{InvalidParametersError as n}from"../errors/InvalidParametersError.js";async function*i({scaSettings:i,operationSettings:r}){if(!i||!i.scaSessionToken)throw new n("scaSettings with scaSessionToken is required to poll SCA session.");if(!r?.proxyRequestFunction)throw new n("operationSettings with proxyRequestFunction is required to poll SCA session.");const a=s({scaSessionToken:i.scaSessionToken,stagingToken:r.stagingToken});let c;do{c&&(yield c);const s=await o({proxyFunction:r.proxyRequestFunction,networkCallDescriptor:a});c=e(s.body)}while(c.result===t.WAITING);return c}export{i as pollScaSession};
1
+ import{callProxyFunction as o}from"../common/common.utils.js";import{prepareScaPollingCall as s}from"./sca.api.js";import{SCA_POLLING_RESULTS as r}from"./sca.constants.js";import{serializeScaPollingResponse as t}from"./sca.serializer.js";import{InvalidParametersError as i}from"../errors/InvalidParametersError.js";async function*n({scaSettings:n,operationSettings:e}){if(!n||!n.scaSessionToken)throw new i("scaSettings with scaSessionToken is required to poll SCA session.");if(!e?.proxyRequestFunction&&!e?.proxyEndpointDescriptor)throw new i("operationSettings with either proxyRequestFunction or proxyEndpointDescriptor is required to poll SCA session.");const p=s({scaSessionToken:n.scaSessionToken,stagingToken:e.stagingToken});let c;do{c&&(yield c);const s=await o({proxyFunction:e.proxyRequestFunction,proxyEndpointDescriptor:e.proxyEndpointDescriptor,networkCallDescriptor:p});c=t(s.body)}while(c.result===r.WAITING);return c}export{n as pollScaSession};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qonto/embed-sdk",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "Library to embed Qonto features in your application",
5
5
  "type": "module",
6
6
  "exports": {