@vendasta/iam 3.3.1 → 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,10 +339,21 @@ 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);
|
|
345
350
|
this.type = PersonaType.sales_person;
|
|
351
|
+
this.canAccessProposals = true;
|
|
352
|
+
this.canAccessInbox = true;
|
|
353
|
+
this.canAccessLeaderboard = true;
|
|
354
|
+
this.canAccessPricing = true;
|
|
355
|
+
this.ordersAccessScope = AccessLevel.ALL;
|
|
356
|
+
this.opportunitiesAccessScope = AccessLevel.ALL;
|
|
346
357
|
this.titleChoice = TitleChoice.PARTNER_FOR_SMB;
|
|
347
358
|
}
|
|
348
359
|
}
|