@telos-dev-team/dealernode-permissions 1.1.4 → 1.1.6

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