@connectedxm/admin 1.4.27 → 1.4.29

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 CHANGED
@@ -4901,12 +4901,12 @@ interface GetAccountPushDeviceProps extends SingleQueryParams {
4901
4901
  * @category Queries
4902
4902
  * @group Accounts
4903
4903
  */
4904
- declare const GetAccountPushDevice: ({ accountId, pushDeviceId, adminApiParams, }: GetAccountPushDeviceProps) => Promise<ConnectedXMResponse<Lead>>;
4904
+ declare const GetAccountPushDevice: ({ accountId, pushDeviceId, adminApiParams, }: GetAccountPushDeviceProps) => Promise<ConnectedXMResponse<PushDevice>>;
4905
4905
  /**
4906
4906
  * @category Hooks
4907
4907
  * @group Accounts
4908
4908
  */
4909
- declare const useGetAccountPushDevice: (accountId?: string, pushDeviceId?: string, options?: SingleQueryOptions<ReturnType<typeof GetAccountPushDevice>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Lead>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
4909
+ declare const useGetAccountPushDevice: (accountId?: string, pushDeviceId?: string, options?: SingleQueryOptions<ReturnType<typeof GetAccountPushDevice>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<PushDevice>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
4910
4910
 
4911
4911
  /**
4912
4912
  * @category Keys
package/dist/index.d.ts CHANGED
@@ -4901,12 +4901,12 @@ interface GetAccountPushDeviceProps extends SingleQueryParams {
4901
4901
  * @category Queries
4902
4902
  * @group Accounts
4903
4903
  */
4904
- declare const GetAccountPushDevice: ({ accountId, pushDeviceId, adminApiParams, }: GetAccountPushDeviceProps) => Promise<ConnectedXMResponse<Lead>>;
4904
+ declare const GetAccountPushDevice: ({ accountId, pushDeviceId, adminApiParams, }: GetAccountPushDeviceProps) => Promise<ConnectedXMResponse<PushDevice>>;
4905
4905
  /**
4906
4906
  * @category Hooks
4907
4907
  * @group Accounts
4908
4908
  */
4909
- declare const useGetAccountPushDevice: (accountId?: string, pushDeviceId?: string, options?: SingleQueryOptions<ReturnType<typeof GetAccountPushDevice>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<Lead>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
4909
+ declare const useGetAccountPushDevice: (accountId?: string, pushDeviceId?: string, options?: SingleQueryOptions<ReturnType<typeof GetAccountPushDevice>>) => _tanstack_react_query.UseQueryResult<ConnectedXMResponse<PushDevice>, axios.AxiosError<ConnectedXMResponse<any>, any>>;
4910
4910
 
4911
4911
  /**
4912
4912
  * @category Keys
package/dist/index.js CHANGED
@@ -16605,10 +16605,10 @@ var DeleteAccountPushDevice = async ({
16605
16605
  );
16606
16606
  if (queryClient && data.status === "ok") {
16607
16607
  queryClient.invalidateQueries({
16608
- queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
16608
+ queryKey: ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId)
16609
16609
  });
16610
16610
  queryClient.invalidateQueries({
16611
- queryKey: ACCOUNT_LEAD_QUERY_KEY(accountId, pushDeviceId)
16611
+ queryKey: ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId)
16612
16612
  });
16613
16613
  }
16614
16614
  return data;
package/dist/index.mjs CHANGED
@@ -14327,10 +14327,10 @@ var DeleteAccountPushDevice = async ({
14327
14327
  );
14328
14328
  if (queryClient && data.status === "ok") {
14329
14329
  queryClient.invalidateQueries({
14330
- queryKey: ACCOUNT_LEADS_QUERY_KEY(accountId)
14330
+ queryKey: ACCOUNT_PUSH_DEVICES_QUERY_KEY(accountId)
14331
14331
  });
14332
14332
  queryClient.invalidateQueries({
14333
- queryKey: ACCOUNT_LEAD_QUERY_KEY(accountId, pushDeviceId)
14333
+ queryKey: ACCOUNT_PUSH_DEVICE_QUERY_KEY(accountId, pushDeviceId)
14334
14334
  });
14335
14335
  }
14336
14336
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "1.4.27",
3
+ "version": "1.4.29",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {