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

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,65 @@ 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",
475
481
  },
476
482
  },
477
483
  BILLING: {
478
- MANAGE: 'payment.billing.manage',
484
+ MANAGE: "payment.billing.manage",
479
485
  },
480
486
  },
481
487
 
@@ -484,154 +490,154 @@ export const PERMISSIONS = {
484
490
  // ============================================
485
491
  CAR: {
486
492
  OPERATIONS: {
487
- VIEW: 'car.operations.view',
493
+ VIEW: "car.operations.view",
488
494
  },
489
495
  INVENTORY: {
490
496
  VIEW: {
491
- EXTRA: 'car.inventory.view.extra',
497
+ EXTRA: "car.inventory.view.extra",
492
498
  },
493
499
  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',
500
+ VIEW: "car.inventory.operations.view",
501
+ VIEW_OPERATIONS: "car.inventory.operations.view_operations",
502
+ CREATE: "car.inventory.operations.create",
503
+ UPDATE: "car.inventory.operations.update",
504
+ DELETE: "car.inventory.operations.delete",
505
+ RESTORE: "car.inventory.operations.restore",
506
+ VALIDATE_VIN: "car.inventory.operations.validate_vin",
501
507
  },
502
508
  FILES: {
503
- UPLOAD: 'car.inventory.files.upload',
504
- DOWNLOAD: 'car.inventory.files.download',
505
- DELETE: 'car.inventory.files.delete',
509
+ UPLOAD: "car.inventory.files.upload",
510
+ DOWNLOAD: "car.inventory.files.download",
511
+ DELETE: "car.inventory.files.delete",
506
512
  },
507
513
  },
508
514
  EXTRA: {
509
515
  OPERATIONS: {
510
- CREATE: 'car.extra.operations.create',
516
+ CREATE: "car.extra.operations.create",
511
517
  },
512
518
  },
513
519
  GPS: {
514
520
  OPERATIONS: {
515
- VIEW: 'car.gps.operations.view',
516
- CREATE: 'car.gps.operations.create',
521
+ VIEW: "car.gps.operations.view",
522
+ CREATE: "car.gps.operations.create",
517
523
  },
518
524
  },
519
525
  WORKSHOP: {
520
526
  OPERATIONS: {
521
- CREATE: 'car.workshop.operations.create',
522
- UPDATE: 'car.workshop.operations.update',
523
- DELETE: 'car.workshop.operations.delete',
527
+ CREATE: "car.workshop.operations.create",
528
+ UPDATE: "car.workshop.operations.update",
529
+ DELETE: "car.workshop.operations.delete",
524
530
  },
525
531
  COSTS: {
526
- CREATE: 'car.workshop.costs.create',
527
- UPDATE: 'car.workshop.costs.update',
528
- DELETE: 'car.workshop.costs.delete',
532
+ CREATE: "car.workshop.costs.create",
533
+ UPDATE: "car.workshop.costs.update",
534
+ DELETE: "car.workshop.costs.delete",
529
535
  },
530
536
  COST_TEMPLATES: {
531
- CREATE: 'car.workshop.cost_templates.create',
532
- UPDATE: 'car.workshop.cost_templates.update',
533
- DELETE: 'car.workshop.cost_templates.delete',
537
+ CREATE: "car.workshop.cost_templates.create",
538
+ UPDATE: "car.workshop.cost_templates.update",
539
+ DELETE: "car.workshop.cost_templates.delete",
534
540
  },
535
541
  },
536
542
  TRADE: {
537
543
  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',
544
+ VIEW: "car.trade.operations.view",
545
+ CREATE: "car.trade.operations.create",
546
+ DELETE: "car.trade.operations.delete",
547
+ TRANSFORM: "car.trade.operations.transform",
542
548
  },
543
549
  },
544
550
  DRAFT: {
545
551
  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',
552
+ VIEW: "car.draft.operations.view",
553
+ CREATE: "car.draft.operations.create",
554
+ UPDATE: "car.draft.operations.update",
555
+ DELETE: "car.draft.operations.delete",
556
+ PUBLISH: "car.draft.operations.publish",
551
557
  },
552
558
  },
553
559
  TRANSIT: {
554
560
  VIEW: {
555
- EXTRA: 'car.transit.view.extra',
561
+ EXTRA: "car.transit.view.extra",
556
562
  },
557
563
  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',
564
+ CREATE: "car.transit.operations.create",
565
+ UPDATE: "car.transit.operations.update",
566
+ DELETE: "car.transit.operations.delete",
567
+ ARRIVE: "car.transit.operations.arrive",
568
+ VIEW: "car.transit.operations.view",
563
569
  },
