@spiffcommerce/core 34.1.0-beta.687d4e89-1a38-5004-92ab-0c957e1c63b0 → 34.1.0-beta.7aa1a99d-0a8c-5121-9077-e86bd0250c3d
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15439,11 +15439,11 @@ class An {
|
|
|
15439
15439
|
const c = await (async () => {
|
|
15440
15440
|
let d = 0;
|
|
15441
15441
|
for (; d < 121; ) {
|
|
15442
|
-
if (d += 1, s.status === Vt.Failed || s.children.some((
|
|
15442
|
+
if (d += 1, s.status === Vt.Failed || s.children.some((A) => A.status === Vt.Failed))
|
|
15443
15443
|
return;
|
|
15444
15444
|
if (s.status === Vt.Completed)
|
|
15445
15445
|
return s;
|
|
15446
|
-
await new Promise((
|
|
15446
|
+
await new Promise((A) => setTimeout(A, 300));
|
|
15447
15447
|
const u = await S.getShadowGraphqlClient().mutate({
|
|
15448
15448
|
mutation: Os,
|
|
15449
15449
|
variables: {
|
|
@@ -15455,11 +15455,12 @@ class An {
|
|
|
15455
15455
|
console.error("failed to refetch jobs", u.errors);
|
|
15456
15456
|
return;
|
|
15457
15457
|
}
|
|
15458
|
-
s = u.data.jobs[0]
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15458
|
+
if (s = u.data.jobs[0], a) {
|
|
15459
|
+
let A = 0, h = 0;
|
|
15460
|
+
for (const g of s.children)
|
|
15461
|
+
g.status === Vt.Completed && (A += g.data.transactionCount), h += g.data.transactionCount;
|
|
15462
|
+
a(A, h);
|
|
15463
|
+
}
|
|
15463
15464
|
}
|
|
15464
15465
|
})();
|
|
15465
15466
|
if (c) {
|
|
@@ -16291,7 +16292,7 @@ class Gd {
|
|
|
16291
16292
|
} catch (a) {
|
|
16292
16293
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16293
16294
|
}
|
|
16294
|
-
}, this.options = t, this.options.applicationKey && lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.1.0-beta.
|
|
16295
|
+
}, this.options = t, this.options.applicationKey && lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.1.0-beta.687d4e89-1a38-5004-92ab-0c957e1c63b0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16295
16296
|
}
|
|
16296
16297
|
configure(t) {
|
|
16297
16298
|
pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && dr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|