@timum/timum_pdk 1.0.12 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timum/timum_pdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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
@@ -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,7 @@ export const timumApiSlice = createApi({
75
77
  ),
76
78
  method: "post",
77
79
  body: props.body,
80
+ headers: props.headers,
78
81
  }),
79
82
  invalidatesTags: (/* result, error, arg */) => [{ type: "Timeslot" }],
80
83
  }),
@@ -116,6 +119,7 @@ export const timumApiSlice = createApi({
116
119
  `/resources/${props.channelOrResourceId}/public_data`,
117
120
  props
118
121
  ),
122
+ headers: props.headers,
119
123
  }),
120
124
  }),
121
125
 
@@ -125,8 +129,9 @@ export const timumApiSlice = createApi({
125
129
  `/crms/${props.crmSlug}/resources/${props.channelOrResourceId}/customers/${props.personId}/identify`,
126
130
  props
127
131
  ),
132
+ headers: props.headers,
128
133
  }),
129
- keepUnusedDataFor: 9999999, // once identifoed it's not going to change
134
+ keepUnusedDataFor: 9999999, // once identified it's not going to change
130
135
  }),
131
136
 
132
137
  /**
@@ -147,6 +152,7 @@ export const timumApiSlice = createApi({
147
152
  ),
148
153
  method: "post",
149
154
  body: props.body,
155
+ headers: props.headers,
150
156
  }),
151
157
  }),
152
158
 
@@ -163,6 +169,7 @@ export const timumApiSlice = createApi({
163
169
  ),
164
170
  method: "post",
165
171
  body: props.body,
172
+ headers: props.headers,
166
173
  }),
167
174
  }),
168
175