564
570
  COSTS: {
565
- CREATE: 'car.transit.costs.create',
566
- UPDATE: 'car.transit.costs.update',
567
- DELETE: 'car.transit.costs.delete',
571
+ CREATE: "car.transit.costs.create",
572
+ UPDATE: "car.transit.costs.update",
573
+ DELETE: "car.transit.costs.delete",
568
574
  },
569
575
  COST_TEMPLATES: {
570
- CREATE: 'car.transit.cost_templates.create',
571
- UPDATE: 'car.transit.cost_templates.update',
572
- DELETE: 'car.transit.cost_templates.delete',
576
+ CREATE: "car.transit.cost_templates.create",
577
+ UPDATE: "car.transit.cost_templates.update",
578
+ DELETE: "car.transit.cost_templates.delete",
573
579
  },
574
580
  },
575
581
  RESOURCES: {
576
582
  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',
583
+ VIEW: "car.resources.brand.view",
584
+ CREATE: "car.resources.brand.create",
585
+ UPDATE: "car.resources.brand.update",
586
+ DELETE: "car.resources.brand.delete",
581
587
  },
582
588
  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',
589
+ VIEW: "car.resources.model.view",
590
+ CREATE: "car.resources.model.create",
591
+ UPDATE: "car.resources.model.update",
592
+ DELETE: "car.resources.model.delete",
587
593
  },
588
594
  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',
595
+ VIEW: "car.resources.trim.view",
596
+ CREATE: "car.resources.trim.create",
597
+ UPDATE: "car.resources.trim.update",
598
+ DELETE: "car.resources.trim.delete",
593
599
  },
594
600
  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',
601
+ VIEW: "car.resources.style.view",
602
+ CREATE: "car.resources.style.create",
603
+ UPDATE: "car.resources.style.update",
604
+ DELETE: "car.resources.style.delete",
599
605
  },
600
606
  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',
607
+ VIEW: "car.resources.title.view",
608
+ CREATE: "car.resources.title.create",
609
+ UPDATE: "car.resources.title.update",
610
+ DELETE: "car.resources.title.delete",
605
611
  },
606
612
  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',
613
+ VIEW: "car.resources.fuel_type.view",
614
+ CREATE: "car.resources.fuel_type.create",
615
+ UPDATE: "car.resources.fuel_type.update",
616
+ DELETE: "car.resources.fuel_type.delete",
611
617
  },
612
618
  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',
619
+ VIEW: "car.resources.color.view",
620
+ CREATE: "car.resources.color.create",
621
+ UPDATE: "car.resources.color.update",
622
+ DELETE: "car.resources.color.delete",
617
623
  },
618
624
  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',
625
+ VIEW: "car.resources.floor.view",
626
+ CREATE: "car.resources.floor.create",
627
+ UPDATE: "car.resources.floor.update",
628
+ DELETE: "car.resources.floor.delete",
623
629
  },
624
630
  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',
631
+ VIEW: "car.resources.purchase_source.view",
632
+ CREATE: "car.resources.purchase_source.create",
633
+ UPDATE: "car.resources.purchase_source.update",
634
+ DELETE: "car.resources.purchase_source.delete",
629
635
  },
630
636
  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',
637
+ VIEW: "car.resources.extra.view",
638
+ CREATE: "car.resources.extra.create",
639
+ UPDATE: "car.resources.extra.update",
640
+ DELETE: "car.resources.extra.delete",
635
641
  },
636
642
  },
637
643
  },
