@spiffcommerce/core 26.35.0-beta.aa978625-d361-5b17-8ca8-19a0a8ab12c8 → 26.35.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 +2 -3
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4134,7 +4134,6 @@ const _ = new ui(), En = y`
|
|
|
4134
4134
|
postalCode
|
|
4135
4135
|
country
|
|
4136
4136
|
mobile
|
|
4137
|
-
company
|
|
4138
4137
|
}
|
|
4139
4138
|
product {
|
|
4140
4139
|
id
|
|
@@ -10080,7 +10079,6 @@ const Ts = y`
|
|
|
10080
10079
|
$postalCode: String
|
|
10081
10080
|
$country: String
|
|
10082
10081
|
$mobile: String
|
|
10083
|
-
$company: String
|
|
10084
10082
|
) {
|
|
10085
10083
|
recipientCreate(
|
|
10086
10084
|
firstName: $firstName
|
|
@@ -10092,7 +10090,6 @@ const Ts = y`
|
|
|
10092
10090
|
postalCode: $postalCode
|
|
10093
10091
|
country: $country
|
|
10094
10092
|
mobile: $mobile
|
|
10095
|
-
company: $company
|
|
10096
10093
|
) {
|
|
10097
10094
|
id
|
|
10098
10095
|
}
|
|
@@ -10109,7 +10106,6 @@ const Ts = y`
|
|
|
10109
10106
|
$postalCode: String
|
|
10110
10107
|
$country: String
|
|
10111
10108
|
$mobile: String
|
|
10112
|
-
$company: String
|
|
10113
10109
|
) {
|
|
10114
10110
|
recipientUpdate(
|
|
10115
10111
|
id: $id
|
|
@@ -10122,7 +10118,6 @@ const Ts = y`
|
|
|
10122
10118
|
postalCode: $postalCode
|
|
10123
10119
|
country: $country
|
|
10124
10120
|
mobile: $mobile
|
|
10125
|
-
company: $company
|
|
10126
10121
|
) {
|
|
10127
10122
|
id
|
|
10128
10123
|
}
|
|
@@ -10170,9 +10165,9 @@ class lo {
|
|
|
10170
10165
|
})
|
|
10171
10166
|
);
|
|
10172
10167
|
}
|
|
10173
|
-
async updateRecipient(t, e, a, n, i, s, o, l, c
|
|
10174
|
-
var A, u, h, m
|
|
10175
|
-
if ((
|
|
10168
|
+
async updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
10169
|
+
var d, A, u, h, m;
|
|
10170
|
+
if ((d = this.transaction.recipient) != null && d.id)
|
|
10176
10171
|
this.transaction.recipient = {
|
|
10177
10172
|
id: this.transaction.recipient.id,
|
|
10178
10173
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10183,8 +10178,7 @@ class lo {
|
|
|
10183
10178
|
email: s || this.transaction.recipient.email,
|
|
10184
10179
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10185
10180
|
country: l || this.transaction.recipient.country,
|
|
10186
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10187
|
-
company: d || this.transaction.recipient.company
|
|
10181
|
+
mobile: c || this.transaction.recipient.mobile
|
|
10188
10182
|
}, await this.graphQlClient().mutate({
|
|
10189
10183
|
mutation: io,
|
|
10190
10184
|
errorPolicy: "all",
|
|
@@ -10199,12 +10193,11 @@ class lo {
|
|
|
10199
10193
|
email: s || this.transaction.recipient.email,
|
|
10200
10194
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10201
10195
|
country: l || this.transaction.recipient.country,
|
|
10202
|
-
mobile: c || this.transaction.recipient.mobile
|
|
10203
|
-
company: d || this.transaction.recipient.company
|
|
10196
|
+
mobile: c || this.transaction.recipient.mobile
|
|
10204
10197
|
}
|
|
10205
10198
|
});
|
|
10206
10199
|
else {
|
|
10207
|
-
const
|
|
10200
|
+
const g = await this.graphQlClient().mutate({
|
|
10208
10201
|
mutation: ro,
|
|
10209
10202
|
errorPolicy: "all",
|
|
10210
10203
|
fetchPolicy: "no-cache",
|
|
@@ -10217,12 +10210,11 @@ class lo {
|
|
|
10217
10210
|
email: s,
|
|
10218
10211
|
postalCode: o,
|
|
10219
10212
|
country: l,
|
|
10220
|
-
mobile: c
|
|
10221
|
-
company: d
|
|
10213
|
+
mobile: c
|
|
10222
10214
|
}
|
|
10223
10215
|
});
|
|
10224
10216
|
this.transaction.recipient = {
|
|
10225
|
-
id: (
|
|
10217
|
+
id: (u = (A = g == null ? void 0 : g.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id,
|
|
10226
10218
|
firstName: t,
|
|
10227
10219
|
lastName: e,
|
|
10228
10220
|
address: a,
|
|
@@ -10231,15 +10223,14 @@ class lo {
|
|
|
10231
10223
|
email: s,
|
|
10232
10224
|
postalCode: o,
|
|
10233
10225
|
country: l,
|
|
10234
|
-
mobile: c
|
|
10235
|
-
company: d
|
|
10226
|
+
mobile: c
|
|
10236
10227
|
}, await this.graphQlClient().mutate({
|
|
10237
10228
|
mutation: so,
|
|
10238
10229
|
errorPolicy: "all",
|
|
10239
10230
|
fetchPolicy: "no-cache",
|
|
10240
10231
|
variables: {
|
|
10241
10232
|
id: this.transaction.id,
|
|
10242
|
-
recipientId: (
|
|
10233
|
+
recipientId: (m = (h = g.data) == null ? void 0 : h.recipientCreate) == null ? void 0 : m.id
|
|
10243
10234
|
},
|
|
10244
10235
|
context: {
|
|
10245
10236
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
@@ -16498,7 +16489,7 @@ class Fl {
|
|
|
16498
16489
|
}
|
|
16499
16490
|
}
|
|
16500
16491
|
class ad {
|
|
16501
|
-
updateRecipient(t, e, a, n, i, s, o, l, c
|
|
16492
|
+
updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
16502
16493
|
throw new Error("Method not implemented.");
|
|
16503
16494
|
}
|
|
16504
16495
|
approveTransaction(t) {
|