@spiffcommerce/core 40.3.1 → 40.3.3

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.d.ts CHANGED
@@ -2865,9 +2865,19 @@ interface Asset {
2865
2865
  * NOTE: Currently svgs from PDF files & video transcoding still require this field.
2866
2866
  */
2867
2867
  versions?: AssetVersion[];
2868
+ /**
2869
+ * A list of historical versions of this asset, which may be used for version browsing and reverting to previous versions.
2870
+ */
2871
+ history?: AssetHistory[];
2868
2872
  metadata?: AssetMetadata[];
2869
2873
  assetConfiguration?: AssetConfiguration;
2870
2874
  }
2875
+ interface AssetHistory {
2876
+ id: string;
2877
+ versionId: string;
2878
+ size: number;
2879
+ createdAt: string;
2880
+ }
2871
2881
  interface AssetConfiguration {
2872
2882
  colorOption?: OptionResource;
2873
2883
  channelNumbers: {
package/dist/index.mjs CHANGED
@@ -7469,7 +7469,7 @@ class De {
7469
7469
  t.mandatory && e.setMandatoryFulfilled(t.stepName, !1), e.markStepsAsInitialised([t.stepName]);
7470
7470
  let r;
7471
7471
  const s = e.getWorkflowExperience().getBundle();
7472
- if (s && t.globalPropertyAspectConfigurations) {
7472
+ if (s && t.globalPropertyAspectConfigurations && t.globalPropertyAspectConfigurations.length > 0) {
7473
7473
  const l = s.getGlobalPropertyStateManager(), c = t.globalPropertyAspectConfigurations[0], d = l.getAspectStorage(c.aspectName);
7474
7474
  d && d.originalAssetKey && (r = (await H.getLocalOrFromServer(d.originalAssetKey)).fileLink);
7475
7475
  }
@@ -16278,7 +16278,7 @@ class Wd {
16278
16278
  } catch (a) {
16279
16279
  throw console.error(a), new pt("Critical - Unable to synchronize workflow state with server.");
16280
16280
  }
16281
- }, this.options = t, this.options.applicationKey && Ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 40.3.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16281
+ }, this.options = t, this.options.applicationKey && Ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 40.3.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16282
16282
  }
16283
16283
  configure(t) {
16284
16284
  yt.setHubUrl(t.hubUrl), yt.setServerUrl(t.serverUrl), yt.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 && gr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Gt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);