@timum/timum_pdk 1.0.11 → 1.0.12

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 +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timum/timum_pdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
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
@@ -79,6 +79,18 @@ export const timumApiSlice = createApi({
79
79
  invalidatesTags: (/* result, error, arg */) => [{ type: "Timeslot" }],
80
80
  }),
81
81
 
82
+ removeCustomerFromAppointment: builder.mutation({
83
+ query: (props) => ({
84
+ url: constructUrl(
85
+ `/customers/${props.customersId}/appointments/${props.appointmentId}`,
86
+ props
87
+ ),
88
+ method: "delete",
89
+ headers: props.headers,
90
+ }),
91
+ invalidatesTags: (/* result, error, arg */) => [{ type: "Timeslot" }],
92
+ }),
93
+
82
94
  /**
83
95
  * Returns an object with the following makeup:
84
96
  * {
@@ -260,6 +272,7 @@ export const {
260
272
  useLazyPublicDataQuery,
261
273
  useReserveAppoinmentMutation,
262
274
  useRevokeAppointmentReservationMutation,
275
+ useRemoveCustomerFromAppointmentMutation,
263
276
 
264
277
  // ##########################################
265
278
  // # CRM API requests (general api)