@spiffcommerce/core 26.40.0 → 26.41.0

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
@@ -14547,7 +14547,7 @@ const dl = y`
14547
14547
  class He {
14548
14548
  constructor(t, e, a, n, i, s) {
14549
14549
  var c, d, A;
14550
- this.workflowExperiences = [], this.eventEmitter = new cl(), this.client = t, this.id = e.id, this.name = e.name || "", this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new el(e.bundleStateData);
14550
+ this.workflowExperiences = [], this.eventEmitter = new cl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new el(e.bundleStateData);
14551
14551
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14552
14552
  this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new tl(
14553
14553
  this.id,
@@ -14583,6 +14583,9 @@ class He {
14583
14583
  console.error(`Bundle initialization failed: ${u}`);
14584
14584
  });
14585
14585
  }
14586
+ getTemplate() {
14587
+ return this.template;
14588
+ }
14586
14589
  async generateQuoteId() {
14587
14590
  var a, n;
14588
14591
  const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
@@ -15643,7 +15646,7 @@ class _c {
15643
15646
  } catch (a) {
15644
15647
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15645
15648
  }
15646
- }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.40.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15649
+ }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.41.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15647
15650
  }
15648
15651
  configure(t) {
15649
15652
  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();