@telos-dev-team/dealernode-permissions 1.1.15 → 1.1.17
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.
- package/dist/permissions.d.ts +21 -0
- package/dist/permissions.js +24 -0
- package/package.json +1 -1
- package/src/permissions.ts +25 -0
package/dist/permissions.d.ts
CHANGED
|
@@ -242,6 +242,12 @@ export declare const PERMISSIONS: {
|
|
|
242
242
|
readonly MANAGE: "deal.payment.operations.manage";
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
|
+
readonly COMMENT: {
|
|
246
|
+
readonly VIEW: "deal.comment.view";
|
|
247
|
+
readonly CREATE: "deal.comment.create";
|
|
248
|
+
readonly UPDATE: "deal.comment.update";
|
|
249
|
+
readonly DELETE: "deal.comment.delete";
|
|
250
|
+
};
|
|
245
251
|
};
|
|
246
252
|
readonly FAIL_DEAL: {
|
|
247
253
|
readonly UNWIND: {
|
|
@@ -490,6 +496,12 @@ export declare const PERMISSIONS: {
|
|
|
490
496
|
readonly MANAGE: "car.resources.extra.manage";
|
|
491
497
|
};
|
|
492
498
|
};
|
|
499
|
+
readonly COMMENT: {
|
|
500
|
+
readonly VIEW: "car.comment.view";
|
|
501
|
+
readonly CREATE: "car.comment.create";
|
|
502
|
+
readonly UPDATE: "car.comment.update";
|
|
503
|
+
readonly DELETE: "car.comment.delete";
|
|
504
|
+
};
|
|
493
505
|
};
|
|
494
506
|
readonly INVITATION: {
|
|
495
507
|
readonly OPERATIONS: {
|
|
@@ -545,6 +557,7 @@ export declare const PERMISSIONS: {
|
|
|
545
557
|
readonly TRANSFER_CAR: "dealer_relationship.resource.transfer_car";
|
|
546
558
|
readonly CREATE_WHOLESALE_DEAL: "dealer_relationship.resource.create_wholesale_deal";
|
|
547
559
|
readonly VIEW_SHARED_DEALS: "dealer_relationship.resource.view_shared_deals";
|
|
560
|
+
readonly VIEW_SHARED_FAILED_DEALS: "dealer_relationship.resource.view_shared_failed_deals";
|
|
548
561
|
};
|
|
549
562
|
readonly PERMISSION: {
|
|
550
563
|
readonly REQUEST: "dealer_relationship.permission.request";
|
|
@@ -628,6 +641,14 @@ export declare const PERMISSIONS: {
|
|
|
628
641
|
readonly MANAGE: "notification.config.manage";
|
|
629
642
|
};
|
|
630
643
|
};
|
|
644
|
+
readonly OTHER: {
|
|
645
|
+
readonly COMMENT: {
|
|
646
|
+
readonly VIEW: "other.comment.view";
|
|
647
|
+
readonly CREATE: "other.comment.create";
|
|
648
|
+
readonly UPDATE: "other.comment.update";
|
|
649
|
+
readonly DELETE: "other.comment.delete";
|
|
650
|
+
};
|
|
651
|
+
};
|
|
631
652
|
readonly GPS_PROVIDER: {
|
|
632
653
|
readonly CONFIG: {
|
|
633
654
|
readonly OPERATIONS: {
|
package/dist/permissions.js
CHANGED
|
@@ -275,6 +275,12 @@ exports.PERMISSIONS = {
|
|
|
275
275
|
MANAGE: "deal.payment.operations.manage",
|
|
276
276
|
},
|
|
277
277
|
},
|
|
278
|
+
COMMENT: {
|
|
279
|
+
VIEW: "deal.comment.view",
|
|
280
|
+
CREATE: "deal.comment.create",
|
|
281
|
+
UPDATE: "deal.comment.update",
|
|
282
|
+
DELETE: "deal.comment.delete",
|
|
283
|
+
},
|
|
278
284
|
},
|
|
279
285
|
// ============================================
|
|
280
286
|
// FAIL DEAL
|
|
@@ -532,6 +538,12 @@ exports.PERMISSIONS = {
|
|
|
532
538
|
MANAGE: "car.resources.extra.manage",
|
|
533
539
|
},
|
|
534
540
|
},
|
|
541
|
+
COMMENT: {
|
|
542
|
+
VIEW: "car.comment.view",
|
|
543
|
+
CREATE: "car.comment.create",
|
|
544
|
+
UPDATE: "car.comment.update",
|
|
545
|
+
DELETE: "car.comment.delete",
|
|
546
|
+
},
|
|
535
547
|
},
|
|
536
548
|
// ============================================
|
|
537
549
|
// INVITATION
|
|
@@ -599,6 +611,7 @@ exports.PERMISSIONS = {
|
|
|
599
611
|
TRANSFER_CAR: "dealer_relationship.resource.transfer_car",
|
|
600
612
|
CREATE_WHOLESALE_DEAL: "dealer_relationship.resource.create_wholesale_deal",
|
|
601
613
|
VIEW_SHARED_DEALS: "dealer_relationship.resource.view_shared_deals",
|
|
614
|
+
VIEW_SHARED_FAILED_DEALS: "dealer_relationship.resource.view_shared_failed_deals",
|
|
602
615
|
},
|
|
603
616
|
PERMISSION: {
|
|
604
617
|
REQUEST: "dealer_relationship.permission.request",
|
|
@@ -703,6 +716,17 @@ exports.PERMISSIONS = {
|
|
|
703
716
|
// ============================================
|
|
704
717
|
// GPS PROVIDER
|
|
705
718
|
// ============================================
|
|
719
|
+
// ============================================
|
|
720
|
+
// OTHER (comments on client, wholesale, etc.)
|
|
721
|
+
// ============================================
|
|
722
|
+
OTHER: {
|
|
723
|
+
COMMENT: {
|
|
724
|
+
VIEW: "other.comment.view",
|
|
725
|
+
CREATE: "other.comment.create",
|
|
726
|
+
UPDATE: "other.comment.update",
|
|
727
|
+
DELETE: "other.comment.delete",
|
|
728
|
+
},
|
|
729
|
+
},
|
|
706
730
|
GPS_PROVIDER: {
|
|
707
731
|
CONFIG: {
|
|
708
732
|
OPERATIONS: {
|
package/package.json
CHANGED
package/src/permissions.ts
CHANGED
|
@@ -281,6 +281,12 @@ export const PERMISSIONS = {
|
|
|
281
281
|
MANAGE: "deal.payment.operations.manage",
|
|
282
282
|
},
|
|
283
283
|
},
|
|
284
|
+
COMMENT: {
|
|
285
|
+
VIEW: "deal.comment.view",
|
|
286
|
+
CREATE: "deal.comment.create",
|
|
287
|
+
UPDATE: "deal.comment.update",
|
|
288
|
+
DELETE: "deal.comment.delete",
|
|
289
|
+
},
|
|
284
290
|
},
|
|
285
291
|
|
|
286
292
|
// ============================================
|
|
@@ -541,6 +547,12 @@ export const PERMISSIONS = {
|
|
|
541
547
|
MANAGE: "car.resources.extra.manage",
|
|
542
548
|
},
|
|
543
549
|
},
|
|
550
|
+
COMMENT: {
|
|
551
|
+
VIEW: "car.comment.view",
|
|
552
|
+
CREATE: "car.comment.create",
|
|
553
|
+
UPDATE: "car.comment.update",
|
|
554
|
+
DELETE: "car.comment.delete",
|
|
555
|
+
},
|
|
544
556
|
},
|
|
545
557
|
|
|
546
558
|
// ============================================
|
|
@@ -613,6 +625,7 @@ export const PERMISSIONS = {
|
|
|
613
625
|
CREATE_WHOLESALE_DEAL:
|
|
614
626
|
"dealer_relationship.resource.create_wholesale_deal",
|
|
615
627
|
VIEW_SHARED_DEALS: "dealer_relationship.resource.view_shared_deals",
|
|
628
|
+
VIEW_SHARED_FAILED_DEALS: "dealer_relationship.resource.view_shared_failed_deals",
|
|
616
629
|
},
|
|
617
630
|
PERMISSION: {
|
|
618
631
|
REQUEST: "dealer_relationship.permission.request",
|
|
@@ -724,6 +737,18 @@ export const PERMISSIONS = {
|
|
|
724
737
|
// ============================================
|
|
725
738
|
// GPS PROVIDER
|
|
726
739
|
// ============================================
|
|
740
|
+
// ============================================
|
|
741
|
+
// OTHER (comments on client, wholesale, etc.)
|
|
742
|
+
// ============================================
|
|
743
|
+
OTHER: {
|
|
744
|
+
COMMENT: {
|
|
745
|
+
VIEW: "other.comment.view",
|
|
746
|
+
CREATE: "other.comment.create",
|
|
747
|
+
UPDATE: "other.comment.update",
|
|
748
|
+
DELETE: "other.comment.delete",
|
|
749
|
+
},
|
|
750
|
+
},
|
|
751
|
+
|
|
727
752
|
GPS_PROVIDER: {
|
|
728
753
|
CONFIG: {
|
|
729
754
|
OPERATIONS: {
|