@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.
package/dist/sca/sca.d.ts.map
CHANGED
|
@@ -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,
|
|
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,
|
|
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"}
|
package/dist/src/sca/sca.js
CHANGED
|
@@ -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
|
|
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};
|