@telos-dev-team/dealernode-permissions 1.1.65 → 1.1.67

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.
@@ -129,6 +129,16 @@ export declare const BACKOFFICE_PERMISSIONS: {
129
129
  readonly VIEW: "backoffice.dealer_integrations.view";
130
130
  readonly MANAGE: "backoffice.dealer_integrations.manage";
131
131
  };
132
+ /**
133
+ * Support for the POS terminals (nodepay-pos-mobile): look up a dealer by its
134
+ * ULID or short code (`DN-7K4M2Q`) when setting up a terminal for it
135
+ * (dealernode-backend `GET /backoffice/dealers/provision-info/:idOrCode`).
136
+ * Replaces the product-side global `payment.terminal.device.provision`, so
137
+ * only DealerNode staff set terminals up, never a dealer's own account.
138
+ */
139
+ readonly TERMINALS: {
140
+ readonly SUPPORT: "backoffice.terminals.support";
141
+ };
132
142
  /**
133
143
  * Emails the system sent, read-only, across every dealer (dealernode-backend
134
144
  * `src/email`): list them with their delivery status (sent, delivered,
@@ -206,9 +216,9 @@ export declare const BACKOFFICE_PERMISSION_PRESETS: {
206
216
  * Every `*.view` permission except the sensitive ones
207
217
  * (`SENSITIVE_VIEW_PERMISSIONS`: agent transcripts/PII and costs), nothing else.
208
218
  */
209
- 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" | "backoffice.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[];
219
+ 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.terminals.support" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage" | "backoffice.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[];
210
220
  /** Read-only plus the two areas support routinely needs to act on. */
211
- 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.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage", "backoffice.dealer_relationships.manage", "backoffice.dealer_integrations.manage"];
221
+ 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.terminals.support" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage" | "backoffice.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[], "backoffice.dealers.manage", "backoffice.dealer_resources.manage", "backoffice.dealer_relationships.manage", "backoffice.dealer_integrations.manage", "backoffice.terminals.support"];
212
222
  /**
213
223
  * Operating a dealer's AI agents (A48) end to end: read, configure, simulate,
214
224
  * operate the assistant, manage jobs and lifecycle, and see conversations (PII)
@@ -219,6 +229,6 @@ export declare const BACKOFFICE_PERMISSION_PRESETS: {
219
229
  */
220
230
  readonly AI_SUPPORT: readonly ["backoffice.agents.view", "backoffice.agents.conversations.view", "backoffice.agents.costs.view", "backoffice.agents.config.manage", "backoffice.agents.features.manage", "backoffice.agents.simulate", "backoffice.agents.assistant.operate", "backoffice.agents.jobs.manage", "backoffice.agents.lifecycle.manage"];
221
231
  /** Every backoffice permission. */
222
- 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" | "backoffice.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[];
232
+ 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.terminals.support" | "backoffice.emails.view" | "backoffice.dealer_notifications.view" | "backoffice.dealer_notifications.manage" | "backoffice.agents.view" | "backoffice.agents.config.manage" | "backoffice.agents.features.manage" | "backoffice.agents.conversations.view" | "backoffice.agents.simulate" | "backoffice.agents.assistant.operate" | "backoffice.agents.jobs.manage" | "backoffice.agents.lifecycle.manage" | "backoffice.agents.llm.manage" | "backoffice.agents.costs.view")[];
223
233
  };
224
234
  export {};
@@ -132,6 +132,16 @@ exports.BACKOFFICE_PERMISSIONS = {
132
132
  VIEW: "backoffice.dealer_integrations.view",
133
133
  MANAGE: "backoffice.dealer_integrations.manage",
134
134
  },
