vtb-appit 0.0.91 → 0.0.93

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/appit.js +14 -0
  2. package/package.json +1 -1
package/appit.js CHANGED
@@ -90,6 +90,7 @@ class Appit {
90
90
  await this.contacts();
91
91
  await this.documents();
92
92
  await this.homescreen();
93
+ await this.menu();
93
94
  await this.settings();
94
95
  await this.notifications();
95
96
 
@@ -116,6 +117,14 @@ class Appit {
116
117
  }
117
118
  }
118
119
 
120
+ async menu()
121
+ {
122
+ let menu = this.transformer.menu()
123
+ if(menu) {
124
+ await this.saveMenu(menu);
125
+ }
126
+ }
127
+
119
128
  async homescreen()
120
129
  {
121
130
  let homescreen = this.transformer.homescreen()
@@ -1121,6 +1130,11 @@ class Appit {
1121
1130
  }
1122
1131
  }
1123
1132
 
1133
+ async saveMenu(data)
1134
+ {
1135
+ return await this.request('PUT', `excursions/${this.history.excursionId}/save_menu_settings`, data);
1136
+ }
1137
+
1124
1138
  async saveHomescreen(data)
1125
1139
  {
1126
1140
  return await this.request('PUT', `excursions/${this.history.excursionId}/homescreen/save_setting`, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtb-appit",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},