@timum/timum_pdk 2.1.0 → 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.1.0",
4
- "next_version": "2.1.0",
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
@@ -109,7 +109,18 @@ export const timumApiSlice = createApi({
109
109
  providesTags: (/* result = [], error, arg */) => ["Product"],
110
110
  }),
111
111
 
112
-
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
+ }),
113
124
 
114
125
  createAppointmentWithConsumer: builder.mutation({
115
126
  query: (props) => ({
@@ -338,6 +349,8 @@ export const {
338
349
  useLazySpecificBookablesQuery,
339
350
  useActiveProductsQuery,
340
351
  useLazyActiveProductsQuery,
352
+ useSpecificProductsQuery,
353
+ useLazySpecificProductsQuery,
341
354
  useCreateAppointmentWithConsumerMutation,
342
355
  useIdentifyCustomerQuery,
343
356
  useLazyIdentifyCustomerQuery,