@spiffcommerce/core 32.4.0-beta.1204c273-027e-50de-b005-abfcd12ed374 → 32.4.0-beta.2915253d-4e30-50db-8508-5620eadb4969

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
@@ -12920,6 +12920,13 @@ const Xe = new ll(), cl = C`
12920
12920
  mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String!) {
12921
12921
  transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
12922
12922
  id
12923
+ integrationProduct {
12924
+ id
12925
+ externalProductId
12926
+ externalVariantId
12927
+ additionalExternalProductId
12928
+ additionalExternalVariantId
12929
+ }
12923
12930
  product {
12924
12931
  id
12925
12932
  basePrice
@@ -13069,13 +13076,13 @@ class ml {
13069
13076
  }
13070
13077
  async setProduct(t) {
13071
13078
  this.workflow = void 0;
13072
- const a = (await this.graphQlClient().mutate({
13079
+ const e = await this.graphQlClient().mutate({
13073
13080
  mutation: ul,
13074
13081
  variables: {
13075
13082
  id: this.getTransaction().id,
13076
13083
  integrationProductId: t
13077
13084
  }
13078
- })).data?.transactionUpdateIntegrationProduct.product;
13085
+ }), a = e.data?.transactionUpdateIntegrationProduct.product;
13079
13086
  if (!a)
13080
13087
  throw new T("Failed to set product. No product returned from server.");
13081
13088
  if (!this.bundle)
@@ -13083,7 +13090,10 @@ class ml {
13083
13090
  const r = (await this.bundle.getProductCollection().fetchProducts()).find(
13084
13091
  (i) => i.getId() === a.id
13085
13092
  );
13086
- this.product = a, this.currentPriceBreak = this.priceBreakToBeApplied();
13093
+ this.product = a, this.transaction.integrationProduct = {
13094
+ ...this.transaction.integrationProduct,
13095
+ ...e.data?.transactionUpdateIntegrationProduct.integrationProduct
13096
+ }, this.currentPriceBreak = this.priceBreakToBeApplied();
13087
13097
  try {
13088
13098
  const i = r?.getDefaultWorkflow();
13089
13099
  if (i) {
@@ -16148,7 +16158,7 @@ class Id {
16148
16158
  } catch (a) {
16149
16159
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16150
16160
  }
16151
- }, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.1b26129a-55da-564d-bf8a-bc8182e21c7f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16161
+ }, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.4.0-beta.1204c273-027e-50de-b005-abfcd12ed374"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16152
16162
  }
16153
16163
  configure(t) {
16154
16164
  gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && jr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);