@telos-dev-team/dealernode-permissions 1.1.50 → 1.1.52
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/dist/permissions.d.ts
CHANGED
|
@@ -384,6 +384,20 @@ export declare const PERMISSIONS: {
|
|
|
384
384
|
readonly VIEW: "payment.refund.view";
|
|
385
385
|
readonly MANAGE: "payment.refund.manage";
|
|
386
386
|
};
|
|
387
|
+
readonly MANUAL: {
|
|
388
|
+
readonly CHECK: {
|
|
389
|
+
readonly VIEW: "payment.manual.check.view";
|
|
390
|
+
readonly PROCESS: "payment.manual.check.process";
|
|
391
|
+
};
|
|
392
|
+
readonly CASH: {
|
|
393
|
+
readonly VIEW: "payment.manual.cash.view";
|
|
394
|
+
readonly PROCESS: "payment.manual.cash.process";
|
|
395
|
+
};
|
|
396
|
+
readonly DIGITAL: {
|
|
397
|
+
readonly VIEW: "payment.manual.digital.view";
|
|
398
|
+
readonly PROCESS: "payment.manual.digital.process";
|
|
399
|
+
};
|
|
400
|
+
};
|
|
387
401
|
readonly TERMINAL: {
|
|
388
402
|
readonly LOCATION: {
|
|
389
403
|
readonly VIEW: "payment.terminal.location.view";
|
package/dist/permissions.js
CHANGED
|
@@ -426,6 +426,20 @@ exports.PERMISSIONS = {
|
|
|
426
426
|
VIEW: "payment.refund.view",
|
|
427
427
|
MANAGE: "payment.refund.manage",
|
|
428
428
|
},
|
|
429
|
+
MANUAL: {
|
|
430
|
+
CHECK: {
|
|
431
|
+
VIEW: "payment.manual.check.view",
|
|
432
|
+
PROCESS: "payment.manual.check.process",
|
|
433
|
+
},
|
|
434
|
+
CASH: {
|
|
435
|
+
VIEW: "payment.manual.cash.view",
|
|
436
|
+
PROCESS: "payment.manual.cash.process",
|
|
437
|
+
},
|
|
438
|
+
DIGITAL: {
|
|
439
|
+
VIEW: "payment.manual.digital.view",
|
|
440
|
+
PROCESS: "payment.manual.digital.process",
|
|
441
|
+
},
|
|
442
|
+
},
|
|
429
443
|
TERMINAL: {
|
|
430
444
|
LOCATION: {
|
|
431
445
|
VIEW: "payment.terminal.location.view",
|
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
|
package/src/permissions.ts
CHANGED
|
@@ -435,6 +435,20 @@ export const PERMISSIONS = {
|
|
|
435
435
|
VIEW: "payment.refund.view",
|
|
436
436
|
MANAGE: "payment.refund.manage",
|
|
437
437
|
},
|
|
438
|
+
MANUAL: {
|
|
439
|
+
CHECK: {
|
|
440
|
+
VIEW: "payment.manual.check.view",
|
|
441
|
+
PROCESS: "payment.manual.check.process",
|
|
442
|
+
},
|
|
443
|
+
CASH: {
|
|
444
|
+
VIEW: "payment.manual.cash.view",
|
|
445
|
+
PROCESS: "payment.manual.cash.process",
|
|
446
|
+
},
|
|
447
|
+
DIGITAL: {
|
|
448
|
+
VIEW: "payment.manual.digital.view",
|
|
449
|
+
PROCESS: "payment.manual.digital.process",
|
|
450
|
+
},
|
|
451
|
+
},
|
|
438
452
|
TERMINAL: {
|
|
439
453
|
LOCATION: {
|
|
440
454
|
VIEW: "payment.terminal.location.view",
|