@telos-dev-team/dealernode-permissions 1.1.53 → 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/dist/permissions.d.ts
CHANGED
|
@@ -398,6 +398,10 @@ export declare const PERMISSIONS: {
|
|
|
398
398
|
readonly PROCESS: "payment.manual.digital.process";
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
+
readonly SPLIT: {
|
|
402
|
+
readonly VIEW: "payment.split.view";
|
|
403
|
+
readonly MANAGE: "payment.split.manage";
|
|
404
|
+
};
|
|
401
405
|
readonly TERMINAL: {
|
|
402
406
|
readonly LOCATION: {
|
|
403
407
|
readonly VIEW: "payment.terminal.location.view";
|
package/dist/permissions.js
CHANGED
|
@@ -440,6 +440,10 @@ exports.PERMISSIONS = {
|
|
|
440
440
|
PROCESS: "payment.manual.digital.process",
|
|
441
441
|
},
|
|
442
442
|
},
|
|
443
|
+
SPLIT: {
|
|
444
|
+
VIEW: "payment.split.view",
|
|
445
|
+
MANAGE: "payment.split.manage",
|
|
446
|
+
},
|
|
443
447
|
TERMINAL: {
|
|
444
448
|
LOCATION: {
|
|
445
449
|
VIEW: "payment.terminal.location.view",
|
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
|
package/src/permissions.ts
CHANGED
|
@@ -449,6 +449,10 @@ export const PERMISSIONS = {
|
|
|
449
449
|
PROCESS: "payment.manual.digital.process",
|
|
450
450
|
},
|
|
451
451
|
},
|
|
452
|
+
SPLIT: {
|
|
453
|
+
VIEW: "payment.split.view",
|
|
454
|
+
MANAGE: "payment.split.manage",
|
|
455
|
+
},
|
|
452
456
|
TERMINAL: {
|
|
453
457
|
LOCATION: {
|
|
454
458
|
VIEW: "payment.terminal.location.view",
|