@connectedxm/client 0.5.17 → 0.5.19
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.mts +63 -47
- package/dist/index.d.ts +63 -47
- package/dist/index.js +154 -155
- package/dist/index.mjs +132 -134
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57,25 +57,24 @@ __export(src_exports, {
|
|
|
57
57
|
AdvertisementType: () => AdvertisementType,
|
|
58
58
|
AppendInfiniteQuery: () => AppendInfiniteQuery,
|
|
59
59
|
BENEFITS_QUERY_KEY: () => BENEFITS_QUERY_KEY,
|
|
60
|
+
CHANNELS_QUERY_KEY: () => CHANNELS_QUERY_KEY,
|
|
61
|
+
CHANNEL_CONTENTS_QUERY_KEY: () => CHANNEL_CONTENTS_QUERY_KEY,
|
|
62
|
+
CHANNEL_QUERY_KEY: () => CHANNEL_QUERY_KEY,
|
|
60
63
|
CONTENTS_QUERY_KEY: () => CONTENTS_QUERY_KEY,
|
|
61
64
|
CONTENT_ACTIVITIES_QUERY_KEY: () => CONTENT_ACTIVITIES_QUERY_KEY,
|
|
62
65
|
CONTENT_QUERY_KEY: () => CONTENT_QUERY_KEY,
|
|
63
|
-
CONTENT_TYPES_QUERY_KEY: () => CONTENT_TYPES_QUERY_KEY,
|
|
64
|
-
CONTENT_TYPE_CONTENTS_QUERY_KEY: () => CONTENT_TYPE_CONTENTS_QUERY_KEY,
|
|
65
|
-
CONTENT_TYPE_QUERY_KEY: () => CONTENT_TYPE_QUERY_KEY,
|
|
66
66
|
CacheIndividualQueries: () => CacheIndividualQueries,
|
|
67
67
|
CancelEventRegistration: () => CancelEventRegistration,
|
|
68
68
|
CancelGroupInvitation: () => CancelGroupInvitation,
|
|
69
69
|
CancelGroupRequest: () => CancelGroupRequest,
|
|
70
70
|
CancelSubscription: () => CancelSubscription,
|
|
71
71
|
CancelTransfer: () => CancelTransfer,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
CapturePaymentIntent: () => CapturePaymentIntent,
|
|
73
|
+
ChannelFormat: () => ChannelFormat,
|
|
74
74
|
CheckinListingRegistrationPurchase: () => CheckinListingRegistrationPurchase,
|
|
75
75
|
CompleteEventActivation: () => CompleteEventActivation,
|
|
76
76
|
ConnectedXMProvider: () => ConnectedXMProvider,
|
|
77
77
|
ContentGuestType: () => ContentGuestType,
|
|
78
|
-
ContentTypeFormat: () => ContentTypeFormat,
|
|
79
78
|
CouponType: () => CouponType,
|
|
80
79
|
CreateEventLead: () => CreateEventLead,
|
|
81
80
|
CreateGroup: () => CreateGroup,
|
|
@@ -156,12 +155,12 @@ __export(src_exports, {
|
|
|
156
155
|
GetBaseInfiniteQueryKeys: () => GetBaseInfiniteQueryKeys,
|
|
157
156
|
GetBaseSingleQueryKeys: () => GetBaseSingleQueryKeys,
|
|
158
157
|
GetBenefits: () => GetBenefits,
|
|
158
|
+
GetChannel: () => GetChannel,
|
|
159
|
+
GetChannelContents: () => GetChannelContents,
|
|
160
|
+
GetChannels: () => GetChannels,
|
|
159
161
|
GetClientAPI: () => GetClientAPI,
|
|
160
162
|
GetContent: () => GetContent,
|
|
161
163
|
GetContentActivities: () => GetContentActivities,
|
|
162
|
-
GetContentType: () => GetContentType,
|
|
163
|
-
GetContentTypeContents: () => GetContentTypeContents,
|
|
164
|
-
GetContentTypes: () => GetContentTypes,
|
|
165
164
|
GetContents: () => GetContents,
|
|
166
165
|
GetErrorMessage: () => GetErrorMessage,
|
|
167
166
|
GetEvent: () => GetEvent,
|
|
@@ -199,6 +198,7 @@ __export(src_exports, {
|
|
|
199
198
|
GetGroupsRequested: () => GetGroupsRequested,
|
|
200
199
|
GetInterests: () => GetInterests,
|
|
201
200
|
GetInvoice: () => GetInvoice,
|
|
201
|
+
GetInvoiceIntent: () => GetInvoiceIntent,
|
|
202
202
|
GetLevel: () => GetLevel,
|
|
203
203
|
GetLevelSponsors: () => GetLevelSponsors,
|
|
204
204
|
GetLevels: () => GetLevels,
|
|
@@ -230,7 +230,7 @@ __export(src_exports, {
|
|
|
230
230
|
GetSelfEventListingReport: () => GetSelfEventListingReport,
|
|
231
231
|
GetSelfEventListings: () => GetSelfEventListings,
|
|
232
232
|
GetSelfEventRegistration: () => GetSelfEventRegistration,
|
|
233
|
-
|
|
233
|
+
GetSelfEventRegistrationIntent: () => GetSelfEventRegistrationIntent,
|
|
234
234
|
GetSelfEventRegistrationPurchase: () => GetSelfEventRegistrationPurchase,
|
|
235
235
|
GetSelfEventRegistrationPurchaseAddOns: () => GetSelfEventRegistrationPurchaseAddOns,
|
|
236
236
|
GetSelfEventRegistrationPurchaseReservationSections: () => GetSelfEventRegistrationPurchaseReservationSections,
|
|
@@ -321,7 +321,7 @@ __export(src_exports, {
|
|
|
321
321
|
SELF_DELEGATES_QUERY_KEY: () => SELF_DELEGATES_QUERY_KEY,
|
|
322
322
|
SELF_DELEGATE_OF_QUERY_KEY: () => SELF_DELEGATE_OF_QUERY_KEY,
|
|
323
323
|
SELF_EVENTS_QUERY_KEY: () => SELF_EVENTS_QUERY_KEY,
|
|
324
|
-
|
|
324
|
+
SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY: () => SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY,
|
|
325
325
|
SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
|
|
326
326
|
SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
|
|
327
327
|
SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY: () => SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
|
|
@@ -333,6 +333,7 @@ __export(src_exports, {
|
|
|
333
333
|
SELF_GROUP_MEMBERSHIPS_QUERY_KEY: () => SELF_GROUP_MEMBERSHIPS_QUERY_KEY,
|
|
334
334
|
SELF_GROUP_MEMBERSHIP_QUERY_KEY: () => SELF_GROUP_MEMBERSHIP_QUERY_KEY,
|
|
335
335
|
SELF_INTERESTS_QUERY_KEY: () => SELF_INTERESTS_QUERY_KEY,
|
|
336
|
+
SELF_INVOICE_INTENT_QUERY_KEY: () => SELF_INVOICE_INTENT_QUERY_KEY,
|
|
336
337
|
SELF_NOTIFICATIONS_QUERY_KEY: () => SELF_NOTIFICATIONS_QUERY_KEY,
|
|
337
338
|
SELF_NOTIFICATION_COUNT_QUERY_KEY: () => SELF_NOTIFICATION_COUNT_QUERY_KEY,
|
|
338
339
|
SELF_PENDING_TRANSFER_QUERY_KEY: () => SELF_PENDING_TRANSFER_QUERY_KEY,
|
|
@@ -361,12 +362,12 @@ __export(src_exports, {
|
|
|
361
362
|
SET_ACTIVITY_QUERY_DATA: () => SET_ACTIVITY_QUERY_DATA,
|
|
362
363
|
SET_ADVERTISEMENT_QUERY_DATA: () => SET_ADVERTISEMENT_QUERY_DATA,
|
|
363
364
|
SET_BENEFITS_QUERY_DATA: () => SET_BENEFITS_QUERY_DATA,
|
|
365
|
+
SET_CHANNELS_QUERY_DATA: () => SET_CHANNELS_QUERY_DATA,
|
|
366
|
+
SET_CHANNEL_CONTENTS_QUERY_DATA: () => SET_CHANNEL_CONTENTS_QUERY_DATA,
|
|
367
|
+
SET_CHANNEL_QUERY_DATA: () => SET_CHANNEL_QUERY_DATA,
|
|
364
368
|
SET_CONTENTS_QUERY_DATA: () => SET_CONTENTS_QUERY_DATA,
|
|
365
369
|
SET_CONTENT_ACTIVITIES_QUERY_DATA: () => SET_CONTENT_ACTIVITIES_QUERY_DATA,
|
|
366
370
|
SET_CONTENT_QUERY_DATA: () => SET_CONTENT_QUERY_DATA,
|
|
367
|
-
SET_CONTENT_TYPES_QUERY_DATA: () => SET_CONTENT_TYPES_QUERY_DATA,
|
|
368
|
-
SET_CONTENT_TYPE_CONTENTS_QUERY_DATA: () => SET_CONTENT_TYPE_CONTENTS_QUERY_DATA,
|
|
369
|
-
SET_CONTENT_TYPE_QUERY_DATA: () => SET_CONTENT_TYPE_QUERY_DATA,
|
|
370
371
|
SET_EVENTS_FEATURED_QUERY_DATA: () => SET_EVENTS_FEATURED_QUERY_DATA,
|
|
371
372
|
SET_EVENTS_QUERY_DATA: () => SET_EVENTS_QUERY_DATA,
|
|
372
373
|
SET_EVENT_ACTIVITIES_QUERY_DATA: () => SET_EVENT_ACTIVITIES_QUERY_DATA,
|
|
@@ -462,8 +463,8 @@ __export(src_exports, {
|
|
|
462
463
|
isTypeAdvertisement: () => isTypeAdvertisement,
|
|
463
464
|
isTypeAnnouncement: () => isTypeAnnouncement,
|
|
464
465
|
isTypeBenefit: () => isTypeBenefit,
|
|
466
|
+
isTypeChannel: () => isTypeChannel,
|
|
465
467
|
isTypeContent: () => isTypeContent,
|
|
466
|
-
isTypeContentType: () => isTypeContentType,
|
|
467
468
|
isTypeCoupon: () => isTypeCoupon,
|
|
468
469
|
isTypeEvent: () => isTypeEvent,
|
|
469
470
|
isTypeEventActivation: () => isTypeEventActivation,
|
|
@@ -508,8 +509,7 @@ __export(src_exports, {
|
|
|
508
509
|
useCancelGroupRequest: () => useCancelGroupRequest,
|
|
509
510
|
useCancelSubscription: () => useCancelSubscription,
|
|
510
511
|
useCancelTransfer: () => useCancelTransfer,
|
|
511
|
-
|
|
512
|
-
useCaptureSelfEventRegistrationPayment: () => useCaptureSelfEventRegistrationPayment,
|
|
512
|
+
useCapturePaymentIntent: () => useCapturePaymentIntent,
|
|
513
513
|
useCheckinListingRegistrationPurchase: () => useCheckinListingRegistrationPurchase,
|
|
514
514
|
useCompleteEventActivation: () => useCompleteEventActivation,
|
|
515
515
|
useConnectedInfiniteQuery: () => useConnectedInfiniteQuery,
|
|
@@ -556,11 +556,11 @@ __export(src_exports, {
|
|
|
556
556
|
useGetActivityComments: () => useGetActivityComments,
|
|
557
557
|
useGetAdvertisement: () => useGetAdvertisement,
|
|
558
558
|
useGetBenefits: () => useGetBenefits,
|
|
559
|
+
useGetChannel: () => useGetChannel,
|
|
560
|
+
useGetChannelContents: () => useGetChannelContents,
|
|
561
|
+
useGetChannels: () => useGetChannels,
|
|
559
562
|
useGetContent: () => useGetContent,
|
|
560
563
|
useGetContentActivities: () => useGetContentActivities,
|
|
561
|
-
useGetContentType: () => useGetContentType,
|
|
562
|
-
useGetContentTypeContents: () => useGetContentTypeContents,
|
|
563
|
-
useGetContentTypes: () => useGetContentTypes,
|
|
564
564
|
useGetContents: () => useGetContents,
|
|
565
565
|
useGetEvent: () => useGetEvent,
|
|
566
566
|
useGetEventActivities: () => useGetEventActivities,
|
|
@@ -597,6 +597,7 @@ __export(src_exports, {
|
|
|
597
597
|
useGetGroupsRequested: () => useGetGroupsRequested,
|
|
598
598
|
useGetInterests: () => useGetInterests,
|
|
599
599
|
useGetInvoice: () => useGetInvoice,
|
|
600
|
+
useGetInvoiceIntent: () => useGetInvoiceIntent,
|
|
600
601
|
useGetLevel: () => useGetLevel,
|
|
601
602
|
useGetLevelSponsors: () => useGetLevelSponsors,
|
|
602
603
|
useGetLevels: () => useGetLevels,
|
|
@@ -628,7 +629,7 @@ __export(src_exports, {
|
|
|
628
629
|
useGetSelfEventListings: () => useGetSelfEventListings,
|
|
629
630
|
useGetSelfEventListingsRegistrations: () => useGetSelfEventListingsRegistrations,
|
|
630
631
|
useGetSelfEventRegistration: () => useGetSelfEventRegistration,
|
|
631
|
-
|
|
632
|
+
useGetSelfEventRegistrationIntent: () => useGetSelfEventRegistrationIntent,
|
|
632
633
|
useGetSelfEventRegistrationPurchase: () => useGetSelfEventRegistrationPurchase,
|
|
633
634
|
useGetSelfEventRegistrationPurchaseAddOns: () => useGetSelfEventRegistrationPurchaseAddOns,
|
|
634
635
|
useGetSelfEventRegistrationPurchaseReservationSections: () => useGetSelfEventRegistrationPurchaseReservationSections,
|
|
@@ -1016,14 +1017,14 @@ var GroupMembershipRole = /* @__PURE__ */ ((GroupMembershipRole2) => {
|
|
|
1016
1017
|
var isTypeGroupMembership = (groupMembership) => {
|
|
1017
1018
|
return groupMembership.createdAt !== void 0;
|
|
1018
1019
|
};
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
return
|
|
1024
|
-
})(
|
|
1025
|
-
var
|
|
1026
|
-
return
|
|
1020
|
+
var ChannelFormat = /* @__PURE__ */ ((ChannelFormat2) => {
|
|
1021
|
+
ChannelFormat2["article"] = "article";
|
|
1022
|
+
ChannelFormat2["podcast"] = "podcast";
|
|
1023
|
+
ChannelFormat2["video"] = "video";
|
|
1024
|
+
return ChannelFormat2;
|
|
1025
|
+
})(ChannelFormat || {});
|
|
1026
|
+
var isTypeChannel = (channel) => {
|
|
1027
|
+
return channel.priority !== void 0;
|
|
1027
1028
|
};
|
|
1028
1029
|
var isTypeContent = (content) => {
|
|
1029
1030
|
return content.body !== void 0;
|
|
@@ -2821,18 +2822,18 @@ var useGetContentActivities = (contentId = "", params = {}, options = {}) => {
|
|
|
2821
2822
|
);
|
|
2822
2823
|
};
|
|
2823
2824
|
|
|
2824
|
-
// src/queries/contents/
|
|
2825
|
-
var
|
|
2826
|
-
var
|
|
2825
|
+
// src/queries/contents/useGetChannels.ts
|
|
2826
|
+
var CHANNELS_QUERY_KEY = () => ["CHANNELS"];
|
|
2827
|
+
var SET_CHANNELS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
2827
2828
|
client.setQueryData(
|
|
2828
2829
|
[
|
|
2829
|
-
...
|
|
2830
|
+
...CHANNELS_QUERY_KEY(...keyParams),
|
|
2830
2831
|
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
2831
2832
|
],
|
|
2832
2833
|
setFirstPageData(response)
|
|
2833
2834
|
);
|
|
2834
2835
|
};
|
|
2835
|
-
var
|
|
2836
|
+
var GetChannels = async ({
|
|
2836
2837
|
pageParam,
|
|
2837
2838
|
pageSize,
|
|
2838
2839
|
orderBy,
|
|
@@ -2842,7 +2843,7 @@ var GetContentTypes = async ({
|
|
|
2842
2843
|
locale
|
|
2843
2844
|
}) => {
|
|
2844
2845
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
2845
|
-
const { data } = await clientApi.get(`/
|
|
2846
|
+
const { data } = await clientApi.get(`/channels`, {
|
|
2846
2847
|
params: {
|
|
2847
2848
|
page: pageParam || void 0,
|
|
2848
2849
|
pageSize: pageSize || void 0,
|
|
@@ -2854,87 +2855,87 @@ var GetContentTypes = async ({
|
|
|
2854
2855
|
CacheIndividualQueries(
|
|
2855
2856
|
data,
|
|
2856
2857
|
queryClient,
|
|
2857
|
-
(
|
|
2858
|
+
(channelId) => CHANNEL_QUERY_KEY(channelId),
|
|
2858
2859
|
locale
|
|
2859
2860
|
);
|
|
2860
2861
|
}
|
|
2861
2862
|
return data;
|
|
2862
2863
|
};
|
|
2863
|
-
var
|
|
2864
|
+
var useGetChannels = (params = {}, options = {}) => {
|
|
2864
2865
|
return useConnectedInfiniteQuery(
|
|
2865
|
-
|
|
2866
|
-
(params2) =>
|
|
2866
|
+
CHANNELS_QUERY_KEY(),
|
|
2867
|
+
(params2) => GetChannels({ ...params2 }),
|
|
2867
2868
|
params,
|
|
2868
2869
|
options
|
|
2869
2870
|
);
|
|
2870
2871
|
};
|
|
2871
2872
|
|
|
2872
|
-
// src/queries/contents/
|
|
2873
|
-
var
|
|
2874
|
-
...
|
|
2875
|
-
|
|
2873
|
+
// src/queries/contents/useGetChannel.ts
|
|
2874
|
+
var CHANNEL_QUERY_KEY = (channelId) => [
|
|
2875
|
+
...CHANNELS_QUERY_KEY(),
|
|
2876
|
+
channelId
|
|
2876
2877
|
];
|
|
2877
|
-
var
|
|
2878
|
+
var SET_CHANNEL_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
2878
2879
|
client.setQueryData(
|
|
2879
2880
|
[
|
|
2880
|
-
...
|
|
2881
|
+
...CHANNEL_QUERY_KEY(...keyParams),
|
|
2881
2882
|
...GetBaseSingleQueryKeys(...baseKeys)
|
|
2882
2883
|
],
|
|
2883
2884
|
response
|
|
2884
2885
|
);
|
|
2885
2886
|
};
|
|
2886
|
-
var
|
|
2887
|
-
|
|
2887
|
+
var GetChannel = async ({
|
|
2888
|
+
channelId,
|
|
2888
2889
|
clientApiParams
|
|
2889
2890
|
}) => {
|
|
2890
2891
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
2891
|
-
const { data } = await clientApi.get(`/
|
|
2892
|
+
const { data } = await clientApi.get(`/channels/${channelId}`);
|
|
2892
2893
|
return data;
|
|
2893
2894
|
};
|
|
2894
|
-
var
|
|
2895
|
+
var useGetChannel = (channelId = "", options = {}) => {
|
|
2895
2896
|
return useConnectedSingleQuery_default(
|
|
2896
|
-
|
|
2897
|
-
(params) =>
|
|
2897
|
+
CHANNEL_QUERY_KEY(channelId),
|
|
2898
|
+
(params) => GetChannel({ channelId: channelId || "", ...params }),
|
|
2898
2899
|
{
|
|
2899
2900
|
...options,
|
|
2900
|
-
enabled: !!
|
|
2901
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
2901
2902
|
}
|
|
2902
2903
|
);
|
|
2903
2904
|
};
|
|
2904
2905
|
|
|
2905
|
-
// src/queries/contents/
|
|
2906
|
-
var
|
|
2907
|
-
|
|
2906
|
+
// src/queries/contents/useGetChannelContents.ts
|
|
2907
|
+
var CHANNEL_CONTENTS_QUERY_KEY = (channelId) => [
|
|
2908
|
+
...CHANNEL_QUERY_KEY(channelId),
|
|
2909
|
+
"CONTENTS"
|
|
2910
|
+
];
|
|
2911
|
+
var SET_CHANNEL_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
|
|
2908
2912
|
client.setQueryData(
|
|
2909
2913
|
[
|
|
2910
|
-
...
|
|
2914
|
+
...CHANNEL_CONTENTS_QUERY_KEY(...keyParams),
|
|
2911
2915
|
...GetBaseInfiniteQueryKeys(...baseKeys)
|
|
2912
2916
|
],
|
|
2913
2917
|
setFirstPageData(response)
|
|
2914
2918
|
);
|
|
2915
2919
|
};
|
|
2916
|
-
var
|
|
2920
|
+
var GetChannelContents = async ({
|
|
2917
2921
|
pageParam,
|
|
2918
2922
|
pageSize,
|
|
2919
2923
|
orderBy,
|
|
2920
2924
|
search,
|
|
2921
|
-
|
|
2925
|
+
channelId,
|
|
2922
2926
|
queryClient,
|
|
2923
2927
|
clientApiParams,
|
|
2924
2928
|
locale
|
|
2925
2929
|
}) => {
|
|
2926
2930
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
2927
|
-
const { data } = await clientApi.get(
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
orderBy: orderBy || void 0,
|
|
2934
|
-
search: search || void 0
|
|
2935
|
-
}
|
|
2931
|
+
const { data } = await clientApi.get(`/channels/${channelId}/contents`, {
|
|
2932
|
+
params: {
|
|
2933
|
+
page: pageParam || void 0,
|
|
2934
|
+
pageSize: pageSize || void 0,
|
|
2935
|
+
orderBy: orderBy || void 0,
|
|
2936
|
+
search: search || void 0
|
|
2936
2937
|
}
|
|
2937
|
-
);
|
|
2938
|
+
});
|
|
2938
2939
|
if (queryClient && data.status === "ok") {
|
|
2939
2940
|
CacheIndividualQueries(
|
|
2940
2941
|
data,
|
|
@@ -2945,14 +2946,14 @@ var GetContentTypeContents = async ({
|
|
|
2945
2946
|
}
|
|
2946
2947
|
return data;
|
|
2947
2948
|
};
|
|
2948
|
-
var
|
|
2949
|
+
var useGetChannelContents = (channelId = "", params = {}, options = {}) => {
|
|
2949
2950
|
return useConnectedInfiniteQuery(
|
|
2950
|
-
|
|
2951
|
-
(params2) =>
|
|
2951
|
+
CHANNEL_CONTENTS_QUERY_KEY(channelId),
|
|
2952
|
+
(params2) => GetChannelContents({ ...params2, channelId: channelId || "" }),
|
|
2952
2953
|
params,
|
|
2953
2954
|
{
|
|
2954
2955
|
...options,
|
|
2955
|
-
enabled: !!
|
|
2956
|
+
enabled: !!channelId && (options?.enabled ?? true)
|
|
2956
2957
|
}
|
|
2957
2958
|
);
|
|
2958
2959
|
};
|
|
@@ -4086,28 +4087,24 @@ var useGetSelfEventRegistration = (eventId, options = {}) => {
|
|
|
4086
4087
|
);
|
|
4087
4088
|
};
|
|
4088
4089
|
|
|
4089
|
-
// src/queries/self/registration/
|
|
4090
|
-
var
|
|
4091
|
-
|
|
4092
|
-
registrationId,
|
|
4093
|
-
"CHECKOUT"
|
|
4094
|
-
];
|
|
4095
|
-
var GetSelfEventRegistrationCheckout = async ({
|
|
4090
|
+
// src/queries/self/registration/useGetSelfEventRegistrationIntent.ts
|
|
4091
|
+
var SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY = (eventId, registrationId) => [...SELF_EVENT_REGISTRATION_QUERY_KEY(eventId), registrationId, "INTENT"];
|
|
4092
|
+
var GetSelfEventRegistrationIntent = async ({
|
|
4096
4093
|
eventId,
|
|
4097
4094
|
registrationId,
|
|
4098
4095
|
clientApiParams
|
|
4099
4096
|
}) => {
|
|
4100
4097
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
4101
4098
|
const { data } = await clientApi.get(
|
|
4102
|
-
`/self/events/${eventId}/registration/${registrationId}/draft/
|
|
4099
|
+
`/self/events/${eventId}/registration/${registrationId}/draft/intent`
|
|
4103
4100
|
);
|
|
4104
4101
|
return data;
|
|
4105
4102
|
};
|
|
4106
|
-
var
|
|
4103
|
+
var useGetSelfEventRegistrationIntent = (eventId, registrationId = "", options = {}) => {
|
|
4107
4104
|
const { authenticated } = useConnectedXM();
|
|
4108
4105
|
return useConnectedSingleQuery_default(
|
|
4109
|
-
|
|
4110
|
-
(params) =>
|
|
4106
|
+
SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(eventId, registrationId),
|
|
4107
|
+
(params) => GetSelfEventRegistrationIntent({ eventId, registrationId, ...params }),
|
|
4111
4108
|
{
|
|
4112
4109
|
staleTime: Infinity,
|
|
4113
4110
|
retry: false,
|
|
@@ -5558,6 +5555,34 @@ var useGetInvoice = (invoiceId = "", options = {}) => {
|
|
|
5558
5555
|
);
|
|
5559
5556
|
};
|
|
5560
5557
|
|
|
5558
|
+
// src/queries/invoices/useGetInvoiceIntent.ts
|
|
5559
|
+
var SELF_INVOICE_INTENT_QUERY_KEY = (invoiceId) => [
|
|
5560
|
+
...INVOICE_QUERY_KEY(invoiceId),
|
|
5561
|
+
"INTENT"
|
|
5562
|
+
];
|
|
5563
|
+
var GetInvoiceIntent = async ({
|
|
5564
|
+
invoiceId,
|
|
5565
|
+
clientApiParams
|
|
5566
|
+
}) => {
|
|
5567
|
+
const clientApi = await GetClientAPI(clientApiParams);
|
|
5568
|
+
const { data } = await clientApi.get(`/invoices/${invoiceId}/intent`);
|
|
5569
|
+
return data;
|
|
5570
|
+
};
|
|
5571
|
+
var useGetInvoiceIntent = (invoiceId, options = {}) => {
|
|
5572
|
+
const { authenticated } = useConnectedXM();
|
|
5573
|
+
return useConnectedSingleQuery_default(
|
|
5574
|
+
SELF_INVOICE_INTENT_QUERY_KEY(invoiceId),
|
|
5575
|
+
(params) => GetInvoiceIntent({ invoiceId, ...params }),
|
|
5576
|
+
{
|
|
5577
|
+
staleTime: Infinity,
|
|
5578
|
+
retry: false,
|
|
5579
|
+
retryOnMount: false,
|
|
5580
|
+
...options,
|
|
5581
|
+
enabled: !!authenticated && !!invoiceId && (options?.enabled ?? true)
|
|
5582
|
+
}
|
|
5583
|
+
);
|
|
5584
|
+
};
|
|
5585
|
+
|
|
5561
5586
|
// src/queries/listings/useGetListings.ts
|
|
5562
5587
|
var LISTINGS_QUERY_KEY = (past) => [
|
|
5563
5588
|
...SELF_QUERY_KEY(),
|
|
@@ -6382,29 +6407,33 @@ var useCreateEventLead = (options = {}) => {
|
|
|
6382
6407
|
return useConnectedMutation(CreateEventLead, options);
|
|
6383
6408
|
};
|
|
6384
6409
|
|
|
6385
|
-
// src/mutations/
|
|
6386
|
-
var
|
|
6387
|
-
|
|
6388
|
-
intentId,
|
|
6410
|
+
// src/mutations/organization/useCapturePaymentIntent.ts
|
|
6411
|
+
var CapturePaymentIntent = async ({
|
|
6412
|
+
intent,
|
|
6389
6413
|
clientApiParams,
|
|
6390
6414
|
queryClient
|
|
6391
6415
|
}) => {
|
|
6392
6416
|
const clientApi = await GetClientAPI(clientApiParams);
|
|
6393
6417
|
const { data } = await clientApi.post(
|
|
6394
|
-
`/
|
|
6395
|
-
{
|
|
6396
|
-
intentId
|
|
6397
|
-
}
|
|
6418
|
+
`/organization/intents/${intent.id}/capture`
|
|
6398
6419
|
);
|
|
6420
|
+
console.log(!!queryClient, data.status === "ok", intent);
|
|
6399
6421
|
if (queryClient && data.status === "ok") {
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6422
|
+
if (intent.eventId && intent.registrationId) {
|
|
6423
|
+
queryClient.invalidateQueries({
|
|
6424
|
+
queryKey: SELF_EVENT_REGISTRATION_QUERY_KEY(intent.eventId)
|
|
6425
|
+
});
|
|
6426
|
+
}
|
|
6427
|
+
if (intent.invoiceId) {
|
|
6428
|
+
queryClient.invalidateQueries({
|
|
6429
|
+
queryKey: INVOICE_QUERY_KEY(intent.invoiceId)
|
|
6430
|
+
});
|
|
6431
|
+
}
|
|
6403
6432
|
}
|
|
6404
6433
|
return data;
|
|
6405
6434
|
};
|
|
6406
|
-
var
|
|
6407
|
-
return useConnectedMutation_default(
|
|
6435
|
+
var useCapturePaymentIntent = (options = {}) => {
|
|
6436
|
+
return useConnectedMutation_default(CapturePaymentIntent, options);
|
|
6408
6437
|
};
|
|
6409
6438
|
|
|
6410
6439
|
// src/mutations/self/chat/useAddSelfChatChannelMember.ts
|
|
@@ -6625,7 +6654,7 @@ var SelectSelfEventRegistrationCoupon = async ({
|
|
|
6625
6654
|
clientApiParams.locale
|
|
6626
6655
|
]);
|
|
6627
6656
|
queryClient.removeQueries({
|
|
6628
|
-
queryKey:
|
|
6657
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6629
6658
|
eventId,
|
|
6630
6659
|
registrationId
|
|
6631
6660
|
)
|
|
@@ -6649,37 +6678,6 @@ var useSelectSelfEventRegistrationCoupon = (options = {}) => {
|
|
|
6649
6678
|
return useConnectedMutation_default(SelectSelfEventRegistrationCoupon, options);
|
|
6650
6679
|
};
|
|
6651
6680
|
|
|
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
6681
|
// src/mutations/self/events/registration/draft/useRemoveSelfEventRegistrationCoupon.ts
|
|
6684
6682
|
var RemoveSelfEventRegistrationCoupon = async ({
|
|
6685
6683
|
eventId,
|
|
@@ -6693,7 +6691,7 @@ var RemoveSelfEventRegistrationCoupon = async ({
|
|
|
6693
6691
|
);
|
|
6694
6692
|
if (queryClient && data.status === "ok") {
|
|
6695
6693
|
queryClient.removeQueries({
|
|
6696
|
-
queryKey:
|
|
6694
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6697
6695
|
eventId,
|
|
6698
6696
|
registrationId
|
|
6699
6697
|
)
|
|
@@ -6734,7 +6732,7 @@ var RemoveSelfEventRegistrationPurchase = async ({
|
|
|
6734
6732
|
);
|
|
6735
6733
|
if (queryClient && data.status === "ok") {
|
|
6736
6734
|
queryClient.removeQueries({
|
|
6737
|
-
queryKey:
|
|
6735
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6738
6736
|
eventId,
|
|
6739
6737
|
registrationId
|
|
6740
6738
|
)
|
|
@@ -6771,7 +6769,7 @@ var AddSelfEventRegistrationPurchase = async ({
|
|
|
6771
6769
|
clientApiParams.locale
|
|
6772
6770
|
]);
|
|
6773
6771
|
queryClient.removeQueries({
|
|
6774
|
-
queryKey:
|
|
6772
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6775
6773
|
eventId,
|
|
6776
6774
|
registrationId
|
|
6777
6775
|
)
|
|
@@ -6941,7 +6939,7 @@ var AddSelfEventRegistrationPurchaseAddOn = async ({
|
|
|
6941
6939
|
clientApiParams.locale
|
|
6942
6940
|
]);
|
|
6943
6941
|
queryClient.removeQueries({
|
|
6944
|
-
queryKey:
|
|
6942
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6945
6943
|
eventId,
|
|
6946
6944
|
registrationId
|
|
6947
6945
|
)
|
|
@@ -6974,7 +6972,7 @@ var RemoveSelfEventRegistrationPurchaseAddOn = async ({
|
|
|
6974
6972
|
);
|
|
6975
6973
|
if (queryClient && data.status === "ok") {
|
|
6976
6974
|
queryClient.removeQueries({
|
|
6977
|
-
queryKey:
|
|
6975
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
6978
6976
|
eventId,
|
|
6979
6977
|
registrationId
|
|
6980
6978
|
)
|
|
@@ -7013,7 +7011,7 @@ var SelectSelfEventRegistrationPurchaseReservation = async ({
|
|
|
7013
7011
|
clientApiParams.locale
|
|
7014
7012
|
]);
|
|
7015
7013
|
queryClient.removeQueries({
|
|
7016
|
-
queryKey:
|
|
7014
|
+
queryKey: SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY(
|
|
7017
7015
|
eventId,
|
|
7018
7016
|
registrationId
|
|
7019
7017
|
)
|
|
@@ -8858,25 +8856,24 @@ var useUploadFile = (options = {}) => {
|
|
|
8858
8856
|
AdvertisementType,
|
|
8859
8857
|
AppendInfiniteQuery,
|
|
8860
8858
|
BENEFITS_QUERY_KEY,
|
|
8859
|
+
CHANNELS_QUERY_KEY,
|
|
8860
|
+
CHANNEL_CONTENTS_QUERY_KEY,
|
|
8861
|
+
CHANNEL_QUERY_KEY,
|
|
8861
8862
|
CONTENTS_QUERY_KEY,
|
|
8862
8863
|
CONTENT_ACTIVITIES_QUERY_KEY,
|
|
8863
8864
|
CONTENT_QUERY_KEY,
|
|
8864
|
-
CONTENT_TYPES_QUERY_KEY,
|
|
8865
|
-
CONTENT_TYPE_CONTENTS_QUERY_KEY,
|
|
8866
|
-
CONTENT_TYPE_QUERY_KEY,
|
|
8867
8865
|
CacheIndividualQueries,
|
|
8868
8866
|
CancelEventRegistration,
|
|
8869
8867
|
CancelGroupInvitation,
|
|
8870
8868
|
CancelGroupRequest,
|
|
8871
8869
|
CancelSubscription,
|
|
8872
8870
|
CancelTransfer,
|
|
8873
|
-
|
|
8874
|
-
|
|
8871
|
+
CapturePaymentIntent,
|
|
8872
|
+
ChannelFormat,
|
|
8875
8873
|
CheckinListingRegistrationPurchase,
|
|
8876
8874
|
CompleteEventActivation,
|
|
8877
8875
|
ConnectedXMProvider,
|
|
8878
8876
|
ContentGuestType,
|
|
8879
|
-
ContentTypeFormat,
|
|
8880
8877
|
CouponType,
|
|
8881
8878
|
CreateEventLead,
|
|
8882
8879
|
CreateGroup,
|
|
@@ -8957,12 +8954,12 @@ var useUploadFile = (options = {}) => {
|
|
|
8957
8954
|
GetBaseInfiniteQueryKeys,
|
|
8958
8955
|
GetBaseSingleQueryKeys,
|
|
8959
8956
|
GetBenefits,
|
|
8957
|
+
GetChannel,
|
|
8958
|
+
GetChannelContents,
|
|
8959
|
+
GetChannels,
|
|
8960
8960
|
GetClientAPI,
|
|
8961
8961
|
GetContent,
|
|
8962
8962
|
GetContentActivities,
|
|
8963
|
-
GetContentType,
|
|
8964
|
-
GetContentTypeContents,
|
|
8965
|
-
GetContentTypes,
|
|
8966
8963
|
GetContents,
|
|
8967
8964
|
GetErrorMessage,
|
|
8968
8965
|
GetEvent,
|
|
@@ -9000,6 +8997,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9000
8997
|
GetGroupsRequested,
|
|
9001
8998
|
GetInterests,
|
|
9002
8999
|
GetInvoice,
|
|
9000
|
+
GetInvoiceIntent,
|
|
9003
9001
|
GetLevel,
|
|
9004
9002
|
GetLevelSponsors,
|
|
9005
9003
|
GetLevels,
|
|
@@ -9031,7 +9029,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9031
9029
|
GetSelfEventListingReport,
|
|
9032
9030
|
GetSelfEventListings,
|
|
9033
9031
|
GetSelfEventRegistration,
|
|
9034
|
-
|
|
9032
|
+
GetSelfEventRegistrationIntent,
|
|
9035
9033
|
GetSelfEventRegistrationPurchase,
|
|
9036
9034
|
GetSelfEventRegistrationPurchaseAddOns,
|
|
9037
9035
|
GetSelfEventRegistrationPurchaseReservationSections,
|
|
@@ -9122,7 +9120,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9122
9120
|
SELF_DELEGATES_QUERY_KEY,
|
|
9123
9121
|
SELF_DELEGATE_OF_QUERY_KEY,
|
|
9124
9122
|
SELF_EVENTS_QUERY_KEY,
|
|
9125
|
-
|
|
9123
|
+
SELF_EVENT_REGISTRATION_INTENT_QUERY_KEY,
|
|
9126
9124
|
SELF_EVENT_REGISTRATION_PURCHASE_ADD_ONS_QUERY_KEY,
|
|
9127
9125
|
SELF_EVENT_REGISTRATION_PURCHASE_QUERY_KEY,
|
|
9128
9126
|
SELF_EVENT_REGISTRATION_PURCHASE_RESERVATION_SECTIONS_QUERY_KEY,
|
|
@@ -9134,6 +9132,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9134
9132
|
SELF_GROUP_MEMBERSHIPS_QUERY_KEY,
|
|
9135
9133
|
SELF_GROUP_MEMBERSHIP_QUERY_KEY,
|
|
9136
9134
|
SELF_INTERESTS_QUERY_KEY,
|
|
9135
|
+
SELF_INVOICE_INTENT_QUERY_KEY,
|
|
9137
9136
|
SELF_NOTIFICATIONS_QUERY_KEY,
|
|
9138
9137
|
SELF_NOTIFICATION_COUNT_QUERY_KEY,
|
|
9139
9138
|
SELF_PENDING_TRANSFER_QUERY_KEY,
|
|
@@ -9162,12 +9161,12 @@ var useUploadFile = (options = {}) => {
|
|
|
9162
9161
|
SET_ACTIVITY_QUERY_DATA,
|
|
9163
9162
|
SET_ADVERTISEMENT_QUERY_DATA,
|
|
9164
9163
|
SET_BENEFITS_QUERY_DATA,
|
|
9164
|
+
SET_CHANNELS_QUERY_DATA,
|
|
9165
|
+
SET_CHANNEL_CONTENTS_QUERY_DATA,
|
|
9166
|
+
SET_CHANNEL_QUERY_DATA,
|
|
9165
9167
|
SET_CONTENTS_QUERY_DATA,
|
|
9166
9168
|
SET_CONTENT_ACTIVITIES_QUERY_DATA,
|
|
9167
9169
|
SET_CONTENT_QUERY_DATA,
|
|
9168
|
-
SET_CONTENT_TYPES_QUERY_DATA,
|
|
9169
|
-
SET_CONTENT_TYPE_CONTENTS_QUERY_DATA,
|
|
9170
|
-
SET_CONTENT_TYPE_QUERY_DATA,
|
|
9171
9170
|
SET_EVENTS_FEATURED_QUERY_DATA,
|
|
9172
9171
|
SET_EVENTS_QUERY_DATA,
|
|
9173
9172
|
SET_EVENT_ACTIVITIES_QUERY_DATA,
|
|
@@ -9263,8 +9262,8 @@ var useUploadFile = (options = {}) => {
|
|
|
9263
9262
|
isTypeAdvertisement,
|
|
9264
9263
|
isTypeAnnouncement,
|
|
9265
9264
|
isTypeBenefit,
|
|
9265
|
+
isTypeChannel,
|
|
9266
9266
|
isTypeContent,
|
|
9267
|
-
isTypeContentType,
|
|
9268
9267
|
isTypeCoupon,
|
|
9269
9268
|
isTypeEvent,
|
|
9270
9269
|
isTypeEventActivation,
|
|
@@ -9309,8 +9308,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9309
9308
|
useCancelGroupRequest,
|
|
9310
9309
|
useCancelSubscription,
|
|
9311
9310
|
useCancelTransfer,
|
|
9312
|
-
|
|
9313
|
-
useCaptureSelfEventRegistrationPayment,
|
|
9311
|
+
useCapturePaymentIntent,
|
|
9314
9312
|
useCheckinListingRegistrationPurchase,
|
|
9315
9313
|
useCompleteEventActivation,
|
|
9316
9314
|
useConnectedInfiniteQuery,
|
|
@@ -9357,11 +9355,11 @@ var useUploadFile = (options = {}) => {
|
|
|
9357
9355
|
useGetActivityComments,
|
|
9358
9356
|
useGetAdvertisement,
|
|
9359
9357
|
useGetBenefits,
|
|
9358
|
+
useGetChannel,
|
|
9359
|
+
useGetChannelContents,
|
|
9360
|
+
useGetChannels,
|
|
9360
9361
|
useGetContent,
|
|
9361
9362
|
useGetContentActivities,
|
|
9362
|
-
useGetContentType,
|
|
9363
|
-
useGetContentTypeContents,
|
|
9364
|
-
useGetContentTypes,
|
|
9365
9363
|
useGetContents,
|
|
9366
9364
|
useGetEvent,
|
|
9367
9365
|
useGetEventActivities,
|
|
@@ -9398,6 +9396,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9398
9396
|
useGetGroupsRequested,
|
|
9399
9397
|
useGetInterests,
|
|
9400
9398
|
useGetInvoice,
|
|
9399
|
+
useGetInvoiceIntent,
|
|
9401
9400
|
useGetLevel,
|
|
9402
9401
|
useGetLevelSponsors,
|
|
9403
9402
|
useGetLevels,
|
|
@@ -9429,7 +9428,7 @@ var useUploadFile = (options = {}) => {
|
|
|
9429
9428
|
useGetSelfEventListings,
|
|
9430
9429
|
useGetSelfEventListingsRegistrations,
|
|
9431
9430
|
useGetSelfEventRegistration,
|
|
9432
|
-
|
|
9431
|
+
useGetSelfEventRegistrationIntent,
|
|
9433
9432
|
useGetSelfEventRegistrationPurchase,
|
|
9434
9433
|
useGetSelfEventRegistrationPurchaseAddOns,
|
|
9435
9434
|
useGetSelfEventRegistrationPurchaseReservationSections,
|