@@ -641,9 +647,9 @@ export const PERMISSIONS = {
641
647
  // ============================================
642
648
  INVITATION: {
643
649
  OPERATIONS: {
644
- VIEW: 'invitation.operations.view',
645
- CREATE: 'invitation.operations.create',
646
- REVOKE: 'invitation.operations.revoke',
650
+ VIEW: "invitation.operations.view",
651
+ CREATE: "invitation.operations.create",
652
+ REVOKE: "invitation.operations.revoke",
647
653
  },
648
654
  },
649
655
 
@@ -652,11 +658,11 @@ export const PERMISSIONS = {
652
658
  // ============================================
653
659
  WORKFLOW: {
654
660
  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',
661
+ VIEW: "workflow.operations.view",
662
+ CREATE: "workflow.operations.create",
663
+ UPDATE: "workflow.operations.update",
664
+ DELETE: "workflow.operations.delete",
665
+ COPY: "workflow.operations.copy",
660
666
  },
661
667
  },
662
668
 
@@ -665,39 +671,39 @@ export const PERMISSIONS = {
665
671
  // ============================================
666
672
  WHOLESALE: {
667
673
  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',
674
+ VIEW: "wholesale.operations.view",
675
+ CREATE: "wholesale.operations.create",
676
+ UPDATE: "wholesale.operations.update",
677
+ DELETE: "wholesale.operations.delete",
678
+ PAY: "wholesale.operations.pay",
679
+ CANCEL: "wholesale.operations.cancel",
674
680
  },
675
681
  TARGET: {
676
- VIEW: 'wholesale.target.view',
677
- CREATE: 'wholesale.target.create',
678
- UPDATE: 'wholesale.target.update',
679
- DELETE: 'wholesale.target.delete',
682
+ VIEW: "wholesale.target.view",
683
+ CREATE: "wholesale.target.create",
684
+ UPDATE: "wholesale.target.update",
685
+ DELETE: "wholesale.target.delete",
680
686
  },
681
687
  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',
688
+ ACCEPT: "wholesale.invitation.accept",
689
+ REVERT_ACCEPT: "wholesale.invitation.revert_accept",
690
+ REJECT: "wholesale.invitation.reject",
691
+ REVERT_REJECT: "wholesale.invitation.revert_reject",
692
+ DELETE: "wholesale.invitation.delete",
687
693
  },
688
694
  MANUAL: {
689
695
  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',
696
+ VIEW: "manual_wholesale.operations.view",
697
+ CREATE: "manual_wholesale.operations.create",
698
+ UPDATE: "manual_wholesale.operations.update",
699
+ DELETE: "manual_wholesale.operations.delete",
700
+ APPROVE: "manual_wholesale.operations.approve",
695
701
  },
696
702
  },
697
703
  AUTOMATIC: {
698
704
  OPERATIONS: {
699
- VIEW: 'automatic_wholesale.operations.view',
700
- UPDATE: 'automatic_wholesale.operations.update',
705
+ VIEW: "automatic_wholesale.operations.view",
706
+ UPDATE: "automatic_wholesale.operations.update",
701
707
  },
702
708
  },
703
709
  },
@@ -707,26 +713,26 @@ export const PERMISSIONS = {
707
713
  // ============================================
708
714
  DEALER_RELATIONSHIP: {
709
715
  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',
716
+ VIEW: "dealer_relationship.operations.view",
717
+ CREATE: "dealer_relationship.operations.create",
718
+ APPROVE: "dealer_relationship.operations.approve",
719
+ REJECT: "dealer_relationship.operations.reject",
720
+ REVOKE: "dealer_relationship.operations.revoke",
721
+ SUSPEND: "dealer_relationship.operations.suspend",
722
+ REACTIVATE: "dealer_relationship.operations.reactivate",
717
723
  },
718
724
  RESOURCE: {
719
- VIEW_INVENTORY: 'dealer_relationship.resource.view_inventory',
720
- TRANSFER_CAR: 'dealer_relationship.resource.transfer_car',
725
+ VIEW_INVENTORY: "dealer_relationship.resource.view_inventory",
726
+ TRANSFER_CAR: "dealer_relationship.resource.transfer_car",
721
727
  CREATE_WHOLESALE_DEAL:
722
- 'dealer_relationship.resource.create_wholesale_deal',
723
- VIEW_SHARED_DEALS: 'dealer_relationship.resource.view_shared_deals',
728
+ "dealer_relationship.resource.create_wholesale_deal",
729
+ VIEW_SHARED_DEALS: "dealer_relationship.resource.view_shared_deals",
724
730
  },
725
731
  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',
732
+ REQUEST: "dealer_relationship.permission.request",
733
+ APPROVE: "dealer_relationship.permission.approve",
734
+ REJECT: "dealer_relationship.permission.reject",
735
+ REVOKE: "dealer_relationship.permission.revoke",
730
736
  },
731
737
  },
732
738
 
@@ -735,17 +741,17 @@ export const PERMISSIONS = {
735
741
  // ============================================
736
742
  DEALER_GROUP: {
737
743
  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',
744
+ VIEW: "dealer_group.operations.view",
745
+ CREATE: "dealer_group.operations.create",
746
+ UPDATE: "dealer_group.operations.update",
747
+ DELETE: "dealer_group.operations.delete",
742
748
  },
743
749
  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',
750
+ INVITE: "dealer_group.members.invite",
751
+ REQUEST_JOIN: "dealer_group.members.request_join",
752
+ ACCEPT: "dealer_group.members.accept",
753
+ REJECT: "dealer_group.members.reject",
754
+ REMOVE: "dealer_group.members.remove",
749
755
  },
