@spiffcommerce/core 26.35.0 → 26.36.0-beta.80b69a2a-ce5c-5801-b81c-abd5789da0dc

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
@@ -4134,6 +4134,7 @@ const _ = new ui(), En = y`
4134
4134
  postalCode
4135
4135
  country
4136
4136
  mobile
4137
+ company
4137
4138
  }
4138
4139
  product {
4139
4140
  id
@@ -10031,6 +10032,7 @@ const Ts = y`
10031
10032
  createdAt
10032
10033
  transactionsCount
10033
10034
  productsCount
10035
+ totalPriceSubunits
10034
10036
  quoteId
10035
10037
  orderId
10036
10038
  productCollection {
@@ -10079,6 +10081,7 @@ const Ts = y`
10079
10081
  $postalCode: String
10080
10082
  $country: String
10081
10083
  $mobile: String
10084
+ $company: String
10082
10085
  ) {
10083
10086
  recipientCreate(
10084
10087
  firstName: $firstName
@@ -10090,6 +10093,7 @@ const Ts = y`
10090
10093
  postalCode: $postalCode
10091
10094
  country: $country
10092
10095
  mobile: $mobile
10096
+ company: $company
10093
10097
  ) {
10094
10098
  id
10095
10099
  }
@@ -10106,6 +10110,7 @@ const Ts = y`
10106
10110
  $postalCode: String
10107
10111
  $country: String
10108
10112
  $mobile: String
10113
+ $company: String
10109
10114
  ) {
10110
10115
  recipientUpdate(
10111
10116
  id: $id
@@ -10118,6 +10123,7 @@ const Ts = y`
10118
10123
  postalCode: $postalCode
10119
10124
  country: $country
10120
10125
  mobile: $mobile
10126
+ company: $company
10121
10127
  ) {
10122
10128
  id
10123
10129
  }
@@ -10165,9 +10171,9 @@ class lo {
10165
10171
  })
10166
10172
  );
10167
10173
  }
10168
- async updateRecipient(t, e, a, n, i, s, o, l, c) {
10169
- var d, A, u, h, m;
10170
- if ((d = this.transaction.recipient) != null && d.id)
10174
+ async updateRecipient(t, e, a, n, i, s, o, l, c, d) {
10175
+ var A, u, h, m, g;
10176
+ if ((A = this.transaction.recipient) != null && A.id)
10171
10177
  this.transaction.recipient = {
10172
10178
  id: this.transaction.recipient.id,
10173
10179
  firstName: t || this.transaction.recipient.firstName,
@@ -10178,7 +10184,8 @@ class lo {
10178
10184
  email: s || this.transaction.recipient.email,
10179
10185
  postalCode: o || this.transaction.recipient.postalCode,
10180
10186
  country: l || this.transaction.recipient.country,
10181
- mobile: c || this.transaction.recipient.mobile
10187
+ mobile: c || this.transaction.recipient.mobile,
10188
+ company: d || this.transaction.recipient.company
10182
10189
  }, await this.graphQlClient().mutate({
10183
10190
  mutation: io,
10184
10191
  errorPolicy: "all",
@@ -10193,11 +10200,12 @@ class lo {
10193
10200
  email: s || this.transaction.recipient.email,
10194
10201
  postalCode: o || this.transaction.recipient.postalCode,
10195
10202
  country: l || this.transaction.recipient.country,
10196
- mobile: c || this.transaction.recipient.mobile
10203
+ mobile: c || this.transaction.recipient.mobile,
10204
+ company: d || this.transaction.recipient.company
10197
10205
  }
10198
10206
  });
10199
10207
  else {
10200
- const g = await this.graphQlClient().mutate({
10208
+ const f = await this.graphQlClient().mutate({
10201
10209
  mutation: ro,
10202
10210
  errorPolicy: "all",
10203
10211
  fetchPolicy: "no-cache",
@@ -10210,11 +10218,12 @@ class lo {
10210
10218
  email: s,
10211
10219
  postalCode: o,
10212
10220
  country: l,
10213
- mobile: c
10221
+ mobile: c,
10222
+ company: d
10214
10223
  }
10215
10224
  });
10216
10225
  this.transaction.recipient = {
10217
- id: (u = (A = g == null ? void 0 : g.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id,
10226
+ id: (h = (u = f == null ? void 0 : f.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id,
10218
10227
  firstName: t,
10219
10228
  lastName: e,
10220
10229
  address: a,
@@ -10223,14 +10232,15 @@ class lo {
10223
10232
  email: s,
10224
10233
  postalCode: o,
10225
10234
  country: l,
10226
- mobile: c
10235
+ mobile: c,
10236
+ company: d
10227
10237
  }, await this.graphQlClient().mutate({
10228
10238
  mutation: so,
10229
10239
  errorPolicy: "all",
10230
10240
  fetchPolicy: "no-cache",
10231
10241
  variables: {
10232
10242
  id: this.transaction.id,
10233
- recipientId: (m = (h = g.data) == null ? void 0 : h.recipientCreate) == null ? void 0 : m.id
10243
+ recipientId: (g = (m = f.data) == null ? void 0 : m.recipientCreate) == null ? void 0 : g.id
10234
10244
  },
10235
10245
  context: {
10236
10246
  transactionOwnerId: this.transaction.transactionOwnerId
@@ -15581,7 +15591,7 @@ class _c {
15581
15591
  } catch (a) {
15582
15592
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15583
15593
  }
15584
- }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.35.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15594
+ }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.36.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15585
15595
  }
15586
15596
  configure(t) {
15587
15597
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Qr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -16489,7 +16499,7 @@ class Fl {
16489
16499
  }
16490
16500
  }
16491
16501
  class ad {
16492
- updateRecipient(t, e, a, n, i, s, o, l, c) {
16502
+ updateRecipient(t, e, a, n, i, s, o, l, c, d) {
16493
16503
  throw new Error("Method not implemented.");
16494
16504
  }
16495
16505
  approveTransaction(t) {