orderiom-api-package 0.4.56 → 0.4.57

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.4.56",
3
+ "version": "0.4.57",
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",
@@ -171,5 +171,7 @@
171
171
  "full_capacity": "Die Kapazität ist voll",
172
172
  "The_product_is_not_available": "Das Produkt ist nicht verfügbar",
173
173
  "The_package_is_not_available": "Das Paket ist nicht verfügbar",
174
- "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Der Gutschein hat sein Nutzungslimit erreicht und kann nicht verwendet werden."
174
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Der Gutschein hat sein Nutzungslimit erreicht und kann nicht verwendet werden.",
175
+ "robot_task_set_successfully": "Die Roboteraufgabe wurde erfolgreich festgelegt.",
176
+ "robot_service_is_not_available_for_this_restaurant": "Für dieses Restaurant ist kein Roboterservice verfügbar."
175
177
  }
@@ -171,5 +171,7 @@
171
171
  "full_capacity": "Capacity is full",
172
172
  "The_product_is_not_available": "The product is not available",
173
173
  "The_package_is_not_available": "The package is not available",
174
- "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Voucher has reached its usage limit and can not be used."
174
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Voucher has reached its usage limit and can not be used.",
175
+ "robot_task_set_successfully": "Robot task was set successfully.",
176
+ "robot_service_is_not_available_for_this_restaurant": "Robot service is not available for this restaurant."
175
177
  }
@@ -171,5 +171,7 @@
171
171
  "full_capacity": "La capacité est pleine",
172
172
  "The_product_is_not_available": "Le produit n'est pas disponible",
173
173
  "The_package_is_not_available": "Le package n'est pas disponible",
174
- "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Le bon a atteint sa limite d'utilisation et ne peut pas être utilisé."
174
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Le bon a atteint sa limite d'utilisation et ne peut pas être utilisé.",
175
+ "robot_task_set_successfully": "La tâche du robot a été définie avec succès.",
176
+ "robot_service_is_not_available_for_this_restaurant": "Le service robot n'est pas disponible pour ce restaurant."
175
177
  }
@@ -613,6 +613,21 @@ const actions = {
613
613
  .then(res => res)
614
614
  .catch(commonErrorCallback());
615
615
  },
616
+ robotRequest({ commit }, params) {
617
+ return $http.get("/api/restaurant/robot-request", { params })
618
+ .then(res => res)
619
+ .catch(error => {
620
+ const status = error.response ? error.response.status : null;
621
+ if (status === 503) {
622
+ return {
623
+ type: 'error',
624
+ msg: error.response.data.message.body
625
+ }
626
+ }
627
+ const errorCallback = commonErrorCallback();
628
+ errorCallback(error);
629
+ });
630
+ }
616
631
  };
617
632
 
618
633
  export default {