@spiffcommerce/core 26.29.1 → 26.29.2-beta.a1b1ab5a-9c7e-5d91-921c-d0b1c4be0ff8
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 +23 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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,
|
|
@@ -10125,18 +10125,18 @@ class io {
|
|
|
10125
10125
|
fetchPolicy: "no-cache",
|
|
10126
10126
|
variables: {
|
|
10127
10127
|
id: this.transaction.recipient.id,
|
|
10128
|
-
firstName: t,
|
|
10129
|
-
lastName: e,
|
|
10130
|
-
address: a,
|
|
10131
|
-
suburb: n,
|
|
10132
|
-
state: i,
|
|
10133
|
-
email: s,
|
|
10134
|
-
postalCode: o,
|
|
10135
|
-
country: l
|
|
10128
|
+
firstName: t || this.transaction.recipient.firstName,
|
|
10129
|
+
lastName: e || this.transaction.recipient.lastName,
|
|
10130
|
+
address: a || this.transaction.recipient.address,
|
|
10131
|
+
suburb: n || this.transaction.recipient.suburb,
|
|
10132
|
+
state: i || this.transaction.recipient.state,
|
|
10133
|
+
email: s || this.transaction.recipient.email,
|
|
10134
|
+
postalCode: o || this.transaction.recipient.postalCode,
|
|
10135
|
+
country: l || this.transaction.recipient.country
|
|
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,23 @@ class io {
|
|
|
10151
10151
|
country: l
|
|
10152
10152
|
}
|
|
10153
10153
|
});
|
|
10154
|
-
|
|
10154
|
+
this.transaction.recipient = {
|
|
10155
|
+
id: (d = (c = h == null ? void 0 : h.data) == null ? void 0 : c.recipientCreate) == null ? void 0 : d.id,
|
|
10156
|
+
firstName: t,
|
|
10157
|
+
lastName: e,
|
|
10158
|
+
address: a,
|
|
10159
|
+
suburb: n,
|
|
10160
|
+
state: i,
|
|
10161
|
+
email: s,
|
|
10162
|
+
postalCode: o,
|
|
10163
|
+
country: l
|
|
10164
|
+
}, await b.getShadowGraphqlClient().mutate({
|
|
10155
10165
|
mutation: no,
|
|
10156
10166
|
errorPolicy: "all",
|
|
10157
10167
|
fetchPolicy: "no-cache",
|
|
10158
10168
|
variables: {
|
|
10159
10169
|
id: this.transaction.id,
|
|
10160
|
-
recipientId: (
|
|
10170
|
+
recipientId: (u = (A = h.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id
|
|
10161
10171
|
}
|
|
10162
10172
|
});
|
|
10163
10173
|
}
|
|
@@ -15479,7 +15489,7 @@ class Lc {
|
|
|
15479
15489
|
} catch (a) {
|
|
15480
15490
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15481
15491
|
}
|
|
15482
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.
|
|
15492
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15483
15493
|
}
|
|
15484
15494
|
configure(t) {
|
|
15485
15495
|
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();
|