@telos-dev-team/dealernode-permissions 1.1.54 → 1.1.55
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.
|
@@ -74,6 +74,25 @@ export declare const BACKOFFICE_PERMISSIONS: {
|
|
|
74
74
|
readonly VIEW: "backoffice.dealer_members.view";
|
|
75
75
|
readonly MANAGE: "backoffice.dealer_members.manage";
|
|
76
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* Dealer-to-dealer relationships of any dealer from the backoffice: list them
|
|
79
|
+
* and (MANAGE) create/revoke/suspend/reactivate a relationship and set the
|
|
80
|
+
* capabilities one dealer grants another. Management only — the product keeps
|
|
81
|
+
* the runtime read-path that resolves cross-dealer access per request.
|
|
82
|
+
*/
|
|
83
|
+
readonly DEALER_RELATIONSHIPS: {
|
|
84
|
+
readonly VIEW: "backoffice.dealer_relationships.view";
|
|
85
|
+
readonly MANAGE: "backoffice.dealer_relationships.manage";
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Dealer groups from the backoffice: list them and (MANAGE) create/update/
|
|
89
|
+
* delete a group, add/remove members, set the group permission contract,
|
|
90
|
+
* manage group user assignments and propagate roles across the group.
|
|
91
|
+
*/
|
|
92
|
+
readonly DEALER_GROUPS: {
|
|
93
|
+
readonly VIEW: "backoffice.dealer_groups.view";
|
|
94
|
+
readonly MANAGE: "backoffice.dealer_groups.manage";
|
|
95
|
+
};
|
|
77
96
|
/**
|
|
78
97
|
* Workflows of any dealer from the backoffice: list them, open the editor,
|
|
79
98
|
* and (MANAGE) create, edit, version and test them, including the AI
|
|
@@ -118,10 +137,10 @@ export type BackofficePermissionId = Leaves<BackofficePermission>;
|
|
|
118
137
|
*/
|
|
119
138
|
export declare const BACKOFFICE_PERMISSION_PRESETS: {
|
|
120
139
|
/** Every `*.view` permission, nothing else. */
|
|
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")[];
|
|
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")[];
|
|
122
141
|
/** Read-only plus the two areas support routinely needs to act on. */
|
|
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"];
|
|
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"];
|
|
124
143
|
/** Every backoffice permission. */
|
|
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")[];
|
|
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")[];
|
|
126
145
|
};
|
|
127
146
|
export {};
|
|
@@ -77,6 +77,25 @@ exports.BACKOFFICE_PERMISSIONS = {
|
|
|
77
77
|
VIEW: "backoffice.dealer_members.view",
|
|
78
78
|
MANAGE: "backoffice.dealer_members.manage",
|
|
79
79
|
},
|
|
80
|
+
/**
|
|
81
|
+
* Dealer-to-dealer relationships of any dealer from the backoffice: list them
|
|
82
|
+
* and (MANAGE) create/revoke/suspend/reactivate a relationship and set the
|
|
83
|
+
* capabilities one dealer grants another. Management only — the product keeps
|
|
84
|
+
* the runtime read-path that resolves cross-dealer access per request.
|
|
85
|
+
*/
|
|
86
|
+
DEALER_RELATIONSHIPS: {
|
|
87
|
+
VIEW: "backoffice.dealer_relationships.view",
|
|
88
|
+
MANAGE: "backoffice.dealer_relationships.manage",
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Dealer groups from the backoffice: list them and (MANAGE) create/update/
|
|
92
|
+
* delete a group, add/remove members, set the group permission contract,
|
|
93
|
+
* manage group user assignments and propagate roles across the group.
|
|
94
|
+
*/
|
|
95
|
+
DEALER_GROUPS: {
|
|
96
|
+
VIEW: "backoffice.dealer_groups.view",
|
|
97
|
+
MANAGE: "backoffice.dealer_groups.manage",
|
|
98
|
+
},
|
|
80
99
|
/**
|
|
81
100
|
* Workflows of any dealer from the backoffice: list them, open the editor,
|
|
82
101
|
* and (MANAGE) create, edit, version and test them, including the AI
|
package/package.json
CHANGED
|
@@ -74,6 +74,25 @@ export const BACKOFFICE_PERMISSIONS = {
|
|
|
74
74
|
VIEW: "backoffice.dealer_members.view",
|
|
75
75
|
MANAGE: "backoffice.dealer_members.manage",
|
|
76
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* Dealer-to-dealer relationships of any dealer from the backoffice: list them
|
|
79
|
+
* and (MANAGE) create/revoke/suspend/reactivate a relationship and set the
|
|
80
|
+
* capabilities one dealer grants another. Management only — the product keeps
|
|
81
|
+
* the runtime read-path that resolves cross-dealer access per request.
|
|
82
|
+
*/
|
|
83
|
+
DEALER_RELATIONSHIPS: {
|
|
84
|
+
VIEW: "backoffice.dealer_relationships.view",
|
|
85
|
+
MANAGE: "backoffice.dealer_relationships.manage",
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Dealer groups from the backoffice: list them and (MANAGE) create/update/
|
|
89
|
+
* delete a group, add/remove members, set the group permission contract,
|
|
90
|
+
* manage group user assignments and propagate roles across the group.
|
|
91
|
+
*/
|
|
92
|
+
DEALER_GROUPS: {
|
|
93
|
+
VIEW: "backoffice.dealer_groups.view",
|
|
94
|
+
MANAGE: "backoffice.dealer_groups.manage",
|
|
95
|
+
},
|
|
77
96
|
/**
|
|
78
97
|
* Workflows of any dealer from the backoffice: list them, open the editor,
|
|
79
98
|
* and (MANAGE) create, edit, version and test them, including the AI
|