@timum/timum_pdk 2.0.1 → 2.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timum/timum_pdk",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "description": "Contains timum public and general api endpoints",
6
6
  "homepage": "https://www.timum.de",
package/src/index.js CHANGED
@@ -107,10 +107,7 @@ export const timumApiSlice = createApi({
107
107
  query: (props) => {
108
108
  return {
109
109
  url: constructUrl(`/auth/cookieless/login`, props, true),
110
- headers: {
111
- "Content-Type": "application/x-www-form-urlencoded",
112
- ...props.headers,
113
- },
110
+ headers: props.headers,
114
111
  method: "post",
115
112
  body: props.body,
116
113
  };
@@ -294,7 +291,9 @@ export const {
294
291
  // ##########################################
295
292
 
296
293
  useUpcomingBookablesQuery,
294
+ useLazyUpcomingBookablesQuery,
297
295
  useActiveProductsQuery,
296
+ useLazyActiveProductsQuery,
298
297
  useCreateAppointmentWithConsumerMutation,
299
298
  useIdentifyCustomerQuery,
300
299
  useLazyIdentifyCustomerQuery,
@@ -311,9 +310,12 @@ export const {
311
310
  // ##########################################
312
311
  useCreateAccountMutation,
313
312
  useGetAccountQuery,
313
+ useLazyGetAccountQuery,
314
314
  useGetProvidersQuery,
315
+ useLazyGetProvidersQuery,
315
316
  useCreateProviderMutation,
316
317
  // useLoginUserViaApiQuery,
317
318
  useCreateUserMutation,
318
319
  useGetUserQuery,
320
+ useLazyGetUserQuery
319
321
  } = timumApiSlice;