@spiffcommerce/core 26.29.0 → 26.29.1-beta.40a15d47-8798-5aca-8bce-ebfec12b1ad9
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/CHANGELOG.md +7 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -343,7 +343,7 @@ class Qr {
|
|
|
343
343
|
}
|
|
344
344
|
} catch {
|
|
345
345
|
}
|
|
346
|
-
return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), g && (l["X-Application-Key"] = g), f && (l.bundleOwnerId = f), {
|
|
346
|
+
return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), g && (l["X-Application-Key"] = g), f && (l.bundleOwnerId = f), l["Allow-Moonlight-Redirect"] = "true", {
|
|
347
347
|
headers: l
|
|
348
348
|
};
|
|
349
349
|
}), a = sr(({ operation: i, graphQLErrors: s, networkError: o }) => {
|
|
@@ -10117,7 +10117,7 @@ class io {
|
|
|
10117
10117
|
);
|
|
10118
10118
|
}
|
|
10119
10119
|
async updateRecipient(t, e, a, n, i, s, o, l) {
|
|
10120
|
-
var c, d;
|
|
10120
|
+
var c, d, A, u;
|
|
10121
10121
|
if (this.transaction.recipient)
|
|
10122
10122
|
await b.getShadowGraphqlClient().mutate({
|
|
10123
10123
|
mutation: ao,
|
|
@@ -10136,7 +10136,7 @@ class io {
|
|
|
10136
10136
|
}
|
|
10137
10137
|
});
|
|
10138
10138
|
else {
|
|
10139
|
-
const
|
|
10139
|
+
const h = await b.getShadowGraphqlClient().mutate({
|
|
10140
10140
|
mutation: eo,
|
|
10141
10141
|
errorPolicy: "all",
|
|
10142
10142
|
fetchPolicy: "no-cache",
|
|
@@ -10151,13 +10151,13 @@ class io {
|
|
|
10151
10151
|
country: l
|
|
10152
10152
|
}
|
|
10153
10153
|
});
|
|
10154
|
-
await b.getShadowGraphqlClient().mutate({
|
|
10154
|
+
this.transaction.recipient = { id: (d = (c = h == null ? void 0 : h.data) == null ? void 0 : c.recipientCreate) == null ? void 0 : d.id }, await b.getShadowGraphqlClient().mutate({
|
|
10155
10155
|
mutation: no,
|
|
10156
10156
|
errorPolicy: "all",
|
|
10157
10157
|
fetchPolicy: "no-cache",
|
|
10158
10158
|
variables: {
|
|
10159
10159
|
id: this.transaction.id,
|
|
10160
|
-
recipientId: (
|
|
10160
|
+
recipientId: (u = (A = h.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id
|
|
10161
10161
|
}
|
|
10162
10162
|
});
|
|
10163
10163
|
}
|
|
@@ -15479,7 +15479,7 @@ class Lc {
|
|
|
15479
15479
|
} catch (a) {
|
|
15480
15480
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15481
15481
|
}
|
|
15482
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.
|
|
15482
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15483
15483
|
}
|
|
15484
15484
|
configure(t) {
|
|
15485
15485
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|