@telos-dev-team/dealernode-permissions 1.1.49 → 1.1.51

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.
@@ -63,6 +63,27 @@ export declare const BACKOFFICE_PERMISSIONS: {
63
63
  readonly VIEW: "backoffice.dealer_roles.view";
64
64
  readonly MANAGE: "backoffice.dealer_roles.manage";
65
65
  };
66
+ /**
67
+ * Members of any dealer from the backoffice: list them, view one, and
68
+ * replace its roles and deal actor types. Its own permission (not
69
+ * DEALER_ROLES): who may edit a dealer's role catalog is not the same as who
70
+ * may re-assign people to those roles. Never touches a member's direct
71
+ * permissions.
72
+ */
73
+ readonly DEALER_MEMBERS: {
74
+ readonly VIEW: "backoffice.dealer_members.view";
75
+ readonly MANAGE: "backoffice.dealer_members.manage";
76
+ };
77
+ /**
78
+ * Workflows of any dealer from the backoffice: list them, open the editor,
79
+ * and (MANAGE) create, edit, version and test them, including the AI
80
+ * assistant. Never decides which workflows run in production: that is
81
+ * assigned by each dealer from the product.
82
+ */
83
+ readonly WORKFLOWS: {
84
+ readonly VIEW: "backoffice.workflows.view";
85
+ readonly MANAGE: "backoffice.workflows.manage";
86
+ };
66
87
  /**
67
88
  * Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
68
89
  * global charge provider, dealer subscriptions, cards and invoices. Not
@@ -97,10 +118,10 @@ export type BackofficePermissionId = Leaves<BackofficePermission>;
97
118
  */
98
119
  export declare const BACKOFFICE_PERMISSION_PRESETS: {
99
120
  /** Every `*.view` permission, nothing else. */
100
- 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.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
121
+ 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.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
101
122
  /** Read-only plus the two areas support routinely needs to act on. */
102
- 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.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage"];
123
+ 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.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage"];
103
124
  /** Every backoffice permission. */
104
- 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.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
125
+ 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.workflows.view" | "backoffice.workflows.manage" | "backoffice.billing.view" | "backoffice.billing.manage" | "backoffice.billing.credentials")[];
105
126
  };
106
127
  export {};
@@ -66,6 +66,27 @@ exports.BACKOFFICE_PERMISSIONS = {
66
66
  VIEW: "backoffice.dealer_roles.view",
67
67
  MANAGE: "backoffice.dealer_roles.manage",
68
68
  },
69
+ /**
70
+ * Members of any dealer from the backoffice: list them, view one, and
71
+ * replace its roles and deal actor types. Its own permission (not
72
+ * DEALER_ROLES): who may edit a dealer's role catalog is not the same as who
73
+ * may re-assign people to those roles. Never touches a member's direct
74
+ * permissions.
75
+ */
76
+ DEALER_MEMBERS: {
77
+ VIEW: "backoffice.dealer_members.view",
78
+ MANAGE: "backoffice.dealer_members.manage",
79
+ },
80
+ /**
81
+ * Workflows of any dealer from the backoffice: list them, open the editor,
82
+ * and (MANAGE) create, edit, version and test them, including the AI
83
+ * assistant. Never decides which workflows run in production: that is
84
+ * assigned by each dealer from the product.
85
+ */
86
+ WORKFLOWS: {
87
+ VIEW: "backoffice.workflows.view",
88
+ MANAGE: "backoffice.workflows.manage",
89
+ },
69
90
  /**
70
91
  * Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
71
92
  * global charge provider, dealer subscriptions, cards and invoices. Not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.49",
3
+ "version": "1.1.51",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,6 +63,27 @@ export const BACKOFFICE_PERMISSIONS = {
63
63
  VIEW: "backoffice.dealer_roles.view",
64
64
  MANAGE: "backoffice.dealer_roles.manage",
65
65
  },
66
+ /**
67
+ * Members of any dealer from the backoffice: list them, view one, and
68
+ * replace its roles and deal actor types. Its own permission (not
69
+ * DEALER_ROLES): who may edit a dealer's role catalog is not the same as who
70
+ * may re-assign people to those roles. Never touches a member's direct
71
+ * permissions.
72
+ */
73
+ DEALER_MEMBERS: {
74
+ VIEW: "backoffice.dealer_members.view",
75
+ MANAGE: "backoffice.dealer_members.manage",
76
+ },
77
+ /**
78
+ * Workflows of any dealer from the backoffice: list them, open the editor,
79
+ * and (MANAGE) create, edit, version and test them, including the AI
80
+ * assistant. Never decides which workflows run in production: that is
81
+ * assigned by each dealer from the product.
82
+ */
83
+ WORKFLOWS: {
84
+ VIEW: "backoffice.workflows.view",
85
+ MANAGE: "backoffice.workflows.manage",
86
+ },
66
87
  /**
67
88
  * Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
68
89
  * global charge provider, dealer subscriptions, cards and invoices. Not