@timum/timum_pdk 1.0.11 → 1.0.13
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 +21 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export const timumApiSlice = createApi({
|
|
|
53
53
|
`/resources/${props.channelOrResourceId}/upcoming_bookables`,
|
|
54
54
|
props
|
|
55
55
|
),
|
|
56
|
+
headers: props.headers,
|
|
56
57
|
}),
|
|
57
58
|
providesTags: (/* result = [], error, arg */) => ["Timeslot"],
|
|
58
59
|
}),
|
|
@@ -63,6 +64,7 @@ export const timumApiSlice = createApi({
|
|
|
63
64
|
`/resources/${props.channelOrResourceId}/active_products`,
|
|
64
65
|
props
|
|
65
66
|
),
|
|
67
|
+
headers: props.headers,
|
|
66
68
|
}),
|
|
67
69
|
providesTags: (/* result = [], error, arg */) => ["Product"],
|
|
68
70
|
}),
|
|
@@ -75,6 +77,19 @@ export const timumApiSlice = createApi({
|
|
|
75
77
|
),
|
|
76
78
|
method: "post",
|
|
77
79
|
body: props.body,
|
|
80
|
+
headers: props.headers,
|
|
81
|
+
}),
|
|
82
|
+
invalidatesTags: (/* result, error, arg */) => [{ type: "Timeslot" }],
|
|
83
|
+
}),
|
|
84
|
+
|
|
85
|
+
removeCustomerFromAppointment: builder.mutation({
|
|
86
|
+
query: (props) => ({
|
|
87
|
+
url: constructUrl(
|
|
88
|
+
`/customers/${props.customersId}/appointments/${props.appointmentId}`,
|
|
89
|
+
props
|
|
90
|
+
),
|
|
91
|
+
method: "delete",
|
|
92
|
+
headers: props.headers,
|
|
78
93
|
}),
|
|
79
94
|
invalidatesTags: (/* result, error, arg */) => [{ type: "Timeslot" }],
|
|
80
95
|
}),
|
|
@@ -104,6 +119,7 @@ export const timumApiSlice = createApi({
|
|
|
104
119
|
`/resources/${props.channelOrResourceId}/public_data`,
|
|
105
120
|
props
|
|
106
121
|
),
|
|
122
|
+
headers: props.headers,
|
|
107
123
|
}),
|
|
108
124
|
}),
|
|
109
125
|
|
|
@@ -113,8 +129,9 @@ export const timumApiSlice = createApi({
|
|
|
113
129
|
`/crms/${props.crmSlug}/resources/${props.channelOrResourceId}/customers/${props.personId}/identify`,
|
|
114
130
|
props
|
|
115
131
|
),
|
|
132
|
+
headers: props.headers,
|
|
116
133
|
}),
|
|
117
|
-
keepUnusedDataFor: 9999999, // once
|
|
134
|
+
keepUnusedDataFor: 9999999, // once identified it's not going to change
|
|
118
135
|
}),
|
|
119
136
|
|
|
120
137
|
/**
|
|
@@ -135,6 +152,7 @@ export const timumApiSlice = createApi({
|
|
|
135
152
|
),
|
|
136
153
|
method: "post",
|
|
137
154
|
body: props.body,
|
|
155
|
+
headers: props.headers,
|
|
138
156
|
}),
|
|
139
157
|
}),
|
|
140
158
|
|
|
@@ -151,6 +169,7 @@ export const timumApiSlice = createApi({
|
|
|
151
169
|
),
|
|
152
170
|
method: "post",
|
|
153
171
|
body: props.body,
|
|
172
|
+
headers: props.headers,
|
|
154
173
|
}),
|
|
155
174
|
}),
|
|
156
175
|
|
|
@@ -260,6 +279,7 @@ export const {
|
|
|
260
279
|
useLazyPublicDataQuery,
|
|
261
280
|
useReserveAppoinmentMutation,
|
|
262
281
|
useRevokeAppointmentReservationMutation,
|
|
282
|
+
useRemoveCustomerFromAppointmentMutation,
|
|
263
283
|
|
|
264
284
|
// ##########################################
|
|
265
285
|
// # CRM API requests (general api)
|