@timum/timum_pdk 2.0.9 → 2.1.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timum/timum_pdk",
3
- "version": "2.0.9",
4
- "next_version": "2.0.9",
3
+ "version": "2.1.0",
4
+ "next_version": "2.1.0",
5
5
  "current_major_version": "2",
6
6
  "license": "MIT",
7
7
  "description": "Contains timum public and general api endpoints",
package/src/timumPdk.js CHANGED
@@ -53,7 +53,7 @@ export const constructUrl = (url, props, plain) => {
53
53
  } else {
54
54
  return `${getBaseUrl()}${url}`;
55
55
  }
56
- };
56
+ };
57
57
 
58
58
  export const timumApiSlice = createApi({
59
59
  reducerPath: "timumApi",
@@ -85,6 +85,19 @@ export const timumApiSlice = createApi({
85
85
  providesTags: (/* result = [], error, arg */) => ["Timeslot"],
86
86
  }),
87
87
 
88
+ specificBookables: builder.query({
89
+ query: (props) => ({
90
+ url: constructUrl(
91
+ `/bookables/specific_bookables`,
92
+ props
93
+ ),
94
+ headers: props.headers,
95
+ method: "post",
96
+ body: props.body,
97
+ }),
98
+ providesTags: (/* result = [], error, arg */) => ["Timeslot"],
99
+ }),
100
+
88
101
  activeProducts: builder.query({
89
102
  query: (props) => ({
90
103
  url: constructUrl(
@@ -96,6 +109,8 @@ export const timumApiSlice = createApi({
96
109
  providesTags: (/* result = [], error, arg */) => ["Product"],
97
110
  }),
98
111
 
112
+
113
+
99
114
  createAppointmentWithConsumer: builder.mutation({
100
115
  query: (props) => ({
101
116
  url: constructUrl(
@@ -319,6 +334,8 @@ export const {
319
334
 
320
335
  useUpcomingBookablesQuery,
321
336
  useLazyUpcomingBookablesQuery,
337
+ useSpecificBookablesQuery,
338
+ useLazySpecificBookablesQuery,
322
339
  useActiveProductsQuery,
323
340
  useLazyActiveProductsQuery,
324
341
  useCreateAppointmentWithConsumerMutation,