Skip to content

Commit

Permalink
feat: add Salesforce CPQ Config (#627)
Browse files Browse the repository at this point in the history
Co-authored-by: matinraj <[email protected]>
Co-authored-by: Matthias Rolke <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent dfbd187 commit 3d516ff
Show file tree
Hide file tree
Showing 13 changed files with 1,517 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
schedule:
- cron: "0 4 * * 5" # every Friday 04:00

env:
CPQ: ${{ vars.CPQ }}

jobs:
default:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion config/project-scratch-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"orgName": "Browserforce",
"edition": "Developer",
"language": "en_US",
"features": ["DeferSharingCalc", "HighVelocitySales"]
"features": [
"CPQ",
"DeferSharingCalc",
"HighVelocitySales"
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"generate:plugin": "npx hygen plugin new",
"prepack": "yarn build",
"prepare": "yarn build",
"test": "tsc -p test && nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
"test:e2e": "tsc -p test && mocha --require ts-node/register --slow 30s --timeout 2m --file test/e2e-setup.ts \"test/**/*.e2e-spec.ts\" \"src/**/*.e2e-spec.ts\""
"test": "tsc --resolveJsonModule -p test && nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
"test:e2e": "tsc --resolveJsonModule -p test && mocha --require ts-node/register --slow 30s --timeout 2m --file test/e2e-setup.ts \"test/**/*.e2e-spec.ts\" \"src/**/*.e2e-spec.ts\""
}
}
4 changes: 4 additions & 0 deletions scripts/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ _main() {
${POSITIONAL_ARGS[@]}
sf org display -o "$alias"
sf project deploy start -o "$alias"
if [[ "${CPQ}" == "true" ]]; then
# Salesforce CPQ (SBQQ) 252.3.0.1
sf package install --package "04t6T000000t6QXQAY" --no-prompt --wait 30
fi
}

if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ import { Security as security } from './security';
import { Slack as slack } from './slack';
import { CompanyInformation as companyInformation } from './company-information';
import { LinkedInSalesNavigatorSettings as linkedInSalesNavigatorSettings } from './linkedin-sales-navigator-settings';
import { SalesforceCpqConfig as salesforceCpqConfig } from './salesforce-cpq-config';

export {
salesforceCpqConfig,
activitySettings,
communities,
customerPortal,
Expand Down
109 changes: 109 additions & 0 deletions src/plugins/salesforce-cpq-config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"$schema": "../schema.json",
"settings": {
"salesforceCpqConfig": {
"documents": {
"documentFolder": "User Personal Documents",
"hideDocumentName": false,
"fullPagePreview": false,
"excludeHiddenLinesInGroupTotals": false,
"attachmentTarget": "Document Only",
"postToFeed": false,
"enableMultiLanguageTranslations": false
},
"groups": {
"requireGroupName": true
},
"lineEditor": {
"hideRenewedAssetsWhenEditing": false,
"visualizeProductHierarchy": false,
"preserveBundleStructure": true,
"keepBundleTogether": true,
"totalsField": "Default",
"lineSubtotalsTotalField": "Default",
"defaultBundleSetting": "Expanded",
"actionsColumnPlacement": "Right",
"enableMultiLineDelete": false,
"productConfigurationInitializer": "",
"enableAssetUpgrades": false,
"groupSubtotalsField": "Default",
"wrapButtons": false,
"validateLargeQuotes": false,
"enableCompactMode": true,
"enableLargeQuoteExperience": false,
"enableColumnResizing": false
},
"plugins": {
"legacyPageSecurityPlugin": "",
"electronicSignaturePlugin": "",
"billingPlugin": "",
"productSearchPlugin": "",
"recommendedProductsPlugin": "",
"legacyQuoteCalculatorPlugin": "",
"documentStorePlugin": "",
"quoteCalculatorPlugin": "",
"orderManagementPlugin": "",
"qleCustomActionPlugin": ""
},
"pricingAndCalculation": {
"currencySymbol": "",
"enableQuickCalculate": false,
"allowNonConsecutiveCustomSegments": false,
"enablePricingGuidance": false,
"quoteLineEditsForUsageBasedPricing": false,
"useInactivePrices": false,
"calculateImmediately": false,
"disableBackgroundCalculationRefresh": false,
"enableUsageBasedPricing": false,
"hideUncalculatedQuoteWarning": false,
"useIntegrationUserForCalculations": true
},
"subscriptionsAndRenewals": {
"renewalModel": "Contract Based",
"disableAddSubscriptions": false,
"allowRenewalQuotesWithoutAssets": false,
"subscriptionTermUnit": "Month",
"subscriptionProratePrecision": "Monthly + Daily",
"includeNetNewProductsInMaintenance": false,
"contractInForeground": false,
"enableEvergreenSubscriptions": false,
"poTRenewalsContractingFromOrders": true,
"amendContractsInBackground": false,
"disableProductBundleSubTypeChecks": false,
"bypassPreserveBundleStructure": false,
"useCurrentSubscriptionOnAssets": false
},
"quote": {
"disableInitialQuoteSync": false,
"disableQuoteContactDefaulting": false,
"allowOptionDeletion": false,
"disableQuoteAddressDefaulting": false,
"primaryQuoteKeepsOpportunityProducts": false
},
"order": {
"requireApprovedQuote": false,
"defaultOrderStartDate": "-- None --",
"allowMultipleOrders": false,
"createOrdersWithoutOpportunities": false
},
"additionalSettings": {
"triggersDisabled": false,
"sortProductsInMemory": false,
"multipleBundlesView": "Wizard",
"externalConfiguratorUrl": "",
"thirdPartyConfigurator": false,
"openSearchFilterByDefault": false,
"hideFeaturesWithHiddenOptions": false,
"hideProductSearchBar": false,
"productResultsGroupFieldName": "-- None --",
"productDescriptionField": "Product Description",
"theme": "-- None --",
"useGlobalHeaderPermission": false,
"serviceRegion": "Default",
"enableProductOptionDrawer": false,
"enableLargeConfigurations": false,
"nestedBundlesForExternalConfigurator": false
}
}
}
}
Loading

0 comments on commit 3d516ff

Please sign in to comment.