@feedmepos/mf-common 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,6 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ "show-apps": (...args: any[]) => void;
3
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ "onShow-apps"?: ((...args: any[]) => any) | undefined;
5
+ }, {}, {}>;
2
6
  export default _default;
@@ -0,0 +1,268 @@
1
+ import { type PropType } from 'vue';
2
+ import type { FeedMeUser } from './auth';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ user: {
5
+ type: PropType<FeedMeUser | null>;
6
+ default: undefined;
7
+ };
8
+ businesses: {
9
+ type: PropType<{
10
+ internal?: boolean | null | undefined;
11
+ expiredAt?: string | null | undefined;
12
+ url?: string | null | undefined;
13
+ agentId?: string | null | undefined;
14
+ pf_agent?: {
15
+ clickupId?: string | null | undefined;
16
+ members?: {
17
+ pf_user?: {
18
+ birthday?: Date | null | undefined;
19
+ gender?: "MALE" | "FEMALE" | null | undefined;
20
+ addresses?: {
21
+ name: string;
22
+ address: string;
23
+ coordinates: number[];
24
+ }[] | null | undefined;
25
+ email?: string | null | undefined;
26
+ photoURL?: string | null | undefined;
27
+ displayName?: string | null | undefined;
28
+ phoneNumber?: string | null | undefined;
29
+ imported?: {
30
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
31
+ raw: Record<string, any>;
32
+ } | null | undefined;
33
+ _id: string;
34
+ } | null | undefined;
35
+ userId: string;
36
+ role: "ADMIN";
37
+ }[] | null | undefined;
38
+ _id: string;
39
+ name: string;
40
+ code: string;
41
+ isReseller: boolean;
42
+ } | null | undefined;
43
+ thumbnail?: string | null | undefined;
44
+ billingInfos?: {
45
+ _id?: string | undefined;
46
+ name: string;
47
+ email: string;
48
+ address: {
49
+ coordinates?: number[] | undefined;
50
+ line2?: string | undefined;
51
+ line1: string;
52
+ state: string;
53
+ city: string;
54
+ postcode: string;
55
+ country: string;
56
+ };
57
+ companyName: string;
58
+ contact: string;
59
+ }[] | null | undefined;
60
+ _id: string;
61
+ ownerId: string;
62
+ name: string;
63
+ restaurantQuota: number;
64
+ warehouseQuota: number;
65
+ menuVersion: "v2" | "v3" | "v4";
66
+ }[]>;
67
+ required: true;
68
+ };
69
+ currentBusinessId: {
70
+ type: StringConstructor;
71
+ required: true;
72
+ };
73
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
+ login: () => void;
75
+ logout: () => void;
76
+ "select-business": (business: {
77
+ internal?: boolean | null | undefined;
78
+ expiredAt?: string | null | undefined;
79
+ url?: string | null | undefined;
80
+ agentId?: string | null | undefined;
81
+ pf_agent?: {
82
+ clickupId?: string | null | undefined;
83
+ members?: {
84
+ pf_user?: {
85
+ birthday?: Date | null | undefined;
86
+ gender?: "MALE" | "FEMALE" | null | undefined;
87
+ addresses?: {
88
+ name: string;
89
+ address: string;
90
+ coordinates: number[];
91
+ }[] | null | undefined;
92
+ email?: string | null | undefined;
93
+ photoURL?: string | null | undefined;
94
+ displayName?: string | null | undefined;
95
+ phoneNumber?: string | null | undefined;
96
+ imported?: {
97
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
98
+ raw: Record<string, any>;
99
+ } | null | undefined;
100
+ _id: string;
101
+ } | null | undefined;
102
+ userId: string;
103
+ role: "ADMIN";
104
+ }[] | null | undefined;
105
+ _id: string;
106
+ name: string;
107
+ code: string;
108
+ isReseller: boolean;
109
+ } | null | undefined;
110
+ thumbnail?: string | null | undefined;
111
+ billingInfos?: {
112
+ _id?: string | undefined;
113
+ name: string;
114
+ email: string;
115
+ address: {
116
+ coordinates?: number[] | undefined;
117
+ line2?: string | undefined;
118
+ line1: string;
119
+ state: string;
120
+ city: string;
121
+ postcode: string;
122
+ country: string;
123
+ };
124
+ companyName: string;
125
+ contact: string;
126
+ }[] | null | undefined;
127
+ _id: string;
128
+ ownerId: string;
129
+ name: string;
130
+ restaurantQuota: number;
131
+ warehouseQuota: number;
132
+ menuVersion: "v2" | "v3" | "v4";
133
+ }) => void;
134
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
135
+ user: {
136
+ type: PropType<FeedMeUser | null>;
137
+ default: undefined;
138
+ };
139
+ businesses: {
140
+ type: PropType<{
141
+ internal?: boolean | null | undefined;
142
+ expiredAt?: string | null | undefined;
143
+ url?: string | null | undefined;
144
+ agentId?: string | null | undefined;
145
+ pf_agent?: {
146
+ clickupId?: string | null | undefined;
147
+ members?: {
148
+ pf_user?: {
149
+ birthday?: Date | null | undefined;
150
+ gender?: "MALE" | "FEMALE" | null | undefined;
151
+ addresses?: {
152
+ name: string;
153
+ address: string;
154
+ coordinates: number[];
155
+ }[] | null | undefined;
156
+ email?: string | null | undefined;
157
+ photoURL?: string | null | undefined;
158
+ displayName?: string | null | undefined;
159
+ phoneNumber?: string | null | undefined;
160
+ imported?: {
161
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
162
+ raw: Record<string, any>;
163
+ } | null | undefined;
164
+ _id: string;
165
+ } | null | undefined;
166
+ userId: string;
167
+ role: "ADMIN";
168
+ }[] | null | undefined;
169
+ _id: string;
170
+ name: string;
171
+ code: string;
172
+ isReseller: boolean;
173
+ } | null | undefined;
174
+ thumbnail?: string | null | undefined;
175
+ billingInfos?: {
176
+ _id?: string | undefined;
177
+ name: string;
178
+ email: string;
179
+ address: {
180
+ coordinates?: number[] | undefined;
181
+ line2?: string | undefined;
182
+ line1: string;
183
+ state: string;
184
+ city: string;
185
+ postcode: string;
186
+ country: string;
187
+ };
188
+ companyName: string;
189
+ contact: string;
190
+ }[] | null | undefined;
191
+ _id: string;
192
+ ownerId: string;
193
+ name: string;
194
+ restaurantQuota: number;
195
+ warehouseQuota: number;
196
+ menuVersion: "v2" | "v3" | "v4";
197
+ }[]>;
198
+ required: true;
199
+ };
200
+ currentBusinessId: {
201
+ type: StringConstructor;
202
+ required: true;
203
+ };
204
+ }>> & {
205
+ onLogin?: (() => any) | undefined;
206
+ onLogout?: (() => any) | undefined;
207
+ "onSelect-business"?: ((business: {
208
+ internal?: boolean | null | undefined;
209
+ expiredAt?: string | null | undefined;
210
+ url?: string | null | undefined;
211
+ agentId?: string | null | undefined;
212
+ pf_agent?: {
213
+ clickupId?: string | null | undefined;
214
+ members?: {
215
+ pf_user?: {
216
+ birthday?: Date | null | undefined;
217
+ gender?: "MALE" | "FEMALE" | null | undefined;
218
+ addresses?: {
219
+ name: string;
220
+ address: string;
221
+ coordinates: number[];
222
+ }[] | null | undefined;
223
+ email?: string | null | undefined;
224
+ photoURL?: string | null | undefined;
225
+ displayName?: string | null | undefined;
226
+ phoneNumber?: string | null | undefined;
227
+ imported?: {
228
+ source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
229
+ raw: Record<string, any>;
230
+ } | null | undefined;
231
+ _id: string;
232
+ } | null | undefined;
233
+ userId: string;
234
+ role: "ADMIN";
235
+ }[] | null | undefined;
236
+ _id: string;
237
+ name: string;
238
+ code: string;
239
+ isReseller: boolean;
240
+ } | null | undefined;
241
+ thumbnail?: string | null | undefined;
242
+ billingInfos?: {
243
+ _id?: string | undefined;
244
+ name: string;
245
+ email: string;
246
+ address: {
247
+ coordinates?: number[] | undefined;
248
+ line2?: string | undefined;
249
+ line1: string;
250
+ state: string;
251
+ city: string;
252
+ postcode: string;
253
+ country: string;
254
+ };
255
+ companyName: string;
256
+ contact: string;
257
+ }[] | null | undefined;
258
+ _id: string;
259
+ ownerId: string;
260
+ name: string;
261
+ restaurantQuota: number;
262
+ warehouseQuota: number;
263
+ menuVersion: "v2" | "v3" | "v4";
264
+ }) => any) | undefined;
265
+ }, {
266
+ user: FeedMeUser | null;
267
+ }, {}>;
268
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { FdoBusiness } from '@feedmepos/core/entity';
2
+ import { type AxiosInstance, type AxiosResponse } from 'axios';
3
+ export declare function readManagableBusinesses(): Promise<FdoBusiness[]>;
4
+ export declare const baseClientInstance: (url: string) => AxiosInstance;
5
+ export declare function generatePortalBackendUrl(): any;
6
+ export declare function extractAxiosData<T>(response: AxiosResponse<T>): T;