-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.dart
More file actions
518 lines (430 loc) · 16.7 KB
/
category.dart
File metadata and controls
518 lines (430 loc) · 16.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
part of '../references.dart';
enum ReferenceCategory {
/// Defines the reference as a Driver reference, generally used to identify a driver universally.
/// Layrz API Reference: DRIVER
@JsonValue('DRIVER')
driver,
/// Defines the reference as a client reference, generally used to identify a client universally.
/// Layrz API Reference: CLIENT
@JsonValue('CLIENT')
client,
/// Universal reference category, we recommend use correctly the custom fields to prevent
/// confusion or mistakes with the reference.
/// Layrz API Reference: UNIVERSAL
@JsonValue('UNIVERSAL')
universal,
/// !ATS Reference
/// Defines the access to the access to monitorist module.
/// Layrz API Reference: MONITORIST
@JsonValue('MONITORIST')
monitorist,
/// !ATS Reference
/// Defines the access to the access to the ATS Mobile app
/// Layrz API Reference: ATS_MOBILE
@JsonValue('ATS_MOBILE')
atsMobile,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module tanks
/// Layrz API Reference: ATS_TANK
@JsonValue('ATS_TANK')
atsTank,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module pumps
/// Layrz API Reference: ATS_PUMP
@JsonValue('ATS_PUMP')
atsPump,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module fleet
/// Layrz API Reference: ATS_FLEET
@JsonValue('ATS_FLEET')
atsFleet,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module convoy
/// Layrz API Reference: ATS_CONVOY
@JsonValue('ATS_CONVOY')
atsConvoy,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module
/// Layrz API Reference: ATS_LUBRICATION
@JsonValue('ATS_LUBRICATION')
atsLubrication,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module tank history
/// Layrz API Reference: ATS_TANK_HISTORY
@JsonValue('ATS_TANK_HISTORY')
atsTankHistory,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module entries history
/// Layrz API Reference: ATS_ENTRIES,
@JsonValue('ATS_ENTRIES')
atsEntries,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module purchase orders
/// Layrz API Reference: ATS_PURCHASE_ORDERS
@JsonValue('ATS_PURCHASE_ORDERS')
atsPurchaseOrders,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module link purchases
/// Layrz API Reference: ATS_LINK_PURCHASES
@JsonValue('ATS_LINK_PURCHASES')
atsLinkPurchases,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module dashboard 360
/// Layrz API Reference: ATS_DASHBOARD_360
@JsonValue('ATS_DASHBOARD_360')
atsDashboard360,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module register purchases
/// Layrz API Reference: ATS_REGISTER_PURCHASES
@JsonValue('ATS_REGISTER_PURCHASES')
atsRegisterPurchases,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module upload purchases XML
/// Layrz API Reference: ATS_UPLOAD_PURCHASES_XML
@JsonValue('ATS_UPLOAD_PURCHASES_XML')
atsUploadPurchasesXml,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module exit convoy
/// Layrz API Reference: ATS_EXECUTE_EXIT_CONVOY
@JsonValue('ATS_EXECUTE_EXIT_CONVOY')
atsExecuteExitConvoy,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module exits history
/// Layrz API Reference: ATS_EXITS
@JsonValue('ATS_EXITS')
atsExits,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module pump history
/// Layrz API Reference: ATS_PUMP_HISTORY
@JsonValue('ATS_PUMP_HISTORY')
atsPumpHistory,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module execute exit
/// Layrz API Reference: ATS_EXECUTE_EXIT
@JsonValue('ATS_EXECUTE_EXIT')
atsExecuteExit,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module tank levels
/// Layrz API Reference: ATS_TANK_LEVELS
@JsonValue('ATS_TANK_LEVELS')
atsTankLevels,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module execute NFC exits
/// Layrz API Reference: ATS_NFC_EXECUTE_EXIT
@JsonValue('ATS_NFC_EXECUTE_EXIT')
atsNfcExecuteExit,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module manual exits
/// Layrz API Reference: ATS_SELECTION_MANUAL_EXECUTE_EXIT
@JsonValue('ATS_SELECTION_MANUAL_EXECUTE_EXIT')
atsSelectionManualExecuteExit,
/// !ATS Reference
/// Defines the access to the access to the ATS Web module automatic reception
/// Layrz API Reference: ATS_AUTOMATIC_RECEPTION
@JsonValue('ATS_AUTOMATIC_RECEPTION')
atsAutomaticReception,
/// !ATS Reference
/// Defines the access user as a driver on ATS ecosystem
/// Layrz API Reference: ATS_DRIVER
@JsonValue('ATS_DRIVER')
atsDriver,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal operations
/// Layrz API Reference: ATS_TERMINAL_OPERATIONS
@JsonValue('ATS_TERMINAL_OPERATIONS')
atsTerminalOperations,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal loading grid
/// Layrz API Reference: ATS_TERMINAL_LOADING_GRID
@JsonValue('ATS_TERMINAL_LOADING_GRID')
atsTerminalLoadingGrid,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal access control
/// Layrz API Reference: ATS_TERMINAL_ACCESS_CONTROL
@JsonValue('ATS_TERMINAL_ACCESS_CONTROL')
atsTerminalAccessControl,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal yard alerts
/// Layrz API Reference: ATS_TERMINAL_YARD_ALERTS
@JsonValue('ATS_TERMINAL_YARD_ALERTS')
atsTerminalYardAlerts,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal load formatting
/// Layrz API Reference: ATS_TERMINAL_LOAD_FORMATTING
@JsonValue('ATS_TERMINAL_LOAD_FORMATTING')
atsTerminalLoadFormatting,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal stock management
/// Layrz API Reference: ATS_TERMINAL_STOCK_MANAGEMENT
@JsonValue('ATS_TERMINAL_STOCK_MANAGEMENT')
atsTerminalStockManagement,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal CACL
/// Layrz API Reference: ATS_TERMINAL_CACL
@JsonValue('ATS_TERMINAL_CACL')
atsTerminalCacl,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal edit transport
/// Layrz API Reference: ATS_TERMINAL_EDIT_TRANSPORT
@JsonValue('ATS_TERMINAL_EDIT_TRANSPORT')
atsTerminalEditTransport,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal edit transport
/// Layrz API Reference: ATS_ACCESS_COLETA
@JsonValue('ATS_ACCESS_COLETA')
atsAccessColeta,
/// !ATS Reference
/// Defines the access to the ATS Web module terminal edit transport
/// Layrz API Reference: ATS_PA_LOAD_COMBOIO
@JsonValue('ATS_PA_LOAD_COMBOIO')
atsPaLoadComboio,
/// !ATS Reference
/// [AllTank Systems] Access to send odometer in execute exits
/// ATS_SEND_ODOMETER_IN_EXECUTE_EXITS
@JsonValue('ATS_SEND_ODOMETER_IN_EXECUTE_EXITS')
atsSendOdometerInExecuteExits,
/// !ATS Reference
/// [AllTank Systems] Access to the recalculate operation button
/// ATS_RECALCULATE_OPERATION_BUTTON
@JsonValue('ATS_RECALCULATE_OPERATION_BUTTON')
atsRecalculateOperationButton,
/// !ATS Reference
/// [AllTank Systems] Access to the balsa bordo module
/// ATS_BALSA_BORDO
@JsonValue('ATS_BALSA_BORDO')
atsBalsaBordo,
/// !ATS Reference
/// [AllTank Systems] Access to export receivement report PDF
/// ATS_BALSA_EXPORT_RECEIVEMENT_REPORT_PDF
@JsonValue('ATS_BALSA_EXPORT_RECEIVEMENT_REPORT_PDF')
atsBalsaExportReceivementReportPdf,
/// !ATS Reference
/// [AllTank Systems] Access to export closure report PDF
/// ATS_EXPORT_RAFT_CLOSURE_REPORT_PDF
@JsonValue('ATS_EXPORT_RAFT_CLOSURE_REPORT_PDF')
atsExportRaftClosureReportPdf,
/// !ATS Reference
/// [AllTank Systems] Access to the CACL edit in supervisorio module
/// ATS_SUPERVISORIO_EDIT_CACL
@JsonValue('ATS_SUPERVISORIO_EDIT_CACL')
atsSupervisorioEditCacl,
/// !ATS Reference
/// [AllTank Systems] Access to the CACL remove in supervisorio module
/// ATS_SUPERVISORIO_REMOVE_CACL
@JsonValue('ATS_SUPERVISORIO_REMOVE_CACL')
atsSupervisorioRemoveCacl,
/// !ATS Reference
/// [AllTank Systems] Access to the CACL export in supervisorio module
/// ATS_SUPERVISORIO_EXPORT_CACL
@JsonValue('ATS_SUPERVISORIO_EXPORT_CACL')
atsSupervisorioExportCacl,
/// !ATS Reference
/// [AllTank Systems] Access to prevent changes in CACL telemetry inputs
/// ATS_PREVENT_CHANGES_IN_CACL_TELEMETRY_INPUTS
@JsonValue('ATS_PREVENT_CHANGES_IN_CACL_TELEMETRY_INPUTS')
atsPreventChangesInCaclTelemetryInputs,
@JsonValue('ATS_GET_ALL_TERMINALS')
/// !ATS Reference
/// [AllTank Systems] Access to get all terminals in terminal operations module
/// Layrz API Reference: ATS_GET_ALL_TERMINALS
atsGetAllTerminals,
@JsonValue('ATS_STORAGE_RECEPTION_ACCESS')
/// !ATS Reference
/// [AllTank Systems] Access to the storage reception module
/// Layrz API Reference: ATS_STORAGE_RECEPTION_ACCESS
atsStorageReceptionAccess,
/// !ATS Reference
/// [AllTank Systems] Access to swap invoice in purchase order
/// Layrz API Reference: ATS_INVOICE_SWAP
@JsonValue('ATS_INVOICE_SWAP')
atsInvoiceSwap,
/// !Mappit Reference
/// Defines the access to the Mappit module as a operator or mappit employee
/// Layrz API Reference: MAPPIT_OPERATOR
@JsonValue('MAPPIT_OPERATOR')
mappitOperator,
/// !Mappit Reference
/// Defines the access to the Mappit module as a customer
/// Layrz API Reference: MAPPIT_CUSTOMER
@JsonValue('MAPPIT_CUSTOMER')
mappitCustomer,
/// !Mappit Reference
/// Defines the access to the Mappit module as a employee
/// Layrz API Reference: MAPPIT_EMPLOYEE
@JsonValue('MAPPIT_EMPLOYEE')
mappitEmployee,
/// !Mappit Reference
/// Defines the access to the Mappit module as a supervisor
/// Layrz API Reference: MAPPIT_SUPERVISOR
@JsonValue('MAPPIT_SUPERVISOR')
mappitSupervisor,
/// !Mappit Reference
/// Defines the access to the Mappit module as a seller
/// Layrz API Reference: MAPPIT_SELLER
@JsonValue('MAPPIT_SELLER')
mappitSeller,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module home
/// Layrz API Reference: MAPPIT_PERM_HOME
@JsonValue('MAPPIT_PERM_HOME')
mappitPermHome,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module geomarketing
/// Layrz API Reference: MAPPIT_PERM_GEOMARKETING
@JsonValue('MAPPIT_PERM_GEOMARKETING')
mappitPermGeomarketing,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module time management
/// Layrz API Reference: MAPPIT_PERM_TIME_MANAGEMENT
@JsonValue('MAPPIT_PERM_TIME_MANAGEMENT')
mappitPermTimeManagement,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module reports
/// Layrz API Reference: MAPPIT_PERM_REPORTS
@JsonValue('MAPPIT_PERM_REPORTS')
mappitPermReports,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module routes
/// Layrz API Reference: MAPPIT_PERM_ROUTES
@JsonValue('MAPPIT_PERM_ROUTES')
mappitPermRoutes,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module users read only
/// Layrz API Reference: MAPPIT_PERM_USERS_READ
@JsonValue('MAPPIT_PERM_USERS_READ')
mappitPermUsersRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module users full
/// Layrz API Reference: MAPPIT_PERM_USERS_FULL
@JsonValue('MAPPIT_PERM_USERS_FULL')
mappitPermUsersFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module supervisors read only
/// Layrz API Reference: MAPPIT_PERM_SUPERVISORS_READ
@JsonValue('MAPPIT_PERM_SUPERVISORS_READ')
mappitPermSupervisorsRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module supervisors full
/// Layrz API Reference: MAPPIT_PERM_SUPERVISORS_FULL
@JsonValue('MAPPIT_PERM_SUPERVISORS_FULL')
mappitPermSupervisorsFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module sellers
/// Layrz API Reference: MAPPIT_PERM_SELLERS
@JsonValue('MAPPIT_PERM_SELLERS')
mappitPermSellers,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module operators read only
/// Layrz API Reference: MAPPIT_PERM_OPERATORS_READ
@JsonValue('MAPPIT_PERM_OPERATORS_READ')
mappitPermOperatorsRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module operators full
/// Layrz API Reference: MAPPIT_PERM_OPERATORS_FULL
@JsonValue('MAPPIT_PERM_OPERATORS_FULL')
mappitPermOperatorsFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers read only
/// Layrz API Reference: MAPPIT_PERM_GEOFENCES_CF_WRITE
@JsonValue('MAPPIT_PERM_GEOFENCES_CF_WRITE')
mappitPermGeofencesCfWrite,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers full
/// Layrz API Reference: MAPPIT_PERM_POLYGONS_READ
@JsonValue('MAPPIT_PERM_POLYGONS_READ')
mappitPermPolygonsRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers full
/// Layrz API Reference: MAPPIT_PERM_POLYGONS_FULL
@JsonValue('MAPPIT_PERM_POLYGONS_FULL')
mappitPermPolygonsFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers read only
/// Layrz API Reference: MAPPIT_PERM_PROFILES_READ
@JsonValue('MAPPIT_PERM_PROFILES_READ')
mappitPermProfilesRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers full
/// Layrz API Reference: MAPPIT_PERM_PROFILES_FULL
@JsonValue('MAPPIT_PERM_PROFILES_FULL')
mappitPermProfilesFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers read only
/// Layrz API Reference: MAPPIT_PERM_FREEDAYS_READ
@JsonValue('MAPPIT_PERM_FREEDAYS_READ')
mappitPermFreeDaysRead,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers full
/// Layrz API Reference: MAPPIT_PERM_FREEDAYS_FULL
@JsonValue('MAPPIT_PERM_FREEDAYS_FULL')
mappitPermFreeDaysFull,
/// !Mappit Reference
/// Defines the access to the Mappit Analytics module customers read only
/// Layrz API Reference: MAPPIT_PERM_TAGS_READ
@JsonValue('MAPPIT_PERM_TAGS_READ')
mappitPermTagsRead,
/// !Tenvio Reference
/// Defines the user as a dispatcher on Tenvio ecosystem
/// Layrz API Reference: TENVIO_DISPATCHER
@JsonValue('TENVIO_DISPATCHER')
tenvioDispatcher,
/// !Tenvio Reference
/// Defines the user as a operator on Tenvio ecosystem
/// Layrz API Reference: TENVIO_OPERATOR
@JsonValue('TENVIO_OPERATOR')
tenvioOperator,
/// !Tenvio Reference
/// Defines the user as a driver on Tenvio ecosystem
/// Layrz API Reference: TENVIO_DRIVER
@JsonValue('TENVIO_DRIVER')
tenvioDriver,
/// !Tenvio Reference
/// Defines the user as a client on Tenvio ecosystem
/// Layrz API Reference: TENVIO_CLIENT
@JsonValue('TENVIO_CLIENT')
tenvioClient,
/// !Tenvio Reference
/// Defines the user as a admin on Tenvio ecosystem
/// Layrz API Reference: TENVIO_ADMIN
@JsonValue('TENVIO_ADMIN')
tenvioAdmin,
/// !SDM Reference
/// Defines the user as a admin on SDM ecosystem
/// Layrz API Reference: SDM_ADMIN
@JsonValue('SDM_ADMIN')
@Deprecated('Will be removed in future versions, use sdmSupervisor instead')
sdmAdmin,
/// !SDM Reference
/// Defines the user as a supervisor on SDM ecosystem
/// Layrz API Reference: SDM_SUPERVISOR
@JsonValue('SDM_SUPERVISOR')
sdmSupervisor,
/// !SDM Reference
/// Defines the user as a operator on SDM ecosystem
/// Layrz API Reference: SDM_OPERATOR
@JsonValue('SDM_OPERATOR')
sdmOperator,
/// !SDM Reference
/// Defines the user as a guest on SDM ecosystem
/// Layrz API Reference: SDM_GUEST
@JsonValue('SDM_GUEST')
sdmGuest,
/// Defines a value that is not known or not applicable.
/// Layrz API Reference: UNKNOWN
@JsonValue('UNKNOWN')
unknown,
;
@override
String toString() => toJson();
/// [toJson] returns the string representation of the enum value.
String toJson() => _$ReferenceCategoryEnumMap[this] ?? 'UNKNOWN';
/// [fromJson] returns the enum value from a string representation.
static ReferenceCategory fromJson(String json) {
final found = _$ReferenceCategoryEnumMap.entries.firstWhereOrNull((e) => e.value == json);
return found?.key ?? ReferenceCategory.unknown;
}
/// [translationKey] returns the translation key for the enum value.
/// This translation key is defined by Golden M Team and should be used with
/// the Layrz Translation System
String get translationKey => 'references.categories.${toString()}';
}