@spiffcommerce/core 26.21.1 → 26.22.0-beta.5b9afac6-cbbb-54b2-b64f-3a060b726adc

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
@@ -9984,12 +9984,12 @@ const xs = y`
9984
9984
  bundleFinalizeUpdate(bundleId: $bundleId)
9985
9985
  }
9986
9986
  `, Ks = y`
9987
- mutation ApproveBundle($id: String!, $note: String) {
9988
- bundleApprove(id: $id, note: $note)
9987
+ mutation ApproveBundle($id: String!, $note: String, $stakeholderId: String) {
9988
+ bundleApprove(id: $id, note: $note, stakeholderId: $stakeholderId)
9989
9989
  }
9990
9990
  `, _s = y`
9991
- mutation RejectBundle($id: String!, $note: String) {
9992
- bundleReject(id: $id, note: $note)
9991
+ mutation RejectBundle($id: String!, $note: String, $stakeholderId: String) {
9992
+ bundleReject(id: $id, note: $note, stakeholderId: $stakeholderId)
9993
9993
  }
9994
9994
  `, Xs = y`
9995
9995
  mutation ApproveTransaction($id: String!, $note: String) {
@@ -14792,25 +14792,27 @@ class He {
14792
14792
  getWorkflowViewerAmendLink() {
14793
14793
  return this.workflowViewerAmendLink;
14794
14794
  }
14795
- async approve(t) {
14795
+ async approve(t, e) {
14796
14796
  await b.getShadowGraphqlClient().mutate({
14797
14797
  mutation: Ks,
14798
14798
  errorPolicy: "all",
14799
14799
  fetchPolicy: "no-cache",
14800
14800
  variables: {
14801
14801
  id: this.id,
14802
- note: t
14802
+ note: t,
14803
+ stakeholderId: e
14803
14804
  }
14804
14805
  });
14805
14806
  }
14806
- async reject(t) {
14807
+ async reject(t, e) {
14807
14808
  await b.getShadowGraphqlClient().mutate({
14808
14809
  mutation: _s,
14809
14810
  errorPolicy: "all",
14810
14811
  fetchPolicy: "no-cache",
14811
14812
  variables: {
14812
14813
  id: this.id,
14813
- note: t
14814
+ note: t,
14815
+ stakeholderId: e
14814
14816
  }
14815
14817
  });
14816
14818
  }
@@ -15213,7 +15215,7 @@ class kc {
15213
15215
  } catch (a) {
15214
15216
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15215
15217
  }
15216
- }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.21.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15218
+ }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.22.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15217
15219
  }
15218
15220
  configure(t) {
15219
15221
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();