@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.
- package/dist/{index-BeU78Qy7.cjs → index-BcIh8qYc.cjs} +2 -2
- package/dist/{index-BeU78Qy7.cjs.map → index-BcIh8qYc.cjs.map} +1 -1
- package/dist/{index-PXDci1gN.js → index-Bmi_iDQq.js} +2 -2
- package/dist/{index-PXDci1gN.js.map → index-Bmi_iDQq.js.map} +1 -1
- package/dist/{index-BXUlzS2W.cjs → index-CQiwec57.cjs} +5 -3
- package/dist/{index-BXUlzS2W.cjs.map → index-CQiwec57.cjs.map} +1 -1
- package/dist/{index-8nBq4Hrm.js → index-DZ5geyh0.js} +17 -14
- package/dist/{index-8nBq4Hrm.js.map → index-DZ5geyh0.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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.
|
|
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
|
|
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((
|
|
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 (!
|
|
79106
|
+
if (!s?.id)
|
|
79104
79107
|
throw new Error("Unable to create bundle");
|
|
79105
|
-
const
|
|
79106
|
-
|
|
79107
|
-
const
|
|
79108
|
-
|
|
79109
|
-
const
|
|
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
|
|
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-
|
|
80944
|
+
//# sourceMappingURL=index-DZ5geyh0.js.map
|