@spiffcommerce/core 26.40.0 → 26.41.1

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
@@ -9679,6 +9679,7 @@ const Ts = y`
9679
9679
  dispatchDate
9680
9680
  purchaseOrder
9681
9681
  completed
9682
+ template
9682
9683
  workflowViewerLink
9683
9684
  workflowViewerAmendLink
9684
9685
  bundleStateData
@@ -9890,6 +9891,7 @@ const Ts = y`
9890
9891
  ) {
9891
9892
  id
9892
9893
  bundleOwnerId
9894
+ template
9893
9895
  metadata {
9894
9896
  key
9895
9897
  value
@@ -9913,8 +9915,22 @@ const Ts = y`
9913
9915
  }
9914
9916
  }
9915
9917
  `, Vs = y`
9916
- mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String, $dispatchDate: String, $purchaseOrder: String) {
9917
- bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData, dispatchDate: $dispatchDate, purchaseOrder: $purchaseOrder) {
9918
+ mutation UpdateBundle(
9919
+ $id: String!
9920
+ $name: String
9921
+ $metadata: [MetadataInput!]
9922
+ $bundleStateData: String
9923
+ $dispatchDate: String
9924
+ $purchaseOrder: String
9925
+ ) {
9926
+ bundleUpdate(
9927
+ id: $id
9928
+ name: $name
9929
+ metadata: $metadata
9930
+ bundleStateData: $bundleStateData
9931
+ dispatchDate: $dispatchDate
9932
+ purchaseOrder: $purchaseOrder
9933
+ ) {
9918
9934
  id
9919
9935
  }
9920
9936
  }
@@ -14547,7 +14563,7 @@ const dl = y`
14547
14563
  class He {
14548
14564
  constructor(t, e, a, n, i, s) {
14549
14565
  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);
14566
+ 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
14567
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14552
14568
  this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new tl(
14553
14569
  this.id,
@@ -14583,6 +14599,9 @@ class He {
14583
14599
  console.error(`Bundle initialization failed: ${u}`);
14584
14600
  });
14585
14601
  }
14602
+ getTemplate() {
14603
+ return this.template;
14604
+ }
14586
14605
  async generateQuoteId() {
14587
14606
  var a, n;
14588
14607
  const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
@@ -15643,7 +15662,7 @@ class _c {
15643
15662
  } catch (a) {
15644
15663
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15645
15664
  }
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("------------------------");
15665
+ }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.41.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15647
15666
  }
15648
15667
  configure(t) {
15649
15668
  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();