@connectedxm/admin 2.10.2 → 2.10.4

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
@@ -16926,7 +16926,13 @@ var useGetInterestGroups = (interestId = "", params = {}, options = {}) => {
16926
16926
  };
16927
16927
 
16928
16928
  // src/queries/invoices/useGetInvoices.ts
16929
- var INVOICES_QUERY_KEY = () => ["INVOICES"];
16929
+ var INVOICES_QUERY_KEY = (status, accountId, eventId) => {
16930
+ const key = ["INVOICES"];
16931
+ if (status) key.push(status);
16932
+ if (accountId) key.push(accountId);
16933
+ if (eventId) key.push(eventId);
16934
+ return key;
16935
+ };
16930
16936
  var SET_INVOICES_QUERY_DATA = (client, keyParams, response) => {
16931
16937
  client.setQueryData(INVOICES_QUERY_KEY(...keyParams), response);
16932
16938
  };
@@ -16935,7 +16941,10 @@ var GetInvoices = async ({
16935
16941
  pageSize,
16936
16942
  orderBy,
16937
16943
  search,
16938
- adminApiParams
16944
+ adminApiParams,
16945
+ accountId,
16946
+ eventId,
16947
+ status
16939
16948
  }) => {
16940
16949
  const adminApi = await GetAdminAPI(adminApiParams);
16941
16950
  const { data } = await adminApi.get(`/invoices`, {
@@ -16943,15 +16952,18 @@ var GetInvoices = async ({
16943
16952
  page: pageParam || void 0,
16944
16953
  pageSize: pageSize || void 0,
16945
16954
  orderBy: orderBy || void 0,
16946
- search: search || void 0
16955
+ search: search || void 0,
16956
+ status: status || void 0,
16957
+ accountId: accountId || void 0,
16958
+ eventId: eventId || void 0
16947
16959
  }
16948
16960
  });
16949
16961
  return data;
16950
16962
  };
16951
- var useGetInvoices = (params = {}, options = {}) => {
16963
+ var useGetInvoices = (status, accountId, eventId, params = {}, options = {}) => {
16952
16964
  return useConnectedInfiniteQuery(
16953
- INVOICES_QUERY_KEY(),
16954
- (params2) => GetInvoices(params2),
16965
+ INVOICES_QUERY_KEY(status, accountId, eventId),
16966
+ (params2) => GetInvoices({ ...params2, accountId, eventId, status }),
16955
16967
  params,
16956
16968
  options,
16957
16969
  "invoices"