@telos-dev-team/dealernode-permissions 1.1.50 → 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.
|
@@ -74,6 +74,16 @@ 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
|
+
* 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
|
+
};
|
|
77
87
|
/**
|
|
78
88
|
* Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
|
|
79
89
|
* global charge provider, dealer subscriptions, cards and invoices. Not
|
|
@@ -108,10 +118,10 @@ export type BackofficePermissionId = Leaves<BackofficePermission>;
|
|
|
108
118
|
*/
|
|
109
119
|
export declare const BACKOFFICE_PERMISSION_PRESETS: {
|
|
110
120
|
/** Every `*.view` permission, nothing else. */
|
|
111
|
-
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.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")[];
|
|
112
122
|
/** Read-only plus the two areas support routinely needs to act on. */
|
|
113
|
-
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.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"];
|
|
114
124
|
/** Every backoffice permission. */
|
|
115
|
-
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.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")[];
|
|
116
126
|
};
|
|
117
127
|
export {};
|
|
@@ -77,6 +77,16 @@ exports.BACKOFFICE_PERMISSIONS = {
|
|
|
77
77
|
VIEW: "backoffice.dealer_members.view",
|
|
78
78
|
MANAGE: "backoffice.dealer_members.manage",
|
|
79
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
|
+
},
|
|
80
90
|
/**
|
|
81
91
|
* Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
|
|
82
92
|
* global charge provider, dealer subscriptions, cards and invoices. Not
|
package/package.json
CHANGED
|
@@ -74,6 +74,16 @@ export const BACKOFFICE_PERMISSIONS = {
|
|
|
74
74
|
VIEW: "backoffice.dealer_members.view",
|
|
75
75
|
MANAGE: "backoffice.dealer_members.manage",
|
|
76
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
|
+
},
|
|
77
87
|
/**
|
|
78
88
|
* Platform-to-dealer billing (dealernode-backend `src/billing`): plans,
|
|
79
89
|
* global charge provider, dealer subscriptions, cards and invoices. Not
|