@connectedxm/admin 2.4.9 → 2.4.10

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.cjs CHANGED
@@ -35186,6 +35186,14 @@ var UpdatePayment = async ({
35186
35186
  );
35187
35187
  if (queryClient && data.status === "ok") {
35188
35188
  queryClient.invalidateQueries({ queryKey: PAYMENT_QUERY_KEY(paymentId) });
35189
+ if (typeof payment.registrationId !== "undefined") {
35190
+ queryClient.invalidateQueries({
35191
+ predicate: (query) => {
35192
+ const queryKey = query.queryKey;
35193
+ return Array.isArray(queryKey) && queryKey.length === 6 && queryKey[0] === "EVENTS" && queryKey[2] === "ATTENDEES" && queryKey[4] === "PAYMENTS";
35194
+ }
35195
+ });
35196
+ }
35189
35197
  SET_PAYMENT_QUERY_DATA(queryClient, [paymentId], data);
35190
35198
  }
35191
35199
  return data;
package/dist/index.js CHANGED
@@ -32237,6 +32237,14 @@ var UpdatePayment = async ({
32237
32237
  );
32238
32238
  if (queryClient && data.status === "ok") {
32239
32239
  queryClient.invalidateQueries({ queryKey: PAYMENT_QUERY_KEY(paymentId) });
32240
+ if (typeof payment.registrationId !== "undefined") {
32241
+ queryClient.invalidateQueries({
32242
+ predicate: (query) => {
32243
+ const queryKey = query.queryKey;
32244
+ return Array.isArray(queryKey) && queryKey.length === 6 && queryKey[0] === "EVENTS" && queryKey[2] === "ATTENDEES" && queryKey[4] === "PAYMENTS";
32245
+ }
32246
+ });
32247
+ }
32240
32248
  SET_PAYMENT_QUERY_DATA(queryClient, [paymentId], data);
32241
32249
  }
32242
32250
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",