@spiffcommerce/core 32.0.1 → 32.1.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/CHANGELOG.md +6 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -10271,22 +10271,22 @@ class yo {
|
|
10271
10271
|
if (this.transaction.recipient?.id)
|
10272
10272
|
this.transaction.recipient = {
|
10273
10273
|
id: this.transaction.recipient.id,
|
10274
|
-
firstName: t
|
10275
|
-
lastName: e
|
10276
|
-
address: a
|
10277
|
-
suburb: n
|
10278
|
-
state: i
|
10279
|
-
email: s
|
10280
|
-
postalCode: o
|
10281
|
-
country: l
|
10282
|
-
mobile: c
|
10283
|
-
company: d
|
10284
|
-
apartment: A
|
10285
|
-
customField1: u
|
10286
|
-
customField2: h
|
10287
|
-
customField3: m
|
10288
|
-
customField4: g
|
10289
|
-
customField5: p
|
10274
|
+
firstName: t ?? this.transaction.recipient.firstName,
|
10275
|
+
lastName: e ?? this.transaction.recipient.lastName,
|
10276
|
+
address: a ?? this.transaction.recipient.address,
|
10277
|
+
suburb: n ?? this.transaction.recipient.suburb,
|
10278
|
+
state: i ?? this.transaction.recipient.state,
|
10279
|
+
email: s ?? this.transaction.recipient.email,
|
10280
|
+
postalCode: o ?? this.transaction.recipient.postalCode,
|
10281
|
+
country: l ?? this.transaction.recipient.country,
|
10282
|
+
mobile: c ?? this.transaction.recipient.mobile,
|
10283
|
+
company: d ?? this.transaction.recipient.company,
|
10284
|
+
apartment: A ?? this.transaction.recipient.apartment,
|
10285
|
+
customField1: u ?? this.transaction.recipient.customField1,
|
10286
|
+
customField2: h ?? this.transaction.recipient.customField2,
|
10287
|
+
customField3: m ?? this.transaction.recipient.customField3,
|
10288
|
+
customField4: g ?? this.transaction.recipient.customField4,
|
10289
|
+
customField5: p ?? this.transaction.recipient.customField5,
|
10290
10290
|
conversionConfigurationId: f || this.transaction.recipient.conversionConfigurationId
|
10291
10291
|
}, await this.graphQlClient().mutate({
|
10292
10292
|
mutation: fo,
|
@@ -15966,7 +15966,7 @@ class md {
|
|
15966
15966
|
} catch (a) {
|
15967
15967
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
15968
15968
|
}
|
15969
|
-
}, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.0
|
15969
|
+
}, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.1.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
15970
15970
|
}
|
15971
15971
|
configure(t) {
|
15972
15972
|
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && zr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
@@ -17588,6 +17588,13 @@ const sr = w`
|
|
17588
17588
|
}
|
17589
17589
|
}
|
17590
17590
|
`;
|
17591
|
+
w`
|
17592
|
+
mutation OverrideRecipientAddress($id: String!) {
|
17593
|
+
recipientOverrideAddress(id: $id) {
|
17594
|
+
id
|
17595
|
+
}
|
17596
|
+
}
|
17597
|
+
`;
|
17591
17598
|
var oc = /* @__PURE__ */ ((r) => (r.Confirmed = "Confirmed", r.Plausible = "Plausible", r.Unlikely = "Unlikely", r))(oc || {}), lc = /* @__PURE__ */ ((r) => (r.Created = "Created", r.Processing = "Processing", r.Completed = "Completed", r.Failed = "Failed", r.Cancelled = "Cancelled", r))(lc || {});
|
17592
17599
|
const kd = async (r) => {
|
17593
17600
|
const t = r.map((a) => a.getWorkflowManager().getTransaction().recipient?.id).filter((a) => !!a), e = await y.getShadowGraphqlClient().query({
|