@connectedxm/admin 6.9.4 → 6.9.5

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
@@ -1154,8 +1154,10 @@ __export(index_exports, {
1154
1154
  GetSeries: () => GetSeries,
1155
1155
  GetSeriesEvents: () => GetSeriesEvents,
1156
1156
  GetSeriesList: () => GetSeriesList,
1157
+ GetSeriesPayments: () => GetSeriesPayments,
1157
1158
  GetSeriesRegistration: () => GetSeriesRegistration,
1158
1159
  GetSeriesRegistrationPasses: () => GetSeriesRegistrationPasses,
1160
+ GetSeriesRegistrationPayments: () => GetSeriesRegistrationPayments,
1159
1161
  GetSeriesRegistrations: () => GetSeriesRegistrations,
1160
1162
  GetStreamInput: () => GetStreamInput,
1161
1163
  GetStreamInputOutput: () => GetStreamInputOutput,
@@ -1444,9 +1446,11 @@ __export(index_exports, {
1444
1446
  SELF_QUERY_KEY: () => SELF_QUERY_KEY,
1445
1447
  SERIES_EVENTS_QUERY_KEY: () => SERIES_EVENTS_QUERY_KEY,
1446
1448
  SERIES_LIST_QUERY_KEY: () => SERIES_LIST_QUERY_KEY,
1449
+ SERIES_PAYMENTS_QUERY_KEY: () => SERIES_PAYMENTS_QUERY_KEY,
1447
1450
  SERIES_QUERY_KEY: () => SERIES_QUERY_KEY,
1448
1451
  SERIES_REGISTRATIONS_QUERY_KEY: () => SERIES_REGISTRATIONS_QUERY_KEY,
1449
1452
  SERIES_REGISTRATION_PASSES_QUERY_KEY: () => SERIES_REGISTRATION_PASSES_QUERY_KEY,
1453
+ SERIES_REGISTRATION_PAYMENTS_QUERY_KEY: () => SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
1450
1454
  SERIES_REGISTRATION_QUERY_KEY: () => SERIES_REGISTRATION_QUERY_KEY,
1451
1455
  SET_ACCOUNTS_QUERY_DATA: () => SET_ACCOUNTS_QUERY_DATA,
1452
1456
  SET_ACCOUNT_ACTIVITIES_QUERY_DATA: () => SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
@@ -2983,8 +2987,10 @@ __export(index_exports, {
2983
2987
  useGetSeries: () => useGetSeries,
2984
2988
  useGetSeriesEvents: () => useGetSeriesEvents,
2985
2989
  useGetSeriesList: () => useGetSeriesList,
2990
+ useGetSeriesPayments: () => useGetSeriesPayments,
2986
2991
  useGetSeriesRegistration: () => useGetSeriesRegistration,
2987
2992
  useGetSeriesRegistrationPasses: () => useGetSeriesRegistrationPasses,
2993
+ useGetSeriesRegistrationPayments: () => useGetSeriesRegistrationPayments,
2988
2994
  useGetSeriesRegistrations: () => useGetSeriesRegistrations,
2989
2995
  useGetStreamInput: () => useGetStreamInput,
2990
2996
  useGetStreamInputOutput: () => useGetStreamInputOutput,
@@ -3855,6 +3861,7 @@ var PaymentLineItemType = /* @__PURE__ */ ((PaymentLineItemType2) => {
3855
3861
  PaymentLineItemType2["invoice"] = "invoice";
3856
3862
  PaymentLineItemType2["booking"] = "booking";
3857
3863
  PaymentLineItemType2["coupon"] = "coupon";
3864
+ PaymentLineItemType2["series"] = "series";
3858
3865
  PaymentLineItemType2["refund"] = "refund";
3859
3866
  return PaymentLineItemType2;
3860
3867
  })(PaymentLineItemType || {});
@@ -20966,6 +20973,43 @@ var useGetSeriesRegistrationPasses = (seriesId = "", registrationId = "", params
20966
20973
  );
20967
20974
  };
20968
20975
 
20976
+ // src/queries/series/registrations/useGetSeriesRegistrationPayments.ts
20977
+ var SERIES_REGISTRATION_PAYMENTS_QUERY_KEY = (seriesId, registrationId) => [...SERIES_REGISTRATION_QUERY_KEY(seriesId, registrationId), "PAYMENTS"];
20978
+ var GetSeriesRegistrationPayments = async ({
20979
+ seriesId,
20980
+ registrationId,
20981
+ pageParam,
20982
+ pageSize,
20983
+ orderBy,
20984
+ search,
20985
+ adminApiParams
20986
+ }) => {
20987
+ const adminApi = await GetAdminAPI(adminApiParams);
20988
+ const { data } = await adminApi.get(
20989
+ `/series/${seriesId}/registrations/${registrationId}/payments`,
20990
+ {
20991
+ params: {
20992
+ page: pageParam || void 0,
20993
+ pageSize: pageSize || void 0,
20994
+ orderBy: orderBy || void 0,
20995
+ search: search || void 0
20996
+ }
20997
+ }
20998
+ );
20999
+ return data;
21000
+ };
21001
+ var useGetSeriesRegistrationPayments = (seriesId = "", registrationId = "", params = {}, options = {}) => {
21002
+ return useConnectedInfiniteQuery(
21003
+ SERIES_REGISTRATION_PAYMENTS_QUERY_KEY(seriesId, registrationId),
21004
+ (params2) => GetSeriesRegistrationPayments({ seriesId, registrationId, ...params2 }),
21005
+ params,
21006
+ {
21007
+ ...options,
21008
+ enabled: !!seriesId && !!registrationId && (options?.enabled ?? true)
21009
+ }
21010
+ );
21011
+ };
21012
+
20969
21013
  // src/queries/series/useGetSeriesEvents.ts
20970
21014
  var SERIES_EVENTS_QUERY_KEY = (seriesId) => [
20971
21015
  ...EVENT_QUERY_KEY(seriesId),
@@ -21008,6 +21052,45 @@ var useGetSeriesEvents = (seriesId = "", params = {}, options = {}) => {
21008
21052
  );
21009
21053
  };
21010
21054
 
21055
+ // src/queries/series/useGetSeriesPayments.ts
21056
+ var SERIES_PAYMENTS_QUERY_KEY = (seriesId) => [
21057
+ ...SERIES_QUERY_KEY(seriesId),
21058
+ "PAYMENTS"
21059
+ ];
21060
+ var GetSeriesPayments = async ({
21061
+ seriesId,
21062
+ pageParam,
21063
+ pageSize,
21064
+ orderBy,
21065
+ search,
21066
+ adminApiParams
21067
+ }) => {
21068
+ const adminApi = await GetAdminAPI(adminApiParams);
21069
+ const { data } = await adminApi.get(`/series/${seriesId}/payments`, {
21070
+ params: {
21071
+ page: pageParam || void 0,
21072
+ pageSize: pageSize || void 0,
21073
+ orderBy: orderBy || void 0,
21074
+ search: search || void 0
21075
+ }
21076
+ });
21077
+ return data;
21078
+ };
21079
+ var useGetSeriesPayments = (seriesId = "", params = {}, options = {}) => {
21080
+ return useConnectedInfiniteQuery(
21081
+ SERIES_PAYMENTS_QUERY_KEY(seriesId),
21082
+ (params2) => GetSeriesPayments({
21083
+ seriesId,
21084
+ ...params2
21085
+ }),
21086
+ params,
21087
+ {
21088
+ ...options,
21089
+ enabled: !!seriesId && (options.enabled ?? true)
21090
+ }
21091
+ );
21092
+ };
21093
+
21011
21094
  // src/queries/sponsors/useGetLevels.ts
21012
21095
  var LEVELS_QUERY_KEY = () => ["LEVELS"];
21013
21096
  var SET_LEVELS_QUERY_DATA = (client, keyParams, response) => {
@@ -41178,8 +41261,10 @@ var useUpdateTier = (options = {}) => {
41178
41261
  GetSeries,
41179
41262
  GetSeriesEvents,
41180
41263
  GetSeriesList,
41264
+ GetSeriesPayments,
41181
41265
  GetSeriesRegistration,
41182
41266
  GetSeriesRegistrationPasses,
41267
+ GetSeriesRegistrationPayments,
41183
41268
  GetSeriesRegistrations,
41184
41269
  GetStreamInput,
41185
41270
  GetStreamInputOutput,
@@ -41468,9 +41553,11 @@ var useUpdateTier = (options = {}) => {
41468
41553
  SELF_QUERY_KEY,
41469
41554
  SERIES_EVENTS_QUERY_KEY,
41470
41555
  SERIES_LIST_QUERY_KEY,
41556
+ SERIES_PAYMENTS_QUERY_KEY,
41471
41557
  SERIES_QUERY_KEY,
41472
41558
  SERIES_REGISTRATIONS_QUERY_KEY,
41473
41559
  SERIES_REGISTRATION_PASSES_QUERY_KEY,
41560
+ SERIES_REGISTRATION_PAYMENTS_QUERY_KEY,
41474
41561
  SERIES_REGISTRATION_QUERY_KEY,
41475
41562
  SET_ACCOUNTS_QUERY_DATA,
41476
41563
  SET_ACCOUNT_ACTIVITIES_QUERY_DATA,
@@ -43007,8 +43094,10 @@ var useUpdateTier = (options = {}) => {
43007
43094
  useGetSeries,
43008
43095
  useGetSeriesEvents,
43009
43096
  useGetSeriesList,
43097
+ useGetSeriesPayments,
43010
43098
  useGetSeriesRegistration,
43011
43099
  useGetSeriesRegistrationPasses,
43100
+ useGetSeriesRegistrationPayments,
43012
43101
  useGetSeriesRegistrations,
43013
43102
  useGetStreamInput,
43014
43103
  useGetStreamInputOutput,