@telos-dev-team/dealernode-permissions 1.1.55 → 1.1.57
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.
|
@@ -139,7 +139,7 @@ export declare const BACKOFFICE_PERMISSION_PRESETS: {
|
|
|
139
139
|
/** Every `*.view` permission, nothing else. */
|
|
140
140
|
readonly READ_ONLY: ("backoffice.dealers.view" | "backoffice.dealers.manage" | "backoffice.users.view" | "backoffice.users.manage" | "backoffice.permissions.manage" | "backoffice.payments.view" | "backoffice.payments.manage" | "backoffice.dealer_resources.view" | "backoffice.dealer_resources.manage" | "backoffice.catalog.view" | "backoffice.catalog.manage" | "backoffice.dealer_roles.view" | "backoffice.dealer_roles.manage" | "backoffice.dealer_members.view" | "backoffice.dealer_members.manage" | "backoffice.dealer_relationships.view" | "backoffice.dealer_relationships.manage" | "backoffice.dealer_groups.view" | "backoffice.dealer_groups.manage" | "backoffice.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
|
|
141
141
|
/** Read-only plus the two areas support routinely needs to act on. */
|
|
142
|
-
readonly SUPPORT: readonly [...("backoffice.dealers.view" | "backoffice.dealers.manage" | "backoffice.users.view" | "backoffice.users.manage" | "backoffice.permissions.manage" | "backoffice.payments.view" | "backoffice.payments.manage" | "backoffice.dealer_resources.view" | "backoffice.dealer_resources.manage" | "backoffice.catalog.view" | "backoffice.catalog.manage" | "backoffice.dealer_roles.view" | "backoffice.dealer_roles.manage" | "backoffice.dealer_members.view" | "backoffice.dealer_members.manage" | "backoffice.dealer_relationships.view" | "backoffice.dealer_relationships.manage" | "backoffice.dealer_groups.view" | "backoffice.dealer_groups.manage" | "backoffice.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage"];
|
|
142
|
+
readonly SUPPORT: readonly [...("backoffice.dealers.view" | "backoffice.dealers.manage" | "backoffice.users.view" | "backoffice.users.manage" | "backoffice.permissions.manage" | "backoffice.payments.view" | "backoffice.payments.manage" | "backoffice.dealer_resources.view" | "backoffice.dealer_resources.manage" | "backoffice.catalog.view" | "backoffice.catalog.manage" | "backoffice.dealer_roles.view" | "backoffice.dealer_roles.manage" | "backoffice.dealer_members.view" | "backoffice.dealer_members.manage" | "backoffice.dealer_relationships.view" | "backoffice.dealer_relationships.manage" | "backoffice.dealer_groups.view" | "backoffice.dealer_groups.manage" | "backoffice.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage", "backoffice.dealer_relationships.manage"];
|
|
143
143
|
/** Every backoffice permission. */
|
|
144
144
|
readonly ADMIN: ("backoffice.dealers.view" | "backoffice.dealers.manage" | "backoffice.users.view" | "backoffice.users.manage" | "backoffice.permissions.manage" | "backoffice.payments.view" | "backoffice.payments.manage" | "backoffice.dealer_resources.view" | "backoffice.dealer_resources.manage" | "backoffice.catalog.view" | "backoffice.catalog.manage" | "backoffice.dealer_roles.view" | "backoffice.dealer_roles.manage" | "backoffice.dealer_members.view" | "backoffice.dealer_members.manage" | "backoffice.dealer_relationships.view" | "backoffice.dealer_relationships.manage" | "backoffice.dealer_groups.view" | "backoffice.dealer_groups.manage" | "backoffice.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
|
|
145
145
|
};
|
|
@@ -151,6 +151,7 @@ exports.BACKOFFICE_PERMISSION_PRESETS = {
|
|
|
151
151
|
...READ_ONLY_BACKOFFICE_PERMISSIONS,
|
|
152
152
|
exports.BACKOFFICE_PERMISSIONS.DEALERS.MANAGE,
|
|
153
153
|
exports.BACKOFFICE_PERMISSIONS.DEALER_RESOURCES.MANAGE,
|
|
154
|
+
exports.BACKOFFICE_PERMISSIONS.DEALER_RELATIONSHIPS.MANAGE,
|
|
154
155
|
],
|
|
155
156
|
/** Every backoffice permission. */
|
|
156
157
|
ADMIN: ALL_BACKOFFICE_PERMISSIONS,
|
package/dist/permissions.d.ts
CHANGED
|
@@ -632,12 +632,6 @@ export declare const PERMISSIONS: {
|
|
|
632
632
|
readonly DEALER_RELATIONSHIP: {
|
|
633
633
|
readonly OPERATIONS: {
|
|
634
634
|
readonly VIEW: "dealer_relationship.operations.view";
|
|
635
|
-
readonly CREATE: "dealer_relationship.operations.create";
|
|
636
|
-
readonly APPROVE: "dealer_relationship.operations.approve";
|
|
637
|
-
readonly REJECT: "dealer_relationship.operations.reject";
|
|
638
|
-
readonly REVOKE: "dealer_relationship.operations.revoke";
|
|
639
|
-
readonly SUSPEND: "dealer_relationship.operations.suspend";
|
|
640
|
-
readonly REACTIVATE: "dealer_relationship.operations.reactivate";
|
|
641
635
|
};
|
|
642
636
|
readonly RESOURCE: {
|
|
643
637
|
readonly VIEW_INVENTORY: "dealer_relationship.resource.view_inventory";
|
|
@@ -652,12 +646,7 @@ export declare const PERMISSIONS: {
|
|
|
652
646
|
readonly VIEW_GPS: "dealer_relationship.resource.view_gps";
|
|
653
647
|
readonly CREATE_GPS: "dealer_relationship.resource.create_gps";
|
|
654
648
|
readonly VIEW_PLATES: "dealer_relationship.resource.view_plates";
|
|
655
|
-
|
|
656
|
-
readonly PERMISSION: {
|
|
657
|
-
readonly REQUEST: "dealer_relationship.permission.request";
|
|
658
|
-
readonly APPROVE: "dealer_relationship.permission.approve";
|
|
659
|
-
readonly REJECT: "dealer_relationship.permission.reject";
|
|
660
|
-
readonly REVOKE: "dealer_relationship.permission.revoke";
|
|
649
|
+
readonly VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations";
|
|
661
650
|
};
|
|
662
651
|
};
|
|
663
652
|
readonly DEALER_GROUP: {
|
package/dist/permissions.js
CHANGED
|
@@ -692,12 +692,6 @@ exports.PERMISSIONS = {
|
|
|
692
692
|
DEALER_RELATIONSHIP: {
|
|
693
693
|
OPERATIONS: {
|
|
694
694
|
VIEW: "dealer_relationship.operations.view",
|
|
695
|
-
CREATE: "dealer_relationship.operations.create",
|
|
696
|
-
APPROVE: "dealer_relationship.operations.approve",
|
|
697
|
-
REJECT: "dealer_relationship.operations.reject",
|
|
698
|
-
REVOKE: "dealer_relationship.operations.revoke",
|
|
699
|
-
SUSPEND: "dealer_relationship.operations.suspend",
|
|
700
|
-
REACTIVATE: "dealer_relationship.operations.reactivate",
|
|
701
695
|
},
|
|
702
696
|
RESOURCE: {
|
|
703
697
|
VIEW_INVENTORY: "dealer_relationship.resource.view_inventory",
|
|
@@ -712,12 +706,7 @@ exports.PERMISSIONS = {
|
|
|
712
706
|
VIEW_GPS: "dealer_relationship.resource.view_gps",
|
|
713
707
|
CREATE_GPS: "dealer_relationship.resource.create_gps",
|
|
714
708
|
VIEW_PLATES: "dealer_relationship.resource.view_plates",
|
|
715
|
-
|
|
716
|
-
PERMISSION: {
|
|
717
|
-
REQUEST: "dealer_relationship.permission.request",
|
|
718
|
-
APPROVE: "dealer_relationship.permission.approve",
|
|
719
|
-
REJECT: "dealer_relationship.permission.reject",
|
|
720
|
-
REVOKE: "dealer_relationship.permission.revoke",
|
|
709
|
+
VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations",
|
|
721
710
|
},
|
|
722
711
|
},
|
|
723
712
|
// ============================================
|
package/package.json
CHANGED
|
@@ -162,6 +162,7 @@ export const BACKOFFICE_PERMISSION_PRESETS = {
|
|
|
162
162
|
...READ_ONLY_BACKOFFICE_PERMISSIONS,
|
|
163
163
|
BACKOFFICE_PERMISSIONS.DEALERS.MANAGE,
|
|
164
164
|
BACKOFFICE_PERMISSIONS.DEALER_RESOURCES.MANAGE,
|
|
165
|
+
BACKOFFICE_PERMISSIONS.DEALER_RELATIONSHIPS.MANAGE,
|
|
165
166
|
],
|
|
166
167
|
/** Every backoffice permission. */
|
|
167
168
|
ADMIN: ALL_BACKOFFICE_PERMISSIONS,
|
package/src/permissions.ts
CHANGED
|
@@ -707,12 +707,6 @@ export const PERMISSIONS = {
|
|
|
707
707
|
DEALER_RELATIONSHIP: {
|
|
708
708
|
OPERATIONS: {
|
|
709
709
|
VIEW: "dealer_relationship.operations.view",
|
|
710
|
-
CREATE: "dealer_relationship.operations.create",
|
|
711
|
-
APPROVE: "dealer_relationship.operations.approve",
|
|
712
|
-
REJECT: "dealer_relationship.operations.reject",
|
|
713
|
-
REVOKE: "dealer_relationship.operations.revoke",
|
|
714
|
-
SUSPEND: "dealer_relationship.operations.suspend",
|
|
715
|
-
REACTIVATE: "dealer_relationship.operations.reactivate",
|
|
716
710
|
},
|
|
717
711
|
RESOURCE: {
|
|
718
712
|
VIEW_INVENTORY: "dealer_relationship.resource.view_inventory",
|
|
@@ -731,12 +725,7 @@ export const PERMISSIONS = {
|
|
|
731
725
|
VIEW_GPS: "dealer_relationship.resource.view_gps",
|
|
732
726
|
CREATE_GPS: "dealer_relationship.resource.create_gps",
|
|
733
727
|
VIEW_PLATES: "dealer_relationship.resource.view_plates",
|
|
734
|
-
|
|
735
|
-
PERMISSION: {
|
|
736
|
-
REQUEST: "dealer_relationship.permission.request",
|
|
737
|
-
APPROVE: "dealer_relationship.permission.approve",
|
|
738
|
-
REJECT: "dealer_relationship.permission.reject",
|
|
739
|
-
REVOKE: "dealer_relationship.permission.revoke",
|
|
728
|
+
VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations",
|
|
740
729
|
},
|
|
741
730
|
},
|
|
742
731
|
|