@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.1
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/{AIAssistantPage-AvsMbunM.js → AIAssistantPage-C3ovZ0Fh.js} +100 -73
- package/dist/AnalyticsPage-O8SpY-V4.js +215 -0
- package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-CB1_-_mN.js} +33 -35
- package/dist/{CustomerDetailsPage-I6cdDHUi.js → CustomerDetailsPage-BaeKEI1D.js} +42 -44
- package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-DRaLuHMC.js} +26 -28
- package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-DPjhNfKB.js} +85 -83
- package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
- package/dist/{DriverDetailsPage-rg_pGNuP.js → DriverDetailsPage-CSSQTOzn.js} +52 -54
- package/dist/{DriversPage-DKiynISH.js → DriversPage-C2Bk0w4Q.js} +24 -26
- package/dist/{FinancePage-Vg8WPs38.js → FinancePage-lmp0Sdsw.js} +9 -9
- package/dist/FleetPage-DZn5pIqd.js +365 -0
- package/dist/ImportExportPage-BIUJZc7O.js +290 -0
- package/dist/InventoryPage-Cxh1zYJd.js +253 -0
- package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-BY1yAkIt.js} +60 -56
- package/dist/MarketplacePage-RMuL17EA.js +247 -0
- package/dist/{MetricCard-B7yMyvMX.js → MetricCard-7aYgzZHK.js} +1 -1
- package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-C2Mf4KSy.js} +83 -85
- package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BrPBtnhp.js} +31 -33
- package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
- package/dist/{ProductDetailsPage-CFGcbaHo.js → ProductDetailsPage-CezzzZcj.js} +27 -29
- package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-I5DilIoY.js} +21 -23
- package/dist/ReportsPage-BDXNmUng.js +284 -0
- package/dist/RouteDetailsPage-BcomL20M.js +263 -0
- package/dist/RoutesPage-lqX9ylHP.js +144 -0
- package/dist/SettingsPage-CQVIOaNs.js +421 -0
- package/dist/StatusBadge-NpTeHVlw.js +152 -0
- package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-BXrjz7V8.js} +59 -61
- package/dist/{VehicleDetailsPage-3YDMPsPs.js → VehicleDetailsPage-DZjLcJgr.js} +40 -42
- package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-6W39XT5W.js} +19 -21
- package/dist/{WarehouseDetailsPage-Db7KeN-d.js → WarehouseDetailsPage-C10pgRGW.js} +38 -40
- package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-CHvBqNaQ.js} +15 -17
- package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
- package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
- package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
- package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
- package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
- package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
- package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
- package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
- package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
- package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
- package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
- package/dist/index.js +119 -111
- package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
- package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
- package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
- package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
- package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
- package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
- package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
- package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
- package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
- package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
- package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
- package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
- package/dist/{trending-up-C-85AwGT.js → trending-up-B7W-GL6P.js} +1 -1
- package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-BonHFFNz.js} +1 -1
- package/dist/{truck-CtDjNFbi.js → truck-DrlfSpRC.js} +1 -1
- package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-CgdzUfY_.js} +40 -40
- package/dist/useAssistant-D4v3oxD3.js +84 -0
- package/dist/{useCustomers-bS3a4ytk.js → useCustomers-QrlozybF.js} +24 -24
- package/dist/{useFleet-BdETplNE.js → useFleet-DiAC-IiH.js} +70 -67
- package/dist/useImportExport-BLMnAKCC.js +55 -0
- package/dist/{useInventory-Dwn18FPz.js → useInventory-DKoks37x.js} +33 -33
- package/dist/{useOrders-D_3_hGMp.js → useOrders-D3UZVy8Y.js} +42 -42
- package/dist/useReports-Puq4DCH9.js +78 -0
- package/dist/{useRoutes-v4aBaS-E.js → useRoutes-Do57LvRb.js} +31 -31
- package/dist/useSettings-CkDH_-gM.js +81 -0
- package/dist/{useTracking-De2KIUNu.js → useTracking-GJify4HN.js} +22 -22
- package/dist/{user-Dz5TJZFs.js → user-CjSoudeu.js} +1 -1
- package/dist/{users-g2N0eL-Z.js → users-BAM4gHTn.js} +1 -1
- package/dist/{warehouse-D3WWDeTX.js → warehouse-C7MSr47B.js} +1 -1
- package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +27 -3
- package/src/movethewheels/components/StatusBadge.tsx +18 -37
- package/src/movethewheels/constants/index.ts +67 -26
- package/src/movethewheels/hooks/index.ts +12 -0
- package/src/movethewheels/hooks/useAnalytics.ts +20 -6
- package/src/movethewheels/hooks/useAssistant.ts +74 -0
- package/src/movethewheels/hooks/useFleet.ts +63 -59
- package/src/movethewheels/hooks/useImportExport.ts +101 -0
- package/src/movethewheels/hooks/useReports.ts +158 -0
- package/src/movethewheels/hooks/useSettings.ts +120 -0
- package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
- package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/CustomersPage.tsx +1 -1
- package/src/movethewheels/pages/DashboardPage.tsx +42 -22
- package/src/movethewheels/pages/DriverDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/DriversPage.tsx +1 -1
- package/src/movethewheels/pages/FleetPage.tsx +96 -38
- package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
- package/src/movethewheels/pages/InventoryPage.tsx +66 -28
- package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
- package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
- package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/ReportsPage.tsx +194 -90
- package/src/movethewheels/pages/RouteDetailsPage.tsx +5 -11
- package/src/movethewheels/pages/RoutesPage.tsx +4 -9
- package/src/movethewheels/pages/SettingsPage.tsx +234 -56
- package/src/movethewheels/pages/TrackingPage.tsx +6 -6
- package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
- package/src/movethewheels/store/movethewheelsStore.ts +1 -1
- package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
- package/dist/FleetPage-DddXt8r8.js +0 -332
- package/dist/ImportExportPage-BW6qO3kc.js +0 -248
- package/dist/InventoryPage-rMGuaJN-.js +0 -222
- package/dist/MarketplacePage-DKrXAv62.js +0 -219
- package/dist/ReportsPage-Bb7_90rK.js +0 -235
- package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
- package/dist/RoutesPage-s57PtgcQ.js +0 -163
- package/dist/SettingsPage-BYNCBOpN.js +0 -298
- package/dist/StatusBadge-CijYQXtb.js +0 -209
- package/dist/graphqlClient-CdJyR_ed.js +0 -55
- package/dist/navigation-BgnOfsVd.js +0 -6
- package/dist/route-Dp9JiN_E.js +0 -51
- package/dist/settings-3Rw5NwFF.js +0 -28
- package/src/movethewheels/constants/mockData.ts +0 -1342
- /package/dist/{formatters-_vJlC-47.js → formatters-DhKZ-eA1.js} +0 -0
|
@@ -1,1342 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock Data for MoveTheWheels Microfrontend
|
|
3
|
-
*
|
|
4
|
-
* This data is used for development and testing.
|
|
5
|
-
* In production, this will be replaced with GraphQL queries.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import type {
|
|
9
|
-
User,
|
|
10
|
-
Customer,
|
|
11
|
-
Order,
|
|
12
|
-
Vehicle,
|
|
13
|
-
Driver,
|
|
14
|
-
Warehouse,
|
|
15
|
-
Inventory,
|
|
16
|
-
Product,
|
|
17
|
-
Route,
|
|
18
|
-
Tracking,
|
|
19
|
-
Notification,
|
|
20
|
-
ServiceProvider,
|
|
21
|
-
ServiceOffering,
|
|
22
|
-
Analytics,
|
|
23
|
-
} from '../types';
|
|
24
|
-
|
|
25
|
-
// Mock Users
|
|
26
|
-
export const mockUsers: User[] = [
|
|
27
|
-
{
|
|
28
|
-
id: 'user-1',
|
|
29
|
-
email: 'john.admin@movetheweels.com',
|
|
30
|
-
firstName: 'John',
|
|
31
|
-
lastName: 'Smith',
|
|
32
|
-
role: 'business_owner',
|
|
33
|
-
avatar:
|
|
34
|
-
'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 'user-2',
|
|
38
|
-
email: 'sarah.manager@movetheweels.com',
|
|
39
|
-
firstName: 'Sarah',
|
|
40
|
-
lastName: 'Johnson',
|
|
41
|
-
role: 'logistics_manager',
|
|
42
|
-
avatar:
|
|
43
|
-
'https://images.unsplash.com/photo-1494790108755-2616b612b691?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: 'user-3',
|
|
47
|
-
email: 'mike.driver@movetheweels.com',
|
|
48
|
-
firstName: 'Mike',
|
|
49
|
-
lastName: 'Wilson',
|
|
50
|
-
role: 'driver',
|
|
51
|
-
avatar:
|
|
52
|
-
'https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: 'user-4',
|
|
56
|
-
email: 'emma.customer@example.com',
|
|
57
|
-
firstName: 'Emma',
|
|
58
|
-
lastName: 'Davis',
|
|
59
|
-
role: 'customer_b2c',
|
|
60
|
-
},
|
|
61
|
-
];
|
|
62
|
-
|
|
63
|
-
// Mock Customers
|
|
64
|
-
export const mockCustomers: Customer[] = [
|
|
65
|
-
{
|
|
66
|
-
id: 'customer-1',
|
|
67
|
-
name: 'Alice Cooper',
|
|
68
|
-
email: 'alice.cooper@techstart.com',
|
|
69
|
-
phone: '+1-555-0201',
|
|
70
|
-
type: 'b2b',
|
|
71
|
-
company: 'TechStart Inc.',
|
|
72
|
-
address: {
|
|
73
|
-
street: '123 Innovation Drive',
|
|
74
|
-
city: 'San Francisco',
|
|
75
|
-
state: 'CA',
|
|
76
|
-
postalCode: '94105',
|
|
77
|
-
country: 'United States',
|
|
78
|
-
latitude: 37.7749,
|
|
79
|
-
longitude: -122.4194,
|
|
80
|
-
},
|
|
81
|
-
businessLicense: 'BL-CA-2023-001',
|
|
82
|
-
taxId: 'TAX-123456789',
|
|
83
|
-
website: 'https://techstart.com',
|
|
84
|
-
preferredContactMethod: 'email',
|
|
85
|
-
marketingOptIn: true,
|
|
86
|
-
notes: 'High-volume B2B client, prefers morning deliveries',
|
|
87
|
-
isActive: true,
|
|
88
|
-
rating: 4.8,
|
|
89
|
-
createdAt: new Date('2023-03-15T00:00:00Z'),
|
|
90
|
-
updatedAt: new Date('2024-01-10T00:00:00Z'),
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: 'customer-2',
|
|
94
|
-
name: 'Bob Martinez',
|
|
95
|
-
email: 'bob.martinez@personal.com',
|
|
96
|
-
phone: '+1-555-0202',
|
|
97
|
-
type: 'b2c',
|
|
98
|
-
address: {
|
|
99
|
-
street: '456 Residential Ave',
|
|
100
|
-
city: 'Los Angeles',
|
|
101
|
-
state: 'CA',
|
|
102
|
-
postalCode: '90210',
|
|
103
|
-
country: 'United States',
|
|
104
|
-
latitude: 34.0522,
|
|
105
|
-
longitude: -118.2437,
|
|
106
|
-
},
|
|
107
|
-
preferredContactMethod: 'phone',
|
|
108
|
-
marketingOptIn: false,
|
|
109
|
-
notes: 'Prefers weekend deliveries, has dogs',
|
|
110
|
-
isActive: true,
|
|
111
|
-
rating: 4.5,
|
|
112
|
-
createdAt: new Date('2023-06-20T00:00:00Z'),
|
|
113
|
-
updatedAt: new Date('2024-01-05T00:00:00Z'),
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 'customer-3',
|
|
117
|
-
name: 'Carol Johnson',
|
|
118
|
-
email: 'carol@globallogistics.com',
|
|
119
|
-
phone: '+1-555-0203',
|
|
120
|
-
type: 'b2b',
|
|
121
|
-
company: 'Global Logistics Corp',
|
|
122
|
-
address: {
|
|
123
|
-
street: '789 Commerce Blvd',
|
|
124
|
-
city: 'Chicago',
|
|
125
|
-
state: 'IL',
|
|
126
|
-
postalCode: '60601',
|
|
127
|
-
country: 'United States',
|
|
128
|
-
latitude: 41.8781,
|
|
129
|
-
longitude: -87.6298,
|
|
130
|
-
},
|
|
131
|
-
businessLicense: 'BL-IL-2022-045',
|
|
132
|
-
taxId: 'TAX-987654321',
|
|
133
|
-
website: 'https://globallogistics.com',
|
|
134
|
-
preferredContactMethod: 'both',
|
|
135
|
-
marketingOptIn: true,
|
|
136
|
-
notes: 'Requires special handling certifications for hazmat',
|
|
137
|
-
isActive: true,
|
|
138
|
-
rating: 4.9,
|
|
139
|
-
createdAt: new Date('2022-11-10T00:00:00Z'),
|
|
140
|
-
updatedAt: new Date('2024-01-12T00:00:00Z'),
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: 'customer-4',
|
|
144
|
-
name: 'David Chen',
|
|
145
|
-
email: 'david.chen@home.com',
|
|
146
|
-
phone: '+1-555-0204',
|
|
147
|
-
type: 'b2c',
|
|
148
|
-
address: {
|
|
149
|
-
street: '321 Suburban Lane',
|
|
150
|
-
city: 'Austin',
|
|
151
|
-
state: 'TX',
|
|
152
|
-
postalCode: '73301',
|
|
153
|
-
country: 'United States',
|
|
154
|
-
latitude: 30.2672,
|
|
155
|
-
longitude: -97.7431,
|
|
156
|
-
},
|
|
157
|
-
preferredContactMethod: 'email',
|
|
158
|
-
marketingOptIn: true,
|
|
159
|
-
notes: 'Works from home, flexible delivery times',
|
|
160
|
-
isActive: true,
|
|
161
|
-
rating: 4.7,
|
|
162
|
-
createdAt: new Date('2023-08-05T00:00:00Z'),
|
|
163
|
-
updatedAt: new Date('2024-01-08T00:00:00Z'),
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: 'customer-5',
|
|
167
|
-
name: 'Eva Rodriguez',
|
|
168
|
-
email: 'eva@mediasolutions.com',
|
|
169
|
-
phone: '+1-555-0205',
|
|
170
|
-
type: 'b2b',
|
|
171
|
-
company: 'Media Solutions LLC',
|
|
172
|
-
address: {
|
|
173
|
-
street: '654 Creative Street',
|
|
174
|
-
city: 'New York',
|
|
175
|
-
state: 'NY',
|
|
176
|
-
postalCode: '10001',
|
|
177
|
-
country: 'United States',
|
|
178
|
-
latitude: 40.7128,
|
|
179
|
-
longitude: -74.006,
|
|
180
|
-
},
|
|
181
|
-
businessLicense: 'BL-NY-2023-123',
|
|
182
|
-
taxId: 'TAX-456789123',
|
|
183
|
-
website: 'https://mediasolutions.com',
|
|
184
|
-
preferredContactMethod: 'email',
|
|
185
|
-
marketingOptIn: false,
|
|
186
|
-
notes: 'Rush orders common, priority client',
|
|
187
|
-
isActive: true,
|
|
188
|
-
rating: 4.6,
|
|
189
|
-
createdAt: new Date('2023-01-20T00:00:00Z'),
|
|
190
|
-
updatedAt: new Date('2024-01-15T00:00:00Z'),
|
|
191
|
-
},
|
|
192
|
-
];
|
|
193
|
-
|
|
194
|
-
// Mock Products
|
|
195
|
-
export const mockProducts: Product[] = [
|
|
196
|
-
{
|
|
197
|
-
id: 'product-1',
|
|
198
|
-
sku: 'ELEC-LAPTOP-001',
|
|
199
|
-
name: 'Gaming Laptop Pro',
|
|
200
|
-
description: 'High-performance gaming laptop with RGB keyboard',
|
|
201
|
-
category: 'Electronics',
|
|
202
|
-
brand: 'TechBrand',
|
|
203
|
-
dimensions: { length: 35, width: 25, height: 3, unit: 'cm' },
|
|
204
|
-
weight: 2.5,
|
|
205
|
-
value: 1299.99,
|
|
206
|
-
barcode: '1234567890123',
|
|
207
|
-
images: ['https://images.unsplash.com/photo-1603302576837-37561b2e2302?w=400'],
|
|
208
|
-
attributes: [
|
|
209
|
-
{ name: 'Color', value: 'Black', type: 'text' },
|
|
210
|
-
{ name: 'RAM', value: '16GB', type: 'text' },
|
|
211
|
-
{ name: 'Storage', value: '512GB SSD', type: 'text' },
|
|
212
|
-
],
|
|
213
|
-
hazardous: false,
|
|
214
|
-
temperatureControlled: false,
|
|
215
|
-
fragile: true,
|
|
216
|
-
createdAt: new Date('2023-01-01T00:00:00Z'),
|
|
217
|
-
updatedAt: new Date('2024-01-01T00:00:00Z'),
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
id: 'product-2',
|
|
221
|
-
sku: 'FURN-CHAIR-001',
|
|
222
|
-
name: 'Ergonomic Office Chair',
|
|
223
|
-
description: 'Comfortable office chair with lumbar support',
|
|
224
|
-
category: 'Furniture',
|
|
225
|
-
brand: 'ComfortSeating',
|
|
226
|
-
dimensions: { length: 60, width: 60, height: 110, unit: 'cm' },
|
|
227
|
-
weight: 18.5,
|
|
228
|
-
value: 349.99,
|
|
229
|
-
barcode: '1234567890124',
|
|
230
|
-
images: ['https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400'],
|
|
231
|
-
attributes: [
|
|
232
|
-
{ name: 'Color', value: 'Black', type: 'text' },
|
|
233
|
-
{ name: 'Material', value: 'Mesh', type: 'text' },
|
|
234
|
-
{ name: 'Adjustable Height', value: 'true', type: 'boolean' },
|
|
235
|
-
],
|
|
236
|
-
hazardous: false,
|
|
237
|
-
temperatureControlled: false,
|
|
238
|
-
fragile: false,
|
|
239
|
-
createdAt: new Date('2023-01-01T00:00:00Z'),
|
|
240
|
-
updatedAt: new Date('2024-01-01T00:00:00Z'),
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: 'product-3',
|
|
244
|
-
sku: 'ELEC-PHONE-001',
|
|
245
|
-
name: 'Smartphone Pro Max',
|
|
246
|
-
description: 'Latest smartphone with advanced camera system',
|
|
247
|
-
category: 'Electronics',
|
|
248
|
-
brand: 'TechBrand',
|
|
249
|
-
dimensions: { length: 16, width: 8, height: 1, unit: 'cm' },
|
|
250
|
-
weight: 0.2,
|
|
251
|
-
value: 999.99,
|
|
252
|
-
barcode: '1234567890125',
|
|
253
|
-
images: ['https://images.unsplash.com/photo-1592899677977-9c10ca588bbd?w=400'],
|
|
254
|
-
attributes: [
|
|
255
|
-
{ name: 'Color', value: 'Silver', type: 'text' },
|
|
256
|
-
{ name: 'Storage', value: '256GB', type: 'text' },
|
|
257
|
-
],
|
|
258
|
-
hazardous: false,
|
|
259
|
-
temperatureControlled: false,
|
|
260
|
-
fragile: true,
|
|
261
|
-
createdAt: new Date('2023-06-01T00:00:00Z'),
|
|
262
|
-
updatedAt: new Date('2024-01-10T00:00:00Z'),
|
|
263
|
-
},
|
|
264
|
-
];
|
|
265
|
-
|
|
266
|
-
// Mock Orders
|
|
267
|
-
export const mockOrders: Order[] = [
|
|
268
|
-
{
|
|
269
|
-
id: 'order-1',
|
|
270
|
-
orderNumber: 'ORD-2024-001001',
|
|
271
|
-
customerId: 'customer-2',
|
|
272
|
-
customerInfo: {
|
|
273
|
-
name: 'Bob Martinez',
|
|
274
|
-
email: 'bob.martinez@personal.com',
|
|
275
|
-
phone: '+1-555-0202',
|
|
276
|
-
preferredDeliveryTime: 'Morning (9AM - 12PM)',
|
|
277
|
-
deliveryInstructions: 'Leave package at front door if no answer',
|
|
278
|
-
},
|
|
279
|
-
items: [
|
|
280
|
-
{
|
|
281
|
-
id: 'item-1',
|
|
282
|
-
productId: 'product-1',
|
|
283
|
-
name: 'Gaming Laptop Pro',
|
|
284
|
-
description: 'High-performance gaming laptop',
|
|
285
|
-
quantity: 1,
|
|
286
|
-
weight: 2.5,
|
|
287
|
-
dimensions: { length: 35, width: 25, height: 3, unit: 'cm' },
|
|
288
|
-
value: 1299.99,
|
|
289
|
-
sku: 'ELEC-LAPTOP-001',
|
|
290
|
-
barcode: '1234567890123',
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
status: 'in_transit',
|
|
294
|
-
orderType: 'b2c',
|
|
295
|
-
priority: 'normal',
|
|
296
|
-
pickupAddress: {
|
|
297
|
-
street: '789 Warehouse District',
|
|
298
|
-
city: 'San Francisco',
|
|
299
|
-
state: 'CA',
|
|
300
|
-
postalCode: '94103',
|
|
301
|
-
country: 'USA',
|
|
302
|
-
latitude: 37.7849,
|
|
303
|
-
longitude: -122.4094,
|
|
304
|
-
},
|
|
305
|
-
deliveryAddress: {
|
|
306
|
-
street: '456 Residential Ave',
|
|
307
|
-
city: 'Los Angeles',
|
|
308
|
-
state: 'CA',
|
|
309
|
-
postalCode: '90210',
|
|
310
|
-
country: 'USA',
|
|
311
|
-
latitude: 34.0522,
|
|
312
|
-
longitude: -118.2437,
|
|
313
|
-
},
|
|
314
|
-
scheduledPickup: new Date('2024-01-15T09:00:00Z'),
|
|
315
|
-
scheduledDelivery: new Date('2024-01-15T14:00:00Z'),
|
|
316
|
-
actualPickup: new Date('2024-01-15T09:15:00Z'),
|
|
317
|
-
driverId: 'user-3',
|
|
318
|
-
vehicleId: 'vehicle-1',
|
|
319
|
-
trackingNumber: 'TRK123456789',
|
|
320
|
-
specialInstructions: 'Handle with care - fragile electronics',
|
|
321
|
-
pricing: {
|
|
322
|
-
subtotal: 1299.99,
|
|
323
|
-
taxes: 103.99,
|
|
324
|
-
fees: {
|
|
325
|
-
delivery: 15.0,
|
|
326
|
-
handling: 5.0,
|
|
327
|
-
insurance: 12.99,
|
|
328
|
-
},
|
|
329
|
-
total: 1436.97,
|
|
330
|
-
currency: 'USD',
|
|
331
|
-
paymentMethod: 'credit_card',
|
|
332
|
-
paymentStatus: 'paid',
|
|
333
|
-
},
|
|
334
|
-
timeline: [
|
|
335
|
-
{
|
|
336
|
-
timestamp: new Date('2024-01-14T15:30:00Z'),
|
|
337
|
-
status: 'confirmed',
|
|
338
|
-
notes: 'Order confirmed and payment processed',
|
|
339
|
-
performedBy: 'system',
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
timestamp: new Date('2024-01-15T08:00:00Z'),
|
|
343
|
-
status: 'assigned',
|
|
344
|
-
notes: 'Driver assigned and route optimized',
|
|
345
|
-
performedBy: 'user-2',
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
timestamp: new Date('2024-01-15T09:15:00Z'),
|
|
349
|
-
status: 'picked_up',
|
|
350
|
-
location: {
|
|
351
|
-
street: '789 Warehouse District',
|
|
352
|
-
city: 'San Francisco',
|
|
353
|
-
state: 'CA',
|
|
354
|
-
postalCode: '94103',
|
|
355
|
-
country: 'USA',
|
|
356
|
-
},
|
|
357
|
-
notes: 'Package picked up from warehouse',
|
|
358
|
-
performedBy: 'user-3',
|
|
359
|
-
},
|
|
360
|
-
],
|
|
361
|
-
createdAt: new Date('2024-01-14T15:30:00Z'),
|
|
362
|
-
updatedAt: new Date('2024-01-15T09:15:00Z'),
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
id: 'order-2',
|
|
366
|
-
orderNumber: 'ORD-2024-001002',
|
|
367
|
-
customerId: 'customer-1',
|
|
368
|
-
customerInfo: {
|
|
369
|
-
name: 'Alice Cooper',
|
|
370
|
-
email: 'alice.cooper@techstart.com',
|
|
371
|
-
phone: '+1-555-0201',
|
|
372
|
-
company: 'TechStart Inc.',
|
|
373
|
-
preferredDeliveryTime: 'Business Hours (9AM - 5PM)',
|
|
374
|
-
},
|
|
375
|
-
items: [
|
|
376
|
-
{
|
|
377
|
-
id: 'item-2',
|
|
378
|
-
productId: 'product-2',
|
|
379
|
-
name: 'Ergonomic Office Chair',
|
|
380
|
-
description: 'Comfortable office chair with lumbar support',
|
|
381
|
-
quantity: 5,
|
|
382
|
-
weight: 18.5,
|
|
383
|
-
dimensions: { length: 60, width: 60, height: 110, unit: 'cm' },
|
|
384
|
-
value: 349.99,
|
|
385
|
-
sku: 'FURN-CHAIR-001',
|
|
386
|
-
barcode: '1234567890124',
|
|
387
|
-
},
|
|
388
|
-
],
|
|
389
|
-
status: 'confirmed',
|
|
390
|
-
orderType: 'b2b',
|
|
391
|
-
priority: 'high',
|
|
392
|
-
pickupAddress: {
|
|
393
|
-
street: '789 Warehouse District',
|
|
394
|
-
city: 'San Francisco',
|
|
395
|
-
state: 'CA',
|
|
396
|
-
postalCode: '94103',
|
|
397
|
-
country: 'USA',
|
|
398
|
-
latitude: 37.7849,
|
|
399
|
-
longitude: -122.4094,
|
|
400
|
-
},
|
|
401
|
-
deliveryAddress: {
|
|
402
|
-
street: '123 Innovation Drive',
|
|
403
|
-
city: 'San Francisco',
|
|
404
|
-
state: 'CA',
|
|
405
|
-
postalCode: '94105',
|
|
406
|
-
country: 'USA',
|
|
407
|
-
latitude: 37.7749,
|
|
408
|
-
longitude: -122.4194,
|
|
409
|
-
},
|
|
410
|
-
scheduledPickup: new Date('2024-01-16T08:00:00Z'),
|
|
411
|
-
scheduledDelivery: new Date('2024-01-16T11:00:00Z'),
|
|
412
|
-
trackingNumber: 'TRK123456790',
|
|
413
|
-
pricing: {
|
|
414
|
-
subtotal: 1749.95,
|
|
415
|
-
taxes: 139.99,
|
|
416
|
-
fees: {
|
|
417
|
-
delivery: 25.0,
|
|
418
|
-
handling: 10.0,
|
|
419
|
-
},
|
|
420
|
-
total: 1924.94,
|
|
421
|
-
currency: 'USD',
|
|
422
|
-
paymentMethod: 'net_30',
|
|
423
|
-
paymentStatus: 'pending',
|
|
424
|
-
},
|
|
425
|
-
timeline: [
|
|
426
|
-
{
|
|
427
|
-
timestamp: new Date('2024-01-15T11:00:00Z'),
|
|
428
|
-
status: 'confirmed',
|
|
429
|
-
notes: 'B2B order confirmed, payment terms NET-30',
|
|
430
|
-
performedBy: 'user-2',
|
|
431
|
-
},
|
|
432
|
-
],
|
|
433
|
-
createdAt: new Date('2024-01-15T11:00:00Z'),
|
|
434
|
-
updatedAt: new Date('2024-01-15T11:00:00Z'),
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
id: 'order-3',
|
|
438
|
-
orderNumber: 'ORD-2024-001003',
|
|
439
|
-
customerId: 'customer-3',
|
|
440
|
-
customerInfo: {
|
|
441
|
-
name: 'Carol Johnson',
|
|
442
|
-
email: 'carol@globallogistics.com',
|
|
443
|
-
phone: '+1-555-0203',
|
|
444
|
-
company: 'Global Logistics Corp',
|
|
445
|
-
},
|
|
446
|
-
items: [
|
|
447
|
-
{
|
|
448
|
-
id: 'item-3',
|
|
449
|
-
productId: 'product-3',
|
|
450
|
-
name: 'Smartphone Pro Max',
|
|
451
|
-
quantity: 10,
|
|
452
|
-
weight: 0.2,
|
|
453
|
-
dimensions: { length: 16, width: 8, height: 1, unit: 'cm' },
|
|
454
|
-
value: 999.99,
|
|
455
|
-
sku: 'ELEC-PHONE-001',
|
|
456
|
-
barcode: '1234567890125',
|
|
457
|
-
},
|
|
458
|
-
],
|
|
459
|
-
status: 'delivered',
|
|
460
|
-
orderType: 'b2b',
|
|
461
|
-
priority: 'normal',
|
|
462
|
-
pickupAddress: {
|
|
463
|
-
street: '789 Warehouse District',
|
|
464
|
-
city: 'San Francisco',
|
|
465
|
-
state: 'CA',
|
|
466
|
-
postalCode: '94103',
|
|
467
|
-
country: 'USA',
|
|
468
|
-
latitude: 37.7849,
|
|
469
|
-
longitude: -122.4094,
|
|
470
|
-
},
|
|
471
|
-
deliveryAddress: {
|
|
472
|
-
street: '789 Commerce Blvd',
|
|
473
|
-
city: 'Chicago',
|
|
474
|
-
state: 'IL',
|
|
475
|
-
postalCode: '60601',
|
|
476
|
-
country: 'USA',
|
|
477
|
-
latitude: 41.8781,
|
|
478
|
-
longitude: -87.6298,
|
|
479
|
-
},
|
|
480
|
-
scheduledPickup: new Date('2024-01-10T08:00:00Z'),
|
|
481
|
-
scheduledDelivery: new Date('2024-01-12T14:00:00Z'),
|
|
482
|
-
actualPickup: new Date('2024-01-10T08:30:00Z'),
|
|
483
|
-
actualDelivery: new Date('2024-01-12T13:45:00Z'),
|
|
484
|
-
trackingNumber: 'TRK123456791',
|
|
485
|
-
pricing: {
|
|
486
|
-
subtotal: 9999.9,
|
|
487
|
-
taxes: 799.99,
|
|
488
|
-
fees: {
|
|
489
|
-
delivery: 150.0,
|
|
490
|
-
handling: 50.0,
|
|
491
|
-
insurance: 99.99,
|
|
492
|
-
},
|
|
493
|
-
total: 11099.88,
|
|
494
|
-
currency: 'USD',
|
|
495
|
-
paymentMethod: 'wire_transfer',
|
|
496
|
-
paymentStatus: 'paid',
|
|
497
|
-
},
|
|
498
|
-
timeline: [
|
|
499
|
-
{
|
|
500
|
-
timestamp: new Date('2024-01-09T10:00:00Z'),
|
|
501
|
-
status: 'confirmed',
|
|
502
|
-
notes: 'Order confirmed',
|
|
503
|
-
performedBy: 'system',
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
timestamp: new Date('2024-01-10T08:30:00Z'),
|
|
507
|
-
status: 'picked_up',
|
|
508
|
-
notes: 'Picked up from warehouse',
|
|
509
|
-
performedBy: 'user-3',
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
timestamp: new Date('2024-01-11T16:00:00Z'),
|
|
513
|
-
status: 'in_transit',
|
|
514
|
-
notes: 'In transit to Chicago',
|
|
515
|
-
performedBy: 'system',
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
timestamp: new Date('2024-01-12T13:45:00Z'),
|
|
519
|
-
status: 'delivered',
|
|
520
|
-
notes: 'Delivered to recipient',
|
|
521
|
-
performedBy: 'user-3',
|
|
522
|
-
},
|
|
523
|
-
],
|
|
524
|
-
createdAt: new Date('2024-01-09T10:00:00Z'),
|
|
525
|
-
updatedAt: new Date('2024-01-12T13:45:00Z'),
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
id: 'order-4',
|
|
529
|
-
orderNumber: 'ORD-2024-001004',
|
|
530
|
-
customerId: 'customer-4',
|
|
531
|
-
customerInfo: {
|
|
532
|
-
name: 'David Chen',
|
|
533
|
-
email: 'david.chen@home.com',
|
|
534
|
-
phone: '+1-555-0204',
|
|
535
|
-
},
|
|
536
|
-
items: [
|
|
537
|
-
{
|
|
538
|
-
id: 'item-4',
|
|
539
|
-
productId: 'product-1',
|
|
540
|
-
name: 'Gaming Laptop Pro',
|
|
541
|
-
quantity: 1,
|
|
542
|
-
weight: 2.5,
|
|
543
|
-
dimensions: { length: 35, width: 25, height: 3, unit: 'cm' },
|
|
544
|
-
value: 1299.99,
|
|
545
|
-
sku: 'ELEC-LAPTOP-001',
|
|
546
|
-
barcode: '1234567890123',
|
|
547
|
-
},
|
|
548
|
-
],
|
|
549
|
-
status: 'pending',
|
|
550
|
-
orderType: 'b2c',
|
|
551
|
-
priority: 'low',
|
|
552
|
-
pickupAddress: {
|
|
553
|
-
street: '789 Warehouse District',
|
|
554
|
-
city: 'San Francisco',
|
|
555
|
-
state: 'CA',
|
|
556
|
-
postalCode: '94103',
|
|
557
|
-
country: 'USA',
|
|
558
|
-
latitude: 37.7849,
|
|
559
|
-
longitude: -122.4094,
|
|
560
|
-
},
|
|
561
|
-
deliveryAddress: {
|
|
562
|
-
street: '321 Suburban Lane',
|
|
563
|
-
city: 'Austin',
|
|
564
|
-
state: 'TX',
|
|
565
|
-
postalCode: '73301',
|
|
566
|
-
country: 'USA',
|
|
567
|
-
latitude: 30.2672,
|
|
568
|
-
longitude: -97.7431,
|
|
569
|
-
},
|
|
570
|
-
scheduledPickup: new Date('2024-01-20T10:00:00Z'),
|
|
571
|
-
scheduledDelivery: new Date('2024-01-22T16:00:00Z'),
|
|
572
|
-
trackingNumber: 'TRK123456792',
|
|
573
|
-
pricing: {
|
|
574
|
-
subtotal: 1299.99,
|
|
575
|
-
taxes: 103.99,
|
|
576
|
-
fees: {
|
|
577
|
-
delivery: 35.0,
|
|
578
|
-
handling: 5.0,
|
|
579
|
-
},
|
|
580
|
-
total: 1443.98,
|
|
581
|
-
currency: 'USD',
|
|
582
|
-
paymentMethod: 'credit_card',
|
|
583
|
-
paymentStatus: 'paid',
|
|
584
|
-
},
|
|
585
|
-
timeline: [
|
|
586
|
-
{
|
|
587
|
-
timestamp: new Date('2024-01-17T14:00:00Z'),
|
|
588
|
-
status: 'pending',
|
|
589
|
-
notes: 'Order received',
|
|
590
|
-
performedBy: 'system',
|
|
591
|
-
},
|
|
592
|
-
],
|
|
593
|
-
createdAt: new Date('2024-01-17T14:00:00Z'),
|
|
594
|
-
updatedAt: new Date('2024-01-17T14:00:00Z'),
|
|
595
|
-
},
|
|
596
|
-
];
|
|
597
|
-
|
|
598
|
-
// Mock Vehicles
|
|
599
|
-
export const mockVehicles: Vehicle[] = [
|
|
600
|
-
{
|
|
601
|
-
id: 'vehicle-1',
|
|
602
|
-
vehicleNumber: 'VAN-001',
|
|
603
|
-
type: 'van',
|
|
604
|
-
make: 'Ford',
|
|
605
|
-
model: 'Transit',
|
|
606
|
-
year: 2022,
|
|
607
|
-
capacity: {
|
|
608
|
-
weight: 1500,
|
|
609
|
-
volume: 12.5,
|
|
610
|
-
pallets: 4,
|
|
611
|
-
},
|
|
612
|
-
status: 'assigned',
|
|
613
|
-
driverId: 'user-3',
|
|
614
|
-
currentLocation: {
|
|
615
|
-
latitude: 37.7749,
|
|
616
|
-
longitude: -122.4194,
|
|
617
|
-
address: 'Downtown San Francisco',
|
|
618
|
-
timestamp: new Date('2024-01-15T10:30:00Z'),
|
|
619
|
-
accuracy: 10,
|
|
620
|
-
},
|
|
621
|
-
lastMaintenance: new Date('2023-12-15T00:00:00Z'),
|
|
622
|
-
nextMaintenance: new Date('2024-03-15T00:00:00Z'),
|
|
623
|
-
fuelLevel: 75,
|
|
624
|
-
mileage: 35420,
|
|
625
|
-
documents: [
|
|
626
|
-
{
|
|
627
|
-
id: 'doc-1',
|
|
628
|
-
type: 'registration',
|
|
629
|
-
documentUrl: '/documents/vehicle-1-registration.pdf',
|
|
630
|
-
expiryDate: new Date('2025-06-30T00:00:00Z'),
|
|
631
|
-
verified: true,
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
id: 'doc-2',
|
|
635
|
-
type: 'insurance',
|
|
636
|
-
documentUrl: '/documents/vehicle-1-insurance.pdf',
|
|
637
|
-
expiryDate: new Date('2024-12-31T00:00:00Z'),
|
|
638
|
-
verified: true,
|
|
639
|
-
},
|
|
640
|
-
],
|
|
641
|
-
createdAt: new Date('2022-03-01T00:00:00Z'),
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
id: 'vehicle-2',
|
|
645
|
-
vehicleNumber: 'TRUCK-001',
|
|
646
|
-
type: 'truck',
|
|
647
|
-
make: 'Mercedes',
|
|
648
|
-
model: 'Sprinter',
|
|
649
|
-
year: 2021,
|
|
650
|
-
capacity: {
|
|
651
|
-
weight: 3500,
|
|
652
|
-
volume: 17.0,
|
|
653
|
-
pallets: 8,
|
|
654
|
-
},
|
|
655
|
-
status: 'available',
|
|
656
|
-
currentLocation: {
|
|
657
|
-
latitude: 37.7849,
|
|
658
|
-
longitude: -122.4094,
|
|
659
|
-
address: 'Warehouse District',
|
|
660
|
-
timestamp: new Date('2024-01-15T08:00:00Z'),
|
|
661
|
-
accuracy: 5,
|
|
662
|
-
},
|
|
663
|
-
lastMaintenance: new Date('2024-01-01T00:00:00Z'),
|
|
664
|
-
nextMaintenance: new Date('2024-04-01T00:00:00Z'),
|
|
665
|
-
fuelLevel: 90,
|
|
666
|
-
mileage: 28750,
|
|
667
|
-
documents: [
|
|
668
|
-
{
|
|
669
|
-
id: 'doc-3',
|
|
670
|
-
type: 'registration',
|
|
671
|
-
documentUrl: '/documents/vehicle-2-registration.pdf',
|
|
672
|
-
expiryDate: new Date('2025-08-15T00:00:00Z'),
|
|
673
|
-
verified: true,
|
|
674
|
-
},
|
|
675
|
-
],
|
|
676
|
-
createdAt: new Date('2021-08-15T00:00:00Z'),
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
id: 'vehicle-3',
|
|
680
|
-
vehicleNumber: 'VAN-002',
|
|
681
|
-
type: 'van',
|
|
682
|
-
make: 'Chevrolet',
|
|
683
|
-
model: 'Express',
|
|
684
|
-
year: 2023,
|
|
685
|
-
capacity: {
|
|
686
|
-
weight: 1800,
|
|
687
|
-
volume: 14.0,
|
|
688
|
-
pallets: 5,
|
|
689
|
-
},
|
|
690
|
-
status: 'maintenance',
|
|
691
|
-
lastMaintenance: new Date('2024-01-10T00:00:00Z'),
|
|
692
|
-
nextMaintenance: new Date('2024-01-20T00:00:00Z'),
|
|
693
|
-
fuelLevel: 45,
|
|
694
|
-
mileage: 12500,
|
|
695
|
-
documents: [],
|
|
696
|
-
createdAt: new Date('2023-06-01T00:00:00Z'),
|
|
697
|
-
},
|
|
698
|
-
];
|
|
699
|
-
|
|
700
|
-
// Mock Drivers
|
|
701
|
-
export const mockDrivers: Driver[] = [
|
|
702
|
-
{
|
|
703
|
-
id: 'driver-1',
|
|
704
|
-
userId: 'user-3',
|
|
705
|
-
fullName: 'Mike Wilson',
|
|
706
|
-
employeeId: 'EMP001',
|
|
707
|
-
licenseNumber: 'DL123456789',
|
|
708
|
-
licenseType: 'Commercial Class A',
|
|
709
|
-
licenseExpiry: new Date('2026-05-15T00:00:00Z'),
|
|
710
|
-
vehicleIds: ['vehicle-1'],
|
|
711
|
-
assignedVehicle: 'vehicle-1',
|
|
712
|
-
status: 'busy',
|
|
713
|
-
currentLocation: {
|
|
714
|
-
latitude: 37.7749,
|
|
715
|
-
longitude: -122.4194,
|
|
716
|
-
address: 'Downtown San Francisco',
|
|
717
|
-
timestamp: new Date('2024-01-15T10:30:00Z'),
|
|
718
|
-
accuracy: 10,
|
|
719
|
-
},
|
|
720
|
-
joinDate: new Date('2021-03-15T00:00:00Z'),
|
|
721
|
-
baseSalary: 55000,
|
|
722
|
-
completedOrders: 1250,
|
|
723
|
-
todayOrders: 5,
|
|
724
|
-
specializations: ['local_delivery', 'refrigerated_transport'],
|
|
725
|
-
workingHours: {
|
|
726
|
-
startTime: '08:00',
|
|
727
|
-
endTime: '17:00',
|
|
728
|
-
workingDays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
|
|
729
|
-
maxHoursPerDay: 8,
|
|
730
|
-
maxHoursPerWeek: 40,
|
|
731
|
-
currentHoursToday: 2.5,
|
|
732
|
-
currentHoursThisWeek: 22,
|
|
733
|
-
},
|
|
734
|
-
ratings: {
|
|
735
|
-
overall: 4.8,
|
|
736
|
-
punctuality: 4.9,
|
|
737
|
-
communication: 4.7,
|
|
738
|
-
carefulHandling: 4.8,
|
|
739
|
-
professionalism: 4.8,
|
|
740
|
-
onTimeDelivery: 4.9,
|
|
741
|
-
totalRatings: 156,
|
|
742
|
-
},
|
|
743
|
-
documents: [
|
|
744
|
-
{
|
|
745
|
-
id: 'driver-doc-1',
|
|
746
|
-
type: 'license',
|
|
747
|
-
documentUrl: '/documents/driver-1-license.pdf',
|
|
748
|
-
expiryDate: new Date('2026-05-15T00:00:00Z'),
|
|
749
|
-
verified: true,
|
|
750
|
-
},
|
|
751
|
-
],
|
|
752
|
-
earnings: {
|
|
753
|
-
totalEarnings: 45230.5,
|
|
754
|
-
weeklyEarnings: 892.25,
|
|
755
|
-
monthlyEarnings: 3580.75,
|
|
756
|
-
pendingPayments: 450.0,
|
|
757
|
-
completedDeliveries: 1247,
|
|
758
|
-
bonuses: 230.0,
|
|
759
|
-
},
|
|
760
|
-
compliance: {
|
|
761
|
-
hoursOfService: true,
|
|
762
|
-
documentation: true,
|
|
763
|
-
vehicleInspection: true,
|
|
764
|
-
lastUpdate: new Date('2024-01-15T08:00:00Z'),
|
|
765
|
-
},
|
|
766
|
-
createdAt: new Date('2021-03-15T00:00:00Z'),
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
id: 'driver-2',
|
|
770
|
-
userId: 'user-5',
|
|
771
|
-
fullName: 'James Rodriguez',
|
|
772
|
-
employeeId: 'EMP002',
|
|
773
|
-
licenseNumber: 'DL987654321',
|
|
774
|
-
licenseType: 'Commercial Class B',
|
|
775
|
-
licenseExpiry: new Date('2025-11-20T00:00:00Z'),
|
|
776
|
-
vehicleIds: ['vehicle-2'],
|
|
777
|
-
status: 'available',
|
|
778
|
-
joinDate: new Date('2022-06-01T00:00:00Z'),
|
|
779
|
-
baseSalary: 52000,
|
|
780
|
-
completedOrders: 850,
|
|
781
|
-
todayOrders: 0,
|
|
782
|
-
specializations: ['long_haul', 'heavy_freight'],
|
|
783
|
-
workingHours: {
|
|
784
|
-
startTime: '06:00',
|
|
785
|
-
endTime: '15:00',
|
|
786
|
-
workingDays: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
|
787
|
-
maxHoursPerDay: 10,
|
|
788
|
-
maxHoursPerWeek: 50,
|
|
789
|
-
currentHoursToday: 0,
|
|
790
|
-
currentHoursThisWeek: 35,
|
|
791
|
-
},
|
|
792
|
-
ratings: {
|
|
793
|
-
overall: 4.6,
|
|
794
|
-
punctuality: 4.5,
|
|
795
|
-
communication: 4.7,
|
|
796
|
-
carefulHandling: 4.6,
|
|
797
|
-
professionalism: 4.7,
|
|
798
|
-
onTimeDelivery: 4.5,
|
|
799
|
-
totalRatings: 98,
|
|
800
|
-
},
|
|
801
|
-
documents: [],
|
|
802
|
-
earnings: {
|
|
803
|
-
totalEarnings: 32150.0,
|
|
804
|
-
weeklyEarnings: 780.5,
|
|
805
|
-
monthlyEarnings: 3120.0,
|
|
806
|
-
pendingPayments: 0,
|
|
807
|
-
completedDeliveries: 848,
|
|
808
|
-
bonuses: 150.0,
|
|
809
|
-
},
|
|
810
|
-
compliance: {
|
|
811
|
-
hoursOfService: true,
|
|
812
|
-
documentation: true,
|
|
813
|
-
vehicleInspection: true,
|
|
814
|
-
lastUpdate: new Date('2024-01-14T06:00:00Z'),
|
|
815
|
-
},
|
|
816
|
-
createdAt: new Date('2022-06-01T00:00:00Z'),
|
|
817
|
-
},
|
|
818
|
-
];
|
|
819
|
-
|
|
820
|
-
// Mock Warehouses
|
|
821
|
-
export const mockWarehouses: Warehouse[] = [
|
|
822
|
-
{
|
|
823
|
-
id: 'warehouse-1',
|
|
824
|
-
name: 'Main Distribution Center',
|
|
825
|
-
code: 'MDC-SF-001',
|
|
826
|
-
address: {
|
|
827
|
-
street: '789 Warehouse District',
|
|
828
|
-
city: 'San Francisco',
|
|
829
|
-
state: 'CA',
|
|
830
|
-
postalCode: '94103',
|
|
831
|
-
country: 'USA',
|
|
832
|
-
latitude: 37.7849,
|
|
833
|
-
longitude: -122.4094,
|
|
834
|
-
},
|
|
835
|
-
type: 'distribution',
|
|
836
|
-
capacity: {
|
|
837
|
-
totalSpace: 50000,
|
|
838
|
-
usedSpace: 32500,
|
|
839
|
-
totalPallets: 2000,
|
|
840
|
-
usedPallets: 1300,
|
|
841
|
-
specialAreas: [
|
|
842
|
-
{
|
|
843
|
-
type: 'cold_storage',
|
|
844
|
-
capacity: 500,
|
|
845
|
-
currentUsage: 200,
|
|
846
|
-
temperature: { min: -18, max: -15, unit: 'celsius' },
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
type: 'hazmat',
|
|
850
|
-
capacity: 100,
|
|
851
|
-
currentUsage: 25,
|
|
852
|
-
},
|
|
853
|
-
],
|
|
854
|
-
},
|
|
855
|
-
operatingHours: {
|
|
856
|
-
Monday: { open: '06:00', close: '22:00' },
|
|
857
|
-
Tuesday: { open: '06:00', close: '22:00' },
|
|
858
|
-
Wednesday: { open: '06:00', close: '22:00' },
|
|
859
|
-
Thursday: { open: '06:00', close: '22:00' },
|
|
860
|
-
Friday: { open: '06:00', close: '22:00' },
|
|
861
|
-
Saturday: { open: '08:00', close: '18:00' },
|
|
862
|
-
Sunday: null,
|
|
863
|
-
},
|
|
864
|
-
contacts: [
|
|
865
|
-
{
|
|
866
|
-
primaryEmail: 'warehouse@quicklogistics.com',
|
|
867
|
-
primaryPhone: '+1-555-0150',
|
|
868
|
-
},
|
|
869
|
-
],
|
|
870
|
-
zones: [
|
|
871
|
-
{
|
|
872
|
-
id: 'zone-1',
|
|
873
|
-
name: 'Receiving Dock A',
|
|
874
|
-
type: 'receiving',
|
|
875
|
-
location: 'North Wing',
|
|
876
|
-
capacity: 200,
|
|
877
|
-
currentOccupancy: 45,
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
id: 'zone-2',
|
|
881
|
-
name: 'Storage Area 1',
|
|
882
|
-
type: 'storage',
|
|
883
|
-
location: 'Central Area',
|
|
884
|
-
capacity: 1000,
|
|
885
|
-
currentOccupancy: 650,
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
id: 'zone-3',
|
|
889
|
-
name: 'Picking Zone A',
|
|
890
|
-
type: 'picking',
|
|
891
|
-
location: 'East Wing',
|
|
892
|
-
capacity: 300,
|
|
893
|
-
currentOccupancy: 180,
|
|
894
|
-
},
|
|
895
|
-
],
|
|
896
|
-
equipment: [
|
|
897
|
-
{
|
|
898
|
-
id: 'equip-1',
|
|
899
|
-
type: 'forklift',
|
|
900
|
-
model: 'Toyota 8FGU25',
|
|
901
|
-
status: 'operational',
|
|
902
|
-
lastMaintenance: new Date('2024-01-01T00:00:00Z'),
|
|
903
|
-
nextMaintenance: new Date('2024-04-01T00:00:00Z'),
|
|
904
|
-
},
|
|
905
|
-
],
|
|
906
|
-
staff: [
|
|
907
|
-
{
|
|
908
|
-
userId: 'user-5',
|
|
909
|
-
role: 'supervisor',
|
|
910
|
-
shift: 'morning',
|
|
911
|
-
permissions: ['manage_inventory', 'assign_tasks', 'view_reports'],
|
|
912
|
-
},
|
|
913
|
-
],
|
|
914
|
-
metrics: {
|
|
915
|
-
throughput: 850,
|
|
916
|
-
accuracy: 99.2,
|
|
917
|
-
productivity: 87.5,
|
|
918
|
-
utilization: 65.0,
|
|
919
|
-
ordersFulfilled: 1247,
|
|
920
|
-
averageProcessingTime: 15.5,
|
|
921
|
-
lastUpdated: new Date('2024-01-15T10:00:00Z'),
|
|
922
|
-
},
|
|
923
|
-
isActive: true,
|
|
924
|
-
createdAt: new Date('2022-01-01T00:00:00Z'),
|
|
925
|
-
},
|
|
926
|
-
];
|
|
927
|
-
|
|
928
|
-
// Mock Inventory
|
|
929
|
-
export const mockInventory: Inventory[] = [
|
|
930
|
-
{
|
|
931
|
-
id: 'inv-1',
|
|
932
|
-
productId: 'product-1',
|
|
933
|
-
warehouseId: 'warehouse-1',
|
|
934
|
-
zoneId: 'zone-2',
|
|
935
|
-
quantity: 85,
|
|
936
|
-
reservedQuantity: 12,
|
|
937
|
-
availableQuantity: 73,
|
|
938
|
-
reorderLevel: 20,
|
|
939
|
-
maxLevel: 100,
|
|
940
|
-
lastRestocked: new Date('2024-01-10T00:00:00Z'),
|
|
941
|
-
location: {
|
|
942
|
-
aisle: 'A',
|
|
943
|
-
shelf: '12',
|
|
944
|
-
position: 'B',
|
|
945
|
-
level: 2,
|
|
946
|
-
},
|
|
947
|
-
movements: [
|
|
948
|
-
{
|
|
949
|
-
id: 'mov-1',
|
|
950
|
-
type: 'outbound',
|
|
951
|
-
quantity: -1,
|
|
952
|
-
reason: 'Order fulfillment',
|
|
953
|
-
reference: 'order-1',
|
|
954
|
-
performedBy: 'user-3',
|
|
955
|
-
timestamp: new Date('2024-01-15T09:15:00Z'),
|
|
956
|
-
cost: 1299.99,
|
|
957
|
-
},
|
|
958
|
-
],
|
|
959
|
-
createdAt: new Date('2023-01-01T00:00:00Z'),
|
|
960
|
-
updatedAt: new Date('2024-01-15T09:15:00Z'),
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
id: 'inv-2',
|
|
964
|
-
productId: 'product-2',
|
|
965
|
-
warehouseId: 'warehouse-1',
|
|
966
|
-
zoneId: 'zone-2',
|
|
967
|
-
quantity: 45,
|
|
968
|
-
reservedQuantity: 5,
|
|
969
|
-
availableQuantity: 40,
|
|
970
|
-
reorderLevel: 10,
|
|
971
|
-
maxLevel: 50,
|
|
972
|
-
lastRestocked: new Date('2024-01-12T00:00:00Z'),
|
|
973
|
-
location: {
|
|
974
|
-
aisle: 'B',
|
|
975
|
-
shelf: '5',
|
|
976
|
-
position: 'A',
|
|
977
|
-
level: 1,
|
|
978
|
-
},
|
|
979
|
-
movements: [
|
|
980
|
-
{
|
|
981
|
-
id: 'mov-2',
|
|
982
|
-
type: 'inbound',
|
|
983
|
-
quantity: 25,
|
|
984
|
-
reason: 'Restock',
|
|
985
|
-
reference: 'PO-2024-001',
|
|
986
|
-
performedBy: 'user-5',
|
|
987
|
-
timestamp: new Date('2024-01-12T00:00:00Z'),
|
|
988
|
-
cost: 8749.75,
|
|
989
|
-
},
|
|
990
|
-
],
|
|
991
|
-
createdAt: new Date('2023-01-01T00:00:00Z'),
|
|
992
|
-
updatedAt: new Date('2024-01-12T00:00:00Z'),
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
id: 'inv-3',
|
|
996
|
-
productId: 'product-3',
|
|
997
|
-
warehouseId: 'warehouse-1',
|
|
998
|
-
zoneId: 'zone-2',
|
|
999
|
-
quantity: 150,
|
|
1000
|
-
reservedQuantity: 20,
|
|
1001
|
-
availableQuantity: 130,
|
|
1002
|
-
reorderLevel: 30,
|
|
1003
|
-
maxLevel: 200,
|
|
1004
|
-
lastRestocked: new Date('2024-01-14T00:00:00Z'),
|
|
1005
|
-
location: {
|
|
1006
|
-
aisle: 'A',
|
|
1007
|
-
shelf: '8',
|
|
1008
|
-
position: 'C',
|
|
1009
|
-
level: 3,
|
|
1010
|
-
},
|
|
1011
|
-
movements: [],
|
|
1012
|
-
createdAt: new Date('2023-06-01T00:00:00Z'),
|
|
1013
|
-
updatedAt: new Date('2024-01-14T00:00:00Z'),
|
|
1014
|
-
},
|
|
1015
|
-
];
|
|
1016
|
-
|
|
1017
|
-
// Mock Routes
|
|
1018
|
-
export const mockRoutes: Route[] = [
|
|
1019
|
-
{
|
|
1020
|
-
id: 'route-1',
|
|
1021
|
-
name: 'Downtown Delivery Route 1',
|
|
1022
|
-
driverId: 'driver-1',
|
|
1023
|
-
vehicleId: 'vehicle-1',
|
|
1024
|
-
status: 'in_progress',
|
|
1025
|
-
stops: [
|
|
1026
|
-
{
|
|
1027
|
-
id: 'stop-1',
|
|
1028
|
-
orderId: 'order-1',
|
|
1029
|
-
sequence: 1,
|
|
1030
|
-
address: {
|
|
1031
|
-
street: '789 Warehouse District',
|
|
1032
|
-
city: 'San Francisco',
|
|
1033
|
-
state: 'CA',
|
|
1034
|
-
postalCode: '94103',
|
|
1035
|
-
country: 'USA',
|
|
1036
|
-
latitude: 37.7849,
|
|
1037
|
-
longitude: -122.4094,
|
|
1038
|
-
},
|
|
1039
|
-
type: 'pickup',
|
|
1040
|
-
scheduledTime: new Date('2024-01-15T09:00:00Z'),
|
|
1041
|
-
actualTime: new Date('2024-01-15T09:15:00Z'),
|
|
1042
|
-
duration: 15,
|
|
1043
|
-
status: 'completed',
|
|
1044
|
-
notes: 'Package picked up successfully',
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
id: 'stop-2',
|
|
1048
|
-
orderId: 'order-1',
|
|
1049
|
-
sequence: 2,
|
|
1050
|
-
address: {
|
|
1051
|
-
street: '456 Residential Ave',
|
|
1052
|
-
city: 'San Francisco',
|
|
1053
|
-
state: 'CA',
|
|
1054
|
-
postalCode: '94110',
|
|
1055
|
-
country: 'USA',
|
|
1056
|
-
latitude: 37.7349,
|
|
1057
|
-
longitude: -122.4294,
|
|
1058
|
-
},
|
|
1059
|
-
type: 'delivery',
|
|
1060
|
-
scheduledTime: new Date('2024-01-15T14:00:00Z'),
|
|
1061
|
-
duration: 10,
|
|
1062
|
-
status: 'pending',
|
|
1063
|
-
},
|
|
1064
|
-
],
|
|
1065
|
-
distance: 18.5,
|
|
1066
|
-
estimatedDuration: 45,
|
|
1067
|
-
startTime: new Date('2024-01-15T08:45:00Z'),
|
|
1068
|
-
optimized: true,
|
|
1069
|
-
trafficConditions: [
|
|
1070
|
-
{
|
|
1071
|
-
timestamp: new Date('2024-01-15T10:30:00Z'),
|
|
1072
|
-
condition: 'moderate',
|
|
1073
|
-
delay: 5,
|
|
1074
|
-
location: 'Mission Street Bridge',
|
|
1075
|
-
},
|
|
1076
|
-
],
|
|
1077
|
-
createdAt: new Date('2024-01-15T08:00:00Z'),
|
|
1078
|
-
},
|
|
1079
|
-
];
|
|
1080
|
-
|
|
1081
|
-
// Mock Tracking
|
|
1082
|
-
export const mockTracking: Tracking[] = [
|
|
1083
|
-
{
|
|
1084
|
-
id: 'track-1',
|
|
1085
|
-
entityId: 'order-1',
|
|
1086
|
-
entityType: 'order',
|
|
1087
|
-
currentLocation: {
|
|
1088
|
-
latitude: 37.7549,
|
|
1089
|
-
longitude: -122.4244,
|
|
1090
|
-
address: 'En route to delivery',
|
|
1091
|
-
timestamp: new Date('2024-01-15T10:30:00Z'),
|
|
1092
|
-
accuracy: 10,
|
|
1093
|
-
},
|
|
1094
|
-
locationHistory: [
|
|
1095
|
-
{
|
|
1096
|
-
latitude: 37.7849,
|
|
1097
|
-
longitude: -122.4094,
|
|
1098
|
-
address: 'Warehouse District',
|
|
1099
|
-
timestamp: new Date('2024-01-15T09:15:00Z'),
|
|
1100
|
-
accuracy: 5,
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
latitude: 37.7749,
|
|
1104
|
-
longitude: -122.4194,
|
|
1105
|
-
address: 'Downtown',
|
|
1106
|
-
timestamp: new Date('2024-01-15T10:00:00Z'),
|
|
1107
|
-
accuracy: 8,
|
|
1108
|
-
},
|
|
1109
|
-
],
|
|
1110
|
-
status: 'In Transit',
|
|
1111
|
-
estimatedArrival: new Date('2024-01-15T14:00:00Z'),
|
|
1112
|
-
nextCheckpoint: '456 Residential Ave',
|
|
1113
|
-
alerts: [
|
|
1114
|
-
{
|
|
1115
|
-
id: 'alert-1',
|
|
1116
|
-
type: 'delay',
|
|
1117
|
-
severity: 'low',
|
|
1118
|
-
message: 'Minor traffic delay on Mission Street',
|
|
1119
|
-
timestamp: new Date('2024-01-15T10:25:00Z'),
|
|
1120
|
-
acknowledged: true,
|
|
1121
|
-
resolvedAt: new Date('2024-01-15T10:30:00Z'),
|
|
1122
|
-
},
|
|
1123
|
-
],
|
|
1124
|
-
lastUpdated: new Date('2024-01-15T10:30:00Z'),
|
|
1125
|
-
},
|
|
1126
|
-
];
|
|
1127
|
-
|
|
1128
|
-
// Mock Notifications
|
|
1129
|
-
export const mockNotifications: Notification[] = [
|
|
1130
|
-
{
|
|
1131
|
-
id: 'notif-1',
|
|
1132
|
-
type: 'success',
|
|
1133
|
-
title: 'Order Picked Up',
|
|
1134
|
-
message: 'Order ORD-2024-001001 has been successfully picked up and is en route',
|
|
1135
|
-
read: false,
|
|
1136
|
-
actionUrl: '/orders/order-1',
|
|
1137
|
-
createdAt: new Date('2024-01-15T09:15:00Z'),
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
id: 'notif-2',
|
|
1141
|
-
type: 'warning',
|
|
1142
|
-
title: 'Low Inventory Alert',
|
|
1143
|
-
message: 'Gaming Laptop Pro is running low in stock (20 units remaining)',
|
|
1144
|
-
read: false,
|
|
1145
|
-
actionUrl: '/inventory',
|
|
1146
|
-
createdAt: new Date('2024-01-15T08:00:00Z'),
|
|
1147
|
-
},
|
|
1148
|
-
{
|
|
1149
|
-
id: 'notif-3',
|
|
1150
|
-
type: 'info',
|
|
1151
|
-
title: 'New Order Received',
|
|
1152
|
-
message: 'New B2B order ORD-2024-001002 from TechStart Inc.',
|
|
1153
|
-
read: true,
|
|
1154
|
-
actionUrl: '/orders/order-2',
|
|
1155
|
-
createdAt: new Date('2024-01-15T11:00:00Z'),
|
|
1156
|
-
},
|
|
1157
|
-
];
|
|
1158
|
-
|
|
1159
|
-
// Mock Service Providers
|
|
1160
|
-
export const mockServiceProviders: ServiceProvider[] = [
|
|
1161
|
-
{
|
|
1162
|
-
id: 'provider-1',
|
|
1163
|
-
userId: 'user-sp-1',
|
|
1164
|
-
companyName: 'QuickLogistics Pro',
|
|
1165
|
-
businessType: 'logistics',
|
|
1166
|
-
description:
|
|
1167
|
-
'Premium last-mile delivery services with real-time tracking and guaranteed delivery windows.',
|
|
1168
|
-
services: [],
|
|
1169
|
-
coverage: {
|
|
1170
|
-
countries: ['United States'],
|
|
1171
|
-
states: ['CA', 'NY', 'TX', 'FL'],
|
|
1172
|
-
cities: ['San Francisco', 'Los Angeles', 'New York', 'Austin', 'Miami'],
|
|
1173
|
-
zipCodes: [],
|
|
1174
|
-
serviceRadius: 50,
|
|
1175
|
-
domesticService: true,
|
|
1176
|
-
internationalService: false,
|
|
1177
|
-
},
|
|
1178
|
-
certifications: [
|
|
1179
|
-
{
|
|
1180
|
-
id: 'cert-1',
|
|
1181
|
-
name: 'DOT Certification',
|
|
1182
|
-
issuingBody: 'Department of Transportation',
|
|
1183
|
-
certificateNumber: 'DOT-123456',
|
|
1184
|
-
issueDate: new Date('2023-01-15'),
|
|
1185
|
-
expiryDate: new Date('2025-01-15'),
|
|
1186
|
-
documentUrl: '/docs/dot-cert.pdf',
|
|
1187
|
-
verified: true,
|
|
1188
|
-
},
|
|
1189
|
-
],
|
|
1190
|
-
pricing: {
|
|
1191
|
-
model: 'per_shipment',
|
|
1192
|
-
basePrice: 15.99,
|
|
1193
|
-
currency: 'USD',
|
|
1194
|
-
minimumCharge: 10.0,
|
|
1195
|
-
additionalFees: [],
|
|
1196
|
-
discounts: [],
|
|
1197
|
-
negotiable: false,
|
|
1198
|
-
},
|
|
1199
|
-
availability: {
|
|
1200
|
-
operatingHours: {
|
|
1201
|
-
monday: { open: '08:00', close: '18:00' },
|
|
1202
|
-
tuesday: { open: '08:00', close: '18:00' },
|
|
1203
|
-
wednesday: { open: '08:00', close: '18:00' },
|
|
1204
|
-
thursday: { open: '08:00', close: '18:00' },
|
|
1205
|
-
friday: { open: '08:00', close: '18:00' },
|
|
1206
|
-
saturday: { open: '09:00', close: '15:00' },
|
|
1207
|
-
sunday: null,
|
|
1208
|
-
},
|
|
1209
|
-
responseTime: 2,
|
|
1210
|
-
leadTime: 1,
|
|
1211
|
-
capacity: 100,
|
|
1212
|
-
blackoutDates: [],
|
|
1213
|
-
emergencyService: true,
|
|
1214
|
-
},
|
|
1215
|
-
rating: 4.8,
|
|
1216
|
-
totalReviews: 156,
|
|
1217
|
-
verificationStatus: 'verified',
|
|
1218
|
-
documents: [],
|
|
1219
|
-
contactInfo: {
|
|
1220
|
-
primaryEmail: 'contact@quicklogistics.com',
|
|
1221
|
-
primaryPhone: '+1-555-QUICK',
|
|
1222
|
-
website: 'https://quicklogistics.com',
|
|
1223
|
-
},
|
|
1224
|
-
isActive: true,
|
|
1225
|
-
featured: true,
|
|
1226
|
-
createdAt: new Date('2023-02-01'),
|
|
1227
|
-
updatedAt: new Date('2024-01-15'),
|
|
1228
|
-
},
|
|
1229
|
-
];
|
|
1230
|
-
|
|
1231
|
-
// Mock Service Offerings
|
|
1232
|
-
export const mockServiceOfferings: ServiceOffering[] = [
|
|
1233
|
-
{
|
|
1234
|
-
id: 'service-1',
|
|
1235
|
-
serviceProviderId: 'provider-1',
|
|
1236
|
-
title: 'Same-Day Delivery',
|
|
1237
|
-
description:
|
|
1238
|
-
'Guaranteed same-day delivery within the city limits with real-time tracking and SMS notifications.',
|
|
1239
|
-
category: 'last_mile_delivery',
|
|
1240
|
-
subCategory: 'same_day',
|
|
1241
|
-
features: [
|
|
1242
|
-
'Real-time tracking',
|
|
1243
|
-
'SMS notifications',
|
|
1244
|
-
'Proof of delivery photos',
|
|
1245
|
-
'Signature capture',
|
|
1246
|
-
'Insurance included',
|
|
1247
|
-
],
|
|
1248
|
-
pricing: {
|
|
1249
|
-
basePrice: 15.99,
|
|
1250
|
-
currency: 'USD',
|
|
1251
|
-
pricePerUnit: 2.5,
|
|
1252
|
-
unit: 'kg',
|
|
1253
|
-
minimumCharge: 15.99,
|
|
1254
|
-
},
|
|
1255
|
-
duration: {
|
|
1256
|
-
estimated: 4,
|
|
1257
|
-
minimum: 2,
|
|
1258
|
-
maximum: 8,
|
|
1259
|
-
unit: 'hours',
|
|
1260
|
-
},
|
|
1261
|
-
requirements: [
|
|
1262
|
-
'Package weight under 30kg',
|
|
1263
|
-
'Pickup within city limits',
|
|
1264
|
-
'Delivery within city limits',
|
|
1265
|
-
],
|
|
1266
|
-
capacity: {
|
|
1267
|
-
maxWeight: 30,
|
|
1268
|
-
maxVolume: 0.5,
|
|
1269
|
-
maxDistance: 50,
|
|
1270
|
-
simultaneousOrders: 25,
|
|
1271
|
-
},
|
|
1272
|
-
images: ['/images/same-day-delivery-1.jpg'],
|
|
1273
|
-
tags: ['fast', 'reliable', 'tracking', 'urban'],
|
|
1274
|
-
isActive: true,
|
|
1275
|
-
createdAt: new Date('2023-02-15'),
|
|
1276
|
-
},
|
|
1277
|
-
];
|
|
1278
|
-
|
|
1279
|
-
// Mock Analytics
|
|
1280
|
-
export const mockAnalytics: Analytics = {
|
|
1281
|
-
overview: {
|
|
1282
|
-
totalOrders: 15420,
|
|
1283
|
-
totalRevenue: 2845670.5,
|
|
1284
|
-
activeVehicles: 28,
|
|
1285
|
-
onTimeDeliveryRate: 94.2,
|
|
1286
|
-
customerSatisfaction: 4.7,
|
|
1287
|
-
},
|
|
1288
|
-
trends: {
|
|
1289
|
-
dailyOrders: [
|
|
1290
|
-
{ date: '2024-01-08', orders: 156 },
|
|
1291
|
-
{ date: '2024-01-09', orders: 143 },
|
|
1292
|
-
{ date: '2024-01-10', orders: 189 },
|
|
1293
|
-
{ date: '2024-01-11', orders: 167 },
|
|
1294
|
-
{ date: '2024-01-12', orders: 201 },
|
|
1295
|
-
{ date: '2024-01-13', orders: 178 },
|
|
1296
|
-
{ date: '2024-01-14', orders: 195 },
|
|
1297
|
-
{ date: '2024-01-15', orders: 87 },
|
|
1298
|
-
],
|
|
1299
|
-
revenue: [
|
|
1300
|
-
{ month: 'Sep', revenue: 234500 },
|
|
1301
|
-
{ month: 'Oct', revenue: 267800 },
|
|
1302
|
-
{ month: 'Nov', revenue: 289400 },
|
|
1303
|
-
{ month: 'Dec', revenue: 312600 },
|
|
1304
|
-
{ month: 'Jan', revenue: 245670 },
|
|
1305
|
-
],
|
|
1306
|
-
},
|
|
1307
|
-
fleet: {
|
|
1308
|
-
utilization: 78.5,
|
|
1309
|
-
totalVehicles: 35,
|
|
1310
|
-
activeVehicles: 28,
|
|
1311
|
-
maintenanceVehicles: 4,
|
|
1312
|
-
outOfServiceVehicles: 3,
|
|
1313
|
-
fuelEfficiency: 12.8,
|
|
1314
|
-
},
|
|
1315
|
-
performance: {
|
|
1316
|
-
onTimePickup: 92.1,
|
|
1317
|
-
onTimeDelivery: 94.2,
|
|
1318
|
-
damagedItems: 0.3,
|
|
1319
|
-
customerComplaints: 1.2,
|
|
1320
|
-
driverRatings: 4.6,
|
|
1321
|
-
},
|
|
1322
|
-
};
|
|
1323
|
-
|
|
1324
|
-
// Export all mock data
|
|
1325
|
-
export const mockData = {
|
|
1326
|
-
users: mockUsers,
|
|
1327
|
-
customers: mockCustomers,
|
|
1328
|
-
products: mockProducts,
|
|
1329
|
-
orders: mockOrders,
|
|
1330
|
-
vehicles: mockVehicles,
|
|
1331
|
-
drivers: mockDrivers,
|
|
1332
|
-
warehouses: mockWarehouses,
|
|
1333
|
-
inventory: mockInventory,
|
|
1334
|
-
routes: mockRoutes,
|
|
1335
|
-
tracking: mockTracking,
|
|
1336
|
-
notifications: mockNotifications,
|
|
1337
|
-
serviceProviders: mockServiceProviders,
|
|
1338
|
-
serviceOfferings: mockServiceOfferings,
|
|
1339
|
-
analytics: mockAnalytics,
|
|
1340
|
-
};
|
|
1341
|
-
|
|
1342
|
-
export default mockData;
|