135
+ /**
136
+ * Support for the POS terminals (nodepay-pos-mobile): look up a dealer by its
137
+ * ULID or short code (`DN-7K4M2Q`) when setting up a terminal for it
138
+ * (dealernode-backend `GET /backoffice/dealers/provision-info/:idOrCode`).
139
+ * Replaces the product-side global `payment.terminal.device.provision`, so
140
+ * only DealerNode staff set terminals up, never a dealer's own account.
141
+ */
142
+ TERMINALS: {
143
+ SUPPORT: "backoffice.terminals.support",
144
+ },
135
145
  /**
136
146
  * Emails the system sent, read-only, across every dealer (dealernode-backend
137
147
  * `src/email`): list them with their delivery status (sent, delivered,
@@ -231,6 +241,7 @@ exports.BACKOFFICE_PERMISSION_PRESETS = {
231
241
  exports.BACKOFFICE_PERMISSIONS.DEALER_RESOURCES.MANAGE,
232
242
  exports.BACKOFFICE_PERMISSIONS.DEALER_RELATIONSHIPS.MANAGE,
233
243
  exports.BACKOFFICE_PERMISSIONS.DEALER_INTEGRATIONS.MANAGE,
244
+ exports.BACKOFFICE_PERMISSIONS.TERMINALS.SUPPORT,
234
245
  ],
235
246
  /**
236
247
  * Operating a dealer's AI agents (A48) end to end: read, configure, simulate,
@@ -296,6 +296,7 @@ export declare const PERMISSIONS: {
296
296
  readonly VIEW: "fail_deal.unwind.operations.view";
297
297
  readonly VIEW_MY_DEALS: "fail_deal.unwind.operations.view_my_deals";
298
298
  readonly MANAGE: "fail_deal.unwind.operations.manage";
299
+ readonly ARRIVE: "fail_deal.unwind.operations.arrive";
299
300
  };
300
301
  readonly FILES: {
301
302
  readonly UPLOAD: "fail_deal.unwind.files.upload";
@@ -320,6 +321,7 @@ export declare const PERMISSIONS: {
320
321
  readonly VIEW: "fail_deal.dead_deal.operations.view";
321
322
  readonly VIEW_MY_DEALS: "fail_deal.dead_deal.operations.view_my_deals";
322
323
  readonly MANAGE: "fail_deal.dead_deal.operations.manage";
324
+ readonly ARRIVE: "fail_deal.dead_deal.operations.arrive";
323
325
  };
324
326
  };
325
327
  readonly BUY_BACK: {
@@ -327,6 +329,7 @@ export declare const PERMISSIONS: {
327
329
  readonly VIEW_MY_DEALS: "fail_deal.buy_back.operations.view_my_deals";
328
330
  readonly VIEW: "fail_deal.buy_back.operations.view";
329
331
  readonly MANAGE: "fail_deal.buy_back.operations.manage";
332
+ readonly ARRIVE: "fail_deal.buy_back.operations.arrive";
330
333
  };
331
334
  readonly RESOURCES: {
332
335
  readonly EXTRA: {
@@ -335,6 +335,7 @@ exports.PERMISSIONS = {
335
335
  VIEW: "fail_deal.unwind.operations.view",
336
336
  VIEW_MY_DEALS: "fail_deal.unwind.operations.view_my_deals",
337
337
  MANAGE: "fail_deal.unwind.operations.manage",
338
+ ARRIVE: "fail_deal.unwind.operations.arrive",
338
339
  },
339
340
  FILES: {
340
341
  UPLOAD: "fail_deal.unwind.files.upload",
@@ -359,6 +360,7 @@ exports.PERMISSIONS = {
359
360
  VIEW: "fail_deal.dead_deal.operations.view",
360
361
  VIEW_MY_DEALS: "fail_deal.dead_deal.operations.view_my_deals",
361
362
  MANAGE: "fail_deal.dead_deal.operations.manage",
363
+ ARRIVE: "fail_deal.dead_deal.operations.arrive",
362
364
  },
363
365
  },
364
366
  BUY_BACK: {
@@ -366,6 +368,7 @@ exports.PERMISSIONS = {
366
368
  VIEW_MY_DEALS: "fail_deal.buy_back.operations.view_my_deals",
367
369
  VIEW: "fail_deal.buy_back.operations.view",
368
370
  MANAGE: "fail_deal.buy_back.operations.manage",
371
+ ARRIVE: "fail_deal.buy_back.operations.arrive",
369
372
  },
370
373
  RESOURCES: {
371
374
  EXTRA: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telos-dev-team/dealernode-permissions",
3
- "version": "1.1.65",
3
+ "version": "1.1.67",
4
4
  "description": "Shared permissions constants for dealernode projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",