@timum/timum_pdk 3.0.0 → 3.1.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/.eslintrc +4 -9
- package/dist/main.js +4 -57
- package/package.json +5 -6
- package/rollup.config.js +5 -3
- package/src/timumPdk.js +17 -4
- package/.yarn/install-state.gz +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timum/timum_pdk",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"next_version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"next_version": "3.1.0",
|
|
5
5
|
"current_major_version": "3",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Contains timum public and general api endpoints",
|
|
@@ -53,13 +53,12 @@
|
|
|
53
53
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
54
54
|
"@rollup/plugin-terser": "^0.4.0",
|
|
55
55
|
"eslint": "^8.52.0",
|
|
56
|
-
"eslint-config-prettier": "^
|
|
56
|
+
"eslint-config-prettier": "^9.1.2",
|
|
57
57
|
"eslint-plugin-prettier": "^5.0.0",
|
|
58
58
|
"eslint-plugin-react": "^7.30.0",
|
|
59
|
-
"eslint-plugin-
|
|
59
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
60
|
+
"eslint-plugin-storybook": "^9.1.4",
|
|
60
61
|
"prettier": "^3.3.1",
|
|
61
|
-
"prettier-eslint": "^16.3.0",
|
|
62
|
-
"prettier-eslint-cli": "^7.1.0",
|
|
63
62
|
"rollup": "^3.7.5",
|
|
64
63
|
"rollup-plugin-peer-deps-external": "^2.2.4"
|
|
65
64
|
}
|
package/rollup.config.js
CHANGED
|
@@ -29,12 +29,14 @@ module.exports = {
|
|
|
29
29
|
plugins: [
|
|
30
30
|
peerDepsExternal(),
|
|
31
31
|
resolve(),
|
|
32
|
+
commonjs({
|
|
33
|
+
strictRequires: true,
|
|
34
|
+
}),
|
|
32
35
|
babel({
|
|
33
36
|
exclude: 'node_modules/**',
|
|
34
37
|
babelHelpers: 'runtime',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
strictRequires: true,
|
|
38
|
+
presets: ["@babel/preset-env"],
|
|
39
|
+
plugins: ["@babel/plugin-transform-runtime"]
|
|
38
40
|
}),
|
|
39
41
|
terser({
|
|
40
42
|
sourceMap: true, // doesn't work for some reason
|
package/src/timumPdk.js
CHANGED
|
@@ -73,6 +73,18 @@ export const timumApiSlice = createApi({
|
|
|
73
73
|
// # ConsumerAPI v2
|
|
74
74
|
// ##########################################
|
|
75
75
|
|
|
76
|
+
cancelableBookable: builder.query({
|
|
77
|
+
query: (props) => ({
|
|
78
|
+
url: constructUrl(
|
|
79
|
+
`/bookables/cancelable_bookable`,
|
|
80
|
+
props,
|
|
81
|
+
),
|
|
82
|
+
method: 'get',
|
|
83
|
+
headers: props.headers,
|
|
84
|
+
}),
|
|
85
|
+
providesTags: (/* result = [], error, arg */) => ['Timeslot'],
|
|
86
|
+
}),
|
|
87
|
+
|
|
76
88
|
upcomingBookables: builder.query({
|
|
77
89
|
query: (props) => ({
|
|
78
90
|
url: constructUrl(
|
|
@@ -180,11 +192,10 @@ export const timumApiSlice = createApi({
|
|
|
180
192
|
*/
|
|
181
193
|
publicData: builder.query({
|
|
182
194
|
query: (props) => ({
|
|
183
|
-
url: constructUrl(
|
|
184
|
-
`/resources/${props.channelOrResourceId}/public_data`,
|
|
185
|
-
props,
|
|
186
|
-
),
|
|
195
|
+
url: constructUrl(`/resources/public_data`, props),
|
|
187
196
|
headers: props.headers,
|
|
197
|
+
method: 'post',
|
|
198
|
+
body: props.body,
|
|
188
199
|
}),
|
|
189
200
|
}),
|
|
190
201
|
|
|
@@ -220,6 +231,7 @@ export const timumApiSlice = createApi({
|
|
|
220
231
|
body: props.body,
|
|
221
232
|
headers: props.headers,
|
|
222
233
|
}),
|
|
234
|
+
invalidatesTags: (/* result, error, arg */) => [{ type: 'Timeslot' }],
|
|
223
235
|
}),
|
|
224
236
|
|
|
225
237
|
/**
|
|
@@ -237,6 +249,7 @@ export const timumApiSlice = createApi({
|
|
|
237
249
|
body: props.body,
|
|
238
250
|
headers: props.headers,
|
|
239
251
|
}),
|
|
252
|
+
invalidatesTags: (/* result, error, arg */) => [{ type: 'Timeslot' }],
|
|
240
253
|
}),
|
|
241
254
|
|
|
242
255
|
// ##########################################
|
package/.yarn/install-state.gz
DELETED
|
Binary file
|