@feedmepos/mf-common 1.0.1 → 1.1.1-alpha.0
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/dist/App.vue.d.ts +9 -3
- package/dist/api/index.d.ts +6 -0
- package/dist/app.d.ts +9430 -398
- package/dist/app.js +7643 -6875
- package/dist/{UserInfo.vue.d.ts → components/UserInfo.vue.d.ts} +21 -21
- package/dist/{auth.d.ts → plugins/auth.d.ts} +2 -1
- package/dist/plugins/store.d.ts +3376 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/dist/store.d.ts +0 -520
- package/dist/style.css +0 -1
- /package/dist/{FeedmeLogo.vue.d.ts → components/FeedmeLogo.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType } from 'vue';
|
2
|
-
import type { FeedMeUser } from '
|
2
|
+
import type { FeedMeUser } from '../plugins/auth';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
user: {
|
5
5
|
type: PropType<FeedMeUser | null>;
|
@@ -16,6 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
members?: {
|
17
17
|
pf_user?: {
|
18
18
|
email?: string | null | undefined;
|
19
|
+
photoURL?: string | null | undefined;
|
20
|
+
displayName?: string | null | undefined;
|
21
|
+
phoneNumber?: string | null | undefined;
|
19
22
|
birthday?: Date | null | undefined;
|
20
23
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
21
24
|
addresses?: {
|
@@ -23,17 +26,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
26
|
name: string;
|
24
27
|
coordinates: number[];
|
25
28
|
}[] | null | undefined;
|
26
|
-
photoURL?: string | null | undefined;
|
27
|
-
displayName?: string | null | undefined;
|
28
|
-
phoneNumber?: string | null | undefined;
|
29
29
|
imported?: {
|
30
30
|
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
31
31
|
raw: Record<string, any>;
|
32
32
|
} | null | undefined;
|
33
33
|
_id: string;
|
34
34
|
} | null | undefined;
|
35
|
-
role: "ADMIN";
|
36
35
|
userId: string;
|
36
|
+
role: "ADMIN";
|
37
37
|
}[] | null | undefined;
|
38
38
|
code: string;
|
39
39
|
name: string;
|
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
coordinates?: number[] | undefined;
|
48
48
|
line2?: string | undefined;
|
49
49
|
country: string;
|
50
|
-
line1: string;
|
51
50
|
state: string;
|
51
|
+
line1: string;
|
52
52
|
city: string;
|
53
53
|
postcode: string;
|
54
54
|
};
|
@@ -83,6 +83,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
members?: {
|
84
84
|
pf_user?: {
|
85
85
|
email?: string | null | undefined;
|
86
|
+
photoURL?: string | null | undefined;
|
87
|
+
displayName?: string | null | undefined;
|
88
|
+
phoneNumber?: string | null | undefined;
|
86
89
|
birthday?: Date | null | undefined;
|
87
90
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
88
91
|
addresses?: {
|
@@ -90,17 +93,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
90
93
|
name: string;
|
91
94
|
coordinates: number[];
|
92
95
|
}[] | null | undefined;
|
93
|
-
photoURL?: string | null | undefined;
|
94
|
-
displayName?: string | null | undefined;
|
95
|
-
phoneNumber?: string | null | undefined;
|
96
96
|
imported?: {
|
97
97
|
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
98
98
|
raw: Record<string, any>;
|
99
99
|
} | null | undefined;
|
100
100
|
_id: string;
|
101
101
|
} | null | undefined;
|
102
|
-
role: "ADMIN";
|
103
102
|
userId: string;
|
103
|
+
role: "ADMIN";
|
104
104
|
}[] | null | undefined;
|
105
105
|
code: string;
|
106
106
|
name: string;
|
@@ -114,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
114
114
|
coordinates?: number[] | undefined;
|
115
115
|
line2?: string | undefined;
|
116
116
|
country: string;
|
117
|
-
line1: string;
|
118
117
|
state: string;
|
118
|
+
line1: string;
|
119
119
|
city: string;
|
120
120
|
postcode: string;
|
121
121
|
};
|
@@ -147,6 +147,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
147
147
|
members?: {
|
148
148
|
pf_user?: {
|
149
149
|
email?: string | null | undefined;
|
150
|
+
photoURL?: string | null | undefined;
|
151
|
+
displayName?: string | null | undefined;
|
152
|
+
phoneNumber?: string | null | undefined;
|
150
153
|
birthday?: Date | null | undefined;
|
151
154
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
152
155
|
addresses?: {
|
@@ -154,17 +157,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
154
157
|
name: string;
|
155
158
|
coordinates: number[];
|
156
159
|
}[] | null | undefined;
|
157
|
-
photoURL?: string | null | undefined;
|
158
|
-
displayName?: string | null | undefined;
|
159
|
-
phoneNumber?: string | null | undefined;
|
160
160
|
imported?: {
|
161
161
|
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
162
162
|
raw: Record<string, any>;
|
163
163
|
} | null | undefined;
|
164
164
|
_id: string;
|
165
165
|
} | null | undefined;
|
166
|
-
role: "ADMIN";
|
167
166
|
userId: string;
|
167
|
+
role: "ADMIN";
|
168
168
|
}[] | null | undefined;
|
169
169
|
code: string;
|
170
170
|
name: string;
|
@@ -178,8 +178,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
178
178
|
coordinates?: number[] | undefined;
|
179
179
|
line2?: string | undefined;
|
180
180
|
country: string;
|
181
|
-
line1: string;
|
182
181
|
state: string;
|
182
|
+
line1: string;
|
183
183
|
city: string;
|
184
184
|
postcode: string;
|
185
185
|
};
|
@@ -214,6 +214,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
214
214
|
members?: {
|
215
215
|
pf_user?: {
|
216
216
|
email?: string | null | undefined;
|
217
|
+
photoURL?: string | null | undefined;
|
218
|
+
displayName?: string | null | undefined;
|
219
|
+
phoneNumber?: string | null | undefined;
|
217
220
|
birthday?: Date | null | undefined;
|
218
221
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
219
222
|
addresses?: {
|
@@ -221,17 +224,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
221
224
|
name: string;
|
222
225
|
coordinates: number[];
|
223
226
|
}[] | null | undefined;
|
224
|
-
photoURL?: string | null | undefined;
|
225
|
-
displayName?: string | null | undefined;
|
226
|
-
phoneNumber?: string | null | undefined;
|
227
227
|
imported?: {
|
228
228
|
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
229
229
|
raw: Record<string, any>;
|
230
230
|
} | null | undefined;
|
231
231
|
_id: string;
|
232
232
|
} | null | undefined;
|
233
|
-
role: "ADMIN";
|
234
233
|
userId: string;
|
234
|
+
role: "ADMIN";
|
235
235
|
}[] | null | undefined;
|
236
236
|
code: string;
|
237
237
|
name: string;
|
@@ -245,8 +245,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
245
245
|
coordinates?: number[] | undefined;
|
246
246
|
line2?: string | undefined;
|
247
247
|
country: string;
|
248
|
-
line1: string;
|
249
248
|
state: string;
|
249
|
+
line1: string;
|
250
250
|
city: string;
|
251
251
|
postcode: string;
|
252
252
|
};
|
@@ -18,7 +18,7 @@ export declare class FeedMeAuth {
|
|
18
18
|
static setBaseUrl(isDev: boolean): void;
|
19
19
|
private static startBackground;
|
20
20
|
static initialize(clientId: string): void;
|
21
|
-
static
|
21
|
+
static signIn(root?: HTMLElement): void;
|
22
22
|
static onAuthStateChanged(callback: (user: FeedMeUser | null, token: string | null) => void): void;
|
23
23
|
static signOut(): void;
|
24
24
|
static unmountPrompt(): void;
|
@@ -30,6 +30,7 @@ export declare class FeedMeAuth {
|
|
30
30
|
phoneNumber?: string | null | undefined;
|
31
31
|
} | null;
|
32
32
|
static get token(): string | null;
|
33
|
+
static getCustomToken(): Promise<string>;
|
33
34
|
static refreshToken(): Promise<string>;
|
34
35
|
static getUserClaims(): Promise<{
|
35
36
|
/** in seconds since the Unix epoch. */
|