@spiffcommerce/core 26.29.1-beta.40a15d47-8798-5aca-8bce-ebfec12b1ad9 → 26.29.2-beta.8054c82c-e9b3-5a87-b442-76be54891176

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.mjs CHANGED
@@ -10119,20 +10119,30 @@ class io {
10119
10119
  async updateRecipient(t, e, a, n, i, s, o, l) {
10120
10120
  var c, d, A, u;
10121
10121
  if (this.transaction.recipient)
10122
- await b.getShadowGraphqlClient().mutate({
10122
+ this.transaction.recipient = {
10123
+ id: this.transaction.recipient.id,
10124
+ firstName: t || this.transaction.recipient.firstName,
10125
+ lastName: e || this.transaction.recipient.lastName,
10126
+ address: a || this.transaction.recipient.address,
10127
+ suburb: n || this.transaction.recipient.suburb,
10128
+ state: i || this.transaction.recipient.state,
10129
+ email: s || this.transaction.recipient.email,
10130
+ postalCode: o || this.transaction.recipient.postalCode,
10131
+ country: l || this.transaction.recipient.country
10132
+ }, console.log(`CORE DEBUG: updating recipient to manager: ${JSON.stringify(this.transaction.recipient, null, 2)}`), await b.getShadowGraphqlClient().mutate({
10123
10133
  mutation: ao,
10124
10134
  errorPolicy: "all",
10125
10135
  fetchPolicy: "no-cache",
10126
10136
  variables: {
10127
10137
  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
10138
+ firstName: t || this.transaction.recipient.firstName,
10139
+ lastName: e || this.transaction.recipient.lastName,
10140
+ address: a || this.transaction.recipient.address,
10141
+ suburb: n || this.transaction.recipient.suburb,
10142
+ state: i || this.transaction.recipient.state,
10143
+ email: s || this.transaction.recipient.email,
10144
+ postalCode: o || this.transaction.recipient.postalCode,
10145
+ country: l || this.transaction.recipient.country
10136
10146
  }
10137
10147
  });
10138
10148
  else {
@@ -10151,7 +10161,17 @@ class io {
10151
10161
  country: l
10152
10162
  }
10153
10163
  });
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({
10164
+ this.transaction.recipient = {
10165
+ id: (d = (c = h == null ? void 0 : h.data) == null ? void 0 : c.recipientCreate) == null ? void 0 : d.id,
10166
+ firstName: t,
10167
+ lastName: e,
10168
+ address: a,
10169
+ suburb: n,
10170
+ state: i,
10171
+ email: s,
10172
+ postalCode: o,
10173
+ country: l
10174
+ }, console.log(`CORE DEBUG: saving recipient to manager: ${JSON.stringify(this.transaction.recipient, null, 2)}`), await b.getShadowGraphqlClient().mutate({
10155
10175
  mutation: no,
10156
10176
  errorPolicy: "all",
10157
10177
  fetchPolicy: "no-cache",
@@ -15479,7 +15499,7 @@ class Lc {
15479
15499
  } catch (a) {
15480
15500
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15481
15501
  }
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("------------------------");
15502
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.29.2-beta.a1b1ab5a-9c7e-5d91-921c-d0b1c4be0ff8"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15483
15503
  }
15484
15504
  configure(t) {
15485
15505
  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();