Skip to content

Commit

Permalink
New permissions (#22)
Browse files Browse the repository at this point in the history
* New permissions

* Update .ignore files
  • Loading branch information
k-capehart authored Oct 26, 2023
1 parent 16f12b1 commit d947bdc
Show file tree
Hide file tree
Showing 21 changed files with 262 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .forceignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ package.xml
**/.eslintrc.json

# LWC Jest
**/__tests__/**
**/__tests__/**

force-app/main/default/appMenus/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ $RECYCLE.BIN/
**/__pycache__/
**/.venv/
**/venv/

force-app/main/default/appMenus/
11 changes: 1 addition & 10 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
{
"orgName": "kcapehart company",
"edition": "Developer",
"features": ["EnableSetPasswordInApi"],
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
}
}
"sourceOrg": "00DDn000008jOSpMAM"
}
91 changes: 91 additions & 0 deletions force-app/main/default/appMenus/AppSwitcher.appMenu-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<AppMenu xmlns="http://soap.sforce.com/2006/04/metadata">
<appMenuItems>
<name>standard__Platform</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Sales</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Service</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Marketing</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__ServiceConsole</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__AppLauncher</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Community</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Sites</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Chatter</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Content</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__Insights</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__LightningSales</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__AllTabSet</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>CPQIntegrationUserApp</name>
<type>ConnectedApp</type>
</appMenuItems>
<appMenuItems>
<name>standard__LightningBolt</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__SalesforceCMS</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__LightningScheduler</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__QueueManagement</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__RevenueCloudConsole</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__LightningService</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__LightningSalesConsole</name>
<type>CustomApplication</type>
</appMenuItems>
<appMenuItems>
<name>standard__DataManager</name>
<type>CustomApplication</type>
</appMenuItems>
</AppMenu>
2 changes: 1 addition & 1 deletion force-app/main/default/classes/AccountTriggerHelper.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
public with sharing class AccountTriggerHelper {
public static Boolean validatePhoneNumber(Account a) {
return Pattern.matches('[0-9(),./\\-]+', a.Phone);
return Pattern.matches('[0-9(),./\\-]+', a.Phone); // test
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<description>The default utility bar for the Sales Console application.</description>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>console:history</componentName>
<identifier>console_history</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentName>notes:utilityBarNoteList</componentName>
<identifier>notes_utilityBarNoteList</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentName>runtime_sales_todo_list:unifiedToDoListAuraWrapper</componentName>
<identifier>runtime_sales_todo_list_unifiedToDoListAuraWrapper</identifier>
</componentInstance>
</itemInstances>
<name>utilityItems</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Sales Console App Utility Bar</masterLabel>
<template>
<name>one:utilityBarTemplateDesktop</name>
</template>
<type>UtilityBar</type>
</FlexiPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<description>The default utility bar for the Service Console application.</description>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>console:history</componentName>
<identifier>console_history</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentName>notes:utilityBarNoteList</componentName>
<identifier>notes_utilityBarNoteList</identifier>
</componentInstance>
</itemInstances>
<name>utilityItems</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Service Console App Utility Bar</masterLabel>
<template>
<name>one:utilityBarTemplateDesktop</name>
</template>
<type>UtilityBar</type>
</FlexiPage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<description>The default utility bar for the Subscription Management application.</description>
<flexiPageRegions>
<itemInstances>
<componentInstance>
<componentName>console:history</componentName>
<identifier>console_history</identifier>
</componentInstance>
</itemInstances>
<itemInstances>
<componentInstance>
<componentName>notes:utilityBarNoteList</componentName>
<identifier>notes_utilityBarNoteList</identifier>
</componentInstance>
</itemInstances>
<name>utilityItems</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Subscription Management App Utility Bar</masterLabel>
<template>
<name>one:utilityBarTemplateDesktop</name>
</template>
<type>UtilityBar</type>
</FlexiPage>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<description>Checkbox to denote if an account is an active customer or not</description>
<externalId>false</externalId>
<inlineHelpText>Checkbox to denote if an account is an active customer or not</inlineHelpText>
<label>Is Current Customer</label>
<label>Is Current Customer?</label>
<trackFeedHistory>false</trackFeedHistory>
<type>Checkbox</type>
</CustomField>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementBillingAdmin</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementBillingOperations</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementBuyerIntegrationUser</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementCollections</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementCreditMemoAdjustmentsOperations</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementPaymentAdministrator</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementPaymentOperations</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementProductAndPricingAdmin</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementSalesOperationsRep</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementSalesRep</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSetGroup xmlns="http://soap.sforce.com/2006/04/metadata">
<hasActivationRequired>false</hasActivationRequired>
<label>SubscriptionManagementTaxAdmin</label>
<status>Updated</status>
</PermissionSetGroup>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
<description>Give SCRT2 Integration User necessary access</description>
<hasActivationRequired>true</hasActivationRequired>
<label>SCRT2 Integration User</label>
<license>Cloud Integration User</license>
<objectPermissions>
<allowCreate>false</allowCreate>
<allowDelete>false</allowDelete>
<allowEdit>false</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>Case</object>
<viewAllRecords>true</viewAllRecords>
</objectPermissions>
</PermissionSet>

0 comments on commit d947bdc

Please sign in to comment.