@spiffcommerce/core 26.34.0 → 26.35.0-beta.aa978625-d361-5b17-8ca8-19a0a8ab12c8
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.d.ts +4 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -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
|
|
@@ -10030,6 +10031,7 @@ const Ts = y`
|
|
|
10030
10031
|
templateStatus
|
|
10031
10032
|
createdAt
|
|
10032
10033
|
transactionsCount
|
|
10034
|
+
productsCount
|
|
10033
10035
|
quoteId
|
|
10034
10036
|
orderId
|
|
10035
10037
|
productCollection {
|
|
@@ -10078,6 +10080,7 @@ const Ts = y`
|
|
|
10078
10080
|
$postalCode: String
|
|
10079
10081
|
$country: String
|
|
10080
10082
|
$mobile: String
|
|
10083
|
+
$company: String
|
|
10081
10084
|
) {
|
|
10082
10085
|
recipientCreate(
|
|
10083
10086
|
firstName: $firstName
|
|
@@ -10089,6 +10092,7 @@ const Ts = y`
|
|
|
10089
10092
|
postalCode: $postalCode
|
|
10090
10093
|
country: $country
|
|
10091
10094
|
mobile: $mobile
|
|
10095
|
+
company: $company
|
|
10092
10096
|
) {
|
|
10093
10097
|
id
|
|
10094
10098
|
}
|
|
@@ -10105,6 +10109,7 @@ const Ts = y`
|
|
|
10105
10109
|
$postalCode: String
|
|
10106
10110
|
$country: String
|
|
10107
10111
|
$mobile: String
|
|
10112
|
+
$company: String
|
|
10108
10113
|
) {
|
|
10109
10114
|
recipientUpdate(
|
|
10110
10115
|
id: $id
|
|
@@ -10117,6 +10122,7 @@ const Ts = y`
|
|
|
10117
10122
|
postalCode: $postalCode
|
|
10118
10123
|
country: $country
|
|
10119
10124
|
mobile: $mobile
|
|
10125
|
+
company: $company
|
|
10120
10126
|
) {
|
|
10121
10127
|
id
|
|
10122
10128
|
}
|
|
@@ -10164,9 +10170,9 @@ class lo {
|
|
|
10164
10170
|
})
|
|
10165
10171
|
);
|
|
10166
10172
|
}
|
|
10167
|
-
async updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
10168
|
-
var
|
|
10169
|
-
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)
|
|
10170
10176
|
this.transaction.recipient = {
|
|
10171
10177
|
id: this.transaction.recipient.id,
|
|
10172
10178
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10177,7 +10183,8 @@ class lo {
|
|
|
10177
10183
|
email: s || this.transaction.recipient.email,
|
|
10178
10184
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10179
10185
|
country: l || this.transaction.recipient.country,
|
|
10180
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10186
|
+
mobile: c || this.transaction.recipient.mobile,
|
|
10187
|
+
company: d || this.transaction.recipient.company
|
|
10181
10188
|
}, await this.graphQlClient().mutate({
|
|
10182
10189
|
mutation: io,
|
|
10183
10190
|
errorPolicy: "all",
|
|
@@ -10192,11 +10199,12 @@ class lo {
|
|
|
10192
10199
|
email: s || this.transaction.recipient.email,
|
|
10193
10200
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10194
10201
|
country: l || this.transaction.recipient.country,
|
|
10195
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10202
|
+
mobile: c || this.transaction.recipient.mobile,
|
|
10203
|
+
company: d || this.transaction.recipient.company
|
|
10196
10204
|
}
|
|
10197
10205
|
});
|
|
10198
10206
|
else {
|
|
10199
|
-
const
|
|
10207
|
+
const f = await this.graphQlClient().mutate({
|
|
10200
10208
|
mutation: ro,
|
|
10201
10209
|
errorPolicy: "all",
|
|
10202
10210
|
fetchPolicy: "no-cache",
|
|
@@ -10209,11 +10217,12 @@ class lo {
|
|
|
10209
10217
|
email: s,
|
|
10210
10218
|
postalCode: o,
|
|
10211
10219
|
country: l,
|
|
10212
|
-
mobile: c
|
|
10220
|
+
mobile: c,
|
|
10221
|
+
company: d
|
|
10213
10222
|
}
|
|
10214
10223
|
});
|
|
10215
10224
|
this.transaction.recipient = {
|
|
10216
|
-
id: (
|
|
10225
|
+
id: (h = (u = f == null ? void 0 : f.data) == null ? void 0 : u.recipientCreate) == null ? void 0 : h.id,
|
|
10217
10226
|
firstName: t,
|
|
10218
10227
|
lastName: e,
|
|
10219
10228
|
address: a,
|
|
@@ -10222,14 +10231,15 @@ class lo {
|
|
|
10222
10231
|
email: s,
|
|
10223
10232
|
postalCode: o,
|
|
10224
10233
|
country: l,
|
|
10225
|
-
mobile: c
|
|
10234
|
+
mobile: c,
|
|
10235
|
+
company: d
|
|
10226
10236
|
}, await this.graphQlClient().mutate({
|
|
10227
10237
|
mutation: so,
|
|
10228
10238
|
errorPolicy: "all",
|
|
10229
10239
|
fetchPolicy: "no-cache",
|
|
10230
10240
|
variables: {
|
|
10231
10241
|
id: this.transaction.id,
|
|
10232
|
-
recipientId: (
|
|
10242
|
+
recipientId: (g = (m = f.data) == null ? void 0 : m.recipientCreate) == null ? void 0 : g.id
|
|
10233
10243
|
},
|
|
10234
10244
|
context: {
|
|
10235
10245
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
@@ -15580,7 +15590,7 @@ class _c {
|
|
|
15580
15590
|
} catch (a) {
|
|
15581
15591
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15582
15592
|
}
|
|
15583
|
-
}, 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.35.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15584
15594
|
}
|
|
15585
15595
|
configure(t) {
|
|
15586
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();
|
|
@@ -16488,7 +16498,7 @@ class Fl {
|
|
|
16488
16498
|
}
|
|
16489
16499
|
}
|
|
16490
16500
|
class ad {
|
|
16491
|
-
updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
16501
|
+
updateRecipient(t, e, a, n, i, s, o, l, c, d) {
|
|
16492
16502
|
throw new Error("Method not implemented.");
|
|
16493
16503
|
}
|
|
16494
16504
|
approveTransaction(t) {
|