@connectedxm/client 1.0.14 → 1.0.16
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.js +26 -6
- package/dist/index.mjs +26 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5450,13 +5450,18 @@ var GetSelfChatChannelMessages = async ({
|
|
|
5450
5450
|
}
|
|
5451
5451
|
);
|
|
5452
5452
|
if (queryClient && data.status === "ok") {
|
|
5453
|
-
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) =>
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5453
|
+
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) => {
|
|
5454
|
+
if (old && old.data) {
|
|
5455
|
+
return {
|
|
5456
|
+
...old,
|
|
5457
|
+
data: {
|
|
5458
|
+
...old.data,
|
|
5459
|
+
read: true
|
|
5460
|
+
}
|
|
5461
|
+
};
|
|
5458
5462
|
}
|
|
5459
|
-
|
|
5463
|
+
return old;
|
|
5464
|
+
});
|
|
5460
5465
|
}
|
|
5461
5466
|
return data;
|
|
5462
5467
|
};
|
|
@@ -9403,6 +9408,15 @@ var CapturePaymentIntent = async ({
|
|
|
9403
9408
|
return false;
|
|
9404
9409
|
}
|
|
9405
9410
|
});
|
|
9411
|
+
queryClient.invalidateQueries({
|
|
9412
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(intent.eventId)
|
|
9413
|
+
});
|
|
9414
|
+
ADD_SELF_RELATIONSHIP(
|
|
9415
|
+
queryClient,
|
|
9416
|
+
[clientApiParams.locale],
|
|
9417
|
+
"events",
|
|
9418
|
+
intent.eventId
|
|
9419
|
+
);
|
|
9406
9420
|
}
|
|
9407
9421
|
if (intent.invoiceId) {
|
|
9408
9422
|
queryClient.invalidateQueries({
|
|
@@ -9747,6 +9761,9 @@ var SubmitSelfEventRegistration = async ({
|
|
|
9747
9761
|
payment
|
|
9748
9762
|
);
|
|
9749
9763
|
if (queryClient && data.status === "ok") {
|
|
9764
|
+
queryClient.invalidateQueries({
|
|
9765
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
|
|
9766
|
+
});
|
|
9750
9767
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
9751
9768
|
clientApiParams.locale
|
|
9752
9769
|
]);
|
|
@@ -10122,6 +10139,9 @@ var UpdateSelfEventRegistrationPurchaseResponses = async ({
|
|
|
10122
10139
|
purchaseId
|
|
10123
10140
|
)
|
|
10124
10141
|
});
|
|
10142
|
+
queryClient.invalidateQueries({
|
|
10143
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
|
|
10144
|
+
});
|
|
10125
10145
|
}
|
|
10126
10146
|
return data;
|
|
10127
10147
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -4476,13 +4476,18 @@ var GetSelfChatChannelMessages = async ({
|
|
|
4476
4476
|
}
|
|
4477
4477
|
);
|
|
4478
4478
|
if (queryClient && data.status === "ok") {
|
|
4479
|
-
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) =>
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4479
|
+
SET_SELF_CHAT_CHANNEL_QUERY_DATA(queryClient, [channelId], (old) => {
|
|
4480
|
+
if (old && old.data) {
|
|
4481
|
+
return {
|
|
4482
|
+
...old,
|
|
4483
|
+
data: {
|
|
4484
|
+
...old.data,
|
|
4485
|
+
read: true
|
|
4486
|
+
}
|
|
4487
|
+
};
|
|
4484
4488
|
}
|
|
4485
|
-
|
|
4489
|
+
return old;
|
|
4490
|
+
});
|
|
4486
4491
|
}
|
|
4487
4492
|
return data;
|
|
4488
4493
|
};
|
|
@@ -8432,6 +8437,15 @@ var CapturePaymentIntent = async ({
|
|
|
8432
8437
|
return false;
|
|
8433
8438
|
}
|
|
8434
8439
|
});
|
|
8440
|
+
queryClient.invalidateQueries({
|
|
8441
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(intent.eventId)
|
|
8442
|
+
});
|
|
8443
|
+
ADD_SELF_RELATIONSHIP(
|
|
8444
|
+
queryClient,
|
|
8445
|
+
[clientApiParams.locale],
|
|
8446
|
+
"events",
|
|
8447
|
+
intent.eventId
|
|
8448
|
+
);
|
|
8435
8449
|
}
|
|
8436
8450
|
if (intent.invoiceId) {
|
|
8437
8451
|
queryClient.invalidateQueries({
|
|
@@ -8776,6 +8790,9 @@ var SubmitSelfEventRegistration = async ({
|
|
|
8776
8790
|
payment
|
|
8777
8791
|
);
|
|
8778
8792
|
if (queryClient && data.status === "ok") {
|
|
8793
|
+
queryClient.invalidateQueries({
|
|
8794
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
|
|
8795
|
+
});
|
|
8779
8796
|
SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
|
|
8780
8797
|
clientApiParams.locale
|
|
8781
8798
|
]);
|
|
@@ -9151,6 +9168,9 @@ var UpdateSelfEventRegistrationPurchaseResponses = async ({
|
|
|
9151
9168
|
purchaseId
|
|
9152
9169
|
)
|
|
9153
9170
|
});
|
|
9171
|
+
queryClient.invalidateQueries({
|
|
9172
|
+
queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
|
|
9173
|
+
});
|
|
9154
9174
|
}
|
|
9155
9175
|
return data;
|
|
9156
9176
|
};
|