@freedom_sky/feige-lib 5.18.0 → 5.19.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/interfaces/store/store.interface.d.ts +13 -0
- package/package.json +1 -1
- package/src/const/const.ts +2387 -2433
- package/src/enum/ai-token.enum.ts +10 -10
- package/src/enum/menu-io.enum.ts +4 -4
- package/src/enum/receptionist.enum.ts +2 -2
- package/src/index.ts +612 -612
- package/src/interfaces/store/classification.interface.ts +7 -7
- package/src/interfaces/store/menu-export.interface.ts +13 -13
- package/src/interfaces/store/specification.interface.ts +17 -17
- package/src/interfaces/store/store.interface.ts +13 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface Classification {
|
|
2
|
-
name: string;
|
|
3
|
-
readonly names?: object;
|
|
4
|
-
readonly content: Array<string>;
|
|
5
|
-
readonly noFullOrderDiscount: boolean;
|
|
6
|
-
readonly date: string | Date;
|
|
7
|
-
}
|
|
1
|
+
export interface Classification {
|
|
2
|
+
name: string;
|
|
3
|
+
readonly names?: object;
|
|
4
|
+
readonly content: Array<string>;
|
|
5
|
+
readonly noFullOrderDiscount: boolean;
|
|
6
|
+
readonly date: string | Date;
|
|
7
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Dish } from './dish.interface';
|
|
2
|
-
import { Classification } from './classification.interface';
|
|
3
|
-
import { Specification } from './specification.interface';
|
|
4
|
-
|
|
5
|
-
export interface MenuExportData {
|
|
6
|
-
version: string;
|
|
7
|
-
exportedAt: string;
|
|
8
|
-
storeId?: string;
|
|
9
|
-
storeNames?: object;
|
|
10
|
-
dishes: Dish[];
|
|
11
|
-
classifications: Classification[];
|
|
12
|
-
specifications: Specification[];
|
|
13
|
-
}
|
|
1
|
+
import { Dish } from './dish.interface';
|
|
2
|
+
import { Classification } from './classification.interface';
|
|
3
|
+
import { Specification } from './specification.interface';
|
|
4
|
+
|
|
5
|
+
export interface MenuExportData {
|
|
6
|
+
version: string;
|
|
7
|
+
exportedAt: string;
|
|
8
|
+
storeId?: string;
|
|
9
|
+
storeNames?: object;
|
|
10
|
+
dishes: Dish[];
|
|
11
|
+
classifications: Classification[];
|
|
12
|
+
specifications: Specification[];
|
|
13
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export interface Specification {
|
|
2
|
-
_id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
names?: object;
|
|
5
|
-
description: string;
|
|
6
|
-
multi: boolean;
|
|
7
|
-
content: {
|
|
8
|
-
_id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
names?: object;
|
|
11
|
-
disable: boolean;
|
|
12
|
-
fare: number;
|
|
13
|
-
fareType: string;
|
|
14
|
-
}[];
|
|
15
|
-
date: string | Date;
|
|
16
|
-
__v: number;
|
|
17
|
-
}
|
|
1
|
+
export interface Specification {
|
|
2
|
+
_id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
names?: object;
|
|
5
|
+
description: string;
|
|
6
|
+
multi: boolean;
|
|
7
|
+
content: {
|
|
8
|
+
_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
names?: object;
|
|
11
|
+
disable: boolean;
|
|
12
|
+
fare: number;
|
|
13
|
+
fareType: string;
|
|
14
|
+
}[];
|
|
15
|
+
date: string | Date;
|
|
16
|
+
__v: number;
|
|
17
|
+
}
|
|
@@ -68,6 +68,19 @@ export interface Store {
|
|
|
68
68
|
readonly needAuditNames: boolean; //如果店铺的名字有变化, 这里就要设置为需要重新审核
|
|
69
69
|
readonly img: string;
|
|
70
70
|
readonly phone?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Geographic location for the store. Optional — old stores may not have it.
|
|
73
|
+
* Set via the manager's map-location picker flow on the App; consumed by
|
|
74
|
+
* delivery distance / static-map thumbnails / future routing features.
|
|
75
|
+
* Mirrors the server-side Mongoose subdoc shape in
|
|
76
|
+
* order-multi-server/src/stores/schemas/store.schema.ts.
|
|
77
|
+
*/
|
|
78
|
+
readonly location?: {
|
|
79
|
+
lat: number;
|
|
80
|
+
lng: number;
|
|
81
|
+
formattedAddress?: string;
|
|
82
|
+
placeId?: string;
|
|
83
|
+
};
|
|
71
84
|
description: string;
|
|
72
85
|
readonly descriptions?: object;
|
|
73
86
|
readonly type: string;
|