sfdx-browserforce-plugin 4.2.0 → 4.3.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.
- package/lib/plugins/index.js +3 -1
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/salesforce-cpq-config/default.json +109 -0
- package/lib/plugins/salesforce-cpq-config/formConfig.json +648 -0
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js +41 -0
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js.map +1 -0
- package/lib/plugins/salesforce-cpq-config/index.js +194 -0
- package/lib/plugins/salesforce-cpq-config/index.js.map +1 -0
- package/lib/plugins/salesforce-cpq-config/types.js +3 -0
- package/lib/plugins/salesforce-cpq-config/types.js.map +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/lib/plugins/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.linkedInSalesNavigatorSettings = exports.companyInformation = exports.slack = exports.security = exports.salesforceToSalesforce = exports.reportsAndDashboards = exports.relateContactToMultipleAccounts = exports.recordTypes = exports.picklists = exports.opportunitySplits = exports.lightningExperienceSettings = exports.homePageLayouts = exports.highVelocitySalesSettings = exports.emailDeliverability = exports.densitySettings = exports.deferSharingCalculation = exports.customerPortal = exports.communities = exports.activitySettings = void 0;
|
|
3
|
+
exports.linkedInSalesNavigatorSettings = exports.companyInformation = exports.slack = exports.security = exports.salesforceToSalesforce = exports.reportsAndDashboards = exports.relateContactToMultipleAccounts = exports.recordTypes = exports.picklists = exports.opportunitySplits = exports.lightningExperienceSettings = exports.homePageLayouts = exports.highVelocitySalesSettings = exports.emailDeliverability = exports.densitySettings = exports.deferSharingCalculation = exports.customerPortal = exports.communities = exports.activitySettings = exports.salesforceCpqConfig = void 0;
|
|
4
4
|
const activity_settings_1 = require("./activity-settings");
|
|
5
5
|
Object.defineProperty(exports, "activitySettings", { enumerable: true, get: function () { return activity_settings_1.ActivitySettings; } });
|
|
6
6
|
const communities_1 = require("./communities");
|
|
@@ -39,4 +39,6 @@ const company_information_1 = require("./company-information");
|
|
|
39
39
|
Object.defineProperty(exports, "companyInformation", { enumerable: true, get: function () { return company_information_1.CompanyInformation; } });
|
|
40
40
|
const linkedin_sales_navigator_settings_1 = require("./linkedin-sales-navigator-settings");
|
|
41
41
|
Object.defineProperty(exports, "linkedInSalesNavigatorSettings", { enumerable: true, get: function () { return linkedin_sales_navigator_settings_1.LinkedInSalesNavigatorSettings; } });
|
|
42
|
+
const salesforce_cpq_config_1 = require("./salesforce-cpq-config");
|
|
43
|
+
Object.defineProperty(exports, "salesforceCpqConfig", { enumerable: true, get: function () { return salesforce_cpq_config_1.SalesforceCpqConfig; } });
|
|
42
44
|
//# sourceMappingURL=index.js.map
|
package/lib/plugins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;AAAA,2DAA2E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;AAAA,2DAA2E;AAuBzE,iGAvB2B,oCAAgB,OAuB3B;AAtBlB,+CAA2D;AAuBzD,4FAvBsB,yBAAW,OAuBtB;AAtBb,uDAAqE;AAuBnE,+FAvByB,gCAAc,OAuBzB;AAtBhB,2EAAiG;AAuB/F,wGAvBkC,mDAAuB,OAuBlC;AAtBzB,yDAAwE;AAuBtE,gGAvB0B,kCAAe,OAuB1B;AAtBjB,iEAAoF;AAuBlF,oGAvB8B,0CAAmB,OAuB9B;AAtBrB,iFAAwG;AAuBtG,0GAvBoC,wDAAyB,OAuBpC;AAtB3B,2DAAyE;AAuBvE,gGAvB0B,mCAAe,OAuB1B;AAtBjB,mFAA6G;AAuB3G,4GAvBsC,2DAA2B,OAuBtC;AAtB7B,6DAA8E;AAuB5E,kGAvB4B,sCAAiB,OAuB5B;AAtBnB,2CAAqD;AAuBnD,0FAvBoB,qBAAS,OAuBpB;AAtBX,iDAA4D;AAuB1D,4FAvBsB,0BAAW,OAuBtB;AAtBb,+FAA2H;AAuBzH,gHAvB0C,qEAA+B,OAuB1C;AAtBjC,qEAAwF;AAuBtF,qGAvB+B,6CAAoB,OAuB/B;AAtBtB,yEAA8F;AAuB5F,uGAvBiC,iDAAsB,OAuBjC;AAtBxB,yCAAkD;AAuBhD,yFAvBmB,mBAAQ,OAuBnB;AAtBV,mCAAyC;AAuBvC,sFAvBgB,aAAK,OAuBhB;AAtBP,+DAAiF;AAuB/E,mGAvB6B,wCAAkB,OAuB7B;AAtBpB,2FAAuH;AAuBrH,+GAvByC,kEAA8B,OAuBzC;AAtBhC,mEAAqF;AAGnF,oGAH8B,2CAAmB,OAG9B"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema.json",
|
|
3
|
+
"settings": {
|
|
4
|
+
"salesforceCpqConfig": {
|
|
5
|
+
"documents": {
|
|
6
|
+
"documentFolder": "User Personal Documents",
|
|
7
|
+
"hideDocumentName": false,
|
|
8
|
+
"fullPagePreview": false,
|
|
9
|
+
"excludeHiddenLinesInGroupTotals": false,
|
|
10
|
+
"attachmentTarget": "Document Only",
|
|
11
|
+
"postToFeed": false,
|
|
12
|
+
"enableMultiLanguageTranslations": false
|
|
13
|
+
},
|
|
14
|
+
"groups": {
|
|
15
|
+
"requireGroupName": true
|
|
16
|
+
},
|
|
17
|
+
"lineEditor": {
|
|
18
|
+
"hideRenewedAssetsWhenEditing": false,
|
|
19
|
+
"visualizeProductHierarchy": false,
|
|
20
|
+
"preserveBundleStructure": true,
|
|
21
|
+
"keepBundleTogether": true,
|
|
22
|
+
"totalsField": "Default",
|
|
23
|
+
"lineSubtotalsTotalField": "Default",
|
|
24
|
+
"defaultBundleSetting": "Expanded",
|
|
25
|
+
"actionsColumnPlacement": "Right",
|
|
26
|
+
"enableMultiLineDelete": false,
|
|
27
|
+
"productConfigurationInitializer": "",
|
|
28
|
+
"enableAssetUpgrades": false,
|
|
29
|
+
"groupSubtotalsField": "Default",
|
|
30
|
+
"wrapButtons": false,
|
|
31
|
+
"validateLargeQuotes": false,
|
|
32
|
+
"enableCompactMode": true,
|
|
33
|
+
"enableLargeQuoteExperience": false,
|
|
34
|
+
"enableColumnResizing": false
|
|
35
|
+
},
|
|
36
|
+
"plugins": {
|
|
37
|
+
"legacyPageSecurityPlugin": "",
|
|
38
|
+
"electronicSignaturePlugin": "",
|
|
39
|
+
"billingPlugin": "",
|
|
40
|
+
"productSearchPlugin": "",
|
|
41
|
+
"recommendedProductsPlugin": "",
|
|
42
|
+
"legacyQuoteCalculatorPlugin": "",
|
|
43
|
+
"documentStorePlugin": "",
|
|
44
|
+
"quoteCalculatorPlugin": "",
|
|
45
|
+
"orderManagementPlugin": "",
|
|
46
|
+
"qleCustomActionPlugin": ""
|
|
47
|
+
},
|
|
48
|
+
"pricingAndCalculation": {
|
|
49
|
+
"currencySymbol": "",
|
|
50
|
+
"enableQuickCalculate": false,
|
|
51
|
+
"allowNonConsecutiveCustomSegments": false,
|
|
52
|
+
"enablePricingGuidance": false,
|
|
53
|
+
"quoteLineEditsForUsageBasedPricing": false,
|
|
54
|
+
"useInactivePrices": false,
|
|
55
|
+
"calculateImmediately": false,
|
|
56
|
+
"disableBackgroundCalculationRefresh": false,
|
|
57
|
+
"enableUsageBasedPricing": false,
|
|
58
|
+
"hideUncalculatedQuoteWarning": false,
|
|
59
|
+
"useIntegrationUserForCalculations": true
|
|
60
|
+
},
|
|
61
|
+
"subscriptionsAndRenewals": {
|
|
62
|
+
"renewalModel": "Contract Based",
|
|
63
|
+
"disableAddSubscriptions": false,
|
|
64
|
+
"allowRenewalQuotesWithoutAssets": false,
|
|
65
|
+
"subscriptionTermUnit": "Month",
|
|
66
|
+
"subscriptionProratePrecision": "Monthly + Daily",
|
|
67
|
+
"includeNetNewProductsInMaintenance": false,
|
|
68
|
+
"contractInForeground": false,
|
|
69
|
+
"enableEvergreenSubscriptions": false,
|
|
70
|
+
"poTRenewalsContractingFromOrders": true,
|
|
71
|
+
"amendContractsInBackground": false,
|
|
72
|
+
"disableProductBundleSubTypeChecks": false,
|
|
73
|
+
"bypassPreserveBundleStructure": false,
|
|
74
|
+
"useCurrentSubscriptionOnAssets": false
|
|
75
|
+
},
|
|
76
|
+
"quote": {
|
|
77
|
+
"disableInitialQuoteSync": false,
|
|
78
|
+
"disableQuoteContactDefaulting": false,
|
|
79
|
+
"allowOptionDeletion": false,
|
|
80
|
+
"disableQuoteAddressDefaulting": false,
|
|
81
|
+
"primaryQuoteKeepsOpportunityProducts": false
|
|
82
|
+
},
|
|
83
|
+
"order": {
|
|
84
|
+
"requireApprovedQuote": false,
|
|
85
|
+
"defaultOrderStartDate": "-- None --",
|
|
86
|
+
"allowMultipleOrders": false,
|
|
87
|
+
"createOrdersWithoutOpportunities": false
|
|
88
|
+
},
|
|
89
|
+
"additionalSettings": {
|
|
90
|
+
"triggersDisabled": false,
|
|
91
|
+
"sortProductsInMemory": false,
|
|
92
|
+
"multipleBundlesView": "Wizard",
|
|
93
|
+
"externalConfiguratorUrl": "",
|
|
94
|
+
"thirdPartyConfigurator": false,
|
|
95
|
+
"openSearchFilterByDefault": false,
|
|
96
|
+
"hideFeaturesWithHiddenOptions": false,
|
|
97
|
+
"hideProductSearchBar": false,
|
|
98
|
+
"productResultsGroupFieldName": "-- None --",
|
|
99
|
+
"productDescriptionField": "Product Description",
|
|
100
|
+
"theme": "-- None --",
|
|
101
|
+
"useGlobalHeaderPermission": false,
|
|
102
|
+
"serviceRegion": "Default",
|
|
103
|
+
"enableProductOptionDrawer": false,
|
|
104
|
+
"enableLargeConfigurations": false,
|
|
105
|
+
"nestedBundlesForExternalConfigurator": false
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
{
|
|
2
|
+
"documents": {
|
|
3
|
+
"label": "Documents",
|
|
4
|
+
"component": "tab",
|
|
5
|
+
"id": "page:form:pb:j_id71_lbl",
|
|
6
|
+
"properties": {
|
|
7
|
+
"documentFolder": {
|
|
8
|
+
"label": "Document Folder",
|
|
9
|
+
"component": "select",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"name": "page:form:pb:j_id72:j_id73:j_id75"
|
|
12
|
+
},
|
|
13
|
+
"hideDocumentName": {
|
|
14
|
+
"label": "Hide Document Name",
|
|
15
|
+
"component": "input",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"name": "page:form:pb:j_id72:j_id84"
|
|
18
|
+
},
|
|
19
|
+
"fullPagePreview": {
|
|
20
|
+
"label": "Full Page Preview",
|
|
21
|
+
"component": "input",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"name": "page:form:pb:j_id72:j_id88"
|
|
24
|
+
},
|
|
25
|
+
"excludeHiddenLinesInGroupTotals": {
|
|
26
|
+
"label": "Exclude Hidden Lines In Group Totals",
|
|
27
|
+
"component": "input",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"name": "page:form:pb:j_id72:j_id90"
|
|
30
|
+
},
|
|
31
|
+
"attachmentTarget": {
|
|
32
|
+
"label": "Attachment Target",
|
|
33
|
+
"component": "select",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"name": "page:form:pb:j_id72:j_id78:j_id80"
|
|
36
|
+
},
|
|
37
|
+
"postToFeed": {
|
|
38
|
+
"label": "Post to Feed?",
|
|
39
|
+
"component": "input",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"name": "page:form:pb:j_id72:j_id85:j_id87"
|
|
42
|
+
},
|
|
43
|
+
"enableMultiLanguageTranslations": {
|
|
44
|
+
"label": "Enable Multi-Language Translations",
|
|
45
|
+
"component": "input",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"name": "page:form:pb:j_id72:j_id89"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"groups": {
|
|
52
|
+
"label": "Groups",
|
|
53
|
+
"component": "tab",
|
|
54
|
+
"id": "page:form:pb:j_id105_lbl",
|
|
55
|
+
"properties": {
|
|
56
|
+
"solutionGroupsEnabled": {
|
|
57
|
+
"label": "Solution Groups Enabled",
|
|
58
|
+
"component": "input",
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"name": "page:form:pb:groupSettings:j_id106"
|
|
61
|
+
},
|
|
62
|
+
"object": {
|
|
63
|
+
"label": "Object",
|
|
64
|
+
"component": "input",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"name": "page:form:pb:groupSettings:j_id109:j_id111"
|
|
67
|
+
},
|
|
68
|
+
"nameField": {
|
|
69
|
+
"label": "Name Field",
|
|
70
|
+
"component": "select",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"name": "page:form:pb:groupSettings:j_id114:j_id116"
|
|
73
|
+
},
|
|
74
|
+
"descriptionField": {
|
|
75
|
+
"label": "Description Field",
|
|
76
|
+
"component": "select",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"name": "page:form:pb:groupSettings:j_id120:j_id122"
|
|
79
|
+
},
|
|
80
|
+
"requireGroupName": {
|
|
81
|
+
"label": "Require Group Name",
|
|
82
|
+
"component": "input",
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"name": "page:form:pb:groupSettings:j_id108"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"lineEditor": {
|
|
89
|
+
"label": "Line Editor",
|
|
90
|
+
"component": "tab",
|
|
91
|
+
"id": "page:form:pb:j_id125_lbl",
|
|
92
|
+
"properties": {
|
|
93
|
+
"hideRenewedAssetsWhenEditing": {
|
|
94
|
+
"label": "Hide Renewed Assets When Editing",
|
|
95
|
+
"component": "input",
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"name": "page:form:pb:j_id126:j_id127:j_id129"
|
|
98
|
+
},
|
|
99
|
+
"visualizeProductHierarchy": {
|
|
100
|
+
"label": "Visualize Product Hierarchy",
|
|
101
|
+
"component": "input",
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"name": "page:form:pb:j_id126:j_id135"
|
|
104
|
+
},
|
|
105
|
+
"preserveBundleStructure": {
|
|
106
|
+
"label": "Preserve Bundle Structure",
|
|
107
|
+
"component": "input",
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"name": "page:form:pb:j_id126:j_id137"
|
|
110
|
+
},
|
|
111
|
+
"keepBundleTogether": {
|
|
112
|
+
"label": "Keep Bundle Together",
|
|
113
|
+
"component": "input",
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"name": "page:form:pb:j_id126:j_id139"
|
|
116
|
+
},
|
|
117
|
+
"totalsField": {
|
|
118
|
+
"label": "Totals Field",
|
|
119
|
+
"component": "select",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"name": "page:form:pb:j_id126:j_id141:j_id143"
|
|
122
|
+
},
|
|
123
|
+
"lineSubtotalsTotalField": {
|
|
124
|
+
"label": "Line Subtotals Total Field",
|
|
125
|
+
"component": "select",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"name": "page:form:pb:j_id126:j_id153:j_id155"
|
|
128
|
+
},
|
|
129
|
+
"largeQuoteThreshold": {
|
|
130
|
+
"label": "Large Quote Threshold",
|
|
131
|
+
"component": "input",
|
|
132
|
+
"type": "number",
|
|
133
|
+
"name": "page:form:pb:j_id126:j_id160"
|
|
134
|
+
},
|
|
135
|
+
"quoteBatchSize": {
|
|
136
|
+
"label": "Quote Batch Size",
|
|
137
|
+
"component": "input",
|
|
138
|
+
"type": "number",
|
|
139
|
+
"name": "page:form:pb:j_id126:j_id162"
|
|
140
|
+
},
|
|
141
|
+
"enableExpandCollapseBundles": {
|
|
142
|
+
"label": "Enable Expand/Collapse Bundles",
|
|
143
|
+
"component": "input",
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"name": "page:form:pb:j_id126:j_id164"
|
|
146
|
+
},
|
|
147
|
+
"defaultBundleSetting": {
|
|
148
|
+
"label": "Default Bundle Setting",
|
|
149
|
+
"component": "select",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"name": "page:form:pb:j_id126:j_id166:j_id168"
|
|
152
|
+
},
|
|
153
|
+
"actionsColumnPlacement": {
|
|
154
|
+
"label": "Actions Column Placement",
|
|
155
|
+
"component": "select",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"name": "page:form:pb:j_id126:j_id130:j_id132"
|
|
158
|
+
},
|
|
159
|
+
"enableMultiLineDelete": {
|
|
160
|
+
"label": "Enable Multi Line Delete",
|
|
161
|
+
"component": "input",
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"name": "page:form:pb:j_id126:j_id136"
|
|
164
|
+
},
|
|
165
|
+
"productConfigurationInitializer": {
|
|
166
|
+
"label": "Product Configuration Initializer",
|
|
167
|
+
"component": "input",
|
|
168
|
+
"type": "string",
|
|
169
|
+
"name": "page:form:pb:j_id126:j_id138"
|
|
170
|
+
},
|
|
171
|
+
"enableAssetUpgrades": {
|
|
172
|
+
"label": "Enable Asset Upgrades",
|
|
173
|
+
"component": "input",
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"name": "page:form:pb:j_id126:j_id140"
|
|
176
|
+
},
|
|
177
|
+
"groupSubtotalsField": {
|
|
178
|
+
"label": "Group Subtotals Field",
|
|
179
|
+
"component": "select",
|
|
180
|
+
"type": "string",
|
|
181
|
+
"name": "page:form:pb:j_id126:j_id147:j_id149"
|
|
182
|
+
},
|
|
183
|
+
"wrapButtons": {
|
|
184
|
+
"label": "Wrap Buttons",
|
|
185
|
+
"component": "input",
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"name": "page:form:pb:j_id126:j_id159"
|
|
188
|
+
},
|
|
189
|
+
"validateLargeQuotes": {
|
|
190
|
+
"label": "Validate Large Quotes",
|
|
191
|
+
"component": "input",
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"name": "page:form:pb:j_id126:j_id161"
|
|
194
|
+
},
|
|
195
|
+
"enableCompactMode": {
|
|
196
|
+
"label": "Enable Compact Mode",
|
|
197
|
+
"component": "input",
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"name": "page:form:pb:j_id126:j_id163"
|
|
200
|
+
},
|
|
201
|
+
"enableLargeQuoteExperience": {
|
|
202
|
+
"label": "Enable Large Quote Experience",
|
|
203
|
+
"component": "input",
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"name": "page:form:pb:j_id126:j_id165"
|
|
206
|
+
},
|
|
207
|
+
"enableColumnResizing": {
|
|
208
|
+
"label": "Enable Column Resizing",
|
|
209
|
+
"component": "input",
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"name": "page:form:pb:j_id126:j_id171"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"plugins": {
|
|
216
|
+
"label": "Plugins",
|
|
217
|
+
"component": "tab",
|
|
218
|
+
"id": "page:form:pb:j_id172_lbl",
|
|
219
|
+
"properties": {
|
|
220
|
+
"legacyPageSecurityPlugin": {
|
|
221
|
+
"label": "Legacy Page Security Plugin",
|
|
222
|
+
"component": "input",
|
|
223
|
+
"type": "string",
|
|
224
|
+
"name": "page:form:pb:j_id173:j_id174"
|
|
225
|
+
},
|
|
226
|
+
"electronicSignaturePlugin": {
|
|
227
|
+
"label": "Electronic Signature Plugin",
|
|
228
|
+
"component": "input",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"name": "page:form:pb:j_id173:j_id175"
|
|
231
|
+
},
|
|
232
|
+
"billingPlugin": {
|
|
233
|
+
"label": "Billing Plugin",
|
|
234
|
+
"component": "input",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"name": "page:form:pb:j_id173:j_id176"
|
|
237
|
+
},
|
|
238
|
+
"productSearchPlugin": {
|
|
239
|
+
"label": "Product Search Plugin",
|
|
240
|
+
"component": "input",
|
|
241
|
+
"type": "string",
|
|
242
|
+
"name": "page:form:pb:j_id173:j_id177"
|
|
243
|
+
},
|
|
244
|
+
"recommendedProductsPlugin": {
|
|
245
|
+
"label": "Recommended Products Plugin",
|
|
246
|
+
"component": "input",
|
|
247
|
+
"type": "string",
|
|
248
|
+
"name": "page:form:pb:j_id173:j_id178"
|
|
249
|
+
},
|
|
250
|
+
"legacyQuoteCalculatorPlugin": {
|
|
251
|
+
"label": "Legacy Quote Calculator Plugin",
|
|
252
|
+
"component": "input",
|
|
253
|
+
"type": "string",
|
|
254
|
+
"name": "page:form:pb:j_id173:j_id178"
|
|
255
|
+
},
|
|
256
|
+
"documentStorePlugin": {
|
|
257
|
+
"label": "Document Store Plugin",
|
|
258
|
+
"component": "input",
|
|
259
|
+
"type": "string",
|
|
260
|
+
"name": "page:form:pb:j_id173:j_id180"
|
|
261
|
+
},
|
|
262
|
+
"quoteCalculatorPlugin": {
|
|
263
|
+
"label": "Quote Calculator Plugin",
|
|
264
|
+
"component": "input",
|
|
265
|
+
"type": "string",
|
|
266
|
+
"name": "page:form:pb:j_id173:j_id181"
|
|
267
|
+
},
|
|
268
|
+
"orderManagementPlugin": {
|
|
269
|
+
"label": "Order Management Plugin",
|
|
270
|
+
"component": "input",
|
|
271
|
+
"type": "string",
|
|
272
|
+
"name": "page:form:pb:j_id173:j_id182"
|
|
273
|
+
},
|
|
274
|
+
"qleCustomActionPlugin": {
|
|
275
|
+
"label": "QLE Custom Action Plugin",
|
|
276
|
+
"component": "input",
|
|
277
|
+
"type": "string",
|
|
278
|
+
"name": "page:form:pb:j_id173:j_id183"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"pricingAndCalculation": {
|
|
283
|
+
"label": "Pricing and Calculation",
|
|
284
|
+
"component": "tab",
|
|
285
|
+
"id": "page:form:pb:j_id184_lbl",
|
|
286
|
+
"properties": {
|
|
287
|
+
"currencySymbol": {
|
|
288
|
+
"label": "Currency Symbol",
|
|
289
|
+
"component": "input",
|
|
290
|
+
"type": "string",
|
|
291
|
+
"name": "page:form:pb:j_id185:j_id186"
|
|
292
|
+
},
|
|
293
|
+
"unitPriceScale": {
|
|
294
|
+
"label": "Unit Price Scale",
|
|
295
|
+
"component": "input",
|
|
296
|
+
"type": "number",
|
|
297
|
+
"name": "page:form:pb:j_id185:j_id188"
|
|
298
|
+
},
|
|
299
|
+
"enableQuickCalculate": {
|
|
300
|
+
"label": "Enable Quick Calculate",
|
|
301
|
+
"component": "input",
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"name": "page:form:pb:j_id185:j_id190"
|
|
304
|
+
},
|
|
305
|
+
"allowNonConsecutiveCustomSegments": {
|
|
306
|
+
"label": "Allow Non-Consecutive Custom Segments",
|
|
307
|
+
"component": "input",
|
|
308
|
+
"type": "boolean",
|
|
309
|
+
"name": "page:form:pb:j_id185:j_id192"
|
|
310
|
+
},
|
|
311
|
+
"enablePricingGuidance": {
|
|
312
|
+
"label": "Enable Pricing Guidance",
|
|
313
|
+
"component": "input",
|
|
314
|
+
"type": "boolean",
|
|
315
|
+
"name": "page:form:pb:j_id185:j_id194"
|
|
316
|
+
},
|
|
317
|
+
"useLegacyCalculator": {
|
|
318
|
+
"label": "Use Legacy Calculator",
|
|
319
|
+
"component": "input",
|
|
320
|
+
"type": "boolean",
|
|
321
|
+
"name": "page:form:pb:calculatorOptions:j_id198"
|
|
322
|
+
},
|
|
323
|
+
"useInactivePrices": {
|
|
324
|
+
"label": "Use Inactive Prices",
|
|
325
|
+
"component": "input",
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"name": "page:form:pb:j_id185:j_id187"
|
|
328
|
+
},
|
|
329
|
+
"calculateImmediately": {
|
|
330
|
+
"label": "Calculate Immediately",
|
|
331
|
+
"component": "input",
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"name": "page:form:pb:j_id185:j_id189"
|
|
334
|
+
},
|
|
335
|
+
"disableBackgroundCalculationRefresh": {
|
|
336
|
+
"label": "Disable Background Calculation Refresh",
|
|
337
|
+
"component": "input",
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"name": "page:form:pb:j_id185:j_id191"
|
|
340
|
+
},
|
|
341
|
+
"enableUsageBasedPricing": {
|
|
342
|
+
"label": "Enable Usage Based Pricing",
|
|
343
|
+
"component": "input",
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"name": "page:form:pb:j_id185:j_id193",
|
|
346
|
+
"immediatelySave": true
|
|
347
|
+
},
|
|
348
|
+
"quoteLineEditsForUsageBasedPricing": {
|
|
349
|
+
"label": "Quote Line Edits for Usage Based Pricing",
|
|
350
|
+
"component": "input",
|
|
351
|
+
"type": "boolean",
|
|
352
|
+
"name": "page:form:pb:j_id185:j_id196"
|
|
353
|
+
},
|
|
354
|
+
"hideUncalculatedQuoteWarning": {
|
|
355
|
+
"label": "Hide Uncalculated Quote Warning",
|
|
356
|
+
"component": "input",
|
|
357
|
+
"type": "boolean",
|
|
358
|
+
"name": "page:form:pb:j_id185:j_id195"
|
|
359
|
+
},
|
|
360
|
+
"useIntegrationUserForCalculations": {
|
|
361
|
+
"label": "Use Integration User for Calculations",
|
|
362
|
+
"component": "input",
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"name": "page:form:pb:j_id185:j_id197"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"subscriptionsAndRenewals": {
|
|
369
|
+
"label": "Subscriptions and Renewals",
|
|
370
|
+
"component": "tab",
|
|
371
|
+
"id": "page:form:pb:j_id206_lbl",
|
|
372
|
+
"properties": {
|
|
373
|
+
"renewalModel": {
|
|
374
|
+
"label": "Renewal Model",
|
|
375
|
+
"component": "select",
|
|
376
|
+
"type": "string",
|
|
377
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id207:j_id209"
|
|
378
|
+
},
|
|
379
|
+
"disableAddSubscriptions": {
|
|
380
|
+
"label": "Disable Add Subscriptions",
|
|
381
|
+
"component": "input",
|
|
382
|
+
"type": "boolean",
|
|
383
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id211"
|
|
384
|
+
},
|
|
385
|
+
"allowRenewalQuotesWithoutAssets": {
|
|
386
|
+
"label": "Allow Renewal Quotes Without Assets",
|
|
387
|
+
"component": "input",
|
|
388
|
+
"type": "boolean",
|
|
389
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id212:j_id214"
|
|
390
|
+
},
|
|
391
|
+
"subscriptionTermUnit": {
|
|
392
|
+
"label": "Subscription Term Unit",
|
|
393
|
+
"component": "select",
|
|
394
|
+
"type": "string",
|
|
395
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id215:j_id217"
|
|
396
|
+
},
|
|
397
|
+
"subscriptionProratePrecision": {
|
|
398
|
+
"label": "Subscription Prorate Precision",
|
|
399
|
+
"component": "select",
|
|
400
|
+
"type": "string",
|
|
401
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id221:j_id223"
|
|
402
|
+
},
|
|
403
|
+
"includeNetNewProductsInMaintenance": {
|
|
404
|
+
"label": "Include Net-new Products in Maintenance",
|
|
405
|
+
"component": "input",
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id232"
|
|
408
|
+
},
|
|
409
|
+
"contractInForeground": {
|
|
410
|
+
"label": "Contract In Foreground",
|
|
411
|
+
"component": "input",
|
|
412
|
+
"type": "boolean",
|
|
413
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id233"
|
|
414
|
+
},
|
|
415
|
+
"reEvaluateBundleLogicOnRenewals": {
|
|
416
|
+
"label": "Re-evaluate Bundle Logic on Renewals",
|
|
417
|
+
"component": "input",
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id234"
|
|
420
|
+
},
|
|
421
|
+
"enableEvergreenSubscriptions": {
|
|
422
|
+
"label": "Enable Evergreen Subscriptions",
|
|
423
|
+
"component": "input",
|
|
424
|
+
"type": "boolean",
|
|
425
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id235:j_id237"
|
|
426
|
+
},
|
|
427
|
+
"poTRenewalsContractingFromOrders": {
|
|
428
|
+
"label": "PoT Renewals (Contracting from Orders)",
|
|
429
|
+
"component": "input",
|
|
430
|
+
"type": "boolean",
|
|
431
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id238:j_id240"
|
|
432
|
+
},
|
|
433
|
+
"legacyAmendRenewService": {
|
|
434
|
+
"label": "Legacy Amend/Renew Service",
|
|
435
|
+
"component": "input",
|
|
436
|
+
"type": "boolean",
|
|
437
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id241"
|
|
438
|
+
},
|
|
439
|
+
"amendContractsInBackground": {
|
|
440
|
+
"label": "Amend Contracts in Background",
|
|
441
|
+
"component": "input",
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id243"
|
|
444
|
+
},
|
|
445
|
+
"disableProductBundleSubTypeChecks": {
|
|
446
|
+
"label": "Disable Product Bundle Sub Type Checks",
|
|
447
|
+
"component": "input",
|
|
448
|
+
"type": "boolean",
|
|
449
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id243"
|
|
450
|
+
},
|
|
451
|
+
"bypassPreserveBundleStructure": {
|
|
452
|
+
"label": "Bypass Preserve Bundle Structure",
|
|
453
|
+
"component": "input",
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id247:j_id249"
|
|
456
|
+
},
|
|
457
|
+
"useCurrentSubscriptionOnAssets": {
|
|
458
|
+
"label": "Use Current Subscription on Assets",
|
|
459
|
+
"component": "input",
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"name": "page:form:pb:subscriptionAndRenewalSettings:j_id250:j_id252"
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"quote": {
|
|
466
|
+
"label": "Quote",
|
|
467
|
+
"component": "tab",
|
|
468
|
+
"id": "page:form:pb:j_id253_lbl",
|
|
469
|
+
"properties": {
|
|
470
|
+
"disableInitialQuoteSync": {
|
|
471
|
+
"label": "Disable Initial Quote Sync",
|
|
472
|
+
"component": "input",
|
|
473
|
+
"type": "boolean",
|
|
474
|
+
"name": "page:form:pb:j_id254:j_id255"
|
|
475
|
+
},
|
|
476
|
+
"disableQuoteContactDefaulting": {
|
|
477
|
+
"label": "Disable Quote Contact Defaulting",
|
|
478
|
+
"component": "input",
|
|
479
|
+
"type": "boolean",
|
|
480
|
+
"name": "page:form:pb:j_id254:j_id257"
|
|
481
|
+
},
|
|
482
|
+
"allowOptionDeletion": {
|
|
483
|
+
"label": "Allow Option Deletion",
|
|
484
|
+
"component": "input",
|
|
485
|
+
"type": "boolean",
|
|
486
|
+
"name": "page:form:pb:j_id254:j_id261"
|
|
487
|
+
},
|
|
488
|
+
"disableQuoteAddressDefaulting": {
|
|
489
|
+
"label": "Disable Quote Address Defaulting",
|
|
490
|
+
"component": "input",
|
|
491
|
+
"type": "boolean",
|
|
492
|
+
"name": "page:form:pb:j_id254:j_id256"
|
|
493
|
+
},
|
|
494
|
+
"primaryQuoteKeepsOpportunityProducts": {
|
|
495
|
+
"label": "Primary Quote Keeps Opportunity Products",
|
|
496
|
+
"component": "input",
|
|
497
|
+
"type": "boolean",
|
|
498
|
+
"name": "page:form:pb:j_id254:j_id258:j_id260"
|
|
499
|
+
},
|
|
500
|
+
"defaultQuoteValidityDays": {
|
|
501
|
+
"label": "Default Quote Validity (Days)",
|
|
502
|
+
"component": "input",
|
|
503
|
+
"type": "number",
|
|
504
|
+
"name": "page:form:pb:j_id254:j_id262"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"order": {
|
|
509
|
+
"label": "Order",
|
|
510
|
+
"component": "tab",
|
|
511
|
+
"id": "page:form:pb:j_id263_lbl",
|
|
512
|
+
"properties": {
|
|
513
|
+
"requireApprovedQuote": {
|
|
514
|
+
"label": "Require Approved Quote",
|
|
515
|
+
"component": "input",
|
|
516
|
+
"type": "boolean",
|
|
517
|
+
"name": "page:form:pb:orderOptions:j_id264"
|
|
518
|
+
},
|
|
519
|
+
"defaultOrderStartDate": {
|
|
520
|
+
"label": "Default Order Start Date",
|
|
521
|
+
"component": "select",
|
|
522
|
+
"type": "string",
|
|
523
|
+
"name": "page:form:pb:orderOptions:j_id267:j_id269"
|
|
524
|
+
},
|
|
525
|
+
"allowMultipleOrders": {
|
|
526
|
+
"label": "Allow Multiple Orders",
|
|
527
|
+
"component": "input",
|
|
528
|
+
"type": "boolean",
|
|
529
|
+
"name": "page:form:pb:orderOptions:j_id265"
|
|
530
|
+
},
|
|
531
|
+
"createOrdersWithoutOpportunities": {
|
|
532
|
+
"label": "Create Orders Without Opportunities",
|
|
533
|
+
"component": "input",
|
|
534
|
+
"type": "boolean",
|
|
535
|
+
"name": "page:form:pb:orderOptions:j_id271"
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"additionalSettings": {
|
|
540
|
+
"label": "Additional Settings",
|
|
541
|
+
"component": "tab",
|
|
542
|
+
"id": "page:form:pb:j_id273_lbl",
|
|
543
|
+
"properties": {
|
|
544
|
+
"triggersDisabled": {
|
|
545
|
+
"label": "Triggers Disabled",
|
|
546
|
+
"component": "input",
|
|
547
|
+
"type": "boolean",
|
|
548
|
+
"name": "page:form:pb:j_id274:j_id275"
|
|
549
|
+
},
|
|
550
|
+
"quantityScale": {
|
|
551
|
+
"label": "Quantity Scale",
|
|
552
|
+
"component": "input",
|
|
553
|
+
"type": "number",
|
|
554
|
+
"name": "page:form:pb:j_id274:j_id280"
|
|
555
|
+
},
|
|
556
|
+
"sortProductsInMemory": {
|
|
557
|
+
"label": "Sort Products In Memory",
|
|
558
|
+
"component": "input",
|
|
559
|
+
"type": "boolean",
|
|
560
|
+
"name": "page:form:pb:j_id274:j_id285"
|
|
561
|
+
},
|
|
562
|
+
"multipleBundlesView": {
|
|
563
|
+
"label": "Multiple Bundles View",
|
|
564
|
+
"component": "select",
|
|
565
|
+
"type": "string",
|
|
566
|
+
"name": "page:form:pb:j_id274:j_id290:j_id292"
|
|
567
|
+
},
|
|
568
|
+
"externalConfiguratorUrl": {
|
|
569
|
+
"label": "External Configurator URL",
|
|
570
|
+
"component": "input",
|
|
571
|
+
"type": "string",
|
|
572
|
+
"name": "page:form:pb:j_id274:j_id304"
|
|
573
|
+
},
|
|
574
|
+
"thirdPartyConfigurator": {
|
|
575
|
+
"label": "Third Party Configurator",
|
|
576
|
+
"component": "input",
|
|
577
|
+
"type": "boolean",
|
|
578
|
+
"name": "page:form:pb:j_id274:j_id309"
|
|
579
|
+
},
|
|
580
|
+
"openSearchFilterByDefault": {
|
|
581
|
+
"label": "Open Search Filter By Default",
|
|
582
|
+
"component": "input",
|
|
583
|
+
"type": "boolean",
|
|
584
|
+
"name": "page:form:pb:j_id274:j_id311"
|
|
585
|
+
},
|
|
586
|
+
"hideFeaturesWithHiddenOptions": {
|
|
587
|
+
"label": "Hide Features with Hidden Options",
|
|
588
|
+
"component": "input",
|
|
589
|
+
"type": "boolean",
|
|
590
|
+
"name": "page:form:pb:j_id274:j_id313"
|
|
591
|
+
},
|
|
592
|
+
"hideProductSearchBar": {
|
|
593
|
+
"label": "Hide Product Search Bar",
|
|
594
|
+
"component": "input",
|
|
595
|
+
"type": "boolean",
|
|
596
|
+
"name": "page:form:pb:j_id274:j_id313"
|
|
597
|
+
},
|
|
598
|
+
"productResultsGroupFieldName": {
|
|
599
|
+
"label": "Product Results Group Field Name",
|
|
600
|
+
"component": "select",
|
|
601
|
+
"type": "string",
|
|
602
|
+
"name": "page:form:pb:j_id274:j_id276:j_id278"
|
|
603
|
+
},
|
|
604
|
+
"productDescriptionField": {
|
|
605
|
+
"label": "Product Description Field",
|
|
606
|
+
"component": "select",
|
|
607
|
+
"type": "string",
|
|
608
|
+
"name": "page:form:pb:j_id274:j_id281:j_id283"
|
|
609
|
+
},
|
|
610
|
+
"theme": {
|
|
611
|
+
"label": "Theme",
|
|
612
|
+
"component": "select",
|
|
613
|
+
"type": "string",
|
|
614
|
+
"name": "page:form:pb:j_id274:j_id286:j_id288"
|
|
615
|
+
},
|
|
616
|
+
"useGlobalHeaderPermission": {
|
|
617
|
+
"label": "Use Global Header Permission",
|
|
618
|
+
"component": "input",
|
|
619
|
+
"type": "boolean",
|
|
620
|
+
"name": "page:form:pb:j_id274:j_id303"
|
|
621
|
+
},
|
|
622
|
+
"serviceRegion": {
|
|
623
|
+
"label": "Service Region",
|
|
624
|
+
"component": "select",
|
|
625
|
+
"type": "string",
|
|
626
|
+
"name": "page:form:pb:j_id274:j_id305:j_id307"
|
|
627
|
+
},
|
|
628
|
+
"enableProductOptionDrawer": {
|
|
629
|
+
"label": "Enable Product Option Drawer",
|
|
630
|
+
"component": "input",
|
|
631
|
+
"type": "boolean",
|
|
632
|
+
"name": "page:form:pb:j_id274:j_id310"
|
|
633
|
+
},
|
|
634
|
+
"enableLargeConfigurations": {
|
|
635
|
+
"label": "Enable Large Configurations",
|
|
636
|
+
"component": "input",
|
|
637
|
+
"type": "boolean",
|
|
638
|
+
"name": "page:form:pb:j_id274:j_id310"
|
|
639
|
+
},
|
|
640
|
+
"nestedBundlesForExternalConfigurator": {
|
|
641
|
+
"label": "Nested Bundles for External Configurator",
|
|
642
|
+
"component": "input",
|
|
643
|
+
"type": "boolean",
|
|
644
|
+
"name": "page:form:pb:j_id274:j_id314"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const assert_1 = __importDefault(require("assert"));
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
const default_json_1 = __importDefault(require("./default.json"));
|
|
9
|
+
const describeOrSkip = process.env['CPQ'] === 'true' ? describe : describe.skip;
|
|
10
|
+
describeOrSkip(_1.SalesforceCpqConfig.name, function () {
|
|
11
|
+
let plugin;
|
|
12
|
+
before(() => {
|
|
13
|
+
plugin = new _1.SalesforceCpqConfig(global.bf);
|
|
14
|
+
});
|
|
15
|
+
const configDefault = default_json_1.default.settings.salesforceCpqConfig;
|
|
16
|
+
const configCustom = {
|
|
17
|
+
documents: {
|
|
18
|
+
documentFolder: 'Quotes',
|
|
19
|
+
hideDocumentName: true
|
|
20
|
+
},
|
|
21
|
+
quote: {
|
|
22
|
+
disableInitialQuoteSync: true
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
it('should apply default config', async () => {
|
|
26
|
+
await plugin.run(configDefault);
|
|
27
|
+
});
|
|
28
|
+
it('should already be configured', async () => {
|
|
29
|
+
const res = await plugin.run(configDefault);
|
|
30
|
+
assert_1.default.deepStrictEqual(res, { message: 'no action necessary' });
|
|
31
|
+
});
|
|
32
|
+
it('should apply custom config', async () => {
|
|
33
|
+
const res = await plugin.run(configCustom);
|
|
34
|
+
assert_1.default.notDeepStrictEqual(res, { message: 'no action necessary' });
|
|
35
|
+
});
|
|
36
|
+
it('should already be configured', async () => {
|
|
37
|
+
const res = await plugin.run(configCustom);
|
|
38
|
+
assert_1.default.deepStrictEqual(res, { message: 'no action necessary' });
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=index.e2e-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../src/plugins/salesforce-cpq-config/index.e2e-spec.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,wBAAwC;AACxC,kEAA2C;AAE3C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AAChF,cAAc,CAAC,sB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C,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SalesforceCpqConfig = void 0;
|
|
7
|
+
const plugin_1 = require("../../plugin");
|
|
8
|
+
const formConfig_json_1 = __importDefault(require("./formConfig.json"));
|
|
9
|
+
const formConfig = formConfig_json_1.default;
|
|
10
|
+
const PATHS = {
|
|
11
|
+
BASE: '0A3?setupid=ImportedPackage&retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DStudio'
|
|
12
|
+
};
|
|
13
|
+
const SELECTORS = {
|
|
14
|
+
CONFIGURE: '.actionLink[title*="Configure"][title*="Salesforce CPQ"]',
|
|
15
|
+
GENERATE_INTEGRATION_USER_PERMISSIONS: 'input[name="page:form:pb:j_id185:j_id197:setupIntegrationUserPermissions"]',
|
|
16
|
+
SAVE: 'input[name="page:form:j_id2:j_id3:j_id11"]',
|
|
17
|
+
AUTHORIZE_NEW_CALCULATION_SERVICE: 'span#page\\:form\\:pb\\:calculatorOptions\\:j_id201\\:j_id203 a',
|
|
18
|
+
ALLOW: 'input[name="save"]'
|
|
19
|
+
};
|
|
20
|
+
const authorizationURL = 'setup/secur/RemoteAccessAuthorizationPage.apexp';
|
|
21
|
+
class SalesforceCpqConfig extends plugin_1.BrowserforcePlugin {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.logger = this.browserforce.logger;
|
|
25
|
+
}
|
|
26
|
+
async retrieve(definition) {
|
|
27
|
+
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
28
|
+
await page.waitForSelector(SELECTORS.CONFIGURE);
|
|
29
|
+
await Promise.all([page.waitForNavigation(), page.click(SELECTORS.CONFIGURE)]);
|
|
30
|
+
const response = {};
|
|
31
|
+
if (definition) {
|
|
32
|
+
for (const [keyTab, valueTab] of Object.entries(formConfig)) {
|
|
33
|
+
if (definition[keyTab]) {
|
|
34
|
+
await page.waitForSelector(`td[id="${valueTab.id}"]`);
|
|
35
|
+
await page.click(`td[id="${valueTab.id}"]`);
|
|
36
|
+
for (const [keyItem, valueItem] of Object.entries(valueTab.properties)) {
|
|
37
|
+
if (!(definition[keyTab][keyItem] === undefined)) {
|
|
38
|
+
const item = valueItem;
|
|
39
|
+
response[keyTab] = response[keyTab] || {};
|
|
40
|
+
try {
|
|
41
|
+
if (item.component === 'input' && item.type === 'boolean') {
|
|
42
|
+
response[keyTab][keyItem] = await page.$eval(`${item.component}[name="${item.name}"]`, (el) => el.checked);
|
|
43
|
+
}
|
|
44
|
+
else if (item.component === 'input' && item.type === 'string') {
|
|
45
|
+
response[keyTab][keyItem] = await page.$eval(`${item.component}[name="${item.name}"]`, (el) => el.value);
|
|
46
|
+
}
|
|
47
|
+
else if (item.component === 'select') {
|
|
48
|
+
response[keyTab][keyItem] = await page.$eval(`${item.component}[name="${item.name}"]`, (el) => el.selectedOptions[0].text);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
if (e.message ===
|
|
53
|
+
`Error: failed to find element matching selector "${item.component}[name="${item.name}"]"`) {
|
|
54
|
+
this.logger?.warn(`Label '${item.label}' '${keyTab}.${keyItem}' with component '${item.component}[name="${item.name}"]' is not found`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
throw e;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
await page.close();
|
|
66
|
+
return response;
|
|
67
|
+
}
|
|
68
|
+
async apply(config) {
|
|
69
|
+
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
70
|
+
await Promise.all([page.waitForNavigation(), page.click(SELECTORS.CONFIGURE)]);
|
|
71
|
+
/*
|
|
72
|
+
This to click on the 'Generate Integration User Permissions button' for first time setup.
|
|
73
|
+
Once the button is clicked, it will not be available for the next time.
|
|
74
|
+
*/
|
|
75
|
+
try {
|
|
76
|
+
this.logger?.log(`Clicking on 'Generate Integration User Permissions' button`);
|
|
77
|
+
await page.waitForSelector(`td[id="${formConfig.pricingAndCalculation.id}"]`);
|
|
78
|
+
await page.click(`td[id="${formConfig.pricingAndCalculation.id}"]`);
|
|
79
|
+
await page.click(SELECTORS.GENERATE_INTEGRATION_USER_PERMISSIONS);
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
if (e.message === `No element found for selector: ${SELECTORS.GENERATE_INTEGRATION_USER_PERMISSIONS}`) {
|
|
83
|
+
this.logger?.log(`The button 'Generate Integration User Permissions' is not found. It might be already clicked before.`);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
this.logger?.warn(`Error clicking 'Generate Integration User Permissions' button with message: ${e.message}`);
|
|
87
|
+
throw e;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/*
|
|
91
|
+
This to loop through the formConfig and set the value based on the config provided.
|
|
92
|
+
*/
|
|
93
|
+
for (const [keyTab, valueTab] of Object.entries(formConfig)) {
|
|
94
|
+
if (config[keyTab]) {
|
|
95
|
+
await page.waitForSelector(`td[id="${valueTab.id}"]`);
|
|
96
|
+
await page.click(`td[id="${valueTab.id}"]`);
|
|
97
|
+
for (const [keyItem, valueItem] of Object.entries(valueTab.properties)) {
|
|
98
|
+
if (!(config[keyTab][keyItem] === undefined)) {
|
|
99
|
+
const item = valueItem;
|
|
100
|
+
try {
|
|
101
|
+
this.logger?.log(`Updating: '${keyTab}.${keyItem}' (${item.label}) with component '${item.component}[name="${item.name}"]' with value: '${config[keyTab][keyItem]}'`);
|
|
102
|
+
if (item.component === 'input' && item.type === 'boolean') {
|
|
103
|
+
await page.$eval(`input[name="${item.name}"]`, (e, v) => {
|
|
104
|
+
e.checked = v;
|
|
105
|
+
}, config[keyTab][keyItem]);
|
|
106
|
+
}
|
|
107
|
+
else if (item.component === 'input' && item.type === 'string') {
|
|
108
|
+
await page.$eval(`input[name="${item.name}"]`, (e, v) => {
|
|
109
|
+
e.value = v;
|
|
110
|
+
}, config[keyTab][keyItem]);
|
|
111
|
+
}
|
|
112
|
+
else if (item.component === 'select') {
|
|
113
|
+
const selectFieldOptions = await page.$$eval(`select[name="${item.name}"] option`, (options) => {
|
|
114
|
+
return options.map((option) => {
|
|
115
|
+
return {
|
|
116
|
+
text: option.text,
|
|
117
|
+
value: option.value
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
const chooseFieldOption = selectFieldOptions.find((x) => x.text === config[keyTab][keyItem]);
|
|
122
|
+
if (!chooseFieldOption) {
|
|
123
|
+
const availableOption = selectFieldOptions.map((option) => option.text);
|
|
124
|
+
throw new Error(`Fail to set '${item.label}' with value '${config[keyTab][keyItem]}'. \nPlease make sure to select one of this available options: ${JSON.stringify(availableOption)}\n`);
|
|
125
|
+
}
|
|
126
|
+
await page.select(`select[name="${item.name}"]`, chooseFieldOption.value);
|
|
127
|
+
}
|
|
128
|
+
if (item.immediatelySave) {
|
|
129
|
+
await Promise.all([page.waitForNavigation(), page.click(SELECTORS.SAVE)]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
catch (e) {
|
|
133
|
+
if (e.message === `Error: failed to find element matching selector "${item.component}[name="${item.name}"]"`) {
|
|
134
|
+
this.logger?.warn(`Label '${item.label}' '${keyTab}.${keyItem}' with component '${item.component}[name="${item.name}"]' is not found`);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this.logger?.warn(`Error: at Label '${item.label}' '${keyTab}.${keyItem}' with component '${item.component}[name="${item.name}"]' with message: ${e.message}`);
|
|
138
|
+
throw e;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
await Promise.all([page.waitForNavigation(), page.click(SELECTORS.SAVE)]);
|
|
145
|
+
}
|
|
146
|
+
/*
|
|
147
|
+
This to click on the 'Authorize New Calculation Service' link under Pricing and Calculation tab.
|
|
148
|
+
Once authorized, it will not appear the next time.
|
|
149
|
+
*/
|
|
150
|
+
try {
|
|
151
|
+
this.logger?.log(`'Authorize New Calculation Service' link`);
|
|
152
|
+
await page.waitForSelector(`td[id="${formConfig.pricingAndCalculation.id}"]`);
|
|
153
|
+
await page.click(`td[id="${formConfig.pricingAndCalculation.id}"]`);
|
|
154
|
+
const authorizeLink = await page.$(SELECTORS.AUTHORIZE_NEW_CALCULATION_SERVICE);
|
|
155
|
+
if (authorizeLink) {
|
|
156
|
+
// Click on 'Authorize New Calculation Service' link
|
|
157
|
+
await page.waitForSelector(SELECTORS.AUTHORIZE_NEW_CALCULATION_SERVICE);
|
|
158
|
+
await page.click(SELECTORS.AUTHORIZE_NEW_CALCULATION_SERVICE);
|
|
159
|
+
// Wait for popup window with the expected URL
|
|
160
|
+
const newWindowTarget = await page.browser().waitForTarget((target) => target.url().includes(authorizationURL));
|
|
161
|
+
const newPage = await newWindowTarget.page();
|
|
162
|
+
if (newPage) {
|
|
163
|
+
// Click on'Allow' button
|
|
164
|
+
await newPage.waitForSelector(SELECTORS.ALLOW, { visible: true });
|
|
165
|
+
await newPage.click(SELECTORS.ALLOW);
|
|
166
|
+
await page.waitForNavigation(); // Wait for the main page to refresh
|
|
167
|
+
this.logger?.log('The main page has refreshed after allowing.');
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
this.logger?.warn('Failed to retrieve the new page from the popup.');
|
|
171
|
+
}
|
|
172
|
+
this.logger?.log('The authorization process has been completed.');
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
this.logger?.log(`The link 'Authorize New Calculation Service' was not found. It might be already clicked before.`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
catch (e) {
|
|
179
|
+
if (e.message === `No element found for selector: ${SELECTORS.AUTHORIZE_NEW_CALCULATION_SERVICE}`) {
|
|
180
|
+
this.logger?.log(`The link Authorize New Calculation Service' is not found. It might be already clicked before.`);
|
|
181
|
+
}
|
|
182
|
+
else if (e.message === `Waiting for selector \`input[name="save"]\` failed: waitForFunction failed: frame got detached.`) {
|
|
183
|
+
this.logger?.log(`ALLOW button is not found. It might be already clicked before.`);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.logger?.warn(`Error clicking Authorize New Calculation Service' button with message: ${e.message}`);
|
|
187
|
+
throw e;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
await page.close();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.SalesforceCpqConfig = SalesforceCpqConfig;
|
|
194
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/salesforce-cpq-config/index.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAkD;AAClD,wEAA+C;AAG/C,MAAM,UAAU,GAAe,yBAAc,CAAC;AAE9C,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,6EAA6E;CACpF,CAAC;AAEF,MAAM,SAAS,GAAG;IAChB,SAAS,EAAE,0DAA0D;IACrE,qCAAqC,EAAE,4EAA4E;IACnH,IAAI,EAAE,4CAA4C;IAClD,iCAAiC,EAAE,iEAAiE;IACpG,KAAK,EAAE,oBAAoB;CAC5B,CAAC;AAEF,MAAM,gBAAgB,GAAG,iDAAiD,CAAC;AAI3E,MAAa,mBAAoB,SAAQ,2BAAkB;IAA3D;;QACU,WAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;IAiN5C,CAAC;IAhNQ,KAAK,CAAC,QAAQ,CAAC,UAAmB;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI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AC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;oBACrC,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,oCAAoC;oBAEpE,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,6CAA6C,CAAC,CAAC;iBACjE;qBAAM;oBACL,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,iDAAiD,CAAC,CAAC;iBACtE;gBACD,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,+CAA+C,CAAC,CAAC;aACnE;iBAAM;gBACL,IAAI,CAAC,MAAM,EAAE,GAAG,CACd,iGAAiG,CAClG,CAAC;aACH;SACF;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,CAAC,OAAO,KAAK,kCAAkC,SAAS,CAAC,iCAAiC,EAAE,EAAE;gBACjG,IAAI,CAAC,MAAM,EAAE,GAAG,CACd,+FAA+F,CAChG,CAAC;aACH;iBAAM,IACL,CAAC,CAAC,OAAO,KAAK,iGAAiG,EAC/G;gBACA,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,gEAAgE,CAAC,CAAC;aACpF;iBAAM;gBACL,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,0EAA0E,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;gBACzG,MAAM,CAAC,CAAC;aACT;SACF;QAED,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF;AAlND,kDAkNC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plugins/salesforce-cpq-config/types.ts"],"names":[],"mappings":""}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfdx-browserforce-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "sfdx plugin for browser automation",
|
|
5
5
|
"author": "Matthias Rolke <mr.amtrack@gmail.com>",
|
|
6
6
|
"bin": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"generate:plugin": "npx hygen plugin new",
|
|
61
61
|
"prepack": "yarn build",
|
|
62
62
|
"prepare": "yarn build",
|
|
63
|
-
"test": "tsc -p test && nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
|
|
64
|
-
"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\""
|
|
63
|
+
"test": "tsc --resolveJsonModule -p test && nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
|
|
64
|
+
"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\""
|
|
65
65
|
}
|
|
66
66
|
}
|