orderiom-api-package 0.3.54 → 0.3.55

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,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -200,6 +200,17 @@ const actions = {
200
200
  commit('finishFetchingBlogs');
201
201
  })
202
202
  },
203
+ async recordTheVisit(_, data){
204
+ return $http.post('api/restaurant/website-view', {
205
+ ...data,
206
+ restaurantId: data.restaurantId || restaurantIdEnv
207
+ }).then(() => {
208
+ return true
209
+ }).catch(err => {
210
+ console.error(err);
211
+ return false;
212
+ })
213
+ },
203
214
  getBlog({ commit }, blogId) {
204
215
  return $http.get('api/blogs/show', {
205
216
  params: blogId