orderiom-api-package 0.4.84 → 0.4.85

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 (3) hide show
  1. package/index.d.ts +11 -1
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -49,4 +49,14 @@ export interface OrderState {
49
49
 
50
50
  export interface RestaurantState {
51
51
  [key: string]: any
52
- }
52
+ }
53
+
54
+ export interface OAPState {
55
+ orderiomApiPackage: {
56
+ auth: AuthState<true> | AuthState<false>
57
+ manager: ManagerState
58
+ product: ProductState
59
+ order: OrderState
60
+ restaurant: RestaurantState
61
+ }
62
+ }
package/index.js CHANGED
@@ -2,21 +2,21 @@ import apiStore from './src';
2
2
  import enMsg from "./src/messages/en-api.json";
3
3
  import deMsg from "./src/messages/de-api.json";
4
4
  import frMsg from './src/messages/fr-api.json';
5
- import {$http, weekdays, formatDate, formatTime} from './src/common';
5
+ import {$http as api, weekdays, formatDate, formatTime} from './src/common';
6
6
 
7
7
  function install(Vue, options = {}, config = {}) {
8
8
  if (!options.store) console.log('Please provide a store!!');
9
9
  options.store.registerModule('orderiomApiPackage', apiStore, { preserveState: config.preserveState })
10
10
  }
11
11
 
12
- export const $http = $http;
12
+ export const $http = api;
13
13
  export default {
14
14
  install,
15
15
  enMsg,
16
16
  deMsg,
17
17
  frMsg,
18
18
  modules: apiStore.modules,
19
- $http,
19
+ $http: api,
20
20
  weekdays,
21
21
  formatDate,
22
22
  formatTime,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.84",
3
+ "version": "0.4.85",
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",