@olenbetong/synergi-react 5.3.1 → 5.5.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.
Files changed (141) hide show
  1. package/dist/styles/styles.css +1 -1
  2. package/dist/styles/styles.css.map +1 -1
  3. package/es/charts/CallOffDeliveries/TicketScanDialog.d.ts +7 -0
  4. package/es/charts/CallOffDeliveries/TicketScanDialog.js +47 -0
  5. package/es/charts/CallOffDeliveries/chartOptions.d.ts +8 -0
  6. package/es/charts/CallOffDeliveries/chartOptions.js +138 -0
  7. package/es/charts/CallOffDeliveries/data.d.ts +35 -0
  8. package/es/charts/CallOffDeliveries/data.js +30 -0
  9. package/es/charts/CallOffDeliveries/index.css +1 -0
  10. package/es/charts/CallOffDeliveries/index.d.ts +24 -0
  11. package/es/charts/CallOffDeliveries/index.js +115 -0
  12. package/es/charts/CallOffDeliveries/model.d.ts +37 -0
  13. package/es/charts/CallOffDeliveries/model.js +59 -0
  14. package/es/charts/ProductionPlan/PlanValueDialog.d.ts +14 -0
  15. package/es/charts/ProductionPlan/PlanValueDialog.js +47 -0
  16. package/es/charts/ProductionPlan/chartOptions.d.ts +20 -0
  17. package/es/charts/ProductionPlan/chartOptions.js +353 -0
  18. package/es/charts/ProductionPlan/data.d.ts +105 -0
  19. package/es/charts/ProductionPlan/data.js +61 -0
  20. package/es/charts/ProductionPlan/index.css +1 -0
  21. package/es/charts/ProductionPlan/index.d.ts +31 -0
  22. package/es/charts/ProductionPlan/index.js +203 -0
  23. package/es/charts/ProductionPlan/model.d.ts +29 -0
  24. package/es/charts/ProductionPlan/model.js +65 -0
  25. package/es/charts/Pumping/chartOptions.d.ts +12 -0
  26. package/es/charts/Pumping/chartOptions.js +197 -0
  27. package/es/charts/Pumping/data.d.ts +65 -0
  28. package/es/charts/Pumping/data.js +20 -0
  29. package/es/charts/Pumping/index.css +1 -0
  30. package/es/charts/Pumping/index.d.ts +27 -0
  31. package/es/charts/Pumping/index.js +124 -0
  32. package/es/charts/Pumping/model.d.ts +34 -0
  33. package/es/charts/Pumping/model.js +88 -0
  34. package/es/charts/UnboundPreview/chartOptions.d.ts +3 -0
  35. package/es/charts/UnboundPreview/chartOptions.js +126 -0
  36. package/es/charts/UnboundPreview/index.css +1 -0
  37. package/es/charts/UnboundPreview/index.d.ts +20 -0
  38. package/es/charts/UnboundPreview/index.js +55 -0
  39. package/es/charts/UnboundPreview/model.d.ts +49 -0
  40. package/es/charts/UnboundPreview/model.js +67 -0
  41. package/es/charts/VehicleDeliveries/chartOptions.d.ts +13 -0
  42. package/es/charts/VehicleDeliveries/chartOptions.js +270 -0
  43. package/es/charts/VehicleDeliveries/data.d.ts +71 -0
  44. package/es/charts/VehicleDeliveries/data.js +20 -0
  45. package/es/charts/VehicleDeliveries/deliveryXRange.d.ts +4 -0
  46. package/es/charts/VehicleDeliveries/deliveryXRange.js +62 -0
  47. package/es/charts/VehicleDeliveries/index.css +1 -0
  48. package/es/charts/VehicleDeliveries/index.d.ts +24 -0
  49. package/es/charts/VehicleDeliveries/index.js +129 -0
  50. package/es/charts/VehicleDeliveries/model.d.ts +24 -0
  51. package/es/charts/VehicleDeliveries/model.js +106 -0
  52. package/es/charts/format.d.ts +12 -0
  53. package/es/charts/format.js +34 -0
  54. package/es/charts/index.d.ts +5 -0
  55. package/es/charts/index.js +5 -0
  56. package/es/charts/storage.d.ts +5 -0
  57. package/es/charts/storage.js +35 -0
  58. package/es/components/ColorCard/index.css +8 -8
  59. package/es/components/ImageEditor/ImageEditor.d.ts +6 -0
  60. package/es/components/ImageEditor/ImageEditor.js +6 -2
  61. package/es/components/ImageEditor/ResponsiveButton.d.ts +2 -1
  62. package/es/components/ImageEditor/ResponsiveButton.js +3 -3
  63. package/es/components/ImageEditor/plugins/cropPlugin/CropContext.d.ts +2 -1
  64. package/es/components/ImageEditor/plugins/cropPlugin/CropContext.js +2 -2
  65. package/es/components/ImageEditor/plugins/cropPlugin/CropToolbar.js +27 -7
  66. package/es/components/ImageEditor/types.d.ts +5 -0
  67. package/es/index.css +1 -1
  68. package/es/vehicles/VehicleInfoDialog/OutOfServiceForm.d.ts +4 -0
  69. package/es/vehicles/VehicleInfoDialog/OutOfServiceForm.js +51 -0
  70. package/es/vehicles/VehicleInfoDialog/data/dsDeliveryTickets.d.ts +99 -0
  71. package/es/vehicles/VehicleInfoDialog/data/dsDeliveryTickets.js +499 -0
  72. package/es/vehicles/VehicleInfoDialog/data/dsDriverStatus.d.ts +13 -0
  73. package/es/vehicles/VehicleInfoDialog/data/dsDriverStatus.js +69 -0
  74. package/es/vehicles/VehicleInfoDialog/data/dsVehicleInfo.d.ts +33 -0
  75. package/es/vehicles/VehicleInfoDialog/data/dsVehicleInfo.js +164 -0
  76. package/es/vehicles/VehicleInfoDialog/data/dsVehicleInfoLog.d.ts +15 -0
  77. package/es/vehicles/VehicleInfoDialog/data/dsVehicleInfoLog.js +80 -0
  78. package/es/vehicles/VehicleInfoDialog/formatting.d.ts +13 -0
  79. package/es/vehicles/VehicleInfoDialog/formatting.js +48 -0
  80. package/es/vehicles/VehicleInfoDialog/index.css +1 -0
  81. package/es/vehicles/VehicleInfoDialog/index.d.ts +11 -0
  82. package/es/vehicles/VehicleInfoDialog/index.js +46 -0
  83. package/es/vehicles/VehicleInfoDialog/tabs.d.ts +6 -0
  84. package/es/vehicles/VehicleInfoDialog/tabs.js +85 -0
  85. package/es/vehicles/index.d.ts +1 -0
  86. package/es/vehicles/index.js +1 -0
  87. package/package.json +19 -10
  88. package/src/charts/CallOffDeliveries/TicketScanDialog.tsx +79 -0
  89. package/src/charts/CallOffDeliveries/chartOptions.ts +160 -0
  90. package/src/charts/CallOffDeliveries/data.ts +67 -0
  91. package/src/charts/CallOffDeliveries/index.scss +51 -0
  92. package/src/charts/CallOffDeliveries/index.tsx +217 -0
  93. package/src/charts/CallOffDeliveries/model.test.ts +90 -0
  94. package/src/charts/CallOffDeliveries/model.ts +87 -0
  95. package/src/charts/ProductionPlan/PlanValueDialog.tsx +107 -0
  96. package/src/charts/ProductionPlan/chartOptions.ts +406 -0
  97. package/src/charts/ProductionPlan/data.ts +170 -0
  98. package/src/charts/ProductionPlan/index.scss +148 -0
  99. package/src/charts/ProductionPlan/index.tsx +432 -0
  100. package/src/charts/ProductionPlan/model.test.ts +132 -0
  101. package/src/charts/ProductionPlan/model.ts +102 -0
  102. package/src/charts/Pumping/chartOptions.ts +224 -0
  103. package/src/charts/Pumping/data.ts +91 -0
  104. package/src/charts/Pumping/index.scss +42 -0
  105. package/src/charts/Pumping/index.tsx +222 -0
  106. package/src/charts/Pumping/model.test.ts +122 -0
  107. package/src/charts/Pumping/model.ts +104 -0
  108. package/src/charts/UnboundPreview/chartOptions.ts +137 -0
  109. package/src/charts/UnboundPreview/index.scss +17 -0
  110. package/src/charts/UnboundPreview/index.tsx +100 -0
  111. package/src/charts/UnboundPreview/model.test.ts +129 -0
  112. package/src/charts/UnboundPreview/model.ts +110 -0
  113. package/src/charts/VehicleDeliveries/chartOptions.ts +311 -0
  114. package/src/charts/VehicleDeliveries/data.ts +98 -0
  115. package/src/charts/VehicleDeliveries/deliveryXRange.ts +80 -0
  116. package/src/charts/VehicleDeliveries/index.scss +43 -0
  117. package/src/charts/VehicleDeliveries/index.tsx +262 -0
  118. package/src/charts/VehicleDeliveries/model.test.ts +117 -0
  119. package/src/charts/VehicleDeliveries/model.ts +139 -0
  120. package/src/charts/format.ts +38 -0
  121. package/src/charts/index.ts +20 -0
  122. package/src/charts/storage.ts +36 -0
  123. package/src/components/ColorCard/index.css +8 -8
  124. package/src/components/ImageEditor/ImageEditor.test.tsx +103 -0
  125. package/src/components/ImageEditor/ImageEditor.tsx +18 -2
  126. package/src/components/ImageEditor/ResponsiveButton.tsx +4 -3
  127. package/src/components/ImageEditor/plugins/cropPlugin/CropContext.tsx +5 -2
  128. package/src/components/ImageEditor/plugins/cropPlugin/CropToolbar.test.tsx +118 -0
  129. package/src/components/ImageEditor/plugins/cropPlugin/CropToolbar.tsx +52 -18
  130. package/src/components/ImageEditor/types.ts +5 -0
  131. package/src/vehicles/VehicleInfoDialog/OutOfServiceForm.tsx +127 -0
  132. package/src/vehicles/VehicleInfoDialog/data/dsDeliveryTickets.ts +600 -0
  133. package/src/vehicles/VehicleInfoDialog/data/dsDriverStatus.ts +84 -0
  134. package/src/vehicles/VehicleInfoDialog/data/dsVehicleInfo.ts +198 -0
  135. package/src/vehicles/VehicleInfoDialog/data/dsVehicleInfoLog.ts +97 -0
  136. package/src/vehicles/VehicleInfoDialog/formatting.test.ts +57 -0
  137. package/src/vehicles/VehicleInfoDialog/formatting.ts +58 -0
  138. package/src/vehicles/VehicleInfoDialog/index.scss +131 -0
  139. package/src/vehicles/VehicleInfoDialog/index.tsx +106 -0
  140. package/src/vehicles/VehicleInfoDialog/tabs.tsx +188 -0
  141. package/src/vehicles/index.ts +1 -0
