@telos-dev-team/dealernode-permissions 1.1.56 → 1.1.58

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.
@@ -1,896 +0,0 @@
1
- export const PERMISSIONS = {
2
- // ============================================
3
- // GLOBAL
4
- // ============================================
5
- GLOBAL: {
6
- PERMISSIONS: {
7
- MANAGE: "global.permissions.manage",
8
- },
9
- },
10
-
11
- // ============================================
12
- // USER
13
- // ============================================
14
- USER: {
15
- OPERATIONS: {
16
- VIEW: "user.operations.view",
17
- CREATE: "user.operations.create",
18
- },
19
- FILES: {
20
- UPLOAD: "user.files.upload",
21
- DOWNLOAD: "user.files.download",
22
- DELETE: "user.files.delete",
23
- },
24
- DEALER: {
25
- OPERATIONS: {
26
- VIEW: "user.dealer.operations.view",
27
- ASSIGN: "user.dealer.operations.assign",
28
- UPDATE: "user.dealer.operations.update",
29
- UNASSIGN: "user.dealer.operations.unassign",
30
- ACTIVATE: "user.dealer.operations.activate",
31
- DEACTIVATE: "user.dealer.operations.deactivate",
32
- },
33
- ACTOR_TYPE: {
34
- VIEW: "user.dealer.actor_type.view",
35
- ASSIGN: "user.dealer.actor_type.assign",
36
- DELETE: "user.dealer.actor_type.delete",
37
- },
38
- },
39
- },
40
-
41
- // ============================================
42
- // COMMISSION
43
- // ============================================
44
- COMMISSION: {
45
- OPERATIONS: {
46
- VIEW: "commission.operations.view",
47
- CREATE: "commission.operations.create",
48
- UPDATE: "commission.operations.update",
49
- DELETE: "commission.operations.delete",
50
- APPROVE: "commission.operations.approve",
51
- REVERT_APPROVE: "commission.operations.revert_approve",
52
- PAY: "commission.operations.pay",
53
- REVERT_PAY: "commission.operations.revert-pay",
54
- },
55
- DEAL_COMMISSION: {
56
- OPERATIONS: {
57
- VIEW: "commission.deal_commission.operations.view",
58
- CREATE: "commission.deal_commission.operations.create",
59
- UPDATE: "commission.deal_commission.operations.update",
60
- DELETE: "commission.deal_commission.operations.delete",
61
- },
62
- },
63
- CAR_COMMISSION: {
64
- OPERATIONS: {
65
- VIEW: "commission.car_commission.operations.view",
66
- CREATE: "commission.car_commission.operations.create",
67
- UPDATE: "commission.car_commission.operations.update",
68
- DELETE: "commission.car_commission.operations.delete",
69
- },
70
- },
71
- EXTRA_COMMISSION: {
72
- OPERATIONS: {
73
- VIEW: "commission.extra_commission.operations.view",
74
- CREATE: "commission.extra_commission.operations.create",
75
- UPDATE: "commission.extra_commission.operations.update",
76
- DELETE: "commission.extra_commission.operations.delete",
77
- },
78
- },
79
- SALARY: {
80
- OPERATIONS: {
81
- VIEW: "commission.salary.operations.view",
82
- CREATE: "commission.salary.operations.create",
83
- UPDATE: "commission.salary.operations.update",
84
- DELETE: "commission.salary.operations.delete",
85
- },
86
- },
87
- SALARYS_CHEDULE: {
88
- OPERATIONS: {
89
- VIEW: "commission.salary_schedule.operations.view",
90
- CREATE: "commission.salary_schedule.operations.create",
91
- UPDATE: "commission.salary_schedule.operations.update",
92
- DELETE: "commission.salary_schedule.operations.delete",
93
- },
94
- },
95
- USER_DEALER_SALARY: {
96
- OPERATIONS: {
97
- VIEW: "commission.user_dealer_salary.operations.view",
98
- CREATE: "commission.user_dealer_salary.operations.create",
99
- UPDATE: "commission.user_dealer_salary.operations.update",
100
- DELETE: "commission.user_dealer_salary.operations.delete",
101
- },
102
- },
103
- CATEGORY: {
104
- VIEW: "commission.category.view",
105
- MANAGE: "commission.category.manage",
106
- },
107
- },
108
-
109
- // ============================================
110
- // DEALER
111
- // ============================================
112
- DEALER: {
113
- OPERATIONS: {
114
- VIEW: "dealer.operations.view",
115
- CREATE: "dealer.operations.create",
116
- UPDATE: "dealer.operations.update",
117
- DELETE: "dealer.operations.delete",
118
- },
119
- FILES: {
120
- UPLOAD: "dealer.files.upload",
121
- DOWNLOAD: "dealer.files.download",
122
- DELETE: "dealer.files.delete",
123
- },
124
- ONBOARDING: {
125
- SUBMIT: "dealer.onboarding.submit",
126
- APPROVE: "dealer.onboarding.approve",
127
- REJECT: "dealer.onboarding.reject",
128
- ACTIVATE: "dealer.onboarding.activate",
129
- REVERT: "dealer.onboarding.revert",
130
- },
131
- LICENSE: {
132
- VIEW: "dealer.license.view",
133
- CREATE: "dealer.license.create",
134
- UPDATE: "dealer.license.update",
135
- DELETE: "dealer.license.delete",
136
- },
137
- INTEGRATIONS: {
138
- VIEW: "dealer.integrations.view",
139
- MANAGE: "dealer.integrations.manage",
140
- },
141
- },
142
-
143
- // ============================================
144
- // CLIENT
145
- // ============================================
146
- CLIENT: {
147
- OPERATIONS: {
148
- VIEW: "client.operations.view",
149
- MANAGE: "client.operations.manage",
150
- },
151
- },
152
-
153
- // ============================================
154
- // BANK
155
- // ============================================
156
- BANK: {
157
- OPERATIONS: {
158
- VIEW: "bank.operations.view",
159
- MANAGE: "bank.operations.manage",
160
- },
161
- },
162
-
163
- // ============================================
164
- // AGENCY
165
- // ============================================
166
- AGENCY: {
167
- OPERATIONS: {
168
- VIEW: "agency.operations.view",
169
- MANAGE: "agency.operations.manage",
170
- },
171
- },
172
-
173
- // ============================================
174
- // PLATE ORIGIN
175
- // ============================================
176
- PLATE_ORIGIN: {
177
- OPERATIONS: {
178
- VIEW: "plate-origin.operations.view",
179
- MANAGE: "plate-origin.operations.manage",
180
- },
181
- },
182
-
183
- // ============================================
184
- // ARBITRATION
185
- // ============================================
186
- ARBITRATION: {
187
- OPERATIONS: {
188
- VIEW: "arbitration.operations.view",
189
- MANAGE: "arbitration.operations.manage",
190
- DELETE: "arbitration.operations.delete",
191
- },
192
- FILES: {
193
- UPLOAD: "arbitration.files.upload",
194
- DOWNLOAD: "arbitration.files.download",
195
- DELETE: "arbitration.files.delete",
196
- },
197
- },
198
-
199
- // ============================================
200
- // ARBITRATION ISSUE TYPE
201
- // ============================================
202
- ARBITRATION_ISSUE_TYPE: {
203
- OPERATIONS: {
204
- VIEW: "arbitration-issue-type.operations.view",
205
- MANAGE: "arbitration-issue-type.operations.manage",
206
- },
207
- },
208
-
209
- // ============================================
210
- // DEAL
211
- // ============================================
212
- DEAL: {
213
- VIEW: {
214
- TRADE: "deal.view.trade",
215
- EXTRAS: "deal.view.extras",
216
- GPS: "deal.view.gps",
217
- },
218
- OPERATIONS: {
219
- VIEW: "deal.operations.view",
220
- VIEW_MY_DEALS: "deal.operations.view_my_deals",
221
- },
222
- FILES: {
223
- UPLOAD: "deal.files.upload",
224
- DOWNLOAD: "deal.files.download",
225
- DELETE: "deal.files.delete",
226
- },
227
- PLATE: {
228
- OPERATIONS: {
229
- VIEW: "deal.plate.operations.view",
230
- VIEW_MY_PLATES: "deal.plate.operations.view_my_plates",
231
- CREATE: "deal.plate.operations.create",
232
- UPDATE: "deal.plate.operations.update",
233
- DELETE: "deal.plate.operations.delete",
234
- PAY: "deal.plate.operations.pay",
235
- CANCEL: "deal.plate.operations.cancel",
236
- },
237
- },
238
- PICKUP_PAYMENT: {
239
- OPERATIONS: {
240
- VIEW: "deal.pickup_payment.operations.view",
241
- PAY: "deal.pickup_payment.operations.pay",
242
- CANCEL: "deal.pickup_payment.operations.cancel",
243
- },
244
- },
245
- FINANCED: {
246
- OPERATIONS: {
247
- VIEW: "deal.financed.operations.view",
248
- VIEW_MY_DEALS: "deal.financed.operations.view_my_deals",
249
- CREATE: "deal.financed.operations.create",
250
- UPDATE: "deal.financed.operations.update",
251
- UPDATE_LIMITED: "deal.financed.operations.update_limited",
252
- ACCEPT: "deal.financed.operations.accept",
253
- FUND: "deal.financed.operations.fund",
254
- BOOK: "deal.financed.operations.book",
255
- TO_FAILED_DEAL: "deal.financed.operations.to_failed_deal",
256
- MANAGE: "deal.financed.operations.manage",
257
- },
258
- },
259
- SPOT: {
260
- OPERATIONS: {
261
- VIEW: "deal.spot.operations.view",
262
- VIEW_MY_DEALS: "deal.spot.operations.view_my_deals",
263
- CREATE: "deal.spot.operations.create",
264
- UPDATE: "deal.spot.operations.update",
265
- UPDATE_LIMITED: "deal.spot.operations.update_limited",
266
- ACCEPT: "deal.spot.operations.accept",
267
- TRANSFORM: "deal.spot.operations.transform",
268
- TO_FAILED_DEAL: "deal.spot.operations.to_failed_deal",
269
- MANAGE: "deal.spot.operations.manage",
270
- },
271
- },
272
- CASH: {
273
- OPERATIONS: {
274
- VIEW: "deal.cash.operations.view",
275
- VIEW_MY_DEALS: "deal.cash.operations.view_my_deals",
276
- CREATE: "deal.cash.operations.create",
277
- UPDATE: "deal.cash.operations.update",
278
- UPDATE_LIMITED: "deal.cash.operations.update_limited",
279
- ACCEPT: "deal.cash.operations.accept",
280
- TO_FAILED_DEAL: "deal.cash.operations.to_failed_deal",
281
- MANAGE: "deal.cash.operations.manage",
282
- },
283
- },
284
- BHPH: {
285
- OPERATIONS: {
286
- VIEW: "deal.bhph.operations.view",
287
- VIEW_MY_DEALS: "deal.bhph.operations.view_my_deals",
288
- CREATE: "deal.bhph.operations.create",
289
- UPDATE: "deal.bhph.operations.update",
290
- UPDATE_LIMITED: "deal.bhph.operations.update_limited",
291
- ACCEPT: "deal.bhph.operations.accept",
292
- TO_FAILED_DEAL: "deal.bhph.operations.to_failed_deal",
293
- MANAGE: "deal.bhph.operations.manage",
294
- },
295
- PAYMENTS: {
296
- VIEW: "deal.bhph.payments.view",
297
- PAY: "deal.bhph.payments.pay",
298
- CANCEL: "deal.bhph.payments.cancel",
299
- },
300
- },
301
- GPS: {
302
- OPERATIONS: {
303
- VIEW: "deal.gps.operations.view",
304
- CREATE: "deal.gps.operations.create",
305
- },
306
- },
307
- TRADE: {
308
- OPERATIONS: {
309
- VIEW: "deal.trade.operations.view",
310
- CREATE: "deal.trade.operations.create",
311
- },
312
- },
313
- RESOURCES: {
314
- EXTRA: {
315
- VIEW: "deal.resources.extra.view",
316
- MANAGE: "deal.resources.extra.manage",
317
- },
318
- ACTOR_TYPE: {
319
- VIEW: "deal.resources.actor_type.view",
320
- MANAGE: "deal.resources.actor_type.manage",
321
- },
322
- },
323
- PAYMENT: {
324
- OPERATIONS: {
325
- VIEW: "deal.payment.operations.view",
326
- MANAGE: "deal.payment.operations.manage",
327
- },
328
- },
329
- COMMENT: {
330
- VIEW: "deal.comment.view",
331
- CREATE: "deal.comment.create",
332
- UPDATE: "deal.comment.update",
333
- DELETE: "deal.comment.delete",
334
- },
335
- },
336
-
337
- // ============================================
338
- // FAIL DEAL
339
- // ============================================
340
- FAIL_DEAL: {
341
- UNWIND: {
342
- OPERATIONS: {
343
- VIEW: "fail_deal.unwind.operations.view",
344
- VIEW_MY_DEALS: "fail_deal.unwind.operations.view_my_deals",
345
- MANAGE: "fail_deal.unwind.operations.manage",
346
- },
347
- FILES: {
348
- UPLOAD: "fail_deal.unwind.files.upload",
349
- DOWNLOAD: "fail_deal.unwind.files.download",
350
- DELETE: "fail_deal.unwind.files.delete",
351
- },
352
- RESOURCES: {
353
- EXTRA: {
354
- VIEW: "fail_deal.unwind.resources.extra.view",
355
- MANAGE: "fail_deal.unwind.resources.extra.manage",
356
- },
357
- },
358
- },
359
- DEAD_DEAL: {
360
- RESOURCES: {
361
- EXTRA: {
362
- VIEW: "fail_deal.dead_deal.resources.extra.view",
363
- MANAGE: "fail_deal.dead_deal.resources.extra.manage",
364
- },
365
- },
366
- OPERATIONS: {
367
- VIEW: "fail_deal.dead_deal.operations.view",
368
- VIEW_MY_DEALS: "fail_deal.dead_deal.operations.view_my_deals",
369
- MANAGE: "fail_deal.dead_deal.operations.manage",
370
- },
371
- },
372
- BUY_BACK: {
373
- OPERATIONS: {
374
- VIEW_MY_DEALS: "fail_deal.buy_back.operations.view_my_deals",
375
- VIEW: "fail_deal.buy_back.operations.view",
376
- MANAGE: "fail_deal.buy_back.operations.manage",
377
- },
378
- RESOURCES: {
379
- EXTRA: {
380
- VIEW: "fail_deal.buy_back.resources.extra.view",
381
- MANAGE: "fail_deal.buy_back.resources.extra.manage",
382
- },
383
- },
384
- },
385
- },
386
-
387
- // ============================================
388
- // PAYMENT
389
- // ============================================
390
- PAYMENT: {
391
- OPERATIONS: {
392
- VIEW: "payment.operations.view",
393
- MANAGE: "payment.operations.manage",
394
- },
395
- CONNECTED_ACCOUNT: {
396
- VIEW: "payment.connected-account.view",
397
- CREATE: "payment.connected-account.create",
398
- SYNC: "payment.connected-account.sync",
399
- },
400
- CUSTOMER: {
401
- VIEW: "payment.customer.view",
402
- CREATE: "payment.customer.create",
403
- },
404
- PAYMENT_INTENT: {
405
- VIEW: "payment.payment-intent.view",
406
- CREATE: "payment.payment-intent.create",
407
- CONFIRM: "payment.payment-intent.confirm",
408
- CANCEL: "payment.payment-intent.cancel",
409
- SYNC: "payment.payment-intent.sync",
410
- },
411
- PAYMENT_METHOD: {
412
- VIEW: "payment.payment-method.view",
413
- ATTACH: "payment.payment-method.attach",
414
- DELETE: "payment.payment-method.delete",
415
- },
416
- PAYMENT_LINK: {
417
- VIEW: "payment.payment-link.view",
418
- CREATE: "payment.payment-link.create",
419
- },
420
- SCHEDULE: {
421
- VIEW: "payment.schedule.view",
422
- CREATE: "payment.schedule.create",
423
- DELETE: "payment.schedule.delete",
424
- },
425
- SUBSCRIPTION: {
426
- VIEW: "payment.subscription.view",
427
- CREATE: "payment.subscription.create",
428
- DELETE: "payment.subscription.delete",
429
- },
430
- DISPUTE: {
431
- VIEW: "payment.dispute.view",
432
- MANAGE: "payment.dispute.manage",
433
- },
434
- REFUND: {
435
- VIEW: "payment.refund.view",
436
- MANAGE: "payment.refund.manage",
437
- },
438
- MANUAL: {
439
- CHECK: {
440
- VIEW: "payment.manual.check.view",
441
- PROCESS: "payment.manual.check.process",
442
- },
443
- CASH: {
444
- VIEW: "payment.manual.cash.view",
445
- PROCESS: "payment.manual.cash.process",
446
- },
447
- DIGITAL: {
448
- VIEW: "payment.manual.digital.view",
449
- PROCESS: "payment.manual.digital.process",
450
- },
451
- },
452
- SPLIT: {
453
- VIEW: "payment.split.view",
454
- MANAGE: "payment.split.manage",
455
- },
456
- TERMINAL: {
457
- LOCATION: {
458
- VIEW: "payment.terminal.location.view",
459
- CREATE: "payment.terminal.location.create",
460
- },
461
- READER: {
462
- VIEW: "payment.terminal.reader.view",
463
- CREATE: "payment.terminal.reader.create",
464
- DELETE: "payment.terminal.reader.delete",
465
- },
466
- PAYMENT: {
467
- VIEW: "payment.terminal.payment.view",
468
- PROCESS: "payment.terminal.payment.process",
469
- },
470
- PIN: {
471
- MANAGE_ALL: "payment.terminal.pin.manage_all",
472
- },
473
- DEVICE: {
474
- PROVISION: "payment.terminal.device.provision",
475
- },
476
- },
477
- BILLING: {
478
- MANAGE: "payment.billing.manage",
479
- },
480
- FILES: {
481
- UPLOAD: "payment.files.upload",
482
- DOWNLOAD: "payment.files.download",
483
- DELETE: "payment.files.delete",
484
- },
485
- },
486
-
487
- // ============================================
488
- // CAR
489
- // ============================================
490
- CAR: {
491
- OPERATIONS: {
492
- VIEW: "car.operations.view",
493
- },
494
- INVENTORY: {
495
- VIEW: {
496
- EXTRA: "car.inventory.view.extra",
497
- },
498
- OPERATIONS: {
499
- VIEW: "car.inventory.operations.view",
500
- VIEW_OPERATIONS: "car.inventory.operations.view_operations",
501
- CREATE: "car.inventory.operations.create",
502
- UPDATE: "car.inventory.operations.update",
503
- DELETE: "car.inventory.operations.delete",
504
- RESTORE: "car.inventory.operations.restore",
505
- VALIDATE_VIN: "car.inventory.operations.validate_vin",
506
- },
507
- FILES: {
508
- UPLOAD: "car.inventory.files.upload",
509
- DOWNLOAD: "car.inventory.files.download",
510
- DELETE: "car.inventory.files.delete",
511
- },
512
- },
513
- EXTRA: {
514
- OPERATIONS: {
515
- CREATE: "car.extra.operations.create",
516
- },
517
- },
518
- GPS: {
519
- OPERATIONS: {
520
- VIEW: "car.gps.operations.view",
521
- CREATE: "car.gps.operations.create",
522
- },
523
- },
524
- WORKSHOP: {
525
- OPERATIONS: {
526
- CREATE: "car.workshop.operations.create",
527
- UPDATE: "car.workshop.operations.update",
528
- DELETE: "car.workshop.operations.delete",
529
- },
530
- COSTS: {
531
- CREATE: "car.workshop.costs.create",
532
- UPDATE: "car.workshop.costs.update",
533
- DELETE: "car.workshop.costs.delete",
534
- },
535
- COST_TEMPLATES: {
536
- CREATE: "car.workshop.cost_templates.create",
537
- UPDATE: "car.workshop.cost_templates.update",
538
- DELETE: "car.workshop.cost_templates.delete",
539
- },
540
- },
541
- TRADE: {
542
- OPERATIONS: {
543
- VIEW: "car.trade.operations.view",
544
- CREATE: "car.trade.operations.create",
545
- DELETE: "car.trade.operations.delete",
546
- TRANSFORM: "car.trade.operations.transform",
547
- },
548
- },
549
- DRAFT: {
550
- OPERATIONS: {
551
- VIEW: "car.draft.operations.view",
552
- CREATE: "car.draft.operations.create",
553
- UPDATE: "car.draft.operations.update",
554
- DELETE: "car.draft.operations.delete",
555
- PUBLISH: "car.draft.operations.publish",
556
- },
557
- },
558
- TRANSIT: {
559
- VIEW: {
560
- EXTRA: "car.transit.view.extra",
561
- },
562
- OPERATIONS: {
563
- CREATE: "car.transit.operations.create",
564
- UPDATE: "car.transit.operations.update",
565
- DELETE: "car.transit.operations.delete",
566
- ARRIVE: "car.transit.operations.arrive",
567
- VIEW: "car.transit.operations.view",
568
- },
569
- COSTS: {
570
- CREATE: "car.transit.costs.create",
571
- UPDATE: "car.transit.costs.update",
572
- DELETE: "car.transit.costs.delete",
573
- },
574
- COST_TEMPLATES: {
575
- CREATE: "car.transit.cost_templates.create",
576
- UPDATE: "car.transit.cost_templates.update",
577
- DELETE: "car.transit.cost_templates.delete",
578
- },
579
- },
580
- RESOURCES: {
581
- BRAND: {
582
- VIEW: "car.resources.brand.view",
583
- MANAGE: "car.resources.brand.manage",
584
- },
585
- MODEL: {
586
- VIEW: "car.resources.model.view",
587
- MANAGE: "car.resources.model.manage",
588
- },
589
- TRIM: {
590
- VIEW: "car.resources.trim.view",
591
- MANAGE: "car.resources.trim.manage",
592
- },
593
- STYLE: {
594
- VIEW: "car.resources.style.view",
595
- MANAGE: "car.resources.style.manage",
596
- },
597
- TITLE: {
598
- VIEW: "car.resources.title.view",
599
- MANAGE: "car.resources.title.manage",
600
- },
601
- FUEL_TYPE: {
602
- VIEW: "car.resources.fuel_type.view",
603
- MANAGE: "car.resources.fuel_type.manage",
604
- },
605
- COLOR: {
606
- VIEW: "car.resources.color.view",
607
- MANAGE: "car.resources.color.manage",
608
- },
609
- FLOOR: {
610
- VIEW: "car.resources.floor.view",
611
- MANAGE: "car.resources.floor.manage",
612
- },
613
- PURCHASE_SOURCE: {
614
- VIEW: "car.resources.purchase_source.view",
615
- MANAGE: "car.resources.purchase_source.manage",
616
- },
617
- EXTRA: {
618
- VIEW: "car.resources.extra.view",
619
- MANAGE: "car.resources.extra.manage",
620
- },
621
- },
622
- COMMENT: {
623
- VIEW: "car.comment.view",
624
- CREATE: "car.comment.create",
625
- UPDATE: "car.comment.update",
626
- DELETE: "car.comment.delete",
627
- },
628
- REPOSSESSION: {
629
- OPERATIONS: {
630
- VIEW: "car.repossession.operations.view",
631
- },
632
- },
633
- },
634
-
635
- // ============================================
636
- // INVITATION
637
- // ============================================
638
- INVITATION: {
639
- OPERATIONS: {
640
- VIEW: "invitation.operations.view",
641
- CREATE: "invitation.operations.create",
642
- REVOKE: "invitation.operations.revoke",
643
- },
644
- },
645
-
646
- // ============================================
647
- // WORKFLOW
648
- // ============================================
649
- WORKFLOW: {
650
- OPERATIONS: {
651
- VIEW: "workflow.operations.view",
652
- MANAGE: "workflow.operations.manage",
653
- },
654
- },
655
-
656
- // ============================================
657
- // WHOLESALE
658
- // ============================================
659
- WHOLESALE: {
660
- OPERATIONS: {
661
- VIEW: "wholesale.operations.view",
662
- MANAGE: "wholesale.operations.manage",
663
- PAYMENT: "wholesale.operations.payment",
664
- },
665
- FILES: {
666
- UPLOAD: "wholesale.files.upload",
667
- DOWNLOAD: "wholesale.files.download",
668
- DELETE: "wholesale.files.delete",
669
- },
670
- TARGET: {
671
- VIEW: "wholesale.target.view",
672
- MANAGE: "wholesale.target.manage",
673
- },
674
- INVITATION: {
675
- MANAGE: "wholesale.invitation.manage",
676
- },
677
- MANUAL: {
678
- OPERATIONS: {
679
- VIEW: "manual_wholesale.operations.view",
680
- MANAGE: "manual_wholesale.operations.manage",
681
- },
682
- },
683
- AUTOMATIC: {
684
- OPERATIONS: {
685
- VIEW: "automatic_wholesale.operations.view",
686
- MANAGE: "automatic_wholesale.operations.manage",
687
- },
688
- },
689
- },
690
-
691
- // ============================================
692
- // TRANSFER_CAR
693
- // ============================================
694
- TRANSFER_CAR: {
695
- OPERATIONS: {
696
- VIEW: "transfer_car.operations.view",
697
- MANAGE: "transfer_car.operations.manage",
698
- },
699
- INVITATION: {
700
- MANAGE: "transfer_car.invitation.manage",
701
- },
702
- },
703
-
704
- // ============================================
705
- // DEALER RELATIONSHIP
706
- // ============================================
707
- DEALER_RELATIONSHIP: {
708
- OPERATIONS: {
709
- VIEW: "dealer_relationship.operations.view",
710
- CREATE: "dealer_relationship.operations.create",
711
- APPROVE: "dealer_relationship.operations.approve",
712
- REJECT: "dealer_relationship.operations.reject",
713
- REVOKE: "dealer_relationship.operations.revoke",
714
- SUSPEND: "dealer_relationship.operations.suspend",
715
- REACTIVATE: "dealer_relationship.operations.reactivate",
716
- },
717
- RESOURCE: {
718
- VIEW_INVENTORY: "dealer_relationship.resource.view_inventory",
719
- TRANSFER_CAR: "dealer_relationship.resource.transfer_car",
720
- AUTO_APPROVE_TRANSFER_CAR:
721
- "dealer_relationship.resource.auto_approve_transfer_car",
722
- CREATE_WHOLESALE_DEAL:
723
- "dealer_relationship.resource.create_wholesale_deal",
724
- APPROVE_WHOLESALE_DEAL:
725
- "dealer_relationship.resource.approve_wholesale_deal",
726
- VIEW_SHARED_DEALS: "dealer_relationship.resource.view_shared_deals",
727
- VIEW_SHARED_FAILED_DEALS:
728
- "dealer_relationship.resource.view_shared_failed_deals",
729
- USE_BANKS: "dealer_relationship.resource.use_banks",
730
- UNIQUE_VIN: "dealer_relationship.resource.unique_vin",
731
- VIEW_GPS: "dealer_relationship.resource.view_gps",
732
- CREATE_GPS: "dealer_relationship.resource.create_gps",
733
- VIEW_PLATES: "dealer_relationship.resource.view_plates",
734
- VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations",
735
- },
736
- PERMISSION: {
737
- REQUEST: "dealer_relationship.permission.request",
738
- APPROVE: "dealer_relationship.permission.approve",
739
- REJECT: "dealer_relationship.permission.reject",
740
- REVOKE: "dealer_relationship.permission.revoke",
741
- },
742
- },
743
-
744
- // ============================================
745
- // DEALER GROUP
746
- // ============================================
747
- DEALER_GROUP: {
748
- OPERATIONS: {
749
- VIEW: "dealer_group.operations.view",
750
- CREATE: "dealer_group.operations.create",
751
- UPDATE: "dealer_group.operations.update",
752
- DELETE: "dealer_group.operations.delete",
753
- },
754
- MEMBERS: {
755
- INVITE: "dealer_group.members.invite",
756
- REQUEST_JOIN: "dealer_group.members.request_join",
757
- ACCEPT: "dealer_group.members.accept",
758
- REJECT: "dealer_group.members.reject",
759
- REMOVE: "dealer_group.members.remove",
760
- },
761
- USERS: {
762
- VIEW: "dealer_group.users.view",
763
- MANAGE: "dealer_group.users.manage",
764
- },
765
- },
766
-
767
- // ============================================
768
- // ANALYTICS
769
- // ============================================
770
- ANALYTICS: {
771
- OPERATIONS: {
772
- VIEW: "analytics.operations.view",
773
- MANAGE: "analytics.operations.manage",
774
- },
775
- ASSISTANT: {
776
- OPERATIONS: {
777
- USE: "analytics.assistant.operations.use",
778
- EXPORT: "analytics.assistant.operations.export",
779
- EMAIL: "analytics.assistant.operations.email",
780
- },
781
- },
782
- },
783
-
784
- // ============================================
785
- // AUTHORIZATION
786
- // ============================================
787
- AUTHORIZATION: {
788
- ROLE: {
789
- VIEW: "authorization.role.view",
790
- CREATE: "authorization.role.create",
791
- UPDATE: "authorization.role.update",
792
- DELETE: "authorization.role.delete",
793
- ASSIGN: "authorization.role.assign",
794
- UNASSIGN: "authorization.role.unassign",
795
- SYNC_DIRECT: "authorization.role.sync_direct",
796
- SYNC_REQUEST: "authorization.role.sync_request",
797
- },
798
- PERMISSION: {
799
- VIEW: "authorization.permission.view",
800
- CREATE: "authorization.permission.create",
801
- },
802
- USER_DEALER_PERMISSION: {
803
- VIEW: "authorization.user_dealer_permission.view",
804
- ASSIGN: "authorization.user_dealer_permission.assign",
805
- DELETE: "authorization.user_dealer_permission.delete",
806
- },
807
- },
808
-
809
- // ============================================
810
- // AUTOMATIC_ACTION
811
- // ============================================
812
- AUTOMATIC_ACTION: {
813
- OPERATIONS: {
814
- VIEW: "automatic_action.operations.view",
815
- DELETE: "automatic_action.operations.delete",
816
- EXECUTE: "automatic_action.operations.execute",
817
- },
818
- },
819
-
820
- // ============================================
821
- // CALENDAR
822
- // ============================================
823
- CALENDAR: {
824
- OPERATIONS: {
825
- VIEW: "calendar.operations.view",
826
- UPDATE: "calendar.operations.update",
827
- },
828
- },
829
-
830
- // ============================================
831
- // NOTIFICATION
832
- // ============================================
833
- NOTIFICATION: {
834
- ROUTING: {
835
- VIEW: "notification.routing.view",
836
- MANAGE: "notification.routing.manage",
837
- },
838
- CONFIG: {
839
- VIEW: "notification.config.view",
840
- MANAGE: "notification.config.manage",
841
- },
842
- },
843
-
844
- // ============================================
845
- // GPS PROVIDER
846
- // ============================================
847
- // ============================================
848
- // OTHER (comments on client, wholesale, etc.)
849
- // ============================================
850
- OTHER: {
851
- COMMENT: {
852
- VIEW: "other.comment.view",
853
- CREATE: "other.comment.create",
854
- UPDATE: "other.comment.update",
855
- DELETE: "other.comment.delete",
856
- },
857
- },
858
-
859
- GPS_PROVIDER: {
860
- CONFIG: {
861
- OPERATIONS: {
862
- CREATE: "gps-provider.config.operations.create",
863
- VIEW: "gps-provider.config.operations.view",
864
- UPDATE: "gps-provider.config.operations.update",
865
- DELETE: "gps-provider.config.operations.delete",
866
- },
867
- },
868
- DEVICE: {
869
- OPERATIONS: {
870
- VIEW: "gps-provider.device.operations.view",
871
- LOCATE: "gps-provider.device.operations.locate",
872
- ACTIVATE: "gps-provider.device.operations.activate",
873
- RESET_MILEAGE: "gps-provider.device.operations.reset_mileage",
874
- },
875
- },
876
- },
877
-
878
- // ============================================
879
- // CRM
880
- // ============================================
881
- CRM: {
882
- CONVERSATION: {
883
- OPERATIONS: {
884
- VIEW: "crm.conversation.operations.view",
885
- REPLY: "crm.conversation.operations.reply",
886
- },
887
- },
888
- CALL: {
889
- OPERATIONS: {
890
- USE: "crm.call.operations.use",
891
- },
892
- },
893
- },
894
- } as const;
895
-
896
- export type Permission = typeof PERMISSIONS;