@connectedxm/client 1.0.14 → 1.0.15

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 CHANGED
@@ -9403,6 +9403,15 @@ var CapturePaymentIntent = async ({
9403
9403
  return false;
9404
9404
  }
9405
9405
  });
9406
+ queryClient.invalidateQueries({
9407
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(intent.eventId)
9408
+ });
9409
+ ADD_SELF_RELATIONSHIP(
9410
+ queryClient,
9411
+ [clientApiParams.locale],
9412
+ "events",
9413
+ intent.eventId
9414
+ );
9406
9415
  }
9407
9416
  if (intent.invoiceId) {
9408
9417
  queryClient.invalidateQueries({
@@ -9747,6 +9756,9 @@ var SubmitSelfEventRegistration = async ({
9747
9756
  payment
9748
9757
  );
9749
9758
  if (queryClient && data.status === "ok") {
9759
+ queryClient.invalidateQueries({
9760
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
9761
+ });
9750
9762
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
9751
9763
  clientApiParams.locale
9752
9764
  ]);
@@ -10122,6 +10134,9 @@ var UpdateSelfEventRegistrationPurchaseResponses = async ({
10122
10134
  purchaseId
10123
10135
  )
10124
10136
  });
10137
+ queryClient.invalidateQueries({
10138
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
10139
+ });
10125
10140
  }
10126
10141
  return data;
10127
10142
  };
package/dist/index.mjs CHANGED
@@ -8432,6 +8432,15 @@ var CapturePaymentIntent = async ({
8432
8432
  return false;
8433
8433
  }
8434
8434
  });
8435
+ queryClient.invalidateQueries({
8436
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(intent.eventId)
8437
+ });
8438
+ ADD_SELF_RELATIONSHIP(
8439
+ queryClient,
8440
+ [clientApiParams.locale],
8441
+ "events",
8442
+ intent.eventId
8443
+ );
8435
8444
  }
8436
8445
  if (intent.invoiceId) {
8437
8446
  queryClient.invalidateQueries({
@@ -8776,6 +8785,9 @@ var SubmitSelfEventRegistration = async ({
8776
8785
  payment
8777
8786
  );
8778
8787
  if (queryClient && data.status === "ok") {
8788
+ queryClient.invalidateQueries({
8789
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
8790
+ });
8779
8791
  SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
8780
8792
  clientApiParams.locale
8781
8793
  ]);
@@ -9151,6 +9163,9 @@ var UpdateSelfEventRegistrationPurchaseResponses = async ({
9151
9163
  purchaseId
9152
9164
  )
9153
9165
  });
9166
+ queryClient.invalidateQueries({
9167
+ queryKey: SELF_EVENT_PAID_PURCHASES_QUERY_KEY(eventId)
9168
+ });
9154
9169
  }
9155
9170
  return data;
9156
9171
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {