@spiffcommerce/core 26.26.1-beta.5514dc7e-680a-53bf-8556-17b54be9d2ae → 26.27.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
@@ -9768,7 +9768,7 @@ const Fs = y`
9768
9768
  `, Ts = y`
9769
9769
  query GetProductCollectionForFilteredProducts(
9770
9770
  $id: String!
9771
- $filters: ProductCollectionProductFilterInput!
9771
+ $filters: ProductCollectionProductFilterInput
9772
9772
  $tags: ProductCollectionProductTagFilterInput
9773
9773
  ) {
9774
9774
  productCollections(ids: [$id]) {
@@ -13972,8 +13972,9 @@ class Xo {
13972
13972
  return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
13973
13973
  }
13974
13974
  /**
13975
- * Returns a list of collections products matching the associated metafield filters.
13976
- * @param filters A list of filters to apply.
13975
+ * Returns a list of collections products matching the associated metafield/tag filters.
13976
+ * @param filters A list of metafield filters to apply.
13977
+ * @param tags An object of tag filters to apply.
13977
13978
  */
13978
13979
  async filterProducts(t, e) {
13979
13980
  var s, o;
@@ -13982,10 +13983,10 @@ class Xo {
13982
13983
  errorPolicy: "all",
13983
13984
  variables: {
13984
13985
  id: this.getId(),
13985
- filters: {
13986
+ filters: t ? {
13986
13987
  link: "And",
13987
13988
  metafields: t
13988
- },
13989
+ } : void 0,
13989
13990
  tags: e ? {
13990
13991
  include: e.include ?? [],
13991
13992
  exclude: e.exclude ?? []
@@ -14003,7 +14004,8 @@ class Xo {
14003
14004
  * Fetches a paginated feed of products.
14004
14005
  * @param offset The zero-based start index.
14005
14006
  * @param limit The maximum number of products to return.
14006
- * @param filters Optional filters to apply to the query.
14007
+ * @param filters Optional metafield filters to apply to the query.
14008
+ * @param tags Optional object of tag filters to apply.
14007
14009
  * @returns
14008
14010
  */
14009
14011
  async fetchProductsFeed(t, e, a, n) {
@@ -15376,7 +15378,7 @@ class Nc {
15376
15378
  } catch (a) {
15377
15379
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15378
15380
  }
15379
- }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.26.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15381
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.27.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15380
15382
  }
15381
15383
  configure(t) {
15382
15384
  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();