@telos-dev-team/dealernode-permissions 1.0.3

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.
@@ -0,0 +1,765 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PERMISSIONS = void 0;
4
+ exports.PERMISSIONS = {
5
+ // ============================================
6
+ // GLOBAL
7
+ // ============================================
8
+ GLOBAL: {
9
+ PERMISSIONS: {
10
+ MANAGE: 'global.permissions.manage',
11
+ },
12
+ },
13
+ // ============================================
14
+ // USER
15
+ // ============================================
16
+ USER: {
17
+ OPERATIONS: {
18
+ VIEW: 'user.operations.view',
19
+ CREATE: 'user.operations.create',
20
+ },
21
+ DEALER: {
22
+ OPERATIONS: {
23
+ VIEW: 'user.dealer.operations.view',
24
+ ASSIGN: 'user.dealer.operations.assign',
25
+ UPDATE: 'user.dealer.operations.update',
26
+ UNASSIGN: 'user.dealer.operations.unassign',
27
+ },
28
+ ACTOR_TYPE: {
29
+ VIEW: 'user.dealer.actor_type.view',
30
+ ASSIGN: 'user.dealer.actor_type.assign',
31
+ DELETE: 'user.dealer.actor_type.delete',
32
+ },
33
+ },
34
+ },
35
+ // ============================================
36
+ // COMMISSION
37
+ // ============================================
38
+ COMMISSION: {
39
+ OPERATIONS: {
40
+ VIEW: 'commission.operations.view',
41
+ CREATE: 'commission.operations.create',
42
+ UPDATE: 'commission.operations.update',
43
+ DELETE: 'commission.operations.delete',
44
+ APPROVE: 'commission.operations.approve',
45
+ REVERT_APPROVE: 'commission.operations.revert_approve',
46
+ PAY: 'commission.operations.pay',
47
+ REVERT_PAY: 'commission.operations.revert-pay',
48
+ },
49
+ DEAL_COMMISSION: {
50
+ OPERATIONS: {
51
+ VIEW: 'commission.deal_commission.operations.view',
52
+ CREATE: 'commission.deal_commission.operations.create',
53
+ UPDATE: 'commission.deal_commission.operations.update',
54
+ DELETE: 'commission.deal_commission.operations.delete',
55
+ },
56
+ },
57
+ CAR_COMMISSION: {
58
+ OPERATIONS: {
59
+ VIEW: 'commission.car_commission.operations.view',
60
+ CREATE: 'commission.car_commission.operations.create',
61
+ UPDATE: 'commission.car_commission.operations.update',
62
+ DELETE: 'commission.car_commission.operations.delete',
63
+ },
64
+ },
65
+ EXTRA_COMMISSION: {
66
+ OPERATIONS: {
67
+ VIEW: 'commission.extra_commission.operations.view',
68
+ CREATE: 'commission.extra_commission.operations.create',
69
+ UPDATE: 'commission.extra_commission.operations.update',
70
+ DELETE: 'commission.extra_commission.operations.delete',
71
+ },
72
+ },
73
+ SALARY: {
74
+ OPERATIONS: {
75
+ VIEW: 'commission.salary.operations.view',
76
+ CREATE: 'commission.salary.operations.create',
77
+ UPDATE: 'commission.salary.operations.update',
78
+ DELETE: 'commission.salary.operations.delete',
79
+ },
80
+ },
81
+ SALARYS_CHEDULE: {
82
+ OPERATIONS: {
83
+ VIEW: 'commission.salary_schedule.operations.view',
84
+ CREATE: 'commission.salary_schedule.operations.create',
85
+ UPDATE: 'commission.salary_schedule.operations.update',
86
+ DELETE: 'commission.salary_schedule.operations.delete',
87
+ },
88
+ },
89
+ USER_DEALER_SALARY: {
90
+ OPERATIONS: {
91
+ VIEW: 'commission.user_dealer_salary.operations.view',
92
+ CREATE: 'commission.user_dealer_salary.operations.create',
93
+ UPDATE: 'commission.user_dealer_salary.operations.update',
94
+ DELETE: 'commission.user_dealer_salary.operations.delete',
95
+ },
96
+ },
97
+ CATEGORY: {
98
+ VIEW: 'commission.category.view',
99
+ CREATE: 'commission.category.create',
100
+ UPDATE: 'commission.category.update',
101
+ DELETE: 'commission.category.delete',
102
+ },
103
+ },
104
+ // ============================================
105
+ // DEALER
106
+ // ============================================
107
+ DEALER: {
108
+ OPERATIONS: {
109
+ VIEW: 'dealer.operations.view',
110
+ CREATE: 'dealer.operations.create',
111
+ UPDATE: 'dealer.operations.update',
112
+ DELETE: 'dealer.operations.delete',
113
+ },
114
+ ONBOARDING: {
115
+ SUBMIT: 'dealer.onboarding.submit',
116
+ APPROVE: 'dealer.onboarding.approve',
117
+ REJECT: 'dealer.onboarding.reject',
118
+ ACTIVATE: 'dealer.onboarding.activate',
119
+ REVERT: 'dealer.onboarding.revert',
120
+ },
121
+ LICENSE: {
122
+ VIEW: 'dealer.license.view',
123
+ CREATE: 'dealer.license.create',
124
+ UPDATE: 'dealer.license.update',
125
+ DELETE: 'dealer.license.delete',
126
+ },
127
+ },
128
+ // ============================================
129
+ // CLIENT
130
+ // ============================================
131
+ CLIENT: {
132
+ OPERATIONS: {
133
+ VIEW: 'client.operations.view',
134
+ CREATE: 'client.operations.create',
135
+ UPDATE: 'client.operations.update',
136
+ DELETE: 'client.operations.delete',
137
+ },
138
+ },
139
+ // ============================================
140
+ // BANK
141
+ // ============================================
142
+ BANK: {
143
+ OPERATIONS: {
144
+ VIEW: 'bank.operations.view',
145
+ CREATE: 'bank.operations.create',
146
+ UPDATE: 'bank.operations.update',
147
+ DELETE: 'bank.operations.delete',
148
+ },
149
+ },
150
+ // ============================================
151
+ // AGENCY
152
+ // ============================================
153
+ AGENCY: {
154
+ OPERATIONS: {
155
+ VIEW: 'agency.operations.view',
156
+ CREATE: 'agency.operations.create',
157
+ UPDATE: 'agency.operations.update',
158
+ DELETE: 'agency.operations.delete',
159
+ },
160
+ },
161
+ // ============================================
162
+ // PLATE ORIGIN
163
+ // ============================================
164
+ PLATE_ORIGIN: {
165
+ OPERATIONS: {
166
+ VIEW: 'plate-origin.operations.view',
167
+ CREATE: 'plate-origin.operations.create',
168
+ UPDATE: 'plate-origin.operations.update',
169
+ DELETE: 'plate-origin.operations.delete',
170
+ },
171
+ },
172
+ // ============================================
173
+ // ARBITRATION
174
+ // ============================================
175
+ ARBITRATION: {
176
+ OPERATIONS: {
177
+ VIEW: 'arbitration.operations.view',
178
+ CREATE: 'arbitration.operations.create',
179
+ UPDATE: 'arbitration.operations.update',
180
+ DELETE: 'arbitration.operations.delete',
181
+ },
182
+ },
183
+ // ============================================
184
+ // DEAL
185
+ // ============================================
186
+ DEAL: {
187
+ OPERATIONS: {
188
+ VIEW: 'deal.operations.view',
189
+ VIEW_MY_DEALS: 'deal.operations.view_my_deals',
190
+ },
191
+ FILES: {
192
+ UPLOAD: 'deal.files.upload',
193
+ DOWNLOAD: 'deal.files.download',
194
+ DELETE: 'deal.files.delete',
195
+ },
196
+ PLATE: {
197
+ OPERATIONS: {
198
+ VIEW: 'deal.plate.operations.view',
199
+ VIEW_MY_PLATES: 'deal.plate.operations.view_my_plates',
200
+ CREATE: 'deal.plate.operations.create',
201
+ UPDATE: 'deal.plate.operations.update',
202
+ DELETE: 'deal.plate.operations.delete',
203
+ PAY: 'deal.plate.operations.pay',
204
+ CANCEL: 'deal.plate.operations.cancel',
205
+ },
206
+ },
207
+ PICKUP_PAYMENT: {
208
+ OPERATIONS: {
209
+ VIEW: 'deal.pickup_payment.operations.view',
210
+ PAY: 'deal.pickup_payment.operations.pay',
211
+ CANCEL: 'deal.pickup_payment.operations.cancel',
212
+ },
213
+ },
214
+ FINANCED: {
215
+ OPERATIONS: {
216
+ VIEW: 'deal.financed.operations.view',
217
+ VIEW_MY_DEALS: 'deal.financed.operations.view_my_deals',
218
+ CREATE: 'deal.financed.operations.create',
219
+ UPDATE: 'deal.financed.operations.update',
220
+ VALIDATE: 'deal.financed.operations.validate',
221
+ REVERT_VALIDATE: 'deal.financed.operations.revert_validate',
222
+ APPROVE: 'deal.financed.operations.approve',
223
+ REVERT_APPROVE: 'deal.financed.operations.revert_approve',
224
+ FUND: 'deal.financed.operations.fund',
225
+ REVERT_FUND: 'deal.financed.operations.revert_fund',
226
+ UPDATE_FUNDING_DATE: 'deal.financed.operations.update_funding_date',
227
+ DELETE: 'deal.financed.operations.delete',
228
+ TO_DEAD_DEAL: 'deal.financed.operations.to_dead_deal',
229
+ REVERT_TO_DEAD_DEAL: 'deal.financed.operations.revert_to_dead_deal',
230
+ TO_BUY_BACK: 'deal.financed.operations.to_buy_back',
231
+ REVERT_TO_BUY_BACK: 'deal.financed.operations.revert_to_buy_back',
232
+ TO_UNWIND: 'deal.financed.operations.to_unwind',
233
+ REVERT_TO_UNWIND: 'deal.financed.operations.revert_to_unwind',
234
+ REFRESH: 'deal.financed.operations.refresh',
235
+ },
236
+ },
237
+ SPOT: {
238
+ OPERATIONS: {
239
+ VIEW: 'deal.spot.operations.view',
240
+ VIEW_MY_DEALS: 'deal.spot.operations.view_my_deals',
241
+ CREATE: 'deal.spot.operations.create',
242
+ UPDATE: 'deal.spot.operations.update',
243
+ APPROVE: 'deal.spot.operations.approve',
244
+ REVERT_APPROVE: 'deal.spot.operations.revert_approve',
245
+ TO_FINANCED: 'deal.spot.operations.to_financed',
246
+ REVERT_TO_FINANCED: 'deal.spot.operations.revert_to_financed',
247
+ TO_CASH: 'deal.spot.operations.to_cash',
248
+ REVERT_TO_CASH: 'deal.spot.operations.revert_to_cash',
249
+ TO_BHPH: 'deal.spot.operations.to_bhph',
250
+ REVERT_TO_BHPH: 'deal.spot.operations.revert_to_bhph',
251
+ DELETE: 'deal.spot.operations.delete',
252
+ TO_DEAD_DEAL: 'deal.spot.operations.to_dead_deal',
253
+ REVERT_TO_DEAD_DEAL: 'deal.spot.operations.revert_to_dead_deal',
254
+ REFRESH: 'deal.spot.operations.refresh',
255
+ },
256
+ },
257
+ CASH: {
258
+ OPERATIONS: {
259
+ VIEW: 'deal.cash.operations.view',
260
+ VIEW_MY_DEALS: 'deal.cash.operations.view_my_deals',
261
+ CREATE: 'deal.cash.operations.create',
262
+ UPDATE: 'deal.cash.operations.update',
263
+ VALIDATE: 'deal.cash.operations.validate',
264
+ REVERT_VALIDATE: 'deal.cash.operations.revert_validate',
265
+ APPROVE: 'deal.cash.operations.approve',
266
+ REVERT_APPROVE: 'deal.cash.operations.revert_approve',
267
+ DELETE: 'deal.cash.operations.delete',
268
+ TO_DEAD_DEAL: 'deal.cash.operations.to_dead_deal',
269
+ REVERT_TO_DEAD_DEAL: 'deal.cash.operations.revert_to_dead_deal',
270
+ REFRESH: 'deal.cash.operations.refresh',
271
+ },
272
+ },
273
+ BHPH: {
274
+ OPERATIONS: {
275
+ VIEW: 'deal.bhph.operations.view',
276
+ VIEW_MY_DEALS: 'deal.bhph.operations.view_my_deals',
277
+ CREATE: 'deal.bhph.operations.create',
278
+ UPDATE: 'deal.bhph.operations.update',
279
+ VALIDATE: 'deal.bhph.operations.validate',
280
+ REVERT_VALIDATE: 'deal.bhph.operations.revert_validate',
281
+ APPROVE: 'deal.bhph.operations.approve',
282
+ REVERT_APPROVE: 'deal.bhph.operations.revert_approve',
283
+ DELETE: 'deal.bhph.operations.delete',
284
+ TO_DEAD_DEAL: 'deal.bhph.operations.to_dead_deal',
285
+ REVERT_TO_DEAD_DEAL: 'deal.bhph.operations.revert_to_dead_deal',
286
+ REFRESH: 'deal.bhph.operations.refresh',
287
+ },
288
+ PAYMENTS: {
289
+ VIEW: 'deal.bhph.payments.view',
290
+ PAY: 'deal.bhph.payments.pay',
291
+ CANCEL: 'deal.bhph.payments.cancel',
292
+ },
293
+ },
294
+ GPS: {
295
+ OPERATIONS: {
296
+ VIEW: 'deal.gps.operations.view',
297
+ CREATE: 'deal.gps.operations.create',
298
+ },
299
+ },
300
+ TRADE: {
301
+ OPERATIONS: {
302
+ VIEW: 'deal.trade.operations.view',
303
+ CREATE: 'deal.trade.operations.create',
304
+ },
305
+ },
306
+ RESOURCES: {
307
+ EXTRA: {
308
+ VIEW: 'deal.resources.extra.view',
309
+ CREATE: 'deal.resources.extra.create',
310
+ UPDATE: 'deal.resources.extra.update',
311
+ DELETE: 'deal.resources.extra.delete',
312
+ },
313
+ ACTOR_TYPE: {
314
+ VIEW: 'deal.resources.actor_type.view',
315
+ CREATE: 'deal.resources.actor_type.create',
316
+ UPDATE: 'deal.resources.actor_type.update',
317
+ DELETE: 'deal.resources.actor_type.delete',
318
+ },
319
+ },
320
+ WORKFLOW: {
321
+ OPERATIONS: {
322
+ CREATE: 'deal.workflow.operation.create',
323
+ VIEW: 'deal.workflow.operation.view',
324
+ DELETE: 'deal.workflow.operation.delete',
325
+ },
326
+ },
327
+ },
328
+ // ============================================
329
+ // FAIL DEAL
330
+ // ============================================
331
+ FAIL_DEAL: {
332
+ UNWIND: {
333
+ OPERATIONS: {
334
+ VIEW: 'fail_deal.unwind.operations.view',
335
+ VIEW_MY_DEALS: 'fail_deal.unwind.operations.view_my_deals',
336
+ PAY: 'fail_deal.unwind.operations.pay',
337
+ REVERT_PAY: 'fail_deal.unwind.operations.revert_pay',
338
+ DELETE: 'fail_deal.unwind.operations.delete',
339
+ UPDATE: 'fail_deal.unwind.operations.update',
340
+ ARRIVE: 'fail_deal.unwind.operations.arrive',
341
+ REVERT_ARRIVE: 'fail_deal.unwind.operations.revert_arrive',
342
+ TO_REPO: 'fail_deal.unwind.operations.to_repo',
343
+ REFRESH: 'fail_deal.unwind.operations.refresh',
344
+ },
345
+ FILES: {
346
+ UPLOAD: 'fail_deal.unwind.files.upload',
347
+ DOWNLOAD: 'fail_deal.unwind.files.download',
348
+ DELETE: 'fail_deal.unwind.files.delete',
349
+ },
350
+ RESOURCES: {
351
+ EXTRA: {
352
+ VIEW: 'fail_deal.unwind.resources.extra.view',
353
+ CREATE: 'fail_deal.unwind.resources.extra.create',
354
+ UPDATE: 'fail_deal.unwind.resources.extra.update',
355
+ DELETE: 'fail_deal.unwind.resources.extra.delete',
356
+ },
357
+ },
358
+ },
359
+ DEAD_DEAL: {
360
+ RESOURCES: {
361
+ EXTRA: {
362
+ VIEW: 'fail_deal.dead_deal.resources.extra.view',
363
+ CREATE: 'fail_deal.dead_deal.resources.extra.create',
364
+ UPDATE: 'fail_deal.dead_deal.resources.extra.update',
365
+ DELETE: 'fail_deal.dead_deal.resources.extra.delete',
366
+ },
367
+ },
368
+ OPERATIONS: {
369
+ DELETE: 'fail_deal.dead_deal.operations.delete',
370
+ VIEW: 'fail_deal.dead_deal.operations.view',
371
+ VIEW_MY_DEALS: 'fail_deal.dead_deal.operations.view_my_deals',
372
+ UPDATE: 'fail_deal.dead_deal.operations.update',
373
+ ARRIVE: 'fail_deal.dead_deal.operations.arrive',
374
+ REVERT_ARRIVE: 'fail_deal.dead_deal.operations.revert_arrive',
375
+ TO_REPO: 'fail_deal.dead_deal.operations.to_repo',
376
+ REFRESH: 'fail_deal.dead_deal.operations.refresh',
377
+ },
378
+ },
379
+ BUY_BACK: {
380
+ OPERATIONS: {
381
+ PAY: 'fail_deal.buy_back.operations.pay',
382
+ VIEW_MY_DEALS: 'fail_deal.buy_back.operations.view_my_deals',
383
+ REVERT_PAY: 'fail_deal.buy_back.operations.revert_pay',
384
+ DELETE: 'fail_deal.buy_back.operations.delete',
385
+ VIEW: 'fail_deal.buy_back.operations.view',
386
+ UPDATE: 'fail_deal.buy_back.operations.update',
387
+ ARRIVE: 'fail_deal.buy_back.operations.arrive',
388
+ REVERT_ARRIVE: 'fail_deal.buy_back.operations.revert_arrive',
389
+ TO_REPO: 'fail_deal.buy_back.operations.to_repo',
390
+ REFRESH: 'fail_deal.buy_back.operations.refresh',
391
+ },
392
+ RESOURCES: {
393
+ EXTRA: {
394
+ VIEW: 'fail_deal.buy_back.resources.extra.view',
395
+ CREATE: 'fail_deal.buy_back.resources.extra.create',
396
+ UPDATE: 'fail_deal.buy_back.resources.extra.update',
397
+ DELETE: 'fail_deal.buy_back.resources.extra.delete',
398
+ },
399
+ },
400
+ },
401
+ },
402
+ // ============================================
403
+ // PAYMENT
404
+ // ============================================
405
+ PAYMENT: {
406
+ CONNECTED_ACCOUNT: {
407
+ VIEW: 'payment.connected-account.view',
408
+ CREATE: 'payment.connected-account.create',
409
+ SYNC: 'payment.connected-account.sync',
410
+ },
411
+ CUSTOMER: {
412
+ VIEW: 'payment.customer.view',
413
+ CREATE: 'payment.customer.create',
414
+ },
415
+ PAYMENT_INTENT: {
416
+ VIEW: 'payment.payment-intent.view',
417
+ CREATE: 'payment.payment-intent.create',
418
+ CONFIRM: 'payment.payment-intent.confirm',
419
+ CANCEL: 'payment.payment-intent.cancel',
420
+ SYNC: 'payment.payment-intent.sync',
421
+ },
422
+ PAYMENT_METHOD: {
423
+ VIEW: 'payment.payment-method.view',
424
+ ATTACH: 'payment.payment-method.attach',
425
+ DELETE: 'payment.payment-method.delete',
426
+ },
427
+ PAYMENT_LINK: {
428
+ VIEW: 'payment.payment-link.view',
429
+ CREATE: 'payment.payment-link.create',
430
+ },
431
+ SCHEDULE: {
432
+ VIEW: 'payment.schedule.view',
433
+ CREATE: 'payment.schedule.create',
434
+ DELETE: 'payment.schedule.delete',
435
+ },
436
+ SUBSCRIPTION: {
437
+ VIEW: 'payment.subscription.view',
438
+ CREATE: 'payment.subscription.create',
439
+ DELETE: 'payment.subscription.delete',
440
+ },
441
+ DISPUTE: {
442
+ VIEW: 'payment.dispute.view',
443
+ MANAGE: 'payment.dispute.manage',
444
+ },
445
+ REFUND: {
446
+ VIEW: 'payment.refund.view',
447
+ MANAGE: 'payment.refund.manage',
448
+ },
449
+ TERMINAL: {
450
+ LOCATION: {
451
+ VIEW: 'payment.terminal.location.view',
452
+ CREATE: 'payment.terminal.location.create',
453
+ },
454
+ READER: {
455
+ VIEW: 'payment.terminal.reader.view',
456
+ CREATE: 'payment.terminal.reader.create',
457
+ DELETE: 'payment.terminal.reader.delete',
458
+ },
459
+ PAYMENT: {
460
+ VIEW: 'payment.terminal.payment.view',
461
+ PROCESS: 'payment.terminal.payment.process',
462
+ },
463
+ },
464
+ },
465
+ // ============================================
466
+ // CAR
467
+ // ============================================
468
+ CAR: {
469
+ OPERATIONS: {
470
+ VIEW: 'car.operations.view',
471
+ },
472
+ INVENTORY: {
473
+ OPERATIONS: {
474
+ VIEW: 'car.inventory.operations.view',
475
+ VIEW_OPERATIONS: 'car.inventory.operations.view_operations',
476
+ CREATE: 'car.inventory.operations.create',
477
+ UPDATE: 'car.inventory.operations.update',
478
+ DELETE: 'car.inventory.operations.delete',
479
+ RESTORE: 'car.inventory.operations.restore',
480
+ VALIDATE_VIN: 'car.inventory.operations.validate_vin',
481
+ },
482
+ FILES: {
483
+ UPLOAD: 'car.inventory.files.upload',
484
+ DOWNLOAD: 'car.inventory.files.download',
485
+ DELETE: 'car.inventory.files.delete',
486
+ },
487
+ },
488
+ EXTRA: {
489
+ OPERATIONS: {
490
+ CREATE: 'car.extra.operations.create',
491
+ },
492
+ },
493
+ GPS: {
494
+ OPERATIONS: {
495
+ VIEW: 'car.gps.operations.view',
496
+ CREATE: 'car.gps.operations.create',
497
+ },
498
+ },
499
+ WORKSHOP: {
500
+ OPERATIONS: {
501
+ CREATE: 'car.workshop.operations.create',
502
+ UPDATE: 'car.workshop.operations.update',
503
+ DELETE: 'car.workshop.operations.delete',
504
+ },
505
+ COSTS: {
506
+ CREATE: 'car.workshop.costs.create',
507
+ UPDATE: 'car.workshop.costs.update',
508
+ DELETE: 'car.workshop.costs.delete',
509
+ },
510
+ COST_TEMPLATES: {
511
+ CREATE: 'car.workshop.cost_templates.create',
512
+ UPDATE: 'car.workshop.cost_templates.update',
513
+ DELETE: 'car.workshop.cost_templates.delete',
514
+ },
515
+ },
516
+ TRADE: {
517
+ OPERATIONS: {
518
+ VIEW: 'car.trade.operations.view',
519
+ CREATE: 'car.trade.operations.create',
520
+ DELETE: 'car.trade.operations.delete',
521
+ TRANSFORM: 'car.trade.operations.transform',
522
+ },
523
+ },
524
+ DRAFT: {
525
+ OPERATIONS: {
526
+ VIEW: 'car.draft.operations.view',
527
+ CREATE: 'car.draft.operations.create',
528
+ UPDATE: 'car.draft.operations.update',
529
+ DELETE: 'car.draft.operations.delete',
530
+ PUBLISH: 'car.draft.operations.publish',
531
+ },
532
+ },
533
+ TRANSIT: {
534
+ OPERATIONS: {
535
+ CREATE: 'car.transit.operations.create',
536
+ UPDATE: 'car.transit.operations.update',
537
+ DELETE: 'car.transit.operations.delete',
538
+ ARRIVE: 'car.transit.operations.arrive',
539
+ VIEW: 'car.transit.operations.view',
540
+ },
541
+ COSTS: {
542
+ CREATE: 'car.transit.costs.create',
543
+ UPDATE: 'car.transit.costs.update',
544
+ DELETE: 'car.transit.costs.delete',
545
+ },
546
+ COST_TEMPLATES: {
547
+ CREATE: 'car.transit.cost_templates.create',
548
+ UPDATE: 'car.transit.cost_templates.update',
549
+ DELETE: 'car.transit.cost_templates.delete',
550
+ },
551
+ },
552
+ RESOURCES: {
553
+ BRAND: {
554
+ VIEW: 'car.resources.brand.view',
555
+ CREATE: 'car.resources.brand.create',
556
+ UPDATE: 'car.resources.brand.update',
557
+ DELETE: 'car.resources.brand.delete',
558
+ },
559
+ MODEL: {
560
+ VIEW: 'car.resources.model.view',
561
+ CREATE: 'car.resources.model.create',
562
+ UPDATE: 'car.resources.model.update',
563
+ DELETE: 'car.resources.model.delete',
564
+ },
565
+ TRIM: {
566
+ VIEW: 'car.resources.trim.view',
567
+ CREATE: 'car.resources.trim.create',
568
+ UPDATE: 'car.resources.trim.update',
569
+ DELETE: 'car.resources.trim.delete',
570
+ },
571
+ STYLE: {
572
+ VIEW: 'car.resources.style.view',
573
+ CREATE: 'car.resources.style.create',
574
+ UPDATE: 'car.resources.style.update',
575
+ DELETE: 'car.resources.style.delete',
576
+ },
577
+ TITLE: {
578
+ VIEW: 'car.resources.title.view',
579
+ CREATE: 'car.resources.title.create',
580
+ UPDATE: 'car.resources.title.update',
581
+ DELETE: 'car.resources.title.delete',
582
+ },
583
+ FUEL_TYPE: {
584
+ VIEW: 'car.resources.fuel_type.view',
585
+ CREATE: 'car.resources.fuel_type.create',
586
+ UPDATE: 'car.resources.fuel_type.update',
587
+ DELETE: 'car.resources.fuel_type.delete',
588
+ },
589
+ COLOR: {
590
+ VIEW: 'car.resources.color.view',
591
+ CREATE: 'car.resources.color.create',
592
+ UPDATE: 'car.resources.color.update',
593
+ DELETE: 'car.resources.color.delete',
594
+ },
595
+ FLOOR: {
596
+ VIEW: 'car.resources.floor.view',
597
+ CREATE: 'car.resources.floor.create',
598
+ UPDATE: 'car.resources.floor.update',
599
+ DELETE: 'car.resources.floor.delete',
600
+ },
601
+ PURCHASE_SOURCE: {
602
+ VIEW: 'car.resources.purchase_source.view',
603
+ CREATE: 'car.resources.purchase_source.create',
604
+ UPDATE: 'car.resources.purchase_source.update',
605
+ DELETE: 'car.resources.purchase_source.delete',
606
+ },
607
+ EXTRA: {
608
+ VIEW: 'car.resources.extra.view',
609
+ CREATE: 'car.resources.extra.create',
610
+ UPDATE: 'car.resources.extra.update',
611
+ DELETE: 'car.resources.extra.delete',
612
+ },
613
+ },
614
+ },
615
+ // ============================================
616
+ // INVITATION
617
+ // ============================================
618
+ INVITATION: {
619
+ OPERATIONS: {
620
+ VIEW: 'invitation.operations.view',
621
+ CREATE: 'invitation.operations.create',
622
+ REVOKE: 'invitation.operations.revoke',
623
+ },
624
+ },
625
+ // ============================================
626
+ // WORKFLOW
627
+ // ============================================
628
+ WORKFLOW: {
629
+ OPERATIONS: {
630
+ VIEW: 'workflow.operations.view',
631
+ CREATE: 'workflow.operations.create',
632
+ UPDATE: 'workflow.operations.update',
633
+ DELETE: 'workflow.operations.delete',
634
+ COPY: 'workflow.operations.copy',
635
+ },
636
+ },
637
+ // ============================================
638
+ // WHOLESALE
639
+ // ============================================
640
+ WHOLESALE: {
641
+ OPERATIONS: {
642
+ VIEW: 'wholesale.operations.view',
643
+ CREATE: 'wholesale.operations.create',
644
+ UPDATE: 'wholesale.operations.update',
645
+ DELETE: 'wholesale.operations.delete',
646
+ PAY: 'wholesale.operations.pay',
647
+ CANCEL: 'wholesale.operations.cancel',
648
+ },
649
+ TARGET: {
650
+ VIEW: 'wholesale.target.view',
651
+ CREATE: 'wholesale.target.create',
652
+ UPDATE: 'wholesale.target.update',
653
+ DELETE: 'wholesale.target.delete',
654
+ },
655
+ INVITATION: {
656
+ ACCEPT: 'wholesale.invitation.accept',
657
+ REVERT_ACCEPT: 'wholesale.invitation.revert_accept',
658
+ REJECT: 'wholesale.invitation.reject',
659
+ REVERT_REJECT: 'wholesale.invitation.revert_reject',
660
+ DELETE: 'wholesale.invitation.delete',
661
+ },
662
+ MANUAL: {
663
+ OPERATIONS: {
664
+ VIEW: 'manual_wholesale.operations.view',
665
+ CREATE: 'manual_wholesale.operations.create',
666
+ UPDATE: 'manual_wholesale.operations.update',
667
+ DELETE: 'manual_wholesale.operations.delete',
668
+ APPROVE: 'manual_wholesale.operations.approve',
669
+ },
670
+ },
671
+ AUTOMATIC: {
672
+ OPERATIONS: {
673
+ VIEW: 'automatic_wholesale.operations.view',
674
+ UPDATE: 'automatic_wholesale.operations.update',
675
+ },
676
+ },
677
+ },
678
+ // ============================================
679
+ // DEALER RELATIONSHIP
680
+ // ============================================
681
+ DEALER_RELATIONSHIP: {
682
+ OPERATIONS: {
683
+ VIEW: 'dealer_relationship.operations.view',
684
+ CREATE: 'dealer_relationship.operations.create',
685
+ APPROVE: 'dealer_relationship.operations.approve',
686
+ REJECT: 'dealer_relationship.operations.reject',
687
+ REVOKE: 'dealer_relationship.operations.revoke',
688
+ SUSPEND: 'dealer_relationship.operations.suspend',
689
+ REACTIVATE: 'dealer_relationship.operations.reactivate',
690
+ },
691
+ RESOURCE: {
692
+ VIEW_INVENTORY: 'dealer_relationship.resource.view_inventory',
693
+ TRANSFER_CAR: 'dealer_relationship.resource.transfer_car',
694
+ CREATE_WHOLESALE_DEAL: 'dealer_relationship.resource.create_wholesale_deal',
695
+ VIEW_SHARED_DEALS: 'dealer_relationship.resource.view_shared_deals',
696
+ },
697
+ PERMISSION: {
698
+ REQUEST: 'dealer_relationship.permission.request',
699
+ APPROVE: 'dealer_relationship.permission.approve',
700
+ REJECT: 'dealer_relationship.permission.reject',
701
+ REVOKE: 'dealer_relationship.permission.revoke',
702
+ },
703
+ },
704
+ // ============================================
705
+ // DEALER GROUP
706
+ // ============================================
707
+ DEALER_GROUP: {
708
+ OPERATIONS: {
709
+ VIEW: 'dealer_group.operations.view',
710
+ CREATE: 'dealer_group.operations.create',
711
+ UPDATE: 'dealer_group.operations.update',
712
+ DELETE: 'dealer_group.operations.delete',
713
+ },
714
+ MEMBERS: {
715
+ INVITE: 'dealer_group.members.invite',
716
+ REQUEST_JOIN: 'dealer_group.members.request_join',
717
+ ACCEPT: 'dealer_group.members.accept',
718
+ REJECT: 'dealer_group.members.reject',
719
+ REMOVE: 'dealer_group.members.remove',
720
+ },
721
+ },
722
+ // ============================================
723
+ // ANALYTICS
724
+ // ============================================
725
+ ANALYTICS: {
726
+ METADATA: {
727
+ VIEW: 'analytics.metadata.view',
728
+ },
729
+ REPORTS: {
730
+ VIEW: 'analytics.reports.view',
731
+ CREATE: 'analytics.reports.create',
732
+ UPDATE: 'analytics.reports.update',
733
+ DELETE: 'analytics.reports.delete',
734
+ EXECUTE: 'analytics.reports.execute',
735
+ },
736
+ TEMPLATES: {
737
+ VIEW: 'analytics.templates.view',
738
+ CREATE: 'analytics.templates.create',
739
+ UPDATE: 'analytics.templates.update',
740
+ DELETE: 'analytics.templates.delete',
741
+ },
742
+ },
743
+ // ============================================
744
+ // AUTHORIZATION
745
+ // ============================================
746
+ AUTHORIZATION: {
747
+ ROLE: {
748
+ VIEW: 'authorization.role.view',
749
+ CREATE: 'authorization.role.create',
750
+ UPDATE: 'authorization.role.update',
751
+ DELETE: 'authorization.role.delete',
752
+ ASSIGN: 'authorization.role.assign',
753
+ UNASSIGN: 'authorization.role.unassign',
754
+ },
755
+ PERMISSION: {
756
+ VIEW: 'authorization.permission.view',
757
+ CREATE: 'authorization.permission.create',
758
+ },
759
+ USER_DEALER_PERMISSION: {
760
+ VIEW: 'authorization.user_dealer_permission.view',
761
+ ASSIGN: 'authorization.user_dealer_permission.assign',
762
+ DELETE: 'authorization.user_dealer_permission.delete',
763
+ },
764
+ },
765
+ };