@@ -0,0 +1,600 @@
1
+ import { generateApiDataObject } from "@olenbetong/appframe-data";
2
+
3
+ import { dsVehicleInfo } from "./dsVehicleInfo.js";
4
+
5
+ export type DeliveryTicketsRecord = {
6
+ StartLocationID: number | null;
7
+ DeliveryTicketID: number;
8
+ SearchDT: string | null;
9
+ VehicleID: number;
10
+ Started: Date | null;
11
+ Completed: Date | null;
12
+ StatusID: number;
13
+ DriverID: string | null;
14
+ CustomerNo: string | null;
15
+ CustomerAdr1: string | null;
16
+ CustomerInv: string | null;
17
+ CustomerAdr2: string | null;
18
+ CustomerAdr3: string | null;
19
+ CustomerAdr4: string | null;
20
+ CustomerPostalCode: string | null;
21
+ BuildSiteNo: string | null;
22
+ BuildSiteAdr1: string | null;
23
+ BuildSiteAdr2: string | null;
24
+ BuildSiteAdr3: string | null;
25
+ BuildSiteAdr4: string | null;
26
+ BuildSitePostalCode: string | null;
27
+ ContactPerson: string | null;
28
+ ContactTel: string | null;
29
+ ContactFax: string | null;
30
+ ProdTime: Date;
31
+ ProdDate: Date | null;
32
+ SOrderNo: string | null;
33
+ Qty: number;
34
+ QtySet: number;
35
+ QtyProduced: number;
36
+ QtyReturned: number;
37
+ QtyTotal: number;
38
+ QtyOrdered: number | null;
39
+ TransportZoneNo: string | null;
40
+ ConcreteMixDesignNo: string | null;
41
+ ConcreteName: string | null;
42
+ ConcreteMixDesignNoAndName: string | null;
43
+ Temperature: number;
44
+ Consistency: number | null;
45
+ Quality: string | null;
46
+ Dmax: string | null;
47
+ CostPrice: number;
48
+ TotalKg: number;
49
+ KgPrM3: number | null;
50
+ DOrderNo: string | null;
51
+ Arrival: Date | null;
52
+ UnloadStart: Date | null;
53
+ UnloadComplete: Date | null;
54
+ NoWaitingTime: boolean;
55
+ Conforms: boolean;
56
+ NonConformityReasonID: number | null;
57
+ LocationName: string;
58
+ DriverName: string | null;
59
+ ArticleID: string | null;
60
+ ArticleDescription: string | null;
61
+ SignatureData: string | null;
62
+ HasNotes: number;
63
+ NotesIcon: number | null;
64
+ NotInvoiced: number;
65
+ PrimKey: string;
66
+ SearchColumn: string | null;
67
+ Unconfirmed: boolean | null;
68
+ HasScan: number;
69
+ Domain: string;
70
+ FreeEmptyTimePrM3: number;
71
+ Comments: string | null;
72
+ CallOffID: number | null;
73
+ BuildSiteID: number | null;
74
+ GPSLat: string | null;
75
+ GPSLong: string | null;
76
+ ProductionDate: Date | null;
77
+ ConcreteArticle: string | null;
78
+ ConcreteArticleDescription: string | null;
79
+ PlantID: number | null;
80
+ CallOffQty: number;
81
+ CallOffDeliveredQty: number;
82
+ IsPumping: boolean;
83
+ PumpingDeparture: Date | null;
84
+ PumpingCompleted: Date | null;
85
+ PumpingQty: number | null;
86
+ PumpingHoseLength: number | null;
87
+ PumpingAssistant: boolean;
88
+ SJACompleted: Date | null;
89
+ SJACompletedBy: string | null;
90
+ SJAInspectionID: number | null;
91
+ Created: Date;
92
+ CreatedBy: string;
93
+ Updated: Date;
94
+ UpdatedBy: string;
95
+ HasSJAComments: boolean | null;
96
+ Responsible: string | null;
97
+ Location: string | null;
98
+ Owner: string | null;
99
+ DriverRef: string | null;
100
+ DriverPhone: string | null;
101
+ DriverImageHash: number | null;
102
+ };
103
+
104
+ export const dsDeliveryTickets = generateApiDataObject<DeliveryTicketsRecord>({
105
+ resource: "aviw_Fleet_DeliveryTickets_ConcreteDTs",
106
+ id: "dsDeliveryTickets",
107
+ masterDataObject: dsVehicleInfo as any,
108
+ linkFields: {
109
+ DeliveryTicketID: "LastDeliveryTicketID",
110
+ },
111
+ allowUpdate: false,
112
+ allowInsert: false,
113
+ allowDelete: false,
114
+ dynamicLoading: false,
115
+ fields: [
116
+ {
117
+ name: "StartLocationID",
118
+ type: "number",
119
+ nullable: true,
120
+ },
121
+ {
122
+ name: "DeliveryTicketID",
123
+ type: "number",
124
+ nullable: false,
125
+ },
126
+ {
127
+ name: "SearchDT",
128
+ type: "string",
129
+ nullable: true,
130
+ },
131
+ {
132
+ name: "VehicleID",
133
+ type: "number",
134
+ nullable: false,
135
+ },
136
+ {
137
+ name: "Started",
138
+ type: "datetime",
139
+ nullable: true,
140
+ },
141
+ {
142
+ name: "Completed",
143
+ type: "datetime",
144
+ nullable: true,
145
+ },
146
+ {
147
+ name: "StatusID",
148
+ type: "number",
149
+ nullable: false,
150
+ },
151
+ {
152
+ name: "DriverID",
153
+ type: "string",
154
+ nullable: true,
155
+ },
156
+ {
157
+ name: "CustomerNo",
158
+ type: "string",
159
+ nullable: true,
160
+ },
161
+ {
162
+ name: "CustomerAdr1",
163
+ type: "string",
164
+ nullable: true,
165
+ },
166
+ {
167
+ name: "CustomerInv",
168
+ type: "string",
169
+ nullable: true,
170
+ },
171
+ {
172
+ name: "CustomerAdr2",
173
+ type: "string",
174
+ nullable: true,
175
+ },
176
+ {
177
+ name: "CustomerAdr3",
178
+ type: "string",
179
+ nullable: true,
180
+ },
181
+ {
182
+ name: "CustomerAdr4",
183
+ type: "string",
184
+ nullable: true,
185
+ },
186
+ {
187
+ name: "CustomerPostalCode",
188
+ type: "string",
189
+ nullable: true,
190
+ },
191
+ {
192
+ name: "BuildSiteNo",
193
+ type: "string",
194
+ nullable: true,
195
+ },
196
+ {
197
+ name: "BuildSiteAdr1",
198
+ type: "string",
199
+ nullable: true,
200
+ },
201
+ {
202
+ name: "BuildSiteAdr2",
203
+ type: "string",
204
+ nullable: true,
205
+ },
206
+ {
207
+ name: "BuildSiteAdr3",
208
+ type: "string",
209
+ nullable: true,
210
+ },
211
+ {
212
+ name: "BuildSiteAdr4",
213
+ type: "string",
214
+ nullable: true,
215
+ },
216
+ {
217
+ name: "BuildSitePostalCode",
218
+ type: "string",
219
+ nullable: true,
220
+ },
221
+ {
222
+ name: "ContactPerson",
223
+ type: "string",
224
+ nullable: true,
225
+ },
226
+ {
227
+ name: "ContactTel",
228
+ type: "string",
229
+ nullable: true,
230
+ },
231
+ {
232
+ name: "ContactFax",
233
+ type: "string",
234
+ nullable: true,
235
+ },
236
+ {
237
+ name: "ProdTime",
238
+ type: "datetime",
239
+ nullable: false,
240
+ },
241
+ {
242
+ name: "ProdDate",
243
+ type: "date",
244
+ nullable: true,
245
+ },
246
+ {
247
+ name: "SOrderNo",
248
+ type: "string",
249
+ nullable: true,
250
+ },
251
+ {
252
+ name: "Qty",
253
+ type: "number",
254
+ nullable: false,
255
+ },
256
+ {
257
+ name: "QtySet",
258
+ type: "number",
259
+ nullable: false,
260
+ },
261
+ {
262
+ name: "QtyProduced",
263
+ type: "number",
264
+ nullable: false,
265
+ },
266
+ {
267
+ name: "QtyReturned",
268
+ type: "number",
269
+ nullable: false,
270
+ },
271
+ {
272
+ name: "QtyTotal",
273
+ type: "number",
274
+ nullable: false,
275
+ },
276
+ {
277
+ name: "QtyOrdered",
278
+ type: "number",
279
+ nullable: true,
280
+ },
281
+ {
282
+ name: "TransportZoneNo",
283
+ type: "string",
284
+ nullable: true,
285
+ },
286
+ {
287
+ name: "ConcreteMixDesignNo",
288
+ type: "string",
289
+ nullable: true,
290
+ },
291
+ {
292
+ name: "ConcreteName",
293
+ type: "string",
294
+ nullable: true,
295
+ },
296
+ {
297
+ name: "ConcreteMixDesignNoAndName",
298
+ type: "string",
299
+ nullable: true,
300
+ },
301
+ {
302
+ name: "Temperature",
303
+ type: "number",
304
+ nullable: false,
305
+ },
306
+ {
307
+ name: "Consistency",
308
+ type: "number",
309
+ nullable: true,
310
+ },
311
+ {
312
+ name: "Quality",
313
+ type: "string",
314
+ nullable: true,
315
+ },
316
+ {
317
+ name: "Dmax",
318
+ type: "string",
319
+ nullable: true,
320
+ },
321
+ {
322
+ name: "CostPrice",
323
+ type: "number",
324
+ nullable: false,
325
+ },
326
+ {
327
+ name: "TotalKg",
328
+ type: "number",
329
+ nullable: false,
330
+ },
331
+ {
332
+ name: "KgPrM3",
333
+ type: "number",
334
+ nullable: true,
335
+ },
336
+ {
337
+ name: "DOrderNo",
338
+ type: "string",
339
+ nullable: true,
340
+ },
341
+ {
342
+ name: "Arrival",
343
+ type: "datetime",
344
+ nullable: true,
345
+ },
346
+ {
347
+ name: "UnloadStart",
348
+ type: "datetime",
349
+ nullable: true,
350
+ },
351
+ {
352
+ name: "UnloadComplete",
353
+ type: "datetime",
354
+ nullable: true,
355
+ },
356
+ {
357
+ name: "NoWaitingTime",
358
+ type: "boolean",
359
+ nullable: false,
360
+ },
361
+ {
362
+ name: "Conforms",
363
+ type: "boolean",
364
+ nullable: false,
365
+ },
366
+ {
367
+ name: "NonConformityReasonID",
368
+ type: "number",
369
+ nullable: true,
370
+ },
371
+ {
372
+ name: "LocationName",
373
+ type: "string",
374
+ nullable: false,
375
+ },
376
+ {
377
+ name: "DriverName",
378
+ type: "string",
379
+ nullable: true,
380
+ },
381
+ {
382
+ name: "ArticleID",
383
+ type: "string",
384
+ nullable: true,
385
+ },
386
+ {
387
+ name: "ArticleDescription",
388
+ type: "string",
389
+ nullable: true,
390
+ },
391
+ {
392
+ name: "SignatureData",
393
+ type: "string",
394
+ nullable: true,
395
+ },
396
+ {
397
+ name: "HasNotes",
398
+ type: "number",
399
+ nullable: false,
400
+ },
401
+ {
402
+ name: "NotesIcon",
403
+ type: "number",
404
+ nullable: true,
405
+ },
406
+ {
407
+ name: "NotInvoiced",
408
+ type: "number",
409
+ nullable: false,
410
+ },
411
+ {
412
+ name: "PrimKey",
413
+ type: "string",
414
+ nullable: false,
415
+ },
416
+ {
417
+ name: "SearchColumn",
418
+ type: "string",
419
+ nullable: true,
420
+ },
421
+ {
422
+ name: "Unconfirmed",
423
+ type: "boolean",
424
+ nullable: true,
425
+ },
426
+ {
427
+ name: "HasScan",
428
+ type: "number",
429
+ nullable: false,
430
+ },
431
+ {
432
+ name: "Domain",
433
+ type: "string",
434
+ nullable: false,
435
+ },
436
+ {
437
+ name: "FreeEmptyTimePrM3",
438
+ type: "number",
439
+ nullable: false,
440
+ },
441
+ {
442
+ name: "Comments",
443
+ type: "string",
444
+ nullable: true,
445
+ },
446
+ {
447
+ name: "CallOffID",
448
+ type: "number",
449
+ nullable: true,
450
+ },
451
+ {
452
+ name: "BuildSiteID",
453
+ type: "number",
454
+ nullable: true,
455
+ },
456
+ {
457
+ name: "GPSLat",
458
+ type: "string",
459
+ nullable: true,
460
+ },
461
+ {
462
+ name: "GPSLong",
463
+ type: "string",
464
+ nullable: true,
465
+ },
466
+ {
467
+ name: "ProductionDate",
468
+ type: "date",
469
+ nullable: true,
470
+ },
471
+ {
472
+ name: "ConcreteArticle",
473
+ type: "string",
474
+ nullable: true,
475
+ },
476
+ {
477
+ name: "ConcreteArticleDescription",
478
+ type: "string",
479
+ nullable: true,
480
+ },
481
+ {
482
+ name: "PlantID",
483
+ type: "number",
484
+ nullable: true,
485
+ },
486
+ {
487
+ name: "CallOffQty",
488
+ type: "number",
489
+ nullable: false,
490
+ },
491
+ {
492
+ name: "CallOffDeliveredQty",
493
+ type: "number",
494
+ nullable: false,
495
+ },
496
+ {
497
+ name: "IsPumping",
498
+ type: "boolean",
499
+ nullable: false,
500
+ },
501
+ {
502
+ name: "PumpingDeparture",
503
+ type: "datetime",
504
+ nullable: true,
505
+ },
506
+ {
507
+ name: "PumpingCompleted",
508
+ type: "datetime",
509
+ nullable: true,
510
+ },
511
+ {
512
+ name: "PumpingQty",
513
+ type: "number",
514
+ nullable: true,
515
+ },
516
+ {
517
+ name: "PumpingHoseLength",
518
+ type: "number",
519
+ nullable: true,
520
+ },
521
+ {
522
+ name: "PumpingAssistant",
523
+ type: "boolean",
524
+ nullable: false,
525
+ },
526
+ {
527
+ name: "SJACompleted",
528
+ type: "datetime",
529
+ nullable: true,
530
+ },
531
+ {
532
+ name: "SJACompletedBy",
533
+ type: "string",
534
+ nullable: true,
535
+ },
536
+ {
537
+ name: "SJAInspectionID",
538
+ type: "number",
539
+ nullable: true,
540
+ },
541
+ {
542
+ name: "Created",
543
+ type: "datetime",
544
+ nullable: false,
545
+ },
546
+ {
547
+ name: "CreatedBy",
548
+ type: "string",
549
+ nullable: false,
550
+ },
551
+ {
552
+ name: "Updated",
553
+ type: "datetime",
554
+ nullable: false,
555
+ },
556
+ {
557
+ name: "UpdatedBy",
558
+ type: "string",
559
+ nullable: false,
560
+ },
561
+ {
562
+ name: "HasSJAComments",
563
+ type: "boolean",
564
+ nullable: true,
565
+ },
566
+ {
567
+ name: "Responsible",
568
+ type: "string",
569
+ nullable: true,
570
+ },
571
+ {
572
+ name: "Location",
573
+ type: "string",
574
+ nullable: true,
575
+ },
576
+ {
577
+ name: "Owner",
578
+ type: "string",
579
+ nullable: true,
580
+ },
581
+ {
582
+ name: "DriverRef",
583
+ type: "string",
584
+ nullable: true,
585
+ },
586
+ {
587
+ name: "DriverPhone",
588
+ type: "string",
589
+ nullable: true,
590
+ },
591
+ {
592
+ name: "DriverImageHash",
593
+ type: "number",
594
+ nullable: true,
595
+ },
596
+ ],
597
+ parameters: {
598
+ maxRecords: 50,
599
+ },
600
+ });
@@ -0,0 +1,84 @@
1
+ import { generateApiDataObject } from "@olenbetong/appframe-data";
2
+
3
+ import { dsVehicleInfo } from "./dsVehicleInfo.js";
4
+
5
+ export type DriverStatusRecord = {
6
+ PrimKey: string;
7
+ PersonID: string;
8
+ FullName: string;
9
+ PhoneMob: string | null;
10
+ WorkLocation: string | null;
11
+ ImageHash: number | null;
12
+ Timestamp: Date | null;
13
+ RemainingDrivingTimeCurrent: number | null;
14
+ RemainingDrivingTimeShift: number | null;
15
+ DurationOfNextBreak: number | null;
16
+ };
17
+
18
+ export const dsDriverStatus = generateApiDataObject<DriverStatusRecord>({
19
+ resource: "aviw_Fleet_DriversStatus",
20
+ id: "dsDriverStatus",
21
+ masterDataObject: dsVehicleInfo as any,
22
+ linkFields: {
23
+ PersonID: "PersonID",
24
+ },
25
+ allowUpdate: false,
26
+ allowInsert: false,
27
+ allowDelete: false,
28
+ dynamicLoading: false,
29
+ fields: [
30
+ {
31
+ name: "PrimKey",
32
+ type: "string",
33
+ nullable: false,
34
+ },
35
+ {
36
+ name: "PersonID",
37
+ type: "string",
38
+ nullable: false,
39
+ },
40
+ {
41
+ name: "FullName",
42
+ type: "string",
43
+ nullable: false,
44
+ },
45
+ {
46
+ name: "PhoneMob",
47
+ type: "string",
48
+ nullable: true,
49
+ },
50
+ {
51
+ name: "WorkLocation",
52
+ type: "string",
53
+ nullable: true,
54
+ },
55
+ {
56
+ name: "ImageHash",
57
+ type: "number",
58
+ nullable: true,
59
+ },
60
+ {
61
+ name: "Timestamp",
62
+ type: "datetime",
63
+ nullable: true,
64
+ },
65
+ {
66
+ name: "RemainingDrivingTimeCurrent",
67
+ type: "number",
68
+ nullable: true,
69
+ },
70
+ {
71
+ name: "RemainingDrivingTimeShift",
72
+ type: "number",
73
+ nullable: true,
74
+ },
75
+ {
76
+ name: "DurationOfNextBreak",
77
+ type: "number",
78
+ nullable: true,
79
+ },
80
+ ],
81
+ parameters: {
82
+ maxRecords: 50,
83
+ },
84
+ });