@telos-dev-team/dealernode-permissions 1.1.56 → 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,
@@ -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";
@@ -654,12 +648,6 @@ export declare const PERMISSIONS: {
654
648
  readonly VIEW_PLATES: "dealer_relationship.resource.view_plates";
655
649
  readonly VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations";
656
650
  };
657
- readonly PERMISSION: {
658
- readonly REQUEST: "dealer_relationship.permission.request";
659
- readonly APPROVE: "dealer_relationship.permission.approve";
660
- readonly REJECT: "dealer_relationship.permission.reject";
661
- readonly REVOKE: "dealer_relationship.permission.revoke";
662
- };
663
651
  };
664
652
  readonly DEALER_GROUP: {
665
653
  readonly OPERATIONS: {
@@ -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",
@@ -714,12 +708,6 @@ exports.PERMISSIONS = {
714
708
  VIEW_PLATES: "dealer_relationship.resource.view_plates",
715
709
  VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations",
716
710
  },
717
- PERMISSION: {
718
- REQUEST: "dealer_relationship.permission.request",
719
- APPROVE: "dealer_relationship.permission.approve",
720
- REJECT: "dealer_relationship.permission.reject",
721
- REVOKE: "dealer_relationship.permission.revoke",
722
- },
723
711
  },
724
712
  // ============================================
725
713
  // DEALER GROUP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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,
@@ -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",
@@ -733,12 +727,6 @@ export const PERMISSIONS = {
733
727
  VIEW_PLATES: "dealer_relationship.resource.view_plates",
734
728
  VIEW_ARBITRATIONS: "dealer_relationship.resource.view_arbitrations",
735
729
  },
736
- PERMISSION: {
737
- REQUEST: "dealer_relationship.permission.request",
738
- APPROVE: "dealer_relationship.permission.approve",
739
- REJECT: "dealer_relationship.permission.reject",
740
- REVOKE: "dealer_relationship.permission.revoke",
741
- },
742
730
  },
743
731
 
744
732
  // ============================================