@telos-dev-team/dealernode-permissions 1.1.58 → 1.1.60

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.
@@ -118,6 +118,17 @@ export declare const BACKOFFICE_PERMISSIONS: {
118
118
  */
119
119
  readonly CREDENTIALS: "backoffice.billing.credentials";
120
120
  };
121
+ /**
122
+ * Payment integrations of any dealer from the backoffice (dealernode-backend
123
+ * `src/payment`): list its Stripe, Clover, iPOS and BMS accounts, connect and
124
+ * disconnect them, manage terminals and readers, and assign capabilities to
125
+ * each account. Not PAYMENTS (what a dealer charges its own buyers) and not
126
+ * BILLING (what the platform charges the dealer).
127
+ */
128
+ readonly DEALER_INTEGRATIONS: {
129
+ readonly VIEW: "backoffice.dealer_integrations.view";
130
+ readonly MANAGE: "backoffice.dealer_integrations.manage";
131
+ };
121
132
  /**
122
133
  * Emails the system sent, read-only, across every dealer (dealernode-backend
123
134
  * `src/email`): list them with their delivery status (sent, delivered,
@@ -158,10 +169,10 @@ export type BackofficePermissionId = Leaves<BackofficePermission>;
158
169
  */
159
170
  export declare const BACKOFFICE_PERMISSION_PRESETS: {
160
171
  /** Every `*.view` permission, nothing else. */
161
- 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" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[];
172
+ 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" | "backoffice.dealer_integrations.view" | "backoffice.dealer_integrations.manage" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[];
162
173
  /** Read-only plus the two areas support routinely needs to act on. */
163
- 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.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage", "backoffice.dealer_relationships.manage"];
174
+ 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.dealer_integrations.view" | "backoffice.dealer_integrations.manage" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage", "backoffice.dealer_relationships.manage", "backoffice.dealer_integrations.manage"];
164
175
  /** Every backoffice permission. */
165
- 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" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[];
176
+ 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" | "backoffice.dealer_integrations.view" | "backoffice.dealer_integrations.manage" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage")[];
166
177
  };
167
178
  export {};
@@ -121,6 +121,17 @@ exports.BACKOFFICE_PERMISSIONS = {
121
121
  */
122
122
  CREDENTIALS: "backoffice.billing.credentials",
123
123
  },
124
+ /**
125
+ * Payment integrations of any dealer from the backoffice (dealernode-backend
126
+ * `src/payment`): list its Stripe, Clover, iPOS and BMS accounts, connect and
127
+ * disconnect them, manage terminals and readers, and assign capabilities to
128
+ * each account. Not PAYMENTS (what a dealer charges its own buyers) and not
129
+ * BILLING (what the platform charges the dealer).
130
+ */
131
+ DEALER_INTEGRATIONS: {
132
+ VIEW: "backoffice.dealer_integrations.view",
133
+ MANAGE: "backoffice.dealer_integrations.manage",
134
+ },
124
135
  /**
125
136
  * Emails the system sent, read-only, across every dealer (dealernode-backend
126
137
  * `src/email`): list them with their delivery status (sent, delivered,
@@ -173,6 +184,7 @@ exports.BACKOFFICE_PERMISSION_PRESETS = {
173
184
  exports.BACKOFFICE_PERMISSIONS.DEALERS.MANAGE,
174
185
  exports.BACKOFFICE_PERMISSIONS.DEALER_RESOURCES.MANAGE,
175
186
  exports.BACKOFFICE_PERMISSIONS.DEALER_RELATIONSHIPS.MANAGE,
187
+ exports.BACKOFFICE_PERMISSIONS.DEALER_INTEGRATIONS.MANAGE,
176
188
  ],
177
189
  /** Every backoffice permission. */
178
190
  ADMIN: ALL_BACKOFFICE_PERMISSIONS,
@@ -398,10 +398,6 @@ 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
- };
405
401
  readonly TERMINAL: {
406
402
  readonly LOCATION: {
407
403
  readonly VIEW: "payment.terminal.location.view";
@@ -440,10 +440,6 @@ 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
- },
447
443
  TERMINAL: {
448
444
  LOCATION: {
449
445
  VIEW: "payment.terminal.location.view",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",