orderiom-api-package 0.3.46 → 0.3.48

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 +30 -32
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,35 +1,33 @@
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;
1
+ export const enMsg: Object;
2
+ export const deMsg: Object;
3
+ export const install: any;
4
+ export const modules: Object;
5
+ export const $http: Object;
7
6
 
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>[]
7
+ export interface AuthState<SignedIn extends boolean> {
8
+ publicToken: string | null,
9
+ privateToken: string | null,
10
+ expires_at: string | null,
11
+ user: {
12
+ id: SignedIn extends true ? number : undefined
13
+ address: SignedIn extends true ? string | null : undefined
14
+ birth_date: SignedIn extends true ? string | null : undefined
15
+ city: SignedIn extends true ? string | null : undefined
16
+ comment: SignedIn extends true ? string | null : undefined
17
+ company: SignedIn extends true ? string | null : undefined
18
+ country: SignedIn extends true ? string | null : undefined
19
+ email: SignedIn extends true ? string | null : undefined
20
+ email_verified_at: SignedIn extends true ? string | null : undefined
21
+ house_number: SignedIn extends true ? string | null : undefined
22
+ mobile: SignedIn extends true ? string | null : undefined
23
+ name: SignedIn extends true ? string | null : undefined
24
+ origin_restaurant: SignedIn extends true ? number : undefined
25
+ postalCode: SignedIn extends true ? string | null : undefined
26
+ postal_code: SignedIn extends true ? string | null : undefined
27
+ type: SignedIn extends true ? string : undefined
34
28
  }
29
+ restaurantInfo: Record<string, any>
30
+ email: string | null
31
+ fullAddress: Record<string, any>
32
+ userAddress: Record<string, any>[]
35
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.3.46",
3
+ "version": "0.3.48",
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",