@spiffcommerce/core 26.30.2-beta.daf05b76-ca9e-5217-8ecb-da096048e543 → 26.31.0-beta.53dcf693-b89c-523e-8efe-63bbda00da37

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
@@ -4133,6 +4133,7 @@ const _ = new di(), vn = y`
4133
4133
  email
4134
4134
  postalCode
4135
4135
  country
4136
+ mobile
4136
4137
  }
4137
4138
  product {
4138
4139
  id
@@ -10072,6 +10073,7 @@ const ks = y`
10072
10073
  $email: String
10073
10074
  $postalCode: String
10074
10075
  $country: String
10076
+ $mobile: String
10075
10077
  ) {
10076
10078
  recipientCreate(
10077
10079
  firstName: $firstName
@@ -10082,6 +10084,7 @@ const ks = y`
10082
10084
  email: $email
10083
10085
  postalCode: $postalCode
10084
10086
  country: $country
10087
+ mobile: $mobile
10085
10088
  ) {
10086
10089
  id
10087
10090
  }
@@ -10097,6 +10100,7 @@ const ks = y`
10097
10100
  $email: String
10098
10101
  $postalCode: String
10099
10102
  $country: String
10103
+ $mobile: String
10100
10104
  ) {
10101
10105
  recipientUpdate(
10102
10106
  id: $id
@@ -10108,6 +10112,7 @@ const ks = y`
10108
10112
  email: $email
10109
10113
  postalCode: $postalCode
10110
10114
  country: $country
10115
+ mobile: $mobile
10111
10116
  ) {
10112
10117
  id
10113
10118
  }
@@ -10155,9 +10160,9 @@ class so {
10155
10160
  })
10156
10161
  );
10157
10162
  }
10158
- async updateRecipient(t, e, a, n, i, s, o, l) {
10159
- var c, d, A, u, h;
10160
- if ((c = this.transaction.recipient) != null && c.id)
10163
+ async updateRecipient(t, e, a, n, i, s, o, l, c) {
10164
+ var d, A, u, h, m;
10165
+ if ((d = this.transaction.recipient) != null && d.id)
10161
10166
  this.transaction.recipient = {
10162
10167
  id: this.transaction.recipient.id,
10163
10168
  firstName: t || this.transaction.recipient.firstName,
@@ -10167,7 +10172,8 @@ class so {
10167
10172
  state: i || this.transaction.recipient.state,
10168
10173
  email: s || this.transaction.recipient.email,
10169
10174
  postalCode: o || this.transaction.recipient.postalCode,
10170
- country: l || this.transaction.recipient.country
10175
+ country: l || this.transaction.recipient.country,
10176
+ mobile: c || this.transaction.recipient.mobile
10171
10177
  }, await this.graphQlClient().mutate({
10172
10178
  mutation: no,
10173
10179
  errorPolicy: "all",
@@ -10181,11 +10187,12 @@ class so {
10181
10187
  state: i || this.transaction.recipient.state,
10182
10188
  email: s || this.transaction.recipient.email,
10183
10189
  postalCode: o || this.transaction.recipient.postalCode,
10184
- country: l || this.transaction.recipient.country
10190
+ country: l || this.transaction.recipient.country,
10191
+ mobile: c || this.transaction.recipient.mobile
10185
10192
  }
10186
10193
  });
10187
10194
  else {
10188
- const m = await this.graphQlClient().mutate({
10195
+ const g = await this.graphQlClient().mutate({
10189
10196
  mutation: ao,
10190
10197
  errorPolicy: "all",
10191
10198
  fetchPolicy: "no-cache",
@@ -10197,11 +10204,12 @@ class so {
10197
10204
  state: i,
10198
10205
  email: s,
10199
10206
  postalCode: o,
10200
- country: l
10207
+ country: l,
10208
+ mobile: c
10201
10209
  }
10202
10210
  });
10203
10211
  this.transaction.recipient = {
10204
- id: (A = (d = m == null ? void 0 : m.data) == null ? void 0 : d.recipientCreate) == null ? void 0 : A.id,
10212
+ id: (u = (A = g == null ? void 0 : g.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id,
10205
10213
  firstName: t,
10206
10214
  lastName: e,
10207
10215
  address: a,
@@ -10209,14 +10217,15 @@ class so {
10209
10217
  state: i,
10210
10218
  email: s,
10211
10219
  postalCode: o,
10212
- country: l
10220
+ country: l,
10221
+ mobile: c
10213
10222
  }, await this.graphQlClient().mutate({
10214
10223
  mutation: ro,
10215
10224
  errorPolicy: "all",
10216
10225
  fetchPolicy: "no-cache",
10217
10226
  variables: {
10218
10227
  id: this.transaction.id,
10219
- recipientId: (h = (u = m.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id
10228
+ recipientId: (m = (h = g.data) == null ? void 0 : h.recipientCreate) == null ? void 0 : m.id
10220
10229
  },
10221
10230
  context: {
10222
10231
  transactionOwnerId: this.transaction.transactionOwnerId
@@ -15567,7 +15576,7 @@ class Gc {
15567
15576
  } catch (a) {
15568
15577
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15569
15578
  }
15570
- }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.30.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15579
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.31.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15571
15580
  }
15572
15581
  configure(t) {
15573
15582
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Mr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -16475,7 +16484,7 @@ class Dl {
16475
16484
  }
16476
16485
  }
16477
16486
  class Yc {
16478
- updateRecipient(t, e, a, n, i, s, o, l) {
16487
+ updateRecipient(t, e, a, n, i, s, o, l, c) {
16479
16488
  throw new Error("Method not implemented.");
16480
16489
  }
16481
16490
  approveTransaction(t) {