@timum/timum_pdk 3.0.1 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@timum/timum_pdk",
3
- "version": "3.0.1",
4
- "next_version": "3.0.1",
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": "^8.5.0",
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-storybook": "^0.5.12",
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
- commonjs({
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(
@@ -219,6 +231,7 @@ export const timumApiSlice = createApi({
219
231
  body: props.body,
220
232
  headers: props.headers,
221
233
  }),
234
+ invalidatesTags: (/* result, error, arg */) => [{ type: 'Timeslot' }],
222
235
  }),
223
236
 
224
237
  /**
@@ -236,6 +249,7 @@ export const timumApiSlice = createApi({
236
249
  body: props.body,
237
250
  headers: props.headers,
238
251
  }),
252
+ invalidatesTags: (/* result, error, arg */) => [{ type: 'Timeslot' }],
239
253
  }),
240
254
 
241
255
  // ##########################################
Binary file