@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.js CHANGED
@@ -13883,7 +13883,13 @@ var useGetInterestGroups = (interestId = "", params = {}, options = {}) => {
13883
13883
  };
13884
13884
 
13885
13885
  // src/queries/invoices/useGetInvoices.ts
13886
- var INVOICES_QUERY_KEY = () => ["INVOICES"];
13886
+ var INVOICES_QUERY_KEY = (status, accountId, eventId) => {
13887
+ const key = ["INVOICES"];
13888
+ if (status) key.push(status);
13889
+ if (accountId) key.push(accountId);
13890
+ if (eventId) key.push(eventId);
13891
+ return key;
13892
+ };
13887
13893
  var SET_INVOICES_QUERY_DATA = (client, keyParams, response) => {
13888
13894
  client.setQueryData(INVOICES_QUERY_KEY(...keyParams), response);
13889
13895
  };
@@ -13892,7 +13898,10 @@ var GetInvoices = async ({
13892
13898
  pageSize,
13893
13899
  orderBy,
13894
13900
  search,
13895
- adminApiParams
13901
+ adminApiParams,
13902
+ accountId,
13903
+ eventId,
13904
+ status
13896
13905
  }) => {
13897
13906
  const adminApi = await GetAdminAPI(adminApiParams);
13898
13907
  const { data } = await adminApi.get(`/invoices`, {
@@ -13900,15 +13909,18 @@ var GetInvoices = async ({
13900
13909
  page: pageParam || void 0,
13901
13910
  pageSize: pageSize || void 0,
13902
13911
  orderBy: orderBy || void 0,
13903
- search: search || void 0
13912
+ search: search || void 0,
13913
+ status: status || void 0,
13914
+ accountId: accountId || void 0,
13915
+ eventId: eventId || void 0
13904
13916
  }
13905
13917
  });
13906
13918
  return data;
13907
13919
  };
13908
- var useGetInvoices = (params = {}, options = {}) => {
13920
+ var useGetInvoices = (status, accountId, eventId, params = {}, options = {}) => {
13909
13921
  return useConnectedInfiniteQuery(
13910
- INVOICES_QUERY_KEY(),
13911
- (params2) => GetInvoices(params2),
13922
+ INVOICES_QUERY_KEY(status, accountId, eventId),
13923
+ (params2) => GetInvoices({ ...params2, accountId, eventId, status }),
13912
13924
  params,
13913
13925
  options,
13914
13926
  "invoices"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "2.10.2",
3
+ "version": "2.10.4",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",