@connectedxm/client 0.5.18 → 0.5.20

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
@@ -46,6 +46,7 @@ __export(src_exports, {
46
46
  AcceptGroupRequest: () => AcceptGroupRequest,
47
47
  AcceptTransfer: () => AcceptTransfer,
48
48
  AccountType: () => AccountType,
49
+ AddFreePurchaseAddOns: () => AddFreePurchaseAddOns,
49
50
  AddListingCoHost: () => AddListingCoHost,
50
51
  AddListingSponsor: () => AddListingSponsor,
51
52
  AddSelfChatChannelMember: () => AddSelfChatChannelMember,
@@ -69,8 +70,7 @@ __export(src_exports, {
69
70
  CancelGroupRequest: () => CancelGroupRequest,
70
71
  CancelSubscription: () => CancelSubscription,
71
72
  CancelTransfer: () => CancelTransfer,
72
- CaptureInvoicePayment: () => CaptureInvoicePayment,
73
- CaptureSelfEventRegistrationPayment: () => CaptureSelfEventRegistrationPayment,
73
+ CapturePaymentIntent: () => CapturePaymentIntent,
74
74
  ChannelFormat: () => ChannelFormat,
75
75
  CheckinListingRegistrationPurchase: () => CheckinListingRegistrationPurchase,
76
76
  CompleteEventActivation: () => CompleteEventActivation,
@@ -199,6 +199,7 @@ __export(src_exports, {
199
199
  GetGroupsRequested: () => GetGroupsRequested,
200
200
  GetInterests: () => GetInterests,
201
201
  GetInvoice: () => GetInvoice,
202
+ GetInvoiceIntent: () => GetInvoiceIntent,
202
203
  GetLevel: () => GetLevel,
203
204
  GetLevelSponsors: () => GetLevelSponsors,
204
205
  GetLevels: () => GetLevels,
@@ -230,9 +231,10 @@ __export(src_exports, {
230
231
  GetSelfEventListingReport: () => GetSelfEventListingReport,
231
232
  GetSelfEventListings: () => GetSelfEventListings,
232
233
  GetSelfEventRegistration: () => GetSelfEventRegistration,
233
- GetSelfEventRegistrationCheckout: () => GetSelfEventRegistrationCheckout,
234
+ GetSelfEventRegistrationIntent: () => GetSelfEventRegistrationIntent,
234
235
  GetSelfEventRegistrationPurchase: () => GetSelfEventRegistrationPurchase,
235
236
  GetSelfEventRegistrationPurchaseAddOns: () => GetSelfEventRegistrationPurchaseAddOns,
237
+ GetSelfEventRegistrationPurchaseAddOnsIntent: () => GetSelfEventRegistrationPurchaseAddOnsIntent,
236
238
  GetSelfEventRegistrationPurchaseReservationSections: () => GetSelfEventRegistrationPurchaseReservationSections,
237
239
  GetSelfEventRegistrationPurchaseSections: () => GetSelfEventRegistrationPurchaseSections,
238
240
  GetSelfEventRegistrationStatus: () => GetSelfEventRegistrationStatus,
@@ -321,7 +323,8 @@ __export(src_exports, {
321
323
  SELF_DELEGATES_QUERY_KEY: () => SELF_DELEGATES_QUERY_KEY,
322
324
  SELF_DELEGATE_OF_QUERY_KEY: () => SELF_DELEGATE_OF_QUERY_KEY,
323
325
  SELF_EVENTS_QUERY_KEY: () => SELF_EVENTS_QUERY_KEY,
324
- SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
326
+ SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY,
327
+ SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_INTENT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_INTENT_QUERY_KEY,
325
328
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
326
329
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
327
330
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
@@ -333,6 +336,7 @@ __export(src_exports, {
333
336
  SELF_GROUP_MEMBERSHIPS_QUERY_KEY: () => SELF_GROUP_MEMBERSHIPS_QUERY_KEY,
334
337
  SELF_GROUP_MEMBERSHIP_QUERY_KEY: () => SELF_GROUP_MEMBERSHIP_QUERY_KEY,
335
338
  SELF_INTERESTS_QUERY_KEY: () => SELF_INTERESTS_QUERY_KEY,
339
+ SELF_INVOICE_INTENT_QUERY_KEY: () => SELF_INVOICE_INTENT_QUERY_KEY,
336
340
  SELF_NOTIFICATIONS_QUERY_KEY: () => SELF_NOTIFICATIONS_QUERY_KEY,
337
341
  SELF_NOTIFICATION_COUNT_QUERY_KEY: () => SELF_NOTIFICATION_COUNT_QUERY_KEY,
338
342
  SELF_PENDING_TRANSFER_QUERY_KEY: () => SELF_PENDING_TRANSFER_QUERY_KEY,
@@ -495,6 +499,7 @@ __export(src_exports, {
495
499
  useAcceptGroupInvitation: () => useAcceptGroupInvitation,
496
500
  useAcceptGroupRequest: () => useAcceptGroupRequest,
497
501
  useAcceptTransfer: () => useAcceptTransfer,
502
+ useAddFreePurchaseAddOns: () => useAddFreePurchaseAddOns,
498
503
  useAddListingCoHost: () => useAddListingCoHost,
499
504
  useAddListingSponsor: () => useAddListingSponsor,
500
505
  useAddSelfChatChannelMember: () => useAddSelfChatChannelMember,
@@ -508,8 +513,7 @@ __export(src_exports, {
508
513
  useCancelGroupRequest: () => useCancelGroupRequest,
509
514
  useCancelSubscription: () => useCancelSubscription,
510
515
  useCancelTransfer: () => useCancelTransfer,
511
- useCaptureInvoicePayment: () => useCaptureInvoicePayment,
512
- useCaptureSelfEventRegistrationPayment: () => useCaptureSelfEventRegistrationPayment,
516
+ useCapturePaymentIntent: () => useCapturePaymentIntent,
513
517
  useCheckinListingRegistrationPurchase: () => useCheckinListingRegistrationPurchase,
514
518
  useCompleteEventActivation: () => useCompleteEventActivation,
515
519
  useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
@@ -597,6 +601,7 @@ __export(src_exports, {
597
601
  useGetGroupsRequested: () => useGetGroupsRequested,
598
602
  useGetInterests: () => useGetInterests,
599
603
  useGetInvoice: () => useGetInvoice,
604
+ useGetInvoiceIntent: () => useGetInvoiceIntent,
600
605
  useGetLevel: () => useGetLevel,
601
606
  useGetLevelSponsors: () => useGetLevelSponsors,
602
607
  useGetLevels: () => useGetLevels,
@@ -628,9 +633,10 @@ __export(src_exports, {
628
633
  useGetSelfEventListings: () => useGetSelfEventListings,
629
634
  useGetSelfEventListingsRegistrations: () => useGetSelfEventListingsRegistrations,
630
635
  useGetSelfEventRegistration: () => useGetSelfEventRegistration,
631
- useGetSelfEventRegistrationCheckout: () => useGetSelfEventRegistrationCheckout,
636
+ useGetSelfEventRegistrationIntent: () => useGetSelfEventRegistrationIntent,
632
637
  useGetSelfEventRegistrationPurchase: () => useGetSelfEventRegistrationPurchase,
633
638
  useGetSelfEventRegistrationPurchaseAddOns: () => useGetSelfEventRegistrationPurchaseAddOns,
639
+ useGetSelfEventRegistrationPurchaseAddOnsIntent: () => useGetSelfEventRegistrationPurchaseAddOnsIntent,
634
640
  useGetSelfEventRegistrationPurchaseReservationSections: () => useGetSelfEventRegistrationPurchaseReservationSections,
635
641
  useGetSelfEventRegistrationPurchaseSections: () => useGetSelfEventRegistrationPurchaseSections,
636
642
  useGetSelfEventRegistrationStatus: () => useGetSelfEventRegistrationStatus,
@@ -4086,28 +4092,24 @@ var useGetSelfEventRegistration = (eventId, options = {}) => {
4086
4092
  );
4087
4093
  };
4088
4094
 
4089
- // src/queries/self/registration/useGetSelfEventRegistrationCheckout.ts
4090
- var SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY = (eventId, registrationId) => [
4091
- ...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId),
4092
- registrationId,
4093
- "CHECKOUT"
4094
- ];
4095
- var GetSelfEventRegistrationCheckout = async ({
4095
+ // src/queries/self/registration/useGetSelfEventRegistrationIntent.ts
4096
+ var SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY = (eventId, registrationId) => [...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId), registrationId, "INTENT"];
4097
+ var GetSelfEventRegistrationIntent = async ({
4096
4098
  eventId,
4097
4099
  registrationId,
4098
4100
  clientApiParams
4099
4101
  }) => {
4100
4102
  const clientApi = await GetClientAPI(clientApiParams);
4101
4103
  const { data } = await clientApi.get(
4102
- `/self/events/${eventId}/registration/${registrationId}/draft/checkout`
4104
+ `/self/events/${eventId}/registration/${registrationId}/draft/intent`
4103
4105
  );
4104
4106
  return data;
4105
4107
  };
4106
- var useGetSelfEventRegistrationCheckout = (eventId, registrationId = "", options = {}) => {
4108
+ var useGetSelfEventRegistrationIntent = (eventId, registrationId = "", options = {}) => {
4107
4109
  const { authenticated } = useConnectedXM();
4108
4110
  return useConnectedSingleQuery_default(
4109
- SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(eventId, registrationId),
4110
- (params) => GetSelfEventRegistrationCheckout({ eventId, registrationId, ...params }),
4111
+ SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(eventId, registrationId),
4112
+ (params) => GetSelfEventRegistrationIntent({ eventId, registrationId, ...params }),
4111
4113
  {
4112
4114
  staleTime: Infinity,
4113
4115
  retry: false,
@@ -4375,6 +4377,65 @@ var useGetSelfEventRegistrationStatus = (eventId, selfId, options = {}) => {
4375
4377
  );
4376
4378
  };
4377
4379
 
4380
+ // src/queries/self/registration/useGetSelfEventRegistrationPurchaseAddOnsIntent.ts
4381
+ var SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_INTENT_QUERY_KEY = (eventId, registrationId, purchaseId, addOnIds) => {
4382
+ const key = [
4383
+ ...SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY(
4384
+ eventId,
4385
+ registrationId,
4386
+ purchaseId
4387
+ ),
4388
+ "ADD_ONS_INTENT"
4389
+ ];
4390
+ if (addOnIds) {
4391
+ key.push(...addOnIds);
4392
+ }
4393
+ return key;
4394
+ };
4395
+ var GetSelfEventRegistrationPurchaseAddOnsIntent = async ({
4396
+ eventId,
4397
+ registrationId,
4398
+ purchaseId,
4399
+ addOnIds,
4400
+ clientApiParams
4401
+ }) => {
4402
+ const clientApi = await GetClientAPI(clientApiParams);
4403
+ const { data } = await clientApi.get(
4404
+ `/self/events/${eventId}/registration/${registrationId}/registered/purchases/${purchaseId}/addOns/intent`,
4405
+ {
4406
+ params: {
4407
+ addOnIds: addOnIds ? addOnIds.join(",") : ""
4408
+ }
4409
+ }
4410
+ );
4411
+ return data;
4412
+ };
4413
+ var useGetSelfEventRegistrationPurchaseAddOnsIntent = (eventId, registrationId, purchaseId, addOnIds, options = {}) => {
4414
+ const { authenticated } = useConnectedXM();
4415
+ return useConnectedSingleQuery_default(
4416
+ SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_INTENT_QUERY_KEY(
4417
+ eventId,
4418
+ registrationId,
4419
+ purchaseId,
4420
+ addOnIds
4421
+ ),
4422
+ (params) => GetSelfEventRegistrationPurchaseAddOnsIntent({
4423
+ eventId,
4424
+ registrationId,
4425
+ purchaseId,
4426
+ addOnIds,
4427
+ ...params
4428
+ }),
4429
+ {
4430
+ staleTime: Infinity,
4431
+ retry: false,
4432
+ retryOnMount: false,
4433
+ ...options,
4434
+ enabled: !!authenticated && !!eventId && !!registrationId && !!purchaseId && !!addOnIds && (options?.enabled ?? true)
4435
+ }
4436
+ );
4437
+ };
4438
+
4378
4439
  // src/queries/self/subscriptions/useGetSelfSubscriptions.ts
4379
4440
  var SELF_SUBSCRIPTIONS_QUERY_KEY = (status) => {
4380
4441
  const key = [...SELF_QUERY_KEY(), "SUBSCRIPTIONS"];
@@ -5558,6 +5619,34 @@ var useGetInvoice = (invoiceId = "", options = {}) => {
5558
5619
  );
5559
5620
  };
5560
5621
 
5622
+ // src/queries/invoices/useGetInvoiceIntent.ts
5623
+ var SELF_INVOICE_INTENT_QUERY_KEY = (invoiceId) => [
5624
+ ...INVOICE_QUERY_KEY(invoiceId),
5625
+ "INTENT"
5626
+ ];
5627
+ var GetInvoiceIntent = async ({
5628
+ invoiceId,
5629
+ clientApiParams
5630
+ }) => {
5631
+ const clientApi = await GetClientAPI(clientApiParams);
5632
+ const { data } = await clientApi.get(`/invoices/${invoiceId}/intent`);
5633
+ return data;
5634
+ };
5635
+ var useGetInvoiceIntent = (invoiceId, options = {}) => {
5636
+ const { authenticated } = useConnectedXM();
5637
+ return useConnectedSingleQuery_default(
5638
+ SELF_INVOICE_INTENT_QUERY_KEY(invoiceId),
5639
+ (params) => GetInvoiceIntent({ invoiceId, ...params }),
5640
+ {
5641
+ staleTime: Infinity,
5642
+ retry: false,
5643
+ retryOnMount: false,
5644
+ ...options,
5645
+ enabled: !!authenticated && !!invoiceId && (options?.enabled ?? true)
5646
+ }
5647
+ );
5648
+ };
5649
+
5561
5650
  // src/queries/listings/useGetListings.ts
5562
5651
  var LISTINGS_QUERY_KEY = (past) => [
5563
5652
  ...SELF_QUERY_KEY(),
@@ -6382,29 +6471,37 @@ var useCreateEventLead = (options = {}) => {
6382
6471
  return useConnectedMutation(CreateEventLead, options);
6383
6472
  };
6384
6473
 
6385
- // src/mutations/invoices/useCaptureInvoicePayment.ts
6386
- var CaptureInvoicePayment = async ({
6387
- invoiceId,
6388
- intentId,
6474
+ // src/mutations/organization/useCapturePaymentIntent.ts
6475
+ var CapturePaymentIntent = async ({
6476
+ intent,
6389
6477
  clientApiParams,
6390
6478
  queryClient
6391
6479
  }) => {
6392
6480
  const clientApi = await GetClientAPI(clientApiParams);
6393
6481
  const { data } = await clientApi.post(
6394
- `/invoices/${invoiceId}/capture`,
6395
- {
6396
- intentId
6397
- }
6482
+ `/organization/intents/${intent.id}/capture`
6398
6483
  );
6399
6484
  if (queryClient && data.status === "ok") {
6400
- SET_INVOICE_QUERY_DATA(queryClient, [invoiceId], data, [
6401
- clientApiParams.locale
6402
- ]);
6485
+ if (intent.eventId && intent.registrationId) {
6486
+ queryClient.invalidateQueries({
6487
+ predicate: ({ queryKey }) => {
6488
+ if (queryKey[0] === "SELF" && queryKey[1] === "EVENT_REGISTRATION" || queryKey[0] === "SELF" && queryKey[1] === "EVENT" && queryKey[3] === "REGISTRATION") {
6489
+ return true;
6490
+ }
6491
+ return false;
6492
+ }
6493
+ });
6494
+ }
6495
+ if (intent.invoiceId) {
6496
+ queryClient.invalidateQueries({
6497
+ queryKey: INVOICE_QUERY_KEY(intent.invoiceId)
6498
+ });
6499
+ }
6403
6500
  }
6404
6501
  return data;
6405
6502
  };
6406
- var useCaptureInvoicePayment = (options = {}) => {
6407
- return useConnectedMutation_default(CaptureInvoicePayment, options);
6503
+ var useCapturePaymentIntent = (options = {}) => {
6504
+ return useConnectedMutation_default(CapturePaymentIntent, options);
6408
6505
  };
6409
6506
 
6410
6507
  // src/mutations/self/chat/useAddSelfChatChannelMember.ts
@@ -6625,7 +6722,7 @@ var SelectSelfEventRegistrationCoupon = async ({
6625
6722
  clientApiParams.locale
6626
6723
  ]);
6627
6724
  queryClient.removeQueries({
6628
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
6725
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6629
6726
  eventId,
6630
6727
  registrationId
6631
6728
  )
@@ -6649,37 +6746,6 @@ var useSelectSelfEventRegistrationCoupon = (options = {}) => {
6649
6746
  return useConnectedMutation_default(SelectSelfEventRegistrationCoupon, options);
6650
6747
  };
6651
6748
 
6652
- // src/mutations/self/events/registration/draft/useCaptureSelfEventRegistrationPayment.ts
6653
- var CaptureSelfEventRegistrationPayment = async ({
6654
- eventId,
6655
- registrationId,
6656
- clientApiParams,
6657
- queryClient
6658
- }) => {
6659
- const clientApi = await GetClientAPI(clientApiParams);
6660
- const { data } = await clientApi.post(
6661
- `/self/events/${eventId}/registration/${registrationId}/draft/capture`
6662
- );
6663
- if (queryClient && data.status === "ok") {
6664
- SET_SELF_EVENT_REGISTRATION_QUERY_DATA(queryClient, [eventId], data, [
6665
- clientApiParams.locale
6666
- ]);
6667
- queryClient.invalidateQueries({
6668
- queryKey: SELF_EVENT_REGISTRATION_STATUS_QUERY_KEY(eventId)
6669
- });
6670
- ADD_SELF_RELATIONSHIP(
6671
- queryClient,
6672
- [clientApiParams.locale],
6673
- "events",
6674
- eventId
6675
- );
6676
- }
6677
- return data;
6678
- };
6679
- var useCaptureSelfEventRegistrationPayment = (options = {}) => {
6680
- return useConnectedMutation_default(CaptureSelfEventRegistrationPayment, options);
6681
- };
6682
-
6683
6749
  // src/mutations/self/events/registration/draft/useRemoveSelfEventRegistrationCoupon.ts
6684
6750
  var RemoveSelfEventRegistrationCoupon = async ({
6685
6751
  eventId,
@@ -6693,7 +6759,7 @@ var RemoveSelfEventRegistrationCoupon = async ({
6693
6759
  );
6694
6760
  if (queryClient && data.status === "ok") {
6695
6761
  queryClient.removeQueries({
6696
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
6762
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6697
6763
  eventId,
6698
6764
  registrationId
6699
6765
  )
@@ -6734,7 +6800,7 @@ var RemoveSelfEventRegistrationPurchase = async ({
6734
6800
  );
6735
6801
  if (queryClient && data.status === "ok") {
6736
6802
  queryClient.removeQueries({
6737
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
6803
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6738
6804
  eventId,
6739
6805
  registrationId
6740
6806
  )
@@ -6771,7 +6837,7 @@ var AddSelfEventRegistrationPurchase = async ({
6771
6837
  clientApiParams.locale
6772
6838
  ]);
6773
6839
  queryClient.removeQueries({
6774
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
6840
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6775
6841
  eventId,
6776
6842
  registrationId
6777
6843
  )
@@ -6941,7 +7007,7 @@ var AddSelfEventRegistrationPurchaseAddOn = async ({
6941
7007
  clientApiParams.locale
6942
7008
  ]);
6943
7009
  queryClient.removeQueries({
6944
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
7010
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6945
7011
  eventId,
6946
7012
  registrationId
6947
7013
  )
@@ -6974,7 +7040,7 @@ var RemoveSelfEventRegistrationPurchaseAddOn = async ({
6974
7040
  );
6975
7041
  if (queryClient && data.status === "ok") {
6976
7042
  queryClient.removeQueries({
6977
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
7043
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
6978
7044
  eventId,
6979
7045
  registrationId
6980
7046
  )
@@ -7013,7 +7079,7 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
7013
7079
  clientApiParams.locale
7014
7080
  ]);
7015
7081
  queryClient.removeQueries({
7016
- queryKey: SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY(
7082
+ queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
7017
7083
  eventId,
7018
7084
  registrationId
7019
7085
  )
@@ -7132,6 +7198,38 @@ var useTransferPurchase = (options = {}) => {
7132
7198
  return useConnectedMutation_default(TransferPurchase, options);
7133
7199
  };
7134
7200
 
7201
+ // src/mutations/self/events/registration/registered/useAddFreePurchaseAddOns.ts
7202
+ var AddFreePurchaseAddOns = async ({
7203
+ eventId,
7204
+ registrationId,
7205
+ purchaseId,
7206
+ addOnIds,
7207
+ clientApiParams,
7208
+ queryClient
7209
+ }) => {
7210
+ const clientApi = await GetClientAPI(clientApiParams);
7211
+ const { data } = await clientApi.post(
7212
+ `/self/events/${eventId}/registration/${registrationId}/registered/purchases/${purchaseId}/addOns/free`,
7213
+ {
7214
+ addOnIds
7215
+ }
7216
+ );
7217
+ if (queryClient && data.status === "ok") {
7218
+ queryClient.invalidateQueries({
7219
+ predicate: ({ queryKey }) => {
7220
+ if (queryKey[0] === "SELF" && queryKey[1] === "EVENT_REGISTRATION" || queryKey[0] === "SELF" && queryKey[1] === "EVENT" && queryKey[3] === "REGISTRATION") {
7221
+ return true;
7222
+ }
7223
+ return false;
7224
+ }
7225
+ });
7226
+ }
7227
+ return data;
7228
+ };
7229
+ var useAddFreePurchaseAddOns = (options = {}) => {
7230
+ return useConnectedMutation_default(AddFreePurchaseAddOns, options);
7231
+ };
7232
+
7135
7233
  // src/mutations/self/subscriptions/useCancelSubscription.ts
7136
7234
  var CancelSubscription = async ({
7137
7235
  subscriptionId,
@@ -8847,6 +8945,7 @@ var useUploadFile = (options = {}) => {
8847
8945
  AcceptGroupRequest,
8848
8946
  AcceptTransfer,
8849
8947
  AccountType,
8948
+ AddFreePurchaseAddOns,
8850
8949
  AddListingCoHost,
8851
8950
  AddListingSponsor,
8852
8951
  AddSelfChatChannelMember,
@@ -8870,8 +8969,7 @@ var useUploadFile = (options = {}) => {
8870
8969
  CancelGroupRequest,
8871
8970
  CancelSubscription,
8872
8971
  CancelTransfer,
8873
- CaptureInvoicePayment,
8874
- CaptureSelfEventRegistrationPayment,
8972
+ CapturePaymentIntent,
8875
8973
  ChannelFormat,
8876
8974
  CheckinListingRegistrationPurchase,
8877
8975
  CompleteEventActivation,
@@ -9000,6 +9098,7 @@ var useUploadFile = (options = {}) => {
9000
9098
  GetGroupsRequested,
9001
9099
  GetInterests,
9002
9100
  GetInvoice,
9101
+ GetInvoiceIntent,
9003
9102
  GetLevel,
9004
9103
  GetLevelSponsors,
9005
9104
  GetLevels,
@@ -9031,9 +9130,10 @@ var useUploadFile = (options = {}) => {
9031
9130
  GetSelfEventListingReport,
9032
9131
  GetSelfEventListings,
9033
9132
  GetSelfEventRegistration,
9034
- GetSelfEventRegistrationCheckout,
9133
+ GetSelfEventRegistrationIntent,
9035
9134
  GetSelfEventRegistrationPurchase,
9036
9135
  GetSelfEventRegistrationPurchaseAddOns,
9136
+ GetSelfEventRegistrationPurchaseAddOnsIntent,
9037
9137
  GetSelfEventRegistrationPurchaseReservationSections,
9038
9138
  GetSelfEventRegistrationPurchaseSections,
9039
9139
  GetSelfEventRegistrationStatus,
@@ -9122,7 +9222,8 @@ var useUploadFile = (options = {}) => {
9122
9222
  SELF_DELEGATES_QUERY_KEY,
9123
9223
  SELF_DELEGATE_OF_QUERY_KEY,
9124
9224
  SELF_EVENTS_QUERY_KEY,
9125
- SELF_EVENT_REGISTRATION_CHECKOUT_QUERY_KEY,
9225
+ SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY,
9226
+ SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_INTENT_QUERY_KEY,
9126
9227
  SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
9127
9228
  SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
9128
9229
  SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
@@ -9134,6 +9235,7 @@ var useUploadFile = (options = {}) => {
9134
9235
  SELF_GROUP_MEMBERSHIPS_QUERY_KEY,
9135
9236
  SELF_GROUP_MEMBERSHIP_QUERY_KEY,
9136
9237
  SELF_INTERESTS_QUERY_KEY,
9238
+ SELF_INVOICE_INTENT_QUERY_KEY,
9137
9239
  SELF_NOTIFICATIONS_QUERY_KEY,
9138
9240
  SELF_NOTIFICATION_COUNT_QUERY_KEY,
9139
9241
  SELF_PENDING_TRANSFER_QUERY_KEY,
@@ -9296,6 +9398,7 @@ var useUploadFile = (options = {}) => {
9296
9398
  useAcceptGroupInvitation,
9297
9399
  useAcceptGroupRequest,
9298
9400
  useAcceptTransfer,
9401
+ useAddFreePurchaseAddOns,
9299
9402
  useAddListingCoHost,
9300
9403
  useAddListingSponsor,
9301
9404
  useAddSelfChatChannelMember,
@@ -9309,8 +9412,7 @@ var useUploadFile = (options = {}) => {
9309
9412
  useCancelGroupRequest,
9310
9413
  useCancelSubscription,
9311
9414
  useCancelTransfer,
9312
- useCaptureInvoicePayment,
9313
- useCaptureSelfEventRegistrationPayment,
9415
+ useCapturePaymentIntent,
9314
9416
  useCheckinListingRegistrationPurchase,
9315
9417
  useCompleteEventActivation,
9316
9418
  useConnectedInfiniteQuery,
@@ -9398,6 +9500,7 @@ var useUploadFile = (options = {}) => {
9398
9500
  useGetGroupsRequested,
9399
9501
  useGetInterests,
9400
9502
  useGetInvoice,
9503
+ useGetInvoiceIntent,
9401
9504
  useGetLevel,
9402
9505
  useGetLevelSponsors,
9403
9506
  useGetLevels,
@@ -9429,9 +9532,10 @@ var useUploadFile = (options = {}) => {
9429
9532
  useGetSelfEventListings,
9430
9533
  useGetSelfEventListingsRegistrations,
9431
9534
  useGetSelfEventRegistration,
9432
- useGetSelfEventRegistrationCheckout,
9535
+ useGetSelfEventRegistrationIntent,
9433
9536
  useGetSelfEventRegistrationPurchase,
9434
9537
  useGetSelfEventRegistrationPurchaseAddOns,
9538
+ useGetSelfEventRegistrationPurchaseAddOnsIntent,
9435
9539
  useGetSelfEventRegistrationPurchaseReservationSections,
9436
9540
  useGetSelfEventRegistrationPurchaseSections,
9437
9541
  useGetSelfEventRegistrationStatus,