@vendasta/iam 3.3.2 → 3.4.0
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.
|
@@ -339,6 +339,11 @@ const TitleChoice = {
|
|
|
339
339
|
REP_MAN_FOR_SMB: 'repManForSmb',
|
|
340
340
|
MARKET_FOR_SMB: 'marketForSmb'
|
|
341
341
|
};
|
|
342
|
+
const AccessLevel = {
|
|
343
|
+
NONE: 'none',
|
|
344
|
+
ALL: 'all',
|
|
345
|
+
OWNED: 'owned'
|
|
346
|
+
};
|
|
342
347
|
class SalespersonPersona extends NamespacedPersona {
|
|
343
348
|
constructor() {
|
|
344
349
|
super(...arguments);
|
|
@@ -346,6 +351,9 @@ class SalespersonPersona extends NamespacedPersona {
|
|
|
346
351
|
this.canAccessProposals = true;
|
|
347
352
|
this.canAccessInbox = true;
|
|
348
353
|
this.canAccessLeaderboard = true;
|
|
354
|
+
this.canAccessPricing = true;
|
|
355
|
+
this.ordersAccessScope = AccessLevel.ALL;
|
|
356
|
+
this.opportunitiesAccessScope = AccessLevel.ALL;
|
|
349
357
|
this.titleChoice = TitleChoice.PARTNER_FOR_SMB;
|
|
350
358
|
}
|
|
351
359
|
}
|