@timum/timum_pdk 2.0.9 → 2.2.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.2.0",
4
+ "next_version": "2.2.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,19 @@ export const timumApiSlice = createApi({
96
109
  providesTags: (/* result = [], error, arg */) => ["Product"],
97
110
  }),
98
111
 
112
+ specificProducts: builder.query({
113
+ query: (props) => ({
114
+ url: constructUrl(
115
+ `/products/specific_products`,
116
+ props
117
+ ),
118
+ headers: props.headers,
119
+ method: "post",
120
+ body: props.body,
121
+ }),
122
+ providesTags: (/* result = [], error, arg */) => ["Product"],
123
+ }),
124
+
99
125
  createAppointmentWithConsumer: builder.mutation({
100
126
  query: (props) => ({
101
127
  url: constructUrl(
@@ -319,8 +345,12 @@ export const {
319
345
 
320
346
  useUpcomingBookablesQuery,
321
347
  useLazyUpcomingBookablesQuery,
348
+ useSpecificBookablesQuery,
349
+ useLazySpecificBookablesQuery,
322
350
  useActiveProductsQuery,
323
351
  useLazyActiveProductsQuery,
352
+ useSpecificProductsQuery,
353
+ useLazySpecificProductsQuery,
324
354
  useCreateAppointmentWithConsumerMutation,
325
355
  useIdentifyCustomerQuery,
326
356
  useLazyIdentifyCustomerQuery,