@spiffcommerce/core 26.31.0 → 26.32.0-beta.0809bb4f-f297-5407-815c-30e8f3b0cb89
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 +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -353,7 +353,10 @@ class Rr {
|
|
|
353
353
|
return new nr({
|
|
354
354
|
link: rr([n, a, e, t]),
|
|
355
355
|
cache: new ir(),
|
|
356
|
-
name: "Core"
|
|
356
|
+
name: "Core",
|
|
357
|
+
devtools: {
|
|
358
|
+
enabled: !0
|
|
359
|
+
}
|
|
357
360
|
});
|
|
358
361
|
}
|
|
359
362
|
}
|
|
@@ -4133,6 +4136,7 @@ const _ = new di(), vn = y`
|
|
|
4133
4136
|
email
|
|
4134
4137
|
postalCode
|
|
4135
4138
|
country
|
|
4139
|
+
mobile
|
|
4136
4140
|
}
|
|
4137
4141
|
product {
|
|
4138
4142
|
id
|
|
@@ -10072,6 +10076,7 @@ const ks = y`
|
|
|
10072
10076
|
$email: String
|
|
10073
10077
|
$postalCode: String
|
|
10074
10078
|
$country: String
|
|
10079
|
+
$mobile: String
|
|
10075
10080
|
) {
|
|
10076
10081
|
recipientCreate(
|
|
10077
10082
|
firstName: $firstName
|
|
@@ -10082,6 +10087,7 @@ const ks = y`
|
|
|
10082
10087
|
email: $email
|
|
10083
10088
|
postalCode: $postalCode
|
|
10084
10089
|
country: $country
|
|
10090
|
+
mobile: $mobile
|
|
10085
10091
|
) {
|
|
10086
10092
|
id
|
|
10087
10093
|
}
|
|
@@ -10097,6 +10103,7 @@ const ks = y`
|
|
|
10097
10103
|
$email: String
|
|
10098
10104
|
$postalCode: String
|
|
10099
10105
|
$country: String
|
|
10106
|
+
$mobile: String
|
|
10100
10107
|
) {
|
|
10101
10108
|
recipientUpdate(
|
|
10102
10109
|
id: $id
|
|
@@ -10108,6 +10115,7 @@ const ks = y`
|
|
|
10108
10115
|
email: $email
|
|
10109
10116
|
postalCode: $postalCode
|
|
10110
10117
|
country: $country
|
|
10118
|
+
mobile: $mobile
|
|
10111
10119
|
) {
|
|
10112
10120
|
id
|
|
10113
10121
|
}
|
|
@@ -10155,9 +10163,9 @@ class so {
|
|
|
10155
10163
|
})
|
|
10156
10164
|
);
|
|
10157
10165
|
}
|
|
10158
|
-
async updateRecipient(t, e, a, n, i, s, o, l) {
|
|
10159
|
-
var
|
|
10160
|
-
if ((
|
|
10166
|
+
async updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
10167
|
+
var d, A, u, h, m;
|
|
10168
|
+
if ((d = this.transaction.recipient) != null && d.id)
|
|
10161
10169
|
this.transaction.recipient = {
|
|
10162
10170
|
id: this.transaction.recipient.id,
|
|
10163
10171
|
firstName: t || this.transaction.recipient.firstName,
|
|
@@ -10167,7 +10175,8 @@ class so {
|
|
|
10167
10175
|
state: i || this.transaction.recipient.state,
|
|
10168
10176
|
email: s || this.transaction.recipient.email,
|
|
10169
10177
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10170
|
-
country: l || this.transaction.recipient.country
|
|
10178
|
+
country: l || this.transaction.recipient.country,
|
|
10179
|
+
mobile: c || this.transaction.recipient.mobile
|
|
10171
10180
|
}, await this.graphQlClient().mutate({
|
|
10172
10181
|
mutation: no,
|
|
10173
10182
|
errorPolicy: "all",
|
|
@@ -10181,11 +10190,12 @@ class so {
|
|
|
10181
10190
|
state: i || this.transaction.recipient.state,
|
|
10182
10191
|
email: s || this.transaction.recipient.email,
|
|
10183
10192
|
postalCode: o || this.transaction.recipient.postalCode,
|
|
10184
|
-
country: l || this.transaction.recipient.country
|
|
10193
|
+
country: l || this.transaction.recipient.country,
|
|
10194
|
+
mobile: c || this.transaction.recipient.mobile
|
|
10185
10195
|
}
|
|
10186
10196
|
});
|
|
10187
10197
|
else {
|
|
10188
|
-
const
|
|
10198
|
+
const g = await this.graphQlClient().mutate({
|
|
10189
10199
|
mutation: ao,
|
|
10190
10200
|
errorPolicy: "all",
|
|
10191
10201
|
fetchPolicy: "no-cache",
|
|
@@ -10197,11 +10207,12 @@ class so {
|
|
|
10197
10207
|
state: i,
|
|
10198
10208
|
email: s,
|
|
10199
10209
|
postalCode: o,
|
|
10200
|
-
country: l
|
|
10210
|
+
country: l,
|
|
10211
|
+
mobile: c
|
|
10201
10212
|
}
|
|
10202
10213
|
});
|
|
10203
10214
|
this.transaction.recipient = {
|
|
10204
|
-
id: (
|
|
10215
|
+
id: (u = (A = g == null ? void 0 : g.data) == null ? void 0 : A.recipientCreate) == null ? void 0 : u.id,
|
|
10205
10216
|
firstName: t,
|
|
10206
10217
|
lastName: e,
|
|
10207
10218
|
address: a,
|
|
@@ -10209,14 +10220,15 @@ class so {
|
|
|
10209
10220
|
state: i,
|
|
10210
10221
|
email: s,
|
|
10211
10222
|
postalCode: o,
|
|
10212
|
-
country: l
|
|
10223
|
+
country: l,
|
|
10224
|
+
mobile: c
|
|
10213
10225
|
}, await this.graphQlClient().mutate({
|
|
10214
10226
|
mutation: ro,
|
|
10215
10227
|
errorPolicy: "all",
|
|
10216
10228
|
fetchPolicy: "no-cache",
|
|
10217
10229
|
variables: {
|
|
10218
10230
|
id: this.transaction.id,
|
|
10219
|
-
recipientId: (
|
|
10231
|
+
recipientId: (m = (h = g.data) == null ? void 0 : h.recipientCreate) == null ? void 0 : m.id
|
|
10220
10232
|
},
|
|
10221
10233
|
context: {
|
|
10222
10234
|
transactionOwnerId: this.transaction.transactionOwnerId
|
|
@@ -14101,6 +14113,7 @@ class Xn {
|
|
|
14101
14113
|
return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new le(a));
|
|
14102
14114
|
const e = await b.getShadowGraphqlClient().query({
|
|
14103
14115
|
query: Qs,
|
|
14116
|
+
fetchPolicy: "cache-first",
|
|
14104
14117
|
variables: {
|
|
14105
14118
|
id: this.getId(),
|
|
14106
14119
|
productIds: t
|
|
@@ -14119,6 +14132,7 @@ class Xn {
|
|
|
14119
14132
|
const i = await b.getShadowGraphqlClient().query({
|
|
14120
14133
|
query: Ns,
|
|
14121
14134
|
errorPolicy: "all",
|
|
14135
|
+
fetchPolicy: "cache-first",
|
|
14122
14136
|
variables: {
|
|
14123
14137
|
id: this.getId(),
|
|
14124
14138
|
filters: t ? {
|
|
@@ -14159,6 +14173,7 @@ class Xn {
|
|
|
14159
14173
|
}
|
|
14160
14174
|
const o = await b.getShadowGraphqlClient().query({
|
|
14161
14175
|
query: Rs,
|
|
14176
|
+
fetchPolicy: "cache-first",
|
|
14162
14177
|
variables: {
|
|
14163
14178
|
id: this.getId(),
|
|
14164
14179
|
limit: e,
|
|
@@ -15567,7 +15582,7 @@ class Gc {
|
|
|
15567
15582
|
} catch (a) {
|
|
15568
15583
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15569
15584
|
}
|
|
15570
|
-
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
15585
|
+
}, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.32.0-beta.5b2d1315-37f7-5328-b32b-4088b668e114"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15571
15586
|
}
|
|
15572
15587
|
configure(t) {
|
|
15573
15588
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Mr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -16475,7 +16490,7 @@ class Dl {
|
|
|
16475
16490
|
}
|
|
16476
16491
|
}
|
|
16477
16492
|
class Yc {
|
|
16478
|
-
updateRecipient(t, e, a, n, i, s, o, l) {
|
|
16493
|
+
updateRecipient(t, e, a, n, i, s, o, l, c) {
|
|
16479
16494
|
throw new Error("Method not implemented.");
|
|
16480
16495
|
}
|
|
16481
16496
|
approveTransaction(t) {
|