750
756
  },
751
757
 
@@ -754,20 +760,20 @@ export const PERMISSIONS = {
754
760
  // ============================================
755
761
  ANALYTICS: {
756
762
  METADATA: {
757
- VIEW: 'analytics.metadata.view',
763
+ VIEW: "analytics.metadata.view",
758
764
  },
759
765
  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',
766
+ VIEW: "analytics.reports.view",
767
+ CREATE: "analytics.reports.create",
768
+ UPDATE: "analytics.reports.update",
769
+ DELETE: "analytics.reports.delete",
770
+ EXECUTE: "analytics.reports.execute",
765
771
  },
766
772
  TEMPLATES: {
767
- VIEW: 'analytics.templates.view',
768
- CREATE: 'analytics.templates.create',
769
- UPDATE: 'analytics.templates.update',
770
- DELETE: 'analytics.templates.delete',
773
+ VIEW: "analytics.templates.view",
774
+ CREATE: "analytics.templates.create",
775
+ UPDATE: "analytics.templates.update",
776
+ DELETE: "analytics.templates.delete",
771
777
  },
772
778
  },
773
779
 
@@ -776,21 +782,21 @@ export const PERMISSIONS = {
776
782
  // ============================================
777
783
  AUTHORIZATION: {
778
784
  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',
785
+ VIEW: "authorization.role.view",
786
+ CREATE: "authorization.role.create",
787
+ UPDATE: "authorization.role.update",
788
+ DELETE: "authorization.role.delete",
789
+ ASSIGN: "authorization.role.assign",
790
+ UNASSIGN: "authorization.role.unassign",
785
791
  },
786
792
  PERMISSION: {
787
- VIEW: 'authorization.permission.view',
788
- CREATE: 'authorization.permission.create',
793
+ VIEW: "authorization.permission.view",
794
+ CREATE: "authorization.permission.create",
789
795
  },
790
796
  USER_DEALER_PERMISSION: {
791
- VIEW: 'authorization.user_dealer_permission.view',
792
- ASSIGN: 'authorization.user_dealer_permission.assign',
793
- DELETE: 'authorization.user_dealer_permission.delete',
797
+ VIEW: "authorization.user_dealer_permission.view",
798
+ ASSIGN: "authorization.user_dealer_permission.assign",
799
+ DELETE: "authorization.user_dealer_permission.delete",
794
800
  },
795
801
  },
796
802
 
@@ -799,9 +805,9 @@ export const PERMISSIONS = {
799
805
  // ============================================
800
806
  AUTOMATIC_ACTION: {
801
807
  OPERATIONS: {
802
- VIEW: 'automatic_action.operations.view',
803
- DELETE: 'automatic_action.operations.delete',
804
- EXECUTE: 'automatic_action.operations.execute',
808
+ VIEW: "automatic_action.operations.view",
809
+ DELETE: "automatic_action.operations.delete",
810
+ EXECUTE: "automatic_action.operations.execute",
805
811
  },
806
812
  },
807
813
 
@@ -810,28 +816,28 @@ export const PERMISSIONS = {
810
816
  // ============================================
811
817
  CALENDAR: {
812
818
  OPERATIONS: {
813
- VIEW: 'calendar.operations.view',
814
- UPDATE: 'calendar.operations.update',
819
+ VIEW: "calendar.operations.view",
820
+ UPDATE: "calendar.operations.update",
815
821
  },
816
822
  },
817
-
823
+
818
824
  // ============================================
819
825
  // GPS PROVIDER
820
826
  // ============================================
821
827
  GPS_PROVIDER: {
822
828
  CONFIG: {
823
829
  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',
830
+ CREATE: "gps-provider.config.operations.create",
831
+ VIEW: "gps-provider.config.operations.view",
832
+ UPDATE: "gps-provider.config.operations.update",
833
+ DELETE: "gps-provider.config.operations.delete",
828
834
  },
829
835
  },
830
836
  DEVICE: {
831
837
  OPERATIONS: {
832
- VIEW: 'gps-provider.device.operations.view',
833
- LOCATE: 'gps-provider.device.operations.locate',
834
- ACTIVATE: 'gps-provider.device.operations.activate',
838
+ VIEW: "gps-provider.device.operations.view",
839
+ LOCATE: "gps-provider.device.operations.locate",
840
+ ACTIVATE: "gps-provider.device.operations.activate",
835
841
  },
836
842
  },
837
843
  },