orderiom-api-package 0.3.45 → 0.3.46

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/index.d.ts +35 -0
  2. package/package.json +2 -1
package/index.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ declare module 'orderiom-api-package'{
2
+ export const enMsg: Object;
3
+ export const deMsg: Object;
4
+ export const install: any;
5
+ export const modules: Object;
6
+ export const $http: Object;
7
+
8
+ export interface AuthState{
9
+ publicToken: string | null,
10
+ privateToken: string | null,
11
+ expires_at: string | null,
12
+ user: {} | {
13
+ id: number
14
+ address: string | null
15
+ birth_date: string | null
16
+ city: string | null
17
+ comment: string | null
18
+ company: string | null
19
+ country: string | null
20
+ email: string | null
21
+ email_verified_at: string | null
22
+ house_number: string | null
23
+ mobile: string | null
24
+ name: string | null
25
+ origin_restaurant: number
26
+ postalCode: string | null
27
+ postal_code: string | null
28
+ type: string
29
+ }
30
+ restaurantInfo: Record<string, any>
31
+ email: string | null
32
+ fullAddress: Record<string, any>
33
+ userAddress: Record<string, any>[]
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.3.45",
3
+ "version": "0.3.46",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
+ "types": "index.d.ts",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },