@spiffcommerce/core 26.35.0 → 26.36.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.d.ts +3 -2
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4134,6 +4134,7 @@ const _ = new ui(), En = y`
|
|
|
4134
4134
|
postalCode
|
|
4135
4135
|
country
|
|
4136
4136
|
mobile
|
|
4137
|
+
company
|
|
4137
4138
|
}
|
|
4138
4139
|
product {
|
|
4139
4140
|
id
|
|
@@ -10079,6 +10080,7 @@ const Ts = y`
|
|
|
10079
10080
|
$postalCode: String
|
|
10080
10081
|
$country: String
|
|
10081
10082
|
$mobile: String
|
|
10083
|
+
$company: String
|
|
10082
10084
|
) {
|
|
10083
10085
|
recipientCreate(
|
|
10084
10086
|
firstName: $firstName
|
|
@@ -10090,6 +10092,7 @@ const Ts = y`
|
|
|
10090
10092
|
postalCode: $postalCode
|
|
10091
10093
|
country: $country
|
|
10092
10094
|
mobile: $mobile
|
|
10095
|
+
company: $company
|
|
10093
10096
|
) {
|
|
10094
10097
|
id
|
|
10095
10098
|
}
|
|
@@ -10106,6 +10109,7 @@ const Ts = y`
|
|
|
10106
10109
|
$postalCode: String
|
|
10107
10110
|
$country: String
|
|
10108
10111
|
$mobile: String
|
|
10112
|
+
$company: String
|
|
10109
10113
|
) {
|
|
10110
10114
|
recipientUpdate(
|
|
10111
10115
|
id: $id
|
|
@@ -10118,6 +10122,7 @@ const Ts = y`
|
|
|
10118
10122
|
postalCode: $postalCode
|
|
10119
10123
|
country: $country
|
|
10120
10124
|
mobile: $mobile
|
|
10125
|
+
company: $company
|
|
10121
10126
|
) {
|
|
10122
10127
|
id
|
|
10123
10128
|
}
|
|
@@ -10165,9 +10170,9 @@ class lo {
|
|
|
10165
10170
|
})
|
|
10166
10171
|
);
|
|
10167
10172
|
}
|
|
10168
|
-
async updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
10169
|
-
var
|
|
10170
|
-
if ((
|
|
10173
|
+
async updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
10174
|
+
var A, u, h, m, g;
|
|
10175
|
+
if ((A = this.transaction.recipient) != null && A.id)
|
|
10171
10176
|
this.transaction.recipient = {
|
|
10172
10177
|
id: this.transaction.recipient.id,
|
|
10173
10178
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10178,7 +10183,8 @@ class lo {
|
|
|
10178
10183
|
email: s || this.transaction.recipient.email,
|
|
10179
10184
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10180
10185
|
country: l || this.transaction.recipient.country,
|
|
10181
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10186
|
+
mobile: c || this.transaction.recipient.mobile,
|
|
10187
|
+
company: d || this.transaction.recipient.company
|
|
10182
10188
|
}, await this.graphQlClient().mutate({
|
|
10183
10189
|
mutation: io,
|
|
10184
10190
|
errorPolicy: "all",
|
|
@@ -10193,11 +10199,12 @@ class lo {
|
|
|
10193
10199
|
email: s || this.transaction.recipient.email,
|
|
10194
10200
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10195
10201
|
country: l || this.transaction.recipient.country,
|
|
10196
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10202
|
+
mobile: c || this.transaction.recipient.mobile,
|
|
10203
|
+
company: d || this.transaction.recipient.company
|
|
10197
10204
|
}
|
|
10198
10205
|
});
|
|
10199
10206
|
else {
|
|
10200
|
-
const
|
|
10207
|
+
const f = await this.graphQlClient().mutate({
|
|
10201
10208
|
mutation: ro,
|
|
10202
10209
|
errorPolicy: "all",
|
|
10203
10210
|
fetchPolicy: "no-cache",
|
|
@@ -10210,11 +10217,12 @@ class lo {
|
|
|
10210
10217
|
email: s,
|
|
10211
10218
|
postalCode: o,
|
|
10212
10219
|
country: l,
|
|
10213
|
-
mobile: c
|
|
10220
|
+
mobile: c,
|
|
10221
|
+
company: d
|
|
10214
10222
|
}
|
|
10215
10223
|
});
|
|
10216
10224
|
this.transaction.recipient = {
|
|
10217
|
-
id: (
|
|
10225
|
+
id: (h = (u = f == null ? void 0 : f.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id,
|
|
10218
10226
|
firstName: t,
|
|
10219
10227
|
lastName: e,
|
|
10220
10228
|
address: a,
|
|
@@ -10223,14 +10231,15 @@ class lo {
|
|
|
10223
10231
|
email: s,
|
|
10224
10232
|
postalCode: o,
|
|
10225
10233
|
country: l,
|
|
10226
|
-
mobile: c
|
|
10234
|
+
mobile: c,
|
|
10235
|
+
company: d
|
|
10227
10236
|
}, await this.graphQlClient().mutate({
|
|
10228
10237
|
mutation: so,
|
|
10229
10238
|
errorPolicy: "all",
|
|
10230
10239
|
fetchPolicy: "no-cache",
|
|
10231
10240
|
variables: {
|
|
10232
10241
|
id: this.transaction.id,
|
|
10233
|
-
recipientId: (
|
|
10242
|
+
recipientId: (g = (m = f.data) == null ? void 0 : m.recipientCreate) == null ? void 0 : g.id
|
|
10234
10243
|
},
|
|
10235
10244
|
context: {
|
|
10236
10245
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
@@ -15581,7 +15590,7 @@ class _c {
|
|
|
15581
15590
|
} catch (a) {
|
|
15582
15591
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15583
15592
|
}
|
|
15584
|
-
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15593
|
+
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.36.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15585
15594
|
}
|
|
15586
15595
|
configure(t) {
|
|
15587
15596
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Qr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -16489,7 +16498,7 @@ class Fl {
|
|
|
16489
16498
|
}
|
|
16490
16499
|
}
|
|
16491
16500
|
class ad {
|
|
16492
|
-
updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
16501
|
+
updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
16493
16502
|
throw new Error("Method not implemented.");
|
|
16494
16503
|
}
|
|
16495
16504
|
approveTransaction(t) {
|