@spiffcommerce/core 26.39.1 → 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
@@ -9676,6 +9676,8 @@ const Ts = y`
9676
9676
  }
9677
9677
  bundles(ids: [$id]) {
9678
9678
  id
9679
+ dispatchDate
9680
+ purchaseOrder
9679
9681
  completed
9680
9682
  workflowViewerLink
9681
9683
  workflowViewerAmendLink
@@ -9709,6 +9711,8 @@ const Ts = y`
9709
9711
  query GetBundleStakeholders($id: String!) {
9710
9712
  bundles(ids: [$id]) {
9711
9713
  id
9714
+ dispatchDate
9715
+ purchaseOrder
9712
9716
  completed
9713
9717
  workflowViewerLink
9714
9718
  workflowViewerAmendLink
@@ -9759,6 +9763,8 @@ const Ts = y`
9759
9763
  type
9760
9764
  bundle {
9761
9765
  id
9766
+ dispatchDate
9767
+ purchaseOrder
9762
9768
  completed
9763
9769
  workflowViewerLink
9764
9770
  workflowViewerAmendLink
@@ -9907,8 +9913,8 @@ const Ts = y`
9907
9913
  }
9908
9914
  }
9909
9915
  `, Vs = y`
9910
- mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
9911
- bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
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) {
9912
9918
  id
9913
9919
  }
9914
9920
  }
@@ -10027,6 +10033,8 @@ const Ts = y`
10027
10033
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: $template, templateStatus: $templateStatus, ordered: $ordered) {
10028
10034
  items {
10029
10035
  id
10036
+ dispatchDate
10037
+ purchaseOrder
10030
10038
  name
10031
10039
  template
10032
10040
  templateStatus
@@ -14539,7 +14547,7 @@ const dl = y`
14539
14547
  class He {
14540
14548
  constructor(t, e, a, n, i, s) {
14541
14549
  var c, d, A;
14542
- 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);
14543
14551
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14544
14552
  this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new tl(
14545
14553
  this.id,
@@ -14575,6 +14583,9 @@ class He {
14575
14583
  console.error(`Bundle initialization failed: ${u}`);
14576
14584
  });
14577
14585
  }
14586
+ getTemplate() {
14587
+ return this.template;
14588
+ }
14578
14589
  async generateQuoteId() {
14579
14590
  var a, n;
14580
14591
  const e = (n = (a = (await b.getShadowGraphqlClient().mutate({
@@ -14644,6 +14655,18 @@ class He {
14644
14655
  setName(t) {
14645
14656
  return this.name = t, this.updateBundle();
14646
14657
  }
14658
+ getDispatchDate() {
14659
+ return this.dispatchDate;
14660
+ }
14661
+ setDispatchDate(t) {
14662
+ return this.dispatchDate = t, this.updateBundle();
14663
+ }
14664
+ getPurchaseOrder() {
14665
+ return this.purchaseOrder;
14666
+ }
14667
+ setPurchaseOrder(t) {
14668
+ return this.purchaseOrder = t, this.updateBundle();
14669
+ }
14647
14670
  getMetadata() {
14648
14671
  return new Map(this.metadata);
14649
14672
  }
@@ -15118,7 +15141,9 @@ class He {
15118
15141
  id: this.id,
15119
15142
  name: this.name,
15120
15143
  metadata: Array.from(this.metadata.entries()).map(([a, n]) => ({ key: a, value: n })),
15121
- bundleStateData: this.bundleStateManager.getSerializedState()
15144
+ bundleStateData: this.bundleStateManager.getSerializedState(),
15145
+ dispatchDate: this.dispatchDate,
15146
+ purchaseOrder: this.purchaseOrder
15122
15147
  },
15123
15148
  context: {
15124
15149
  bundleOwnerId: this.ownerId
@@ -15621,7 +15646,7 @@ class _c {
15621
15646
  } catch (a) {
15622
15647
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15623
15648
  }
15624
- }, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.39.1"), 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("------------------------");
15625
15650
  }
15626
15651
  configure(t) {
15627
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();
@@ -16928,6 +16953,8 @@ const Ml = y`
16928
16953
  id
16929
16954
  workflowViewerLink
16930
16955
  createdAt
16956
+ dispatchDate
16957
+ purchaseOrder
16931
16958
  name
16932
16959
  ordered
16933
16960
  }