@techallee/foodverse 1.0.4 → 1.0.6
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/package.json +1 -1
- package/src/types/api/restaurant.d.ts +106 -64
- package/src/types/app/map.d.ts +16 -9
- package/src/types/app/settings.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,87 +1,129 @@
|
|
|
1
|
-
declare type State =
|
|
1
|
+
declare type State =
|
|
2
|
+
'NATIONAL'
|
|
3
|
+
| 'BW'
|
|
4
|
+
| 'BY'
|
|
5
|
+
| 'BE'
|
|
6
|
+
| 'BB'
|
|
7
|
+
| 'HB'
|
|
8
|
+
| 'HH'
|
|
9
|
+
| 'HE'
|
|
10
|
+
| 'MV'
|
|
11
|
+
| 'NI'
|
|
12
|
+
| 'NW'
|
|
13
|
+
| 'RP'
|
|
14
|
+
| 'SL'
|
|
15
|
+
| 'SN'
|
|
16
|
+
| 'ST'
|
|
17
|
+
| 'SH'
|
|
18
|
+
| 'TH';
|
|
19
|
+
declare type OpenTimeType = 'pause' | 'opened' | 'delivery' | 'takeaway';
|
|
20
|
+
declare type WeekDayType = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
2
21
|
|
|
3
22
|
declare interface Floor {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
displayName?: string | null;
|
|
26
|
+
width: number;
|
|
27
|
+
length: number;
|
|
28
|
+
furniture: any[];
|
|
29
|
+
onlineShopId: string;
|
|
11
30
|
}
|
|
12
31
|
|
|
13
32
|
declare interface MapGeoJsonFeature {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
id: string;
|
|
34
|
+
type: 'Feature';
|
|
35
|
+
geometry: {
|
|
36
|
+
type: 'Polygon' | 'LineString' | 'Point';
|
|
37
|
+
coordinates: [number, number][][];
|
|
38
|
+
};
|
|
39
|
+
properties: {
|
|
40
|
+
postcode: string;
|
|
41
|
+
locality: string;
|
|
42
|
+
};
|
|
24
43
|
}
|
|
25
44
|
|
|
26
45
|
declare interface MapGeoJson {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
46
|
+
id: string;
|
|
47
|
+
type: 'FeatureCollection';
|
|
48
|
+
areaId: string;
|
|
49
|
+
features: MapGeoJsonFeature[];
|
|
31
50
|
}
|
|
32
51
|
|
|
33
52
|
declare interface Area {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
id: string;
|
|
54
|
+
radius: number;
|
|
55
|
+
deliveryFee: number;
|
|
56
|
+
onlineShopId: string;
|
|
57
|
+
geojson: MapGeoJson;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare interface OpenTime {
|
|
61
|
+
id: string;
|
|
62
|
+
type: OpenTimeType;
|
|
63
|
+
timeStart: string;
|
|
64
|
+
timeEnd: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare interface OnlineShopDay {
|
|
68
|
+
id: string;
|
|
69
|
+
openTimes: OpenTime[];
|
|
70
|
+
isOpened: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare interface OpenDay extends OnlineShopDay {
|
|
74
|
+
weekday: WeekDayType;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare interface CloseDay extends OnlineShopDay {
|
|
78
|
+
name: string;
|
|
39
79
|
}
|
|
40
80
|
|
|
41
81
|
declare interface OnlineShop {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
82
|
+
id: string;
|
|
83
|
+
active: boolean;
|
|
84
|
+
preorderStart: number;
|
|
85
|
+
preorderEnd: number;
|
|
86
|
+
orderInterval: number;
|
|
87
|
+
orderLimit: number;
|
|
88
|
+
paymentTypes: PaymentType[];
|
|
89
|
+
deliveryTypes: PaymentType[];
|
|
90
|
+
restaurantId: string;
|
|
51
91
|
|
|
52
|
-
|
|
53
|
-
|
|
92
|
+
floors: Floor[];
|
|
93
|
+
areas: Area[];
|
|
94
|
+
openDays: OpenDay[];
|
|
95
|
+
closeDays: CloseDay[];
|
|
54
96
|
}
|
|
55
97
|
|
|
56
98
|
declare interface Tab {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
icon: number;
|
|
102
|
+
restaurantId: string;
|
|
61
103
|
}
|
|
62
104
|
|
|
63
105
|
declare interface Restaurant {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
street: string;
|
|
109
|
+
streetNumber: string;
|
|
110
|
+
postalCode: string;
|
|
111
|
+
city: string;
|
|
112
|
+
state: State;
|
|
113
|
+
telephone: string;
|
|
114
|
+
email: string;
|
|
115
|
+
logo: string;
|
|
116
|
+
website: string;
|
|
117
|
+
vatId: string;
|
|
118
|
+
latitude: number;
|
|
119
|
+
longitude: number;
|
|
120
|
+
token: string;
|
|
121
|
+
code: string;
|
|
122
|
+
ownerId?: string | null;
|
|
81
123
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
124
|
+
categories: Category[];
|
|
125
|
+
specifications: Specification[];
|
|
126
|
+
tabs: Tab[];
|
|
127
|
+
printers: StationPrinter[];
|
|
128
|
+
onlineShop: OnlineShop;
|
|
87
129
|
}
|
package/src/types/app/map.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
interface SmoothZoomOptions {
|
|
1
|
+
declare interface SmoothZoomOptions {
|
|
2
2
|
wheelDebounceTime?: number
|
|
3
3
|
wheelPxPerZoomLevel?: number
|
|
4
4
|
easeLinearity?: number
|
|
5
5
|
duration?: number
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
type SelectedDriver = Record<string, Staff>
|
|
8
|
+
declare type SelectedDriver = Record<string, Staff>
|
|
9
9
|
|
|
10
|
-
interface Polyline {
|
|
10
|
+
declare interface Polyline {
|
|
11
11
|
color: string;
|
|
12
12
|
latlngs: [number, number][];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface IconCollection {
|
|
15
|
+
declare interface IconCollection {
|
|
16
16
|
base: string;
|
|
17
17
|
opaque: string;
|
|
18
18
|
hidden: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
interface MapProperties {
|
|
21
|
+
declare interface MapProperties {
|
|
22
22
|
url: string;
|
|
23
23
|
attribution: string;
|
|
24
24
|
homeSize: [number, number];
|
|
@@ -46,12 +46,19 @@ interface MapProperties {
|
|
|
46
46
|
iconPreOrder3: IconCollection,
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
interface
|
|
49
|
+
declare interface CookOrdersRequestPayload {
|
|
50
50
|
basket: string,
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
interface
|
|
54
|
-
|
|
53
|
+
declare interface OrdersUpdateRequestPayload {
|
|
54
|
+
orderIds: string[],
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare interface DeliveryRequestPayload extends CookOrdersRequestPayload, OrdersUpdateRequestPayload {
|
|
55
58
|
courierId: string,
|
|
56
|
-
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare interface RestoreDeliveringOrdersRequestPayload extends OrdersUpdateRequestPayload{
|
|
62
|
+
orderIds: string[],
|
|
63
|
+
basket: string,
|
|
57
64
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface RouteSettings {
|
|
1
|
+
declare interface RouteSettings {
|
|
2
2
|
icon: string,
|
|
3
3
|
tooltip: string,
|
|
4
4
|
route: string,
|
|
@@ -6,17 +6,17 @@ interface RouteSettings {
|
|
|
6
6
|
active: boolean
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
interface RouteSettingsCollection {
|
|
9
|
+
declare interface RouteSettingsCollection {
|
|
10
10
|
[key: string]: RouteSettings[]
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface ExpressDiscount {
|
|
13
|
+
declare interface ExpressDiscount {
|
|
14
14
|
id: number,
|
|
15
15
|
type: number,
|
|
16
16
|
amount: number,
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
interface Settings {
|
|
19
|
+
declare interface Settings {
|
|
20
20
|
holidayState: string,
|
|
21
21
|
timeRange: [number, number],
|
|
22
22
|
timeView: boolean,
|