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.
- package/index.d.ts +11 -1
- package/index.js +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 =
|
|
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,
|