@spiffcommerce/core 41.1.1 → 41.1.2-alpha.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.
@@ -63782,12 +63782,14 @@ const UQ = (r, e) => {
63782
63782
  $initialMetadata: [MetadataInput!]
63783
63783
  $marketplaceThemeInstallId: String
63784
63784
  $marketplaceThemeInstallConfigurationId: String
63785
+ $activationId: String
63785
63786
  ) {
63786
63787
  bundleCreate(
63787
63788
  collectionId: $collectionId
63788
63789
  metadata: $initialMetadata
63789
63790
  marketplaceThemeInstallId: $marketplaceThemeInstallId
63790
63791
  marketplaceThemeInstallConfigurationId: $marketplaceThemeInstallConfigurationId
63792
+ activationId: $activationId
63791
63793
  ) {
63792
63794
  id
63793
63795
  bundleOwnerId
@@ -71252,7 +71254,7 @@ class EV extends SV {
71252
71254
  });
71253
71255
  }
71254
71256
  async loadEventStreamCapability() {
71255
- const { EventStreamSerde: e } = await import("./index-PXDci1gN.js");
71257
+ const { EventStreamSerde: e } = await import("./index-Bmi_iDQq.js");
71256
71258
  return new e({
71257
71259
  marshaller: this.getEventStreamMarshaller(),
71258
71260
  serializer: this.serializer,
@@ -78878,7 +78880,7 @@ class qQ {
78878
78880
  } catch (n) {
78879
78881
  throw console.error(n), new lo("Critical - Unable to synchronize workflow state with server.");
78880
78882
  }
78881
- }, this.options = e, this.options.applicationKey && ZO(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 41.1.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
78883
+ }, this.options = e, this.options.applicationKey && ZO(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 41.1.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
78882
78884
  }
78883
78885
  configure(e) {
78884
78886
  mo.setHubUrl(e.hubUrl), mo.setServerUrl(e.serverUrl), mo.setServicesApiUrl(e.servicesApiUrl), this.marketplaceThemeInstallId = e.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = e.marketplaceThemeInstallConfigurationId, this.userPoolClientId = e.userPoolClientId, this.userPoolRegion = e.userPoolRegion, this.spiffRegion = e.spiffRegion, e.bearerAuthenticationToken && t4(e.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Of.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -79089,27 +79091,28 @@ class qQ {
79089
79091
  * @param collectionId Optional: The id of the product collection that the bundle can use.
79090
79092
  * @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
79091
79093
  */
79092
- async getNewBundle(e, t, n) {
79093
- const a = (await $e.getShadowGraphqlClient().mutate({
79094
+ async getNewBundle(e, t, n, i) {
79095
+ const s = (await $e.getShadowGraphqlClient().mutate({
79094
79096
  mutation: _L(n?.graphql?.productCollection?.eagerFetchProducts || !1),
79095
79097
  variables: {
79096
79098
  collectionId: e,
79097
- initialMetadata: t ? Object.entries(t).map((u, c) => ({ key: u[0], value: u[1] })) : void 0,
79099
+ initialMetadata: t ? Object.entries(t).map((c, h) => ({ key: c[0], value: c[1] })) : void 0,
79098
79100
  marketplaceThemeInstallId: this.marketplaceThemeInstallId,
79099
- marketplaceThemeInstallConfigurationId: this.marketplaceThemeInstallConfigurationId
79101
+ marketplaceThemeInstallConfigurationId: this.marketplaceThemeInstallConfigurationId,
79102
+ activationId: i
79100
79103
  },
79101
79104
  fetchPolicy: "no-cache"
79102
79105
  })).data?.bundleCreate;
79103
- if (!a?.id)
79106
+ if (!s?.id)
79104
79107
  throw new Error("Unable to create bundle");
79105
- const s = Er.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
79106
- s.set(a.id, a.partner.id), Er.setMap("bundlePartnerIds", s);
79107
- const o = Er.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
79108
- o.set(a.id, a.bundleOwnerId), Er.setMap("bundleOwnerIds", o);
79109
- const l = new lE(this, a, void 0, void 0, a.bundleOwnerId, {
79108
+ const o = Er.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
79109
+ o.set(s.id, s.partner.id), Er.setMap("bundlePartnerIds", o);
79110
+ const l = Er.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
79111
+ l.set(s.id, s.bundleOwnerId), Er.setMap("bundleOwnerIds", l);
79112
+ const u = new lE(this, s, void 0, void 0, s.bundleOwnerId, {
79110
79113
  eagerFetchProducts: n?.graphql?.productCollection?.eagerFetchProducts
79111
79114
  });
79112
- return await l.getInitializationPromise(), l;
79115
+ return await u.getInitializationPromise(), u;
79113
79116
  }
79114
79117
  /**
79115
79118
  * Retrieves an existing bundle from the API, by id.
@@ -80938,4 +80941,4 @@ export {
80938
80941
  a7 as y,
80939
80942
  n7 as z
80940
80943
  };
80941
- //# sourceMappingURL=index-8nBq4Hrm.js.map
80944
+ //# sourceMappingURL=index-DZ5geyh0.js.map