@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.
- package/package.json +1 -1
- package/src/index.js +13 -0
package/package.json
CHANGED
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)
|